diff --git a/README.md b/README.md
index 24d19ac..de51f5b 100644
--- a/README.md
+++ b/README.md
@@ -31,8 +31,8 @@ Improving code maintainability and readability while reducing development comple
Reduces manual DOM manipulation, allowing you to focus more on the core logic of your application.
- ### 輕量級 / Lightweight:
- 全功能的實現僅用了`34KB`,確保你能在網站中輕鬆高效地使用。
- Full functionality is achieved with only `34KB`, ensuring efficient and effortless use on your website.
+ 全功能的實現僅用了`35KB`,確保你能在網站中輕鬆高效地使用。
+ Full functionality is achieved with only `35KB`, ensuring efficient and effortless use on your website.
## 範例 / Example
@@ -354,13 +354,13 @@ Improving code maintainability and readability while reducing development comple
backgroundColor: "steelblue",
color: "#fff"
}
- })._click(function(){
- alert("test")
}, [
// or "test button"
"span"._("test"),
" button"
- ]),
+ ])._click(function(){
+ alert("test")
+ }),
"span.svg:._({ path: "https://xxxxxx" }),
// 無 Lazy Loading => "img"._("https://xxxxxx"),
"img"._({ lazyload: "https://xxxxxx" }),
diff --git a/dist/PDRenderKit.js b/dist/PDRenderKit.js
index b271aaa..517efa3 100644
--- a/dist/PDRenderKit.js
+++ b/dist/PDRenderKit.js
@@ -1 +1 @@
-"use strict";let $SVG_Observer,$Lazy_Observer,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_0_,_1_,_2_,_3_,_4_,_5_,_6_,_7_,_8_,_9_,__0,__1,__2,__3,__4,__5,$0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$0_,$1_,$2_,$3_,$4_,$5_,$6_,$7_,$8_,$9_,$_0,$_1,$_2,$_3,$_4,$_5,$vw,$vh,$history=[],$$android,$$ios,$$mobile,$$desktop;((t,e,n,i,r,s,o,l)=>{const u="innerWidth",a="innerHeight",c="test",h="userAgent";i(r[s]({length:26},((t,e)=>String.fromCharCode(97+e))).map(((t,e)=>{let n=e<10,i=e>=10&&e<20,r=e>=20,s=String(e),o=s.charAt(s.length-1),l=e=>`${e?"$":"_"}${r?"_":""}${o}${i?"_":""} = "${e?t.toUpperCase():t}";`;return`${l(0)}${l(1)}${n?`_${t} = ${e};`:""}`}))[l]("")),$$android=/android/i[c](e[h]),$$ios=/iphone|ipad/i[c](e[h]),$$mobile=$$android||$$ios,$$desktop=!$$mobile,$history=[n.href],[$vw,$vh]=[t[u],t[a]],t.onresize=e=>{[$vw,$vh]=[t[u],t[a]]}})(window,navigator,location,eval,Array,"from",0,"join"),((t,e,n,i,r,s,o,l,u,a,c,h,f,g,$,d,_,p,m,y,v,b,w,L,S,E,O,k,x,C,T,j,R,A,N,U,I,D,H,M,z,P,F,G,q,V,B,W,J,Y,X,K,Q,Z,tt,et,nt,it,rt,st,ot,lt,ut,at,ct,ht,ft,gt,$t,dt,_t,pt,mt,yt,vt,bt,wt,Lt,St,Et,Ot,kt,xt,Ct,Tt,jt,Rt,At,Nt,Ut,It,Dt,Ht,Mt,zt,Pt)=>{const Ft="getElementById",Gt="querySelector",qt="parentElement",Vt="previousElementSibling",Bt="nextElementSibling",Wt="createElement",Jt="classList",Yt="Attribute",Xt="getContext",Kt="get",Qt="Width",Zt="Height",te="scroll",ee="natural",ne="client",ie="All",re="toString",se="prototype",oe="length",le="getHours",ue="dataset",ae="push",ce="toUpperCase",he="toLowerCase",fe="floor",ge="size",$e="forEach",de="set",_e="replace",pe="trim",me="match",ye="test",ve="origin",be="pathname",we="inner",Le="HTML",Se="children",Ee="childNodes",Oe="style",ke="margin",xe="padding",Ce="Top",Te="Left",je="Bottom",Re="Right",Ae="width",Ne="height",Ue="class",Ie="line",De="data",He="attr",Me="child",ze="history",Pe="query",Fe="node",Ge="insertBefore",qe="appendChild",Ve="yy",Be="MM",We="DD",Je="dd",Ye="HH",Xe="hh",Ke="mm",Qe="ss",Ze="init",tn="url",en="timestamp",nn="date",rn="format",sn="map",on="len",ln="display",un="To",an="abs",cn="jpeg",hn="jpg",fn="png",gn="image",$n="canvas",dn="split",_n="font",pn="substring",mn="mt",yn="str",vn="req",bn="gone",wn="unobserve",Ln="fromEntries",Sn="cloneNode",En="parse",On="json",kn="keys",xn="isArray",Cn="createTextNode",Tn="append",jn="files",Rn="values",An="header",Nn="href",Un="join",In="currentScript",Dn="parentNode",Hn="removeChild",Mn="getAttribute",zn=[D,J][Un](At),Pn=[Y,T][Un](At),Fn=[C,B,R,F][Un](At),Gn=[I,D,Y][Un](At),qn=[_t,rt,mt,A,F,R,A,B,ht,D,J][Un](At),Vn="$blob",Bn=["load","click","dblclick","scroll","mousedown","mouseup","mouseenter","mouseleave","mouseover","mouseout","mousemove","touchstart","touchmove","touchenter","touchleave","touchend","touchup","drop","dragstart","dragend","dragenter","dragover","dragleave","focus","blur","input","keydown","keyup","change","contextmenu","cut","paste"],Wn=a.defineProperty;let Jn=!0;var Yn;Jn&&(Jn=!1,function(t){const n=[j,G,q,Z,B,D,U,I,J][Un](At),s=[it,B,A,C,J,G,B][Un](At),o=[_t,Fn,zt,ft,J,R][Un](At),l=[_t,Fn,zt,it,Gn][Un](At),a=[[[_n,Nt,ge,Dt],[v,L,q,Q]],[[Ie,Nt,Ne,Dt],[b,k,q,Q]]],c=[[["%",j,t]],[[lt,zn,ut,Pn,Dt],[I,J,J,q,W,Dt,It,It,U,zn,I,Pn,Ut,j,G,P,It,q,Fn,j,Gn,It,t]],[[s,Dt],[l]],[[ft,D,j,A,F,W,A,Dt],[lt,_t,ft,Nt+w+Ut+y]]][sn]((t=>u[xn](t)?t[sn]((t=>t[Un](At)))[Un](zt):t)).join("\n"),h=a[sn]((t=>u[xn](t)?t[sn]((t=>t[Un](At)))[Un](At):t)).join(";"),f=e[In][Mn](n);f&&f===o?(e[kt+Ze]=i[Nn],e[kt+s]=l,r.log(c,h)):e[In][Dn][Hn](e[In])}(qn)),Yn=o[se],Wn(Yn,kt+on,{get:function(){return this[re]()[oe]}}),Wn(Yn,kt+"num",{get:function(){const t=l(this[re]()[_e](/\,/g,""));return isNaN(t)?null:t}}),Wn(Yn,kt+On,{get:function(){try{return d[En](this[re]())}catch(t){return null}}}),Wn(Yn,kt+Le[he](),{get:function(){const t={" ":" ","<":"<",">":">",'"':""","'":"'"};return this[re]()[_e](/[ \<\>\"\']/g,(e=>t[e]))}}),Wn(Yn,kt+"img",{get:async function(){return new Promise(((t,e)=>{let n=new $;n.src=this[re](),n.crossOrigin="anonymous",n.onload=()=>{t(n)},n.onerror=e}))}}),Wn(Yn,xt+On,{get:function(){return null!=this[kt+On]}}),Wn(Yn,xt+mn,{get:function(){return this[re]()[pe]()[oe]<1}}),Wn(Yn,Rt,{value:function(t="",e=""){return this[re]()[_e](t,e)}}),Wn(Yn,kt+"ary",{value:function(t=""){return this[re]()[dn](t)}}),Wn(Yn,kt+"regexp",{value:function(t=""){return new _(this[re](),t)}}),Wn(Yn,"$fit",{value:function(t){if(null!=t)return this[re]()[me](t)}}),Wn(Yn,"$en",{value:function(t){const e=this[re]();return null!=t&&t?encodeURIComponent(e):encodeURI(e)}}),Wn(Yn,"$de",{value:function(t){const e=this[re]();return null!=t&&t?decodeURIComponent(e):decodeURI(e)}}),Wn(Yn,"$copy",{value:async function(){try{await n.clipboard.writeText(this[re]())}catch(t){console.error(t)}}}),Wn(Yn,xt,{value:function(t){const e=this[re]();return t instanceof _?t[ye](e):null==t?e[pe]()[oe]>0:t[pe]()===e[pe]()}}),Wn(Yn,"$$200",{value:async function(t){return new Promise((async(e,n)=>{try{const i=await fetch(this[re]());if(i.ok){const r=i.headers[Kt]("Content-Type");if(r&&r.startsWith("image/")){if("image/svg+xml"==r&&!t)return void e(i);const s=await i.blob(),o=new Image,l=URL.createObjectURL(s);o.src=l,o.onload=()=>{e({src:l,img:o})},o.onerror=t=>{URL.revokeObjectURL(l),n(t)}}else e(i)}else n(new Error(`HTTP error! status: ${i.status}`))}catch(t){n(t)}}))}}),Wn(Yn,kt+tn,{get:function(){const t=this[re]();try{return new g(t)}catch(e){return new g(i[ve]+t)}}}),Wn(Yn,kt+Pe+ie,{get:function(){return this[re]()[kt+tn].$queryAll}}),[kt+vn,jt+ze,Rt+ze,jt+Pe,Rt+Pe,Pe+jt,Pe+Rt,kt+Pe][$e]((t=>Wn(Yn,t,{value:function(){const e=this[re]()[kt+tn];return e[t].apply(e,a[Rn](arguments))}}))),Wn(Yn,"_fa",{get:function(){return("i."+this[re]()[_e](/\s/,"."))._()}}),Wn(Yn,kt,{get:function(){const t=this[re]();return t.startsWith("#")?e[Ft](this[pn](1)):/[\.\[\]]/[ye](t)?e[Gt](t):e[Ft](t)||e[Gt](t)}}),Wn(Yn,kt+"all",{get:function(){return e[`${Gt}${ie}`](this[re]())}}),Wn(Yn,jt,{value:function(t,n){const r=/^\w+(?=[\#\.]*)/i,s=/\.([\w_-]+)?/gi,o=r[ye](this)?this[me](r)[0]:null,l=/^(svg|rect|circle|ellipse|line|polyline|polygon|path|text|tspan|g|defs|symbol|image|use|clipPath|mask|linearGradient|radialGradient)$/i[ye](o),c="temp"===this[re](),h="txt"===this[re](),f=c?e.createDocumentFragment():h?e[Cn](String(t)):l?e.createElementNS("http://www.w3.org/2000/svg",o):e[Wt](o),g=s[ye](this)?this[me](s):[],$=this[me](/\#([\w_-]+)?/i),d=[it,B,A,C,J,G,B][Un](At),_=[_t,Fn,zt,it,Gn][Un](At);if(h)return f;$&&(f.id=$[1]),g[$e]((t=>f[Jt].add(t[_e](/^\./,""))));const p=e[kt+Ze],m=e[kt+d];if(!p||p!=i[Nn]||!m||m!=_)return f;let y,v;if(/^span\.svg/i[ye](this)&&null!=$SVG_Observer&&$SVG_Observer.observe(f),null==t&&null!=n&&([t,n]=[n,null]),null!=t&&null!=n)[y,v]=[t,n];else if(null==n)"string"==typeof t||"number"==typeof t||u[xn](t)?v=t:y=t;else if(null==t)return f;const b="input"===o;if(b||"textarea"===o){const t=/\s(.+)/i,e=this[me](t);f.placeholder=e?e[1]:"";const n=/\@(\w+)/i,i=this[me](n);b&&(f.type=i?i[1]:"test")}if("object"==typeof y&&null!=y&&a.keys(y)[$e]((t=>{const e=y[t];["value","innerText","innerHTML","textContent","contentEditable"].includes(t)?f[t]=e:["color","backgroundColor"].includes(t)?f[Oe][t]=e:"style"===t?a.keys(e)[$e]((t=>f[Oe][t]=e[t])):"lazyload"===t?null!=$Lazy_Observer?(f[Jt].add("lazyload"),f[de+Yt]("data-src",e),$Lazy_Observer.observe(f)):f.src=e:null!=e&&f[de+Yt](t,e)})),null!=v){const t="string"==typeof v,n="number"==typeof v,i=u[xn](v);if(t||n){const t=String(v);"img"===o||"source"===o?f.src=t:f[we+Le]=t}else i&&v[$e]((t=>{const n=t instanceof Element;"string"==typeof t||"number"==typeof t?c?f[qe](e[Cn](String(t))):f[we+Le]+=t:n&&f[qe](t)}))}return f}}),(t=>{Wn(t,kt+yn,{get:function(){return o(this)}}),Wn(t,kt+"num",{get:function(){return l(this)}}),Wn(t,kt+nn,{get:function(){return new f(1e3*this)}}),Wn(t,kt+bn,{get:function(){const t=s[fe](f.now()/1e3),e=parseInt(this),n=s[an](t-e),i=t>e,r=i?"前":"",o=3600,l=24*o,u=30*l,a=365*l;if(n<60)return"剛剛";let c=i?"":"還有";return n>=a?c+=s[fe](n/a)+"年":n>=u?c+=s[fe](n/u)+"個月":n>=604800?c+=s[fe](n/o)+"週":n>=l?c+=s[fe](n/l)+"天":n>=o?c+=s[fe](n/o)+"小時":n>=60&&(c+=s[fe](n/60)+"分鐘"),c+r}}),[kt+Z,kt+Ve,kt+Ve+Ve,kt+gt,kt+Be,kt+rt,kt+We,kt+R,kt+Je,kt+ut,kt+Ye,kt+I,kt+Xe,kt+C,kt+et,kt+P,kt+Ke,kt+W,kt+Qe][$e]((e=>{Wn(t,e,{get:function(){return this[kt+nn][e]}})})),Wn(t,kt+rn,{value:function(t){return this[kt+nn][kt+rn](t)}})})(l[se]),(t=>{Wn(t,kt+on,{get:function(){return this[oe]}}),Wn(t,kt+sn,{get:function(){const t=new c;return this[$e](((e,n)=>t[de](e,n))),t}}),Wn(t,kt+"random",{get:function(){return this.sort((()=>s.random()-.5))}}),Wn(t,xt+mn,{get:function(){return this[oe]<1}}),Wn(t,jt,{value:function(t){let e=this;return u[xn](t)?e=e.concat(t):null!=t&&e[ae](t),e}}),Wn(t,Tt,{value:function(t){if(null==t)return this;let e=[];return this[$e](((n,i)=>{const r=t(n,i);null!=r&&e.push(r)})),e}}),Wn(t,kt,{value:function(t){const e=this[oe];return"number"!=typeof t||s[an](t)>e?null:this[(t<0?e:0)+t]}}),Wn(t,kt+D,{value:function(t){const e=this.indexOf(t);return-1==e?null:e}}),Wn(t,kt+yn,{value:function(t){return"string"!=typeof t&&"number"!=typeof t?this.join(""):this.join(String(t)[re]())}}),Wn(t,kt+vn,{value:function(e={}){return`/${t.$str("/")}`[_e](/[\/]+/g,"/").$req(e)}}),Wn(t,"$_",{value:function(t){const e=this[oe];let n=this;return"number"!=typeof t||s[an](t)>e?n:-1===t?(n.pop(),n):0===t?(n.shift(),n):(n=n.splice((t<0?e:0)+t,1),n)}}),Wn(t,xt,{value:function(t){return-1!==this.indexOf(t)}})})(u[se]),(t=>{Wn(t,kt+sn,{get:function(){const t=new Map;for(const e in this)this.hasOwnProperty(e)&&t.set(e,this[e]);return t}}),Wn(t,kt+kn,{get:function(){return a.keys(this)}}),Wn(t,kt+"vals",{get:function(){return a[Rn](this)}}),Wn(t,kt,{value:function(t){return null==t?null:this[String(t)]}}),Wn(t,xt,{value:function(t){return null!=t&&null!=this[String(t)]}}),Wn(t,kt+$e,{value:function(t){if(t instanceof Function)for(const e in this)this.hasOwnProperty(e)&&t(e,this[e])}})})(a[se]),(t=>{Wn(t,kt+"obj",{get:function(){return a[Ln](this)}}),Wn(t,kt+on,{get:function(){return this[ge]}}),Wn(t,xt+mn,{get:function(){return 0===this[ge]}}),Wn(t,jt,{value:function(t,e){const n=new c(this);return n[de](t,e),n}}),Wn(t,kt,{value:function(t){return this[Kt](t)}})})(c[se]),(t=>{Wn(t,kt+Z,{get:function(){return this.getFullYear()}}),Wn(t,kt+Ve,{get:function(){return`${this[kt+Z]}`.slice(-2)}}),Wn(t,kt+Ve+Ve,{get:function(){return this[kt+Z]}}),Wn(t,kt+gt,{get:function(){return this.getMonth()+1}}),Wn(t,kt+Be,{get:function(){const t=this[kt+gt];return`${t<10?"0":""}${t}`}}),Wn(t,kt+rt,{get:function(){return this.getDate()}}),Wn(t,kt+We,{get:function(){const t=this[kt+rt];return`${t<10?"0":""}${t}`}}),Wn(t,kt+R,{get:function(){return this.getDay()}}),Wn(t,kt+Je,{get:function(){const t=this[kt+R];return 0===t?"Sun":1===t?"Mon":2===t?"Tue":3===t?"Wed":4===t?"Thu":5===t?"Fri":6===t?"Sat":"NaN"}}),Wn(t,kt+ut,{get:function(){return this[le]()}}),Wn(t,kt+Ye,{get:function(){const t=this[kt+ut];return`${t<10?"0":""}${t}`}}),Wn(t,kt+I,{get:function(){return this[le]()%12||12}}),Wn(t,kt+Xe,{get:function(){const t=this[kt+I];return`${t<10?"0":""}${t}`}}),Wn(t,kt+C,{get:function(){return this[le]()>=12?"pm":"am"}}),Wn(t,kt+et,{get:function(){return this[kt+C][ce]()}}),Wn(t,kt+P,{get:function(){return this.getMinutes()}}),Wn(t,kt+Ke,{get:function(){const t=this[kt+P];return`${t<10?"0":""}${t}`}}),Wn(t,kt+W,{get:function(){return this.getSeconds()}}),Wn(t,kt+Qe,{get:function(){const t=this[kt+W];return`${t<10?"0":""}${t}`}}),Wn(t,kt+en,{get:function(){return s[fe](this.getTime()/1e3)}}),Wn(t,kt+bn,{get:function(){return this[kt+en][kt+bn]}}),Wn(t,kt+rn,{value:function(t){return t=t[_e](/Y{4}/gi,this[kt+Ve+Ve])[_e](/Y{2}/gi,this[kt+Ve])[_e](/Y{1}/gi,this[kt+Z])[_e](/M{2,}/g,this[kt+Be])[_e](/M{1}/g,this[kt+gt])[_e](/D{2,}/g,this[kt+We])[_e](/D{1}/g,this[kt+rt])[_e](/H{2,}/g,this[kt+Ye])[_e](/H{1}/g,this[kt+ut])[_e](/h{2,}/g,this[kt+Xe])[_e](/h{1}/g,this[kt+I])[_e](/m{2,}/g,this[kt+Ke])[_e](/m{1}/g,this[kt+P])[_e](/s{2,}/g,this[kt+Qe])[_e](/s{1}/g,this[kt+W])[_e](/A{1}/g,this[kt+et])[_e](/a{1}/g,this[kt+C])[_e](/d{2,}/g,this[kt+Je])[_e](/d{1}/g,this[kt+R])}}),Wn(t,kt+nn,{value:function(t){const e="object"==typeof t&&null!=t,n=this[kt+Z],i=this[kt+gt]-1;if(!e)return new f;const r="object"==typeof t.pre&&null!=t.pre;return h(t.start)&&t.start?new f(n,i,1):h(t.end)&&t.end?new f(n,i-1,0):r?h(t.pre.start)&&t.pre.start?new f(n,i-1,1):h(t.pre.end)&&t.pre.end?new f(n,i,0):new f:new f}})})(f[se]),(t=>{Wn(t,kt+Pe+ie,{get:function(){const t=new URLSearchParams(this.search),e=new c;return t[$e](((t,n)=>{e.set(t,n)})),a[Ln](e)}});let n=!1;Wn(t,kt+vn,{value:function(t={}){if(null==t)return;let e=this.href;const i="object"==typeof t[On]&&null!=t[On]&&!u[xn](t[On]);let r;return t[jn]&&t.tag?(r=new FormData,i&&a.keys(t.json)[$e]((e=>{r[Tn](e,t[On][e])})),t[jn][$e]((e=>{r[Tn](t.tag,e)}))):i&&(r=d.stringify(t[On])),new Promise(((i,s)=>{if(n)return s("等待請求完成.");n=!0;const l=new XMLHttpRequest;l.open(t.method||"GET",e),t[An]&&a[kn](t[An])[$e]((e=>{l.setRequestHeader(e,t[An][e])})),l.withCredentials=h(t.credentials)||!1,l.onreadystatechange=()=>{switch(l.readyState){case 1:case 2:case 3:break;case 4:n=!1;const t=l.responseText,e=l.status;if(/^(4|5)[0-9]{2}/[ye](o(e)))return s(t);try{i(d[En](t),e)}catch(n){i(t,e)}}},l.send(r)}))}}),Wn(t,jt+ze,{value:function(t){const n=this.href;return $history[ae](n),history.pushState(null,"",n),"string"==typeof t&&t[pe]()[oe]>0&&(e.title=t),this}}),Wn(t,Rt+ze,{value:function(t){const n=this.href;return $history.pop(),$history[ae](n),history.replaceState(null,"",n),"string"==typeof t&&t[pe]()[oe]>0&&(e.title=t),this}}),Wn(t,jt+Pe,{value:function(t){let e=this[ve]+this[be],n=this.$queryAll;return"object"!=typeof t||null==t||u[xn](t)||a.keys(t)[$e]((e=>n[e]=t[e])),a.keys(n)[$e](((t,i)=>e+=`${0==i?"?":"&"}${t}=${n[t]}`)),new URL(e)}}),Wn(t,Rt+Pe,{value:function(t){return this.query__()._query(t)}}),Wn(t,Pe+jt,{value:function(t){let e=this[ve]+this[be],n=this.$queryAll;return"string"==typeof t&&t[pe]()[oe]>0?n[t]=null:u[xn](t)&&t[$e]((t=>{n[String(t)]=null})),a.keys(n)[$e](((t,i)=>{e+=`${0==i?"?":"&"}${t}=${n[t]}`})),new URL(e)}}),Wn(t,Pe+Rt,{value:function(){return new URL(this[ve]+this[be])}}),Wn(t,kt+Pe,{value:function(t){return this.searchParams[Kt](t)}})})(g[se]),(t=>{[[kt,we+Le],[kt+Le[he](),"outer"+Le],[kt+Q,te+Te],[kt+Z,te+Ce],[kt+K,ne+Qt],[kt+I,ne+Zt],[kt+W+K,te+Qt],[kt+W+I,te+Zt],[kt+F+K,ee+Qt],[kt+F+I,ee+Zt]][$e]((e=>{Wn(t,e[0],{get:function(){return this[e[1]]}})})),Wn(t,kt+on,{get:function(){return this[Se][oe]}}),Wn(t,kt+D,{get:function(){const t=this[qt];return t instanceof Element?[...t[Se]].indexOf(this):-1}}),Wn(t,kt+He+ie,{get:function(){let t=new c;for(const e of this.attributes)t.set(e.name,e.value[pe]());return a[Ln](t)}}),[[kt+Ue+ie,Jt],[kt+Me+ie,Se],[kt+Fe+ie,Ee]][$e]((e=>{Wn(t,e[0],{get:function(){return[...this[e[1]]]}})})),Wn(t,"$text",{get:function(){let t=[];return[...this[Ee]].filter((t=>t.nodeType===Node.TEXT_NODE&&t.textContent[pe]()[oe]>0)).forEach((e=>t[ae](e.textContent[pe]()))),t.join(" ")}}),Wn(t,jt,{value:function(t=""){return this[we+Le]+=o(t),this}}),Wn(t,Rt,{value:function(t=""){return this[we+Le]=o(t),this}}),Wn(t,Tt,{value:function(t=!1){return this[Sn](h(t))}}),[[jt+Q,te+Te],[jt+Z,te+Ce]][$e]((e=>{Wn(t,e[0],{value:function(t=NaN){return"number"!=typeof t||isNaN(t)||(this[e[1]]=t),this}})})),[[jt+K,Ae],[jt+I,Ne],[jt+q+J,xe+Ce],[jt+q+z,xe+Te],[jt+q+T,xe+je],[jt+q+B,xe+Re],[jt+P+J,ke+Ce],[jt+P+z,ke+Te],[jt+P+T,ke+je],[jt+P+B,ke+Re]][$e]((e=>{Wn(t,e[0],{value:function(t){if("number"==typeof t||"string"==typeof t){t=o(t)[pe]();const n=/^\d+$/[ye](t);this[Oe][e[1]]=t+(n?"px":"")}return this}})})),[[jt+P,"_mt","_ml","_mb","_mr"],[jt+q,"_pt","_pl","_pb","_pr"]][$e]((e=>{Wn(t,e[0],{value:function(t,n,i,r){return void 0===t&&void 0===n&&void 0===i&&void 0===r||(void 0===n&&void 0===i&&void 0===r?n=i=r=t:void 0===i&&void 0===r?(i=t,r=n):void 0===r&&(r=n),this[e[1]](t||0),this[e[2]](r||0),this[e[3]](i||0),this[e[4]](n||0)),this}})})),Wn(t,Ue+Rt,{value:function(){return this.className="",this}}),Wn(t,Rt+Ue,{value:function(t=[]){return this.class__()[jt+Ue](t),this}}),Wn(t,xt+Ue,{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&this[Jt].contains(t)}}),Wn(t,xt+Ue+jt,{value:function(t=!1,e=[]){return h(t)&&"string"==typeof e&&e[pe]()[oe]>0?this.class_(e):this[jt+Ue](e),this}}),Wn(t,xt+jt+Ue,{value:function(t=!1,e=[]){return h(t)&&"string"==typeof e&&e[pe]()[oe]>0?this[jt+Ue](e):this.class_(e),this}}),[jt+Oe,jt+De,jt+He][$e]((e=>{Wn(t,e,{value:function(t={}){return("object"!=typeof t||null==t||u[xn](t)?[]:a.keys(t)).filter((t=>"string"==typeof t&&t[pe]()[oe]>0)).forEach((n=>{e===jt+Oe?this[Oe][n]=t[n]:e===jt+De?this[ue][n]=t[n]:e===jt+He&&this[de+Yt](n,t[n])})),this}})})),[jt+Ue,Ue+jt,Oe+jt,De+jt,He+jt][$e]((e=>{Wn(t,e,{value:function(t=[]){return(u[xn](t)?t:"string"==typeof t&&t[pe]()[oe]>0?t[dn](/[,. ]/):[]).filter((t=>"string"==typeof t&&t[pe]()[oe]>0)).forEach((t=>{e===jt+Ue?this[Jt].add(t):e===Ue+jt?this[Jt].remove(t):e===Oe+jt?this[Oe][t]="":e===De+jt?delete this[ue][t]:e===He+jt&&this["remove"+Yt](t)})),this}})})),[kt+Oe,kt+De,kt+He][$e]((e=>{Wn(t,e,{value:function(t=""){if(!("string"!=typeof t||t[pe]()[oe]<1))return e===kt+Oe?this[Oe][t]:e===kt+De?this[ue][t]:e===kt+He?this[Kt+Yt](t):void 0}})})),[[xt+De,kt+De],[xt+He,kt+He]][$e]((e=>{Wn(t,e[0],{value:function(t="",n=""){return!("string"!=typeof t||t[pe]()[oe]<1)&&((n=o(n))[pe]()[oe]<1?null!=this[e[1]](t):this[e[1]](t)===n)}})})),Wn(t,jt+Me,{value:function(t=[],e){return"string"==typeof t&&t[pe]()[oe]>0||"number"==typeof t?this[we+Le]+=t:u[xn](t)&&t[oe]>1?t[$e]((t=>{"string"==typeof t&&t[pe]()[oe]>0||"number"==typeof t?this[we+Le]+=t:null!=t&&this[qe](t)})):u[xn](t)&&1===t[oe]?e instanceof Element&&e[qt]===this?this[Ge](t[0],e):"number"==typeof e&&s[an](e)<=this[Se][oe]?this[Ge](t[0],this[Se][e]):null!=t[0]&&this[qe](t[0]):e instanceof Element&&e[qt]===this?this[Ge](t,e):"number"==typeof e&&s[an](e)<=this[Se][oe]?this[Ge](t,this[Se][e]):null!=t&&this[qe](t),this}}),Wn(t,Rt+Me,{value:function(t=[]){return this.__()._child(t),this}}),Wn(t,kt+Me,{value:function(t=[]){let e=this;return u[xn](t)?t[$e]((t=>{"string"==typeof t&&t[pe]()[oe]>0?e=e[Gt](t):"number"==typeof t&&s[an](t)<=e[Se][oe]&&(e=e[Se][(t<0?e[Se][oe]:0)+t])})):"string"==typeof t&&t[pe]()[oe]>0?e=this[Gt](t):"number"==typeof t&&s[an](t)<=this[Se][oe]&&(e=this[Se][(t<0?this[Se][oe]:0)+t]),e===this?void 0:e}}),Wn(t,"$parent",{value:function(t=0){let e=this[qt];if("number"==typeof t&&t>0)for(var n=0;n0)for(var n=0;n0)for(var n=0;n0?this[Gt](t):null}}),Wn(t,kt+"sel"+ie,{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&this[Gt+ie](t)||[]}}),Wn(t,"$rm",{value:function(){this.remove()}}),Wn(t,"_go",{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&(this.href=t),this.target="_self",this}}),Wn(t,"_open",{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&(this.href=t),this.target="_blank",this}}),Bn[$e]((e=>Wn(t,`_${e}`,{value:function(t){return this[`on${e}`]=t instanceof Function?t:null,this}}))),Wn(t,"_video",{value:function(t={}){if(this instanceof HTMLVideoElement&&(this._attr({controlsList:["nodownload","noremoteplayback"].join(",")}),"string"==typeof t.preload&&(this.preload=t.preload),"boolean"==typeof t.loop&&(this.loop=t.loop),"boolean"==typeof t.muted&&(this.muted=t.muted),"boolean"==typeof t.controls&&(this.controls=t.controls),"boolean"==typeof t.playsinline&&t.playsinline&&this._attr({playsinline:""}),"boolean"==typeof t.download||"boolean"==typeof t.remote)){let e=[];t.download||e[ae]("nodownload"),t.remote||e[ae]("noremoteplayback"),this._attr({controlsList:e.join(" ")})}return this}}),Wn(t,jt+ln,{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&(this[Oe][ln]=t),this}}),Wn(t,te+un+St,{value:function(t,e){if("number"!=typeof t)return this;const n=this[ne+Qt],i=this[te+Qt];let r=i-t{Wn(t,kt+on,{get:function(){return this[Se][oe]}}),Wn(t,kt+Me+ie,{get:function(){return[...this[Se]]}}),Wn(t,kt+Fe+ie,{get:function(){return[...this[Ee]]}}),Wn(t,kt+yn,{get:function(){let t=e[Wt]("div");return t[qe](this),t[`${we}${Le}`]}}),Wn(t,kt+Le[he](),{get:function(){let t=e[Wt]("div");return t[qe](this),t[`${we}${Le}`]}}),Wn(t,Tt,{value:function(t=!1){return this[Sn](h(t))}}),Wn(t,jt+Me,{value:function(t=[]){return"string"==typeof t&&t.trim().length>0||"number"==typeof t?this[qe](e[Cn](String(t))):u[xn](t)&&t.length>1?t[$e]((t=>{"string"==typeof t&&t.trim().length>0||"number"==typeof t?this[qe](e[Cn](String(t))):null!=t&&this[qe](t)})):u[xn](t)&&1===t.length?this[qe](t[0]):null!=t&&this[qe](t),this}})})(m[se]),(n=>{Wn(n,"$base64",{value:function(t=gn+"/"+cn){const n=e[Wt]($n),i=n[Xt]("2d");if(i)return n[Ae]=this[Ae],n[Ne]=this[Ne],i.drawImage(this,0,0),n.toDataURL(t,1)}}),Wn(n,Vn,{value:function(e=gn+"/"+cn){const n=this.$base64(e)[dn](";base64,"),i=n[0][dn](":")[1],r=t.atob(n[1]),s=r.length,o=new Uint8Array(s);for(let t=0;t{const i=gn+"/"+(t==hn?cn:fn);Wn(n,kt+t,{value:function(t){const n="number"==typeof t,r=e[Wt]($n),o=r[Xt]("2d"),l=parseInt(this[Ae]),u=parseInt(this[Ne]);if(o){if(n&&tnull==this.src?gn+"."+t:this.src[pn](this.src.lastIndexOf("/")+1))(),s="a"._(),o=g.createObjectURL(this.$blob(i));s.href=o,s.download=n??r,s._attr({type:"application/octet-stream"}),e.body[qe](s),s.click(),s.$rm(),URL.revokeObjectURL(o)}})}))})($[se]);const Xn=()=>{null==$SVG_Observer&&($SVG_Observer=new IntersectionObserver((t=>{t.forEach((t=>{if(!t.isIntersecting)return;const e=t.target,n=(e.$attr("src")||"")[pe]();n.length<1||n.$$200().then((t=>{$SVG_Observer[wn](e),t.text().then((t=>{const n="div"._(t),i=n[kt+Me](0);i.id=n.id,n[Jt][$e]((t=>i[Jt].add(t))),i.onclick=n.onclick,null!=e[qt]&&e[qt][jt+Me](i,e),e.remove()})).catch((t=>{e.__("☒")}))})).catch((t=>{$SVG_Observer[wn](e),e.__("☒")}))}))})),[].slice.call("span.svg".$all)[$e]((t=>$SVG_Observer.observe(t))))},Kn=()=>{null==$Lazy_Observer&&($Lazy_Observer=new IntersectionObserver(((t,e)=>{t[$e]((t=>{const e=t.target;if(t.isIntersecting){const t=e.parentElement,n=(e.dataset.src||"").trim(),i=e.$$class("fit"),r=e.$$class("fit-p");if(n.length<1)return;e.class_("lazyload"),delete e.dataset.src,n.$$200(!0).then((n=>{$Lazy_Observer[wn](e),e.src=n.src,i&&(t.style["aspect-ratio"]=`${n.img.target.$nw} / ${n.img.target.$nh}`),r&&(t.style["aspect-ratio"]=`${n.img.target.$nw} / ${n.img.target.$nh}`)})).catch((t=>{$Lazy_Observer[wn](e),e.src="https://cdn.jsdelivr.net/gh/pardnchiu/PDRenderKit@latest/static/image/404.svg"}))}}))})),[].slice.call("img.lazyload".$all)[$e]((t=>$Lazy_Observer[wn](t))))};t._SVGListener=Xn,t._LazyListener=Kn,t._Listener=t=>{if(null==t)return Xn(),void Kn();0!=t.svg&&Xn(),null!=t.lazyload&&Kn()},t.$file=t=>new Promise(((e,n)=>{if(!t)return()=>n();let i=new FileReader;i.readAsDataURL(t),i.onload=t=>e(t),i.onerror=t=>n(t)})),t.$imageFromImageFile=t=>new Promise(((e,n)=>{if(!t)return()=>n();let i=new FileReader;i.readAsDataURL(t),i.onload=function(t){if(!t.target)return()=>n();let i=new Image;i.src=String(t.target.result),i.onload=()=>e(i),i.onerror=t=>n(t)}})),t.$imageFromVideoFile=t=>new Promise(((e,n)=>{if(!t)return()=>n();let i=new FileReader;i.readAsArrayBuffer(t),i.onload=function(){if(!i.result)return()=>n();let r=new Blob([i.result],{type:t.type}),s=URL.createObjectURL(r),o=document.createElement("video");o.preload="metadata",o.src=s,o.muted=!0,o.playsInline=!0,o.onloadeddata=function(){let t=document.createElement("canvas"),i=t.getContext("2d");if(t.width=o.videoWidth,t.height=o.videoHeight,!i)return()=>n();i.drawImage(o,0,0,t.width,t.height);let r=t.toDataURL("image/jpg"),s=new Image;s.src=r,s.onload=()=>e(s),s.onerror=t=>n(t),o.ontimeupdate=null,o.pause()},o.onerror=t=>n(t),o.play()}})),t[Vn]=(e,n)=>{let i=t.atob(e.split(",")[1]),r=new ArrayBuffer(i.length),s=new Uint8Array(r);for(let t=0;t{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",n=e[oe];let i="";for(let r=0;r{let e=`${document.cookie};`,n=new RegExp(`${t}=([^ ;]+)?`),i=e.match(n)??[],r=i[i.length-1];if(!i.length||null==r)return null;r=decodeURIComponent(i[i.length-1]);try{return JSON.parse(r)}catch(t){return r}},t._cookie=(t,e,n)=>{const i=(new Date).getTime();let r;"string"!=typeof t||String(t||"").trim().length<1||(e="object"==typeof e&&null!=e?JSON.stringify(e).trim():String(e).trim(),r="number"==typeof n?new Date(i+1e3*n):new Date(i+36e5),document.cookie=`${t}=${e}; expires=${r.toUTCString()}; path=/`)},t[Tt]=(t="")=>(console.log(t),String(t).$),t.$all=(t="")=>String(t).$all,t.$url=(t="")=>(t.trim().length>0?t:location.href).$url,t._child=(t=[],e)=>{document.body._child(t,e)},t.__child=(t=[])=>{document.body.__child(t)}})(window,document,navigator,location,console,Math,String,Number,Array,Object,Map,Boolean,Date,URL,Image,JSON,RegExp,Element,DocumentFragment,_a,_b,_c,_d,_e,0,0,0,_i,0,_0,_1,_2,_3,_4,0,_6,_7,_8,0,0,_1_,_2_,_3_,_4_,_5_,0,_7_,_8_,_9_,__0,0,__2,__3,__4,0,$0,0,$2,$3,0,0,$6,$7,0,0,$0_,$1_,$2_,0,0,$5_,0,$7_,0,0,0,0,0,$_3,$_4,0,"$","$$",0,"_$","_","__","","-",".","/",":",0,0," "),((t,e,n,i,r,s,o,l,u,a,c,h,f,g,$,d,_,p)=>{const m=/\{\{\s*([\w\.]+(\s*[\+\-\*\/\%]\s*[0-9]+)?)\s*\}\}/gi,y=/{{\s*([\w\.]+(\s*[\+\-\*\/\%]\s*[0-9]+)?)\s*}}/i,v=/^\(?\s*([\w]+)(\s*\,|\s+)?/i,b=/\,\s*([\w]+)\s*\)/i,w=/\s+([\w\.]+)\s*$/i,L=/\s*[\!\>\<\=]+\=*\s*/,S=/\s*[\+\-\*\/\%]\s*/,E=":path",O=":for",k=":if",x=":else-if",C=":else",T=":model",j="parentElement",R="textContent",A="defineProperty",N="dom",U="path",I="data",D="event",H="next",M="done",z="trim",P="id",F="isArray",G="style",q="backgroundColor",V="color",B="innerHTML",W="forEach",J="value",Y="body",X="nodeType",K="length",Q="match",Z="shift",tt="isFor",et="isAry",nt="isObj",it="$attr",rt="$attrAll",st="filter",ot="TEXT_NODE",lt="addEventListener",ut="dom-tag",at="$next",ct="$parent",ht="$$class",ft="$ary",gt="$nodeAll",$t="_child",dt="$sel",_t="$selAll",pt="$keys",mt="attr_",yt="$regexp",vt="$rm",bt="_attr";var wt,Lt;function St(t){return`*[dom-tag='${t}']`}wt=s[A],Lt=n.prototype,wt(Lt,"convertText",{value:function(t,e){t=(t||"").__(/(\?|\.|\+|\*)/g,"\\$1");const n=this.replace(`{{\\s*?${t}\\s*?}}`[yt]("i"),e);return n??""}});t.PD=class{dom;path;data;event;done={};constructor(e={}){t._Listener(e.listener);const n="string"==typeof e[P]?`#${e[P]}`.$:null;if(!(n instanceof Element))return;this[N]=n,this[U]={},this[I]=e[I],this[D]=e[D]||{};const i=Date.now();this.#t(n,e[I]||{}).then((t=>{const n=Date.now()-i;null!=e[H]&&(console.log("渲染完畢, 耗時"+n/1e3+"秒"),e[H](this[N]))}))}#e(t,e,n){let i=e[t];null==i||"object"!=typeof i||null==i||r[F](i)?null!=i&&s[A](e,t,{get:()=>i,set:t=>{i=t,n(t)}}):i[pt][W]((t=>{this.#e(t,i,n)}))}async#t(s,l={},u={}){if(!e.$init)return s;const a=async(t,n={},i={})=>{const r=t[ct](0),s=t[rt][E];if(null!=r&&null!=s){if(null==this[U][s])this[U][s]=r;else if(this[U][s]==r)return;fetch(s).then((async s=>{const o=await s.text();"div"._(o)[gt][W]((e=>{t[$t](e)})),o[g](/new\s+PD/)||this.#t(t,n,i),t[gt][W]((n=>{n instanceof HTMLScriptElement?e[Y][$t]("script"._(n.$)):r[$t](n,t)})),t[vt]()})).catch((()=>{t[vt]()}))}},c=(e,n={},i={})=>{const s=e[ct](0),o=(e[it](O)||"")[z]();if(null==s||o[K]<1)return;const l=t.$key(20),u=e._$(!0)[bt]({[ut]:l}),a="temp"._(),c=e[at](0);e[vt]();const h=(o[Q](/^\(?\s*(\w+)/)||[]).$(1),g=(o[Q](/\,\s*(\w+)/)||[]).$(1),d=(o[Q](w)||[]).$(1),m=A(d,n,(t=>{const e=s[dt](St(l))?.$i;s[_t](St(l))[W]((t=>t[vt]())),s[$t](u._$(!0),e),this.#t(s,n,{[tt]:!0})}));r[F](m)?m[W](((t,e)=>{const i=u._$(!0);a[$t](i);const r={[`${h}`]:t,[`${g}`]:e};"object"==typeof t&&null!=t?(t[pt][W]((e=>{this.#e(e,t,(()=>{const t=s[dt](St(l))?.$i;s[_t](St(l))[W]((t=>t[vt]())),s[$t](u._$(!0),t),this.#t(s,n,{[tt]:!0})}))})),f(i,r),$(i,r,{[tt]:!0,[et]:!0}),_(i,r),this.#t(i,r,{[tt]:!0})):(f(i,r),$(i,r,{[tt]:!0,[et]:!0}),_(i,r))})):"object"==typeof m&&null!=m&&m[pt][W]((t=>{const e=u._$(!0);a[$t](e),this.#e(t,m,(()=>{const t=s[dt](St(l))?.$i;s[_t](St(l))[W]((t=>t[vt]())),s[$t](u._$(!0),t),this.#t(s,n,{[tt]:!0})}));const i=m[t],o={[`${h}`]:t,[`${g}`]:i};f(e,o),$(e,o,{[tt]:!0,[nt]:!0}),p(e,o),this.#t(e,o,{[tt]:!0,[et]:r[F](i)})})),s[$t](a,c)},h=(e,r={},s={})=>{const l=e[ct](0),u=e.$i,a=(e[it](k)||"")[z]();if(null==l||a[K]<1)return;let c,h,f=[e],g=e[at](0);for(null!=g&&(c=null!=g[it](x),h=null!=g[it](C));null!=g&&(c||h);)f.push(g),g=g[at](0),null!=g&&(c=null!=g[it](x),h=null!=g[it](C));const $=t.$key(20),d="temp"._(f._$((t=>t._$(!0)[bt]({[ut]:$}))));let _=!1;f[W]((t=>{if(t[bt]({[ut]:$}),_)return t[vt]();const e=(t[it](k)||t[it](x)||t[it](C)||"")[z](),s=null!=t[it](C),a=e[ft](L).$(0),c=e[ft](L).$(1),h=((e[Q](L)||[]).$(0)||"")[z](),f=A(a,r,(t=>{l[_t](St($))[W]((t=>t[vt]())),l[$t](d._$(!0),u),this.#t(l,r,{[tt]:!0})}));h.length<1?_=o(f):">"===h?_=(i(f)||0)>(i(c)||0):"<"===h?_=(i(f)||0)<(i(c)||0):">="===h||">=="===h?_=(i(f)||0)>=(i(c)||0):"<="===h||"<=="===h?_=(i(f)||0)<=(i(c)||0):"=="===h||"==="===h?_="null"==c?null==f:"true"==c?o(f):"false"==c?!o(f):"empty"==c?n(f||"")[K]<1:n(f||"")==n(c):"!="!==h&&"!=="!==h||(_="null"==c?null!=f:"true"==c?!o(f):"false"==c?o(f):"empty"==c?n(f||"")[K]>0:n(f||"")!=n(c)),t[mt](k)[mt](x)[mt](C),_||s?_&&t.class_("dom-temp"):t[vt]()})),this.#t(l,r,s)},f=(t,i={})=>{const r=t[it](ut)||"",s=t[rt][pt][st]((t=>t[g](/^:[\w\-]+$/)))[st]((t=>!t[g](/\:(path|for|if|else\-if|else|model)/)));s[K]<1||s[W]((s=>{const o=(t[it](s)||"")[z](),l=A(o,i,(n=>{const i=e[Y][_t](St(r));i[K]<1||i[W]((e=>{u(t,n)}))}));function u(t,e=""){e=n(e),":id"===s?t[P]=e:":class"===s?t._class(e):":src"===s?t.src=e:":alt"===s?t.alt=e:":href"===s?t.href=e:":html"===s?t[B]=e:":bgcolor"===s?null==e||e[K]<1?t[G][q]=o:t[G][q]=e:":color"===s?null==e||e[K]<1?t[G][V]=o:t[G][V]=e:e[z]()[K]<1?t[mt](`${s.__(/^:/,"")}`):t[bt]({[`${s.__(/^:/,"")}`]:e})}u(t,l),t[mt](s)}))},$=(t,e={},n={})=>{(()=>{const e=t[ct](0),n=t[rt][pt][st]((t=>t[g](/^@[\w]+$/)));null==e||n[K]<1||n[W]((e=>{const n=e.__(/\@/,"on"),i=t[it](e);t[mt](e),i&&(t[n]=this[D][i])}))})(),(()=>{if(!o(n[tt]))return;const i=(t[it](O)||"")[z](),r=(i[Q](/^\(?\s*(\w+)/)||[]).$(1),s=(i[Q](/\,\s*(\w+)/)||[]).$(1);t[rt][pt][st]((t=>t[g](/^:@[\w]+$/)))[W]((i=>{const l=i.__(/^\:\@/,"on");let u=(t[it](i)||"")[z]()[ft](".")[st]((t=>t[K]>0)),a=e,c=u.$(0),h=a[c];if(u[Z](),!(o(n[et])&&c!=r||o(n[nt])&&c!=s)){for(;(u||[])[K]>0;)a=h,c=u.$(0),h=a[c],u[Z]();null!=h&&(t[l]=this[D][h])}}))})()},d=(n,i={},r={})=>{const s=n[it](ut)||t.$key(20);n[bt]({[ut]:s});const o=n._$(!0),l=n[ct](0),u=n.$i,a=n[B][g](m);null!=parent&&a&&n[gt][st]((t=>t[j]===n&&t[X]===Node[ot]))[W]((t=>{((t[R]||"")[Q](m)||[])[W]((n=>{const r=(n[Q](y)||[]).$(1);if(null==r)return;const a=A(r,i,(t=>{const n=e[Y][dt](St(s));null!=n&&null!=l&&(l[$t](o._$(!0),u),n[vt](),this.#t(l,i))}));t[R]=(t[R]||"").convertText(r,a)||""}))}))},_=(t,e={})=>{const n=t[it](O)||"",r=(n[Q](v)||[]).$(1),s=(n[Q](b)||[]).$(1);let o=e[s];t[mt](O),t[gt][st]((e=>e[j]===t&&e[X]===Node[ot]))[W]((t=>{((t[R]||"")[Q](m)||[])[W]((n=>{let l=(n[Q](y)||[]).$(1),u=l[ft]("."),a=e,c=u.$(0),h=a[c];if(u[Z](),c===r){for(;u[K]>0;)a=h,c=u.$(0),h=a[c],u[Z]();l=l.__(/(\?|\.|\+|\*)/g,"\\$1");let e=(t[R]||"").__(`{{\\s*?${l}\\s*?}}`[yt]("i"),h);null==e&&(e=""),t[R]=e}const f=c[ft](S).$(0),$=c[ft](S).$(1);if(f===s){null==c||(c[g](/\+/)?o+=i($)||0:c[g](/\-/)?o-=i($)||0:c[g](/\*/)?o*=i($)||0:c[g](/\//)?o/=i($)||0:c[g](/\%/)&&(o%=i($)||0)),l=l.__(/(\?|\.|\+|\*)/g,"\\$1");let e=(t[R]||"").__(`{{\\s*?${l}\\s*?}}`[yt]("i"),o);null==e&&(e=""),t[R]=e}}))})),this.#t(t,e,{[tt]:!0})},p=(t,e={})=>{const n=t[it](O)||"",i=(n[Q](v)||[]).$(1),r=(n[Q](b)||[]).$(1);t[mt](O),t[gt][st]((e=>e[j]===t&&e[X]===Node[ot]))[W]((t=>{((t[R]||"")[Q](m)||[])[W]((n=>{let s=(n[Q](y)||[]).$(1),o=s[ft]("."),l=e,u=o.$(0),a=l[u];if(o[Z](),u===i){s=s.__(/(\?|\.|\+|\*)/g,"\\$1");let e=(t[R]||"").__(`{{\\s*?${s}\\s*?}}`[yt]("i"),a);null==e&&(e=""),t[R]=e}if(u===r){for(;o[K]>0;)l=a,u=o.$(0),a=l[u],o[Z]();s=s.__(/(\?|\.|\+|\*)/g,"\\$1");let e=(t[R]||"").__(`{{\\s*?${s}\\s*?}}`[yt]("i"),a??"");null==e&&(e=""),t[R]=e}}))})),this.#t(t,e,{[tt]:!0})},A=(t="",e={},n)=>{if(t[z]()[K]<1)return;const i=t.$$(/^LENGTH\(.+\)/);let r=(t=t.__(/^LENGTH\(|\)$/g,""))[ft]("."),s=e,o=r.$(0),l=s[o];for(r[Z]();r[K]>0;)s=l,o=r.$(0),l=s[o],r[Z]();return this.#e(o,s,(t=>{n(t)})),i?l[K]:l};return s[ct](0)==this[N]&&(this[M][s.$i]=!1),await new Promise((t=>(s.$childAll[W]((async t=>{const e=t[rt];if(t[ht]("lazyload")&&null!=$Lazy_Observer&&$Lazy_Observer.observe(t),t[ht]("svg")&&"SPAN"===t.tagName&&null!=$SVG_Observer&&$SVG_Observer.observe(t),null!=t[ct](0)&&null==e[x]&&null==e[C])return e[E]?a(t,l,u):e[O]?c(t,l,u):(h(t,l,u),((t,e={})=>{const n=t[ct](0),i=(t[it](T)||"")[z]();if(t[mt](T),A(i,e,(e=>{t[J]=e})),null==n||null==i||i[z]()[K]<1)return;const r=t instanceof HTMLInputElement,s=t instanceof HTMLTextAreaElement,o=t instanceof HTMLSelectElement;r||s?(t[lt]("keyup",(t=>{e[i]=t.target[J]})),t[lt]("change",(t=>{e[i]=t.target[J]}))):o&&t[lt]("change",(t=>{e[i]=t.target[J]}))})(t,l),f(t,l),$(t,l,u),d(t,l,u),await this.#t(t,l,u))})),s.class_("dom-temp"),s[ct](0)==this[N]||s==this[N]?(this[M][s.$i]=!0,t(s)):null)))}}})(window,document,String,Number,Array,Object,Boolean,Image,JSON,RegExp,Element,DocumentFragment,0,"$$");class $listener{observer;constructor(t){t=t??{},this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&t.do instanceof Function&&t.do(e.target)}))})),"string"==typeof t.selector&&[].slice.call(document.querySelectorAll(t.selector)).forEach((t=>this.observe(t)))}observe(t){this.observer.observe(t)}unobserve(t){this.observer.unobserve(t)}}
\ No newline at end of file
+"use strict";let $SVG_Observer,$Lazy_Observer,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_0_,_1_,_2_,_3_,_4_,_5_,_6_,_7_,_8_,_9_,__0,__1,__2,__3,__4,__5,$0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$0_,$1_,$2_,$3_,$4_,$5_,$6_,$7_,$8_,$9_,$_0,$_1,$_2,$_3,$_4,$_5,$vw,$vh,$history=[],$$android,$$ios,$$mobile,$$desktop;((t,e,n,i,r,s,o,l)=>{const u="innerWidth",a="innerHeight",c="test",h="userAgent";i(r[s]({length:26},((t,e)=>String.fromCharCode(97+e))).map(((t,e)=>{let n=e<10,i=e>=10&&e<20,r=e>=20,s=String(e),o=s.charAt(s.length-1),l=e=>`${e?"$":"_"}${r?"_":""}${o}${i?"_":""} = "${e?t.toUpperCase():t}";`;return`${l(0)}${l(1)}${n?`_${t} = ${e};`:""}`}))[l]("")),$$android=/android/i[c](e[h]),$$ios=/iphone|ipad/i[c](e[h]),$$mobile=$$android||$$ios,$$desktop=!$$mobile,$history=[n.href],[$vw,$vh]=[t[u],t[a]],t.onresize=e=>{[$vw,$vh]=[t[u],t[a]]}})(window,navigator,location,eval,Array,"from",0,"join"),((t,e,n,i,r,s,o,l,u,a,c,h,f,_,g,$,d,p,m,y,v,T,b,E,w,L,A,O,S,I,R,N,C,U,F,M,D,x,j,k,V,G,P,B,H,z,X,Y,q,J,W,K,Q,Z,tt,et,nt,it,rt,st,ot,lt,ut,at,ct,ht,ft,_t,gt,$t,dt,pt,mt,yt,vt,Tt,bt,Et,wt,Lt,At,Ot,St,It,Rt,Nt,Ct,Ut,Ft,Mt,Dt,xt,jt,kt,Vt,Gt)=>{const Pt="getElementById",Bt="querySelector",Ht="parentElement",zt="previousElementSibling",Xt="nextElementSibling",Yt="createElement",qt="classList",Jt="Attribute",Wt="getContext",Kt="get",Qt="Width",Zt="Height",te="scroll",ee="natural",ne="client",ie="All",re="toString",se="prototype",oe="length",le="getHours",ue="dataset",ae="push",ce="toUpperCase",he="toLowerCase",fe="floor",_e="size",ge="forEach",$e="set",de="replace",pe="trim",me="match",ye="test",ve="origin",Te="pathname",be="inner",Ee="HTML",we="children",Le="childNodes",Ae="style",Oe="margin",Se="padding",Ie="Top",Re="Left",Ne="Bottom",Ce="Right",Ue="width",Fe="height",Me="class",De="line",xe="data",je="attr",ke="child",Ve="history",Ge="query",Pe="node",Be="insertBefore",He="appendChild",ze="yy",Xe="MM",Ye="DD",qe="dd",Je="HH",We="hh",Ke="mm",Qe="ss",Ze="init",tn="url",en="timestamp",nn="date",rn="format",sn="map",on="len",ln="display",un="To",an="abs",cn="jpeg",hn="jpg",fn="png",_n="image",gn="canvas",$n="split",dn="font",pn="substring",mn="mt",yn="str",vn="req",Tn="gone",bn="unobserve",En="fromEntries",wn="cloneNode",Ln="parse",An="json",On="keys",Sn="isArray",In="createTextNode",Rn="append",Nn="files",Cn="values",Un="header",Fn="href",Mn="join",Dn="currentScript",xn="parentNode",jn="removeChild",kn="getAttribute",Vn=[x,q][Mn](Ut),Gn=[J,R][Mn](Ut),Pn=[I,X,C,P][Mn](Ut),Bn=[D,x,J][Mn](Ut),Hn=[dt,rt,mt,U,P,C,U,X,ht,x,q][Mn](Ut),zn="$blob",Xn=["load","click","dblclick","scroll","mousedown","mouseup","mouseenter","mouseleave","mouseover","mouseout","mousemove","touchstart","touchmove","touchenter","touchleave","touchend","touchup","drop","dragstart","dragend","dragenter","dragover","dragleave","focus","blur","input","keydown","keyup","change","contextmenu","cut","paste"],Yn=a.defineProperty;let qn=!0;var Jn;qn&&(qn=!1,function(t){const n=[N,B,H,Z,X,x,M,D,q][Mn](Ut),s=[it,X,U,I,q,B,X][Mn](Ut),o=[dt,Pn,Vt,ft,q,C][Mn](Ut),l=[dt,Pn,Vt,it,Bn][Mn](Ut),a=[[[dn,Ft,_e,xt],[v,E,H,Q]],[[De,Ft,Fe,xt],[T,O,H,Q]]],c=[[["%",N,t]],[[lt,Vn,ut,Gn,xt],[D,q,q,H,Y,xt,Dt,Dt,M,Vn,D,Gn,Mt,N,B,G,Dt,H,Pn,N,Bn,Dt,t]],[[s,xt],[l]],[[ft,x,N,U,P,Y,U,xt],[lt,dt,ft,Ft+b+Mt+y]]][sn]((t=>u[Sn](t)?t[sn]((t=>t[Mn](Ut)))[Mn](Vt):t)).join("\n"),h=a[sn]((t=>u[Sn](t)?t[sn]((t=>t[Mn](Ut)))[Mn](Ut):t)).join(";"),f=e[Dn][kn](n);f&&f===o?(e[Ot+Ze]=i[Fn],e[Ot+s]=l,r.log(c,h)):e[Dn][xn][jn](e[Dn])}(Hn)),Jn=o[se],Yn(Jn,Ot+on,{get:function(){return this[re]()[oe]}}),Yn(Jn,Ot+"num",{get:function(){const t=l(this[re]()[de](/\,/g,""));return isNaN(t)?null:t}}),Yn(Jn,Ot+An,{get:function(){try{return $[Ln](this[re]())}catch(t){return null}}}),Yn(Jn,Ot+Ee[he](),{get:function(){const t={" ":" ","<":"<",">":">",'"':""","'":"'"};return this[re]()[de](/[ \<\>\"\']/g,(e=>t[e]))}}),Yn(Jn,Ot+"img",{get:async function(){return new Promise(((t,e)=>{let n=new g;n.src=this[re](),n.crossOrigin="anonymous",n.onload=()=>{t(n)},n.onerror=e}))}}),Yn(Jn,St+An,{get:function(){return null!=this[Ot+An]}}),Yn(Jn,St+mn,{get:function(){return this[re]()[pe]()[oe]<1}}),Yn(Jn,Ct,{value:function(t="",e=""){return this[re]()[de](t,e)}}),Yn(Jn,Ot+"ary",{value:function(t=""){return this[re]()[$n](t)}}),Yn(Jn,Ot+"regexp",{value:function(t=""){return new d(this[re](),t)}}),Yn(Jn,"$fit",{value:function(t){if(null!=t)return this[re]()[me](t)}}),Yn(Jn,"$en",{value:function(t){const e=this[re]();return null!=t&&t?encodeURIComponent(e):encodeURI(e)}}),Yn(Jn,"$de",{value:function(t){const e=this[re]();return null!=t&&t?decodeURIComponent(e):decodeURI(e)}}),Yn(Jn,"$copy",{value:async function(){try{await n.clipboard.writeText(this[re]())}catch(t){console.error(t)}}}),Yn(Jn,St,{value:function(t){const e=this[re]();return t instanceof d?t[ye](e):null==t?e[pe]()[oe]>0:t[pe]()===e[pe]()}}),Yn(Jn,"$$200",{value:async function(t){return new Promise((async(e,n)=>{try{const i=await fetch(this[re]());if(i.ok){const r=i.headers[Kt]("Content-Type");if(r&&r.startsWith("image/")){if("image/svg+xml"==r&&!t)return void e(i);const s=await i.blob(),o=new Image,l=URL.createObjectURL(s);o.src=l,o.onload=()=>{e({src:l,img:o})},o.onerror=t=>{URL.revokeObjectURL(l),n(t)}}else e(i)}else n(new Error(`HTTP error! status: ${i.status}`))}catch(t){n(t)}}))}}),Yn(Jn,Ot+tn,{get:function(){const t=this[re]();try{return new _(t)}catch(e){return new _(i[ve]+t)}}}),Yn(Jn,Ot+Ge+ie,{get:function(){return this[re]()[Ot+tn].$queryAll}}),[Ot+vn,Nt+Ve,Ct+Ve,Nt+Ge,Ct+Ge,Ge+Nt,Ge+Ct,Ot+Ge][ge]((t=>Yn(Jn,t,{value:function(){const e=this[re]()[Ot+tn];return e[t].apply(e,a[Cn](arguments))}}))),Yn(Jn,"_fa",{get:function(){return("i."+this[re]()[de](/\s/,"."))._()}}),Yn(Jn,Ot,{get:function(){const t=this[re]();return t.startsWith("#")?e[Pt](this[pn](1)):/[\.\[\]]/[ye](t)?e[Bt](t):e[Pt](t)||e[Bt](t)}}),Yn(Jn,Ot+"all",{get:function(){return e[`${Bt}${ie}`](this[re]())}}),Yn(Jn,Nt,{value:function(t,n){const r=/^\w+(?=[\#\.]*)/i,s=/\.([\w_-]+)?/gi,o=r[ye](this)?this[me](r)[0]:null,l=/^(svg|rect|circle|ellipse|line|polyline|polygon|path|text|tspan|g|defs|symbol|image|use|clipPath|mask|linearGradient|radialGradient)$/i[ye](o),c="temp"===this[re](),h="txt"===this[re](),f=c?e.createDocumentFragment():h?e[In](String(t)):l?e.createElementNS("http://www.w3.org/2000/svg",o):e[Yt](o),_=s[ye](this)?this[me](s):[],g=this[me](/\#([\w_-]+)?/i),$=[it,X,U,I,q,B,X][Mn](Ut),d=[dt,Pn,Vt,it,Bn][Mn](Ut);if(h)return f;g&&(f.id=g[1]),_[ge]((t=>f[qt].add(t[de](/^\./,""))));const p=e[Ot+Ze],m=e[Ot+$];if(!p||p!=i[Fn]||!m||m!=d)return f;let y,v;if(/^span\.svg/i[ye](this)&&null!=$SVG_Observer&&$SVG_Observer.observe(f),null==t&&null!=n&&([t,n]=[n,null]),null!=t&&null!=n)[y,v]=[t,n];else if(null==n)"string"==typeof t||"number"==typeof t||u[Sn](t)?v=t:y=t;else if(null==t)return f;const T="input"===o;if(T||"textarea"===o){const t=/\s(.+)/i,e=this[me](t);f.placeholder=e?e[1]:"";const n=/\@(\w+)/i,i=this[me](n);T&&(f.type=i?i[1]:"test")}if("object"==typeof y&&null!=y&&a.keys(y)[ge]((t=>{const e=y[t];["value","innerText","innerHTML","textContent","contentEditable"].includes(t)?f[t]=e:["color","backgroundColor"].includes(t)?f[Ae][t]=e:"style"===t?a.keys(e)[ge]((t=>f[Ae][t]=e[t])):"lazyload"===t?null!=$Lazy_Observer?(f[qt].add("lazyload"),f[$e+Jt]("data-src",e),$Lazy_Observer.observe(f)):f.src=e:null!=e&&f[$e+Jt](t,e)})),null!=v){const t="string"==typeof v,n="number"==typeof v,i=u[Sn](v);if(t||n){const t=String(v);"img"===o||"source"===o?f.src=t:f[be+Ee]=t}else i&&v[ge]((t=>{const n=t instanceof Element;"string"==typeof t||"number"==typeof t?c?f[He](e[In](String(t))):f[be+Ee]+=t:n&&f[He](t)}))}return f}}),(t=>{Yn(t,Ot+yn,{get:function(){return o(this)}}),Yn(t,Ot+"num",{get:function(){return l(this)}}),Yn(t,Ot+nn,{get:function(){return new f(1e3*this)}}),Yn(t,Ot+Tn,{get:function(){const t=s[fe](f.now()/1e3),e=parseInt(this),n=s[an](t-e),i=t>e,r=i?"前":"",o=3600,l=24*o,u=30*l,a=365*l;if(n<60)return"剛剛";let c=i?"":"還有";return n>=a?c+=s[fe](n/a)+"年":n>=u?c+=s[fe](n/u)+"個月":n>=604800?c+=s[fe](n/o)+"週":n>=l?c+=s[fe](n/l)+"天":n>=o?c+=s[fe](n/o)+"小時":n>=60&&(c+=s[fe](n/60)+"分鐘"),c+r}}),[Ot+Z,Ot+ze,Ot+ze+ze,Ot+_t,Ot+Xe,Ot+rt,Ot+Ye,Ot+C,Ot+qe,Ot+ut,Ot+Je,Ot+D,Ot+We,Ot+I,Ot+et,Ot+G,Ot+Ke,Ot+Y,Ot+Qe][ge]((e=>{Yn(t,e,{get:function(){return this[Ot+nn][e]}})})),Yn(t,Ot+rn,{value:function(t){return this[Ot+nn][Ot+rn](t)}})})(l[se]),(t=>{Yn(t,Ot+on,{get:function(){return this[oe]}}),Yn(t,Ot+sn,{get:function(){const t=new c;return this[ge](((e,n)=>t[$e](e,n))),t}}),Yn(t,Ot+"random",{get:function(){return this.sort((()=>s.random()-.5))}}),Yn(t,St+mn,{get:function(){return this[oe]<1}}),Yn(t,Nt,{value:function(t){let e=this;return u[Sn](t)?e=e.concat(t):null!=t&&e[ae](t),e}}),Yn(t,Rt,{value:function(t){if(null==t)return this;let e=[];return this[ge](((n,i)=>{const r=t(n,i);null!=r&&e.push(r)})),e}}),Yn(t,Ot,{value:function(t){const e=this[oe];return"number"!=typeof t||s[an](t)>e?null:this[(t<0?e:0)+t]}}),Yn(t,Ot+x,{value:function(t){const e=this.indexOf(t);return-1==e?null:e}}),Yn(t,Ot+yn,{value:function(t){return"string"!=typeof t&&"number"!=typeof t?this.join(""):this.join(String(t)[re]())}}),Yn(t,Ot+vn,{value:function(e={}){return`/${t.$str("/")}`[de](/[\/]+/g,"/").$req(e)}}),Yn(t,"$_",{value:function(t){const e=this[oe];let n=this;return"number"!=typeof t||s[an](t)>e?n:-1===t?(n.pop(),n):0===t?(n.shift(),n):(n=n.splice((t<0?e:0)+t,1),n)}}),Yn(t,St,{value:function(t){return-1!==this.indexOf(t)}})})(u[se]),(t=>{Yn(t,Ot+sn,{get:function(){const t=new Map;for(const e in this)this.hasOwnProperty(e)&&t.set(e,this[e]);return t}}),Yn(t,Ot+On,{get:function(){return a.keys(this)}}),Yn(t,Ot+"vals",{get:function(){return a[Cn](this)}}),Yn(t,Ot,{value:function(t){return null==t?null:this[String(t)]}}),Yn(t,St,{value:function(t){return null!=t&&null!=this[String(t)]}}),Yn(t,Ot+ge,{value:function(t){if(t instanceof Function)for(const e in this)this.hasOwnProperty(e)&&t(e,this[e])}})})(a[se]),(t=>{Yn(t,Ot+"obj",{get:function(){return a[En](this)}}),Yn(t,Ot+on,{get:function(){return this[_e]}}),Yn(t,St+mn,{get:function(){return 0===this[_e]}}),Yn(t,Nt,{value:function(t,e){const n=new c(this);return n[$e](t,e),n}}),Yn(t,Ot,{value:function(t){return this[Kt](t)}})})(c[se]),(t=>{Yn(t,Ot+Z,{get:function(){return this.getFullYear()}}),Yn(t,Ot+ze,{get:function(){return`${this[Ot+Z]}`.slice(-2)}}),Yn(t,Ot+ze+ze,{get:function(){return this[Ot+Z]}}),Yn(t,Ot+_t,{get:function(){return this.getMonth()+1}}),Yn(t,Ot+Xe,{get:function(){const t=this[Ot+_t];return`${t<10?"0":""}${t}`}}),Yn(t,Ot+rt,{get:function(){return this.getDate()}}),Yn(t,Ot+Ye,{get:function(){const t=this[Ot+rt];return`${t<10?"0":""}${t}`}}),Yn(t,Ot+C,{get:function(){return this.getDay()}}),Yn(t,Ot+qe,{get:function(){const t=this[Ot+C];return 0===t?"Sun":1===t?"Mon":2===t?"Tue":3===t?"Wed":4===t?"Thu":5===t?"Fri":6===t?"Sat":"NaN"}}),Yn(t,Ot+ut,{get:function(){return this[le]()}}),Yn(t,Ot+Je,{get:function(){const t=this[Ot+ut];return`${t<10?"0":""}${t}`}}),Yn(t,Ot+D,{get:function(){return this[le]()%12||12}}),Yn(t,Ot+We,{get:function(){const t=this[Ot+D];return`${t<10?"0":""}${t}`}}),Yn(t,Ot+I,{get:function(){return this[le]()>=12?"pm":"am"}}),Yn(t,Ot+et,{get:function(){return this[Ot+I][ce]()}}),Yn(t,Ot+G,{get:function(){return this.getMinutes()}}),Yn(t,Ot+Ke,{get:function(){const t=this[Ot+G];return`${t<10?"0":""}${t}`}}),Yn(t,Ot+Y,{get:function(){return this.getSeconds()}}),Yn(t,Ot+Qe,{get:function(){const t=this[Ot+Y];return`${t<10?"0":""}${t}`}}),Yn(t,Ot+en,{get:function(){return s[fe](this.getTime()/1e3)}}),Yn(t,Ot+Tn,{get:function(){return this[Ot+en][Ot+Tn]}}),Yn(t,Ot+rn,{value:function(t){return t=t[de](/Y{4}/gi,this[Ot+ze+ze])[de](/Y{2}/gi,this[Ot+ze])[de](/Y{1}/gi,this[Ot+Z])[de](/M{2,}/g,this[Ot+Xe])[de](/M{1}/g,this[Ot+_t])[de](/D{2,}/g,this[Ot+Ye])[de](/D{1}/g,this[Ot+rt])[de](/H{2,}/g,this[Ot+Je])[de](/H{1}/g,this[Ot+ut])[de](/h{2,}/g,this[Ot+We])[de](/h{1}/g,this[Ot+D])[de](/m{2,}/g,this[Ot+Ke])[de](/m{1}/g,this[Ot+G])[de](/s{2,}/g,this[Ot+Qe])[de](/s{1}/g,this[Ot+Y])[de](/A{1}/g,this[Ot+et])[de](/a{1}/g,this[Ot+I])[de](/d{2,}/g,this[Ot+qe])[de](/d{1}/g,this[Ot+C])}}),Yn(t,Ot+nn,{value:function(t){const e="object"==typeof t&&null!=t,n=this[Ot+Z],i=this[Ot+_t]-1;if(!e)return new f;const r="object"==typeof t.pre&&null!=t.pre;return h(t.start)&&t.start?new f(n,i,1):h(t.end)&&t.end?new f(n,i-1,0):r?h(t.pre.start)&&t.pre.start?new f(n,i-1,1):h(t.pre.end)&&t.pre.end?new f(n,i,0):new f:new f}})})(f[se]),(t=>{Yn(t,Ot+Ge+ie,{get:function(){const t=new URLSearchParams(this.search),e=new c;return t[ge](((t,n)=>{e.set(t,n)})),a[En](e)}});let n=!1;Yn(t,Ot+vn,{value:function(t={}){if(null==t)return;let e=this.href;const i="object"==typeof t[An]&&null!=t[An]&&!u[Sn](t[An]);let r;return t[Nn]&&t.tag?(r=new FormData,i&&a.keys(t.json)[ge]((e=>{r[Rn](e,t[An][e])})),t[Nn][ge]((e=>{r[Rn](t.tag,e)}))):i&&(r=$.stringify(t[An])),new Promise(((i,s)=>{if(n)return s("等待請求完成.");n=!0;const l=new XMLHttpRequest;l.open(t.method||"GET",e),t[Un]&&a[On](t[Un])[ge]((e=>{l.setRequestHeader(e,t[Un][e])})),l.withCredentials=h(t.credentials)||!1,l.onreadystatechange=()=>{switch(l.readyState){case 1:case 2:case 3:break;case 4:n=!1;const t=l.responseText,e=l.status;if(/^(4|5)[0-9]{2}/[ye](o(e)))return s(t);try{i($[Ln](t),e)}catch(n){i(t,e)}}},l.send(r)}))}}),Yn(t,Nt+Ve,{value:function(t){const n=this.href;return $history[ae](n),history.pushState(null,"",n),"string"==typeof t&&t[pe]()[oe]>0&&(e.title=t),this}}),Yn(t,Ct+Ve,{value:function(t){const n=this.href;return $history.pop(),$history[ae](n),history.replaceState(null,"",n),"string"==typeof t&&t[pe]()[oe]>0&&(e.title=t),this}}),Yn(t,Nt+Ge,{value:function(t){let e=this[ve]+this[Te],n=this.$queryAll;return"object"!=typeof t||null==t||u[Sn](t)||a.keys(t)[ge]((e=>n[e]=t[e])),a.keys(n)[ge](((t,i)=>e+=`${0==i?"?":"&"}${t}=${n[t]}`)),new URL(e)}}),Yn(t,Ct+Ge,{value:function(t){return this.query__()._query(t)}}),Yn(t,Ge+Nt,{value:function(t){let e=this[ve]+this[Te],n=this.$queryAll;return"string"==typeof t&&t[pe]()[oe]>0?n[t]=null:u[Sn](t)&&t[ge]((t=>{n[String(t)]=null})),a.keys(n)[ge](((t,i)=>{e+=`${0==i?"?":"&"}${t}=${n[t]}`})),new URL(e)}}),Yn(t,Ge+Ct,{value:function(){return new URL(this[ve]+this[Te])}}),Yn(t,Ot+Ge,{value:function(t){return this.searchParams[Kt](t)}})})(_[se]),(t=>{[[Ot,be+Ee],[Ot+Ee[he](),"outer"+Ee],[Ot+Q,te+Re],[Ot+Z,te+Ie],[Ot+K,ne+Qt],[Ot+D,ne+Zt],[Ot+Y+K,te+Qt],[Ot+Y+D,te+Zt],[Ot+P+K,ee+Qt],[Ot+P+D,ee+Zt]][ge]((e=>{Yn(t,e[0],{get:function(){return this[e[1]]}})})),Yn(t,Ot+on,{get:function(){return this[we][oe]}}),Yn(t,Ot+x,{get:function(){const t=this[Ht];return t instanceof Element?[...t[we]].indexOf(this):-1}}),Yn(t,Ot+je+ie,{get:function(){let t=new c;for(const e of this.attributes)t.set(e.name,e.value[pe]());return a[En](t)}}),[[Ot+Me+ie,qt],[Ot+ke+ie,we],[Ot+Pe+ie,Le]][ge]((e=>{Yn(t,e[0],{get:function(){return[...this[e[1]]]}})})),Yn(t,"$text",{get:function(){let t=[];return[...this[Le]].filter((t=>t.nodeType===Node.TEXT_NODE&&t.textContent[pe]()[oe]>0)).forEach((e=>t[ae](e.textContent[pe]()))),t.join(" ")}}),Yn(t,Nt,{value:function(t=""){return this[be+Ee]+=o(t),this}}),Yn(t,Ct,{value:function(t=""){return this[be+Ee]=o(t),this}}),Yn(t,Rt,{value:function(t=!1){return this[wn](h(t))}}),[[Nt+Q,te+Re],[Nt+Z,te+Ie]][ge]((e=>{Yn(t,e[0],{value:function(t=NaN){return"number"!=typeof t||isNaN(t)||(this[e[1]]=t),this}})})),[[Nt+K,Ue],[Nt+D,Fe],[Nt+H+q,Se+Ie],[Nt+H+V,Se+Re],[Nt+H+R,Se+Ne],[Nt+H+X,Se+Ce],[Nt+G+q,Oe+Ie],[Nt+G+V,Oe+Re],[Nt+G+R,Oe+Ne],[Nt+G+X,Oe+Ce]][ge]((e=>{Yn(t,e[0],{value:function(t){if("number"==typeof t||"string"==typeof t){t=o(t)[pe]();const n=/^\d+$/[ye](t);this[Ae][e[1]]=t+(n?"px":"")}return this}})})),[[Nt+G,"_mt","_ml","_mb","_mr"],[Nt+H,"_pt","_pl","_pb","_pr"]][ge]((e=>{Yn(t,e[0],{value:function(t,n,i,r){return void 0===t&&void 0===n&&void 0===i&&void 0===r||(void 0===n&&void 0===i&&void 0===r?n=i=r=t:void 0===i&&void 0===r?(i=t,r=n):void 0===r&&(r=n),this[e[1]](t||0),this[e[2]](r||0),this[e[3]](i||0),this[e[4]](n||0)),this}})})),Yn(t,Me+Ct,{value:function(){return this.className="",this}}),Yn(t,Ct+Me,{value:function(t=[]){return this.class__()[Nt+Me](t),this}}),Yn(t,St+Me,{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&this[qt].contains(t)}}),Yn(t,St+Me+Nt,{value:function(t=!1,e=[]){return h(t)&&"string"==typeof e&&e[pe]()[oe]>0?this.class_(e):this[Nt+Me](e),this}}),Yn(t,St+Nt+Me,{value:function(t=!1,e=[]){return h(t)&&"string"==typeof e&&e[pe]()[oe]>0?this[Nt+Me](e):this.class_(e),this}}),[Nt+Ae,Nt+xe,Nt+je][ge]((e=>{Yn(t,e,{value:function(t={}){return("object"!=typeof t||null==t||u[Sn](t)?[]:a.keys(t)).filter((t=>"string"==typeof t&&t[pe]()[oe]>0)).forEach((n=>{e===Nt+Ae?this[Ae][n]=t[n]:e===Nt+xe?this[ue][n]=t[n]:e===Nt+je&&this[$e+Jt](n,t[n])})),this}})})),[Nt+Me,Me+Nt,Ae+Nt,xe+Nt,je+Nt][ge]((e=>{Yn(t,e,{value:function(t=[]){return(u[Sn](t)?t:"string"==typeof t&&t[pe]()[oe]>0?t[$n](/[,. ]/):[]).filter((t=>"string"==typeof t&&t[pe]()[oe]>0)).forEach((t=>{e===Nt+Me?this[qt].add(t):e===Me+Nt?this[qt].remove(t):e===Ae+Nt?this[Ae][t]="":e===xe+Nt?delete this[ue][t]:e===je+Nt&&this["remove"+Jt](t)})),this}})})),[Ot+Ae,Ot+xe,Ot+je][ge]((e=>{Yn(t,e,{value:function(t=""){if(!("string"!=typeof t||t[pe]()[oe]<1))return e===Ot+Ae?this[Ae][t]:e===Ot+xe?this[ue][t]:e===Ot+je?this[Kt+Jt](t):void 0}})})),[[St+xe,Ot+xe],[St+je,Ot+je]][ge]((e=>{Yn(t,e[0],{value:function(t="",n=""){return!("string"!=typeof t||t[pe]()[oe]<1)&&((n=o(n))[pe]()[oe]<1?null!=this[e[1]](t):this[e[1]](t)===n)}})})),Yn(t,Nt+ke,{value:function(t=[],e){return"string"==typeof t&&t[pe]()[oe]>0||"number"==typeof t?this[be+Ee]+=t:u[Sn](t)&&t[oe]>1?t[ge]((t=>{"string"==typeof t&&t[pe]()[oe]>0||"number"==typeof t?this[be+Ee]+=t:null!=t&&this[He](t)})):u[Sn](t)&&1===t[oe]?e instanceof Element&&e[Ht]===this?this[Be](t[0],e):"number"==typeof e&&s[an](e)<=this[we][oe]?this[Be](t[0],this[we][e]):null!=t[0]&&this[He](t[0]):e instanceof Element&&e[Ht]===this?this[Be](t,e):"number"==typeof e&&s[an](e)<=this[we][oe]?this[Be](t,this[we][e]):null!=t&&this[He](t),this}}),Yn(t,Ct+ke,{value:function(t=[]){return this.__()._child(t),this}}),Yn(t,Ot+ke,{value:function(t=[]){let e=this;return u[Sn](t)?t[ge]((t=>{"string"==typeof t&&t[pe]()[oe]>0?e=e[Bt](t):"number"==typeof t&&s[an](t)<=e[we][oe]&&(e=e[we][(t<0?e[we][oe]:0)+t])})):"string"==typeof t&&t[pe]()[oe]>0?e=this[Bt](t):"number"==typeof t&&s[an](t)<=this[we][oe]&&(e=this[we][(t<0?this[we][oe]:0)+t]),e===this?void 0:e}}),Yn(t,"$parent",{value:function(t=0){let e=this[Ht];if("number"==typeof t&&t>0)for(var n=0;n0)for(var n=0;n0)for(var n=0;n0?this[Bt](t):null}}),Yn(t,Ot+"sel"+ie,{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&this[Bt+ie](t)||[]}}),Yn(t,"$rm",{value:function(){this.remove()}}),Yn(t,"_go",{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&(this.href=t),this.target="_self",this}}),Yn(t,"_open",{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&(this.href=t),this.target="_blank",this}}),Xn[ge]((e=>Yn(t,`_${e}`,{value:function(t){return this[`on${e}`]=t instanceof Function?t:null,this}}))),Yn(t,"_video",{value:function(t={}){if(this instanceof HTMLVideoElement&&(this._attr({controlsList:["nodownload","noremoteplayback"].join(",")}),"string"==typeof t.preload&&(this.preload=t.preload),"boolean"==typeof t.loop&&(this.loop=t.loop),"boolean"==typeof t.muted&&(this.muted=t.muted),"boolean"==typeof t.controls&&(this.controls=t.controls),"boolean"==typeof t.playsinline&&t.playsinline&&this._attr({playsinline:""}),"boolean"==typeof t.download||"boolean"==typeof t.remote)){let e=[];t.download||e[ae]("nodownload"),t.remote||e[ae]("noremoteplayback"),this._attr({controlsList:e.join(" ")})}return this}}),Yn(t,Nt+ln,{value:function(t=""){return"string"==typeof t&&t[pe]()[oe]>0&&(this[Ae][ln]=t),this}}),Yn(t,te+un+wt,{value:function(t,e){if("number"!=typeof t)return this;const n=this[ne+Qt],i=this[te+Qt];let r=i-t{Yn(t,Ot+on,{get:function(){return this[we][oe]}}),Yn(t,Ot+ke+ie,{get:function(){return[...this[we]]}}),Yn(t,Ot+Pe+ie,{get:function(){return[...this[Le]]}}),Yn(t,Ot+yn,{get:function(){let t=e[Yt]("div");return t[He](this),t[`${be}${Ee}`]}}),Yn(t,Ot+Ee[he](),{get:function(){let t=e[Yt]("div");return t[He](this),t[`${be}${Ee}`]}}),Yn(t,Rt,{value:function(t=!1){return this[wn](h(t))}}),Yn(t,Nt+ke,{value:function(t=[]){return"string"==typeof t&&t.trim().length>0||"number"==typeof t?this[He](e[In](String(t))):u[Sn](t)&&t.length>1?t[ge]((t=>{"string"==typeof t&&t.trim().length>0||"number"==typeof t?this[He](e[In](String(t))):null!=t&&this[He](t)})):u[Sn](t)&&1===t.length?this[He](t[0]):null!=t&&this[He](t),this}})})(m[se]),(n=>{Yn(n,"$base64",{value:function(t=_n+"/"+cn){const n=e[Yt](gn),i=n[Wt]("2d");if(i)return n[Ue]=this[Ue],n[Fe]=this[Fe],i.drawImage(this,0,0),n.toDataURL(t,1)}}),Yn(n,zn,{value:function(e=_n+"/"+cn){const n=this.$base64(e)[$n](";base64,"),i=n[0][$n](":")[1],r=t.atob(n[1]),s=r.length,o=new Uint8Array(s);for(let t=0;t{const i=_n+"/"+(t==hn?cn:fn);Yn(n,Ot+t,{value:function(t){const n="number"==typeof t,r=e[Yt](gn),o=r[Wt]("2d"),l=parseInt(this[Ue]),u=parseInt(this[Fe]);if(o){if(n&&tnull==this.src?_n+"."+t:this.src[pn](this.src.lastIndexOf("/")+1))(),s="a"._(),o=_.createObjectURL(this.$blob(i));s.href=o,s.download=n??r,s._attr({type:"application/octet-stream"}),e.body[He](s),s.click(),s.$rm(),URL.revokeObjectURL(o)}})}))})(g[se]);const Wn=()=>{null==$SVG_Observer&&($SVG_Observer=new IntersectionObserver((t=>{t.forEach((t=>{if(!t.isIntersecting)return;const e=t.target,n=(e.$attr("src")||"")[pe]();n.length<1||n.$$200().then((t=>{$SVG_Observer[bn](e),t.text().then((t=>{const n="div"._(t),i=n[Ot+ke](0);i.id=n.id,n[qt][ge]((t=>i[qt].add(t))),i.onclick=n.onclick,null!=e[Ht]&&e[Ht][Nt+ke](i,e),e.remove()})).catch((t=>{e.__("☒")}))})).catch((t=>{$SVG_Observer[bn](e),e.__("☒")}))}))})),[].slice.call("span.svg".$all)[ge]((t=>$SVG_Observer.observe(t))))},Kn=()=>{null==$Lazy_Observer&&($Lazy_Observer=new IntersectionObserver(((t,e)=>{t[ge]((t=>{const e=t.target;if(t.isIntersecting){const t=e.parentElement,n=(e.dataset.src||"").trim(),i=e.$$class("fit"),r=e.$$class("fit-p");if(n.length<1)return;e.class_("lazyload"),delete e.dataset.src,n.$$200(!0).then((n=>{$Lazy_Observer[bn](e),e.src=n.src,i&&(t.style["aspect-ratio"]=`${n.img.target.$nw} / ${n.img.target.$nh}`),r&&(t.style["aspect-ratio"]=`${n.img.target.$nw} / ${n.img.target.$nh}`)})).catch((t=>{$Lazy_Observer[bn](e),e.src="https://cdn.jsdelivr.net/gh/pardnchiu/PDRenderKit@latest/static/image/404.svg"}))}}))})),[].slice.call("img.lazyload".$all)[ge]((t=>$Lazy_Observer[bn](t))))};t._SVGListener=Wn,t._LazyListener=Kn,t._Listener=t=>{if(null==t)return Wn(),void Kn();0!=t.svg&&Wn(),null!=t.lazyload&&Kn()},t.$file=t=>new Promise(((e,n)=>{if(!t)return()=>n();let i=new FileReader;i.readAsDataURL(t),i.onload=t=>e(t),i.onerror=t=>n(t)})),t.$imageFromImageFile=t=>new Promise(((e,n)=>{if(!t)return()=>n();let i=new FileReader;i.readAsDataURL(t),i.onload=function(t){if(!t.target)return()=>n();let i=new Image;i.src=String(t.target.result),i.onload=()=>e(i),i.onerror=t=>n(t)}})),t.$imageFromVideoFile=t=>new Promise(((e,n)=>{if(!t)return()=>n();let i=new FileReader;i.readAsArrayBuffer(t),i.onload=function(){if(!i.result)return()=>n();let r=new Blob([i.result],{type:t.type}),s=URL.createObjectURL(r),o=document.createElement("video");o.preload="metadata",o.src=s,o.muted=!0,o.playsInline=!0,o.onloadeddata=function(){let t=document.createElement("canvas"),i=t.getContext("2d");if(t.width=o.videoWidth,t.height=o.videoHeight,!i)return()=>n();i.drawImage(o,0,0,t.width,t.height);let r=t.toDataURL("image/jpg"),s=new Image;s.src=r,s.onload=()=>e(s),s.onerror=t=>n(t),o.ontimeupdate=null,o.pause()},o.onerror=t=>n(t),o.play()}})),t[zn]=(e,n)=>{let i=t.atob(e.split(",")[1]),r=new ArrayBuffer(i.length),s=new Uint8Array(r);for(let t=0;t{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",n=e[oe];let i="";for(let r=0;r{let e=`${document.cookie};`,n=new RegExp(`${t}=([^ ;]+)?`),i=e.match(n)??[],r=i[i.length-1];if(!i.length||null==r)return null;r=decodeURIComponent(i[i.length-1]);try{return JSON.parse(r)}catch(t){return r}},t._cookie=(t,e,n)=>{const i=(new Date).getTime();let r;"string"!=typeof t||String(t||"").trim().length<1||(e="object"==typeof e&&null!=e?JSON.stringify(e).trim():String(e).trim(),r="number"==typeof n?new Date(i+1e3*n):new Date(i+36e5),document.cookie=`${t}=${e}; expires=${r.toUTCString()}; path=/`)},t[Rt]=(t="")=>(console.log(t),String(t).$),t.$all=(t="")=>String(t).$all,t.$url=(t="")=>(t.trim().length>0?t:location.href).$url,t._child=(t=[],e)=>{document.body._child(t,e)},t.__child=(t=[])=>{document.body.__child(t)},document.head._child(["style"._(".dom-temp { display: none !important; }")])})(window,document,navigator,location,console,Math,String,Number,Array,Object,Map,Boolean,Date,URL,Image,JSON,RegExp,Element,DocumentFragment,_a,_b,_c,_d,_e,0,0,0,_i,0,_0,_1,_2,_3,_4,0,_6,_7,_8,0,0,_1_,_2_,_3_,_4_,_5_,0,_7_,_8_,_9_,__0,0,__2,__3,__4,0,$0,0,$2,$3,0,0,$6,$7,0,0,$0_,$1_,$2_,0,0,$5_,0,$7_,0,0,0,0,0,$_3,$_4,0,"$","$$",0,"_$","_","__","","-",".","/",":",0,0," "),((t,e,n,i,r,s,o,l,u,a,c,h,f,_,g,$,d,p)=>{const m=/\{\{\s*(((CALC|LENGTH)\(\s*[\w\.\s\+\-\*\/]+\s*\))|[\w\.]+)\s*\}\}/i,y=new RegExp(m,"gi"),v=/(CALC|LENGTH)\(([\w\.]+)\s*([\+\-\*\/\%]+)\s*([\d\.]+)\)/,T=/^\(?\s*([\w]+)(\s*\,|\s+)?/i,b=/\,\s*([\w]+)\s*\)/i,E=/\s+([\w\.]+)\s*$/i,w=/\s*[\!\>\<\=]+\=*\s*/,L=/([\w\.]+)\s*([\+\-\*\/\%])\s*([\d\.]+)/,A=":path",O=":for",S=":if",I=":else-if",R=":else",N=":model",C=":html",U="parentElement",F="textContent",M="toLowerCase",D="alt",x="dom",j="path",k="data",V="event",G="next",P="done",B="trim",H="href",z="src",X="id",Y="isArray",q="style",J="Color",W="Image",K="Size",Q="Attachment",Z="Mode",tt="clip",et="Blend",nt="Repeat",it="Origin",rt="Position",st="background",ot="innerHTML",lt="forEach",ut="value",at="body",ct="nodeType",ht="length",ft="shift",_t="isFor",gt="isAry",$t="isObj",dt="$attr",pt="$attrAll",mt="filter",yt="TEXT_NODE",vt="addEventListener",Tt="dom-tag",bt="$next",Et="$parent",wt="class",Lt="$ary",At="$nodeAll",Ot="_child",St="$sel",It="$selAll",Rt="$keys",Nt="$fit",Ct="attr_",Ut="$rm",Ft="_attr",Mt="$key";function Dt(t){return`*[dom-tag='${t}']`}t.PD=class{dom;path;data;event;done={};constructor(e={}){t._Listener(e.listener);const n="string"==typeof e[X]?`#${e[X]}`.$:null;if(!(n instanceof Element))return;this[x]=n,this[j]={},this[k]=e[k],this[V]=e[V]||{};const i=Date.now();this.#t(n,e[k]||{}).then((t=>{const n=Date.now()-i;null!=e[G]&&(console.log("渲染完畢, 耗時"+n/1e3+"秒"),e[G](this[x]))}))}#e(t,e,n){return t=i(t),n=i(n),isNaN(t)||isNaN(n)?void 0:"+"===e?t+n:"-"===e?t-n:"*"===e?t*n:"/"===e?t/n:"%"===e?t%n:t}#n(t,e,n){let i=e[t];null==i||"object"!=typeof i||null==i||r[Y](i)?null!=i&&s.defineProperty(e,t,{get:()=>i,set:t=>{i=t,n(t)}}):i[Rt][lt]((t=>{this.#n(t,i,n)}))}#i=async(t,n={},i={})=>{const r=t[Et](0),s=t[pt][A];if(null!=r&&null!=s){if(null==this[j][s])this[j][s]=r;else if(this[j][s]==r)return;fetch(s).then((async s=>{const o=await s.text();"div"._(o)[At][lt]((e=>{t[Ot](e)})),o[_](/new\s+PD/)||this.#t(t,n,i),t[At][lt]((n=>{n instanceof HTMLScriptElement?e[at][Ot]("script"._(n.$)):r[Ot](n,t)})),t[Ut]()})).catch((()=>{t[Ut]()}))}};#r=(e,r={},s={})=>{const l=e[Et](0),u=e.$i,a=(e[dt](S)||"")[B]();if(null==l||a[ht]<1)return;let c,h,f=[e],_=e[bt](0);for(null!=_&&(c=null!=_[dt](I),h=null!=_[dt](R));null!=_&&(c||h);)f.push(_),_=_[bt](0),null!=_&&(c=null!=_[dt](I),h=null!=_[dt](R));const g=t[Mt](16),$="temp"._(f._$((t=>t._$(!0)[Ft]({[Tt]:g}))));let d=!1;f[lt]((t=>{if(t[Ft]({[Tt]:g}),d)return t[Ut]();const e=(t[dt](S)||t[dt](I)||t[dt](R)||"")[B](),s=null!=t[dt](R),a=e[Lt](w).$(0),c=e[Lt](w).$(1),h=((e[Nt](w)||[]).$(0)||"")[B](),f=this.#s(a,r,(t=>{l[It](Dt(g))[lt]((t=>t[Ut]())),l[Ot]($._$(!0),u),this.#t(l,r,{[_t]:!0})}));h.length<1?d=o(f):">"===h?d=(i(f)||0)>(i(c)||0):"<"===h?d=(i(f)||0)<(i(c)||0):">="===h||">=="===h?d=(i(f)||0)>=(i(c)||0):"<="===h||"<=="===h?d=(i(f)||0)<=(i(c)||0):"=="===h||"==="===h?d="null"==c?null==f:"true"==c?o(f):"false"==c?!o(f):"empty"==c?n(f||"")[ht]<1:n(f||"")==n(c):"!="!==h&&"!=="!==h||(d="null"==c?null!=f:"true"==c?!o(f):"false"==c?o(f):"empty"==c?n(f||"")[ht]>0:n(f||"")!=n(c)),t[Ct](S)[Ct](I)[Ct](R),d||s?d&&t.class_("dom-temp"):t[Ut]()})),this.#t(l,r,s)};#s=(t="",e={},n)=>{if(t[B]()[ht]<1)return;const i=t.$$(m);let r="",s="";i&&(r=t[Lt](m)[0]||"",s=t[Lt](m)[4]||"",t=t.$fit(m)[1]);const o=t.$$(/^LENGTH\(.+\)/);o&&(t=t.__(/^LENGTH\(|\)$/g,""));const l=t.$$(/^CALC\(.*\)$/);let u="",a=0;if(l){const e=(t=t.__(/^CALC\(|\)$/g,"")).$fit(L);t=e.$(1),u=e.$(2),a=parseInt(e.$(3))||0}let c=t[Lt]("."),h=e,f=c.$(0),_=h[f];c[ft](),_=this.#o(c,h,f,_),null!=n&&this.#n(f,h,(t=>{n(t)}));let g="";if(null!=_&&_ instanceof Object&&!Array.isArray(_)?g=_[Rt][ht]:null!=_&&(g=_[ht]),i){if(o)return r+g+s;if(l&&(_=this.#e(_,u,a),null==_))return;return r+_+s}return o?g:l&&(_=this.#e(_,u,a),null==_)?void 0:_};#l=(t,e={})=>{const n=t[Et](0),i=(t[dt](N)||"")[B]();t[Ct](N);this.#s(i,e,(e=>{t[ut]=e}));if(null==n||null==i||i[B]()[ht]<1)return;const r=t instanceof HTMLInputElement,s=t instanceof HTMLTextAreaElement,o=t instanceof HTMLSelectElement;r||s?(t[vt]("keyup",(t=>{e[i]=t.target[ut]})),t[vt]("change",(t=>{e[i]=t.target[ut]}))):o&&t[vt]("change",(t=>{e[i]=t.target[ut]}))};#u(t,n={}){const i=t[dt](Tt)||"",r=t[pt][Rt][mt]((t=>t[_](/^:[\w\-]+$/)))[mt]((t=>!t[_](/\:(path|for|if|else\-if|else|model)/)));r[ht]<1||r[lt]((r=>{const s=(t[dt](r)||"")[B](),o=this.#s(s,n,(n=>{const o=e[at][It](Dt(i));o[ht]<1||o[lt]((e=>{this.#a(t,r,n,s)}))}));this.#a(t,r,o,s),t[Ct](r)}))}#a(t,e,i="",r){i=n(i),e[M]()===(":"+wt)[M]()&&t._class(i),[[":"+X,X],[":"+z,z],[":"+D,D],[":"+H,H],[C,ot]][lt]((n=>{e[M]()===n[0][M]()&&(i[B]()[ht]<1||(t[n[1]]=i))})),[[":bg-"+W,st+W],[":bg-"+Q,st+Q],[":bg-Blend-"+Z,st+et+Z],[":bg-"+tt,st+tt],[":bg-"+it,st+it],[":bg-"+rt,st+rt],[":bg-"+rt+"-X",st+rt+"X"],[":bg-"+rt+"-Y",st+rt+"Y"],[":bg-"+nt,st+nt],[":bg-"+K,st+K],[":bg-"+J,st+J],[":"+J,J[M]()]][lt]((n=>{e[M]()===n[0][M]()&&(i[B]()[ht]<1?t[q][n[1]]=r:t[q][n[1]]=i)})),i[B]()[ht]<1?t[Ct](`${e.__(/^:/,"")}`):t[Ft]({[`${e.__(/^:/,"")}`]:i})}#c=(t,e={},n={})=>{(()=>{t[pt][Rt][mt]((t=>t[_](/^@[\w]+$/)))[lt]((e=>{const n=e.__(/\@/,"on"),i=t[dt](e);t[Ct](e),null!=i&&(t[n]=this[V][i])}))})(),(()=>{if(!o(n[_t]))return;const i=(t[dt](O)||"")[B](),r=(i[Nt](T)||[])[f](1),s=(i[Nt](b)||[])[f](1);t[pt][Rt][mt]((t=>t[_](/^:@[\w]+$/)))[lt]((i=>{const l=i.__(/^\:\@/,"on");let u=(t[dt](i)||"")[B]()[Lt](".")[mt]((t=>t[ht]>0))||[],a=e,c=u[f](0),h=a[c];u[ft](),o(n[gt])&&c!=r||o(n[$t])&&c!=s||(h=this.#o(u,a,c,h),null!=h&&(t[l]=this[V][h]))}))})()};#h=(n,i={},r={})=>{const s=n[dt](Tt)||t[Mt](16);n[Ft]({[Tt]:s});const o=n._$(!0),l=n[Et](0),u=n.$i,a=n[ot].$$(y);null!=parent&&0!=a&&n[At][mt]((t=>t[U]===n&&t[ct]===Node[yt]))[lt]((t=>{((t[F]||"")[Nt](y)||[])[lt]((n=>{const r=(n[Nt](m)||[])[f](1);if(null==r)return;const a=this.#s(r,i,(t=>{const n=e[at][St](Dt(s));null!=n&&null!=l&&(l[Ot](o._$(!0),u),n[Ut](),this.#t(l,i))}));null!=a&&this.#f(t,r,a)}))}))};#_=(e,n={},i={})=>{const s=e[Et](0),o=(e[dt](O)||"")[B]();if(null==s||o[ht]<1)return;const l=t[Mt](16),u=e._$(!0)[Ft]({[Tt]:l}),a="temp"._(),c=e[bt](0);e[Ut]();const h=(o[Nt](/^\(?\s*(\w+)/)||[]).$(1),f=(o[Nt](/\,\s*(\w+)/)||[]).$(1),_=(o[Nt](E)||[]).$(1),g=this.#s(_,n,(t=>{const e=s[St](Dt(l))?.$i;s[It](Dt(l))[lt]((t=>t[Ut]())),s[Ot](u._$(!0),e),this.#t(s,n,{[_t]:!0})}));r[Y](g)?g[lt](((t,e)=>{const i=u._$(!0);a[Ot](i);const r={[`${h}`]:t,[`${f}`]:e};"object"==typeof t&&null!=t?(t[Rt][lt]((e=>{this.#n(e,t,(()=>{const t=s[St](Dt(l))?.$i;s[It](Dt(l))[lt]((t=>t[Ut]())),s[Ot](u._$(!0),t),this.#t(s,n,{[_t]:!0})}))})),this.#u(i,r),this.#c(i,r,{[_t]:!0,[gt]:!0}),this.#g(i,r),this.#t(i,r,{[_t]:!0})):(this.#u(i,r),this.#c(i,r,{[_t]:!0,[gt]:!0}),this.#g(i,r))})):"object"==typeof g&&null!=g&&g[Rt][lt]((t=>{const e=u._$(!0);a[Ot](e),this.#n(t,g,(()=>{const t=s[St](Dt(l))?.$i;s[It](Dt(l))[lt]((t=>t[Ut]())),s[Ot](u._$(!0),t),this.#t(s,n,{[_t]:!0})}));const i=g[t],o={[`${h}`]:t,[`${f}`]:i};this.#u(e,o),this.#c(e,o,{[_t]:!0,[$t]:!0}),this.#$(e,o),this.#t(e,o,{[_t]:!0,[gt]:r[Y](i)})})),s[Ot](a,c)};#g=(t,e={})=>{const n=(t[dt](O)||"")[B](),i=(n[Nt](T)||[])[f](1),r=(n[Nt](b)||[])[f](1),s=e[r];t[Ct](O),t[At][mt]((e=>e[U]===t&&e[ct]===Node[yt]))[lt]((t=>{((t[F]||"")[Nt](y)||[])[lt]((n=>{const o=(n[Nt](m)||[])[f](1);if(null==o)return;const l=o.$fit(v),u=(l||[]).$(3),a=Number((l||[]).$(4));let c=(null!=l?l.$(2):o)[Lt]("."),h=e,_=c[f](0),g=h[_];c[ft](),null!=l&&_===i?g=this.#s(o,e)||"":_===i?g=this.#o(c,h,_,g):_===r&&(g=this.#e(s,u,a)),null!=g&&this.#f(t,o,g)}))})),this.#t(t,e,{[_t]:!0})};#$=(t,e={})=>{const n=(t[dt](O)||"")[B](),i=(n[Nt](T)||[])[f](1),r=(n[Nt](b)||[])[f](1);t[Ct](O),t[At][mt]((e=>e[U]===t&&e[ct]===Node[yt]))[lt]((t=>{((t[F]||"")[Nt](y)||[])[lt]((n=>{let s=(n[Nt](m)||[])[f](1);if(null==s)return;const o=s.$fit(v),l=(o||[]).$(3),u=Number((o||[]).$(4));let a=(null!=o?o.$(2):s)[Lt]("."),c=e,h=a[f](0),_=c[h];a[ft](),null!=o&&h===r?_=this.#s(s,e)||"":h===r?_=this.#o(a,c,h,_):null!=o&&h===i&&(_=this.#e(_,l,u)),null!=_&&this.#f(t,s,_)}))})),this.#t(t,e,{[_t]:!0})};#o(t,e,n,i){if(null!=i){for(;t[ht]>0;)i=i[t[f](0)],t[ft]();return i}}#f(t,e,n){const i=("{{\\s*?"+(e=e.__(/(\?|\.|\+|\*|\\|\%|\-|\(|\))/g,"\\$1"))+"\\s*?}}").$regexp("i");n=(t[F]||"").__(i,n)||"",t[F]=n}async#t(t,n={},i={}){const r=e.$init;return t==this.dom&&(this.#u(t,n),this.#c(t,n,i),this.#h(t,n,i)),r?(t[Et](0)==this[x]&&(this[P][t.$i]=!1),await new Promise((e=>(t.$childAll[lt]((async t=>{const e=t[pt];if(null!=$Lazy_Observer&&t[_+wt]("lazyload")&&$Lazy_Observer.observe(t),null!=$SVG_Observer&&t[_+wt]("svg")&&"SPAN"===t.tagName&&$SVG_Observer.observe(t),null!=t[Et](0)&&null==e[I]&&null==e[R])if(e[A])this.#i(t,n,i);else{if(!e[O])return this.#r(t,n,i),this.#l(t,n),this.#u(t,n),this.#c(t,n,i),this.#h(t,n,i),await this.#t(t,n,i);this.#_(t,n,i)}})),t.class_("dom-temp"),t[Et](0)==this[x]||t==this[x]?(this[P][t.$i]=!0,e(t)):null)))):t}}})(window,document,String,Number,Array,Object,Boolean,Image,JSON,RegExp,Element,DocumentFragment,"$","$$");class $listener{observer;constructor(t){t=t??{},this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&t.do instanceof Function&&t.do(e.target)}))})),"string"==typeof t.selector&&[].slice.call(document.querySelectorAll(t.selector)).forEach((t=>this.observe(t)))}observe(t){this.observer.observe(t)}unobserve(t){this.observer.unobserve(t)}}
\ No newline at end of file
diff --git a/index.html b/index.html
index 1046af8..0ef5d24 100644
--- a/index.html
+++ b/index.html
@@ -7,67 +7,74 @@
+
-
- PDRenderKit
-
+
+
-
-
-
-
+
+
+ PDRenderKit 輕量化前端框架
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
+
-
-
-
+
+
-
+
+
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
-
-