(()=>{function w(e){return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(e)}function j(e,t){if(w(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(w(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D(e){var t=j(e,"string");return w(t)==="symbol"?t:String(t)}function k(e,t,r){return t=D(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X(e){if(Array.isArray(e))return e}function H(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,u,s=[],l=!0,i=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(p){i=!0,o=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(i)throw o}}return s}}function O(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r")+1,r=e.lastIndexOf("<");return e.substring(t,r)}function Y(e){if(w(e)==="object")return"/";try{var t=new URL(e,location.href),r=t.origin,n=t.pathname,o=n.split("/");return o.pop(),"".concat(r).concat(o.join("/"),"/")}catch(a){return console.warn(a),""}}function Z(){var e=document.createElement("script");return"noModule"in e}var ee=window.requestIdleCallback||function(t){var r=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-r))}})},1)};function te(e,t){if(!t||!e.headers)return e.text();var r=e.headers.get("Content-Type");if(!r)return e.text();var n="utf-8",o=r.split(";");if(o.length===2){var a=o[1].split("="),u=_(a,2),s=u[1],l=s&&s.trim();l&&(n=l)}return n.toUpperCase()==="UTF-8"?e.text():e.blob().then(function(i){return new Promise(function(p,d){var v=new window.FileReader;v.onload=function(){p(v.result)},v.onerror=d,v.readAsText(i,n)})})}var U={};function re(e,t){var r=e;if(!U[r]){var n="(function(){".concat(t,"})");U[r]=(0,eval)(n)}var o=U[r];o.call(window)}function K(e){var t=new DOMParser,r=''),n=t.parseFromString(r,"text/html");return n.scripts[0].src}var be=/()[\s\S]*?<\/script>/gi,we=/<(script)\s+((?!type=('|")text\/ng\x2Dtemplate\3)[\s\S])*?>[\s\S]*?<\/\1>/i,ne=/.*\ssrc=('|")?([^>'"\s]+)/,Ee=/.*\stype=('|")?([^>'"\s]+)/,xe=/.*\sentry\s*.*/,Pe=/.*\sasync\s*.*/,Te=/.*\snomodule\s*.*/,_e=/.*\stype=('|")?module('|")?\s*.*/,Se=/<(link)\s+[\s\S]*?>/ig,Re=/\srel=('|")?(preload|prefetch)\1/,oe=/.*\shref=('|")?([^>'"\s]+)/,Ge=/.*\sas=('|")?font\1.*/,Oe=/]*>[\s\S]*?<\/style>/gi,Ie=/\s+rel=('|")?stylesheet\1.*/,Ce=/.*\shref=('|")?([^>'"\s]+)/,Le=//g,Ae=//i,Me=//i,Ne=//i;function ae(e){return e.startsWith("http://")||e.startsWith("https://")}function ie(e,t){return new URL(e,t).toString()}function je(e){var t=["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"];return!e||t.indexOf(e)!==-1}var A=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return"")},se=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return"")},De="",L=function(t){return"")},ue=function(t,r){return"")};function $(e,t,r){var n=[],o=[],a=null,u=Z(),s=e.replace(Le,"").replace(Se,function(i){var p=!!i.match(Ie);if(p){var d=i.match(Ce),v=i.match(Ae);if(d){var y=d&&d[2],g=y;return y&&!ae(y)&&(g=ie(y,t)),v?L(g):(g=K(g),o.push(g),A(g))}}var h=i.match(Re)&&i.match(oe)&&!i.match(Ge);if(h){var E=i.match(oe),c=_(E,3),b=c[2];return A(b,!0)}return i}).replace(Oe,function(i){return Me.test(i)?L("style file"):i}).replace(be,function(i,p){var d=p.match(Ne),v=u&&!!p.match(Te)||!u&&!!p.match(_e),y=p.match(Ee),g=y&&y[2];if(!je(g))return i;if(we.test(i)&&p.match(ne)){var h=p.match(xe),E=p.match(ne),c=E&&E[2];if(a&&h)throw new SyntaxError("You should not set multiply entry script!");if(c&&(ae(c)||(c=ie(c,t)),c=K(c)),a=a||h&&c,d)return L(c||"js file");if(v)return ue(c||"js file",u);if(c){var b=!!p.match(Pe);return n.push(b?{async:!0,src:c}:c),se(c,b)}return i}else{if(d)return L("js file");if(v)return ue("js file",u);var N=S(i),R=N.split(/[\r\n]+/).every(function(f){return!f.trim()||f.trim().startsWith("//")});return R||n.push(i),De}});n=n.filter(function(i){return!!i});var l={template:s,scripts:n,styles:o,entry:a||n[n.length-1]};return typeof r=="function"&&(l=r(l)),l}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{},n=r.fetch,o=n===void 0?T:n,a=e;return ve(t,o).then(function(u){return a=t.reduce(function(s,l,i){return s=s.replace(A(l),M(l)?"".concat(l):"")),s},a),a})}var M=function(t){return t.startsWith("<")};function He(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.proxy,o=r.strictGlobal,a=r.scopedGlobalVariables,u=a===void 0?[]:a,s=M(e)?"":"//# sourceURL=".concat(e,` `),l=u.length?"const {".concat(u.join(","),"}=this;"):"",i=(0,eval)("window");return i.proxy=n,o?l?";(function(){with(this){".concat(l).concat(t,` `).concat(s,"}}).bind(window.proxy)();"):";(function(window, self, globalThis){with(window){;".concat(t,` `).concat(s,"}}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);"):";(function(window, self, globalThis){;".concat(t,` `).concat(s,"}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);")}function ve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T;return Promise.all(e.map(function(r){return M(r)?S(r):ce[r]||(ce[r]=t(r).then(function(n){return n.text()}))}))}function ye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},n=function(a){return fe[a]||(fe[a]=t(a).then(function(u){if(u.status>=400)throw new Error("".concat(a," load failed with status ").concat(u.status));return u.text()}).catch(function(u){throw r(),u}))};return Promise.all(e.map(function(o){if(typeof o=="string")return M(o)?S(o):n(o);var a=o.src,u=o.async;return u?{src:a,async:!0,content:new Promise(function(s,l){return ee(function(){return n(a).then(s,l)})})}:n(a)}))}function de(e,t){setTimeout(function(){throw console.error(t),e})}var gt=typeof performance<"u"&&typeof performance.mark=="function"&&typeof performance.clearMarks=="function"&&typeof performance.measure=="function"&&typeof performance.clearMeasures=="function";function Ve(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=n.fetch,a=o===void 0?T:o,u=n.strictGlobal,s=u===void 0?!1:u,l=n.success,i=n.error,p=i===void 0?function(){}:i,d=n.beforeExec,v=d===void 0?function(){}:d,y=n.afterExec,g=y===void 0?function(){}:y,h=n.scopedGlobalVariables,E=h===void 0?[]:h;return ye(t,a,p).then(function(c){var b=function(m,x){var G=v(x,m)||x,B=He(m,G,{proxy:r,strictGlobal:s,scopedGlobalVariables:E});re(m,B),g(x,m)};function N(f,m,x){var G="Evaluating script ".concat(f),B="Evaluating Time Consuming: ".concat(f);if(f===e){Q(s?r:window);try{b(f,m);var ge=r[z(s?r:window)]||{};x(ge)}catch(P){throw console.error("[import-html-entry]: error occurs while executing entry script ".concat(f)),P}}else if(typeof m=="string")try{b(f,m)}catch(P){de(P,"[import-html-entry]: error occurs while executing normal script ".concat(f))}else m.async&&(m==null||m.content.then(function(P){return b(m.src,P)}).catch(function(P){de(P,"[import-html-entry]: error occurs while executing async script ".concat(m.src))}))}function R(f,m){if(f1&&arguments[1]!==void 0?arguments[1]:{},r=T,n=!1,o=Y,a=me,u=t.postProcessTemplate;return typeof t=="function"?r=t:(t.fetch&&(typeof t.fetch=="function"?r=t.fetch:(r=t.fetch.fn||T,n=!!t.fetch.autoDecodeResponse)),o=t.getPublicPath||t.getDomain||Y,a=t.getTemplate||me),pe[e]||(pe[e]=r(e).then(function(s){return te(s,n)}).then(function(s){var l=o(e),i=$(a(s),l,u),p=i.template,d=i.scripts,v=i.entry,y=i.styles;return Xe(p,y,{fetch:r}).then(function(g){return{template:g,assetPublicPath:l,getExternalScripts:function(){return ye(d,r)},getExternalStyleSheets:function(){return ve(y,r)},execScripts:function(E,c){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return d.length?Ve(v,d,E,ke({fetch:r,strictGlobal:c},b)):Promise.resolve()}}})}))}var Fe=()=>{var t;if(!((t=window.__importHTML__)!=null&&t.url)){console.error("[importHTML] \u8BF7\u8BBE\u7F6Eurl");return}function e(){console.log("importHTML run");let r=window.__importHTML__;q(r.url).then(n=>{n.execScripts().then(o=>{var a;console.log("[importHTML] execScripts",{exports:o}),(a=r.run)==null||a.call(r,o)})}).catch(n=>{var o;console.log(n),(o=r==null?void 0:r.onError)==null||o.call(r,n)})}window.__importHTML__.defer!==!1?e():window.addEventListener("DOMContentLoaded",()=>{e()})};Fe();})();