diff --git a/dist/PDRenderKit.js b/dist/PDRenderKit.js index 0574d0d..0cea008 100644 --- a/dist/PDRenderKit.js +++ b/dist/PDRenderKit.js @@ -1 +1 @@ -"use strict";let t,e,n,i,o,r,u,l,s=[];((h,c,a,f,_,p,g,d,y,$,T,v,E,m,w,A,b,L,I,R,N,S,O)=>{const C="abs",D="anonymous",F="append",M="apply",U="attr",x="All",P="Attribute",B="base64",k="body",H="boolean",V="Bottom",j="canvas",G="charCodeAt",X="charAt",Y="class",W="client",q="clipboard",z="code",J="cookie",K="copy",Q="contains",Z="create",tt="crossOrigin",et="currentScript",nt="Child",it="Component",st="display",rt="download",ot="drag",ut="Data",lt="en",ht="enter",ct="Element",at="floor",ft="font",_t="forEach",pt="filter",gt="From",dt="File",yt="fromCharCode",$t="get",Tt="hasOwnProperty",vt="header",Et="history",mt="href",wt="Height",At="HTML",bt="init",Lt="inner",It="indexOf",Rt="insertBefore",Nt="isArray",St="Image",Ot="join",Ct="jpeg",Dt="jpg",Ft="json",Mt="keys",Ut="leave",xt="length",Pt="line",Bt="Left",kt="Listener",Ht="Lazy",Vt="margin",jt="map",Gt="match",Xt="mouse",Yt="move",Wt="natural",qt="next",zt="number",Jt="Node",Kt="N/A",Qt="onload",Zt="onerror",te="origin",ee="over",ne="Object",ie="padding",se="parent",re="parse",oe="pathname",ue="png",le="prototype",he="push",ce="query",ae="readAsDataURL",fe="random",_e="remove",pe="replace",ge="Right",de="scroll",ye="set",$e="Sibling",Te="size",ve="slice",Ee="split",me="splice",we="SS",Ae="src",be="start",Le="startsWith",Ie="stringify",Re="style",Ne="substring",Se="String",Oe="touch",Ce="toUpperCase",De="toLowerCase",Fe="trim",Me="test",Ue="Top",xe="To",Pe="Text",Be="textContent",ke="userAgent",He="unobserve",Ve="URL",je="vals",Ge="values",Xe="Video",Ye="write",We="Width",qe="$",ze="$$",Je="_$",Ke="_",Qe="__",Ze="",tn="/",en="-",nn=".",sn=":",rn=" ",on="yyyy/MM/DD (ddd) HH:mm:ss";let un="";$[gt[De]()]({[xt]:26},((t,e)=>d[yt](97+e)))[_t](((t,e)=>{let n=e<10,i=e>=10&&e<20,s=e>=20,r=d(e),o=r[X](r[xt]-1),u=e=>{un+=e?t[Ce]():t,h[(e?qe:Ke)+(s?Ke:Ze)+o+(i?Ke:Ze)]=e?t[Ce]():t};u(0),u(1),n&&(un+=e,h[Ke+t]=e)}));const ln=h._a,hn=h._b,cn=h._c,an=h._d,fn=h._e,_n=(h._f,h._g,h._h,h._i),pn=(h._j,h._0),gn=h._1,dn=h._2,yn=h._3,$n=h._4,Tn=(h._5,h._6),vn=h._7,En=h._8,mn=(h._9,h._0_,h._1_),wn=h._2_,An=h._3_,bn=h._4_,Ln=h._5_,In=(h._6_,h._7_),Rn=h._8_,Nn=h._9_,Sn=h.__0,On=(h.__1,h.__2),Cn=h.__3,Dn=h.__4,Fn=(h.__5,h.$0),Mn=h.$1,Un=h.$2,xn=h.$3,Pn=(h.$4,h.$5,h.$6),Bn=h.$7,kn=(h.$8,h.$9,h.$0_),Hn=h.$1_,Vn=h.$2_,jn=(h.$3_,h.$4_,h.$5_),Gn=(h.$6_,h.$7_),Xn=h.$8_,Yn=h.$9_,Wn=(h.$_0,h.$_1,h.$_2,h.$_3),qn=h.$_4,zn=(h.$_5,[En,Nn][Ot](Ze)),Jn=[Sn,gn][Ot](Ze),Kn=[pn,In,yn,An][Ot](Ze),Qn=[vn,En,Sn][Ot](Ze),Zn=[jn,xn,Gn,$n,An,yn,$n,In,kn,En,Nn][Ot](Ze),ti="$blob",ei="$parent",ni="$rm",ii="$formData",si=Ye+Pe,ri=ut[De](),oi=wt[De](),ui=St[De](),li=We[De](),hi=ne[De](),ci=lt+yn,ai=Ht[De]()+"load",fi=x[De](),_i=P[De]()+Rn,pi=F+nt,gi=Z+ct,di=Z+Pe+Jt,yi=Y+"List",$i=Y+"Name",Ti=nt[De](),vi=Ti+"ren",Ei=Ti+Jt+Rn,mi="clone"+Jt,wi=ri+ye,Ai="DD"[De](),bi="draw"+St,Li=lt+z+"URI",Ii="decodeURI",Ri=$t+"Context",Ni=$t+"Date",Si=$t+"Day",Oi=$t+ct+"ById",Ci=$t+"FullYear",Di=$t+"Hours",Fi=$t+"Minutes",Mi=$t+"Month",Ui=$t+"Seconds",xi=$t+"Milliseconds",Pi=$t+"Time",Bi=Lt+We,ki=Lt+wt,Hi=qt+ct+$e,Vi=se+ct,ji=se+Jt,Gi="previous"+ct+$e,Xi=ce+"Selector",Yi=Xi+x,Wi=_e+nt,qi=xe[De](),zi=qi+Se,Ji=qi+ut+Ve,Ki=Z+ne+Ve,Qi="revoke"+ne+Ve,Zi=Lt+At,ts=de+Bt,es=de+Ue,ns=de+We,is=de+wt,ss=W+We,rs=W+wt,os=Se[De](),us=Jt[De](),ls=ie+Yn,hs=ie+Hn,cs=ie+Mn,as=ie+Gn,fs=ie+Ue,_s=ie+Bt,ps=ie+V,gs=ie+ge,ds=Vt+Yn,ys=Vt+Hn,$s=Vt+Mn,Ts=Vt+Gn,vs=Vt+Ue,Es=Vt+Bt,ms=Vt+V,ws=Vt+ge,As=dt[De](),bs=As+Rn,Ls="SVG"+kt,Is=Ht+kt,Rs=gt[De]()+"Entries",Ns=["load","click","dblclick","scroll","contextmenu","focus","blur","input","keydown","keyup","change","cut","paste",Xt+"down",Xt+"up",Xt+ht,Xt+Ut,Xt+ee,Xt+"out",Xt+Yt,Oe+be,Oe+Yt,Oe+ht,Oe+Ut,Oe+ci,Oe+"up",ot+be,ot+ht,ot+ee,ot+Ut,ot+ci,"drop"],Ss=qe+fi,Os=qe+B,Cs=qe+"date",Ds=qe+"gone",Fs=qe+At[De](),Ms=qe+Ft,Us=qe+Ve[De](),xs=qe+ce,Ps=xs+x,Bs=qe+"req",ks=qe+"num",Hs=qe+"len",Vs="$$mt",js="$$empty",Gs=qe+Dn,Xs=qe+"yy",Ys=Xs+"yy",Ws=qe+Vn,qs=qe+"MM",zs=qe+xn,Js=qe+"DD",Ks=qe+yn,Qs=qe+Ai,Zs=qe+Ai+yn,tr=qe+Ai+Ai,er=qe+Bn,nr=qe+"HH",ir=qe+vn,sr=nr[De](),rr=qe+pn,or=qe+Fn,ur=qe+wn,lr=qs[De](),hr=qe+Rn,cr=qe+we[De](),ar=qe+Xn,fr=qe+we,_r=qe+we+Xn,pr=qe+"format",gr=qe+jt,dr=qe+En,yr=qe+"str",$r=qe+Mt,Tr=qe+"timestamp",vr=qe+K,Er=qe+yi,mr=qe+vi,wr=qe+Ei,Ar=qe+_i,br=qe+"regexp",Lr=qe+fe,Ir=qe+"shuffle",Rr=qe+Ge,Nr=qe+Pe[De](),Sr=ze+Ft,Or="$00",Cr=ce+Ke,Dr=ce+Qe,Fr=/zh/.test(navigator.language||""),Mr=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],Ur=t=>["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][jt]((e=>e[ve](0,typeof t!==zt?e[xt]:t)));o=/android/i[Me](a[ke]),r=/iphone|ipad/i[Me](a[ke]),u=o||r,l=!u,s=[f[mt]],[n,i]=[h[Bi],h[ki]],h.onresize=t=>{[n,i]=[h[Bi],h[ki]]};const xr=T.defineProperty;let Pr=!0;function Br(t,e){_.log(t,e)}var kr;Pr&&(Pr=!1,function(t){const e=[dn,bn,Ln,Dn,In,En,Tn,vn,Nn][Ot](Ze),n=[Un,In,$n,pn,Nn,bn,In][Ot](Ze),i=[jn,Kn,rn,Hn,Nn,yn][Ot](Ze),s=[jn,Kn,rn,Un,Qn][Ot](Ze),r=[[[ft,en,Te,sn],[hn,fn,Ln,Cn]],[[Pt,en,oi,sn],[cn,_n,Ln,Cn]]],o=[[["%",dn,t]],[[Pn,zn,Bn,Jn,sn],[vn,Nn,Nn,Ln,Rn,sn,tn,tn,Tn,zn,vn,Jn,nn,dn,bn,wn,tn,Ln,Kn,dn,Qn,tn,t]],[[n,sn],[s]],[[Hn,En,dn,$n,An,Rn,$n,sn],[Pn,jn,Hn,en+an+nn+ln]]][jt]((t=>$[Nt](t)?t[jt]((t=>t[Ot](Ze)))[Ot](rn):t)).join("\n"),u=r[jt]((t=>$[Nt](t)?t[jt]((t=>t[Ot](Ze)))[Ot](Ze):t)).join(";"),l=c[et][$t+P](e);l&&l===i?(c[qe+bt]=f[mt],c[qe+n]=s,console.log(o,u)):c[et][ji][Wi](c[et])}(Zn)),kr=d[le],xr(kr,Ms,{get:function(){try{return L[re](this[zi]())}catch(t){}}}),xr(kr,Fs,{get:function(){return this[zi]()[Qe](/[ \<\>\"\']/g,(t=>({" ":" ","<":"<",">":">",'"':""","'":"'"}[t])))}}),xr(kr,Sr,{get:function(){return null!=this[Ms]}}),xr(kr,js,{get:function(){return this[zi]()[Fe]()[xt]<1}}),xr(kr,K,{value:async function(){try{await a[q][si](this[zi]())}catch(t){Br(t)}}}),xr(kr,Qe,{value:function(t="",e=""){const n=this[zi]();return typeof t===os&&!t[js]||t instanceof R?n[pe](t,e):n}}),xr(kr,br,{value:function(t,e){let n=this[zi]();return typeof t===H&&void 0===e&&(e=t,t=void 0),typeof e===H&&!0===e&&(n=n[Qe](/[\^\$\{\}\|\,\[\]\(\)\=\!\*\+\.\?]/g,(t=>"\\"+t))),typeof t===os&&/[gimsuy]+/[Me](t)?new R(n,t):new R(n)}}),xr(kr,ze,{value:function(t=""){const e=this[zi]();return t instanceof R?t[Me](e):typeof t===os&&t===e}}),xr(kr,qe+lt,{value:function(t=!1){return h[Li+t?it:""](this[zi]())}}),xr(kr,qe+"de",{value:function(t=!1){return h[Ii+t?it:""](this[zi]())}}),xr(kr,Us,{get:function(){const t=this[zi]();try{return new w(t)}catch(e){return new w(f[te]+t)}}}),xr(kr,Ps,{get:function(){return this[zi]()[Us][Ps]}}),xr(kr,qe+"img",{get:async function(){return new g(((t,e)=>{const n=new b;n[Ae]=this[zi]()[Us][mt],n[tt]=D,n[Qt]=e=>t(n),n[Zt]=e}))}}),[Bs,Ke+Et,Qe+Et,Ke+ce,Qe+ce,Cr,Dr,xs][_t]((t=>xr(kr,t,{value:function(){const e=this[zi]()[Us];return e[t][M](e,arguments[Rr])}}))),xr(kr,"$$200",{value:async function(t=!1){return new g((async(e,n)=>{try{const i=await fetch(this[zi]());if(i.ok){const s=i.headers[$t]("Content-Type");if(s&&s[Le](ui)){if(s==ui+"/svg+xml"&&!t)return void e(i);const r=await i.blob(),o=new b,u=w[Ki](r);o[Ae]=u,o[tt]=D,o[Qt]=t=>e({src:u,img:o}),o[Zt]=t=>{w[Qi](u),n(t)}}else e(i)}else n(new Error(`HTTP error! status: ${i.status}`))}catch(t){n(t)}}))}}),xr(kr,"_fa",{get:function(){return(En+nn+this[zi]()[Qe](/\s/,nn))[Ke]()}}),xr(kr,qe,{get:function(){const t=this[zi]();return t[Le]("#")?c[Oi](this[Ne](1)):/[\.\[\]]/[Me](t)?c[Xi](t):c[Oi](t)||c[Xi](t)}}),xr(kr,Ss,{get:function(){return[...c[Yi](this[zi]())]}}),xr(kr,Ke,{value:function(n,i){const s=/^\w+(?=[\#\.]*)/i,r=/\.([\w_-]+)?/gi,o=s[Me](this)?this[Gt](s)[0]:null,u=/^(svg|rect|circle|ellipse|line|polyline|polygon|path|text|tspan|g|defs|symbol|image|use|clipPath|mask|linearGradient|radialGradient)$/i[Me](o),l="temp"===this[zi](),h="txt"===this[zi](),a=l?c.createDocumentFragment():h?c[di](d(n)):u?c.createElementNS("http://www.w3.org/2000/svg",o):c[gi](o),_=r[Me](this)?this[Gt](r):[],p=this[Gt](/\#([\w_-]+)?/i),g=[Un,In,$n,pn,Nn,bn,In][Ot](Ze),y=[jn,Kn,rn,Un,Qn][Ot](Ze);if(h)return a;p&&(a.id=p[1]),_[_t]((t=>a[yi].add(t[pe](/^\./,""))));const T=c[qe+bt],v=c[qe+g];if(!T||T!=f[mt]||!v||v!=y)return a;let E,m;if(/^span\.svg/i[Me](this)&&null!=t&&t.observe(a),null==n&&null!=i&&([n,i]=[i,null]),null!=n&&null!=i)[E,m]=[n,i];else if(null==i)typeof n===os||typeof n===zt||$[Nt](n)?m=n:E=n;else if(null==n)return a;const w="input"===o;if(w||"textarea"===o){const t=/\s(.+)/i,e=this[Gt](t);a.placeholder=e?e[1]:"";const n=/\@(\w+)/i,i=this[Gt](n);w&&(a.type=i?i[1]:"test")}if(typeof E===hi&&null!=E&&E[$r][_t]((t=>{const n=E[t];["value","innerText","innerHTML",Be,"contentEditable"].includes(t)?a[t]=n:["color","backgroundColor"].includes(t)?a[Re][t]=n:t===Re?n[$r][_t]((t=>a[Re][t]=n[t])):t===ai?null!=e?(a[yi].add(ai),a[ye+P]("data-src",n),e.observe(a)):a[Ae]=n:null!=n&&a[ye+P](t,n)})),null!=m){const t=typeof m===os,e=typeof m===zt,n=$[Nt](m);if(t||e){const t=d(m);"img"===o||"source"===o?a[Ae]=t:a[Zi]=t}else n&&m[_t]((t=>{const e=t instanceof Element;typeof t===os||typeof t===zt?l?a[pi](c[di](d(t))):a[Zi]+=t:e&&a[pi](t)}))}return a}}),xr(kr,ks,{get:function(){return y(this[zi]()[Qe](/\,/g,""))}}),xr(kr,Hs,{get:function(){return this[zi]()[xt]}}),xr(kr,Vs,{get:function(){return this[js]}}),xr(kr,qe+"ary",{value:function(t=""){return this[zi]()[Ee](t)}}),xr(kr,qe+"fit",{value:function(t){if(null!=t)return this[zi]()[Gt](t)}}),xr(kr,vr,{value:async function(){this[K]()}}),(t=>{xr(t,Or,{get:function(){return(this<10?ln:"")+String(this)}}),xr(t,Lr,{get:function(){const t=un[xt];let e="";for(let n=0;n{xr(t,e,{get:function(){return this[Cs][e]}})})),xr(t,pr,{value:function(t=on){return this[Cs][pr](t)}}),xr(t,yr,{get:function(){return d(this)}}),xr(t,ks,{get:function(){return y(this)}})})(y[le]),(t=>{xr(t,qe+"sum",{get:function(){return this.reduce(((t,e)=>t+e),0)}}),xr(t,Ir,{get:function(){for(let t=this[xt]-1;t>0;t--){const e=p[at](p[fe]()*(t+1));[this[t],this[e]]=[this[e],this[t]]}return this}}),xr(t,gr,{get:function(){const t=new v;return this[_t](((e,n)=>{t[ye](e,n)})),t}}),xr(t,js,{get:function(){return this[xt]<1}}),xr(t,Ke,{value:function(t,e){const n=this[xt];return(t||[])[js]||(typeof e!==zt||p[C](e)>n?e=n:e<0&&(e=n+e),$[Nt](t)?this[me](e,0,...t):void 0!==t&&this[me](e,0,t)),this}}),xr(t,qe,{value:function(t){const e=this[xt];if(typeof t===zt&&p[C](t){xr(t,$r,{get:function(){return T[Mt](this)}}),xr(t,Rr,{get:function(){return T[Ge](this)}}),xr(t,gr,{get:function(){const t=new v;for(const e in this)this[Tt](e)&&t[ye](e,this[e]);return t}}),xr(t,Ke,{value:function(t,e,n=!0){return n&&[os,zt][ze](typeof t)&&(this[d(t)]=e),this}}),xr(t,ze,{value:function(t){return[os,zt][ze](typeof t)?this[Tt](t):void 0===t&&this[$r][xt]>0}}),xr(t,_t,{value:function(t){if(t instanceof Function)for(const e in this)this[Tt](e)&&t(e,this[e])}}),xr(t,qe+je,{get:function(){return this[Rr]}}),xr(t,qe+_t,{value:function(t){this[_t](t)}})})(T[le]),(t=>{xr(t,Ms,{get:function(){return T[Rs](this)}}),xr(t,$r,{get:function(){return this[Mt]()}}),xr(t,Rr,{get:function(){return this[Ge]()}}),xr(t,js,{get:function(){return this[Te]<1}}),xr(t,xt,{get:function(){return this[Te]}}),xr(t,Ke,{value:function(t,e){if(null==t)return this;const n=new v(this);return n[ye](t,e),n}}),xr(t,qe,{value:function(t){if(null!=t)return this[$t](t)}}),xr(t,"$_",{value:function(t){if(null==t)return this;const e=new v(this);return e.delete(t),e}}),xr(t,ze,{value:function(t){return null!=t&&this.has(t)}}),xr(t,qe+je,{get:function(){return this[Ge]()}}),xr(t,qe+"obj",{get:function(){return this[Ms]}}),xr(t,Hs,{get:function(){return this[Te]}}),xr(t,Vs,{get:function(){return this[js]}})})(v[le]),(t=>{xr(t,gr,{get:function(){const t=new v;return this[_t](((e,n)=>{t[ye](n,e)})),t}}),xr(t,Ms,{get:function(){return this[gr][Ms]}})})(I[le]),(t=>{xr(t,Gs,{get:function(){return this[Xs]}}),xr(t,Xs,{get:function(){return d(this[Ys])[ve](-2)}}),xr(t,Ys,{get:function(){return this[Ci]()}}),xr(t,Ws,{get:function(){return this[Mi]()+1}}),xr(t,qs,{get:function(){return this[Ws][Or]}}),xr(t,zs,{get:function(){return this[Ni]()}}),xr(t,Js,{get:function(){return this[zs][Or]}}),xr(t,Ks,{get:function(){return this[Si]()}}),xr(t,Qs,{get:function(){const t=this[Ks];return(Fr?Mr[t]:Ur(2)[t])||Kt}}),xr(t,Zs,{get:function(){const t=this[Ks];return(Fr?Mr[t]:Ur(3)[t])||Kt}}),xr(t,tr,{get:function(){const t=this[Ks];return(Fr?Mr[t]:Ur()[t])||Kt}}),xr(t,er,{get:function(){return this[Di]()}}),xr(t,nr,{get:function(){return this[er][Or]}}),xr(t,ir,{get:function(){return this[Di]()%12||12}}),xr(t,sr,{get:function(){return this[ir][Or]}}),xr(t,rr,{get:function(){return this[Di]()>=12?"pm":"am"}}),xr(t,or,{get:function(){return this[rr][Ce]()}}),xr(t,ur,{get:function(){return this[Fi]()}}),xr(t,lr,{get:function(){return this[ur][Or]}}),xr(t,hr,{get:function(){return this[Ui]()}}),xr(t,cr,{get:function(){return this[hr][Or]}}),xr(t,ar,{get:function(){return d(this[_r])[ve](0,1)}}),xr(t,fr,{get:function(){return y(d(this[_r])[ve](0,2))[Or]}}),xr(t,_r,{get:function(){const t=this[xi]();return d(t<10?"00":t<100?ln:"")+d(t)}}),xr(t,Tr,{get:function(){return p[at](this[Pi]()/1e3)}}),xr(t,Ds,{get:function(){const t=this[Tr],e=(new m)[Tr],n=p[C](e-t),i=e>t,s=i&&Fr?"前":"",r=3600,o=24*r,u=7*o,l=30*o,h=365*o;if(n<60)return Fr?"剛剛":"recent";let c=i?"":Fr?"還有":"Coming in ";if(n>=h){const t=p[at](n/h);c+=t+(Fr?"年":" year"+(t>1?"s":""))}else if(n>=l){const t=p[at](n/l);c+=t+(Fr?"個月":" month"+(t>1?"s":""))}else if(n>=u){const t=p[at](n/u);c+=t+(Fr?"週":" week"+(t>1?"s":""))}else if(n>=o){const t=p[at](n/o);c+=t+(Fr?"天":" day"+(t>1?"s":""))}else if(n>=r){const t=p[at](n/r);c+=t+(Fr?"小時":" hour"+(t>1?"s":""))}else if(n>=60){const t=p[at](n/60);c+=t+(Fr?"分鐘":" min"+(t>1?"s":""))}return c+s}}),xr(t,pr,{value:function(t=on){return t=t[pe](/Y{4}/gi,this[Ys])[pe](/Y{2}/gi,this[Xs])[pe](/Y{1}/gi,this[Gs])[pe](/M{2,}/g,this[qs])[pe](/M{1}/g,this[Ws])[pe](/D{2,}/g,this[Js])[pe](/D{1}/g,this[zs])[pe](/H{2,}/g,this[nr])[pe](/H{1}/g,this[er])[pe](/h{2,}/g,this[sr])[pe](/h{1}/g,this[ir])[pe](/m{2,}/g,this[lr])[pe](/m{1}/g,this[ur])[pe](/s{2,}/g,this[cr])[pe](/s{1}/g,this[hr])[pe](/S{3,}/g,this[_r])[pe](/S{2}/g,this[fr])[pe](/S{1}/g,this[ar])[pe](/A{1}/g,this[or])[pe](/a{1}/g,this[rr])[pe](/d{4,}/g,this[tr])[pe](/d{3}/g,this[Zs])[pe](/d{2}/g,this[Qs])[pe](/d{1}(?!ay)/g,this[Ks])}}),xr(t,Cs,{value:function(t){const e=typeof t===hi&&null!=t,n=this[Gs],i=this[Ws]-1;if(!e)return new m;const s=typeof t.pre===hi&&null!=t.pre;return E(t.start)&&t.start?new m(n,i,1):E(t.end)&&t.end?new m(n,i-1,0):s?E(t.pre.start)&&t.pre.start?new m(n,i-1,1):E(t.pre.end)&&t.pre.end?new m(n,i,0):new m:new m}})})(m[le]),(t=>{xr(t,Ps,{get:function(){const t=new A(this.search),e=new v;return t[_t](((t,n)=>{e[ye](t,n)})),e[Ms]}});let e=!1;xr(t,Bs,{value:function(t={},n=!1){if(null==t)return;let i=this[mt];const s=typeof t[Ft]===hi&&null!=t[Ft]&&!$[Nt](t[Ft]);let r;return t[bs]&&t.tag?(r=new I,s&&t.json[$r][_t]((e=>{r[F](e,t[Ft][e])})),t[bs][_t]((e=>{r[F](t.tag,e)}))):s&&(r=L[Ie](t[Ft])),new g(((s,o)=>{if(e&&n)return o("等待請求完成.");n&&(e=!0);const u=new XMLHttpRequest;u.open(t.method||"GET",i),t[vt]&&t[vt][$r][_t]((e=>{u.setRequestHeader(e,t[vt][e])})),u.withCredentials=E(t.credentials)||!1,u.onreadystatechange=()=>{switch(u.readyState){case 1:case 2:case 3:break;case 4:n&&(e=!1);const t=u.responseText,i=u.status;if(/^(4|5)[0-9]{2}/[Me](d(i)))return void o(t);try{s(L[re](t),i)}catch(e){s(t,i)}}},u.send(r)}))}}),xr(t,Ke+Et,{value:function(t=""){const e=this[mt];return s[he](e),history.pushState(null,"",e),typeof t!==os||t[js]||(c.title=t),this}}),xr(t,Qe+Et,{value:function(t=""){const e=this[mt];return s.pop(),s[he](e),history.replaceState(null,"",e),typeof t!==os||t[js]||(c.title=t),this}}),xr(t,Ke+ce,{value:function(t={}){let e=this[te]+this[oe],n=this[Ps];return typeof t!==hi||$[Nt](t)||t[$r][_t]((e=>n[e]=t[e])),n[$r][_t](((t,i)=>{e+=`${0==i?"?":"&"}${t}=${n[t]}`})),new w(e)}}),xr(t,Qe+ce,{value:function(t={}){return this.query__()._query(t)}}),xr(t,Cr,{value:function(t=""){let e=this[te]+this[oe],n=this[Ps];return typeof t!==os||t[js]?$[Nt](t)&&t[_t]((t=>{delete n[d(t)]})):delete n[t],n[$r][_t](((t,i)=>{e+=`${0==i?"?":"&"}${t}=${n[t]}`})),new w(e)}}),xr(t,Dr,{value:function(){return new w(this[te]+this[oe])}}),xr(t,xs,{value:function(t){return this.searchParams[$t](t)}})})(w[le]),(t=>{xr(t,Os,{value:function(t=ui+tn+Ct,e){const n=j[Ke](),i=n[Ri]("2d"),s=y(this[li]),r=y(this[oi]);if(i){if(n[li]=this[li],n[oi]=this[oi],typeof e===zt&&enull==this[Ae]?ui+"."+t[Ee](tn)[1]:this[Ae][Ne](this[Ae].lastIndexOf(tn)+1))(),i=pn[Ke](),s=w[Ki](this[ti](t));i[mt]=s,i[rt]=e||n,i[Ke+U]({type:"application/octet-stream"}),c[k][pi](i),i.click(),i[_e](),w[Qi](s)}}),[Dt,ue][_t]((e=>{const n=ui+tn+(e==Dt?Ct:ue);xr(t,qe+e,{value:function(t){return this[Os](n,t)}}),xr(t,Ke+rt+e[Ce](),{value:function(e){t[rt](n,e)}})})),xr(t,Ke+rt,{value:function(e=ui+tn+Ct,n){t[rt](e,n)}})})(b[le]),(t=>{[[qe,Zi],[Fs,"outer"+At],[qe+Cn,ts],[Gs,es],[qe+On,ss],[ir,rs],[hr+On,ns],[hr+vn,is],[qe+An+On,Wt+We],[qe+An+vn,Wt+wt]][_t]((e=>{xr(t,e[0],{get:function(){return this[e[1]]}})})),xr(t,Nr,{get:function(){let t=[];return[...this[Ei]][pt]((t=>t.nodeType===Node.TEXT_NODE&&!t[Be][js]))[_t]((e=>t[he](e[Be][Fe]()))),t[Ot](rn)}}),xr(t,dr,{get:function(){const t=[...this[Vi][vi]][It](this);if(-1!==t)return t}}),xr(t,Ar,{get:function(){let t=new v;for(const e of this[_i])t[ye](e.name,e.value[Fe]());return t[Ms]}}),[[Er,yi],[mr,vi],[wr,Ei]][_t]((e=>{xr(t,e[0],{get:function(){return[...this[e[1]]]}})})),xr(t,xt,{get:function(){return this[vi][xt]}}),xr(t,Ke,{value:function(t=""){return typeof t===os||typeof t===zt?this[Zi]+=t:"object"==typeof t&&(this[Zi]+=L[Ie](t,null,4)[pe](/\n/g,"
")[pe](/ /g," ")),this}}),xr(t,Qe,{value:function(t=""){return this[Zi]="",this[Ke](t)}}),xr(t,Je,{value:function(t=!1){return this[mi](E(t))}}),[[Ke+Cn,ts],[Ke+Dn,es]][_t]((e=>{xr(t,e[0],{value:function(t=0){return typeof t!==zt||isNaN(t)||(this[e[1]]=t),this}})})),[[Ke+On,li],[Ke+vn,oi],[Ke+ls,fs],[Ke+hs,_s],[Ke+cs,ps],[Ke+as,gs],[Ke+ds,vs],[Ke+ys,Es],[Ke+$s,ms],[Ke+Ts,ws]][_t]((e=>{xr(t,e[0],{value:function(t){if(typeof t===zt||typeof t===os){t=d(t)[Fe]();const n=/^\d+$/[Me](t);this[Re][e[1]]=t+(n?"px":"")}return this}})})),[[Ke+ie,Ke+ls,Ke+hs,Ke+cs,Ke+as],[Ke+Vt,Ke+ds,Ke+ys,Ke+$s,Ke+Ts]][_t]((e=>{xr(t,e[0],{value:function(t,n,i,s){return void 0===t&&void 0===n&&void 0===i&&void 0===s||(void 0===n&&void 0===i&&void 0===s?n=i=s=t:void 0===i&&void 0===s?(i=t,s=n):void 0===s&&(s=n),this[e[1]](t||0),this[e[2]](s||0),this[e[3]](i||0),this[e[4]](n||0)),this}})})),[Ke+Re,Ke+ri,Ke+U][_t]((e=>{xr(t,e,{value:function(t={}){return(typeof t!==hi||null==t||$[Nt](t)?[]:t[$r])[pt]((t=>typeof t===os&&!t[js]))[_t]((n=>{e===Ke+Re?this[Re][n]=t[n]:e===Ke+ri?this[wi][n]=t[n]:e===Ke+U&&this[ye+P](n,t[n])})),this}})})),[Ke+Y,Y+Ke,Re+Ke,ri+Ke,U+Ke][_t]((e=>{xr(t,e,{value:function(t=[]){return($[Nt](t)?t:typeof t!==os||t[js]?[]:t[Ee](/[,. ]/))[pt]((t=>typeof t===os&&!t[js]))[_t]((t=>{e===Ke+Y?this[yi].add(t):e===Y+Ke?this[yi].remove(t):e===Re+Ke?this[Re][t]="":e===ri+Ke?delete this[wi][t]:e===U+Ke&&this[_e+P](t)})),this}})})),[qe+Re,qe+ri,qe+U][_t]((e=>{xr(t,e,{value:function(t=""){if(typeof t===os&&!d(t)[js])return e===qe+Re?this[Re][t]:e===qe+ri?this[wi][t]:e===qe+U?this[$t+P](t):void 0}})})),xr(t,Y+Qe,{value:function(){return this[$i]="",this}}),xr(t,Qe+Y,{value:function(t=[]){return this[Y+Qe]()[Ke+Y](t),this}}),xr(t,ze+Y,{value:function(t=""){if($[Nt](t)){const e=t[pt]((t=>typeof t===os&&!t[js]));let n=!0;return!(e[xt]<1||e[xt]!==t[xt])&&(e[_t]((t=>{this[yi][Q](t)||(n=!1)})),n)}return typeof t===os&&!t[js]&&this[yi][Q](t)}}),xr(t,ze+Y+Ke,{value:function(t,e){return void 0===e&&(e=t,t=this[ze+Y](e)),E(t)?this[Y+Ke](e):this[Ke+Y](e),this}}),[[ze+ri,qe+ri],[ze+U,qe+U]][_t]((e=>{xr(t,e[0],{value:function(t,n=""){return typeof t===os&&!d(t)[js]&&((n=d(n))[js]?!(this[e[1]](t)||"")[js]:this[e[1]](t)===n)}})})),xr(t,Ke+Ti,{value:function(t=[],e){return typeof t===os&&!t[js]||typeof t===zt?this[Zi]+=t:$[Nt](t)&&t[xt]>1?t[_t]((t=>{typeof t===os&&!t[js]||typeof t===zt?this[Zi]+=t:null!=t&&this[pi](t)})):$[Nt](t)&&1===t[xt]?e instanceof Element&&e[Vi]===this?this[Rt](t[0],e):typeof e===zt&&p[C](e)<=this[vi][xt]?this[Rt](t[0],this[vi][e]):null!=t[0]&&this[pi](t[0]):e instanceof Element&&e[Vi]===this?this[Rt](t,e):typeof e===zt&&p[C](e)<=this[vi][xt]?this[Rt](t,this[vi][e]):null!=t&&this[pi](t),this}}),xr(t,Qe+Ti,{value:function(t=[]){return this.__()._child(t),this}}),xr(t,qe+Ti,{value:function(t=[]){let e=this;return $[Nt](t)?t[_t]((t=>{typeof t!==os||t[js]?typeof t===zt&&p[C](t)<=e[vi][xt]&&(e=e[vi][(t<0?e[vi][xt]:0)+t]):e=e[Xi](t)})):typeof t!==os||t[js]?typeof t===zt&&p[C](t)<=this[vi][xt]&&(e=this[vi][(t<0?this[vi][xt]:0)+t]):e=this[Xi](t),e===this?void 0:e}}),[[ei,Vi],[qe+"pre",Gi],[qe+qt,Hi]][_t]((e=>{xr(t,e[0],{value:function(t=0){const n=e[1];let i=this[n];if(typeof t===zt&&t>0)for(var s=0;s{xr(t,e[0],{value:function(t=""){return typeof t!==os||t[js]?null:this[e[1]](t)}})})),[["_go","_self"],["_open","_blank"]][_t]((e=>{xr(t,e[0],{value:function(t=""){return typeof t!==os||t[js]||(this[mt]=t),this.target=e[1],this}})})),xr(t,Ke+st,{value:function(t=""){return typeof t!==os||t[js]||(this[Re][st]=t),this}}),Ns[_t]((e=>xr(t,`_${e}`,{value:function(t){return this["on"+e]=t instanceof Function?t:null,this}}))),xr(t,Ke+Xe[De](),{value:function(t={}){if(this instanceof HTMLVideoElement&&(this._attr({controlsList:["nodownload","noremoteplayback"].join(",")}),typeof t.preload===os&&(this.preload=t.preload),typeof t.loop===H&&(this.loop=t.loop),typeof t.muted===H&&(this.muted=t.muted),typeof t.controls===H&&(this.controls=t.controls),typeof t.playsinline===H&&t.playsinline&&this._attr({playsinline:""}),typeof t.download===H||typeof t.remote===H)){let e=[];t.download||e[he]("nodownload"),t.remote||e[he]("noremoteplayback"),this._attr({controlsList:e.join(rn)})}return this}}),xr(t,de+xe+Wn,{value:function(t){if(typeof t!==zt)return this;const e=this[ss],n=this[ns];let i=n-(t{xr(t,e[0],{value:function(){let t=0;return/X/[Me](e[1])&&0!==e[2]?t=this[ns]-this[ss]:/Y/[Me](e[1])&&0!==e[2]&&(t=this[is]-this[rs]),this[e[1]](t),this}})})),xr(t,ii,{get:function(){if(this)return new I(this)}}),[gr,Ms][_t]((e=>{xr(t,e,{get:function(){if(this)return this[ii][e]}})})),[[Hs,xt],[qe+U+x,Ar],[qe+Y+x,Er],[qe+Ti+x,mr],[qe+us+x,wr]][_t]((e=>{xr(t,e[0],{get:function(){return this[e[1]]}})})),[[Ke+Ln,Ke+ie],[Ke+Ln+Nn,Ke+ls],[Ke+Ln+mn,Ke+hs],[Ke+Ln+gn,Ke+cs],[Ke+Ln+In,Ke+as],[Ke+wn,Ke+Vt],[Ke+wn+Nn,Ke+ds],[Ke+wn+mn,Ke+ys],[Ke+wn+gn,Ke+$s],[Ke+wn+In,Ke+Ts],[ni,_e]][_t]((e=>{xr(t,e[0],{value:function(){return this[e[1]][M](this,arguments[Rr])}})})),xr(t,ze+Ke+Y,{value:function(t,e){return this[ze+Y+Ke](!E(t),e)}})})(N[le]),(t=>{xr(t,Fs,{get:function(){let t=c[gi]("div");return t[pi](this),t[Zi]}}),[[mr,vi],[wr,Ei]][_t]((e=>{xr(t,e[0],{get:function(){return[...this[e[1]]]}})})),xr(t,xt,{get:function(){return this[vi][xt]}}),xr(t,Je,{value:function(t=!1){return this[mi](E(t))}}),xr(t,Ke+Ti,{value:function(t=[]){return typeof t===os&&t[Fe]()[xt]>0||typeof t===zt?this[pi](c[di](d(t))):$[Nt](t)&&t[xt]>1?t[_t]((t=>{typeof t===os&&t[Fe]()[xt]>0||typeof t===zt?this[pi](c[di](d(t))):null!=t&&this[pi](t)})):$[Nt](t)&&1===t[xt]?this[pi](t[0]):null!=t&&this[pi](t),this}}),[[yr,Fs],[Hs,xt],[qe+Ti+x,mr],[qe+us+x,wr]][_t]((e=>{xr(t,e[0],{get:function(){return this[e[1]]}})}))})(S[le]),h[Ke+Ls]=()=>{null==t&&(t=new IntersectionObserver((e=>{e.forEach((e=>{if(!e.isIntersecting)return;const n=e.target,i=(n.$attr("src")||"")[Fe]();i[xt]<1||i.$$200().then((e=>{t[He](n),e.text().then((t=>{const e="div"._(t),i=e[qe+Ti](0);i.id=e.id,e[yi][_t]((t=>i[yi].add(t))),i.onclick=e.onclick,null!=n[Vi]&&n[Vi][Ke+Ti](i,n),n.remove()})).catch((t=>{Br(t),n.__("☒")}))})).catch((e=>{Br(e),t[He](n),n.__("☒")}))}))})),[][ve].call("span.svg"[Ss])[_t]((e=>t.observe(e))))},h[Ke+Is]=()=>{null==e&&(e=new IntersectionObserver(((t,n)=>{t[_t]((t=>{const n=t.target;if(t.isIntersecting){const t=n.parentElement,i=(n.dataset[Ae]||"")[Fe](),s=n.$$class("fit"),r=n.$$class("fit-p");if(i[xt]<1)return;n.class_(ai),delete n.dataset[Ae],i.$$200(!0).then((i=>{e[He](n),n[Ae]=i[Ae],s&&(t.style["aspect-ratio"]=`${i.img.target.$nw} / ${i.img.target.$nh}`),r&&(t.style["aspect-ratio"]=`${i.img.target.$nw} / ${i.img.target.$nh}`)})).catch((t=>{Br(t),e[He](n),n[Ae]="https://cdn.jsdelivr.net/gh/pardnchiu/PDRenderKit@latest/static/image/404.svg"}))}}))})),[][ve].call("img.lazyload"[Ss])[_t]((t=>e[He](t))))},h[Ke+kt]=t=>{if(null==t)return h[Ke+Ls](),void h[Ke+Is]();0!=t["SVG"[De]()]&&h[Ke+Ls](),null!=t[ai]&&h[Ke+Is]()},h[qe+As]=t=>new g(((e,n)=>{if(!t)return()=>n();let i=new O;i[ae](t),i[Qt]=t=>e(t),i[Zt]=n})),h[qe+ui+gt+St+dt]=t=>new g(((e,n)=>{if(!t)return()=>n();let i=new O;i[ae](t),i[Qt]=function(t){if(!t.target)return()=>n();let i=new Image;i[Ae]=d(t.target.result),i[Qt]=()=>e(i),i[Zt]=n}})),h[qe+ui+gt+Xe+dt]=t=>new g(((e,n)=>{if(!t)return()=>n();let i=new O;i.readAsArrayBuffer(t),i[Qt]=function(){if(!i.result)return()=>n();let s=new Blob([i.result],{type:t.type}),r=w[Ki](s),o="video"._();o.preload="metadata",o[Ae]=r,o.muted=!0,o.playsInline=!0,o.onloadeddata=function(){let t=j._(),i=t[Ri]("2d");if(t[li]=o.videoWidth,t[oi]=o.videoHeight,!i)return()=>n();i[bi](o,0,0,t[li],t[oi]);let s=t[Ji](ui+tn+Dt),r=new b;r[Ae]=s,r[Qt]=()=>e(r),r[Zt]=n,o.ontimeupdate=null,o.pause()},o[Zt]=n,o.play()}})),h[ti]=(t,e)=>{let n=h.atob(t.split(",")[1]),i=new ArrayBuffer(n[xt]),s=new Uint8Array(i);for(let t=0;t(typeof t!==zt&&(t=8),t[Lr]);let Hr=c[J]+";";h[qe+J]=(t="")=>{if(![os,zt][ze](typeof t)||d(t)[js])return;const e=(t+"=([^ ;]+)?")[br](),n=Hr[Gt](e)||[],i=n[xt];let s=n[i-1];return i<1||null==s?void 0:(s=h[Ii+it](s),s[Sr]?s[Ms]:s)},h[Ke+J]=(t="",e,n)=>{if(![os,zt][ze](typeof t)||d(t)[js]||null==e)return;t=t[qe+"en"](!0),n=1e3*(typeof n===zt?n:3600);const i=new m,s=new m(i[Pi]()+n);return e=typeof e===hi?L[Ie](e)[Fe]()[qe+"en"](!0):d(e)[Fe]()[qe+"en"](!0),c[J]=`${t}=${e}; expires=${s.toUTCString()}; path=/`,Hr=c[J]+";",Hr},h[qe]=(t="")=>{if(typeof t===os&&!t[js])return d(t)[qe]},h[Ss]=(t="")=>{if(typeof t===os&&!t[js])return d(t)[Ss]},h[Ke+Ti]=(t=[],e)=>{c[k][Ke+Ti](t,e)},h[Qe+Ti]=(t=[])=>{c[k][Qe+Ti](t)},c.head[Ke+Ti]([Re[Ke](".dom-temp { display: none !important; }")]),h[Us]=(t="")=>typeof t!==os||t[js]?location[mt][Us]:t[Us],h[qe+"key"]=(t=8)=>h[Lr](t)})(window,document,navigator,location,console,Math,Promise,String,Number,Array,Object,Map,Boolean,Date,URL,URLSearchParams,Image,JSON,FormData,RegExp,Element,DocumentFragment,FileReader),((n,i,s,r,o,u,l)=>{const h=/\{\{\s*(((CALC|LENGTH|UPPER|LOWER|DATE)\(\s*[\w\.\s\+\-\*\/\,\s\/\:]+\s*\))|[\w\.]+)\s*\}\}/i,c=new RegExp(h,"gi"),a=/(CALC|LENGTH|UPPER|LOWER)\(([\w\.]+)\s*([\+\-\*\/\%]+)\s*([\d\.]+)\)/,f=/DATE\(([\w\.]+)\s*,\s*([^\n]+)\)/,_=/^\(?\s*([\w]+)(\s*\,|\s+)?/i,p=/\,\s*([\w]+)\s*\)/i,g=/\s+([\w\.]+)\s*$/i,d=/\s*[\!\>\<\=]+\=*\s*/,y=/([\w\.]+)\s*([\+\-\*\/\%])\s*([\d\.]+)/,$=":path",T=":for",v=":if",E=":else-if",m=":else",w=":model",A=":html",b="parentElement",L="textContent",I="toLowerCase",R="remove",N="alt",S="dom",O="path",C="data",D="event",F="next",M="done",U="trim",x="href",P="src",B="border",k="split",H="Radius",V="padding",j="margin",G="id",X="isArray",Y="style",W="Color",q="Image",z="Size",J="Attachment",K="Mode",Q="clip",Z="Blend",tt="Repeat",et="Origin",nt="Position",it="background",st="innerHTML",rt="forEach",ot="value",ut="body",lt="nodeType",ht="length",ct="match",at="shift",ft="isFor",_t="isAry",pt="isObj",gt="filter",dt="TEXT_NODE",yt="addEventListener",$t="dom-tag",Tt="class",vt="child",Et="attr",mt="$attr",wt="$attributes",At="$childNodes",bt="$next",Lt="$parent",It="$sel",Rt="$selAll",Nt="$keys",St="$key",Ot="attr_";function Ct(t){return`*[dom-tag='${t}']`}n.PD=class{dom;path;data;event;done={};constructor(t={}){n._Listener(t.listener);const e="string"==typeof t[G]?t[G].$:null;if(!(e instanceof Element))return;this[S]=e,this[O]={},this[C]=t[C],this[D]=t[D]||{};const i=Date.now();this.#t(e,t[C]||{}).then((e=>{const n=Date.now()-i;null!=t[F]&&(console.log("Rendered, took "+n/1e3+" seconds"),t[F](this[S]))}))}#e(t,e,n){return t=r(t),n=r(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||o[X](i)?null!=i&&u.defineProperty(e,t,{get:()=>i,set:t=>{i=t,n(t)}}):i[Nt][rt]((t=>{this.#n(t,i,n)}))}#i=async(t,e={},n={})=>{const s=t[Lt](0),r=t[wt][$];if(null!=s&&null!=r){if(null==this[O][r])this[O][r]=s;else if(this[O][r]==s)return;fetch(r).then((async r=>{const o=await r.text();"div"._(o)[At][rt]((e=>{t["_"+vt](e)})),o.$$(/new\s+PD/)||this.#t(t,e,n),t[At][rt]((e=>{e instanceof HTMLScriptElement?i[ut]["_"+vt]("script"._(e.$)):s["_"+vt](e,t)})),t[R]()})).catch((()=>{t[R]()}))}};#s=(t,e={},i={})=>{const o=t[Lt](0),u=t.$i,h=(t[mt](v)||"")[U](),c=(t[mt](":once")||"")[U](),a=Boolean(isNaN(parseInt(c))?c:parseInt(c));if(null==o||h[ht]<1)return;let f,_,p=[t],g=t[bt](0);for(null!=g&&(f=null!=g[mt](E),_=null!=g[mt](m));null!=g&&(f||_);)p.push(g),g=g[bt](0),null!=g&&(f=null!=g[mt](E),_=null!=g[mt](m));const y=n[St](16),$="temp"._(p._$((t=>t._$(!0)["_"+Et]({[$t]:y}))));let T=!1;p[rt]((t=>{if(t["_"+Et]({[$t]:y}),T)return t[R]();const n=(t[mt](v)||t[mt](E)||t[mt](m)||"")[U](),i=null!=t[mt](m),h=n[k](d).$(0),c=n[k](d).$(1),f=((n[ct](d)||[]).$(0)||"")[U](),_=this.#r(h,e,(t=>{a||(o[Rt](Ct(y))[rt]((t=>t[R]())),o["_"+vt]($._$(!0),u),this.#t(o,e,{[ft]:!0}))}));f.length<1?T=l(_):">"===f?T=(r(_)||0)>(r(c)||0):"<"===f?T=(r(_)||0)<(r(c)||0):">="===f||">=="===f?T=(r(_)||0)>=(r(c)||0):"<="===f||"<=="===f?T=(r(_)||0)<=(r(c)||0):"=="===f||"==="===f?T="null"==c?null==_:"true"==c?l(_):"false"==c?!l(_):"empty"==c?s(_||"")[ht]<1:s(_||"")==s(c):"!="!==f&&"!=="!==f||(T="null"==c?null!=_:"true"==c?!l(_):"false"==c?l(_):"empty"==c?s(_||"")[ht]>0:s(_||"")!=s(c)),t[Ot](v)[Ot](E)[Ot](m),T||i?T&&t.class_("dom-temp"):t[R]()})),this.#t(o,e,i)};#r=(t="",e={},n)=>{if(t[U]()[ht]<1)return;const i=t.$$(h);let s="",r="";i&&(s=t[k](h)[0]||"",r=t[k](h)[4]||"",t=t[ct](h)[1]);const o=t.$$(/^LENGTH\(.+\)/);o&&(t=t.__(/^LENGTH\(|\)$/g,""));const u=t.$$(/^CALC\(.*\)$/);let l="",c=0;if(u){const e=(t=t.__(/^CALC\(|\)$/g,""))[ct](y);t=e.$(1),l=e.$(2),c=parseInt(e.$(3))||0}const a=t.$$(/^UPPER\(.*\)$/),f=t.$$(/^LOWER\(.*\)$/);(a||f)&&(t=t.__(/^(UPPER|LOWER)\(|\)$/g,""));const _=t.$$(/^DATE\([\w\,\-\s\:]*\)$/);let p="";if(_){const e=(t=t.__(/^DATE\(|\)$/g,""))[ct](/(\w+),\s*([^\n]+)/);t=e.$(1),p=e.$(2)}let g=t[k](/\./),d=e,$=g.$(0),T=d[$];g[at](),T=this.#o(g,d,$,T),null!=n&&this.#n($,d,(t=>{n(t)}));let v="";if(null!=T&&T instanceof Object&&!Array.isArray(T)?v=T[Nt][ht]:null!=T&&(v=T[ht]),i){if(o)return s+v+r;if(u&&(T=this.#e(T,l,c),null==T))return;return s+T+r}if(o)return v;if(u){if(T=this.#e(T,l,c),null==T)return}else{if(a)return T.toUpperCase();if(f)return T[I]();if(_)return parseInt(T).$format(p)}return T};#u=(t,e={})=>{const n=t[Lt](0),i=(t[mt](w)||"")[U]();t[Ot](w);this.#r(i,e,(t=>{}));if(null==n||null==i||i[U]()[ht]<1)return;const s=t instanceof HTMLInputElement,r=t instanceof HTMLTextAreaElement,o=t instanceof HTMLSelectElement,u=t.$attr("type");!s||"checkbox"!==u&&"radio"!==u?o?t[yt]("change",(t=>{e[i]=t.target[ot]})):(s||r)&&(t[yt]("keyup",(t=>{e[i]=t.target[ot]})),t[yt]("change",(t=>{e[i]=t.target[ot]}))):t[yt]("change",(t=>{e[i]=("input[name='"+t.target.name+"'][type='"+u+"']:checked").$all.map((t=>t.value)).join(",")}))};#l(t,e={}){const n=t[mt]($t)||"",s=t[wt][Nt][gt]((t=>t.$$(/^:[\w\-]+$/)))[gt]((t=>!t.$$(/\:(path|for|if|else\-if|else|model)/)));s[ht]<1||s[rt]((s=>{const r=(t[mt](s)||"")[U](),o=this.#r(r,e,(e=>{const o=i[ut][Rt](Ct(n));o[ht]<1||o[rt]((n=>{this.#h(t,s,e,r)}))}));this.#h(t,s,o,r),t[Ot](s)}))}#h(t,e,n="",i){n=s(n),e[I]()===(":"+Tt)[I]()&&t._class(n),[[":"+G,G],[":"+P,P],[":"+N,N],[":"+x,x],[A,st]][rt]((i=>{e[I]()===i[0][I]()&&(n[U]()[ht]<1||(t[i[1]]=n))})),":hide"===e[I]()&&Boolean(isNaN(parseInt(n))?n:parseInt(n))&&(t[Y].display="none"),[[":"+j,j],[":"+V,V],[":"+B,B],[":"+B+"-"+H,B+H],[":outline","outline"],[":box-sahdow","boxShadow"],[":bg-"+q,it+q],[":bg-"+J,it+J],[":bg-Blend-"+K,it+Z+K],[":bg-"+Q,it+Q],[":bg-"+et,it+et],[":bg-"+nt,it+nt],[":bg-"+nt+"-X",it+nt+"X"],[":bg-"+nt+"-Y",it+nt+"Y"],[":bg-"+tt,it+tt],[":bg-"+z,it+z],[":bg-"+W,it+W],[":"+W,W[I]()]][rt]((s=>{e[I]()===s[0][I]()&&(n[U]()[ht]<1?t[Y][s[1]]=i:t[Y][s[1]]=n)})),n[U]()[ht]<1?t[Ot](`${e.__(/^:/,"")}`):t["_"+Et]({[`${e.__(/^:/,"")}`]:n})}#c=(t,e={},n={})=>{(()=>{t[wt][Nt][gt]((t=>t.$$(/^@[\w]+$/)))[rt]((e=>{const n=e.__(/\@/,"on"),i=t[mt](e);t[Ot](e),null!=i&&(t[n]=this[D][i])}))})(),(()=>{if(!l(n[ft]))return;const i=(t[mt](T)||"")[U](),s=(i[ct](_)||[]).$(1),r=(i[ct](p)||[]).$(1);t[wt][Nt][gt]((t=>t.$$(/^:@[\w]+$/)))[rt]((i=>{const o=i.__(/^\:\@/,"on");let u=(t[mt](i)||"")[U]()[k](/\./)[gt]((t=>t[ht]>0))||[],h=e,c=u.$(0),a=h[c];u[at](),l(n[_t])&&c!=s||l(n[pt])&&c!=r||(a=this.#o(u,h,c,a),null!=a&&(t[o]=this[D][a]))}))})()};#a=(t,e={},s={})=>{const r=t[mt]($t)||n[St](16),o=(t[mt](":once")||"")[U](),u=Boolean(isNaN(parseInt(o))?o:parseInt(o));t["_"+Et]({[$t]:r});const l=t._$(!0),a=t[Lt](0),f=t.$i,_=t[st].$$(c);null!=parent&&0!=_&&t[At][gt]((e=>e[b]===t&&e[lt]===Node[dt]))[rt]((t=>{((t[L]||"")[ct](c)||[])[rt]((n=>{const s=(n[ct](h)||[]).$(1);if(null==s)return;const o=this.#r(s,e,(t=>{if(u)return;const n=i[ut][It](Ct(r));null!=n&&null!=a&&(a["_"+vt](l._$(!0),f),n[R](),this.#t(a,e))}));null!=o&&this.#f(t,s,o)}))}))};#_=(t,e={},i={})=>{const s=t[Lt](0),r=(t[mt](T)||"")[U](),u=(t[mt](":once")||"")[U](),l=Boolean(isNaN(parseInt(u))?u:parseInt(u));if(null==s||r[ht]<1)return;const h=n[St](16),c=t._$(!0)["_"+Et]({[$t]:h}),a="temp"._(),f=t[bt](0);t[R]();const _=(r[ct](/^\(?\s*(\w+)/)||[]).$(1),p=(r[ct](/\,\s*(\w+)/)||[]).$(1),d=(r[ct](g)||[]).$(1),y=this.#r(d,e,(t=>{const n=s[It](Ct(h))?.$i;s[Rt](Ct(h))[rt]((t=>t[R]())),s["_"+vt](c._$(!0),n),this.#t(s,e,{[ft]:!0})}));o[X](y)?y[rt](((t,n)=>{const i=c._$(!0);a["_"+vt](i);const r={[`${_}`]:t,[`${p}`]:n};"object"==typeof t&&null!=t?(t[Nt][rt]((n=>{this.#n(n,t,(()=>{if(l)return;const t=s[It](Ct(h))?.$i;s[Rt](Ct(h))[rt]((t=>t[R]())),s["_"+vt](c._$(!0),t),this.#t(s,e,{[ft]:!0})}))})),this.#l(i,r),this.#c(i,r,{[ft]:!0,[_t]:!0}),this.#p(i,r),this.#t(i,r,{[ft]:!0})):(this.#l(i,r),this.#c(i,r,{[ft]:!0,[_t]:!0}),this.#p(i,r))})):"object"==typeof y&&null!=y&&y[Nt][rt]((t=>{const n=c._$(!0);a["_"+vt](n),this.#n(t,y,(()=>{if(l)return;const t=s[It](Ct(h))?.$i;s[Rt](Ct(h))[rt]((t=>t[R]())),s["_"+vt](c._$(!0),t),this.#t(s,e,{[ft]:!0})}));const i=y[t],r={[`${_}`]:t,[`${p}`]:i};this.#l(n,r),this.#c(n,r,{[ft]:!0,[pt]:!0}),this.#g(n,r),this.#t(n,r,{[ft]:!0,[_t]:o[X](i)})})),s["_"+vt](a,f)};#p=(t,e={})=>{const n=(t[mt](T)||"")[U](),i=(n[ct](_)||[]).$(1),s=(n[ct](p)||[]).$(1),r=e[s];t[Ot](T),t[At][gt]((e=>e[b]===t&&e[lt]===Node[dt]))[rt]((t=>{((t[L]||"")[ct](c)||[])[rt]((n=>{const o=(n[ct](h)||[]).$(1);if(null==o)return;const u=o[ct](a),l=o[ct](f),c=(u||[]).$(3),_=Number((u||[]).$(4));let p=(null!=u?u.$(2):o)[k](/\./),g=e,d=p.$(0),y=g[d];p[at](),null!=u&&d===i||null!=l&&d===i?y=this.#r(o,e)||"":d===i?y=this.#o(p,g,d,y):d===s&&(y=this.#e(r,c,_)),null!=y&&this.#f(t,o,y)}))})),this.#t(t,e,{[ft]:!0})};#g=(t,e={})=>{const n=(t[mt](T)||"")[U](),i=(n[ct](_)||[]).$(1),s=(n[ct](p)||[]).$(1);t[Ot](T),t[At][gt]((e=>e[b]===t&&e[lt]===Node[dt]))[rt]((t=>{((t[L]||"")[ct](c)||[])[rt]((n=>{let r=(n[ct](h)||[]).$(1);if(null==r)return;const o=r[ct](a),u=(o||[]).$(3),l=Number((o||[]).$(4));let c=(null!=o?o.$(2):r)[k](/\./),f=e,_=c.$(0),p=f[_];c[at](),null!=o&&_===s?p=this.#r(r,e)||"":_===s?p=this.#o(c,f,_,p):null!=o&&_===i&&(p=this.#e(p,u,l)),null!=p&&this.#f(t,r,p)}))})),this.#t(t,e,{[ft]:!0})};#o(t,e,n,i){if(null!=i){for(;t[ht]>0;)i=i[t.$(0)],t[at]();return i}}#f(t,e,n){const i=("{{\\s*?"+(e=e.__(/(\?|\.|\+|\*|\\|\%|\-|\(|\))/g,"\\$1"))+"\\s*?}}").$regexp("i");n=(t[L]||"").__(i,n)||"",t[L]=n}async#t(n,s={},r={}){const o=i.$init;return n==this.dom&&(this.#l(n,s),this.#c(n,s,r),this.#a(n,s,r)),o?(n[Lt](0)==this[S]&&(this[M][n.$i]=!1),await new Promise((i=>(n.$childAll[rt]((async n=>{const i=n[wt];if(null!=e&&n["$$"+Tt]("lazyload")&&e.observe(n),null!=t&&n["$$"+Tt]("svg")&&"SPAN"===n.tagName&&t.observe(n),null!=n[Lt](0)&&null==i[E]&&null==i[m])if(i[$])this.#i(n,s,r);else{if(!i[T])return this.#s(n,s,r),this.#u(n,s),this.#l(n,s),this.#c(n,s,r),this.#a(n,s,r),await this.#t(n,s,r);this.#_(n,s,r)}})),n.class_("dom-temp"),n[Lt](0)==this[S]||n==this[S]?(this[M][n.$i]=!0,i(n)):null)))):n}}})(window,document,String,Number,Array,Object,Boolean,Image,JSON,RegExp,Element,DocumentFragment); \ No newline at end of file +"use strict";let t,e,n,i,o,r,u,l,s=[];((h,c,a,f,_,p,g,d,y,$,T,v,E,m,w,A,b,L,I,R,N,S,O)=>{const C="abs",D="anonymous",F="append",M="apply",U="attr",x="All",P="Attribute",B="base64",k="body",H="boolean",V="Bottom",j="canvas",G="charCodeAt",X="charAt",Y="class",W="client",q="clipboard",z="code",J="cookie",K="copy",Q="contains",Z="create",tt="crossOrigin",et="currentScript",nt="Child",it="Component",st="display",rt="download",ot="drag",ut="Data",lt="en",ht="enter",ct="Element",at="floor",ft="font",_t="forEach",pt="filter",gt="From",dt="File",yt="fromCharCode",$t="get",Tt="hasOwnProperty",vt="header",Et="history",mt="href",wt="Height",At="HTML",bt="init",Lt="inner",It="indexOf",Rt="insertBefore",Nt="isArray",St="Image",Ot="join",Ct="jpeg",Dt="jpg",Ft="json",Mt="keys",Ut="leave",xt="length",Pt="line",Bt="Left",kt="Listener",Ht="Lazy",Vt="margin",jt="map",Gt="match",Xt="mouse",Yt="move",Wt="natural",qt="next",zt="number",Jt="Node",Kt="N/A",Qt="onload",Zt="onerror",te="origin",ee="over",ne="Object",ie="padding",se="parent",re="parse",oe="pathname",ue="png",le="prototype",he="push",ce="query",ae="readAsDataURL",fe="random",_e="remove",pe="replace",ge="Right",de="scroll",ye="set",$e="Sibling",Te="size",ve="slice",Ee="split",me="splice",we="SS",Ae="src",be="start",Le="startsWith",Ie="stringify",Re="style",Ne="substring",Se="String",Oe="touch",Ce="toUpperCase",De="toLowerCase",Fe="trim",Me="test",Ue="Top",xe="To",Pe="Text",Be="textContent",ke="userAgent",He="unobserve",Ve="URL",je="vals",Ge="values",Xe="Video",Ye="write",We="Width",qe="$",ze="$$",Je="_$",Ke="_",Qe="__",Ze="",tn="/",en="-",nn=".",sn=":",rn=" ",on="yyyy/MM/DD (ddd) HH:mm:ss";let un="";$[gt[De]()]({[xt]:26},((t,e)=>d[yt](97+e)))[_t](((t,e)=>{let n=e<10,i=e>=10&&e<20,s=e>=20,r=d(e),o=r[X](r[xt]-1),u=e=>{un+=e?t[Ce]():t,h[(e?qe:Ke)+(s?Ke:Ze)+o+(i?Ke:Ze)]=e?t[Ce]():t};u(0),u(1),n&&(un+=e,h[Ke+t]=e)}));const ln=h._a,hn=h._b,cn=h._c,an=h._d,fn=h._e,_n=(h._f,h._g,h._h,h._i),pn=(h._j,h._0),gn=h._1,dn=h._2,yn=h._3,$n=h._4,Tn=(h._5,h._6),vn=h._7,En=h._8,mn=(h._9,h._0_,h._1_),wn=h._2_,An=h._3_,bn=h._4_,Ln=h._5_,In=(h._6_,h._7_),Rn=h._8_,Nn=h._9_,Sn=h.__0,On=(h.__1,h.__2),Cn=h.__3,Dn=h.__4,Fn=(h.__5,h.$0),Mn=h.$1,Un=h.$2,xn=h.$3,Pn=(h.$4,h.$5,h.$6),Bn=h.$7,kn=(h.$8,h.$9,h.$0_),Hn=h.$1_,Vn=h.$2_,jn=(h.$3_,h.$4_,h.$5_),Gn=(h.$6_,h.$7_),Xn=h.$8_,Yn=h.$9_,Wn=(h.$_0,h.$_1,h.$_2,h.$_3),qn=h.$_4,zn=(h.$_5,[En,Nn][Ot](Ze)),Jn=[Sn,gn][Ot](Ze),Kn=[pn,In,yn,An][Ot](Ze),Qn=[vn,En,Sn][Ot](Ze),Zn=[jn,xn,Gn,$n,An,yn,$n,In,kn,En,Nn][Ot](Ze),ti="$blob",ei="$parent",ni="$rm",ii="$formData",si=Ye+Pe,ri=ut[De](),oi=wt[De](),ui=St[De](),li=We[De](),hi=ne[De](),ci=lt+yn,ai=Ht[De]()+"load",fi=x[De](),_i=P[De]()+Rn,pi=F+nt,gi=Z+ct,di=Z+Pe+Jt,yi=Y+"List",$i=Y+"Name",Ti=nt[De](),vi=Ti+"ren",Ei=Ti+Jt+Rn,mi="clone"+Jt,wi=ri+ye,Ai="DD"[De](),bi="draw"+St,Li=lt+z+"URI",Ii="decodeURI",Ri=$t+"Context",Ni=$t+"Date",Si=$t+"Day",Oi=$t+ct+"ById",Ci=$t+"FullYear",Di=$t+"Hours",Fi=$t+"Minutes",Mi=$t+"Month",Ui=$t+"Seconds",xi=$t+"Milliseconds",Pi=$t+"Time",Bi=Lt+We,ki=Lt+wt,Hi=qt+ct+$e,Vi=se+ct,ji=se+Jt,Gi="previous"+ct+$e,Xi=ce+"Selector",Yi=Xi+x,Wi=_e+nt,qi=xe[De](),zi=qi+Se,Ji=qi+ut+Ve,Ki=Z+ne+Ve,Qi="revoke"+ne+Ve,Zi=Lt+At,ts=de+Bt,es=de+Ue,ns=de+We,is=de+wt,ss=W+We,rs=W+wt,os=Se[De](),us=Jt[De](),ls=ie+Yn,hs=ie+Hn,cs=ie+Mn,as=ie+Gn,fs=ie+Ue,_s=ie+Bt,ps=ie+V,gs=ie+ge,ds=Vt+Yn,ys=Vt+Hn,$s=Vt+Mn,Ts=Vt+Gn,vs=Vt+Ue,Es=Vt+Bt,ms=Vt+V,ws=Vt+ge,As=dt[De](),bs=As+Rn,Ls="SVG"+kt,Is=Ht+kt,Rs=gt[De]()+"Entries",Ns=["load","click","dblclick","scroll","contextmenu","focus","blur","input","keydown","keyup","change","cut","paste",Xt+"down",Xt+"up",Xt+ht,Xt+Ut,Xt+ee,Xt+"out",Xt+Yt,Oe+be,Oe+Yt,Oe+ht,Oe+Ut,Oe+ci,Oe+"up",ot+be,ot+ht,ot+ee,ot+Ut,ot+ci,"drop"],Ss=qe+fi,Os=qe+B,Cs=qe+"date",Ds=qe+"gone",Fs=qe+At[De](),Ms=qe+Ft,Us=qe+Ve[De](),xs=qe+ce,Ps=xs+x,Bs=qe+"req",ks=qe+"num",Hs=qe+"len",Vs="$$mt",js="$$empty",Gs=qe+Dn,Xs=qe+"yy",Ys=Xs+"yy",Ws=qe+Vn,qs=qe+"MM",zs=qe+xn,Js=qe+"DD",Ks=qe+yn,Qs=qe+Ai,Zs=qe+Ai+yn,tr=qe+Ai+Ai,er=qe+Bn,nr=qe+"HH",ir=qe+vn,sr=nr[De](),rr=qe+pn,or=qe+Fn,ur=qe+wn,lr=qs[De](),hr=qe+Rn,cr=qe+we[De](),ar=qe+Xn,fr=qe+we,_r=qe+we+Xn,pr=qe+"format",gr=qe+jt,dr=qe+En,yr=qe+"str",$r=qe+Mt,Tr=qe+"timestamp",vr=qe+K,Er=qe+yi,mr=qe+vi,wr=qe+Ei,Ar=qe+_i,br=qe+"regexp",Lr=qe+fe,Ir=qe+"shuffle",Rr=qe+Ge,Nr=qe+Pe[De](),Sr=ze+Ft,Or="$00",Cr=ce+Ke,Dr=ce+Qe,Fr=/zh/.test(navigator.language||""),Mr=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],Ur=t=>["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][jt]((e=>e[ve](0,typeof t!==zt?e[xt]:t)));o=/android/i[Me](a[ke]),r=/iphone|ipad/i[Me](a[ke]),u=o||r,l=!u,s=[f[mt]],[n,i]=[h[Bi],h[ki]],h.onresize=t=>{[n,i]=[h[Bi],h[ki]]};const xr=T.defineProperty;let Pr=!0;function Br(t,e){_.log(t,e)}var kr;Pr&&(Pr=!1,function(t){const e=[dn,bn,Ln,Dn,In,En,Tn,vn,Nn][Ot](Ze),n=[Un,In,$n,pn,Nn,bn,In][Ot](Ze),i=[jn,Kn,rn,Hn,Nn,yn][Ot](Ze),s=[jn,Kn,rn,Un,Qn][Ot](Ze),r=[[[ft,en,Te,sn],[hn,fn,Ln,Cn]],[[Pt,en,oi,sn],[cn,_n,Ln,Cn]]],o=[[["%",dn,t]],[[Pn,zn,Bn,Jn,sn],[vn,Nn,Nn,Ln,Rn,sn,tn,tn,Tn,zn,vn,Jn,nn,dn,bn,wn,tn,Ln,Kn,dn,Qn,tn,t]],[[n,sn],[s]],[[Hn,En,dn,$n,An,Rn,$n,sn],[Pn,jn,Hn,en+an+nn+ln]]][jt]((t=>$[Nt](t)?t[jt]((t=>t[Ot](Ze)))[Ot](rn):t)).join("\n"),u=r[jt]((t=>$[Nt](t)?t[jt]((t=>t[Ot](Ze)))[Ot](Ze):t)).join(";"),l=c[et][$t+P](e);l&&l===i?(c[qe+bt]=f[mt],c[qe+n]=s,console.log(o,u)):c[et][ji][Wi](c[et])}(Zn)),kr=d[le],xr(kr,Ms,{get:function(){try{return L[re](this[zi]())}catch(t){}}}),xr(kr,Fs,{get:function(){return this[zi]()[Qe](/[ \<\>\"\']/g,(t=>({" ":" ","<":"<",">":">",'"':""","'":"'"}[t])))}}),xr(kr,Sr,{get:function(){return null!=this[Ms]}}),xr(kr,js,{get:function(){return this[zi]()[Fe]()[xt]<1}}),xr(kr,K,{value:async function(){try{await a[q][si](this[zi]())}catch(t){Br(t)}}}),xr(kr,Qe,{value:function(t="",e=""){const n=this[zi]();return typeof t===os&&!t[js]||t instanceof R?n[pe](t,e):n}}),xr(kr,br,{value:function(t,e){let n=this[zi]();return typeof t===H&&void 0===e&&(e=t,t=void 0),typeof e===H&&!0===e&&(n=n[Qe](/[\^\$\{\}\|\,\[\]\(\)\=\!\*\+\.\?]/g,(t=>"\\"+t))),typeof t===os&&/[gimsuy]+/[Me](t)?new R(n,t):new R(n)}}),xr(kr,ze,{value:function(t=""){const e=this[zi]();return t instanceof R?t[Me](e):typeof t===os&&t===e}}),xr(kr,qe+lt,{value:function(t=!1){return h[Li+t?it:""](this[zi]())}}),xr(kr,qe+"de",{value:function(t=!1){return h[Ii+t?it:""](this[zi]())}}),xr(kr,Us,{get:function(){const t=this[zi]();try{return new w(t)}catch(e){return new w(f[te]+t)}}}),xr(kr,Ps,{get:function(){return this[zi]()[Us][Ps]}}),xr(kr,qe+"img",{get:async function(){return new g(((t,e)=>{const n=new b;n[Ae]=this[zi]()[Us][mt],n[tt]=D,n[Qt]=e=>t(n),n[Zt]=e}))}}),[Bs,Ke+Et,Qe+Et,Ke+ce,Qe+ce,Cr,Dr,xs][_t]((t=>xr(kr,t,{value:function(){const e=this[zi]()[Us];return e[t][M](e,arguments[Rr])}}))),xr(kr,"$$200",{value:async function(t=!1){return new g((async(e,n)=>{try{const i=await fetch(this[zi]());if(i.ok){const s=i.headers[$t]("Content-Type");if(s&&s[Le](ui)){if(s==ui+"/svg+xml"&&!t)return void e(i);const r=await i.blob(),o=new b,u=w[Ki](r);o[Ae]=u,o[tt]=D,o[Qt]=t=>e({src:u,img:o}),o[Zt]=t=>{w[Qi](u),n(t)}}else e(i)}else n(new Error(`HTTP error! status: ${i.status}`))}catch(t){n(t)}}))}}),xr(kr,"_fa",{get:function(){return(En+nn+this[zi]()[Qe](/\s/,nn))[Ke]()}}),xr(kr,qe,{get:function(){const t=this[zi]();return t[Le]("#")?c[Oi](this[Ne](1)):/[\.\[\]]/[Me](t)?c[Xi](t):c[Oi](t)||c[Xi](t)}}),xr(kr,Ss,{get:function(){return[...c[Yi](this[zi]())]}}),xr(kr,Ke,{value:function(n,i){const s=/^\w+(?=[\#\.]*)/i,r=/\.([\w_-]+)?/gi,o=s[Me](this)?this[Gt](s)[0]:null,u=/^(svg|rect|circle|ellipse|line|polyline|polygon|path|text|tspan|g|defs|symbol|image|use|clipPath|mask|linearGradient|radialGradient)$/i[Me](o),l="temp"===this[zi](),h="txt"===this[zi](),a=l?c.createDocumentFragment():h?c[di](d(n)):u?c.createElementNS("http://www.w3.org/2000/svg",o):c[gi](o),_=r[Me](this)?this[Gt](r):[],p=this[Gt](/\#([\w_-]+)?/i),g=[Un,In,$n,pn,Nn,bn,In][Ot](Ze),y=[jn,Kn,rn,Un,Qn][Ot](Ze);if(h)return a;p&&(a.id=p[1]),_[_t]((t=>a[yi].add(t[pe](/^\./,""))));const T=c[qe+bt],v=c[qe+g];if(!T||T!=f[mt]||!v||v!=y)return a;let E,m;if(/^span\.svg/i[Me](this)&&null!=t&&t.observe(a),null==n&&null!=i&&([n,i]=[i,null]),null!=n&&null!=i)[E,m]=[n,i];else if(null==i)typeof n===os||typeof n===zt||$[Nt](n)?m=n:E=n;else if(null==n)return a;const w="input"===o;if(w||"textarea"===o){const t=/\s(.+)/i,e=this[Gt](t);a.placeholder=e?e[1]:"";const n=/\@(\w+)/i,i=this[Gt](n);w&&(a.type=i?i[1]:"test")}if(typeof E===hi&&null!=E&&E[$r][_t]((t=>{const n=E[t];["value","innerText","innerHTML",Be,"contentEditable"].includes(t)?a[t]=n:["color","backgroundColor"].includes(t)?a[Re][t]=n:t===Re?n[$r][_t]((t=>a[Re][t]=n[t])):t===ai?null!=e?(a[yi].add(ai),a[ye+P]("data-src",n),e.observe(a)):a[Ae]=n:null!=n&&a[ye+P](t,n)})),null!=m){const t=typeof m===os,e=typeof m===zt,n=$[Nt](m);if(t||e){const t=d(m);"img"===o||"source"===o?a[Ae]=t:a[Zi]=t}else n&&m[_t]((t=>{const e=t instanceof Element;typeof t===os||typeof t===zt?l?a[pi](c[di](d(t))):a[Zi]+=t:e&&a[pi](t)}))}return a}}),xr(kr,ks,{get:function(){return y(this[zi]()[Qe](/\,/g,""))}}),xr(kr,Hs,{get:function(){return this[zi]()[xt]}}),xr(kr,Vs,{get:function(){return this[js]}}),xr(kr,qe+"ary",{value:function(t=""){return this[zi]()[Ee](t)}}),xr(kr,qe+"fit",{value:function(t){if(null!=t)return this[zi]()[Gt](t)}}),xr(kr,vr,{value:async function(){this[K]()}}),(t=>{xr(t,Or,{get:function(){return(this<10?ln:"")+d(this)}}),xr(t,Lr,{get:function(){const t=un[xt];let e="";for(let n=0;n{xr(t,e,{get:function(){return this[Cs][e]}})})),xr(t,pr,{value:function(t=on){return this[Cs][pr](t)}}),xr(t,yr,{get:function(){return d(this)}}),xr(t,ks,{get:function(){return y(this)}})})(y[le]),(t=>{xr(t,qe+"sum",{get:function(){return this.reduce(((t,e)=>t+e),0)}}),xr(t,Ir,{get:function(){for(let t=this[xt]-1;t>0;t--){const e=p[at](p[fe]()*(t+1));[this[t],this[e]]=[this[e],this[t]]}return this}}),xr(t,gr,{get:function(){const t=new v;return this[_t](((e,n)=>{t[ye](e,n)})),t}}),xr(t,js,{get:function(){return this[xt]<1}}),xr(t,Ke,{value:function(t,e){const n=this[xt];return(t||[])[js]||(typeof e!==zt||p[C](e)>n?e=n:e<0&&(e=n+e),$[Nt](t)?this[me](e,0,...t):void 0!==t&&this[me](e,0,t)),this}}),xr(t,qe,{value:function(t){const e=this[xt];if(typeof t===zt&&p[C](t){xr(t,$r,{get:function(){return T[Mt](this)}}),xr(t,Rr,{get:function(){return T[Ge](this)}}),xr(t,gr,{get:function(){const t=new v;for(const e in this)this[Tt](e)&&t[ye](e,this[e]);return t}}),xr(t,Ke,{value:function(t,e,n=!0){return n&&[os,zt][ze](typeof t)&&(this[d(t)]=e),this}}),xr(t,ze,{value:function(t){return[os,zt][ze](typeof t)?this[Tt](t):void 0===t&&this[$r][xt]>0}}),xr(t,_t,{value:function(t){if(t instanceof Function)for(const e in this)this[Tt](e)&&t(e,this[e])}}),xr(t,qe+je,{get:function(){return this[Rr]}}),xr(t,qe+_t,{value:function(t){this[_t](t)}})})(T[le]),(t=>{xr(t,Ms,{get:function(){return T[Rs](this)}}),xr(t,$r,{get:function(){return this[Mt]()}}),xr(t,Rr,{get:function(){return this[Ge]()}}),xr(t,js,{get:function(){return this[Te]<1}}),xr(t,xt,{get:function(){return this[Te]}}),xr(t,Ke,{value:function(t,e){if(null==t)return this;const n=new v(this);return n[ye](t,e),n}}),xr(t,qe,{value:function(t){if(null!=t)return this[$t](t)}}),xr(t,"$_",{value:function(t){if(null==t)return this;const e=new v(this);return e.delete(t),e}}),xr(t,ze,{value:function(t){return null!=t&&this.has(t)}}),xr(t,qe+je,{get:function(){return this[Ge]()}}),xr(t,qe+"obj",{get:function(){return this[Ms]}}),xr(t,Hs,{get:function(){return this[Te]}}),xr(t,Vs,{get:function(){return this[js]}})})(v[le]),(t=>{xr(t,gr,{get:function(){const t=new v;return this[_t](((e,n)=>{t[ye](n,e)})),t}}),xr(t,Ms,{get:function(){return this[gr][Ms]}})})(I[le]),(t=>{xr(t,Gs,{get:function(){return this[Xs]}}),xr(t,Xs,{get:function(){return d(this[Ys])[ve](-2)}}),xr(t,Ys,{get:function(){return this[Ci]()}}),xr(t,Ws,{get:function(){return this[Mi]()+1}}),xr(t,qs,{get:function(){return this[Ws][Or]}}),xr(t,zs,{get:function(){return this[Ni]()}}),xr(t,Js,{get:function(){return this[zs][Or]}}),xr(t,Ks,{get:function(){return this[Si]()}}),xr(t,Qs,{get:function(){const t=this[Ks];return(Fr?Mr[t]:Ur(2)[t])||Kt}}),xr(t,Zs,{get:function(){const t=this[Ks];return(Fr?Mr[t]:Ur(3)[t])||Kt}}),xr(t,tr,{get:function(){const t=this[Ks];return(Fr?Mr[t]:Ur()[t])||Kt}}),xr(t,er,{get:function(){return this[Di]()}}),xr(t,nr,{get:function(){return this[er][Or]}}),xr(t,ir,{get:function(){return this[Di]()%12||12}}),xr(t,sr,{get:function(){return this[ir][Or]}}),xr(t,rr,{get:function(){return this[Di]()>=12?"pm":"am"}}),xr(t,or,{get:function(){return this[rr][Ce]()}}),xr(t,ur,{get:function(){return this[Fi]()}}),xr(t,lr,{get:function(){return this[ur][Or]}}),xr(t,hr,{get:function(){return this[Ui]()}}),xr(t,cr,{get:function(){return this[hr][Or]}}),xr(t,ar,{get:function(){return d(this[_r])[ve](0,1)}}),xr(t,fr,{get:function(){return y(d(this[_r])[ve](0,2))[Or]}}),xr(t,_r,{get:function(){const t=this[xi]();return d(t<10?"00":t<100?ln:"")+d(t)}}),xr(t,Tr,{get:function(){return p[at](this[Pi]()/1e3)}}),xr(t,Ds,{get:function(){const t=this[Tr],e=(new m)[Tr],n=p[C](e-t),i=e>t,s=i&&Fr?"前":"",r=3600,o=24*r,u=7*o,l=30*o,h=365*o;if(n<60)return Fr?"剛剛":"recent";let c=i?"":Fr?"還有":"Coming in ";if(n>=h){const t=p[at](n/h);c+=t+(Fr?"年":" year"+(t>1?"s":""))}else if(n>=l){const t=p[at](n/l);c+=t+(Fr?"個月":" month"+(t>1?"s":""))}else if(n>=u){const t=p[at](n/u);c+=t+(Fr?"週":" week"+(t>1?"s":""))}else if(n>=o){const t=p[at](n/o);c+=t+(Fr?"天":" day"+(t>1?"s":""))}else if(n>=r){const t=p[at](n/r);c+=t+(Fr?"小時":" hour"+(t>1?"s":""))}else if(n>=60){const t=p[at](n/60);c+=t+(Fr?"分鐘":" min"+(t>1?"s":""))}return c+s}}),xr(t,pr,{value:function(t=on){return t=t[pe](/Y{4}/gi,this[Ys])[pe](/Y{2}/gi,this[Xs])[pe](/Y{1}/gi,this[Gs])[pe](/M{2,}/g,this[qs])[pe](/M{1}/g,this[Ws])[pe](/D{2,}/g,this[Js])[pe](/D{1}/g,this[zs])[pe](/H{2,}/g,this[nr])[pe](/H{1}/g,this[er])[pe](/h{2,}/g,this[sr])[pe](/h{1}/g,this[ir])[pe](/m{2,}/g,this[lr])[pe](/m{1}/g,this[ur])[pe](/s{2,}/g,this[cr])[pe](/s{1}/g,this[hr])[pe](/S{3,}/g,this[_r])[pe](/S{2}/g,this[fr])[pe](/S{1}/g,this[ar])[pe](/A{1}/g,this[or])[pe](/a{1}/g,this[rr])[pe](/d{4,}/g,this[tr])[pe](/d{3}/g,this[Zs])[pe](/d{2}/g,this[Qs])[pe](/d{1}(?!ay)/g,this[Ks])}}),xr(t,Cs,{value:function(t){const e=typeof t===hi&&null!=t,n=this[Gs],i=this[Ws]-1;if(!e)return new m;const s=typeof t.pre===hi&&null!=t.pre;return E(t.start)&&t.start?new m(n,i,1):E(t.end)&&t.end?new m(n,i-1,0):s?E(t.pre.start)&&t.pre.start?new m(n,i-1,1):E(t.pre.end)&&t.pre.end?new m(n,i,0):new m:new m}})})(m[le]),(t=>{xr(t,Ps,{get:function(){const t=new A(this.search),e=new v;return t[_t](((t,n)=>{e[ye](t,n)})),e[Ms]}});let e=!1;xr(t,Bs,{value:function(t={},n=!1){if(null==t)return;let i=this[mt];const s=typeof t[Ft]===hi&&null!=t[Ft]&&!$[Nt](t[Ft]);let r;return t[bs]&&t.tag?(r=new I,s&&t.json[$r][_t]((e=>{r[F](e,t[Ft][e])})),t[bs][_t]((e=>{r[F](t.tag,e)}))):s&&(r=L[Ie](t[Ft])),new g(((s,o)=>{if(e&&n)return o("等待請求完成.");n&&(e=!0);const u=new XMLHttpRequest;u.open(t.method||"GET",i),t[vt]&&t[vt][$r][_t]((e=>{u.setRequestHeader(e,t[vt][e])})),u.withCredentials=E(t.credentials)||!1,u.onreadystatechange=()=>{switch(u.readyState){case 1:case 2:case 3:break;case 4:n&&(e=!1);const t=u.responseText,i=u.status;if(/^(4|5)[0-9]{2}/[Me](d(i)))return void o(t);try{s(L[re](t),i)}catch(e){s(t,i)}}},u.send(r)}))}}),xr(t,Ke+Et,{value:function(t=""){const e=this[mt];return s[he](e),history.pushState(null,"",e),typeof t!==os||t[js]||(c.title=t),this}}),xr(t,Qe+Et,{value:function(t=""){const e=this[mt];return s.pop(),s[he](e),history.replaceState(null,"",e),typeof t!==os||t[js]||(c.title=t),this}}),xr(t,Ke+ce,{value:function(t={}){let e=this[te]+this[oe],n=this[Ps];return typeof t!==hi||$[Nt](t)||t[$r][_t]((e=>n[e]=t[e])),n[$r][_t](((t,i)=>{e+=`${0==i?"?":"&"}${t}=${n[t]}`})),new w(e)}}),xr(t,Qe+ce,{value:function(t={}){return this.query__()._query(t)}}),xr(t,Cr,{value:function(t=""){let e=this[te]+this[oe],n=this[Ps];return typeof t!==os||t[js]?$[Nt](t)&&t[_t]((t=>{delete n[d(t)]})):delete n[t],n[$r][_t](((t,i)=>{e+=`${0==i?"?":"&"}${t}=${n[t]}`})),new w(e)}}),xr(t,Dr,{value:function(){return new w(this[te]+this[oe])}}),xr(t,xs,{value:function(t){return this.searchParams[$t](t)}})})(w[le]),(t=>{xr(t,Os,{value:function(t=ui+tn+Ct,e){const n=j[Ke](),i=n[Ri]("2d"),s=y(this[li]),r=y(this[oi]);if(i){if(n[li]=this[li],n[oi]=this[oi],typeof e===zt&&enull==this[Ae]?ui+"."+t[Ee](tn)[1]:this[Ae][Ne](this[Ae].lastIndexOf(tn)+1))(),i=pn[Ke](),s=w[Ki](this[ti](t));i[mt]=s,i[rt]=e||n,i[Ke+U]({type:"application/octet-stream"}),c[k][pi](i),i.click(),i[_e](),w[Qi](s)}}),[Dt,ue][_t]((e=>{const n=ui+tn+(e==Dt?Ct:ue);xr(t,qe+e,{value:function(t){return this[Os](n,t)}}),xr(t,Ke+rt+e[Ce](),{value:function(e){t[rt](n,e)}})})),xr(t,Ke+rt,{value:function(e=ui+tn+Ct,n){t[rt](e,n)}})})(b[le]),(t=>{[[qe,Zi],[Fs,"outer"+At],[qe+Cn,ts],[Gs,es],[qe+On,ss],[ir,rs],[hr+On,ns],[hr+vn,is],[qe+An+On,Wt+We],[qe+An+vn,Wt+wt]][_t]((e=>{xr(t,e[0],{get:function(){return this[e[1]]}})})),xr(t,Nr,{get:function(){let t=[];return[...this[Ei]][pt]((t=>t.nodeType===Node.TEXT_NODE&&!t[Be][js]))[_t]((e=>t[he](e[Be][Fe]()))),t[Ot](rn)}}),xr(t,dr,{get:function(){const t=this[Vi];if(null==t)return;const e=[...t[vi]][It](this);return-1!==e?e:void 0}}),xr(t,Ar,{get:function(){let t=new v;for(const e of this[_i])t[ye](e.name,e.value[Fe]());return t[Ms]}}),[[Er,yi],[mr,vi],[wr,Ei]][_t]((e=>{xr(t,e[0],{get:function(){return[...this[e[1]]]}})})),xr(t,xt,{get:function(){return this[vi][xt]}}),xr(t,Ke,{value:function(t=""){return typeof t===os||typeof t===zt?this[Zi]+=t:"object"==typeof t&&(this[Zi]+=L[Ie](t,null,4)[pe](/\n/g,"
")[pe](/ /g," ")),this}}),xr(t,Qe,{value:function(t=""){return this[Zi]="",this[Ke](t)}}),xr(t,Je,{value:function(t=!1){return this[mi](E(t))}}),[[Ke+Cn,ts],[Ke+Dn,es]][_t]((e=>{xr(t,e[0],{value:function(t=0){return typeof t!==zt||isNaN(t)||(this[e[1]]=t),this}})})),[[Ke+On,li],[Ke+vn,oi],[Ke+ls,fs],[Ke+hs,_s],[Ke+cs,ps],[Ke+as,gs],[Ke+ds,vs],[Ke+ys,Es],[Ke+$s,ms],[Ke+Ts,ws]][_t]((e=>{xr(t,e[0],{value:function(t){if(typeof t===zt||typeof t===os){t=d(t)[Fe]();const n=/^\d+$/[Me](t);this[Re][e[1]]=t+(n?"px":"")}return this}})})),[[Ke+ie,Ke+ls,Ke+hs,Ke+cs,Ke+as],[Ke+Vt,Ke+ds,Ke+ys,Ke+$s,Ke+Ts]][_t]((e=>{xr(t,e[0],{value:function(t,n,i,s){return void 0===t&&void 0===n&&void 0===i&&void 0===s||(void 0===n&&void 0===i&&void 0===s?n=i=s=t:void 0===i&&void 0===s?(i=t,s=n):void 0===s&&(s=n),this[e[1]](t||0),this[e[2]](s||0),this[e[3]](i||0),this[e[4]](n||0)),this}})})),[Ke+Re,Ke+ri,Ke+U][_t]((e=>{xr(t,e,{value:function(t={}){return(typeof t!==hi||null==t||$[Nt](t)?[]:t[$r])[pt]((t=>typeof t===os&&!t[js]))[_t]((n=>{e===Ke+Re?this[Re][n]=t[n]:e===Ke+ri?this[wi][n]=t[n]:e===Ke+U&&this[ye+P](n,t[n])})),this}})})),[Ke+Y,Y+Ke,Re+Ke,ri+Ke,U+Ke][_t]((e=>{xr(t,e,{value:function(t=[]){return($[Nt](t)?t:typeof t!==os||t[js]?[]:t[Ee](/[,. ]/))[pt]((t=>typeof t===os&&!t[js]))[_t]((t=>{e===Ke+Y?this[yi].add(t):e===Y+Ke?this[yi].remove(t):e===Re+Ke?this[Re][t]="":e===ri+Ke?delete this[wi][t]:e===U+Ke&&this[_e+P](t)})),this}})})),[qe+Re,qe+ri,qe+U][_t]((e=>{xr(t,e,{value:function(t=""){if(typeof t===os&&!d(t)[js])return e===qe+Re?this[Re][t]:e===qe+ri?this[wi][t]:e===qe+U?this[$t+P](t):void 0}})})),xr(t,Y+Qe,{value:function(){return this[$i]="",this}}),xr(t,Qe+Y,{value:function(t=[]){return this[Y+Qe]()[Ke+Y](t),this}}),xr(t,ze+Y,{value:function(t=""){if($[Nt](t)){const e=t[pt]((t=>typeof t===os&&!t[js]));let n=!0;return!(e[xt]<1||e[xt]!==t[xt])&&(e[_t]((t=>{this[yi][Q](t)||(n=!1)})),n)}return typeof t===os&&!t[js]&&this[yi][Q](t)}}),xr(t,ze+Y+Ke,{value:function(t,e){return void 0===e&&(e=t,t=this[ze+Y](e)),E(t)?this[Y+Ke](e):this[Ke+Y](e),this}}),[[ze+ri,qe+ri],[ze+U,qe+U]][_t]((e=>{xr(t,e[0],{value:function(t,n=""){return typeof t===os&&!d(t)[js]&&((n=d(n))[js]?!(this[e[1]](t)||"")[js]:this[e[1]](t)===n)}})})),xr(t,Ke+Ti,{value:function(t=[],e){return typeof t===os&&!t[js]||typeof t===zt?this[Zi]+=t:$[Nt](t)&&t[xt]>1?t[_t]((t=>{typeof t===os&&!t[js]||typeof t===zt?this[Zi]+=t:null!=t&&this[pi](t)})):$[Nt](t)&&1===t[xt]?e instanceof Element&&e[Vi]===this?this[Rt](t[0],e):typeof e===zt&&p[C](e)<=this[vi][xt]?this[Rt](t[0],this[vi][e]):null!=t[0]&&this[pi](t[0]):e instanceof Element&&e[Vi]===this?this[Rt](t,e):typeof e===zt&&p[C](e)<=this[vi][xt]?this[Rt](t,this[vi][e]):null!=t&&this[pi](t),this}}),xr(t,Qe+Ti,{value:function(t=[]){return this.__()._child(t),this}}),xr(t,qe+Ti,{value:function(t=[]){let e=this;return $[Nt](t)?t[_t]((t=>{typeof t!==os||t[js]?typeof t===zt&&p[C](t)<=e[vi][xt]&&(e=e[vi][(t<0?e[vi][xt]:0)+t]):e=e[Xi](t)})):typeof t!==os||t[js]?typeof t===zt&&p[C](t)<=this[vi][xt]&&(e=this[vi][(t<0?this[vi][xt]:0)+t]):e=this[Xi](t),e===this?void 0:e}}),[[ei,Vi],[qe+"pre",Gi],[qe+qt,Hi]][_t]((e=>{xr(t,e[0],{value:function(t=0){const n=e[1];let i=this[n];if(typeof t===zt&&t>0)for(var s=0;s{xr(t,e[0],{value:function(t=""){return typeof t!==os||t[js]?null:this[e[1]](t)}})})),[["_go","_self"],["_open","_blank"]][_t]((e=>{xr(t,e[0],{value:function(t=""){return typeof t!==os||t[js]||(this[mt]=t),this.target=e[1],this}})})),xr(t,Ke+st,{value:function(t=""){return typeof t!==os||t[js]||(this[Re][st]=t),this}}),Ns[_t]((e=>xr(t,`_${e}`,{value:function(t){return this["on"+e]=t instanceof Function?t:null,this}}))),xr(t,Ke+Xe[De](),{value:function(t={}){if(this instanceof HTMLVideoElement&&(this._attr({controlsList:["nodownload","noremoteplayback"].join(",")}),typeof t.preload===os&&(this.preload=t.preload),typeof t.loop===H&&(this.loop=t.loop),typeof t.muted===H&&(this.muted=t.muted),typeof t.controls===H&&(this.controls=t.controls),typeof t.playsinline===H&&t.playsinline&&this._attr({playsinline:""}),typeof t.download===H||typeof t.remote===H)){let e=[];t.download||e[he]("nodownload"),t.remote||e[he]("noremoteplayback"),this._attr({controlsList:e.join(rn)})}return this}}),xr(t,de+xe+Wn,{value:function(t){if(typeof t!==zt)return this;const e=this[ss],n=this[ns];let i=n-(t{xr(t,e[0],{value:function(){let t=0;return/X/[Me](e[1])&&0!==e[2]?t=this[ns]-this[ss]:/Y/[Me](e[1])&&0!==e[2]&&(t=this[is]-this[rs]),this[e[1]](t),this}})})),xr(t,ii,{get:function(){if(this)return new I(this)}}),[gr,Ms][_t]((e=>{xr(t,e,{get:function(){if(this)return this[ii][e]}})})),[[Hs,xt],[qe+U+x,Ar],[qe+Y+x,Er],[qe+Ti+x,mr],[qe+us+x,wr]][_t]((e=>{xr(t,e[0],{get:function(){return this[e[1]]}})})),[[Ke+Ln,Ke+ie],[Ke+Ln+Nn,Ke+ls],[Ke+Ln+mn,Ke+hs],[Ke+Ln+gn,Ke+cs],[Ke+Ln+In,Ke+as],[Ke+wn,Ke+Vt],[Ke+wn+Nn,Ke+ds],[Ke+wn+mn,Ke+ys],[Ke+wn+gn,Ke+$s],[Ke+wn+In,Ke+Ts],[ni,_e]][_t]((e=>{xr(t,e[0],{value:function(){return this[e[1]][M](this,arguments[Rr])}})})),xr(t,ze+Ke+Y,{value:function(t,e){return this[ze+Y+Ke](!E(t),e)}})})(N[le]),(t=>{xr(t,Fs,{get:function(){let t=c[gi]("div");return t[pi](this),t[Zi]}}),[[mr,vi],[wr,Ei]][_t]((e=>{xr(t,e[0],{get:function(){return[...this[e[1]]]}})})),xr(t,xt,{get:function(){return this[vi][xt]}}),xr(t,Je,{value:function(t=!1){return this[mi](E(t))}}),xr(t,Ke+Ti,{value:function(t=[]){return typeof t===os&&t[Fe]()[xt]>0||typeof t===zt?this[pi](c[di](d(t))):$[Nt](t)&&t[xt]>1?t[_t]((t=>{typeof t===os&&t[Fe]()[xt]>0||typeof t===zt?this[pi](c[di](d(t))):null!=t&&this[pi](t)})):$[Nt](t)&&1===t[xt]?this[pi](t[0]):null!=t&&this[pi](t),this}}),[[yr,Fs],[Hs,xt],[qe+Ti+x,mr],[qe+us+x,wr]][_t]((e=>{xr(t,e[0],{get:function(){return this[e[1]]}})}))})(S[le]),h[Ke+Ls]=()=>{null==t&&(t=new IntersectionObserver((e=>{e.forEach((e=>{if(!e.isIntersecting)return;const n=e.target,i=(n.$attr("src")||"")[Fe]();i[xt]<1||i.$$200().then((e=>{t[He](n),e.text().then((t=>{const e="div"._(t)[qe+Ti](0);e.id=n.id,n[yi][_t]((t=>e[yi].add(t))),e.onclick=n.onclick,null!=n[Vi]&&n[Vi][Ke+Ti](e,n),n.remove()})).catch((t=>{Br(t),n.__("☒")}))})).catch((e=>{Br(e),t[He](n),n.__("☒")}))}))})),[][ve].call("span.svg"[Ss])[_t]((e=>t.observe(e))))},h[Ke+Is]=()=>{null==e&&(e=new IntersectionObserver(((t,n)=>{t[_t]((t=>{const n=t.target;if(t.isIntersecting){const t=n.parentElement,i=(n.dataset[Ae]||"")[Fe](),s=n.$$class("fit"),r=n.$$class("fit-p");if(i[xt]<1)return;n.class_(ai),delete n.dataset[Ae],i.$$200(!0).then((i=>{e[He](n),n[Ae]=i[Ae],s&&(t.style["aspect-ratio"]=`${i.img.target.$nw} / ${i.img.target.$nh}`),r&&(t.style["aspect-ratio"]=`${i.img.target.$nw} / ${i.img.target.$nh}`)})).catch((t=>{Br(t),e[He](n),n[Ae]="https://cdn.jsdelivr.net/gh/pardnchiu/PDRenderKit@latest/static/image/404.svg"}))}}))})),[][ve].call("img.lazyload"[Ss])[_t]((t=>e[He](t))))},h[Ke+kt]=t=>{if(null==t)return h[Ke+Ls](),void h[Ke+Is]();0!=t["SVG"[De]()]&&h[Ke+Ls](),null!=t[ai]&&h[Ke+Is]()},h[qe+As]=t=>new g(((e,n)=>{if(!t)return()=>n();let i=new O;i[ae](t),i[Qt]=t=>e(t),i[Zt]=n})),h[qe+ui+gt+St+dt]=t=>new g(((e,n)=>{if(!t)return()=>n();let i=new O;i[ae](t),i[Qt]=function(t){if(!t.target)return()=>n();let i=new Image;i[Ae]=d(t.target.result),i[Qt]=()=>e(i),i[Zt]=n}})),h[qe+ui+gt+Xe+dt]=t=>new g(((e,n)=>{if(!t)return()=>n();let i=new O;i.readAsArrayBuffer(t),i[Qt]=function(){if(!i.result)return()=>n();let s=new Blob([i.result],{type:t.type}),r=w[Ki](s),o="video"._();o.preload="metadata",o[Ae]=r,o.muted=!0,o.playsInline=!0,o.onloadeddata=function(){let t=j._(),i=t[Ri]("2d");if(t[li]=o.videoWidth,t[oi]=o.videoHeight,!i)return()=>n();i[bi](o,0,0,t[li],t[oi]);let s=t[Ji](ui+tn+Dt),r=new b;r[Ae]=s,r[Qt]=()=>e(r),r[Zt]=n,o.ontimeupdate=null,o.pause()},o[Zt]=n,o.play()}})),h[ti]=(t,e)=>{let n=h.atob(t.split(",")[1]),i=new ArrayBuffer(n[xt]),s=new Uint8Array(i);for(let t=0;t(typeof t!==zt&&(t=8),t[Lr]);let Hr=c[J]+";";h[qe+J]=(t="")=>{if(![os,zt][ze](typeof t)||d(t)[js])return;const e=(t+"=([^ ;]+)?")[br](),n=Hr[Gt](e)||[],i=n[xt];let s=n[i-1];return i<1||null==s?void 0:(s=h[Ii+it](s),s[Sr]?s[Ms]:s)},h[Ke+J]=(t="",e,n)=>{if(![os,zt][ze](typeof t)||d(t)[js]||null==e)return;t=t[qe+"en"](!0),n=1e3*(typeof n===zt?n:3600);const i=new m,s=new m(i[Pi]()+n);return e=typeof e===hi?L[Ie](e)[Fe]()[qe+"en"](!0):d(e)[Fe]()[qe+"en"](!0),c[J]=`${t}=${e}; expires=${s.toUTCString()}; path=/`,Hr=c[J]+";",Hr},h[qe]=(t="")=>{if(typeof t===os&&!t[js])return d(t)[qe]},h[Ss]=(t="")=>{if(typeof t===os&&!t[js])return d(t)[Ss]},h[Ke+Ti]=(t=[],e)=>{c[k][Ke+Ti](t,e)},h[Qe+Ti]=(t=[])=>{c[k][Qe+Ti](t)},c.head[Ke+Ti]([Re[Ke](".dom-temp { display: none !important; }")]),h[Us]=(t="")=>typeof t!==os||t[js]?location[mt][Us]:t[Us],h[qe+"key"]=(t=8)=>h[Lr](t)})(window,document,navigator,location,console,Math,Promise,String,Number,Array,Object,Map,Boolean,Date,URL,URLSearchParams,Image,JSON,FormData,RegExp,Element,DocumentFragment,FileReader),((n,i,s,r,o,u,l)=>{const h=/\{\{\s*(((CALC|LENGTH|UPPER|LOWER|DATE)\(\s*[\w\.\s\+\-\*\/\,\s\/\:]+\s*\))|[\w\.]+)\s*\}\}/i,c=new RegExp(h,"gi"),a=/(CALC|LENGTH|UPPER|LOWER)\(([\w\.]+)\s*([\+\-\*\/\%]+)\s*([\d\.]+)\)/,f=/DATE\(([\w\.]+)\s*,\s*([^\n]+)\)/,_=/^\(?\s*([\w]+)(\s*\,|\s+)?/i,p=/\,\s*([\w]+)\s*\)/i,g=/\s+([\w\.]+)\s*$/i,d=/\s*[\!\>\<\=]+\=*\s*/,y=/([\w\.]+)\s*([\+\-\*\/\%])\s*([\d\.]+)/,$=":path",T=":for",v=":if",E=":else-if",m=":else",w=":model",A=":html",b="parentElement",L="textContent",I="toLowerCase",R="remove",N="alt",S="dom",O="path",C="data",D="event",F="next",M="done",U="trim",x="href",P="src",B="border",k="split",H="Radius",V="padding",j="margin",G="id",X="isArray",Y="style",W="Color",q="Image",z="Size",J="Attachment",K="Mode",Q="clip",Z="Blend",tt="Repeat",et="Origin",nt="Position",it="background",st="innerHTML",rt="forEach",ot="value",ut="body",lt="nodeType",ht="length",ct="match",at="shift",ft="isFor",_t="isAry",pt="isObj",gt="filter",dt="TEXT_NODE",yt="addEventListener",$t="dom-tag",Tt="class",vt="child",Et="attr",mt="$attr",wt="$attributes",At="$childNodes",bt="$next",Lt="$parent",It="$sel",Rt="$selAll",Nt="$keys",St="$key",Ot="attr_";function Ct(t){return`*[dom-tag='${t}']`}n.PD=class{dom;path;data;event;done={};constructor(t={}){n._Listener(t.listener);const e="string"==typeof t[G]?t[G].$:null;if(!(e instanceof Element))return;this[S]=e,this[O]={},this[C]=t[C],this[D]=t[D]||{};const i=Date.now();this.#t(e,t[C]||{}).then((e=>{const n=Date.now()-i;null!=t[F]&&(console.log("Rendered, took "+n/1e3+" seconds"),t[F](this[S]))}))}#e(t,e,n){return t=r(t),n=r(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||o[X](i)?null!=i&&u.defineProperty(e,t,{get:()=>i,set:t=>{i=t,n(t)}}):i[Nt][rt]((t=>{this.#n(t,i,n)}))}#i=async(t,e={},n={})=>{const s=t[Lt](0),r=t[wt][$];if(null!=s&&null!=r){if(null==this[O][r])this[O][r]=s;else if(this[O][r]==s)return;fetch(r).then((async r=>{const o=await r.text();"div"._(o)[At][rt]((e=>{t["_"+vt](e)})),o.$$(/new\s+PD/)||this.#t(t,e,n),t[At][rt]((e=>{e instanceof HTMLScriptElement?i[ut]["_"+vt]("script"._(e.$)):s["_"+vt](e,t)})),t[R]()})).catch((()=>{t[R]()}))}};#s=(t,e={},i={})=>{const o=t[Lt](0),u=t.$i,h=(t[mt](v)||"")[U](),c=(t[mt](":once")||"")[U](),a=Boolean(isNaN(parseInt(c))?c:parseInt(c));if(null==o||h[ht]<1)return;let f,_,p=[t],g=t[bt](0);for(null!=g&&(f=null!=g[mt](E),_=null!=g[mt](m));null!=g&&(f||_);)p.push(g),g=g[bt](0),null!=g&&(f=null!=g[mt](E),_=null!=g[mt](m));const y=n[St](16),$="temp"._(p._$((t=>t._$(!0)["_"+Et]({[$t]:y}))));let T=!1;p[rt]((t=>{if(t["_"+Et]({[$t]:y}),T)return t[R]();const n=(t[mt](v)||t[mt](E)||t[mt](m)||"")[U](),i=null!=t[mt](m),h=n[k](d).$(0),c=n[k](d).$(1),f=((n[ct](d)||[]).$(0)||"")[U](),_=this.#r(h,e,(t=>{a||(o[Rt](Ct(y))[rt]((t=>t[R]())),o["_"+vt]($._$(!0),u),this.#t(o,e,{[ft]:!0}))}));f.length<1?T=l(_):">"===f?T=(r(_)||0)>(r(c)||0):"<"===f?T=(r(_)||0)<(r(c)||0):">="===f||">=="===f?T=(r(_)||0)>=(r(c)||0):"<="===f||"<=="===f?T=(r(_)||0)<=(r(c)||0):"=="===f||"==="===f?T="null"==c?null==_:"true"==c?l(_):"false"==c?!l(_):"empty"==c?s(_||"")[ht]<1:s(_||"")==s(c):"!="!==f&&"!=="!==f||(T="null"==c?null!=_:"true"==c?!l(_):"false"==c?l(_):"empty"==c?s(_||"")[ht]>0:s(_||"")!=s(c)),t[Ot](v)[Ot](E)[Ot](m),T||i?T&&t.class_("dom-temp"):t[R]()})),this.#t(o,e,i)};#r=(t="",e={},n)=>{if(t[U]()[ht]<1)return;const i=t.$$(h);let s="",r="";i&&(s=t[k](h)[0]||"",r=t[k](h)[4]||"",t=t[ct](h)[1]);const o=t.$$(/^LENGTH\(.+\)/);o&&(t=t.__(/^LENGTH\(|\)$/g,""));const u=t.$$(/^CALC\(.*\)$/);let l="",c=0;if(u){const e=(t=t.__(/^CALC\(|\)$/g,""))[ct](y);t=e.$(1),l=e.$(2),c=parseInt(e.$(3))||0}const a=t.$$(/^UPPER\(.*\)$/),f=t.$$(/^LOWER\(.*\)$/);(a||f)&&(t=t.__(/^(UPPER|LOWER)\(|\)$/g,""));const _=t.$$(/^DATE\([\w\,\-\s\:]*\)$/);let p="";if(_){const e=(t=t.__(/^DATE\(|\)$/g,""))[ct](/(\w+),\s*([^\n]+)/);t=e.$(1),p=e.$(2)}let g=t[k](/\./),d=e,$=g.$(0),T=d[$];g[at](),T=this.#o(g,d,$,T),null!=n&&this.#n($,d,(t=>{n(t)}));let v="";if(null!=T&&T instanceof Object&&!Array.isArray(T)?v=T[Nt][ht]:null!=T&&(v=T[ht]),i){if(o)return s+v+r;if(u&&(T=this.#e(T,l,c),null==T))return;return s+T+r}if(o)return v;if(u){if(T=this.#e(T,l,c),null==T)return}else{if(a)return T.toUpperCase();if(f)return T[I]();if(_)return parseInt(T).$format(p)}return T};#u=(t,e={})=>{const n=t[Lt](0),i=(t[mt](w)||"")[U]();t[Ot](w);this.#r(i,e,(t=>{}));if(null==n||null==i||i[U]()[ht]<1)return;const s=t instanceof HTMLInputElement,r=t instanceof HTMLTextAreaElement,o=t instanceof HTMLSelectElement,u=t.$attr("type");!s||"checkbox"!==u&&"radio"!==u?o?t[yt]("change",(t=>{e[i]=t.target[ot]})):(s||r)&&(t[yt]("keyup",(t=>{e[i]=t.target[ot]})),t[yt]("change",(t=>{e[i]=t.target[ot]}))):t[yt]("change",(t=>{e[i]=("input[name='"+t.target.name+"'][type='"+u+"']:checked").$all.map((t=>t.value)).join(",")}))};#l(t,e={}){const n=t[mt]($t)||"",s=t[wt][Nt][gt]((t=>t.$$(/^:[\w\-]+$/)))[gt]((t=>!t.$$(/\:(path|for|if|else\-if|else|model)/)));s[ht]<1||s[rt]((s=>{const r=(t[mt](s)||"")[U](),o=this.#r(r,e,(e=>{const o=i[ut][Rt](Ct(n));o[ht]<1||o[rt]((n=>{this.#h(t,s,e,r)}))}));this.#h(t,s,o,r),t[Ot](s)}))}#h(t,e,n="",i){n=s(n),e[I]()===(":"+Tt)[I]()&&t._class(n),[[":"+G,G],[":"+P,P],[":"+N,N],[":"+x,x],[A,st]][rt]((i=>{e[I]()===i[0][I]()&&(n[U]()[ht]<1||(t[i[1]]=n))})),":hide"===e[I]()&&Boolean(isNaN(parseInt(n))?n:parseInt(n))&&(t[Y].display="none"),[[":"+j,j],[":"+V,V],[":"+B,B],[":"+B+"-"+H,B+H],[":outline","outline"],[":box-sahdow","boxShadow"],[":bg-"+q,it+q],[":bg-"+J,it+J],[":bg-Blend-"+K,it+Z+K],[":bg-"+Q,it+Q],[":bg-"+et,it+et],[":bg-"+nt,it+nt],[":bg-"+nt+"-X",it+nt+"X"],[":bg-"+nt+"-Y",it+nt+"Y"],[":bg-"+tt,it+tt],[":bg-"+z,it+z],[":bg-"+W,it+W],[":"+W,W[I]()]][rt]((s=>{e[I]()===s[0][I]()&&(n[U]()[ht]<1?t[Y][s[1]]=i:t[Y][s[1]]=n)})),n[U]()[ht]<1?t[Ot](`${e.__(/^:/,"")}`):t["_"+Et]({[`${e.__(/^:/,"")}`]:n})}#c=(t,e={},n={})=>{(()=>{t[wt][Nt][gt]((t=>t.$$(/^@[\w]+$/)))[rt]((e=>{const n=e.__(/\@/,"on"),i=t[mt](e);t[Ot](e),null!=i&&(t[n]=this[D][i])}))})(),(()=>{if(!l(n[ft]))return;const i=(t[mt](T)||"")[U](),s=(i[ct](_)||[]).$(1),r=(i[ct](p)||[]).$(1);t[wt][Nt][gt]((t=>t.$$(/^:@[\w]+$/)))[rt]((i=>{const o=i.__(/^\:\@/,"on");let u=(t[mt](i)||"")[U]()[k](/\./)[gt]((t=>t[ht]>0))||[],h=e,c=u.$(0),a=h[c];u[at](),l(n[_t])&&c!=s||l(n[pt])&&c!=r||(a=this.#o(u,h,c,a),null!=a&&(t[o]=this[D][a]))}))})()};#a=(t,e={},s={})=>{const r=t[mt]($t)||n[St](16),o=(t[mt](":once")||"")[U](),u=Boolean(isNaN(parseInt(o))?o:parseInt(o));t["_"+Et]({[$t]:r});const l=t._$(!0),a=t[Lt](0),f=t.$i,_=t[st].$$(c);null!=parent&&0!=_&&t[At][gt]((e=>e[b]===t&&e[lt]===Node[dt]))[rt]((t=>{((t[L]||"")[ct](c)||[])[rt]((n=>{const s=(n[ct](h)||[]).$(1);if(null==s)return;const o=this.#r(s,e,(t=>{if(u)return;const n=i[ut][It](Ct(r));null!=n&&null!=a&&(a["_"+vt](l._$(!0),f),n[R](),this.#t(a,e))}));null!=o&&this.#f(t,s,o)}))}))};#_=(t,e={},i={})=>{const s=t[Lt](0),r=(t[mt](T)||"")[U](),u=(t[mt](":once")||"")[U](),l=Boolean(isNaN(parseInt(u))?u:parseInt(u));if(null==s||r[ht]<1)return;const h=n[St](16),c=t._$(!0)["_"+Et]({[$t]:h}),a="temp"._(),f=t[bt](0);t[R]();const _=(r[ct](/^\(?\s*(\w+)/)||[]).$(1),p=(r[ct](/\,\s*(\w+)/)||[]).$(1),d=(r[ct](g)||[]).$(1),y=this.#r(d,e,(t=>{const n=s[It](Ct(h))?.$i;s[Rt](Ct(h))[rt]((t=>t[R]())),s["_"+vt](c._$(!0),n),this.#t(s,e,{[ft]:!0})}));o[X](y)?y[rt](((t,n)=>{const i=c._$(!0);a["_"+vt](i);const r={[`${_}`]:t,[`${p}`]:n};"object"==typeof t&&null!=t?(t[Nt][rt]((n=>{this.#n(n,t,(()=>{if(l)return;const t=s[It](Ct(h))?.$i;s[Rt](Ct(h))[rt]((t=>t[R]())),s["_"+vt](c._$(!0),t),this.#t(s,e,{[ft]:!0})}))})),this.#l(i,r),this.#c(i,r,{[ft]:!0,[_t]:!0}),this.#p(i,r),this.#t(i,r,{[ft]:!0})):(this.#l(i,r),this.#c(i,r,{[ft]:!0,[_t]:!0}),this.#p(i,r))})):"object"==typeof y&&null!=y&&y[Nt][rt]((t=>{const n=c._$(!0);a["_"+vt](n),this.#n(t,y,(()=>{if(l)return;const t=s[It](Ct(h))?.$i;s[Rt](Ct(h))[rt]((t=>t[R]())),s["_"+vt](c._$(!0),t),this.#t(s,e,{[ft]:!0})}));const i=y[t],r={[`${_}`]:t,[`${p}`]:i};this.#l(n,r),this.#c(n,r,{[ft]:!0,[pt]:!0}),this.#g(n,r),this.#t(n,r,{[ft]:!0,[_t]:o[X](i)})})),s["_"+vt](a,f)};#p=(t,e={})=>{const n=(t[mt](T)||"")[U](),i=(n[ct](_)||[]).$(1),s=(n[ct](p)||[]).$(1),r=e[s];t[Ot](T),t[At][gt]((e=>e[b]===t&&e[lt]===Node[dt]))[rt]((t=>{((t[L]||"")[ct](c)||[])[rt]((n=>{const o=(n[ct](h)||[]).$(1);if(null==o)return;const u=o[ct](a),l=o[ct](f),c=(u||[]).$(3),_=Number((u||[]).$(4));let p=(null!=u?u.$(2):o)[k](/\./),g=e,d=p.$(0),y=g[d];p[at](),null!=u&&d===i||null!=l&&d===i?y=this.#r(o,e)||"":d===i?y=this.#o(p,g,d,y):d===s&&(y=this.#e(r,c,_)),null!=y&&this.#f(t,o,y)}))})),this.#t(t,e,{[ft]:!0})};#g=(t,e={})=>{const n=(t[mt](T)||"")[U](),i=(n[ct](_)||[]).$(1),s=(n[ct](p)||[]).$(1);t[Ot](T),t[At][gt]((e=>e[b]===t&&e[lt]===Node[dt]))[rt]((t=>{((t[L]||"")[ct](c)||[])[rt]((n=>{let r=(n[ct](h)||[]).$(1);if(null==r)return;const o=r[ct](a),u=(o||[]).$(3),l=Number((o||[]).$(4));let c=(null!=o?o.$(2):r)[k](/\./),f=e,_=c.$(0),p=f[_];c[at](),null!=o&&_===s?p=this.#r(r,e)||"":_===s?p=this.#o(c,f,_,p):null!=o&&_===i&&(p=this.#e(p,u,l)),null!=p&&this.#f(t,r,p)}))})),this.#t(t,e,{[ft]:!0})};#o(t,e,n,i){if(null!=i){for(;t[ht]>0;)i=i[t.$(0)],t[at]();return i}}#f(t,e,n){const i=("{{\\s*?"+(e=e.__(/(\?|\.|\+|\*|\\|\%|\-|\(|\))/g,"\\$1"))+"\\s*?}}").$regexp("i");n=(t[L]||"").__(i,n)||"",t[L]=n}async#t(n,s={},r={}){const o=i.$init;return n==this.dom&&(this.#l(n,s),this.#c(n,s,r),this.#a(n,s,r)),o?(n[Lt](0)==this[S]&&(this[M][n.$i]=!1),await new Promise((i=>(n.$childAll[rt]((async n=>{const i=n[wt];if(null!=e&&n["$$"+Tt]("lazyload")&&e.observe(n),null!=t&&n["$$"+Tt]("svg")&&"SPAN"===n.tagName&&t.observe(n),null!=n[Lt](0)&&null==i[E]&&null==i[m])if(i[$])this.#i(n,s,r);else{if(!i[T])return this.#s(n,s,r),this.#u(n,s),this.#l(n,s),this.#c(n,s,r),this.#a(n,s,r),await this.#t(n,s,r);this.#_(n,s,r)}})),n.class_("dom-temp"),n[Lt](0)==this[S]||n==this[S]?(this[M][n.$i]=!0,i(n)):null)))):n}}})(window,document,String,Number,Array,Object,Boolean,Image,JSON,RegExp,Element,DocumentFragment); \ No newline at end of file diff --git a/package.json b/package.json index d0ec6e9..dbcdaad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdrenderkit", - "version": "1.5.0", + "version": "1.5.2", "description": "PDRenderKit contains a lightweight front-end framework designed to separate the front-end user interface and data logic.", "main": "dist/PDRenderKit.js", "scripts": { diff --git a/src/PDRenderKit.js b/src/PDRenderKit.js index e8f31fb..7ef1775 100644 Binary files a/src/PDRenderKit.js and b/src/PDRenderKit.js differ