/**
 * Skipped minification because the original files appears to be already minified.
 * Original file: /npm/wcex@1.10.14/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(this,(()=>(()=>{var t=[function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var s=Object.getOwnPropertyDescriptor(e,i);s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,s)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),r=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)},l=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(1),i(5),i(8),i(11),i(16),i(20),i(21),i(3),i(23),i(9),i(15),i(10)],s=function(e,i,n,s,o,c,u,a,h,d,f,v,p,m){"use strict";Object.defineProperty(i,"__esModule",{value:!0});const y=(0,d.WcLog)(t);r(h,i),console.log("powered by",s.pkgName,s.pkgVersion);const w=new Date;y.debug(s.pkgName,s.pkgVersion);const b={usePlugins:u.t.use.bind(u.t),registerElement:c.i,watch:t=>v.o.watch(t),noWatch:t=>v.o.u(t),parseTag:t=>(0,p.v)(t),buildTag:(t,e)=>(0,p.p)(t,e),findWebComponentsByTag:t=>m.wcRegister.findByTagElem(t),getWebComponentByWcId(t){var e;return null===(e=m.wcRegister.getEl(t))||void 0===e?void 0:e.$rootElem},npmUrl:o.m.npmUrl,modules:o.m.modules,amdloader:n._,loadTime:0};window.WCEX=b;const _=document.currentScript;if(!_){const t="your browser not support currentScript!, please replace Browser";y.error(t)}n.O.getModule(s.pkgName).j(i).$(_.src).resolveResult(i),u.t.use(a.$color),u.t.use(f.$monitSize);let $=!1;window.addEventListener("DOMContentLoaded",(t=>l(void 0,void 0,void 0,(function*(){if($)return;$=!0;for(let t of Object.keys(o.m.modules)){let e=o.m.modules[t];e.preload&&(yield n.O.getModule(e.name).getResult())}yield(0,c.i)(document.body,void 0,!0);let t=new MutationObserver((t=>{t.forEach((t=>{"childList"==t.type&&t.addedNodes.forEach((t=>{if(t instanceof HTMLElement){const e=new Date;(0,c.i)(t,void 0,!1).then((()=>{b.loadTime=(new Date).getTime()-e.getTime()}))}}))}))}));t.observe(document.body,{childList:!0,subtree:!0}),b.loadTime=(new Date).getTime()-w.getTime(),console.log(`all completed, ${b.loadTime}ms`),window.dispatchEvent(new CustomEvent("wcex-loaded",{detail:{time:b.loadTime}}))}))))}.apply(e,n),void 0===s||(t.exports=s)},function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(2),i(7),i(3),i(8),i(9)],s=function(e,i,n,s,r,l,c){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Umd=i.O=i._=void 0;const u=(0,r.WcLog)(t);l.m.modules;i._={};class a{constructor(t,e){this.S=t,this.M=e,this.k=[],this.C=void 0,this.T=new n.Defer(`${this.M}@${this.S.P()}`,(t=>o(this,void 0,void 0,(function*(){var t;let e=this.M.match(/(.+)\!(.+)/),i=e?e[1]:void 0,n=e?e[2]:this.M,s={},o=(yield null===(t=this.S.R())||void 0===t?void 0:t.A(this.k,s,this.S instanceof f?this.S:void 0))||[];if(null==this.C){if(i){let t=this.S.R().D(i);if(!t)return void u.debug("not found Plugins:",i);let e=yield new Promise(((e,i)=>{var s;null==t||t.F(n,null===(s=this.S.R())||void 0===s?void 0:s.L(!1,this.S instanceof f?this.S:void 0),(t=>{e(t)}),{})}));return e}return void u.warn("module chunk no exports",this.S.P(),this.M)}if("function"!=typeof this.C)return this.C;let r=this.C;try{let t=r.apply(r,o);if(t)return t}catch(t){u.warn("load chunk failed:",window.__webpack_require__,this.M,t)}return s.default||(s.default=s),s.hasOwnProperty("__esModule")||Object.defineProperty(s,"__esModule",{value:!0,enumerable:!1}),s}))))}I(t){return t instanceof Array?this.k=t:"string"==typeof t&&(this.k=[t]),this}B(t){return this.C=t,this.S.R().N.preload&&(u.debug("sync preload module:",this.S.P,this.M),this.H()),this}H(){let t=this.C;if("function"==typeof t){let e=t.apply(this.C,this.k);this.T.reslove(e)}else this.T.reslove(t);return this}getResult(){return o(this,void 0,void 0,(function*(){return this.T.result()}))}U(){return this.T.resultSync()}}class h{constructor(t,e,i){this.W=t,this.q=e,this.J=i,this.V={}}P(){return this.q}R(){return this.W}K(t){return this.V[t]||(this.V[t]=new a(this,t)),this.V[t]}X(t){return this.V[t]}F(t,e,i,n){this.J.getResult().then((s=>{s.load(t,e,i,n)})).catch((t=>{u.error("get plugin chunk error:",this.q,t)}))}}class d{constructor(){this.G={}}Z(t){const e=document.currentScript;let n=t||(null==e?void 0:e.id)||(null==e?void 0:e.src);return n||u.error("load cjs module scope failed, no currentScript",e),this.G[n]||(this.G[n]={module:{id:n,exports:{}},require:i.O.getFile(n).R().L(!0)}),this.G[n]}}class f{constructor(t,e){this.W=t,this.Y=e,this.tt={},this.et=!1,this.T=new n.Defer(this.Y,(()=>o(this,void 0,void 0,(function*(){if(!this.it){let t=s.st.nt(this.Y);switch(t){case"cjs":case"jsm":case"js":case"":{let e=document.createElement("script");if(this.et||"jsm"==t||this.W.N.esm){e.type="module",e.id=this.Y,e.textContent=`import * as obj from "${this.Y}";document.getElementById("${this.Y}").dispatchEvent(new CustomEvent('esm-result',{detail:obj}));`;let t=yield new Promise(((t,i)=>{e.addEventListener("esm-result",(e=>{let i=e.detail;i.default&&(i=i.default),t(i)})),document.head.appendChild(e)}));return u.info("load esm-result ok",this.Y,t),t}if(e.src=this.Y,e.id=this.Y,"cjs"==t||this.W.N.cjs){let t=yield this.ot(this.Y);return this.rt(t)}if(this.W.N.eval){let t=yield this.ot(this.Y);return this.lt(t)}return yield this.ct(e),this.W.N.globalVar?window[this.W.N.globalVar]:yield this.ut()}case"css":{let t=yield this.ot(this.Y),e=document.createElement("style");return e.innerHTML=t,e.id=this.Y,e}case"svg":case"html":{let t=yield this.ot(this.Y),e=document.createElement("template");return e.innerHTML=t,e.content}case"json":try{let t=yield this.ot(this.Y);return JSON.parse(t)}catch(t){return u.warn("load fail",this.Y,t),{}}default:return this.ot(this.Y)}}if(!(this.it instanceof HTMLScriptElement))return yield this.ct(this.it),this.it;if(!this.it.hasAttribute("src"))return this.rt(this.it.textContent||"");const t=this.W.ht(this.it.getAttribute("src"));let e=this.it.getAttribute("amdloader");if(e){if(i._[e])return;return u.info("custom amd loader start:",e,t),void(i._[e]=new Promise((n=>{this.ot(t).then((t=>{window.define=void 0,new Function(t).call(window);let s={define:window.define,require:window.require};i._[e].loader=s,window.define=y,u.info("custom amd loader ok:",e),n(s)}))})))}let n=document.createElement("script");return n.src=t,n.type=this.it.type,n.id=this.it.id,yield this.ct(n),yield this.ut()}))))}P(){return this.Y}R(){return this.W}dt(){return this.Y}ot(t){return o(this,void 0,void 0,(function*(){try{let e=t.split("#"),i=this.W.N.cors?{credentials:"include",redirect:"follow",mode:"cors",referrerPolicy:"no-referrer-when-downgrade"}:{},n=yield fetch(e[0],Object.assign({cache:"default"},i));switch(e[1]){case"json":return n.json();case"arreabuffer":return n.arrayBuffer();case"blob":return n.blob();default:return n.text()}}catch(e){u.error("fetch content failed:",t,e.message)}}))}ct(t){return o(this,void 0,void 0,(function*(){return new Promise(((e,i)=>{t.addEventListener("error",(i=>{u.error("load error",this.Y,i),e(t)})),t.addEventListener("load",(i=>{u.info("load ok",this.Y),e(t)})),document.head.appendChild(t)}))}))}ut(){var t;return o(this,void 0,void 0,(function*(){if(this.ft)return this.ft.getResult();let e=Object.keys(this.tt);if(0==e.length)return;if(1==e.length)return this.tt[e[0]].getResult();let i=(null===(t=this.W)||void 0===t?void 0:t.vt())||"index",n=this.tt["index.js"]||this.tt.main||this.tt["main.js"]||this.tt[i];if(n){return yield n.getResult()}{let t=Object.keys(this.tt);return 0==t.length?void 0:this.tt[t[t.length-1]].getResult()}}))}rt(t){try{let e=new Function("module","exports","require","__ID",t),n=i.O.yt.Z(this.Y),s=e.call(n.module,n.module,n.module.exports,null==n?void 0:n.require,this.Y);if("object"!=typeof n.module.exports||"object"==typeof n.module.exports&&Object.keys(n.module.exports).length>0)return n.module.exports;if(void 0!==s)return s;u.warn("module no exports: ",this.Y)}catch(e){u.error("exec script failed:",e,this.P(),this.dt(),t)}}lt(t){try{let e=this,n=i.O.yt.Z(this.Y);function s(){var i=n.module,s=n.module.exports,o=n.require,r=e.Y;return eval.bind({module:i,exports:s,require:o,__ID:r})(t)}let o=s();return void 0!==o?o:n.module.exports}catch(r){u.error("exec script failed:",this.P(),this.dt(),t)}}getResult(){return o(this,void 0,void 0,(function*(){return this.T.result()}))}getResultSync(){return this.T.resultSync()}resolveResult(t){return this.T.reslove(t),this}updateHtmlElement(t){return this.it=t,this}getChildChunk(t){return this.tt[t]||(this.tt[t]=new a(this,t)),this.tt[t]}findChunk(t){return this.tt[t]}getDefaultModule(){return this.ft||(this.ft=new a(this,"_default_")),this.ft}updateNpmModule(t){return this.W=t,this}updateModuleJs(t){this.et=t}toUrl(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")?t:t.startsWith(".")?s.st.wt(this.Y,"..",t):this.W.ht(t)}}class v{constructor(t){this.bt=t,this._t={},this.$t={},this.T=new n.Defer("PKG: "+this.bt,(()=>o(this,void 0,void 0,(function*(){let t=yield Promise.all(this.N.files.map((t=>this.$(t).getResult())));if(t.forEach((t=>{t instanceof HTMLStyleElement&&(document.getElementById(t.id)||document.head.appendChild(t.cloneNode()))})),t.length>0)return t[t.length-1];u.warn("npm module no files export",this.bt)})))),this.N=l.m.modules[this.bt],this.N||(this.N={name:this.bt,preload:!1,files:["index.js"],baseUrl:s.st.wt(l.m.npmUrl,this.bt),cors:l.m.npmCors})}D(t){if(!this.$t[t]){let e=this.X(t);e&&(this.$t[t]=new h(this,t,e))}return this.$t[t]}A(t,e,i){return o(this,void 0,void 0,(function*(){const n=[];for(let s of t)"require"==s?n.push(this.L(!0)):"exports"==s?n.push(e):n.push(yield this.gt(s,i));return n}))}gt(t,e){return o(this,void 0,void 0,(function*(){let n=this.X(t);if(n)return n.getResult();let o=t.match(/(.+)\!(.+)/),r=o?o[1]:void 0;o&&o[2];if(r){let e=this.D(r);return e?yield e.K(t).getResult():void u.error("not found loader plugins",r)}let l=this.jt(t);if(l)return l.getResult();t.startsWith("@/")&&(t=t.slice(2));let c=s.st.nt(t);if(t.startsWith(".")||t.startsWith("/")||t.startsWith("http://")||t.startsWith("https://"))return c?"ts"==c&&(t=t.replace(/\.ts$/,".js")):t+=".js",this.$(t,e).getResult();if(o=t.match(/^(@[a-z0-9-\.]+\/[a-z0-9-\.]+)(\/.*)?$/),o||(o=t.match(/^([a-z0-9-\.]+)(\/.*)?$/)),o){let t=o[1],n=o[2];return n?(c?"ts"==c&&(n=n.replace(/\.ts$/,".js")):n+=".js",i.O.getModule(t).$(n,e).getResult()):i.O.getModule(t).getResult()}}))}X(t){for(let e of Object.keys(this._t)){let i=this._t[e].findChunk(t);if(i)return i}for(let e of Object.keys(this.$t)){let i=this.$t[e].X(t);if(i)return i}}L(t,e){let n=(n,s,o)=>{const r=n instanceof Array?n:[n];if(!s)try{const t=r.map((t=>{var n,s,o;return(null===(n=this.X(t))||void 0===n?void 0:n.U())||(null===(s=this.jt(e?e.toUrl(t):this.ht(t)))||void 0===s?void 0:s.getResultSync())||(null===(o=i.O.findModule(t))||void 0===o?void 0:o.U())}));return 1===t.length?t[0]:t}catch(t){return[]}const l=r.map((n=>{let s=this.gt(n,e);return t?s||i.O.getModule(n).getResult():s}));return Promise.all(l).then((t=>s(1===t.length?t[0]:t)))};return n.toUrl=t=>e?e.toUrl(t):this.ht(t),n.configure={},n}vt(){return this.N.exportName}Ot(){return o(this,void 0,void 0,(function*(){return s.PromiseExt.once(this.bt,(()=>o(this,void 0,void 0,(function*(){var t;u.debug("load dependencies: ",this.bt);let e=(null===(t=this.N)||void 0===t?void 0:t.deps)||[];if(e.indexOf("*")>=0){let t=yield this.$("package.json").getResult();e=[...(null==t?void 0:t.dependencies)?Object.keys(t.dependencies):[],...e.filter((t=>"*"!=t))]}let n=e.map((t=>i.O.getModule(t).getResult()));return Promise.all(n)}))))}))}getResult(){return o(this,void 0,void 0,(function*(){return yield this.Ot(),yield this.T.result()}))}U(){return this.T.resultSync()}j(t){return this.T.reslove(t),this}St(t){for(let e of Object.keys(this._t)){let i=this._t[e].findChunk(t);if(i)return i}}ht(t){return t.startsWith("http://")||t.startsWith("https://")?t:t.startsWith(".")?s.st.wt(location.origin,location.pathname,t):t.startsWith("@/")?s.st.wt(l.m.npmUrl,t.slice(2)):s.st.wt(this.N.baseUrl,t)}$(t,e){let n=t.startsWith("/")?this.ht(t):e?e.toUrl(t):this.ht(t);const s=decodeURIComponent(n);if(this._t[s])return this._t[s];let o=i.O.getFile(s).updateNpmModule(this);return this._t[s]=o,o}jt(t,e){let i=e?e.toUrl(t):this.ht(t);const n=decodeURIComponent(i);return this._t[n]}Et(t){let e=this.ht(t);const i=decodeURIComponent(e);this._t[i]&&delete this._t[i]}Mt(t){t.id||(t.id=`${t.tagName}-unknown-${p++}`);let e=t instanceof HTMLLinkElement?t.href:t.src;return this.$(e||t.id).updateHtmlElement(t)}}let p=1;class m{constructor(){this.yt=new d,this.kt={},this.Ct={}}getModule(t){let e=t||"/";return this.Ct[e]||(this.Ct[e]=new v(e)),this.Ct[e]}findModule(t){return this.Ct[t]}getFile(t){const e=decodeURIComponent(t);return this.kt[e]||(this.kt[e]=new f(this.getModule("/"),e)),this.kt[e]}findFile(t){const e=decodeURIComponent(t);return this.kt[e]}removeFileMatched(t){const e=decodeURIComponent(t);for(let t of Object.keys(this.kt))if(t.startsWith(e+".")){let e=this.kt[t].R();e&&e.Et(t),delete this.kt[t]}}}function y(t,e,n){var s,o;if(document.currentScript){let i=document.currentScript.src;if(i&&i.startsWith(WCEX.npmUrl)){let r=i.slice(WCEX.npmUrl.length),l=r.startsWith("@")?null===(s=r.match(/^(@.+?\/.+?)\/.*$/))||void 0===s?void 0:s[1]:null===(o=r.match(/^(.+?)\/.*$/))||void 0===o?void 0:o[1];if(l&&WCEX.amdloader[l])return WCEX.amdloader[l].loader.define(t,e,n)}}let r,l,c=[];n?(r=t,c=e instanceof Array?e:[e],l=n):e?(t instanceof Array?c=t:r=t,l=e):l=t;const a=document.currentScript;if(!a)return u.warn("currentScript() failed!, define() must run in sync <script> tag",l);a.id||(a.id="script-inline-"+p++);let h=a.src||a.id,d=i.O.getFile(h);return r?d.getChildChunk(r).I(c).B(l):d.getDefaultModule().I(c).B(l),l}i.Umd=m,i.O=c.o.u(new m),window.__LOADER=i.O,Object.defineProperty(y,"amd",{value:{wcex:!0}}),window.define=y}.apply(e,n),void 0===s||(t.exports=s)},function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(3),i(7)],s=function(e,i,n,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Defer=void 0;const r=(0,n.WcLog)(t);i.Defer=class{constructor(t,e,i=15e3){this.P=t,this.xt=e,this.Tt=i,this.Pt="init"}state(){return this.Pt}resultSync(){return this.Rt}result(){return o(this,void 0,void 0,(function*(){if("init"==this.Pt){this.Pt="loading";try{this.At=s.PromiseExt.Dt(this.xt(this),this.Tt),this.Rt=yield this.At}catch(t){r.warn("load error",this.P,t)}this.Pt="end"}else if("loading"==this.Pt)return yield this.At;return this.Rt}))}reslove(t){this.Rt=t,this.Pt="end"}}}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n,s;n=[i,e,i(4),i(5)],s=function(t,e,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WcLog=e.Logger=void 0;const s=!!document.head.querySelector("meta[name=debug]");let o=-1;function r(t,e){let n="";if("string"==typeof t)n=(e||"")+":"+t;else if("function"==typeof t){const i=t.moduleId.split("/");if(!e)for(let t=0;t<i.length;t++)if(i[t].startsWith("@")){e=n+i[t]+"/"+(i[t+1]||"");break}n=(e||"")+":"+i[i.length-1].replace(/\..*?$/,"")}else if("object"==typeof t){const i="string"==typeof t.id?t.id.match(/^.*\/(.+?)(\..*)?$/):"";n=(e||"")+":"+(i&&i.length>2?i[1]:t.id)}const r=Math.round(360*Math.random()),l=`color:hsl(${r},100%,40%);font-style: italic;`,c=`color:hsl(${r},100%,40%);font-weight: 900;font-size:12px;`;let u=-1;const a=i.devConfig.debugOutput||s,h=["debug","log","info","warn","error"];function d(){}const f=function(...t){f.log.call(f,...t)};return Reflect.setPrototypeOf(f,new Proxy(console,{get(t,e){let i=h.indexOf(e);if(i<0)return t[e];if(i<=2&&!a)return d;let s=(new Date).getTime(),r=o>0?s-o:0,f=u>0?s-u:0;return o=s,u=s,console[e].bind(console,`%c${e.substring(0,1).toUpperCase()}|${r}|${f} %c${n}`,l,c)}})),f}e.Logger=r,e.WcLog=function(t){return r(t,n.pkgName)},window.Log=r("global")}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n;n=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.devConfig=void 0,e.devConfig={};try{let t=localStorage.getItem("__DEV");t&&(e.devConfig=JSON.parse(t))}catch(t){}}.apply(e,[i,e]),void 0===n||(t.exports=n)},function(t,e,i){var n,s,o=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var s=Object.getOwnPropertyDescriptor(e,i);s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,s)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),l=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&o(e,t,i);return r(e,t),e};n=[i,e,i(6)],s=function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pkgVersion=e.pkgName=void 0,i=l(i),e.pkgName=i.name,e.pkgVersion=i.version}.apply(e,n),void 0===s||(t.exports=s)},t=>{"use strict";t.exports=JSON.parse('{"name":"wcex","version":"1.10.14","main":"index.js","load":[],"moduleType":"html","repository":"https://github.com/wc-ex/wcex","keywords":["web","components","web components","webcomponents","wc","ui","framework","mvvm","vue"],"description":"WCEX - Web Component Extends","types":"types/index.d.ts","author":"zhufeng <zhfjyq@163.com>","license":"MIT","devDependencies":{"copy-webpack-plugin":"^11.0.0","terser":"^5.16.2","ts-loader":"^9.4.2","typescript":"^4.9.5","webpack":"^5.75.0","webpack-bundle-analyzer":"^4.7.0","webpack-cli":"^5.0.1","webpack-dev-server":"^4.11.1","webpack-shell-plugin-next":"^2.3.1"},"scripts":{"dev":"webpack serve -c ./webpack/dev.config.js","types":"webpack -c ./webpack/dev.config.js ","build":"webpack -c ./webpack/build.config.js","pub":"cd dist && npm --registry \\"https://registry.npmjs.org/\\" publish --access public"},"dist-files":["index.js"],"histroy":{"1.9.63":"修复CSS @import 问题"}}')},function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(3)],s=function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PromiseExt=i.st=i.elementAttrs=i.eachAttr=i.objectGet=i.mkScopedEvent=i.mkScopedValue=i.mkScopedExpr=void 0;(0,n.WcLog)(t);i.mkScopedExpr=function(t){return new Function("scope","$el",`with(scope){return \`${t}\`}`)},i.mkScopedValue=function(t){return new Function("scope","$el",`with(scope){return ${t}}`)},i.mkScopedEvent=function(t){return new Function("scope","$el","$ev",`with(scope){${t}}`)},i.objectGet=function(t,e){let i=t;try{for(let t of e.split("."))i=i[t];return i}catch(t){return}},i.eachAttr=function(t,e){const i=[];for(let e=0;e<t.attributes.length;e++)i.push(t.attributes.item(e));i.forEach(e)},i.elementAttrs=function(t){const e=[];for(let i=0;i<t.attributes.length;i++)e.push(t.attributes.item(i));return e},i.st={Ft(t,e,i=!1,n=!0){return o(this,void 0,void 0,(function*(){var s=t=>o(this,void 0,void 0,(function*(){for(let o=0;o<t.children.length;o++){let r=t.children[o];n&&(yield e(r)),i&&(yield s(r)),n||(yield e(r))}}));yield s(t)}))},Lt(t,e){for(let i of Object.keys(t))e(t[i],i)},It:t=>Object.keys(t).length,Bt:t=>t.replace(/[\u0020-\u002F\u003a-\u0040]/g,"-").replace(/[A-Z][^A-Z]*/g,(t=>"-"+t.toLowerCase())).replace(/-+/g,"-").replace(/^-+/,""),Nt:(t,e)=>t?i.st.Bt(t)+"-"+i.st.Bt(e):i.st.Bt(e),Ht(t){let e=t.parentNode;if(e)return e instanceof ShadowRoot?e.host:this.Ht(e)},wt(...t){const e=[];return t.forEach(((t,i)=>{if(0==i&&t)if(t.startsWith("/"))e.push("");else{const i=t.split("://",2);2==i.length&&(e.push(i[0]+":/"),t=i[1])}if(t){t.split("/").forEach((t=>{if(0!=t.length&&"."!=t)return".."==t?e.pop():void e.push(t)}))}})),e.join("/")},Ut:t=>function e(i){switch(typeof i){case"bigint":case"number":return i>0;case"boolean":return i;case"function":return e(i());case"object":return null!=i&&(i instanceof Array?i.length>0:i instanceof Map||i instanceof Set?i.size>0:Object.getOwnPropertyNames(i).length>0);case"string":return""!=i.trim()&&"0"!=t&&"false"!=t&&"no"!=t;case"symbol":return!0;default:return!1}}(t),zt:t=>t.replace(/^[-:$@]+/,"").split(/-+/).map(((t,e)=>e>0?t.slice(0,1).toUpperCase()+t.slice(1):t)).join(""),nt(t){let e=t.split("/"),i=e[e.length-1].match(/^(.*)\.(.+?)$/);return i?i[2]:""},Wt:t=>"function"==typeof t&&t.prototype.constructor==t,qt(t,e=50){let i=0;return(...n)=>{i++;let s=i;setTimeout((()=>{i===s&&t(...n)}),e)}},Jt(t){return o(this,void 0,void 0,(function*(){let e=performance.now(),i=t(),n=i.next();for(;!n.done;)performance.now()-e>20&&(yield new Promise((t=>requestAnimationFrame(t))),e=performance.now()),n=i.next()}))}};const s=Symbol("Utils_OnceResults");i.PromiseExt={Dt:(t,e)=>Promise.race([t,new Promise(((t,i)=>{setTimeout((()=>{i("timeout")}),e)}))]),once(t,e){let i=Reflect.get(this.once,s);return i||(i={},Object.defineProperty(this.once,s,{value:i,enumerable:!0})),i[t]||(i[t]=e()),i[t]},Vt:t=>new Promise((e=>{setTimeout(e,t)}))}}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n,s;t=i.nmd(t),n=[i,e,i(4),i(3),i(7)],s=function(e,i,n,s,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.m=void 0;const r=(0,s.WcLog)(t);let l={},c=null===n.devConfig||void 0===n.devConfig?void 0:n.devConfig.pkgs;if(c)for(let t of Object.keys(c)){let e=c[t];if(e.enable){l[t]=`http://${e.hostport}`;let i=document.createElement("meta");i.setAttribute("name","module"),i.setAttribute("pkg",t),i.setAttribute("url",l[t]),document.head.appendChild(i)}}i.m=new class{constructor(){var t,e,i;this.npmUrl=location.origin+"/node_modules",this.npmCors=!1,this.modules={},this.colors={};let n=document.head.getElementsByTagName("meta");for(let s=0;s<n.length;s++){let r=n[s];switch(r.getAttribute("name")){case"root":this.root=(null===(t=r.getAttribute("content"))||void 0===t?void 0:t.trim())||void 0,this.root&&(this.root.startsWith("http://")||this.root.startsWith("https://")||(this.root=this.npmUrl+this.root));break;case"debug":this.debug=(null===(e=r.getAttribute("content"))||void 0===e?void 0:e.trim())||void 0;break;case"npm":this.npmUrl=this.rootUrl(r.getAttribute("content")||"/node_modules"),this.npmUrl.startsWith("http://")||this.npmUrl.startsWith("https://")||(this.npmUrl.startsWith("/")?this.npmUrl=location.origin+this.npmUrl:this.npmUrl=o.st.wt(location.origin+location.pathname.replace(/^(.*\/).*?$/,"$1"),this.npmUrl)),this.npmUrl.endsWith("/")||(this.npmUrl+="/"),this.npmCors=r.hasAttribute("cors");break;case"module":this.Kt(r);break;case"lang":this.lang=(null===(i=r.getAttribute("content"))||void 0===i?void 0:i.trim().toLowerCase())||void 0}}r.debug("load html meta",this)}rootUrl(t){return decodeURI(t.startsWith("/")||t.match(/^https?:\/\//)?t:this.root?o.st.wt(this.root,t):o.st.wt(location.origin+location.pathname.replace(/^(.*\/).*?$/,"$1"),t))}Kt(t){let e=t.getAttribute("pkg"),i=t.getAttribute("content"),n=t.getAttribute("deps"),s=t.getAttribute("global"),c=t.getAttribute("url"),u=t.hasAttribute("preload"),a=t.getAttribute("version")||void 0,h=t.getAttribute("export-name")||void 0,d=t.getAttribute("prefix")||void 0,f=t.hasAttribute("esm")?"true":void 0,v=t.hasAttribute("cjs")?"true":void 0,p=t.hasAttribute("amd")?"true":void 0,m=t.hasAttribute("eval")?"true":void 0;if(!e)return;l[e]&&(c=l[e],r.warn("using dev module:",e,c)),c&&(c.startsWith("/")&&(c=location.origin+c),c.startsWith(".")&&(c=o.st.wt(location.origin+location.pathname,"..",c)));let y=t.hasAttribute("cors")?o.st.Ut(t.getAttribute("cors")):this.npmCors,w=c||o.st.wt(this.npmUrl,a?`${e}@${a}`:e,d),b={name:e,baseUrl:w,files:(i?i.split(";").filter((t=>t.trim().length>0)):["index.js"]).map((t=>o.st.wt(w,t))),deps:n?n.split(";").filter((t=>t.trim().length>0)):[],globalVar:s||void 0,preload:u,version:a,dt:c,exportName:h,prefix:d,esm:f,cjs:v,amd:p,cors:y,eval:m};return this.modules[e]=b,b}relPath(t,e,n){return n?o.st.wt(i.m.npmUrl,n,t+e):i.m.root?o.st.wt(i.m.root,n,t+e):o.st.wt(location.protocol+"//"+location.host+location.pathname,location.pathname.endsWith("/")?void 0:"..",t+e)}}}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n,s;t=i.nmd(t),n=[i,e,i(10),i(3)],s=function(e,i,n,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.o=void 0;const o=(0,s.WcLog)(t),r=Symbol("Observer"),l=Symbol("ProxyedObj"),c=Symbol("ObjectSelfDeps"),u={callerCounter:0,noticCounter:0},a={callerSet:new Set,realtimeNotices:0,delayApplyFlag:!1};let h=!1;window.addEventListener("wcex-loaded",(()=>{h=!0}));let d=null!=localStorage.getItem("__TRACK");requestAnimationFrame((function t(){if(h&&a.callerSet.size>0){let t=(new Date).getTime(),e=0,i=0,n=a.callerSet.size;for(let n of a.callerSet){if(d&&(e=(new Date).getTime()),n(),d){let t=(new Date).getTime()-e;t>10&&o.info("apply changes: trace long time",t,n.__tracker)}if(a.callerSet.delete(n),i++,i%20==0){if((new Date).getTime()-t>20)break}}let s=(new Date).getTime()-t;d&&o.info(`apply changes: all=${n},tm=${s},proc=${i}`)}requestAnimationFrame(t)}));class f{constructor(){this.Xt=new Map}Gt(t){return this.Xt.get(t)}Zt(t,e){let i=this.Xt.get(t);i||(i=new Map,this.Xt.set(t,i));let n=i.get(e.wcId);n||(n=new Set,i.set(e.wcId,n)),n.add(e.binderKey)}Qt(t){this.Xt.delete(t)}Yt(t){const e=this.Xt.get(t);e&&e.forEach(((i,s)=>{const o=n.wcRegister.getEl(s);o?i.forEach((e=>{const n=o.te(e);if(n)if(n instanceof Array)for(let i of n)a.realtimeNotices++,i.__tracker={prop:t,wcId:s,binderKey:e,name:"__tracker 1"},a.callerSet.add(i);else a.realtimeNotices++,n.__tracker={prop:t,wcId:s,binderKey:e,name:"__tracker 2"},a.callerSet.add(n);else i.delete(e)})):e.delete(s)}))}}i.o=new class{constructor(){this.ee=null,this.ie=new Set,this.u(u)}trackCall(t,e,i){var s,r,l,c,u,a,h;this.ee={wcId:t,binderKey:e};try{this.ie.has(i)||((h=i())instanceof Array?h.length:(h instanceof Set||h instanceof Map)&&h.size)}catch(h){null===(s=n.wcRegister.getEl(t))||void 0===s||s.ne(e),this.ie.add(i),o.error("trackCall failed:",h.message,e);let d=e.match(/^(\d+)|(.*)/);if(d&&3==d.length){let i=parseInt(d[1]),s=null===(c=null===(l=null===(r=n.wcRegister.getEl(t))||void 0===r?void 0:r.$rootElem)||void 0===l?void 0:l.shadowRoot)||void 0===c?void 0:c.querySelector(`*[eid="${i}"]`);o.error("please check:",null===(u=n.wcRegister.getEl(t))||void 0===u?void 0:u.$rootElem,s,e)}else o.error("please check:",null===(a=n.wcRegister.getEl(t))||void 0===a?void 0:a.$rootElem)}return this.ee=null,h}se(t){return t[r]}oe(t,e){this.ee&&(void 0!==e&&this.se(t).Zt(e,this.ee),this.se(t).Zt(c,this.ee))}re(){return u}le(t){return t instanceof Node||t instanceof Window||t instanceof Promise||t instanceof Document||t instanceof DocumentFragment||t instanceof ResizeObserver||t instanceof MutationObserver||t instanceof IntersectionObserver||t instanceof Event}ce(t){if(!(t instanceof Object))return t;if("function"==typeof t)return t;if(null==t)return t;if(Reflect.has(t,r))return t;if(Reflect.has(t,l))return t[l];if(!Reflect.isExtensible(t))return t;if(this.le(t))return t;Object.defineProperty(t,r,{value:new f,enumerable:!1,writable:!1}),Reflect.ownKeys(t).forEach((e=>{if("string"==typeof e&&"object"==typeof t[e]){let i=Reflect.getOwnPropertyDescriptor(t,e);(null==i?void 0:i.writable)&&i.configurable&&!i.get&&!i.set&&(t[e]=this.ce(t[e]))}}));const e=this,i=new Proxy(t,{get:(i,n,s)=>("symbol"!=typeof n&&e.oe(t,n),(t instanceof Set||t instanceof Map)&&("add"!=n&&"delete"!=n&&"clear"!=n&&"set"!=n||e.se(t).Yt(c)),t instanceof Array&&("push"!=n&&"pop"!=n&&"shift"!=n&&"unshift"!=n&&"splice"!=n&&"sort"!=n&&"reverse"!=n||(e.se(t).Yt(c),e.se(t).Yt("length"))),"function"!=typeof t[n]||t instanceof Array?t[n]:t[n].bind(t)),set(i,n,s,o){const r=!(t.hasOwnProperty&&t.hasOwnProperty(n));return"object"==typeof t[n]&&t[n]===s||(t[n]=e.ce(s),e.se(t).Yt(n)),(i instanceof Array||r)&&e.se(t).Yt(c),!0},deleteProperty(i,n){e.oe(t,n);const s=e.se(t);return s.Yt(n),s.Yt(c),s.Qt(n),delete t[n],!0}});if(t instanceof Set||t instanceof Map)return i;const n=Object.getPrototypeOf(t);return!n||n==Object.prototype||n==Array.prototype||n instanceof HTMLElement||n instanceof Node||Object.setPrototypeOf(t,new Proxy(n,{get(t,e,n){let s=Reflect.getOwnPropertyDescriptor(t,e);return(null==s?void 0:s.get)?Reflect.get(t,e,n):"function"==typeof t[e]?t[e].bind(i):t[e]}})),Object.defineProperty(t,l,{value:i,enumerable:!1,writable:!1}),i}ue(t,e,i,n){var s=this;if(this.le(t))return t;if("symbol"==typeof e)return t;if(t instanceof Node||t instanceof Map||t instanceof Set)return t;if("function"==typeof t[e])return t;var o=s.ce(void 0===i?t[e]:i);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>(s.oe(t,e),o),set:i=>("object"==typeof o&&o===i||(o=s.ce(i),null==n||n(e,o),s.se(t).Yt(e)),!0)}),t}u(t){return t.hasOwnProperty&&t.hasOwnProperty(r)||Object.defineProperty(t,r,{value:new f,enumerable:!1,writable:!1}),t}watch(t,e){const i=this;return t.hasOwnProperty&&t.hasOwnProperty(r)||"object"!=typeof t||t instanceof Array?t:Reflect.isExtensible(t)?(this.le(t)||null==t||(Object.defineProperty(t,r,{value:new f,enumerable:!1,writable:!1}),Object.keys(t).forEach((i=>{this.ue(t,i,void 0,e)})),Object.setPrototypeOf(t,new Proxy(Object.getPrototypeOf(t)||{},{set(n,s,r,l){try{Reflect.has(n,s)?(n[s]=i.ce(r),i.se(t).Yt(s)):(i.ue(t,s,r,e),i.se(t).Yt(s),i.se(t).Yt(c)),e&&e(s,r)}catch(t){o.error("observer set fail:",t,n,s,r)}return!0}}))),t):t}},window.__OB_STATUS=function(){return u}}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n,s;t=i.nmd(t),n=[i,e,i(3)],s=function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.wcRegister=i.ElementRegister=void 0;(0,n.WcLog)(t);class s{constructor(){this.ae=1,this.he=new Map,this.de=new Map}register(t){const e=this.ae++;this.he.set(e,t);const i=t.tag.toLowerCase();return this.de.has(i)||this.de.set(i,new Set),this.de.get(i).add(t),e}unregister(t){var e;this.he.delete(t.$wcId);const i=t.tag.toLowerCase();null===(e=this.de.get(i))||void 0===e||e.delete(t)}getEl(t){return this.he.get(t)}findByTag(t){const e=[],i=t.toLowerCase();return"*"==i?e.push(...this.he.values()):this.de.has(i)&&e.push(...this.de.get(i)),e}findByTagElem(t){const e=this.findByTag(t),i=[];return e.forEach((t=>{const e=t.$rootElem,n=t.$wcId,s=`<${e.tagName.toLowerCase()} ${Array.from(e.attributes).map((t=>{const e=t.value.length>50?t.value.substring(0,50)+"...":t.value;return`${t.name}="${e}"`})).join(" ")}>`,o=e.innerText;i.push({el:e,wcid:n,tag:s,text:o})})),i}}i.ElementRegister=s,i.wcRegister=new s}.apply(e,n),void 0===s||(t.exports=s)},function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(9),i(7),i(10),i(12),i(13),i(8),i(1),i(3),i(16),i(3),i(18),i(19)],s=function(e,i,n,s,r,l,c,u,a,h,d,f,v){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.fe=i.Wc=i.i=i.ve=void 0;const p=(0,f.WcLog)(t);function m(t,e,i){var n;let s=(e||t).toLowerCase();if(s.indexOf("-")<0)return;let o=customElements.get(s);if(o)return o.$tpl;let r=e?Object.getPrototypeOf(document.createElement(t)).constructor:HTMLElement,l=((n=class extends r{static updateTpl(t){l.$tpl=t,l.version++}constructor(){super(),this.$wc=new w(this,l.$tpl)}connectedCallback(){this.$wc.pe()}disconnectedCallback(){this.$wc.me()}}).$tpl=new c.ye(s,i),n.version=1,n);try{customElements.define(s,l,{extends:e?t:void 0})}catch(t){p.error(t.message)}return l.$tpl}function y(t,e,i){return o(this,void 0,void 0,(function*(){let n=[];return n.push(function t(s){return o(this,void 0,void 0,(function*(){if(!(s instanceof Element))return;if(i){let e=s instanceof HTMLTemplateElement?s.content.children:s.children;for(let i=0;i<e.length;i++)yield t(e[i])}let o=m(s.tagName.toLowerCase(),s.getAttribute("is"),e);o&&(s.hasAttribute("!sync")?yield o.we():n.push(o.we()))}))}(t)),Promise.all(n)}))}i.ve=m,i.i=y;class w{constructor(t,e){this.$wcId=0,this.$id1=new Proxy({},{get:(t,e)=>{var i;return null===(i=this.be)||void 0===i?void 0:i.getElementById(e)}}),this.$class=new Proxy({},{get:(t,e)=>{var i;const n=[];return(null===(i=this.be)||void 0===i?void 0:i.querySelectorAll(`.${e}`)).forEach((t=>{n.push(t)})),n}}),this.$router=l.router,this.$waitComponents=()=>o(this,void 0,void 0,(function*(){yield this._e;let t=this.be.querySelectorAll("[wcid]");for(let e=0;e<t.length;e++){let i=t[e];yield i.rootScope.$waitComponents()}})),this.$e=n.o.watch({}),this.ge=void 0,this.je=new Map,this.Oe=new MutationObserver(this.Se.bind(this)),this.Ee=1,this.Me=new Set,this.ke=0,this.Ce=!1,this._e=void 0,this.xe=void 0,this.Te=void 0,this.Pe=void 0,this.Re=[],n.o.u(this),this.tag=t.tagName.toLowerCase(),this.$wcId=r.wcRegister.register(this),this.$tpl=n.o.u(e),this.$rootElem=t}pe(){this.Ce?this.Ae():(this.Ce=!0,this._e=this.De())}me(){setTimeout((()=>{this.$rootElem.isConnected||this.Fe()}))}Ae(){return o(this,void 0,void 0,(function*(){}))}De(){var t,e,i,s;return o(this,void 0,void 0,(function*(){let r=this.$tpl,l=this.$rootElem;this.$rootParentElem=l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentElement;try{this.be=l.shadowRoot||l.attachShadow({mode:"open"})}catch(t){let e=document.createElement("div"),i=[];for(let t=0;t<l.childNodes.length;t++){const e=l.childNodes.item(t);i.push(e)}e.append(...i),l.appendChild(e),this.be=e.shadowRoot||e.attachShadow({mode:"open"})}this.$rootElem.setAttribute("wcid",this.$wcId.toString());try{yield r.we()}catch(t){p.error("load tpl failed:",r.tag,r.info.url,t)}this.$e=r.Le(this.$rootElem),this.$rootElem.rootScope=this.$e;const c=r.Ie();this.$e.$id=this.$id1,this.$e.$class=this.$class,this.$e.$wc=this,this.$e.$emit=this.$emit.bind(this),this.$e.$timer=this.$timer.bind(this),this.$e.$router=this.$router,this.$e.$watch=this.$watch.bind(this),this.$e.$noWatch=this.$noWatch.bind(this),this.$e.$root=this.$e,this.$e.$parent=this.$e,this.$e.$rootElem=this.$rootElem,this.$e.$rootParentElem=this.$rootParentElem,this.$e.$loader=a.O,this.$e.$json=JSON.stringify,this.$e.$delay=function(t){return new Promise((e=>setTimeout(e,t)))},this.$e.$waitComponents=this.$waitComponents.bind(this),this.$e.$next=function(){return new Promise((t=>requestAnimationFrame((()=>t()))))};let f=this;this.$e.$step=function(...t){var e;let i=t.map((t=>t instanceof Array?{value:t[0],delay:t[1]||0}:{value:t,delay:0})),s=f.ge;if(!s)return p.warn('"$step" not support in this context',this),i[0].value;let o=(null===(e=s.toString().match(/^[\s\S]*\{return ([\s\S]*)\}[\s\S]*$/))||void 0===e?void 0:e[1])||"unknown";s.__STEP||(this.$log("step init",o),s.__STEP=n.o.watch({cur:0,value:i[0].value,binder:s}));let r=s.__STEP;return r.cur>=i.length-1&&(s.__STEP_RESET?(this.$log("step reset",o),s.__STEP_RESET=!1,r.cur=0,r.value=i[r.cur].value):(this.$log("step end",o),s.__STEP_RESET=!0)),r.cur<i.length-1&&!s.__STEP_RUNNING&&(s.__STEP_RUNNING=!0,setTimeout((()=>{r.cur++,r.value=i[r.cur].value,s&&(s.__STEP_RUNNING=!1)}),i[r.cur].delay)),this.$log("step run",r.cur,r.value,i[r.cur].delay,o),r.value},this.$e.$path=this.$path.bind(this),this.$e.$tpl=this.$tpl,this.$e.$npm=u.m.npmUrl,this.$e.$go=this.$router.go.bind(this.$router),this.$e.$log=(0,h.Logger)(`${this.tag}-${this.$wcId}`);let v=d.t.Be().scope;for(let t of Object.keys(v)){let e=v[t];this.$e[t]="function"==typeof e?e.bind(this.$e):e}yield null===(e=(t=d.t.Be()).wcPre)||void 0===e?void 0:e.call(t,this.$e,c),this.Ne(c),this.Pe&&this.Pe(c),yield this.He("onCreate",[c]),this.Ue(!1),this.be.appendChild(c),this.ze(this.be),yield null===(s=(i=d.t.Be()).wcPost)||void 0===s?void 0:s.call(i,this.$e),this.Oe.observe(this.$rootElem,{attributes:!0}),this.Oe.observe(this.be,{childList:!0,subtree:!0}),this.Re.forEach((t=>{this.$timer(t.timer,t.fn)})),this.Ue(!0),requestAnimationFrame((()=>o(this,void 0,void 0,(function*(){this.Te&&this.Te(),yield this.He("onReady",[this]),this.$emitEvent({name:"ready",detail:{from:this.tag},toElem:this.$rootElem,isBubbles:!1,isComposed:!1})}))))}))}Ue(t){let e=this.$rootElem;t?e.classList.remove("cloak"):e.classList.add("cloak")}$path(t,e){return t?this.$tpl.We(t,e).url:""}Fe(){var t;r.wcRegister.unregister(this),this.Oe.disconnect(),this.Me.forEach((t=>{clearInterval(t)})),v.Je.qe(this.$wcId),this.He("onDestroy",[this]),this.xe&&this.xe(),this.$emitEvent({name:"destroy",detail:{from:this.tag},toElem:this.$rootElem,isBubbles:!1,isComposed:!1}),null===(t=d.t.Be().wcDestroy)||void 0===t||t.bind(this.$e)(),this.be.innerHTML=""}He(t,e){const i=this.$e[t];if("function"==typeof i)return i.apply(this.$e,e)}$watch(t,e){const i="-1|$watch|"+this.ke++;this.je.set(i,(()=>{n.o.trackCall(this.$wcId,i,t),e()})),n.o.trackCall(this.$wcId,i,(()=>{JSON.stringify(t())}))}$noWatch(t){return n.o.u(t)}$emit(t,e,i){const n=i||(e instanceof Element?e:this.$rootElem),s=e instanceof Element?{}:e,o=t instanceof Event?t:new CustomEvent(t,{detail:s,composed:!0,bubbles:!0,cancelable:!0});n.dispatchEvent(o)}$emitEvent(t){const e=new CustomEvent(t.name,{detail:t.detail,composed:t.isComposed,bubbles:t.isBubbles,cancelable:!0});t.toElem.dispatchEvent(e)}$timer(t,e){t<0&&(t=-t,e()),this.Me.add(setInterval(e,t))}te(t){return this.je.get(t)}Se(t,e){t.forEach((t=>{const e=t.target;if("attributes"===t.type&&t.attributeName){let i=t.attributeName;if(e===this.$rootElem){let t=this.$tpl.Ve();const n=t.props()[i];if(void 0===n);else if("class"!=i&&"style"!=i)if(e.$scope&&e.$scope.hasOwnProperty(n.Ke))e.$scope[n.Ke]!=this.$e[n.Ke]&&(this.$e[n.Ke]=e.$scope[n.Ke]);else if(!n.Xe.match(/^[$:@]/))if("bool"!==t.propType(n.Ge)||e.hasAttribute(n.Ge)){let i=t.propsGetValue(n.Ge,e.getAttribute(n.Ge));null!=i&&this.$e[n.Ke]!=i&&(this.$e[n.Ke]=i)}else this.$e[n.Ke]=!1}}else"childList"==t.type&&(t.removedNodes.forEach((t=>{t instanceof Element&&null==t.parentNode&&this.Ze(t,!0)})),t.addedNodes.forEach((t=>o(this,void 0,void 0,(function*(){t instanceof Element&&!t.hasOwnProperty("rootScope")&&(yield y(t,this.$tpl.info.from,!0),t.$scope||this.ze(t))})))))}))}Ne(t){const e=this.$tpl.Ve();let i=this;function n(t){const n=i.$rootElem.$scope;let s=n&&n.hasOwnProperty(t.Ke)?n[t.Ke]:i.$rootElem.getAttribute(t.Ge);return"string"==typeof s?e.propsGetValue(t.Ge,s):s}function o(t){const e=i.$rootElem.$scope;if("class"==t.Ge){let s=e&&e.hasOwnProperty("class")?e.class:"",r=(n=s,o=i.$e[t.Ke],[...new Set(((n||"")+" "+(o||"")).trim().split(/\s+/))].join(" "));i.$rootElem.setAttribute(t.Ge,r)}else if(e&&e.hasOwnProperty(t.Ke))e[t.Ke]!==i.$e[t.Ke]&&(e[t.Ke]=i.$e[t.Ke]);else if("bool"==t.Qe)s.st.Ut(i.$e[t.Ke])?i.$rootElem.setAttribute(t.Ge,i.Ye(i.$e[t.Ke])):i.$rootElem.removeAttribute(t.Ge);else{let e=i.Ye(i.$e[t.Ke]);i.$rootElem.setAttribute(t.Ge,e)}var n,o}e.ti(((t,e)=>{this.$e[s.st.zt(e)]=t.ei}));let r=i.$rootElem.$scope;function l(t){i.$watch((()=>i.$e[t.Ke]),(()=>{r&&i.$e[t.Ke]===r[t.Ke]||(o(t),i.$rootElem.dispatchEvent(new CustomEvent("change",{detail:{prop:t.Ke,attr:t.Ge,value:i.$e[t.Ke]}})))})),r&&r.hasOwnProperty([t.Ke])&&i.$watch((()=>r[t.Ke]),(()=>{i.$e[t.Ke]!==r[t.Ke]&&(i.$e[t.Ke]=r[t.Ke])}))}let c=e.props(),u=Object.keys(c);Reflect.ownKeys(r||{}).forEach((t=>{if("string"!=typeof t)return;if(t.startsWith("$"))return;if("eid"==t||"tid"==t||"wcid"==t)return;let e=s.st.Bt(t),n=r[t];"boolean"==typeof n?n?i.$rootElem.setAttribute(e,""):i.$rootElem.removeAttribute(e):i.$rootElem.setAttribute(e,n)})),u.forEach((t=>{let i=c[t];if(!i.Xe.match(/^[:$@]/)){let s=n(i);null!=s&&null!=s&&"class"!=i.Ge?this.$e[i.Ke]=s:(this.$e[i.Ke]=e.propsGetValue(t,null),o(i)),l(i)}})),u.forEach((e=>{let s=c[e];if(s.Xe.startsWith("@"))!function(e){const n=`root|${e}`,s=i.$tpl.ii(n);if("@create"==e)i.Pe=()=>{try{i.ge=s,null==s||s.call(i,i.$e,t,{})}catch(t){p.error("on props @create fail:",t.message,i.$rootElem)}};else if("@ready"==e)i.Te=()=>{try{i.ge=s,null==s||s.call(i,i.$e,i.$rootElem,{})}catch(t){p.error("on props @ready fail:",t.message,i.$rootElem)}};else if("@destroy"==e)i.xe=()=>{try{i.ge=s,null==s||s.call(i,i.$e,i.$rootElem,{})}catch(t){p.error("on props @destroy fail:",t.message,i.$rootElem)}};else if(e.startsWith("@timer")){const t=e.split(".");let n=()=>{try{i.ge=s,null==s||s.call(i,i.$e,i.$rootElem,{})}catch(t){p.error("on props @timer fail:",t.message,i.$rootElem)}};i.Re.push({timer:t[1]&&parseInt(t[1])||1e3,fn:n}),requestAnimationFrame((()=>{n()}))}else i.ni(i.$rootElem,e)}(s.Xe);else if(s.Xe.startsWith(":")||s.Xe.startsWith("$")){const t=`root|${s.Xe}`;let e=this.$tpl.ii(t),i=n(s);null!=i&&""!==i?this.$e[s.Ke]=i:this.si(t,(()=>{this.ge=e;const t=e.call(this.$e,this.$e,this.$rootElem);this.$e[s.Ke]=t})),l(s)}}))}oi(t){return t?t==this.$rootElem?this.$e:t.$scope?t.$scope:this.oi(t.parentElement):this.$e}ri(t,e,i){const o=this;if(t.$scope)return t.$scope;if(t==this.$rootElem)return t.$scope;const r=e||this.oi(t.parentElement),l={};function c(e,i){if("string"!=typeof e)return;if(!e.match(/^[a-z]/))return;if(!l.hasOwnProperty(e))return;const n=s.st.Bt(e);if("class"==n&&t.rootScope)!function(e){var i;let n=(e+" "+((null===(i=t.rootScope)||void 0===i?void 0:i.class)||"")).trim().split(/\s+/),s=[...new Set(n)].join(" ");t.setAttribute("class",s)}(i);else if(s.st.Ut(i)?t.setAttribute(n,o.Ye(i)):t.removeAttribute(n),Reflect.has(t,n))"style"!=n?Reflect.set(t,n,i):t.setAttribute("style",i);else{let n=t.rootScope;n&&n.hasOwnProperty(e)&&(n[e]=i)}}return i&&Object.assign(l,i),Object.assign(l,{$el:t,$parent:r}),Object.setPrototypeOf(l,r),t.$scope=n.o.watch(l,((t,e)=>{c(t,e)})),t.$scope}li(t,e){const i=t.getAttribute("tid"),s=t.getAttribute("eid"),o=this.$tpl.ui.ci(parseInt(i));if(!o)return;let r="",l=this;function c(e,i){for(let n=0;n<e.styleSheets.length;n++){const s=e.styleSheets.item(n);if(s.ownerNode===t)for(let t=0;t<s.cssRules.length;t++){const e=s.cssRules.item(t);if(e instanceof CSSStyleRule&&e.selectorText.replace(/ /g,"")===i.replace(/ /g,""))return e}}}function u(e,i){const o=[],r=`${s}|${i}|${e.styleName}`;e.binderFuncs.forEach((e=>{l.ge=e,o.push(n.o.trackCall(l.$wcId,r,e.bind(t.$scope,t.$scope,t)))}));let c=0;return e.text.replace(/(("[$:].+?")|('[$:].+?'))/g,(()=>o[c++]))}Object.keys(o).forEach((t=>{let i=o[t].rules;if(!i)return void(r+=o[t].text+"\n");let l,a="";for(let o of Object.keys(i)){const r=i[o],h=`${s}|${t}|${o}`,d=u(r,t);a+=`${r.styleName}:${d};`,e&&this.je.set(h,(()=>{n.o.trackCall(this.$wcId,h,(()=>{var e;const i=u(r,t);l&&(null===(e=l.parentStyleSheet)||void 0===e?void 0:e.ownerNode)||(l=c(this.be,t)),null==l||l.style.setProperty(r.styleName,i)}))}))}r+=`${t}{${a}}\n`})),t.textContent=r}si(t,e){this.je.set(t,(()=>{n.o.trackCall(this.$wcId,t,e)})),n.o.trackCall(this.$wcId,t,e)}ai(t,e,i){let s=()=>{let s=n.o.trackCall(this.$wcId,t,e);i(s)};this.je.set(t,s),s()}hi(t,e){return`${t.getAttribute("eid")}|${e}`}di(t,e){"function"!=typeof t?t instanceof Promise?t.then((t=>{this.di(t,e)})):e(t):this.di(t(),e)}fi(t){return"function"==typeof t?this.fi(t()):t instanceof Promise?t.then((t=>this.fi(t))):t}ze(t){t!==this.be&&this.vi(t),t.querySelectorAll("svg[src]").forEach((t=>this.pi(t))),t.querySelectorAll("[tid]").forEach((t=>{this.vi(t)})),t.querySelectorAll("[slot]").forEach((t=>{t.hasAttribute("eid")||this.vi(t)})),t.querySelectorAll("slot").forEach((t=>{t.hasAttribute("eid")||this.vi(t)}))}ne(t){this.je.delete(t)}Ze(t,e){const i=t=>{var e;v.Je.mi(t),null===(e=t.$bindKeys)||void 0===e||e.forEach((t=>{this.je.delete(t)})),t.$bindKeys=void 0};e&&t.querySelectorAll("[eid]").forEach((t=>{i(t)})),i(t)}ni(t,e){const i=this.$tpl,n=`${t==this.$rootElem?"root":t.getAttribute("tid")}|${e}`,s=i.ii(n);if(!s)throw new Error(`_createTrackBinder: not found tpl :${n}`);const o=e.split("."),r={};for(let t=1;t<o.length;t++){const e=parseInt(o[t]);isNaN(e)?r[o[t]]=!0:r.throttle=e}let l=o[0].substring(1);const c=this;if(l.startsWith("!")&&(l=l.slice(1),v.Je.yi(t,l)),r.throttle){"number"==typeof r.throttle&&r.throttle}const u={passive:1!=r.prevent&&!!r.passive,once:!!r.once,capture:!!r.capture};t.addEventListener(l,(function(e){r.prevent&&e.preventDefault(),r.stop&&e.stopPropagation(),r.self&&e.target!=t||(c.ge=s,s.call(t.$scope,t==c.$rootElem?c.$e:t.$scope,t,e))}),u)}wi(t){switch(typeof t){case"string":return t;case"undefined":case"symbol":case"function":return"";case"bigint":case"number":case"boolean":return t.toString()}return null===t?"":JSON.stringify(t,null,2)}Ye(t){if(t instanceof Array)return"Array";if(t instanceof Map)return"Map";if(t instanceof Set)return"Set";switch(typeof t){case"string":return t;case"undefined":return"";case"bigint":case"number":case"boolean":return t.toString()}return""}bi(t,e){try{let i=0;for(let n=0;n<t.childNodes.length;n++){let s=t.childNodes[n];if(s.nodeType!==Node.TEXT_NODE)continue;let o=e[i];o instanceof Promise?o.then((t=>s.replaceWith(document.createTextNode(this.wi(t))))):s.replaceWith(document.createTextNode(this.wi(o))),i++}}catch(e){p.warn("apply text failed",t,",",e.message)}}_i(t,e,i){const n=i=>{var n,o;try{let r=e.split("."),l=s.st.zt(r[0]),c=r.slice(1);switch(t.$scope[l]!==i&&(t.$scope[l]=i),null===(o=(n=d.t.Be()).wcApply)||void 0===o||o.call(n,t.$scope,l,c,i),this.pi(t),l){case"if":this.$i(t);break;case"show":this.gi(t);break;case"vis":this.ji(t);break;case"sort":case"filter":case"for":this.Oi(t);break;case"as":requestAnimationFrame((()=>{this.Si(t)}))}}catch(i){p.warn(`${t.tagName} attr:${e} invalid! `,i.message,t)}};i instanceof Promise?i.then((t=>n(t))):n(i)}Ei(t,e){const i=this.$tpl,n=t.getAttribute("tid"),s=i.ii(`${n}|${e}`);if(!s)throw new Error(`_createTrackBinder: not found tpl <${t.tagName}>:${n},attr=${e}`);const o=e.substring(1),r=this.hi(t,e);void 0===t.$bindKeys&&(t.$bindKeys=[]),t.$bindKeys.push(r),s instanceof Array?this.ai(r,(()=>{let e=s.map((e=>(this.ge=e,e.call(t.$scope,t.$scope,t))));return e.forEach((t=>{t instanceof Array&&t.length})),e}),(e=>this.bi(t,e))):this.ai(r,(()=>{this.ge=s;let e=s.call(t.$scope,t.$scope,t);return e instanceof Array&&e.length,e}),(e=>{this._i(t,o,e)}))}Mi(t,e){let i=t.getAttribute("ani-"+e);return i||(t.hasAttribute("ani")?(t.getAttribute("ani")||"ani")+"-"+e:void 0)}ki(t){this.xe&&this.xe();let e=this.He("onClose",[this]);e instanceof Promise?e.then((e=>{t.remove()})):t.remove()}Oi(t){if(!(t instanceof HTMLTemplateElement&&t.$scope&&t.$scope.hasOwnProperty("for")))return;t.__applyFor||(t.__applyFor=s.st.qt((t=>{const e=t.getAttribute("eid");const i=t.getAttribute("for-value"),n=t.getAttribute("for-index");let o=function(){var i,n;let s=[];return null===(n=null===(i=t.parentNode)||void 0===i?void 0:i.querySelectorAll(`[for-eid="${e}"]`))||void 0===n||n.forEach((t=>s.push(t))),s}(),r=new Map;o.forEach((t=>{r.set(t.$scope[n],t)}));let l=t.$scope.for instanceof Array?[...t.$scope.for]:t.$scope.for;if(l instanceof Array&&t.$scope.hasOwnProperty("sort")&&t.$scope.sort){let e=t.$scope.sort;"object"==typeof e?l.sort(((t,i)=>{let n=0;for(let o of Object.keys(e)){let r=e[o]>0;(0,s.objectGet)(t,o)<(0,s.objectGet)(i,o)?n=r?-1:1:(0,s.objectGet)(t,o)>(0,s.objectGet)(i,o)&&(n=r?1:-1)}return n})):s.st.Ut(e)||l.reverse()}let c=[],u=new Set;function a(t){let e=t.nextSibling;if(e&&e instanceof HTMLElement){if(t.getAttribute("eid")==e.getAttribute("if-eid"))return e}}!function(t,e){if("number"==typeof t)for(let i=0;i<t;i++)e(i,i,t);else t instanceof Array||t instanceof Set||t instanceof Map?t.forEach(e):"object"==typeof t&&Object.keys(t).forEach((i=>{e(t[i],i,t)}))}(l,((e,s,o)=>{var l;let a=r.get(s);if(a)a.$scope&&(a.$scope[n]=s,a.$scope[i]=e),u.add(a),c.push(a);else{let o=null===(l=t.content.firstElementChild)||void 0===l?void 0:l.cloneNode(!0);o.setAttribute("for-eid",t.getAttribute("eid"));let r={};r[n]=s,r[i]=e,o.__initScope={parentScope:t.$scope,scope:r},this.ze(o),c.push(o),u.add(o)}})),o=o.filter((t=>{if(!u.has(t)){let e=a(t);return e&&e.remove(),t.remove(),!1}return!0})),c.forEach(((e,i)=>{let n=o[i-1]||t;if(e!=o[i]){let t=a(n);t?t.after(e):n.after(e),o.splice(i,0,e)}}))}).bind(this))),t.__applyFor(t)}$i(t){if(!(t instanceof HTMLTemplateElement&&t.$scope&&t.$scope.hasOwnProperty("if")))return;(t=>{var e;if(s.st.Ut(t.$scope.if)){let i=t.nextElementSibling;if(!i||i.getAttribute("if-eid")!=t.getAttribute("eid")){const i=null===(e=t.content.firstElementChild)||void 0===e?void 0:e.cloneNode(!0);i.setAttribute("if-eid",t.getAttribute("eid")),t.after(i),i.__initScope={parentScope:t.$scope,scope:{}},this.ze(i)}}else{let e=t.nextElementSibling;e&&e.getAttribute("if-eid")==t.getAttribute("eid")&&(e instanceof HTMLTemplateElement||this.ki(e))}})(t)}Si(t){var e;return o(this,void 0,void 0,(function*(){let i=null===(e=t.getAttribute("as"))||void 0===e?void 0:e.toLowerCase(),n=t.tagName.toLowerCase();if(t instanceof HTMLTemplateElement)return;let s=t.getAttribute("tid");if(i&&n!=i&&s){yield b(t,i)}}))}Ci(t){t.style&&t.style.display&&"none"!=t.style.display.toLowerCase()&&(t.$orgDisplay=t.style.display)}gi(t,e){if(!t.$scope||!t.$scope.hasOwnProperty("show"))return;function i(){s.st.Ut(t.$scope.show)?t.$orgDisplay?t.style.display=t.$orgDisplay:t.style.removeProperty("display"):t.style.display="none"}s.st.Ut(t.$scope.show)&&i(),i()}ji(t){if(!t.$scope||!t.$scope.hasOwnProperty("vis"))return;const e=s.st.Ut(t.$scope.vis);t.style.visibility=e?"visible":"hidden"}xi(t){}vi(t){var e,i;t.setAttribute("eid",(this.Ee++).toString());let n=[],o=[],r=[];for(let e=0;e<t.attributes.length;e++){let i=t.attributes.item(e);i.name.startsWith("@")?o.push(i):i.name.startsWith(":")||i.name.startsWith("$")?r.push(i):n.push(i)}let l=(null===(e=t.__initScope)||void 0===e?void 0:e.scope)||{};for(let e of n){let i=e.name.split("."),n=i[0];"lazy"==i[1]?(l[s.st.zt(n)]="",setTimeout((()=>{t.$scope[s.st.zt(n)]=e.value}),50),t.removeAttributeNode(e)):l[s.st.zt(n)]=e.value}for(let e of r){let i=e.name.slice(1).split(".")[0];i.length>0&&(l[s.st.zt(i)]="",t.removeAttribute(e.name))}let c=this.ri(t,null===(i=t.__initScope)||void 0===i?void 0:i.parentScope,l);function u(t){return t?t.$scope?t.$scope:u(t.parentElement):{}}if(t instanceof HTMLSlotElement?t.addEventListener("slotchange",(()=>{t.assignedElements().forEach((e=>{let i=null==e?void 0:e.$scope;i&&(i.$slot=u(t)||{})}))})):t.hasAttribute("slot")&&(c.$slot=u(t.assignedSlot)||{}),"style"!==t.tagName.toLowerCase()){for(let e of r)this.Ei(t,e.name);for(let e of o)this.ni(t,e.name),t.removeAttribute(e.name);this.Ci(t)}else this.li(t,!0)}pi(t){var e;return o(this,void 0,void 0,(function*(){if(!(t instanceof SVGElement))return;let i=(null===(e=t.$scope)||void 0===e?void 0:e.src)||t.getAttribute("src");if(!i)return;let n=this.$path(i);if(n==t.__loaded)return;t.__loaded=n;let s=yield a.O.getFile(n).getResult();if(s){let e=null==s?void 0:s.querySelector("svg");if(e){for(;t.firstChild;)t.removeChild(t.firstChild);e.childNodes.forEach((e=>t.append(e.cloneNode(!0)))),t.setAttribute("viewBox",e.getAttribute("viewBox"))}else p.warn("load svg failed",t),a.O.removeFileMatched(n)}}))}}function b(t,e){var i,n,r;return o(this,void 0,void 0,(function*(){let o=s.st.Ht(t),l=null===(r=null===(n=null===(i=null==o?void 0:o.$wc)||void 0===i?void 0:i.$tpl)||void 0===n?void 0:n.info)||void 0===r?void 0:r.from,c=m(e,void 0,l);function u(t,e){let i={};t.$scope&&Reflect.ownKeys(t.$scope).forEach((t=>{"string"==typeof t&&(i[t]=!0)}));for(let n=0;n<t.attributes.length;n++)i[s.st.zt(t.attributes[n].name)]||e.attributes.setNamedItem(t.attributes[n].cloneNode())}function a(t,e){let i=[];for(let e=0;e<t.childNodes.length;e++){let n=t.childNodes.item(e);n.$scope&&(n.$scope.$el=n),i.push(n)}e.append(...i)}c&&(yield c.we());const h=document.createElement(e);let d=t.$scope;if(d){let e=d.$tpl,i=t.getAttribute("tid"),n=e.Ti(i),s=d.$wc;u(n,h),u(t,h),a(t,h),h.__initScope={parentScope:d.$parent,scope:d};for(let e=0;e<h.children.length;e++){let i=h.children.item(e);i.$scope&&i.$scope.$parent==t.$scope&&(i.$scope.$parent=h.$scope)}s.Ze(t,!1),delete t.$scope,s.vi(h),t.replaceWith(h)}else p.debug("replaceWithNewTag 2",t,e,d),u(t,h),a(t,h),t.replaceWith(h);return h}))}i.Wc=w,i.fe=b}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n,s;t=i.nmd(t),n=[i,e,i(7),i(3),i(9)],s=function(e,i,n,s,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.router=i.Router=void 0;const r=(0,s.WcLog)(t);class l{constructor(){this.Pi=[],this.Ri={},this.route=o.o.watch({}),window.addEventListener("hashchange",(()=>{this.route=this.parse(location.hash);const t=new CustomEvent("route-change",{detail:this.route});window.dispatchEvent(t)}),!1),this.route=this.parse(location.hash)}Ai(t){let e=t.split(":"),i=(e.length>1?e[0]:"")||"default",n=(e.length>1?e[1]:t).split("?"),s=n[0].toLowerCase(),o=n[1],r={};if(o){let t=o.split("&");for(let e of t)if(e){let t=e.split("=");r[t[0].toLowerCase()]=t[1]||""}}return{name:i,tag:s,attrs:r}}parse(t){const e=decodeURIComponent(t.startsWith("#")?t.slice(1):t),i={};return e.split(";").forEach((t=>{let e=this.Ai(t);e&&(i[e.name]=e)})),i}back(){history.back()}Di(t){let e="";n.st.Lt(t,((t,e)=>{e?this.route[e]=t:this.route.default=t}));let i=!0;return n.st.Lt(this.route,((t,s)=>{i?i=!1:e+=";","default"==s&&(s=""),s&&(e+=`${s}:`),e+=t.tag;let o=!0;t.attrs&&n.st.Lt(t.attrs,((t,i)=>{e+=(o?"?":"&")+`${i}=${t}`,o=!1}))})),encodeURIComponent(e)}go(t,e,i){let n={};if(null==e&&null==i)if("string"==typeof t){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/"))return window.location.href=t;n=this.parse(t)}else"object"==typeof t?n=t:r.error("go() param error",t,e,i);else null==i?"string"==typeof e?n[t]={tag:e,attrs:{}}:"object"==typeof e?n.default={tag:t,attrs:e}:r.error("go() param error",t,e,i):n[t]={tag:e,attrs:i};return location.hash=this.Di(n)}}i.Router=l,i.router=new l}.apply(e,n),void 0===s||(t.exports=s)},function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(14),i(7),i(9),i(11),i(8),i(15),i(1),i(16),i(3),i(17)],s=function(e,i,n,s,r,l,c,u,a,h,d,f){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ye=i.Fi=i.SymbolScopeNoCall=void 0;const v=(0,d.WcLog)(t);i.SymbolScopeNoCall=Symbol("ScopeNoCall");class p{constructor(){this.Li={},this.Ii={}}init(t){if(this.Bi=t,this.Li=this.Ni(t),this.Hi=t.content.querySelector("meta[name=scope]"),!this.Hi){this.Hi=document.createElement("meta"),this.Hi.setAttribute("name","scope");const e=t.content.firstElementChild;e?t.content.insertBefore(this.Hi,e):t.content.appendChild(this.Hi)}return this.Ii=this.Ni(this.Hi),this}props(){return this.Li}Ni(t){const e={};for(let i=0;i<t.attributes.length;i++){const n=t.attributes[i];if(!(t instanceof HTMLMetaElement&&"name"==n.name))if(n.name.startsWith("@"))e[n.name]={Qe:"@",ei:n.value,Ui:n.value,Ke:"",Xe:n.name,Ge:n.name};else{const t=n.name.split("."),i=t[0].replace(/^[$:@]/,""),o=t[1]||"string",r=n.value;e[i]={Qe:o,ei:this.zi(o,r),Xe:n.name,Ui:r,Ke:s.st.zt(i),Ge:i}}}return e}ti(t){Object.keys(this.Ii).forEach((e=>{t(this.Ii[e],e)}))}propsExist(t){return this.Li.hasOwnProperty(t)}propType(t){var e;return null===(e=this.Li[t])||void 0===e?void 0:e.Qe}zi(t,e){var i;try{switch(t){case"bool":return!("no"==e||"false"==e||parseInt(e)<=0);case"int":return parseInt(e);case"float":case"number":return parseFloat(e);case"object":case"obj":return e.startsWith("{")&&e.endsWith("}")?new Function(`return ${e}`).call(void 0):void 0;case"array":return e.startsWith("[")&&e.endsWith("]")?new Function(`return ${e}`).call(void 0):void 0;default:return e}}catch(n){return void v.warn("parse value failed:",`type=${t}, `,`value=${e}[${typeof e}], `,"<"+(null===(i=this.Bi)||void 0===i?void 0:i.getAttribute("_tpl"))+">",this.Hi)}}propsGetValue(t,e){var i;if(this.propsExist(t))return"string"==typeof e?this.zi(this.Li[t].Qe,e):null==e||null==e?this.Li[t].ei:e;v.warn(`${null===(i=this.Bi)||void 0===i?void 0:i.tagName} undefined prop "${t}", valid props:`,Object.keys(this.Li))}getData(t){return this.Li[t]||this.Ii[t]}setData(t,e){const i=this.Li.hasOwnProperty(t)?this.Li:this.Ii;i[t]&&(i[t].Ui=e,i[t].ei=this.zi(i[t].Qe,e))}}i.Fi=p;i.ye=class{constructor(t,e){this.comment="",this.Wi={},this.qi=1,this.Ji=1,this.ui=new n.Vi,this.Ki=new Map,this.Xi=new Map,this.Gi=new p,v.debug(`load component <${t}>, from: ${e},${typeof e}`),this.tag=t.toLowerCase(),this.info=(0,u.v)(t,e),this.Zi=this.F()}Ve(){return this.Gi}we(){return this.Zi}Qi(t){let e=document.getElementById("wc-templates");if(e){const i=t.getAttribute("tpl"),n=e.content.querySelector(`[tpl="${i}"]`);n?(v.info("replace tpl:",i),n.replaceWith(t)):e.content.appendChild(t)}}F(){var t,e,i,n;return o(this,void 0,void 0,(function*(){try{const r=this.info.url;v.warn("load tpl:",r);const c=yield a.O.getModule(this.info.pkg).$(r).getResult();if(!c)throw Error("load html template failed");if(c.firstChild instanceof Comment&&(this.comment=c.firstChild.textContent||""),!(c.firstElementChild instanceof HTMLTemplateElement))throw Error("template invalid");const d=c.firstElementChild.cloneNode(!0);yield this.Yi(d),yield s.st.Ft(d.content,(t=>o(this,void 0,void 0,(function*(){if(t.tagName.indexOf("-")>=0&&this.info.from&&t.tagName.indexOf(".")<0&&!customElements.get(this.tag)){let e=(0,u.tn)(this.info.from),i=t.tagName.toLowerCase();e.indexOf("-")&&i.endsWith("-")&&(i=i.slice(0,i.length-1)),yield(0,l.fe)(t,e+"."+i)}}))),!0,!1),yield null===(e=(t=h.t.Be()).tplPre)||void 0===e?void 0:e.call(t,d.content),yield this.en(d),yield s.PromiseExt.Dt(this.nn(d),15e3),this.tplRoot=d,d.setAttribute("_tpl",this.tag);let f=this.Gi.init(d).props();Object.keys(f).forEach((t=>{let e=f[t],i=e.Xe;if(i.startsWith("@")||i.startsWith("$")||i.startsWith(":")){const t=`root|${i}`;this.Ki.set(t,this.sn(i,e.ei))}})),yield this.on(d),this.rn(d),yield(0,l.i)(d,this.info.from,!0),yield null===(n=(i=h.t.Be()).tplPost)||void 0===n?void 0:n.call(i,d.content),this.Qi(d)}catch(t){v.error(`load <${this.tag}> failed:`,t.message),window.dispatchEvent(new CustomEvent("wc-error",{detail:{tag:this.tag,err:t.message}}))}}))}We(t,e){if(t.startsWith("@/")&&(t=t.slice(2)),"."==t&&(t=c.m.rootUrl(s.st.zt(this.info.component)+e||"")),t.startsWith("./")||t.startsWith("../")){if(this.info.from)return{url:s.st.wt(this.info.url,"..",t)};{let e=c.m.rootUrl(s.st.zt(this.info.component));return{url:s.st.wt(e,"..",t)}}}if(t.startsWith("/")||t.startsWith("http://")||t.startsWith("https://"))return{url:t};{let e=t.split("/"),i=e[0].startsWith("@")?{name:e.slice(0,2).join("/"),path:e.slice(2).join("/")}:{name:e[0],path:e.slice(1).join("/")},n=c.m.modules[i.name];return{url:(null==n?void 0:n.baseUrl)?s.st.wt(n.baseUrl,i.path):s.st.wt(c.m.npmUrl,(null==n?void 0:n.version)?`${i.name}@${n.version}`:i.name,i.path),pkg:i.name,relPath:i.path}}}ln(){const t=document.getElementById("wc-styles");if(!t){const t=document.createElement("template");return t.id="wc-styles",document.body.appendChild(t),t}return t}Yi(t){return o(this,void 0,void 0,(function*(){let e=t.content.querySelectorAll("meta[name=module]");for(let t=0;t<e.length;t++){let i=e[t],n=c.m.Kt(i);n&&n.preload&&(yield a.O.getModule(n.name).getResult())}}))}en(t){return o(this,void 0,void 0,(function*(){let e=t.content.querySelectorAll("link[rel=stylesheet]");for(let t=0;t<e.length;t++){let i=e.item(t),n=i.getAttribute("href")||".",s=this.We(n,".css").url;try{let t,e=i.getAttribute("global");if("link"==e)t=i.cloneNode(!0),t.setAttribute("href",s);else{t=(yield a.O.getModule(this.info.pkg).$(s).getResult()).cloneNode(!0)}if(t.id=s,null!=e&&t.setAttribute("global",e),null!=e){let e=document.getElementById(t.id);e&&e.remove(),i.remove(),document.head.appendChild(t)}else i.replaceWith(t)}catch(t){v.error("load css failed:",this.tag,s);continue}}let i=t.content.querySelectorAll("style[global]");for(let t=0;t<i.length;t++){let e=`${this.tag}-style-${t}`,n=document.getElementById(e);n&&n.remove(),i[t].setAttribute("id",e),document.head.appendChild(i[t])}this.cn(t)}))}cn(t){let e=t instanceof HTMLTemplateElement?t.content:t.shadowRoot;if(null==e?void 0:e.querySelector('meta[name="no-import-global-css"]'))return;let i=document.head.querySelectorAll("style[global=import]");if(e)for(let t=0;t<i.length;t++)if(i[t].id||(i[t].id=`import-document-style-${t}`),!e.getElementById(i[t].id)){let n=i[t].cloneNode(!0);e.insertBefore(n,e.firstElementChild)}}un(t){return o(this,void 0,void 0,(function*(){let e={},n=t.getAttribute("scope");if(t.remove(),!n)return t.id=`${this.info.url}-script-${this.Ji++}`,yield a.O.getModule(this.info.pkg).Mt(t).getResult();let s=t.getAttribute("src");if(s){s.endsWith(".ts")&&(s=s.replace(/\.ts$/,".js")),"."==s&&(s=this.info.url.replace(/^(.+)(\..+?)$/,"$1.js"));let i=this.We(s,".js");if(i.pkg)e=i.relPath?yield a.O.getModule(i.pkg).$(i.relPath).getResult():yield a.O.getModule(i.pkg).getResult();else{let n=a.O.getModule(this.info.pkg).$(i.url);"module"==t.type&&n.updateModuleJs(!0),e=yield n.getResult()}}else t.id=`${this.info.url}@${this.qi++}.js`,e=yield a.O.getModule(this.info.pkg).Mt(t).getResult();let o=(null==e?void 0:e.default)||e||{};t.hasAttribute("nowatch")&&r.o.u(o),t.hasAttribute("nocall")&&(o[i.SymbolScopeNoCall]||Object.defineProperty(o,i.SymbolScopeNoCall,{value:{}})),this.Wi[n]=o}))}Ie(){var t;return(null===(t=this.tplRoot)||void 0===t?void 0:t.content.cloneNode(!0))||new DocumentFragment}Ti(t){return"string"==typeof t&&(t=parseInt(t)),this.Xi.get(t)}nn(t){return o(this,void 0,void 0,(function*(){const e=t.content.querySelectorAll("script"),i=[];for(let t=0;t<e.length;t++){let n=e[t].getAttribute("src");try{i.push(this.un(e[t]))}catch(t){v.warn("load script failed:",n,t.message)}}yield Promise.all(i),e.forEach((t=>t.remove()))}))}Le(t){let e=this.Wi["."]||{};s.st.Wt(e)&&(e=new e),e=r.o.watch(e);for(let t of Object.keys(e)){let i=e[t];"function"==typeof i&&"function"==typeof i.bind&&(e[t]=i.bind(e))}for(const t of Object.keys(this.Wi)){if("."==t)continue;const n=this.Wi[t];if("function"==typeof n)if(Object.getOwnPropertyDescriptor(n,i.SymbolScopeNoCall))e[t]=r.o.u(n);else if(s.st.Wt(n))try{e[t]=r.o.watch(new n)}catch(i){v.warn("export scope not support new()",t,n),e[t]=r.o.watch(n())}else e[t]=n();else e[t]=r.o.watch(n)}return e}ii(t){return this.Ki.get(t)}rn(t){if(t instanceof Element)switch(t.tagName.toLowerCase()){case"script":break;case"style":const e=this.qi++;t.setAttribute("tid",e.toString()),this.Xi.set(e,t),this.ui.an(t);break;default:this.hn(t)}const e=t instanceof HTMLTemplateElement?t.content.children:t.children;if(e)for(let t=0;t<e.length;t++)this.rn(e[t])}sn(t,e){let i="string"==typeof e?e.trim():e;try{switch(t[0]){case":":return new Function("$scope","$el",`with($scope){return \`${i}\`;}`);case"$":return new Function("$scope","$el",`with($scope){return ${i}}`);case"@":return new Function("$scope","$el","$ev",`with($scope){${i};}`)}}catch(i){return console.error(`fail make scope ${t},in <${this.tag}>,value="${e}"`,i.message),()=>""}throw Error("make Attr scope failed: "+t)}dn(t){switch(t[0]){case":":case"$":case"@":return!0}return!1}hn(t){const e=this.qi;let i=!1;for(const n of(0,s.elementAttrs)(t)){if(!this.dn(n.name))continue;i=!0;const s=`${e}|${n.name}`;if(":"!=n.name&&"$"!=n.name)try{this.Ki.set(s,this.sn(n.name,n.value))}catch(e){v.error("element bind failed:",t,n.name,e)}else{const e=[];(t instanceof HTMLTemplateElement?t.content.childNodes:t.childNodes).forEach((i=>{if(i.nodeType===Node.TEXT_NODE)try{e.push(this.sn(n.name,i.nodeValue))}catch(e){v.error("element bind failed:",t,n.name,n.value,e)}})),this.Ki.set(s,e)}}t.tagName.match(/-/)&&(i=!0),i&&(this.qi++,t.setAttribute("tid",e.toString()),this.Xi.set(e,t))}vn(t,e,i){let n=s.st.zt(e),o=`var o=$el.rootScope||$el;${i}=o.${n}`;t.hasAttribute(n)&&(this.Gi.setData(i,t.getAttribute(n)),t.removeAttribute(n));const r=document.createElement("template");r.innerHTML=`<div $${n}="${i}" @input.stop.${n}="${o}" @change.stop.${n}="${o}"></div>`,t.setAttributeNode(r.content.firstElementChild.attributes.item(0).cloneNode(!1)),t.setAttributeNode(r.content.firstElementChild.attributes.item(1).cloneNode(!1)),t.setAttributeNode(r.content.firstElementChild.attributes.item(2).cloneNode(!1))}pn(t,e,i,n){let s={};s.$checked=`${e} === ${i}`;for(let t of n)s[`@${t}.${e}`]=`${e}=${i}`;for(let e of this.mn(s))t.setAttributeNode(e);t.setAttribute("name",e)}yn(t,e,i,n){t.setAttribute("name",e);let s={};s.$checked=`(${e} instanceof Array)?${e}.indexOf(${i})>=0:false`;for(let t of n)s[`@${t}.${e}`]=`if(!(${e} instanceof Array)) ${e}=[]; var i = ${e}.indexOf(${i});i>=0?${e}.splice(i,1):${e}.push(${i})`;for(let e of this.mn(s))t.setAttributeNode(e)}wn(t,e,i,n){let s=`${i}=value`;t.hasAttribute(e)&&(this.Gi.setData(i,t.getAttribute("value")),t.removeAttribute(e));const o=document.createElement("template");o.innerHTML=`<div $${e}="${i}===value" @${n}="${s}" ></div>`,t.setAttributeNode(o.content.firstElementChild.attributes.item(0).cloneNode(!1)),t.setAttributeNode(o.content.firstElementChild.attributes.item(1).cloneNode(!1))}bn(t,e,i,n){let o=s.st.zt(e),r=`var o=$el.rootScope||$el;var v=value;var s=${i};var i=s.indexOf(v);var c=(o.${o}!=undefined)?o.${o}:${o};if(c && i<0) s.push(v);if(!c && i>=0) s=s.splice(i,1);`;if(t.hasAttribute(o)){const e=this.Gi.getData(i);if((null==e?void 0:e.ei)instanceof Array){const i=t.getAttribute("value");i&&e.ei.indexOf(i)<0&&e.ei.push(i)}t.removeAttribute(o)}const l=document.createElement("template");l.innerHTML=`<div $${o}="${i}.indexOf(value)>=0" @${n}="${r}" ></div>`,t.setAttributeNode(l.content.firstElementChild.attributes.item(0).cloneNode(!1)),t.setAttributeNode(l.content.firstElementChild.attributes.item(1).cloneNode(!1))}_n(t,e){let i=document.createElement("template"),n=Object.keys(e).map((t=>`${t}="${e[t]}"`)).join(" ");return i.innerHTML=`<${t} ${n}></${t}>`,i.content.firstChild}mn(t){let e=document.createElement("template"),i=Object.keys(t).map((e=>`${e}="${t[e]}"`)).join(" ");e.innerHTML=`<div ${i}></div}>`;let n=[],s=e.content.firstChild;for(let t=0;t<s.attributes.length;t++){let e=s.attributes.item(t);n.push(e.cloneNode())}return n}on(t){var e,i;return o(this,void 0,void 0,(function*(){if(!(t instanceof Element))return;yield null===(i=null===(e=h.t.Be())||void 0===e?void 0:e.tplParse)||void 0===i?void 0:i.call(e,new f.TplElem(t));let n,o=(0,s.elementAttrs)(t),r=[];function l(t,e,i){e.forEach((e=>{let n=t.attributes.getNamedItem(e);n&&(r.push(n.cloneNode()),i&&t.attributes.removeNamedItem(e))}))}for(let e of o)if(e.name.startsWith("$$"))this.vn(t,e.name.slice(2)||"value",e.value),t.attributes.removeNamedItem(e.name);else if(e.name.startsWith("$:")){const i=e.name.startsWith("$::");let n=(i?e.name.slice(3):e.name.slice(2)).split("."),s=n[0]||"value",o=n.slice(1),r=e.value;if(!r)return void v.error('using "$:" invalid, must need $:="value", in ',this.tag,t);0==o.length&&o.push("change"),i?this.yn(t,r,s,o):this.pn(t,r,s,o),t.attributes.removeNamedItem(e.name)}else if("$if"==e.name)n=e.cloneNode(),t.attributes.removeNamedItem(n.name);else{let i=e.name.match(/\$for(\((\w+)?,?(\w+)?\)$|$)/);if(i&&4==i.length){let n=(i[3]||"index").trim(),s=(i[2]||"value").trim(),o={$for:e.value,"for-index":n,"for-value":s};l(this._n("template",o),["$for","for-index","for-value","$for-items"],!1),l(t,["sort","$sort"],!0),t.attributes.removeNamedItem(e.name)}}if(r.length>0){let e=document.createElement("template");if(r.forEach((t=>e.attributes.setNamedItem(t))),t.replaceWith(e),e.content.appendChild(t),n){let e=document.createElement("template");e.attributes.setNamedItem(n),t.replaceWith(e),e.content.appendChild(t)}}else if(n){let e=document.createElement("template");e.attributes.setNamedItem(n),t.replaceWith(e),e.content.appendChild(t)}const c=t instanceof HTMLTemplateElement?t.content.children:t.children;if(c)for(let t=0;t<c.length;t++)yield this.on(c[t])}))}}}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n,s;t=i.nmd(t),n=[i,e,i(7),i(3)],s=function(e,i,n,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Vi=void 0;const o=(0,s.WcLog)(t);i.Vi=class{constructor(){this.$n=new Map}ci(t){return this.$n.get(t)}gn(t){let e=0,i=0;const n=[];for(let s=0;s<t.length;s++)"{"===t[s]?i++:"}"===t[s]?(i--,0===i&&(n.push(t.substring(e,s+1).trim()),e=s+1)):";"===t[s]&&0===i&&(n.push(t.substring(e,s+1).trim()),e=s+1);return n}jn(t){const e={};return t.split(";").forEach((i=>{const s=i.indexOf(":"),r=i.substr(0,s).trim(),l=i.substr(s+1).trim(),c=l.match(/(("[$:].+?")|('[$:].+?'))/g),u=[];c&&c.forEach((e=>{const i=e.substr(1,e.length-2);try{i.startsWith("$")?u.push((0,n.mkScopedValue)(i.substr(1))):i.startsWith(":")&&u.push((0,n.mkScopedExpr)(i.substr(1)))}catch(e){o.error("parse style failed:",i,t,e.message)}})),r&&l&&(e[r]={styleName:r,text:l,binderFuncs:u})})),e}On(t){const e={};return t.forEach((t=>{const i=t.replace(/[\n\r]/g,"").trim();if(i.startsWith("@"))e[i]=i;else{const t=i.match(/^(.*?){(.*)}$/);if(3===(null==t?void 0:t.length)){const i=t[1].trim();e[i]=t[2].trim()}}})),e}an(t){const e=parseInt(t.getAttribute("tid")),i={};let n=t.textContent.replace(/\/\*([\s\S]*?)\*\/|\n/g,"");const s=this.gn(n),o=this.On(s);Object.keys(o).forEach((t=>{const e={text:o[t],rules:t.startsWith("@")?void 0:this.jn(o[t])};i[t]=e})),this.$n.set(e,i)}Sn(t,e){for(let e=0;e<t.styleSheets.length;e++){let i=t.styleSheets.item(e);null==i||i.ownerNode}}}}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n,s;t=i.nmd(t),n=[i,e,i(8),i(3),i(7)],s=function(e,i,n,s,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.p=i.v=i.En=i.tn=void 0;(0,s.WcLog)(t);function r(t){return t.replace(/[A-Z][^A-Z]*/g,(t=>"_"+t.toLowerCase())).replace(/^_+/,"")}function l(t){return t.replace(/-+$/,"").replace(/-/g,"/").replace(/_[a-z]/g,(t=>t[1].toUpperCase()))}i.tn=function(t){return t.replace(/-/g,"_").replace("/","-").replace("@","")},i.En=r,i.v=function(t,e){var i,s;let r,c,u,a,h=t.toLowerCase().split(".");if(h.length>1)r=h[0].replace(/-/g,"/").replace(/_/g,"-"),r.indexOf("/")>=0&&(r="@"+r),u=l(h[1]),c=null===(i=n.m.modules[r])||void 0===i?void 0:i.version;else if(u=l(t),e){let t=null==e?void 0:e.match(/^(.*[a-z0-9])@(.+)$/);t&&3==t.length?(r=t[1],c=t[2]):(r=e,c=null===(s=n.m.modules[r])||void 0===s?void 0:s.version)}if(!r)return{from:"",tag:t,component:u,pkg:"",url:n.m.relPath(u,".html",void 0)};let d=n.m.modules[r];return d||(d={name:r,files:[],baseUrl:o.st.wt(n.m.npmUrl,r)},n.m.modules[r]=d),a=o.st.wt(d.baseUrl,u+".html"),{from:c?`${r}@${c}`:r,component:u,tag:t,pkg:r,url:a}},i.p=function(t,e){let i="";t&&(i=t.replace(/-/g,"_").replace("/","-").replace("@",""));let n=r(e),s=(i?i+"."+n:n).replace(/[\\/]/g,"-");return s.indexOf("-")<0?s+"-":s}}.apply(e,n),void 0===s||(t.exports=s)},function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(3),i(9)],s=function(e,i,n,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.t=void 0;const r=(0,n.WcLog)(t);i.t=s.o.u(new class{constructor(){this.Mn=[],this.kn={tplPre:void 0,tplPost:void 0,tplParse:void 0,wcPre:void 0,wcPost:void 0,wcApply:void 0,wcDestroy:void 0,scope:{},Cn(t){for(let e of Object.keys(this.scope)){let i=this.scope[e];t[e]="function"==typeof i?i.bind(t):i}}},this.xn=!1}use(t){this.Mn.push(t),this.xn=!0}Be(){return this.xn&&(this.xn=!1,this.Tn()),this.kn}Tn(){const t={tplPre:[],tplParse:[],tplPost:[],wcPre:[],wcPost:[],wcApply:[],wcDestroy:[]},e={};for(let i of this.Mn.sort(((t,e)=>(t.priority||1)-(e.priority||1))))i.tplPre&&t.tplPre.push({plugin:i,func:i.tplPre}),i.tplPost&&t.tplPost.push({plugin:i,func:i.tplPost}),i.tplParse&&t.tplParse.push({plugin:i,func:i.tplParse}),i.wcPre&&t.wcPre.push({plugin:i,func:i.wcPre}),i.wcPost&&t.wcPost.push({plugin:i,func:i.wcPost}),i.wcApply&&t.wcApply.push({plugin:i,func:i.wcApply}),i.wcDestroy&&t.wcDestroy.push({plugin:i,func:i.wcDestroy}),i.scope&&Object.assign(e,i.scope);function i(t){return(...e)=>o(this,void 0,void 0,(function*(){for(let i of t)yield i.func.apply(i.plugin,e)}))}this.kn.scope=e,this.kn.tplPre=t.tplPre.length>0?i(t.tplPre):void 0,this.kn.tplParse=t.tplParse.length>0?i(t.tplParse):void 0,this.kn.tplPost=t.tplPost.length>0?i(t.tplPost):void 0,this.kn.wcPre=t.wcPre.length>0?i(t.wcPre):void 0,this.kn.wcPost=t.wcPost.length>0?i(t.wcPost):void 0,this.kn.wcApply=t.wcApply.length>0?i(t.wcApply):void 0,this.kn.wcDestroy=t.wcDestroy.length>0?i(t.wcDestroy):void 0,r.debug("using plugins:",this.Mn.map((t=>t.name)))}})}.apply(e,n),void 0===s||(t.exports=s)},function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(3),i(7)],s=function(e,i,n,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.TplElem=void 0;const r=(0,n.WcLog)(t);class l{constructor(t){this.attrs={},this.elem=t;let e={};for(let t=0;t<this.elem.attributes.length;t++){let i=this.elem.attributes[t];e[i.name]=i.value,this.attrs[i.name]=i}}walkChild(t,e=!1){return o(this,void 0,void 0,(function*(){yield s.st.Ft(this.elem,(e=>t(new l(e))),e)}))}setAttr(t,e){let i=this.attrs[t];i?i.value=e:r.warn("invalid set tpl attr:",t,e,this.elem)}remove(t){let e=this.attrs[t];e&&this.elem.removeAttributeNode(e)}addAttrs(t){let e=[];for(let i of Object.keys(t)){let n=t[i];if(l.Pn[i]){let t=l.Pn[i].cloneNode();t.value=n,this.elem.setAttributeNode(t),r.warn("--\x3e addAttrs cached",t.name,t.value)}else e.push(`${i}="${n}"`)}if(e.length>0){let t=document.createElement("template");t.innerHTML=`<div ${e.join(" ")}></div>`;let i=t.content.firstElementChild.attributes;for(let t=0;t<i.length;t++){let e=i.item(t).cloneNode();this.elem.setAttributeNode(e.cloneNode()),e.value="",l.Pn[e.name]=e,r.warn("--\x3e addAttrs create",e.name,e.value)}}}}i.TplElem=l,l.Pn={}}.apply(e,n),void 0===s||(t.exports=s)},function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(3),i(9),i(7)],s=function(e,i,n,s,r){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Je=void 0;const l=(0,n.WcLog)(t);i.Je=s.o.u(new class{constructor(){this.Rn={},this.An=!1,window.addEventListener("wcex-loaded",(()=>{l.info("run StylesMonit"),this.An||(this.An=!0,this.Dn())}))}Dn(){return o(this,void 0,void 0,(function*(){for(;;)yield this.Fn(),yield r.PromiseExt.Vt(100)}))}Fn(){return o(this,void 0,void 0,(function*(){let t=this;yield r.st.Jt((function*(){for(let e of Object.keys(t.Rn)){let i=t.Rn[e];for(let t of Object.keys(i)){let e=i[t];if(e.el.isConnected){let t=window.getComputedStyle(e.el,null);for(let i of Object.keys(e.styles)){let n=t.getPropertyValue(i);n!==e.styles[i]&&(e.styles[i]=n,e.el.dispatchEvent(new CustomEvent(i,{detail:n})))}yield!0}else l.warn("remove monit style",e.el),delete i[t]}}}))}))}yi(t,e){var i,n;let s=null===(n=null===(i=t.$scope)||void 0===i?void 0:i.$wc)||void 0===n?void 0:n.$wcId;if(!s)return;let o=t.getAttribute("eid");o&&(this.Rn[s]||(this.Rn[s]={}),this.Rn[s][o]||(this.Rn[s][o]={el:t,styles:{}}),this.Rn[s][o].styles[e]="")}mi(t){var e,i,n,s,o;let r=null===(i=null===(e=t.$scope)||void 0===e?void 0:e.$wc)||void 0===i?void 0:i.$wcId;if(!r)return;let l=null===(n=t.$scope)||void 0===n?void 0:n.eid;l&&(null===(o=null===(s=this.Rn)||void 0===s?void 0:s[r])||void 0===o?void 0:o[l])&&delete this.Rn[r][l]}qe(t){var e;(null===(e=this.Rn)||void 0===e?void 0:e[t])&&delete this.Rn[t]}}),window.__STYMON=i.Je}.apply(e,n),void 0===s||(t.exports=s)},function(t,e,i){var n,s;t=i.nmd(t);var o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}c((n=n.apply(t,e||[])).next())}))};n=[i,e,i(7),i(10),i(13),i(11),i(3),i(8),i(15),i(1),i(4)],s=function(e,i,n,s,r,l,c,u,a,h,d){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Ln=void 0;const f=(0,c.WcLog)(t);class v{constructor(t){this.In=t,this.Bn=null,this.Nn=!0,this.Hn="",f.debug("Dev Hot:",this.In),this.Un()}Un(){return o(this,void 0,void 0,(function*(){try{let t=yield(yield fetch(`http://${this.In}/package.json`,{referrerPolicy:"no-referrer-when-downgrade"})).json();this.Hn=t.name,f.debug("Dev Hot Open:",this.Hn,this.In),this.Bn=new WebSocket(`ws://${this.In}/_hotws`),this.Bn.addEventListener("close",(t=>{f.log("closed...",t.code),this.Nn&&setTimeout((()=>this.Un()),5e3)})),this.Bn.addEventListener("open",(t=>{f.log("hotloader opened")})),this.Bn.addEventListener("message",(t=>{window.dispatchEvent(new CustomEvent("wc-hotload",{detail:JSON.parse(t.data)}))}))}catch(t){f.warn("dev hotload failed:",this.In,t.message)}}))}close(){var t;this.Nn=!1,null===(t=this.Bn)||void 0===t||t.close()}}i.Ln={},window.addEventListener("wc-hotload",(t=>o(void 0,void 0,void 0,(function*(){let e=t.detail;if(!e)return;f.warn("hot changed:",e);const i=e.path.replace(/\..+?$/,"").replace(/\\/g,"/");setTimeout((()=>{!function(t,e){o(this,void 0,void 0,(function*(){let i=!1;function c(t){return o(this,void 0,void 0,(function*(){const e=customElements.get(t);if(e){f.info("hot tag:",t),i=!0;let n=e.$tpl;const o=new r.ye(t,n.info.from);yield o.we(),f.info("tpl ready:",t);const c=customElements.get(t);c&&(f.info("update tpl"),c.updateTpl(o),s.wcRegister.findByTag(t).forEach((e=>{(0,l.fe)(e.$rootElem,t)})))}else f.info("hot changed no match:",t)}))}let d=(0,a.p)("",e),v=location.pathname.replace(/^(.*\/).*?$/,"$1"),p=n.st.wt(u.m.root||location.origin,v+e);if(h.O.removeFileMatched(p),yield c(d),t){let i=h.O.findModule(t);if(i){let n=(0,a.p)(t,e);h.O.removeFileMatched(i.ht(e)),yield c(n)}}i||f.info("hot changed no matched:",e)}))}(null==e?void 0:e.project,i)}),100)}))));let p=null===d.devConfig||void 0===d.devConfig?void 0:d.devConfig.pkgs;if(p)for(let t of Object.keys(p)){let e=p[t];e.enable&&new v(e.hostport)}}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n,s;t=i.nmd(t),n=[i,e,i(3),i(9)],s=function(e,i,n,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.$color=i.Hsla=void 0;const o=(0,n.WcLog)(t);function r(t,e,i){t/=255,e/=255,i/=255;var n=Math.max(t,e,i),s=Math.min(t,e,i),o=0,r=0,l=(n+s)/2;if(n==s)o=r=0;else{var c=n-s;switch(r=l>.5?c/(2-n-s):c/(n+s),n){case t:o=(e-i)/c+(e<i?6:0);break;case e:o=(i-t)/c+2;break;case i:o=(t-e)/c+4}o/=6}return{h:360*o,s:100*r,l:100*l}}function l(t,e){return t<0?0:t>e?e:t}class c{constructor(t=0,e=70,i=50,n=100){this.$h=t,this.$s=e,this.$l=i,this.$a=n,s.o.u(this),this.$h=t<0?360+t%360:t>360?t%360:t,this.$s=l(e,100),this.$l=l(i,100),this.$a=l(n,100)}static from(t){if(t.startsWith("#")){let e=r(parseInt(t.slice(1,3),16)||0,parseInt(t.slice(3,5),16)||0,parseInt(t.slice(5,7),16)||0);return new c(e.h,e.s,e.l)}let e=t.trim().match(/^([a-z]+)\((.+)\)$/);try{if(e&&3==e.length){let t=e[1],i=e[2].split(",");switch(t){case"hsl":return new c(parseFloat(i[0]),parseFloat(i[1]),parseFloat(i[2]));case"hsla":return new c(parseFloat(i[0]),parseFloat(i[1]),parseFloat(i[2]),parseFloat(i[3]));case"rgb":{let t=r(parseFloat(i[0]),parseFloat(i[1]),parseFloat(i[2]));return new c(t.h,t.s,t.l)}case"rgba":{let t=parseFloat(i[0]),e=parseFloat(i[1]),n=parseFloat(i[2]),s=parseFloat(i[3]),o=r(t,e,n);return new c(o.h,o.s,o.l,s)}}}}catch(e){o.warn("parse color failed!",t)}return new c}toString(){return`hsla(${this.$h},${this.$s}%,${this.$l}%,${this.$a/100})`}h(t){return new c(this.$h+t,this.$s,this.$l,this.$a)}hh(t){return new c(t,this.$s,this.$l,this.$a)}s(t){return new c(this.$h,this.$s+t,this.$l,this.$a)}ss(t){return new c(this.$h,t,this.$l,this.$a)}l(t){return new c(this.$h,this.$s,this.$l+(u.mode?-t:t),this.$a)}ll(t){return new c(this.$h,this.$s,t,this.$a)}a(t){return new c(this.$h,this.$s,this.$l,this.$a+t)}aa(t){return new c(this.$h,this.$s,this.$l,t)}}i.Hsla=c;let u={mode:1,load(){a()},set(t,e){try{let i=JSON.parse(localStorage.getItem("__COLORS")||"{}");i[t]=e,localStorage.setItem("__COLORS",JSON.stringify(i)),a()}catch(t){o.warn("user colors invalid"),localStorage.removeItem("__COLORS")}},setMode(t){try{localStorage.setItem("__COLOR_MODE",t.toString()),this.mode=t,a()}catch(t){o.warn("user color mode invalid"),localStorage.removeItem("__COLOR_MODE")}},switchMode(){try{let t=parseInt(localStorage.getItem("__COLOR_MODE")||"0");this.setMode(0==t?1:0)}catch(t){o.warn("user color mode invalid"),localStorage.removeItem("__COLOR_MODE")}},colors:s.o.watch({}),Hsla:c};function a(){let t=document.head.querySelector("meta[name=colors]"),e=localStorage.getItem("__COLOR_MODE");null!=e?u.mode=parseInt(e)?1:0:t&&(u.mode=parseInt(t.getAttribute("mode")||"-1"));let i={pri:new c(220),sec:void 0,info:new c(0,0,50),ok:new c(125),warn:new c(35),error:new c(0),none:new c(0,0,0,0)};if(t)try{for(let e=0;e<t.attributes.length;e++){let n=t.attributes.item(e);(null==n?void 0:n.name)&&"mode"!=n.name&&"name"!=n.name&&(i[n.name]=c.from(n.value))}}catch(e){o.warn("parse meta colors failed:",e,t)}let n=localStorage.getItem("__COLORS");if(n)try{let t=JSON.parse(n);Object.keys(t).forEach((e=>{i[e]=c.from(t[e])}))}catch(t){o.warn("parse local colors failed:",t)}if(i.sec||(i.sec=i.pri.h(90)),i.text||(i.text=i.pri.ll(10)),i.bg||(i.bg=i.pri.ll(90)),u.mode||(i.bg=i.bg.ll(100-i.bg.$l),i.text=i.bg.ll(100-i.text.$l)),i.pria=i.pri.h(-24),i.seca=i.sec.h(-24),i.texta=i.text.ss(50).h(-10),i.textr=i.texta.ll(100-i.texta.$l),i.bga=i.bg.ss(50).h(-10),i.bgr=i.bg.ll(100-i.bg.$l),Object.assign(u.colors,i),function(){for(let t of["h","s","l","a"])for(let e of["","_"])for(let i=1;i<10;i++)Object.defineProperty(c.prototype,t+i+e,{enumerable:!0,configurable:!0,get(){return 0==i?this:this[t](("h"==t?18:"a"==t?10:5)*i*(""==e?1:-1))}})}(),u.mode>=0){let t=document.firstElementChild;t.hasAttribute("color")&&(t.style.color=u.colors.text.toString(),t.style.backgroundColor=u.colors.bg.toString(),t.style.setProperty("--color-mode",u.mode.toString()))}}a(),i.$color={name:"$color",scope:{$color:u.colors,$Colors:u}},window.__COLORS=u}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n,s;n=[i,e,i(5),i(3),i(22)],s=function(t,e,i,n,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=e.Scope=e.loadTime=e.Logger=void 0,Object.defineProperty(e,"Logger",{enumerable:!0,get:function(){return n.Logger}}),e.loadTime=0,Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),e.VERSION=i.pkgVersion}.apply(e,n),void 0===s||(t.exports=s)},(t,e,i)=>{var n;n=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scope=void 0,e.Scope=class{constructor(){}}}.apply(e,[i,e]),void 0===n||(t.exports=n)},(t,e,i)=>{var n,s;t=i.nmd(t),n=[i,e,i(3)],s=function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.$monitSize=void 0;(0,n.WcLog)(t);i.$monitSize={name:"$monitSize",scope:{$monitSize(t,e){t.__resizeCB=e,this.__resizeObserver||(this.__resizeObserver=new ResizeObserver((t=>{var e,i;for(const n of t)null===(i=(e=n.target).__resizeCB)||void 0===i||i.call(e,n)}))),this.__resizeObserver.observe(t)}},wcDestroy(){let t=this.__resizeObserver;t&&(t.disconnect(),delete this.__resizeObserver)}}}.apply(e,n),void 0===s||(t.exports=s)}],e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}return i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),i(0)})()));