const XL="0.8.11",T1=typeof window!="undefined",JL=typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Function("return this")();function ZL(e){return e===void 0}function os(e){return typeof e=="string"}function A1(e){return typeof e=="boolean"}function kr(e){return typeof e=="function"}const Sc=Array.isArray;function ia(e){return toString.call(e)==="[object Object]"}function G0(e){return toString.call(e)==="[object Promise]"}function Y0(e){return kr(e)&&e.name.indexOf("bound ")===0&&!e.hasOwnProperty("prototype")}function QL(e){return typeof ShadowRoot!="undefined"&&e instanceof ShadowRoot}const mc=Object.defineProperty,qL=Object.defineProperties,Bl=Object.prototype.hasOwnProperty;function er(e,t=null,...n){const r=t&&os(t)?` app ${t}:`:"";os(e)?console.error(`[micro-app]${r} ${e}`,...n):console.error(`[micro-app]${r}`,e,...n)}function ih(e,t=null,...n){const r=t&&os(t)?` app ${t}:`:"";os(e)?console.warn(`[micro-app]${r} ${e}`,...n):console.warn(`[micro-app]${r}`,e,...n)}function go(e,...t){Promise.resolve().then(e.bind(null,...t))}function M1(e){return e.startsWith("//")?`${location.protocol}${e}`:e}function X0(e,t=null){if(!os(e)||!e)return"";try{const{origin:n,pathname:r,search:i}=new URL(M1(e));if(/\.(\w+)$/.test(r))return`${n}${r}${i}`;const a=`${n}${r}/`.replace(/\/\/$/,"/");return/^https?:\/\//.test(a)?`${a}${i}`:""}catch(n){return er(n,t),""}}function qa(e){return!os(e)||!e?"":e.replace(/(^\d+)|([^\w\d-_])/gi,"")}function z6(e){const{origin:t,pathname:n}=new URL(e);if(/\.(\w+)$/.test(n)){const i=`${t}${n}`.split("/");return i.pop(),i.join("/")+"/"}return`${t}${n}/`.replace(/\/\/$/,"/")}function So(e,t){return!e||/^((((ht|f)tps?)|file):)?\/\//.test(e)||/^(data|blob):/.test(e)?e:new URL(e,z6(M1(t))).toString()}function eB(e){const t=e.split("/");return t.pop(),M1(t.join("/")+"/")}function Ng(e,t,n,r){let i=0;function a(){++i===e.length&&r&&r()}e.forEach((l,c)=>{G0(l)?l.then(h=>{t({data:h,index:c}),a()}).catch(h=>{n({error:h,index:c}),a()}):(t({data:l,index:c}),a())})}function tB(){const e=document.createElement("script");return"noModule"in e}function nB(){return"inline-"+Math.random().toString(36).substr(2,15)}function rB(e){return e.filter(function(t){return t in this?!1:this[t]=!0},Object.create(null))}const I1=JL.requestIdleCallback||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-t))}})},50)};let $1=null;function Mc(e){$1=e}function pv(e){$1!==e&&(Mc(e),go(()=>{Mc(null)}))}function ba(){return $1}function Lg(){Mc(null)}function Du(e,t){const n=document.createElement(e,t);return n.__MICRO_APP_NAME__&&delete n.__MICRO_APP_NAME__,n}function vv(e,t,n){if(t.innerHTML="",n){const r=e.cloneNode(!0),i=document.createDocumentFragment();Array.from(r.childNodes).forEach(a=>{i.appendChild(a)}),t.appendChild(i)}else Array.from(e.childNodes).forEach(r=>{t.appendChild(r)})}function mv(e){return!e||/(^\d)|([^\w\d-_\u4e00-\u9fa5])/gi.test(e)}function My(e){return/^body$/i.test(e)||/^head$/i.test(e)||/^html$/i.test(e)}function ah(e){return QL(e)?e.host:e}function Iy(e){return e?e.replace(/^\s+|\s+$/g,""):""}function X5(){return navigator.userAgent.indexOf("Firefox")>-1}var xf;(function(e){e.NAME="name",e.URL="url"})(xf||(xf={}));var Mr;(function(e){e.NOT_LOADED="NOT_LOADED",e.LOADING_SOURCE_CODE="LOADING_SOURCE_CODE",e.LOAD_SOURCE_FINISHED="LOAD_SOURCE_FINISHED",e.LOAD_SOURCE_ERROR="LOAD_SOURCE_ERROR",e.MOUNTING="MOUNTING",e.MOUNTED="MOUNTED",e.UNMOUNT="UNMOUNT"})(Mr||(Mr={}));var Os;(function(e){e.CREATED="created",e.BEFOREMOUNT="beforemount",e.MOUNTED="mounted",e.UNMOUNT="unmount",e.ERROR="error",e.BEFORESHOW="beforeshow",e.AFTERSHOW="aftershow",e.AFTERHIDDEN="afterhidden"})(Os||(Os={}));var Bs;(function(e){e.KEEP_ALIVE_SHOW="KEEP_ALIVE_SHOW",e.KEEP_ALIVE_HIDDEN="KEEP_ALIVE_HIDDEN"})(Bs||(Bs={}));const J5="window,self,globalThis,Array,Object,String,Boolean,Math,Number,Symbol,Date,Promise,Function,Proxy,WeakMap,WeakSet,Set,Map,Reflect,Element,Node,Document,RegExp,Error,TypeError,JSON,isNaN,parseFloat,parseInt,performance,console,decodeURI,encodeURI,decodeURIComponent,encodeURIComponent,location,navigator,undefined";function ku(e,t=null,n={}){return kr(ur.fetch)?ur.fetch(e,n,t):fetch(e,n).then(r=>r.text())}class R1{static getInstance(){return this.instance||(this.instance=new R1),this.instance}run(t,n){const r=t.name,i=t.ssrUrl||t.url;ku(i,r,{cache:"no-cache"}).then(a=>{if(!a){const l="html is empty, please check in detail";return t.onerror(new Error(l)),er(l,r)}a=this.formatHTML(i,a,r),n(a,t)}).catch(a=>{er(`Failed to fetch data from ${t.url}, micro-app stop rendering`,r,a),t.onLoadError(a)})}formatHTML(t,n,r){return this.processHtml(t,n,r,ur.plugins).replace(/
]*>[\s\S]*?<\/head>/i,i=>i.replace(//i,"")).replace(/]*>[\s\S]*?<\/body>/i,i=>i.replace(//i,""))}processHtml(t,n,r,i){var a;if(!i)return n;const l=[];return i.global&&l.push(...i.global),!((a=i.modules)===null||a===void 0)&&a[r]&&l.push(...i.modules[r]),l.length>0?l.reduce((c,h)=>ia(h)&&kr(h.processHtml)?h.processHtml(c,t,h.options):c,n):n}}const iB=/(^|\s+)(html|:root)(?=[\s>~[.#:]+|$)/,Z5=/(^|\s+)((html[\s>~]+body)|body)(?=[\s>~[.#:]+|$)/;function Ha(e,t){e=t?`${t} ${e}`:e;const n=new Error(e);throw n.reason=e,t&&(n.filename=t),n}class aB{constructor(){this.cssText="",this.prefix="",this.baseURI="",this.linkPath="",this.result="",this.scopecssDisable=!1,this.scopecssDisableSelectors=[],this.scopecssDisableNextLine=!1,this.mediaRule=this.createMatcherForAtRuleWithChildRule(/^@media *([^{]+)/,"media"),this.supportsRule=this.createMatcherForAtRuleWithChildRule(/^@supports *([^{]+)/,"supports"),this.documentRule=this.createMatcherForAtRuleWithChildRule(/^@([-\w]+)?document *([^{]+)/,"document"),this.hostRule=this.createMatcherForAtRuleWithChildRule(/^@host\s*/,"host"),this.importRule=this.createMatcherForNoneBraceAtRule("import"),this.charsetRule=this.createMatcherForNoneBraceAtRule("charset"),this.namespaceRule=this.createMatcherForNoneBraceAtRule("namespace")}exec(t,n,r,i){return this.cssText=t,this.prefix=n,this.baseURI=r,this.linkPath=i||"",this.matchRules(),X5()?decodeURIComponent(this.result):this.result}reset(){this.cssText=this.prefix=this.baseURI=this.linkPath=this.result="",this.scopecssDisable=this.scopecssDisableNextLine=!1,this.scopecssDisableSelectors=[]}matchRules(){for(this.matchLeadingSpaces(),this.matchComments();this.cssText.length&&this.cssText.charAt(0)!=="}"&&(this.matchAtRule()||this.matchStyleRule());)this.matchComments()}matchStyleRule(){const t=this.formatSelector(!0);return this.scopecssDisableNextLine=!1,t?(this.recordResult(t),this.matchComments(),this.styleDeclarations(),this.matchLeadingSpaces(),!0):Ha("selector missing",this.linkPath)}formatSelector(t){const n=this.commonMatch(/^([^{]+)/,t);return n?n[0].replace(/(^|,[\n\s]*)([^,]+)/g,(r,i,a)=>(a=Iy(a),this.scopecssDisableNextLine||this.scopecssDisable&&(!this.scopecssDisableSelectors.length||this.scopecssDisableSelectors.includes(a))||iB.test(a)||(Z5.test(a)?a=a.replace(Z5,this.prefix+" micro-app-body"):a=this.prefix+" "+a),i+a)):!1}styleDeclarations(){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?!0:Ha("Declaration missing '}'",this.linkPath)):Ha("Declaration missing '{'",this.linkPath)}matchAllDeclarations(){let t=this.commonMatch(/^(?:url\(["']?(?:[^)"'}]+)["']?\)|[^}/])*/,!0)[0];if(t&&(!this.scopecssDisableNextLine&&(!this.scopecssDisable||this.scopecssDisableSelectors.length)&&(t=t.replace(/url\(["']?([^)"']+)["']?\)/gm,(n,r)=>/^((data|blob):|#)/.test(r)||/^(https?:)?\/\//.test(r)?n:(/^((\.\.?\/)|[^/])/.test(r)&&this.linkPath&&(this.baseURI=eB(this.linkPath)),`url("${So(r,this.baseURI)}")`))),this.recordResult(t)),this.scopecssDisableNextLine=!1,!(!this.cssText||this.cssText.charAt(0)==="}"))return this.cssText.charAt(0)==="/"&&this.cssText.charAt(1)==="*"?this.matchComments():this.commonMatch(/\/+/),this.matchAllDeclarations()}matchAtRule(){return this.cssText[0]!=="@"?!1:(this.scopecssDisableNextLine=!1,this.keyframesRule()||this.mediaRule()||this.customMediaRule()||this.supportsRule()||this.importRule()||this.charsetRule()||this.namespaceRule()||this.documentRule()||this.pageRule()||this.hostRule()||this.fontFaceRule())}keyframesRule(){if(!this.commonMatch(/^@([-\w]+)?keyframes\s*/))return!1;if(!this.commonMatch(/^([-\w]+)\s*/))return Ha("@keyframes missing name",this.linkPath);if(this.matchComments(),!this.matchOpenBrace())return Ha("@keyframes missing '{'",this.linkPath);for(this.matchComments();this.keyframeRule();)this.matchComments();return this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Ha("@keyframes missing '}'",this.linkPath)}keyframeRule(){let t;const n=[];for(;t=this.commonMatch(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)n.push(t[1]),this.commonMatch(/^,\s*/);return n.length?(this.styleDeclarations(),this.matchLeadingSpaces(),!0):!1}customMediaRule(){return this.commonMatch(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/)?(this.matchLeadingSpaces(),!0):!1}pageRule(){return this.commonMatch(/^@page */)?(this.formatSelector(!1),this.scopecssDisableNextLine=!1,this.commonHandlerForAtRuleWithSelfRule("page")):!1}fontFaceRule(){return this.commonMatch(/^@font-face\s*/)?this.commonHandlerForAtRuleWithSelfRule("font-face"):!1}createMatcherForAtRuleWithChildRule(t,n){return()=>this.commonMatch(t)?this.matchOpenBrace()?(this.matchComments(),this.matchRules(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Ha(`@${n} missing '}'`,this.linkPath)):Ha(`@${n} missing '{'`,this.linkPath):!1}createMatcherForNoneBraceAtRule(t){const n=new RegExp("^@"+t+"\\s*([^;]+);");return()=>this.commonMatch(n)?(this.matchLeadingSpaces(),!0):!1}commonHandlerForAtRuleWithSelfRule(t){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Ha(`@${t} missing '}'`,this.linkPath)):Ha(`@${t} missing '{'`,this.linkPath)}matchComments(){for(;this.matchComment(););}matchComment(){if(this.cssText.charAt(0)!=="/"||this.cssText.charAt(1)!=="*")return!1;this.scopecssDisableNextLine=!1;let t=2;for(;this.cssText.charAt(t)!==""&&(this.cssText.charAt(t)!=="*"||this.cssText.charAt(t+1)!=="/");)++t;if(t+=2,this.cssText.charAt(t-1)==="")return Ha("End of comment missing",this.linkPath);let n=this.cssText.slice(2,t-2);return this.recordResult(`/*${n}*/`),n=Iy(n.replace(/^\s*!/,"")),n==="scopecss-disable-next-line"?this.scopecssDisableNextLine=!0:/^scopecss-disable/.test(n)?n==="scopecss-disable"?this.scopecssDisable=!0:(this.scopecssDisable=!0,n.replace("scopecss-disable","").split(",").forEach(i=>{this.scopecssDisableSelectors.push(Iy(i))})):n==="scopecss-enable"&&(this.scopecssDisable=!1,this.scopecssDisableSelectors=[]),this.cssText=this.cssText.slice(t),this.matchLeadingSpaces(),!0}commonMatch(t,n=!1){const r=t.exec(this.cssText);if(!r)return;const i=r[0];return this.cssText=this.cssText.slice(i.length),n||this.recordResult(i),r}matchOpenBrace(){return this.commonMatch(/^{\s*/)}matchCloseBrace(){return this.commonMatch(/^}/)}matchLeadingSpaces(){this.commonMatch(/^\s*/)}recordResult(t){X5()?this.result+=encodeURIComponent(t):this.result+=t}}function Q5(e,t,n,r,i){if(!e.__MICRO_APP_HAS_SCOPED__){e.__MICRO_APP_HAS_SCOPED__=!0;let a=null;try{a=Sf.exec(e.textContent,n,r,i),Sf.reset()}catch(l){Sf.reset(),er(`An error occurred while parsing CSS:
`,t,l)}a&&(e.textContent=a)}}let Sf;function ou(e,t){if(t.scopecss){const n=`${ur.tagName}[name=${t.name}]`;if(Sf||(Sf=new aB),e.textContent)Q5(e,t.name,n,t.url,e.__MICRO_APP_LINK_PATH__);else{const r=new MutationObserver(function(){r.disconnect(),e.textContent&&!e.hasAttribute("data-styled")&&Q5(e,t.name,n,t.url,e.__MICRO_APP_LINK_PATH__)});r.observe(e,{childList:!0})}}return e}function V6(e,t){Object.defineProperties(e,{currentTarget:{get(){return t}},srcElement:{get(){return t}},target:{get(){return t}}})}function Ef(e){const t=new CustomEvent("load");V6(t,e),kr(e.onload)?e.onload(t):e.dispatchEvent(t)}function W6(e){const t=new CustomEvent("error");V6(t,e),kr(e.onerror)?e.onerror(t):e.dispatchEvent(t)}const ll=new Map;function H6(e,t,n,r=!1){const i=e.getAttribute("rel");let a=e.getAttribute("href"),l=null;if(i==="stylesheet"&&a)if(a=So(a,n.url),!r)l=document.createComment(`link element with href=${a} move to micro-app-head as style element`),n.source.links.set(a,{code:"",placeholder:l,isGlobal:e.hasAttribute("global")});else return{url:a,info:{code:"",isGlobal:e.hasAttribute("global")}};else i&&["prefetch","preload","prerender","icon","apple-touch-icon"].includes(i)?r?l=document.createComment(`link element with rel=${i}${a?" & href="+a:""} removed by micro-app`):t.removeChild(e):a&&e.setAttribute("href",So(a,n.url));if(r)return{replaceComment:l};if(l)return t.replaceChild(l,e)}function sB(e,t,n){const r=Array.from(t.source.links.entries()),i=r.map(([a])=>ll.has(a)?ll.get(a):ku(a,t.name));Ng(i,a=>{oB(r[a.index][0],r[a.index][1],a.data,n,t)},a=>{er(a,t.name)},()=>{t.onLoad(e)})}function oB(e,t,n,r,i){t.isGlobal&&!ll.has(e)&&ll.set(e,n);const a=Du("style");a.textContent=n,a.__MICRO_APP_LINK_PATH__=e,a.setAttribute("data-origin-href",e),t.placeholder.parentNode?t.placeholder.parentNode.replaceChild(ou(a,i),t.placeholder):r.appendChild(ou(a,i)),t.placeholder=null,t.code=n}function lB(e,t,n,r,i){if(n.source.links.has(e)){i.textContent=n.source.links.get(e).code,ou(i,n),go(()=>Ef(r));return}if(ll.has(e)){const a=ll.get(e);t.code=a,n.source.links.set(e,t),i.textContent=a,ou(i,n),go(()=>Ef(r));return}ku(e,n.name).then(a=>{t.code=a,n.source.links.set(e,t),t.isGlobal&&ll.set(e,a),i.textContent=a,ou(i,n),Ef(r)}).catch(a=>{er(a,n.name),W6(r)})}const Vo=new WeakMap;function uB(e,t,n){if(t instanceof HTMLStyleElement){if(t.hasAttribute("exclude")){const r=document.createComment("style element with exclude attribute ignored by micro-app");return Vo.set(t,r),r}else if(n.scopecss&&!t.hasAttribute("ignore"))return ou(t,n);return t}else if(t instanceof HTMLLinkElement){if(t.hasAttribute("exclude")||N1(t.getAttribute("href"),n.name)){const l=document.createComment("link element with exclude attribute ignored by micro-app");return Vo.set(t,l),l}else if(t.hasAttribute("ignore")||L1(t.getAttribute("href"),n.name)||t.href&&kr(ur.excludeAssetFilter)&&ur.excludeAssetFilter(t.href))return t;const{url:r,info:i,replaceComment:a}=H6(t,e,n,!0);if(r&&i){const l=Du("style");return l.__MICRO_APP_LINK_PATH__=r,lB(r,i,n,t,l),Vo.set(t,l),l}else if(a)return Vo.set(t,a),a;return t}else if(t instanceof HTMLScriptElement){if(t.src&&kr(ur.excludeAssetFilter)&&ur.excludeAssetFilter(t.src))return t;const{replaceComment:r,url:i,info:a}=J6(t,e,n,!0)||{};if(i&&a)if(a.isExternal){const l=SB(i,a,n,t);return Vo.set(t,l),l}else{const l=Uf(i,n,a,!0);return Vo.set(t,l),l}else if(r)return Vo.set(t,r),r;return t}return t}function K6(e,t,n,r,i){const a=dB(n,e);return a?i&&!a.contains(i)?jt.rawAppendChild.call(a,r):t===jt.rawRemoveChild&&!a.contains(r)?n.contains(r)?t.call(n,r):r:q5(t,a,r,i):q5(t,n,r,i)}function q5(e,t,n,r){return cB(e)?e.call(t,n):e.call(t,n,r)}function cB(e){return e===jt.rawAppend||e===jt.rawPrepend}function dB(e,t){var n,r;return e===document.head?(n=t==null?void 0:t.container)===null||n===void 0?void 0:n.querySelector("micro-app-head"):e===document.body?(r=t==null?void 0:t.container)===null||r===void 0?void 0:r.querySelector("micro-app-body"):null}function G6(e){var t;return(t=Vo.get(e))!==null&&t!==void 0?t:e}function Bd(e,t,n,r){if(t!=null&&t.__MICRO_APP_NAME__){const i=lr.get(t.__MICRO_APP_NAME__);return i!=null&&i.container?K6(i,r,e,uB(e,t,i),n&&G6(n)):r===jt.rawAppend||r===jt.rawPrepend?r.call(e,t):r.call(e,t,n)}else if(r===jt.rawAppend||r===jt.rawPrepend){const i=ba();if(!(t instanceof Node)&&i){const a=lr.get(i);if(a!=null&&a.container){if(e===document.head)return r.call(a.container.querySelector("micro-app-head"),t);if(e===document.body)return r.call(a.container.querySelector("micro-app-body"),t)}}return r.call(e,t)}return r.call(e,t,n)}function fB(){hB(),Element.prototype.appendChild=function(t){return Bd(this,t,null,jt.rawAppendChild)},Element.prototype.insertBefore=function(t,n){return Bd(this,t,n,jt.rawInsertBefore)},Element.prototype.replaceChild=function(t,n){return Bd(this,t,n,jt.rawReplaceChild)},Element.prototype.append=function(...t){let n=0;const r=t.length;for(;n0;)Bd(this,t[n-1],null,jt.rawPrepend),n--},Element.prototype.removeChild=function(t){if(t!=null&&t.__MICRO_APP_NAME__){const n=lr.get(t.__MICRO_APP_NAME__);return n!=null&&n.container?K6(n,jt.rawRemoveChild,this,G6(t)):jt.rawRemoveChild.call(this,t)}return jt.rawRemoveChild.call(this,t)},Element.prototype.cloneNode=function(t){const n=jt.rawCloneNode.call(this,t);return this.__MICRO_APP_NAME__&&(n.__MICRO_APP_NAME__=this.__MICRO_APP_NAME__),n}}function $y(e){const t=ba();return t&&(e.__MICRO_APP_NAME__=t),e}function hB(){const e=jt.rawDocument;Document.prototype.createElement=function(i,a){const l=jt.rawCreateElement.call(this,i,a);return $y(l)},Document.prototype.createElementNS=function(i,a,l){const c=jt.rawCreateElementNS.call(this,i,a,l);return $y(c)},Document.prototype.createDocumentFragment=function(){const i=jt.rawCreateDocumentFragment.call(this);return $y(i)};function t(r){var i,a,l;const c=ba();return!c||!r||My(r)||e!==this?jt.rawQuerySelector.call(this,r):(l=(a=(i=lr.get(c))===null||i===void 0?void 0:i.container)===null||a===void 0?void 0:a.querySelector(r))!==null&&l!==void 0?l:null}function n(r){var i,a,l;const c=ba();return!c||!r||My(r)||e!==this?jt.rawQuerySelectorAll.call(this,r):(l=(a=(i=lr.get(c))===null||i===void 0?void 0:i.container)===null||a===void 0?void 0:a.querySelectorAll(r))!==null&&l!==void 0?l:[]}Document.prototype.querySelector=t,Document.prototype.querySelectorAll=n,Document.prototype.getElementById=function(i){if(!ba()||mv(i))return jt.rawGetElementById.call(this,i);try{return t.call(this,`#${i}`)}catch{return jt.rawGetElementById.call(this,i)}},Document.prototype.getElementsByClassName=function(i){if(!ba()||mv(i))return jt.rawGetElementsByClassName.call(this,i);try{return n.call(this,`.${i}`)}catch{return jt.rawGetElementsByClassName.call(this,i)}},Document.prototype.getElementsByTagName=function(i){var a;const l=ba();if(!l||My(i)||mv(i)||!(!((a=lr.get(l))===null||a===void 0)&&a.inline)&&/^script$/i.test(i))return jt.rawGetElementsByTagName.call(this,i);try{return n.call(this,i)}catch{return jt.rawGetElementsByTagName.call(this,i)}},Document.prototype.getElementsByName=function(i){if(!ba()||mv(i))return jt.rawGetElementsByName.call(this,i);try{return n.call(this,`[name=${i}]`)}catch{return jt.rawGetElementsByName.call(this,i)}}}let J0=!1;function pB(){J0||(J0=!0,Element.prototype.setAttribute=function(t,n){if(/^micro-app(-\S+)?/i.test(this.tagName)&&t==="data")if(ia(n)){const r={};Object.getOwnPropertyNames(n).forEach(i=>{os(i)&&i.indexOf("__")===0||(r[i]=n[i])}),this.data=r}else n!=="[object Object]"&&ih("property data must be an object",this.getAttribute("name"));else if(((t==="src"||t==="srcset")&&/^(img|script)$/i.test(this.tagName)||t==="href"&&/^link$/i.test(this.tagName))&&this.__MICRO_APP_NAME__&&lr.has(this.__MICRO_APP_NAME__)){const r=lr.get(this.__MICRO_APP_NAME__);jt.rawSetAttribute.call(this,t,So(n,r.url))}else jt.rawSetAttribute.call(this,t,n)})}function vB(){J0=!1,Element.prototype.setAttribute=jt.rawSetAttribute}function mB(){Document.prototype.createElement=jt.rawCreateElement,Document.prototype.createElementNS=jt.rawCreateElementNS,Document.prototype.createDocumentFragment=jt.rawCreateDocumentFragment,Document.prototype.querySelector=jt.rawQuerySelector,Document.prototype.querySelectorAll=jt.rawQuerySelectorAll,Document.prototype.getElementById=jt.rawGetElementById,Document.prototype.getElementsByClassName=jt.rawGetElementsByClassName,Document.prototype.getElementsByTagName=jt.rawGetElementsByTagName,Document.prototype.getElementsByName=jt.rawGetElementsByName}function gB(){Mc(null),mB(),Element.prototype.appendChild=jt.rawAppendChild,Element.prototype.insertBefore=jt.rawInsertBefore,Element.prototype.replaceChild=jt.rawReplaceChild,Element.prototype.removeChild=jt.rawRemoveChild,Element.prototype.append=jt.rawAppend,Element.prototype.prepend=jt.rawPrepend,Element.prototype.cloneNode=jt.rawCloneNode}let eE=!1;function _B(){if(!eE){eE=!0;const e=Du("style");jt.rawSetAttribute.call(e,"type","text/css"),e.textContent=`
${ur.tagName}, micro-app-body { display: block; }
micro-app-head { display: none; }`,jt.rawDocument.head.appendChild(e)}}class Fm{constructor(){this.appInstanceMap=lr}static getInstance(){return this.instance||(this.instance=new Fm),this.instance}get(t){return this.appInstanceMap.get(t)}set(t,n){this.appInstanceMap.set(t,n)}getAll(){return Array.from(this.appInstanceMap.values())}clear(){this.appInstanceMap.clear()}}function Y6(){X6(),Fm.getInstance().getAll().forEach(e=>{e.container&&ah(e.container).disconnectedCallback()}),!window.__MICRO_APP_UMD_MODE__&&Fm.getInstance().clear()}function yB(){window.__MICRO_APP_ENVIRONMENT__&&window.addEventListener("unmount",Y6,!1)}function X6(){window.__MICRO_APP_ENVIRONMENT__&&window.removeEventListener("unmount",Y6,!1)}const jt={};function bB(){if(T1){const e=Element.prototype.setAttribute,t=Element.prototype.appendChild,n=Element.prototype.insertBefore,r=Element.prototype.replaceChild,i=Element.prototype.removeChild,a=Element.prototype.append,l=Element.prototype.prepend,c=Element.prototype.cloneNode,h=Document.prototype.createElement,s=Document.prototype.createElementNS,p=Document.prototype.createDocumentFragment,d=Document.prototype.querySelector,v=Document.prototype.querySelectorAll,m=Document.prototype.getElementById,_=Document.prototype.getElementsByClassName,y=Document.prototype.getElementsByTagName,b=Document.prototype.getElementsByName,E=new Proxy(Image,{construct(V,U){const oe=new V(...U);return oe.__MICRO_APP_NAME__=ba(),oe}}),k=Function("return window")(),x=Function("return document")(),C=tB(),D=k.addEventListener,w=k.removeEventListener,P=k.setInterval,M=k.setTimeout,T=k.clearInterval,R=k.clearTimeout,H=x.addEventListener,N=x.removeEventListener;window.__MICRO_APP_BASE_APPLICATION__=!0,Object.assign(jt,{rawSetAttribute:e,rawAppendChild:t,rawInsertBefore:n,rawReplaceChild:r,rawRemoveChild:i,rawAppend:a,rawPrepend:l,rawCloneNode:c,rawCreateElement:h,rawCreateElementNS:s,rawCreateDocumentFragment:p,rawQuerySelector:d,rawQuerySelectorAll:v,rawGetElementById:m,rawGetElementsByClassName:_,rawGetElementsByTagName:y,rawGetElementsByName:b,ImageProxy:E,rawWindow:k,rawDocument:x,supportModuleScript:C,rawWindowAddEventListener:D,rawWindowRemoveEventListener:w,rawSetInterval:P,rawSetTimeout:M,rawClearInterval:T,rawClearTimeout:R,rawDocumentAddEventListener:H,rawDocumentRemoveEventListener:N}),_B(),X6(),yB()}}const lu=new Map;function J6(e,t,n,r=!1){let i=null,a=e.getAttribute("src");if(a&&(a=So(a,n.url)),e.hasAttribute("exclude")||N1(a,n.name))i=document.createComment("script element with exclude attribute removed by micro-app");else{if(e.type&&!["text/javascript","text/ecmascript","application/javascript","application/ecmascript","module","systemjs-module","systemjs-importmap"].includes(e.type)||e.hasAttribute("ignore")||L1(a,n.name))return null;if(jt.supportModuleScript&&e.noModule||!jt.supportModuleScript&&e.type==="module")i=document.createComment(`${e.noModule?"noModule":"module"} script ignored by micro-app`);else if(a){const l={code:"",isExternal:!0,isDynamic:r,async:e.hasAttribute("async"),defer:e.defer||e.type==="module",module:e.type==="module",isGlobal:e.hasAttribute("global")};if(!r)n.source.scripts.set(a,l),i=document.createComment(`script with src='${a}' extract by micro-app`);else return{url:a,info:l}}else if(e.textContent){const l=nB(),c={code:e.textContent,isExternal:!1,isDynamic:r,async:!1,defer:e.type==="module",module:e.type==="module"};if(!r)n.source.scripts.set(l,c),i=document.createComment("inline script extract by micro-app");else return{url:l,info:c}}else r||(i=document.createComment("script element removed by micro-app"))}return r?{replaceComment:i}:t.replaceChild(i,e)}function Z6(e){var t,n,r;const i=((t=ur.plugins)===null||t===void 0?void 0:t.global)||[],a=((r=(n=ur.plugins)===null||n===void 0?void 0:n.modules)===null||r===void 0?void 0:r[e])||[];return[...i,...a]}function N1(e,t){return e?(Z6(t)||[]).some(r=>r.excludeChecker?r.excludeChecker(e):!1):!1}function L1(e,t){return e?(Z6(t)||[]).some(r=>r.ignoreChecker?r.ignoreChecker(e):!1):!1}function wB(e,t){const n=Array.from(t.source.scripts.entries()),r=[],i=[];for(const[a,l]of n)if(l.isExternal){const c=lu.get(a);c?l.code=c:(!l.defer&&!l.async||t.isPrefetch)&&(r.push(ku(a,t.name)),i.push([a,l]))}r.length?Ng(r,a=>{CB(i[a.index][0],i[a.index][1],a.data)},a=>{er(a,t.name)},()=>{t.onLoad(e)}):t.onLoad(e)}function CB(e,t,n){t.isGlobal&&!lu.has(e)&&lu.set(e,n),t.code=n}function xB(e,t,n){const r=Array.from(e.entries()),i=[],a=[];for(const[l,c]of r)c.isDynamic||(c.defer||c.async?(c.isExternal&&!c.code?i.push(ku(l,t.name)):i.push(c.code),a.push([l,c]),c.module&&(n.moduleCount=n.moduleCount?++n.moduleCount:1)):(Uf(l,t,c,!1),n(!1)));i.length?Ng(i,l=>{const c=a[l.index][1];c.code=c.code||l.data},l=>{n.errorCount=n.errorCount?++n.errorCount:1,er(l,t.name)},()=>{a.forEach(([l,c])=>{c.code&&(Uf(l,t,c,!1,n),!c.module&&n(!1))}),n(ZL(n.moduleCount)||n.errorCount===i.length)}):n(!0)}function Uf(e,t,n,r,i){var a;try{const l=eO(e,t,n.code,n);if(t.inline||n.module){const c=Du("script");if(Q6(e,l,n.module,c,i),r)return c;(a=t.container)===null||a===void 0||a.querySelector("micro-app-body").appendChild(c)}else if(q6(l,n),r)return document.createComment("dynamic script extract by micro-app")}catch(l){console.error(`[micro-app from runScript] app ${t.name}: `,l)}}function SB(e,t,n,r){const i=()=>Ef(r);if(n.source.scripts.has(e)){const l=n.source.scripts.get(e);return!l.module&&go(i),Uf(e,n,l,!0,i)}if(lu.has(e)){const l=lu.get(e);return t.code=l,n.source.scripts.set(e,t),!t.module&&go(i),Uf(e,n,t,!0,i)}let a;return n.inline||t.module?a=Du("script"):a=document.createComment(`dynamic script with src='${e}' extract by micro-app`),ku(e,n.name).then(l=>{t.code=l,n.source.scripts.set(e,t),t.isGlobal&&lu.set(e,l);try{l=eO(e,n,l,t),n.inline||t.module?Q6(e,l,t.module,a,i):q6(l,t)}catch(c){console.error(`[micro-app from runDynamicScript] app ${n.name}: `,c,e)}!t.module&&Ef(r)}).catch(l=>{er(l,n.name),W6(r)}),a}function Q6(e,t,n,r,i){if(n){const a=new Blob([t],{type:"text/javascript"});r.src=URL.createObjectURL(a),r.setAttribute("type","module"),i&&(i.moduleCount&&i.moduleCount--,r.onload=i.bind(r,i.moduleCount===0))}else r.textContent=t;e.startsWith("inline-")||r.setAttribute("data-origin-src",e)}function q6(e,t){t.code2Function||(t.code2Function=new Function(e)),t.code2Function.call(window)}function eO(e,t,n,r){return ia(ur.plugins)&&(n=EB(e,n,t.name,ur.plugins,r)),t.sandBox&&!r.module?(jt.rawWindow.__MICRO_APP_PROXY_WINDOW__=t.sandBox.proxyWindow,`;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(${J5}){;${n}
}).call(proxyWindow,${J5})}})(window.__MICRO_APP_PROXY_WINDOW__);`):n}function EB(e,t,n,r,i){var a;const l=tE(r.global,t,e,i);return tE((a=r.modules)===null||a===void 0?void 0:a[n],l,e,i)}function tE(e,t,n,r){return Sc(e)?e.reduce((i,a)=>ia(a)&&kr(a.loader)?a.loader(i,n,a.options,r):i,t):t}function DB(e){const t=Du("div");return t.innerHTML=e,t}function tO(e,t,n){const r=Array.from(e.children);r.length&&r.forEach(i=>{tO(i,t)});for(const i of r)i instanceof HTMLLinkElement?i.hasAttribute("exclude")||N1(i.getAttribute("href"),t.name)?e.replaceChild(document.createComment("link element with exclude attribute ignored by micro-app"),i):i.hasAttribute("ignore")||L1(i.getAttribute("href"),t.name)?i.hasAttribute("href")&&i.setAttribute("href",So(i.getAttribute("href"),t.url)):H6(i,e,t):i instanceof HTMLStyleElement?i.hasAttribute("exclude")?e.replaceChild(document.createComment("style element with exclude attribute ignored by micro-app"),i):t.scopecss&&!i.hasAttribute("ignore")&&ou(i,t):i instanceof HTMLScriptElement?J6(i,e,t):i instanceof HTMLMetaElement||i instanceof HTMLTitleElement?e.removeChild(i):i instanceof HTMLImageElement&&i.hasAttribute("src")&&i.setAttribute("src",So(i.getAttribute("src"),t.url))}function kB(e,t){const n=DB(e),r=n.querySelector("micro-app-head"),i=n.querySelector("micro-app-body");if(!r||!i){const a=`element ${r?"body":"head"} is missing`;return t.onerror(new Error(a)),er(a,t.name)}tO(n,t),t.source.links.size?sB(n,t,r):t.onLoad(n),t.source.scripts.size?wB(n,t):t.onLoad(n)}class OB{constructor(){this.eventList=new Map}isLegalName(t){return t?!0:(er("event-center: Invalid name"),!1)}on(t,n,r=!1){if(this.isLegalName(t)){if(!kr(n))return er("event-center: Invalid callback function");let i=this.eventList.get(t);i?r&&Object.getOwnPropertyNames(i.data).length&&n(i.data):(i={data:{},callbacks:new Set},this.eventList.set(t,i)),i.callbacks.add(n)}}off(t,n){if(this.isLegalName(t)){const r=this.eventList.get(t);r&&(kr(n)?r.callbacks.delete(n):r.callbacks.clear())}}dispatch(t,n){if(this.isLegalName(t)){if(!ia(n))return er("event-center: data must be object");let r=this.eventList.get(t);if(r){if(r.data!==n){r.data=n;for(const i of r.callbacks)i(n)}}else r={data:n,callbacks:new Set},this.eventList.set(t,r)}}getData(t){var n;const r=this.eventList.get(t);return(n=r==null?void 0:r.data)!==null&&n!==void 0?n:null}}const fi=new OB;function es(e,t){return!os(e)||!e?"":t?`__from_base_app_${e}__`:`__from_micro_app_${e}__`}class nO{addGlobalDataListener(t,n){const r=this.appName;r&&(t.__APP_NAME__=r,t.__AUTO_TRIGGER__=n),fi.on("global",t,n)}removeGlobalDataListener(t){kr(t)&&fi.off("global",t)}setGlobalData(t){Lg(),fi.dispatch("global",t)}getGlobalData(){return fi.getData("global")}clearGlobalDataListener(){const t=this.appName,n=fi.eventList.get("global");if(n)for(const r of n.callbacks)(t&&t===r.__APP_NAME__||!(t||r.__APP_NAME__))&&n.callbacks.delete(r)}}class PB extends nO{addDataListener(t,n,r){fi.on(es(qa(t),!1),n,r)}removeDataListener(t,n){kr(n)&&fi.off(es(qa(t),!1),n)}getData(t,n=!1){return fi.getData(es(qa(t),n))}setData(t,n){fi.dispatch(es(qa(t),!0),n)}clearDataListener(t){fi.off(es(qa(t),!1))}}class TB extends nO{constructor(t){super(),this.appName=qa(t),!this.appName&&er(`Invalid appName ${t}`)}addDataListener(t,n){t.__AUTO_TRIGGER__=n,fi.on(es(this.appName,!0),t,n)}removeDataListener(t){kr(t)&&fi.off(es(this.appName,!0),t)}getData(){return fi.getData(es(this.appName,!0))}dispatch(t){Lg(),fi.dispatch(es(this.appName,!1),t);const n=lr.get(this.appName);if((n==null?void 0:n.container)&&ia(t)){const r=new CustomEvent("datachange",{detail:{data:t}});ah(n.container).dispatchEvent(r)}}clearDataListener(){fi.off(es(this.appName,!0))}}function AB(e){const t=e.appName;e.umdDataListeners={global:new Set,normal:new Set};const n=fi.eventList.get("global");if(n)for(const i of n.callbacks)t===i.__APP_NAME__&&e.umdDataListeners.global.add(i);const r=fi.eventList.get(es(t,!0));r&&(e.umdDataListeners.normal=new Set(r.callbacks))}function MB(e){for(const t of e.umdDataListeners.global)e.addGlobalDataListener(t,t.__AUTO_TRIGGER__);for(const t of e.umdDataListeners.normal)e.addDataListener(t,t.__AUTO_TRIGGER__)}function IB(e){return A1(e.__MICRO_APP_IS_BOUND_FUNCTION__)?e.__MICRO_APP_IS_BOUND_FUNCTION__:e.__MICRO_APP_IS_BOUND_FUNCTION__=Y0(e)}function $B(e){var t;if(A1(e.__MICRO_APP_IS_CONSTRUCTOR__))return e.__MICRO_APP_IS_CONSTRUCTOR__;const n=e.toString(),r=((t=e.prototype)===null||t===void 0?void 0:t.constructor)===e&&Object.getOwnPropertyNames(e.prototype).length>1||/^function\s+[A-Z]/.test(n)||/^class\s+/.test(n);return e.__MICRO_APP_IS_CONSTRUCTOR__=r}function RB(e,t){if(t.__MICRO_APP_BOUND_WINDOW_FUNCTION__)return t.__MICRO_APP_BOUND_WINDOW_FUNCTION__;if(!$B(t)&&!IB(t)){const n=t.bind(e);for(const r in t)n[r]=t[r];return t.hasOwnProperty("prototype")&&mc(n,"prototype",{value:t.prototype,configurable:!0,enumerable:!1,writable:!0}),t.__MICRO_APP_BOUND_WINDOW_FUNCTION__=n}return t}const Zo=new Map;let rO=!1;function NB(){if(rO=!0,Object.getOwnPropertyDescriptor(document,"onclick"))return ih("Cannot redefine document property onclick");const e=document.onclick;document.onclick=null;let t=!1;function n(r){Zo.forEach(i=>{kr(i)&&i.call(document,r)})}mc(document,"onclick",{configurable:!0,enumerable:!0,get(){const r=ba();return r?Zo.get(r):Zo.get("base")},set(r){const i=ba();i?Zo.set(i,r):Zo.set("base",r),!t&&kr(r)&&(t=!0,jt.rawDocumentAddEventListener.call(jt.rawDocument,"click",n,!1))}}),e&&(document.onclick=e)}const Df=new Map;function LB(){const{rawDocument:e,rawDocumentAddEventListener:t,rawDocumentRemoveEventListener:n}=jt;!rO&&NB(),document.addEventListener=function(r,i,a){var l;const c=ba();if(c&&!(((l=lr.get(c))===null||l===void 0?void 0:l.umdMode)&&Y0(i))){const h=Df.get(c);if(h){const s=h.get(r);s?s.add(i):h.set(r,new Set([i]))}else Df.set(c,new Map([[r,new Set([i])]]));i&&(i.__MICRO_APP_MARK_OPTIONS__=a)}t.call(e,r,i,a)},document.removeEventListener=function(r,i,a){var l;const c=ba();if(c&&!(((l=lr.get(c))===null||l===void 0?void 0:l.umdMode)&&Y0(i))){const h=Df.get(c);if(h){const s=h.get(r);(s==null?void 0:s.size)&&s.has(i)&&s.delete(i)}}n.call(e,r,i,a)}}function BB(){document.addEventListener=jt.rawDocumentAddEventListener,document.removeEventListener=jt.rawDocumentRemoveEventListener}const FB=["unmount","appstate-change"];function nE(e,t){return FB.includes(e)?`${e}-${t.__MICRO_APP_NAME__}`:e}function UB(e){const t=e.__MICRO_APP_NAME__,n=new Map,r=new Map,i=new Map,{rawWindow:a,rawDocument:l,rawWindowAddEventListener:c,rawWindowRemoveEventListener:h,rawSetInterval:s,rawSetTimeout:p,rawClearInterval:d,rawClearTimeout:v,rawDocumentRemoveEventListener:m}=jt;e.addEventListener=function(w,P,M){w=nE(w,e);const T=n.get(w);T?T.add(P):n.set(w,new Set([P])),P&&(P.__MICRO_APP_MARK_OPTIONS__=M),c.call(a,w,P,M)},e.removeEventListener=function(w,P,M){w=nE(w,e);const T=n.get(w);(T==null?void 0:T.size)&&T.has(P)&&T.delete(P),h.call(a,w,P,M)},e.setInterval=function(w,P,...M){const T=s.call(a,w,P,...M);return r.set(T,{handler:w,timeout:P,args:M}),T},e.setTimeout=function(w,P,...M){const T=p.call(a,w,P,...M);return i.set(T,{handler:w,timeout:P,args:M}),T},e.clearInterval=function(w){r.delete(w),d.call(a,w)},e.clearTimeout=function(w){i.delete(w),v.call(a,w)};const _=new Map,y=new Map;let b=new Map,E=new Map,k;return{recordUmdEffect:()=>{n.forEach((P,M)=>{P.size&&_.set(M,new Set(P))}),r.size&&(b=new Map(r)),i.size&&(E=new Map(i)),k=Zo.get(t);const w=Df.get(t);w&&w.forEach((P,M)=>{P.size&&y.set(M,new Set(P))})},rebuildUmdEffect:()=>{_.forEach((w,P)=>{for(const M of w)e.addEventListener(P,M,M==null?void 0:M.__MICRO_APP_MARK_OPTIONS__)}),b.forEach(w=>{e.setInterval(w.handler,w.timeout,...w.args)}),E.forEach(w=>{e.setTimeout(w.handler,w.timeout,...w.args)}),k&&Zo.set(t,k),Mc(t),y.forEach((w,P)=>{for(const M of w)document.addEventListener(P,M,M==null?void 0:M.__MICRO_APP_MARK_OPTIONS__)}),Mc(null)},releaseEffect:()=>{n.size&&(n.forEach((P,M)=>{for(const T of P)h.call(a,M,T)}),n.clear()),r.size&&(r.forEach((P,M)=>{d.call(a,M)}),r.clear()),i.size&&(i.forEach((P,M)=>{v.call(a,M)}),i.clear()),Zo.delete(t);const w=Df.get(t);w&&(w.forEach((P,M)=>{for(const T of P)m.call(l,M,T)}),w.clear())}}}const jB=["System","__cjsWrapper"],zB=["location"],VB=["window","self","globalThis"];class jf{constructor(t,n){this.scopeProperties=["webpackJsonp","Vue"],this.escapeProperties=[],this.injectedKeys=new Set,this.escapeKeys=new Set,this.active=!1,this.microAppWindow={},this.getSpecialProperties(t),this.proxyWindow=this.createProxyWindow(t),this.initMicroAppWindow(this.microAppWindow,t,n),Object.assign(this,UB(this.microAppWindow))}start(t){this.active||(this.active=!0,this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=t,jt.rawWindow._babelPolyfill&&(jt.rawWindow._babelPolyfill=!1),++jf.activeCount===1&&(LB(),fB()))}stop(t){this.active&&(this.active=!1,this.releaseEffect(),this.microAppWindow.microApp.clearDataListener(),this.microAppWindow.microApp.clearGlobalDataListener(),t||(this.injectedKeys.forEach(n=>{Reflect.deleteProperty(this.microAppWindow,n)}),this.injectedKeys.clear(),this.escapeKeys.forEach(n=>{Reflect.deleteProperty(jt.rawWindow,n)}),this.escapeKeys.clear()),--jf.activeCount===0&&(BB(),gB()))}recordUmdSnapshot(){this.microAppWindow.__MICRO_APP_UMD_MODE__=!0,this.recordUmdEffect(),AB(this.microAppWindow.microApp),this.recordUmdInjectedValues=new Map,this.injectedKeys.forEach(t=>{this.recordUmdInjectedValues.set(t,Reflect.get(this.microAppWindow,t))})}rebuildUmdSnapshot(){this.recordUmdInjectedValues.forEach((t,n)=>{Reflect.set(this.proxyWindow,n,t)}),this.rebuildUmdEffect(),MB(this.microAppWindow.microApp)}getSpecialProperties(t){var n;!ia(ur.plugins)||(this.commonActionForSpecialProperties(ur.plugins.global),this.commonActionForSpecialProperties((n=ur.plugins.modules)===null||n===void 0?void 0:n[t]))}commonActionForSpecialProperties(t){if(Sc(t))for(const n of t)ia(n)&&(Sc(n.scopeProperties)&&(this.scopeProperties=this.scopeProperties.concat(n.scopeProperties)),Sc(n.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(n.escapeProperties)))}createProxyWindow(t){const n=jt.rawWindow,r=new Map;return new Proxy(this.microAppWindow,{get:(i,a)=>{if(pv(t),Reflect.has(i,a)||os(a)&&/^__MICRO_APP_/.test(a)||this.scopeProperties.includes(a))return Reflect.get(i,a);const l=Reflect.get(n,a);return kr(l)?RB(n,l):l},set:(i,a,l)=>{if(this.active){if(zB.includes(a))Reflect.set(n,a,l);else if(!Bl.call(i,a)&&Bl.call(n,a)&&!this.scopeProperties.includes(a)){const c=Object.getOwnPropertyDescriptor(n,a),{configurable:h,enumerable:s,writable:p,set:d}=c;mc(i,a,{value:l,configurable:h,enumerable:s,writable:p!=null?p:!!d}),this.injectedKeys.add(a)}else Reflect.set(i,a,l),this.injectedKeys.add(a);(this.escapeProperties.includes(a)||jB.includes(a)&&!Reflect.has(n,a))&&!this.scopeProperties.includes(a)&&(Reflect.set(n,a,l),this.escapeKeys.add(a))}return!0},has:(i,a)=>this.scopeProperties.includes(a)?a in i:a in i||a in n,getOwnPropertyDescriptor:(i,a)=>{if(Bl.call(i,a))return r.set(a,"target"),Object.getOwnPropertyDescriptor(i,a);if(Bl.call(n,a)){r.set(a,"rawWindow");const l=Object.getOwnPropertyDescriptor(n,a);return l&&!l.configurable&&(l.configurable=!0),l}},defineProperty:(i,a,l)=>r.get(a)==="rawWindow"?Reflect.defineProperty(n,a,l):Reflect.defineProperty(i,a,l),ownKeys:i=>rB(Reflect.ownKeys(n).concat(Reflect.ownKeys(i))),deleteProperty:(i,a)=>Bl.call(i,a)?(this.injectedKeys.has(a)&&this.injectedKeys.delete(a),this.escapeKeys.has(a)&&Reflect.deleteProperty(n,a),Reflect.deleteProperty(i,a)):!0})}initMicroAppWindow(t,n,r){t.__MICRO_APP_ENVIRONMENT__=!0,t.__MICRO_APP_NAME__=n,t.__MICRO_APP_PUBLIC_PATH__=z6(r),t.__MICRO_APP_WINDOW__=t,t.microApp=Object.assign(new TB(n),{removeDomScope:Lg,pureCreateElement:Du}),t.rawWindow=jt.rawWindow,t.rawDocument=jt.rawDocument,t.hasOwnProperty=i=>Bl.call(t,i)||Bl.call(jt.rawWindow,i),this.setMappingPropertiesWithRawDescriptor(t),this.setHijackProperties(t,n)}setMappingPropertiesWithRawDescriptor(t){let n,r;const i=jt.rawWindow;i===i.parent?n=r=this.proxyWindow:(n=i.top,r=i.parent),mc(t,"top",this.createDescriptorForMicroAppWindow("top",n)),mc(t,"parent",this.createDescriptorForMicroAppWindow("parent",r)),VB.forEach(a=>{mc(t,a,this.createDescriptorForMicroAppWindow(a,this.proxyWindow))})}createDescriptorForMicroAppWindow(t,n){const{configurable:r=!0,enumerable:i=!0,writable:a,set:l}=Object.getOwnPropertyDescriptor(jt.rawWindow,t)||{writable:!0};return{value:n,configurable:r,enumerable:i,writable:a!=null?a:!!l}}setHijackProperties(t,n){let r,i;qL(t,{document:{get(){return pv(n),jt.rawDocument},configurable:!1,enumerable:!0},eval:{get(){return pv(n),r||eval},set:a=>{r=a},configurable:!0,enumerable:!1},Image:{get(){return pv(n),i||jt.ImageProxy},set:a=>{i=a},configurable:!0,enumerable:!1}})}}jf.activeCount=0;function WB(e,t){Object.defineProperties(e,{currentTarget:{get(){return t}},target:{get(){return t}}})}function Wo(e,t,n,r){var i;if(!e)return er(`element does not exist in lifecycle ${n}`,t);e=ah(e),Lg();const a=Object.assign({name:t,container:e},r&&{error:r}),l=new CustomEvent(n,{detail:a});WB(l,e),kr((i=ur.lifeCycles)===null||i===void 0?void 0:i[n])&&ur.lifeCycles[n](l),e.dispatchEvent(l)}function gv(e,t,n={}){const r=new CustomEvent(`${e}-${t}`,{detail:n});window.dispatchEvent(r)}const lr=new Map;class iO{constructor({name:t,url:n,ssrUrl:r,container:i,inline:a,scopecss:l,useSandbox:c,baseroute:h}){this.state=Mr.NOT_LOADED,this.keepAliveState=null,this.keepAliveContainer=null,this.loadSourceLevel=0,this.umdHookMount=null,this.umdHookUnmount=null,this.libraryName=null,this.umdMode=!1,this.isPrefetch=!1,this.prefetchResolve=null,this.container=null,this.baseroute="",this.sandBox=null,this.container=i!=null?i:null,this.inline=a!=null?a:!1,this.baseroute=h!=null?h:"",this.ssrUrl=r!=null?r:"",this.name=t,this.url=n,this.useSandbox=c,this.scopecss=this.useSandbox&&l,this.source={links:new Map,scripts:new Map},this.loadSourceCode(),this.useSandbox&&(this.sandBox=new jf(t,n))}loadSourceCode(){this.state=Mr.LOADING_SOURCE_CODE,R1.getInstance().run(this,kB)}onLoad(t){var n;++this.loadSourceLevel===2&&(this.source.html=t,this.isPrefetch?((n=this.prefetchResolve)===null||n===void 0||n.call(this),this.prefetchResolve=null):Mr.UNMOUNT!==this.state&&(this.state=Mr.LOAD_SOURCE_FINISHED,this.mount()))}onLoadError(t){this.loadSourceLevel=-1,this.prefetchResolve&&(this.prefetchResolve(),this.prefetchResolve=null),Mr.UNMOUNT!==this.state&&(this.onerror(t),this.state=Mr.LOAD_SOURCE_ERROR)}mount(t,n,r){var i,a,l;if(A1(n)&&n!==this.inline&&(this.inline=n),this.container=(i=this.container)!==null&&i!==void 0?i:t,this.baseroute=r!=null?r:this.baseroute,this.loadSourceLevel!==2){this.state=Mr.LOADING_SOURCE_CODE;return}Wo(this.container,this.name,Os.BEFOREMOUNT),this.state=Mr.MOUNTING,vv(this.source.html,this.container,!this.umdMode),(a=this.sandBox)===null||a===void 0||a.start(this.baseroute);let c;if(this.umdMode){(l=this.sandBox)===null||l===void 0||l.rebuildUmdSnapshot();try{c=this.umdHookMount()}catch(h){er(`an error occurred in the mount function
`,this.name,h)}this.handleMounted(c)}else{let h=!1;xB(this.source.scripts,this,s=>{var p;if(!this.umdMode){const{mount:d,unmount:v}=this.getUmdLibraryHooks();if(kr(d)&&kr(v)){this.umdHookMount=d,this.umdHookUnmount=v,this.umdMode=!0,(p=this.sandBox)===null||p===void 0||p.recordUmdSnapshot();try{c=this.umdHookMount()}catch(m){er(`an error occurred in the mount function
`,this.name,m)}}}!h&&(s===!0||this.umdMode)&&(h=!0,this.handleMounted(c))})}}handleMounted(t){G0(t)?t.then(()=>this.dispatchMountedEvent()).catch(n=>this.onerror(n)):this.dispatchMountedEvent()}dispatchMountedEvent(){Mr.UNMOUNT!==this.state&&(this.state=Mr.MOUNTED,Wo(this.container,this.name,Os.MOUNTED))}unmount(t,n){this.state===Mr.LOAD_SOURCE_ERROR&&(t=!0),this.state=Mr.UNMOUNT,this.keepAliveState=null,this.keepAliveContainer=null;let r;if(this.umdHookUnmount)try{r=this.umdHookUnmount()}catch(i){er(`an error occurred in the unmount function
`,this.name,i)}gv("unmount",this.name),this.handleUnmounted(t,r,n)}handleUnmounted(t,n,r){G0(n)?n.then(()=>this.actionsForUnmount(t,r)).catch(()=>this.actionsForUnmount(t,r)):this.actionsForUnmount(t,r)}actionsForUnmount(t,n){var r;t?this.actionsForCompletelyDestroy():this.umdMode&&this.container.childElementCount&&vv(this.container,this.source.html,!1),(r=this.sandBox)===null||r===void 0||r.stop(this.umdMode),YB().length||vB(),Wo(this.container,this.name,Os.UNMOUNT),this.container.innerHTML="",this.container=null,n&&n()}actionsForCompletelyDestroy(){!this.useSandbox&&this.umdMode&&delete window[this.libraryName],lr.delete(this.name)}hiddenKeepAliveApp(){const t=this.container;vv(this.container,this.keepAliveContainer?this.keepAliveContainer:this.keepAliveContainer=document.createElement("div"),!1),this.container=this.keepAliveContainer,this.keepAliveState=Bs.KEEP_ALIVE_HIDDEN,gv("appstate-change",this.name,{appState:"afterhidden"}),Wo(t,this.name,Os.AFTERHIDDEN)}showKeepAliveApp(t){gv("appstate-change",this.name,{appState:"beforeshow"}),Wo(t,this.name,Os.BEFORESHOW),vv(this.container,t,!1),this.container=t,this.keepAliveState=Bs.KEEP_ALIVE_SHOW,gv("appstate-change",this.name,{appState:"aftershow"}),Wo(this.container,this.name,Os.AFTERSHOW)}onerror(t){Wo(this.container,this.name,Os.ERROR,t)}getAppState(){return this.state}getKeepAliveState(){return this.keepAliveState}getUmdLibraryHooks(){var t,n;if(Mr.UNMOUNT!==this.state){const r=(n=(t=this.sandBox)===null||t===void 0?void 0:t.proxyWindow)!==null&&n!==void 0?n:jt.rawWindow;return this.libraryName=ah(this.container).getAttribute("library")||`micro-app-${this.name}`,typeof r[this.libraryName]=="object"?r[this.libraryName]:{}}return{}}}function HB(e){class t extends HTMLElement{constructor(){super(),this.isWaiting=!1,this.cacheData=null,this.hasConnected=!1,this.appName="",this.appUrl="",this.ssrUrl="",this.version=XL,this.handleAttributeUpdate=()=>{this.isWaiting=!1;const r=qa(this.getAttribute("name")),i=X0(this.getAttribute("url"),this.appName);if(this.legalAttribute("name",r)&&this.legalAttribute("url",i)){const a=lr.get(r);if(r!==this.appName&&a&&Mr.UNMOUNT!==a.getAppState()&&Bs.KEEP_ALIVE_HIDDEN!==a.getKeepAliveState()&&!a.isPrefetch)return this.setAttribute("name",this.appName),er(`app name conflict, an app named ${r} is running`,this.appName);(r!==this.appName||i!==this.appUrl)&&(r===this.appName?this.handleUnmount(!0,()=>{this.actionsForAttributeChange(r,i,a)}):this.getKeepAliveModeResult()?(this.handleHiddenKeepAliveApp(),this.actionsForAttributeChange(r,i,a)):this.handleUnmount(this.getDestroyCompatibleResult(),()=>{this.actionsForAttributeChange(r,i,a)}))}else r!==this.appName&&this.setAttribute("name",this.appName)},pB()}static get observedAttributes(){return["name","url"]}connectedCallback(){this.hasConnected=!0,go(()=>Wo(this,this.appName,Os.CREATED)),this.initialMount()}disconnectedCallback(){this.hasConnected=!1,this.getKeepAliveModeResult()?this.handleHiddenKeepAliveApp():this.handleUnmount(this.getDestroyCompatibleResult())}attributeChangedCallback(r,i,a){if(this.legalAttribute(r,a)&&this[r===xf.NAME?"appName":"appUrl"]!==a)if(r===xf.URL&&!this.appUrl){if(a=X0(a,this.appName),!a)return er(`Invalid attribute url ${a}`,this.appName);this.appUrl=a,this.handleInitialNameAndUrl()}else if(r===xf.NAME&&!this.appName){const l=qa(a);if(!l)return er(`Invalid attribute name ${a}`,this.appName);this.cacheData&&(ur.setData(l,this.cacheData),this.cacheData=null),this.appName=l,l!==a&&this.setAttribute("name",this.appName),this.handleInitialNameAndUrl()}else this.isWaiting||(this.isWaiting=!0,go(this.handleAttributeUpdate))}handleInitialNameAndUrl(){this.hasConnected&&this.initialMount()}initialMount(){if(!(!this.appName||!this.appUrl))if(this.getDisposeResult("shadowDOM")&&!this.shadowRoot&&kr(this.attachShadow)&&this.attachShadow({mode:"open"}),this.getDisposeResult("ssr")?this.ssrUrl=So(jt.rawWindow.location.pathname,this.appUrl):this.ssrUrl&&(this.ssrUrl=""),lr.has(this.appName)){const r=lr.get(this.appName),i=r.ssrUrl||r.url,a=this.ssrUrl||this.appUrl;r.getKeepAliveState()===Bs.KEEP_ALIVE_HIDDEN&&r.url===this.appUrl?this.handleShowKeepAliveApp(r):i===a&&(r.isPrefetch||r.getAppState()===Mr.UNMOUNT)?this.handleAppMount(r):r.isPrefetch||r.getAppState()===Mr.UNMOUNT?(ih(`the ${r.isPrefetch?"prefetch":"unmounted"} app with url: ${i} is replaced by a new app`,this.appName),this.handleCreateApp()):er(`app name conflict, an app named ${this.appName} is running`,this.appName)}else this.handleCreateApp()}actionsForAttributeChange(r,i,a){var l;this.getDisposeResult("ssr")?this.ssrUrl=So(jt.rawWindow.location.pathname,i):this.ssrUrl&&(this.ssrUrl=""),this.appName=r,this.appUrl=i,((l=this.shadowRoot)!==null&&l!==void 0?l:this).innerHTML="",r!==this.getAttribute("name")&&this.setAttribute("name",this.appName),a?a.getKeepAliveState()===Bs.KEEP_ALIVE_HIDDEN?a.url===this.appUrl?this.handleShowKeepAliveApp(a):er(`app name conflict, an app named ${this.appName} is running`,this.appName):a.url===this.appUrl&&a.ssrUrl===this.ssrUrl?this.handleAppMount(a):this.handleCreateApp():this.handleCreateApp()}legalAttribute(r,i){return!os(i)||!i?(er(`unexpected attribute ${r}, please check again`,this.appName),!1):!0}handleAppMount(r){r.isPrefetch=!1,go(()=>{var i;return r.mount((i=this.shadowRoot)!==null&&i!==void 0?i:this,this.getDisposeResult("inline"),this.getBaseRouteCompatible())})}handleCreateApp(){var r;lr.has(this.appName)&&lr.get(this.appName).actionsForCompletelyDestroy();const i=new iO({name:this.appName,url:this.appUrl,ssrUrl:this.ssrUrl,container:(r=this.shadowRoot)!==null&&r!==void 0?r:this,inline:this.getDisposeResult("inline"),scopecss:!(this.getDisposeResult("disableScopecss")||this.getDisposeResult("shadowDOM")),useSandbox:!this.getDisposeResult("disableSandbox"),baseroute:this.getBaseRouteCompatible()});lr.set(this.appName,i)}handleUnmount(r,i){const a=lr.get(this.appName);a&&a.getAppState()!==Mr.UNMOUNT&&a.unmount(r,i)}handleHiddenKeepAliveApp(){const r=lr.get(this.appName);r&&r.getAppState()!==Mr.UNMOUNT&&r.getKeepAliveState()!==Bs.KEEP_ALIVE_HIDDEN&&r.hiddenKeepAliveApp()}handleShowKeepAliveApp(r){go(()=>{var i;return r.showKeepAliveApp((i=this.shadowRoot)!==null&&i!==void 0?i:this)})}getDisposeResult(r){return(this.compatibleSpecialProperties(r)||ur[r])&&this.compatibleDisableSpecialProperties(r)}compatibleSpecialProperties(r){return r==="disableScopecss"?this.hasAttribute("disableScopecss")||this.hasAttribute("disable-scopecss"):r==="disableSandbox"?this.hasAttribute("disableSandbox")||this.hasAttribute("disable-sandbox"):this.hasAttribute(r)}compatibleDisableSpecialProperties(r){return r==="disableScopecss"?this.getAttribute("disableScopecss")!=="false"&&this.getAttribute("disable-scopecss")!=="false":r==="disableSandbox"?this.getAttribute("disableSandbox")!=="false"&&this.getAttribute("disable-sandbox")!=="false":this.getAttribute(r)!=="false"}getBaseRouteCompatible(){var r,i;return(i=(r=this.getAttribute("baseroute"))!==null&&r!==void 0?r:this.getAttribute("baseurl"))!==null&&i!==void 0?i:""}getDestroyCompatibleResult(){return this.getDisposeResult("destroy")||this.getDisposeResult("destory")}getKeepAliveModeResult(){return this.getDisposeResult("keep-alive")&&!this.getDestroyCompatibleResult()}set data(r){this.appName?ur.setData(this.appName,r):this.cacheData=r}get data(){return this.appName?ur.getData(this.appName,!0):this.cacheData?this.cacheData:null}}window.customElements.define(e,t)}function rE(e){if(!T1)return er("preFetch is only supported in browser environment");I1(()=>{kr(e)&&(e=e()),Sc(e)&&e.reduce((t,n)=>t.then(()=>KB(n)),Promise.resolve())})}function KB(e){return new Promise(t=>{I1(()=>{var n,r;if(ia(e)&&navigator.onLine)if(e.name=qa(e.name),e.url=X0(e.url,e.name),e.name&&e.url&&!lr.has(e.name)){const i=new iO({name:e.name,url:e.url,scopecss:!((n=e.disableScopecss)!==null&&n!==void 0?n:ur.disableScopecss),useSandbox:!((r=e.disableSandbox)!==null&&r!==void 0?r:ur.disableSandbox)});i.isPrefetch=!0,i.prefetchResolve=t,lr.set(e.name,i)}else t();else t()})})}function GB(e){ia(e)&&I1(()=>{iE(e.js,"js",lu),iE(e.css,"css",ll)})}function iE(e,t,n){if(Sc(e)){const r=e.filter(a=>os(a)&&a.includes(`.${t}`)&&!n.has(a)),i=r.map(a=>ku(a));Ng(i,a=>{const l=r[a.index];n.has(l)||n.set(l,a.data)},a=>{er(a)})}}function YB(e){const t=[];return lr.forEach((n,r)=>{Mr.UNMOUNT!==n.getAppState()&&!n.isPrefetch&&(!e||Bs.KEEP_ALIVE_HIDDEN!==n.getKeepAliveState())&&t.push(r)}),t}function XB(e,t){const n=lr.get(qa(e));return new Promise(r=>{if(n)if(n.getAppState()===Mr.UNMOUNT||n.isPrefetch)t!=null&&t.destroy&&n.actionsForCompletelyDestroy(),r();else if(n.getKeepAliveState()===Bs.KEEP_ALIVE_HIDDEN)t!=null&&t.destroy?n.unmount(!0,r):t!=null&&t.clearAliveState?n.unmount(!1,r):r();else{const i=ah(n.container),a=()=>{i.removeEventListener("unmount",a),i.removeEventListener("afterhidden",l),r()},l=()=>{i.removeEventListener("unmount",a),i.removeEventListener("afterhidden",l),r()};if(i.addEventListener("unmount",a),i.addEventListener("afterhidden",l),t!=null&&t.destroy){let c,h;i.hasAttribute("destroy")&&(c=i.getAttribute("destroy")),i.hasAttribute("destory")&&(h=i.getAttribute("destory")),i.setAttribute("destroy","true"),i.parentNode.removeChild(i),i.removeAttribute("destroy"),typeof c=="string"&&i.setAttribute("destroy",c),typeof h=="string"&&i.setAttribute("destory",h)}else if((t==null?void 0:t.clearAliveState)&&i.hasAttribute("keep-alive")){const c=i.getAttribute("keep-alive");i.removeAttribute("keep-alive"),i.parentNode.removeChild(i),i.setAttribute("keep-alive",c)}else i.parentNode.removeChild(i)}else ih(`app ${e} does not exist`),r()})}function $ne(e){return Array.from(lr.keys()).reduce((t,n)=>t.then(()=>XB(n,e)),Promise.resolve())}class JB extends PB{constructor(){super(...arguments),this.tagName="micro-app",this.preFetch=rE}start(t){if(!T1||!window.customElements)return er("micro-app is not supported in this environment");if(t!=null&&t.tagName)if(/^micro-app(-\S+)?/.test(t.tagName))this.tagName=t.tagName;else return er(`${t.tagName} is invalid tagName`);if(window.customElements.get(this.tagName))return ih(`element ${this.tagName} is already defined`);if(bB(),t&&ia(t)&&(this.shadowDOM=t.shadowDOM,this.destroy=t.destroy,this.destory=t.destory,this.inline=t.inline,this.disableScopecss=t.disableScopecss,this.disableSandbox=t.disableSandbox,this.ssr=t.ssr,kr(t.fetch)&&(this.fetch=t.fetch),ia(t.lifeCycles)&&(this.lifeCycles=t.lifeCycles),t.preFetchApps&&rE(t.preFetchApps),t.globalAssets&&GB(t.globalAssets),kr(t.excludeAssetFilter)&&(this.excludeAssetFilter=t.excludeAssetFilter),ia(t.plugins))){const n=t.plugins.modules;if(ia(n))for(const r in n){const i=qa(r);i&&r!==i&&(n[i]=n[r],delete n[r])}this.plugins=t.plugins}HB(this.tagName)}}var ur=new JB;const ZB=e=>({}).VITE_OKR_WEB_URL||$A.apiUrl(e);function QB(){let e={},t={loader(n,r){return n}};e["micro-app"]=[t],e["okr-details"]=[t],ur.start({plugins:{modules:e}}),ur.preFetch([{name:"micro-app",url:ZB("../apps/okr"),disableSandbox:!0}])}var qB={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2D\u6587",en:"English",ko:"\uD55C\uAD6D\uC5B4",ja:"\u65E5\u672C\u8A9E",de:"Deutsch",fr:"Fran\xE7ais",id:"Indonesia"},replaceArgumentsLanguage(e,t){let n=1;for(;e.indexOf("(*)")!==-1;)typeof t[n]=="object"?e=e.replace("(*)",""):e=e.replace("(*)",t[n]),n++;return e},replaceEscape(e){return!e||e==""?"":e.replace(/\(\*\)/g,"~%~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~%~/g,"(.*?)")},getLanguage(){let e=window.localStorage.getItem("__language:type__");if(typeof e=="string"&&typeof this.languageTypes[e]!="undefined")return e;e="en";let t=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(t){case"zh":case"cn":case"zh-cn":e="zh";break;case"zh-tw":case"zh-tr":case"zh-hk":case"zh-cnt":case"zh-cht":e="zh-CHT";break;default:typeof this.languageTypes[t]!="undefined"&&(e=t);break}return window.localStorage.setItem("__language:type__",e),e}};const Um=qB,eF=Um.languageTypes,uu=Um.getLanguage(),ec={};function Rne(e){if(!$A.isArray(e))return;const t=Object.assign(Object.keys(eF));e.some(n=>{let r=-1;n.key&&t.some(i=>{const a=n[i]||n.general||null;a&&typeof window.LANGUAGE_DATA[i]!="undefined"&&(r=window.LANGUAGE_DATA[i].push(a)-1)}),r>-1&&(window.LANGUAGE_DATA.key[n.key]=r)})}function Nne(e){e!==void 0&&$A.modalConfirm({content:"\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u540E\u751F\u6548\uFF0C\u662F\u5426\u786E\u5B9A\u5237\u65B0\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{window.localStorage.setItem("__language:type__",e),$A.reloadUrl()}})}function B1(e){var n;if(typeof arguments[1]!="undefined")return B1(Um.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[uu]=="undefined")return e;const t=window.LANGUAGE_DATA.key[e]||-1;if(t>-1)return window.LANGUAGE_DATA[uu][t]||e;if(typeof ec[e]=="undefined"){ec[e]=!1;for(let r in window.LANGUAGE_DATA.key)if(r.indexOf("(*)")>-1){const i=new RegExp("^"+Um.replaceEscape(r)+"$","g");if(i.test(e)){let a=0;const l=window.LANGUAGE_DATA.key[r],c=(n=window.LANGUAGE_DATA[uu][l]||r)==null?void 0:n.replace(/\(\*\)/g,function(){return"$"+ ++a});ec[e]={rege:i,value:c};break}}}return ec[e]?e.replace(ec[e].rege,ec[e].value):(window.systemInfo.debug==="yes"&&setTimeout(r=>{try{let i="__language:Undefined__",a=JSON.parse(window.localStorage.getItem(i)||"[]");$A.isArray(a)||(a=[]);let l=null;a.find(h=>(l=new RegExp("^"+h.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(l)))||(a.push(e),window.localStorage.setItem(i,JSON.stringify(a)))}catch{}},10),e)}var Fs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function aO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bg(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}function _v(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var sO={exports:{}};/*!
* jQuery JavaScript Library v3.6.4
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-03-08T15:28Z
*/(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window!="undefined"?window:Fs,function(t,n){var r=[],i=Object.getPrototypeOf,a=r.slice,l=r.flat?function(O){return r.flat.call(O)}:function(O){return r.concat.apply([],O)},c=r.push,h=r.indexOf,s={},p=s.toString,d=s.hasOwnProperty,v=d.toString,m=v.call(Object),_={},y=function(L){return typeof L=="function"&&typeof L.nodeType!="number"&&typeof L.item!="function"},b=function(L){return L!=null&&L===L.window},E=t.document,k={type:!0,src:!0,nonce:!0,noModule:!0};function x(O,L,K){K=K||E;var te,Ce,Se=K.createElement("script");if(Se.text=O,L)for(te in k)Ce=L[te]||L.getAttribute&&L.getAttribute(te),Ce&&Se.setAttribute(te,Ce);K.head.appendChild(Se).parentNode.removeChild(Se)}function C(O){return O==null?O+"":typeof O=="object"||typeof O=="function"?s[p.call(O)]||"object":typeof O}var D="3.6.4",w=function(O,L){return new w.fn.init(O,L)};w.fn=w.prototype={jquery:D,constructor:w,length:0,toArray:function(){return a.call(this)},get:function(O){return O==null?a.call(this):O<0?this[O+this.length]:this[O]},pushStack:function(O){var L=w.merge(this.constructor(),O);return L.prevObject=this,L},each:function(O){return w.each(this,O)},map:function(O){return this.pushStack(w.map(this,function(L,K){return O.call(L,K,L)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(O,L){return(L+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(O,L){return L%2}))},eq:function(O){var L=this.length,K=+O+(O<0?L:0);return this.pushStack(K>=0&&K0&&L-1 in O}var M=function(O){var L,K,te,Ce,Se,Me,He,Ue,Qe,it,bt,nt,lt,an,yn,Qt,Pr,xr,Mi,Hn="sizzle"+1*new Date,bn=O.document,ri=0,Rn=0,ar=Wu(),Lo=Wu(),zu=Wu(),Ii=Wu(),no=function($e,je){return $e===je&&(bt=!0),0},ps={}.hasOwnProperty,Hr=[],ja=Hr.pop,$i=Hr.push,vs=Hr.push,md=Hr.slice,ro=function($e,je){for(var Ke=0,ct=$e.length;Ke+~]|"+zn+")"+zn+"*"),Wh=new RegExp(zn+"|>"),Ol=new RegExp(Vu),Q_=new RegExp("^"+ms+"$"),Pl={ID:new RegExp("^#("+ms+")"),CLASS:new RegExp("^\\.("+ms+")"),TAG:new RegExp("^("+ms+"|[*])"),ATTR:new RegExp("^"+zh),PSEUDO:new RegExp("^"+Vu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+zn+"*(even|odd|(([+-]|)(\\d*)n|)"+zn+"*(?:([+-]|)"+zn+"*(\\d+)|))"+zn+"*\\)|)","i"),bool:new RegExp("^(?:"+gd+")$","i"),needsContext:new RegExp("^"+zn+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+zn+"*((?:-\\d)?\\d*)"+zn+"*\\)|)(?=[^-]|$)","i")},Yi=/HTML$/i,q_=/^(?:input|select|textarea|button)$/i,_d=/^h\d$/i,Tl=/^[^{]+\{\s*\[native \w/,ey=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yd=/[+~]/,Ta=new RegExp("\\\\[\\da-fA-F]{1,6}"+zn+"?|\\\\([^\\r\\n\\f])","g"),Xi=function($e,je){var Ke="0x"+$e.slice(1)-65536;return je||(Ke<0?String.fromCharCode(Ke+65536):String.fromCharCode(Ke>>10|55296,Ke&1023|56320))},bd=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wd=function($e,je){return je?$e==="\0"?"\uFFFD":$e.slice(0,-1)+"\\"+$e.charCodeAt($e.length-1).toString(16)+" ":"\\"+$e},Cd=function(){nt()},ty=Ku(function($e){return $e.disabled===!0&&$e.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{vs.apply(Hr=md.call(bn.childNodes),bn.childNodes),Hr[bn.childNodes.length].nodeType}catch{vs={apply:Hr.length?function(je,Ke){$i.apply(je,md.call(Ke))}:function(je,Ke){for(var ct=je.length,qe=0;je[ct++]=Ke[qe++];);je.length=ct-1}}}function Gn($e,je,Ke,ct){var qe,vt,wt,$t,Ut,cn,Ft,hn=je&&je.ownerDocument,Pn=je?je.nodeType:9;if(Ke=Ke||[],typeof $e!="string"||!$e||Pn!==1&&Pn!==9&&Pn!==11)return Ke;if(!ct&&(nt(je),je=je||lt,yn)){if(Pn!==11&&(Ut=ey.exec($e)))if(qe=Ut[1]){if(Pn===9)if(wt=je.getElementById(qe)){if(wt.id===qe)return Ke.push(wt),Ke}else return Ke;else if(hn&&(wt=hn.getElementById(qe))&&Mi(je,wt)&&wt.id===qe)return Ke.push(wt),Ke}else{if(Ut[2])return vs.apply(Ke,je.getElementsByTagName($e)),Ke;if((qe=Ut[3])&&K.getElementsByClassName&&je.getElementsByClassName)return vs.apply(Ke,je.getElementsByClassName(qe)),Ke}if(K.qsa&&!Ii[$e+" "]&&(!Qt||!Qt.test($e))&&(Pn!==1||je.nodeName.toLowerCase()!=="object")){if(Ft=$e,hn=je,Pn===1&&(Wh.test($e)||Vh.test($e))){for(hn=yd.test($e)&&Bo(je.parentNode)||je,(hn!==je||!K.scope)&&(($t=je.getAttribute("id"))?$t=$t.replace(bd,wd):je.setAttribute("id",$t=Hn)),cn=Me($e),vt=cn.length;vt--;)cn[vt]=($t?"#"+$t:":scope")+" "+Al(cn[vt]);Ft=cn.join(",")}try{return vs.apply(Ke,hn.querySelectorAll(Ft)),Ke}catch{Ii($e,!0)}finally{$t===Hn&&je.removeAttribute("id")}}}return Ue($e.replace(kl,"$1"),je,Ke,ct)}function Wu(){var $e=[];function je(Ke,ct){return $e.push(Ke+" ")>te.cacheLength&&delete je[$e.shift()],je[Ke+" "]=ct}return je}function Ji($e){return $e[Hn]=!0,$e}function ii($e){var je=lt.createElement("fieldset");try{return!!$e(je)}catch{return!1}finally{je.parentNode&&je.parentNode.removeChild(je),je=null}}function Hu($e,je){for(var Ke=$e.split("|"),ct=Ke.length;ct--;)te.attrHandle[Ke[ct]]=je}function xd($e,je){var Ke=je&&$e,ct=Ke&&$e.nodeType===1&&je.nodeType===1&&$e.sourceIndex-je.sourceIndex;if(ct)return ct;if(Ke){for(;Ke=Ke.nextSibling;)if(Ke===je)return-1}return $e?1:-1}function ny($e){return function(je){var Ke=je.nodeName.toLowerCase();return Ke==="input"&&je.type===$e}}function ry($e){return function(je){var Ke=je.nodeName.toLowerCase();return(Ke==="input"||Ke==="button")&&je.type===$e}}function Hh($e){return function(je){return"form"in je?je.parentNode&&je.disabled===!1?"label"in je?"label"in je.parentNode?je.parentNode.disabled===$e:je.disabled===$e:je.isDisabled===$e||je.isDisabled!==!$e&&ty(je)===$e:je.disabled===$e:"label"in je?je.disabled===$e:!1}}function gs($e){return Ji(function(je){return je=+je,Ji(function(Ke,ct){for(var qe,vt=$e([],Ke.length,je),wt=vt.length;wt--;)Ke[qe=vt[wt]]&&(Ke[qe]=!(ct[qe]=Ke[qe]))})})}function Bo($e){return $e&&typeof $e.getElementsByTagName!="undefined"&&$e}K=Gn.support={},Se=Gn.isXML=function($e){var je=$e&&$e.namespaceURI,Ke=$e&&($e.ownerDocument||$e).documentElement;return!Yi.test(je||Ke&&Ke.nodeName||"HTML")},nt=Gn.setDocument=function($e){var je,Ke,ct=$e?$e.ownerDocument||$e:bn;return ct==lt||ct.nodeType!==9||!ct.documentElement||(lt=ct,an=lt.documentElement,yn=!Se(lt),bn!=lt&&(Ke=lt.defaultView)&&Ke.top!==Ke&&(Ke.addEventListener?Ke.addEventListener("unload",Cd,!1):Ke.attachEvent&&Ke.attachEvent("onunload",Cd)),K.scope=ii(function(qe){return an.appendChild(qe).appendChild(lt.createElement("div")),typeof qe.querySelectorAll!="undefined"&&!qe.querySelectorAll(":scope fieldset div").length}),K.cssHas=ii(function(){try{return lt.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),K.attributes=ii(function(qe){return qe.className="i",!qe.getAttribute("className")}),K.getElementsByTagName=ii(function(qe){return qe.appendChild(lt.createComment("")),!qe.getElementsByTagName("*").length}),K.getElementsByClassName=Tl.test(lt.getElementsByClassName),K.getById=ii(function(qe){return an.appendChild(qe).id=Hn,!lt.getElementsByName||!lt.getElementsByName(Hn).length}),K.getById?(te.filter.ID=function(qe){var vt=qe.replace(Ta,Xi);return function(wt){return wt.getAttribute("id")===vt}},te.find.ID=function(qe,vt){if(typeof vt.getElementById!="undefined"&&yn){var wt=vt.getElementById(qe);return wt?[wt]:[]}}):(te.filter.ID=function(qe){var vt=qe.replace(Ta,Xi);return function(wt){var $t=typeof wt.getAttributeNode!="undefined"&&wt.getAttributeNode("id");return $t&&$t.value===vt}},te.find.ID=function(qe,vt){if(typeof vt.getElementById!="undefined"&&yn){var wt,$t,Ut,cn=vt.getElementById(qe);if(cn){if(wt=cn.getAttributeNode("id"),wt&&wt.value===qe)return[cn];for(Ut=vt.getElementsByName(qe),$t=0;cn=Ut[$t++];)if(wt=cn.getAttributeNode("id"),wt&&wt.value===qe)return[cn]}return[]}}),te.find.TAG=K.getElementsByTagName?function(qe,vt){if(typeof vt.getElementsByTagName!="undefined")return vt.getElementsByTagName(qe);if(K.qsa)return vt.querySelectorAll(qe)}:function(qe,vt){var wt,$t=[],Ut=0,cn=vt.getElementsByTagName(qe);if(qe==="*"){for(;wt=cn[Ut++];)wt.nodeType===1&&$t.push(wt);return $t}return cn},te.find.CLASS=K.getElementsByClassName&&function(qe,vt){if(typeof vt.getElementsByClassName!="undefined"&&yn)return vt.getElementsByClassName(qe)},Pr=[],Qt=[],(K.qsa=Tl.test(lt.querySelectorAll))&&(ii(function(qe){var vt;an.appendChild(qe).innerHTML="",qe.querySelectorAll("[msallowcapture^='']").length&&Qt.push("[*^$]="+zn+`*(?:''|"")`),qe.querySelectorAll("[selected]").length||Qt.push("\\["+zn+"*(?:value|"+gd+")"),qe.querySelectorAll("[id~="+Hn+"-]").length||Qt.push("~="),vt=lt.createElement("input"),vt.setAttribute("name",""),qe.appendChild(vt),qe.querySelectorAll("[name='']").length||Qt.push("\\["+zn+"*name"+zn+"*="+zn+`*(?:''|"")`),qe.querySelectorAll(":checked").length||Qt.push(":checked"),qe.querySelectorAll("a#"+Hn+"+*").length||Qt.push(".#.+[+~]"),qe.querySelectorAll("\\\f"),Qt.push("[\\r\\n\\f]")}),ii(function(qe){qe.innerHTML="";var vt=lt.createElement("input");vt.setAttribute("type","hidden"),qe.appendChild(vt).setAttribute("name","D"),qe.querySelectorAll("[name=d]").length&&Qt.push("name"+zn+"*[*^$|!~]?="),qe.querySelectorAll(":enabled").length!==2&&Qt.push(":enabled",":disabled"),an.appendChild(qe).disabled=!0,qe.querySelectorAll(":disabled").length!==2&&Qt.push(":enabled",":disabled"),qe.querySelectorAll("*,:x"),Qt.push(",.*:")})),(K.matchesSelector=Tl.test(xr=an.matches||an.webkitMatchesSelector||an.mozMatchesSelector||an.oMatchesSelector||an.msMatchesSelector))&&ii(function(qe){K.disconnectedMatch=xr.call(qe,"*"),xr.call(qe,"[s!='']:x"),Pr.push("!=",Vu)}),K.cssHas||Qt.push(":has"),Qt=Qt.length&&new RegExp(Qt.join("|")),Pr=Pr.length&&new RegExp(Pr.join("|")),je=Tl.test(an.compareDocumentPosition),Mi=je||Tl.test(an.contains)?function(qe,vt){var wt=qe.nodeType===9&&qe.documentElement||qe,$t=vt&&vt.parentNode;return qe===$t||!!($t&&$t.nodeType===1&&(wt.contains?wt.contains($t):qe.compareDocumentPosition&&qe.compareDocumentPosition($t)&16))}:function(qe,vt){if(vt){for(;vt=vt.parentNode;)if(vt===qe)return!0}return!1},no=je?function(qe,vt){if(qe===vt)return bt=!0,0;var wt=!qe.compareDocumentPosition-!vt.compareDocumentPosition;return wt||(wt=(qe.ownerDocument||qe)==(vt.ownerDocument||vt)?qe.compareDocumentPosition(vt):1,wt&1||!K.sortDetached&&vt.compareDocumentPosition(qe)===wt?qe==lt||qe.ownerDocument==bn&&Mi(bn,qe)?-1:vt==lt||vt.ownerDocument==bn&&Mi(bn,vt)?1:it?ro(it,qe)-ro(it,vt):0:wt&4?-1:1)}:function(qe,vt){if(qe===vt)return bt=!0,0;var wt,$t=0,Ut=qe.parentNode,cn=vt.parentNode,Ft=[qe],hn=[vt];if(!Ut||!cn)return qe==lt?-1:vt==lt?1:Ut?-1:cn?1:it?ro(it,qe)-ro(it,vt):0;if(Ut===cn)return xd(qe,vt);for(wt=qe;wt=wt.parentNode;)Ft.unshift(wt);for(wt=vt;wt=wt.parentNode;)hn.unshift(wt);for(;Ft[$t]===hn[$t];)$t++;return $t?xd(Ft[$t],hn[$t]):Ft[$t]==bn?-1:hn[$t]==bn?1:0}),lt},Gn.matches=function($e,je){return Gn($e,null,null,je)},Gn.matchesSelector=function($e,je){if(nt($e),K.matchesSelector&&yn&&!Ii[je+" "]&&(!Pr||!Pr.test(je))&&(!Qt||!Qt.test(je)))try{var Ke=xr.call($e,je);if(Ke||K.disconnectedMatch||$e.document&&$e.document.nodeType!==11)return Ke}catch{Ii(je,!0)}return Gn(je,lt,null,[$e]).length>0},Gn.contains=function($e,je){return($e.ownerDocument||$e)!=lt&&nt($e),Mi($e,je)},Gn.attr=function($e,je){($e.ownerDocument||$e)!=lt&&nt($e);var Ke=te.attrHandle[je.toLowerCase()],ct=Ke&&ps.call(te.attrHandle,je.toLowerCase())?Ke($e,je,!yn):void 0;return ct!==void 0?ct:K.attributes||!yn?$e.getAttribute(je):(ct=$e.getAttributeNode(je))&&ct.specified?ct.value:null},Gn.escape=function($e){return($e+"").replace(bd,wd)},Gn.error=function($e){throw new Error("Syntax error, unrecognized expression: "+$e)},Gn.uniqueSort=function($e){var je,Ke=[],ct=0,qe=0;if(bt=!K.detectDuplicates,it=!K.sortStable&&$e.slice(0),$e.sort(no),bt){for(;je=$e[qe++];)je===$e[qe]&&(ct=Ke.push(qe));for(;ct--;)$e.splice(Ke[ct],1)}return it=null,$e},Ce=Gn.getText=function($e){var je,Ke="",ct=0,qe=$e.nodeType;if(qe){if(qe===1||qe===9||qe===11){if(typeof $e.textContent=="string")return $e.textContent;for($e=$e.firstChild;$e;$e=$e.nextSibling)Ke+=Ce($e)}else if(qe===3||qe===4)return $e.nodeValue}else for(;je=$e[ct++];)Ke+=Ce(je);return Ke},te=Gn.selectors={cacheLength:50,createPseudo:Ji,match:Pl,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function($e){return $e[1]=$e[1].replace(Ta,Xi),$e[3]=($e[3]||$e[4]||$e[5]||"").replace(Ta,Xi),$e[2]==="~="&&($e[3]=" "+$e[3]+" "),$e.slice(0,4)},CHILD:function($e){return $e[1]=$e[1].toLowerCase(),$e[1].slice(0,3)==="nth"?($e[3]||Gn.error($e[0]),$e[4]=+($e[4]?$e[5]+($e[6]||1):2*($e[3]==="even"||$e[3]==="odd")),$e[5]=+($e[7]+$e[8]||$e[3]==="odd")):$e[3]&&Gn.error($e[0]),$e},PSEUDO:function($e){var je,Ke=!$e[6]&&$e[2];return Pl.CHILD.test($e[0])?null:($e[3]?$e[2]=$e[4]||$e[5]||"":Ke&&Ol.test(Ke)&&(je=Me(Ke,!0))&&(je=Ke.indexOf(")",Ke.length-je)-Ke.length)&&($e[0]=$e[0].slice(0,je),$e[2]=Ke.slice(0,je)),$e.slice(0,3))}},filter:{TAG:function($e){var je=$e.replace(Ta,Xi).toLowerCase();return $e==="*"?function(){return!0}:function(Ke){return Ke.nodeName&&Ke.nodeName.toLowerCase()===je}},CLASS:function($e){var je=ar[$e+" "];return je||(je=new RegExp("(^|"+zn+")"+$e+"("+zn+"|$)"))&&ar($e,function(Ke){return je.test(typeof Ke.className=="string"&&Ke.className||typeof Ke.getAttribute!="undefined"&&Ke.getAttribute("class")||"")})},ATTR:function($e,je,Ke){return function(ct){var qe=Gn.attr(ct,$e);return qe==null?je==="!=":je?(qe+="",je==="="?qe===Ke:je==="!="?qe!==Ke:je==="^="?Ke&&qe.indexOf(Ke)===0:je==="*="?Ke&&qe.indexOf(Ke)>-1:je==="$="?Ke&&qe.slice(-Ke.length)===Ke:je==="~="?(" "+qe.replace(J_," ")+" ").indexOf(Ke)>-1:je==="|="?qe===Ke||qe.slice(0,Ke.length+1)===Ke+"-":!1):!0}},CHILD:function($e,je,Ke,ct,qe){var vt=$e.slice(0,3)!=="nth",wt=$e.slice(-4)!=="last",$t=je==="of-type";return ct===1&&qe===0?function(Ut){return!!Ut.parentNode}:function(Ut,cn,Ft){var hn,Pn,Kn,dn,Tr,Jr,gi=vt!==wt?"nextSibling":"previousSibling",In=Ut.parentNode,da=$t&&Ut.nodeName.toLowerCase(),Il=!Ft&&!$t,Ri=!1;if(In){if(vt){for(;gi;){for(dn=Ut;dn=dn[gi];)if($t?dn.nodeName.toLowerCase()===da:dn.nodeType===1)return!1;Jr=gi=$e==="only"&&!Jr&&"nextSibling"}return!0}if(Jr=[wt?In.firstChild:In.lastChild],wt&&Il){for(dn=In,Kn=dn[Hn]||(dn[Hn]={}),Pn=Kn[dn.uniqueID]||(Kn[dn.uniqueID]={}),hn=Pn[$e]||[],Tr=hn[0]===ri&&hn[1],Ri=Tr&&hn[2],dn=Tr&&In.childNodes[Tr];dn=++Tr&&dn&&dn[gi]||(Ri=Tr=0)||Jr.pop();)if(dn.nodeType===1&&++Ri&&dn===Ut){Pn[$e]=[ri,Tr,Ri];break}}else if(Il&&(dn=Ut,Kn=dn[Hn]||(dn[Hn]={}),Pn=Kn[dn.uniqueID]||(Kn[dn.uniqueID]={}),hn=Pn[$e]||[],Tr=hn[0]===ri&&hn[1],Ri=Tr),Ri===!1)for(;(dn=++Tr&&dn&&dn[gi]||(Ri=Tr=0)||Jr.pop())&&!(($t?dn.nodeName.toLowerCase()===da:dn.nodeType===1)&&++Ri&&(Il&&(Kn=dn[Hn]||(dn[Hn]={}),Pn=Kn[dn.uniqueID]||(Kn[dn.uniqueID]={}),Pn[$e]=[ri,Ri]),dn===Ut)););return Ri-=qe,Ri===ct||Ri%ct===0&&Ri/ct>=0}}},PSEUDO:function($e,je){var Ke,ct=te.pseudos[$e]||te.setFilters[$e.toLowerCase()]||Gn.error("unsupported pseudo: "+$e);return ct[Hn]?ct(je):ct.length>1?(Ke=[$e,$e,"",je],te.setFilters.hasOwnProperty($e.toLowerCase())?Ji(function(qe,vt){for(var wt,$t=ct(qe,je),Ut=$t.length;Ut--;)wt=ro(qe,$t[Ut]),qe[wt]=!(vt[wt]=$t[Ut])}):function(qe){return ct(qe,0,Ke)}):ct}},pseudos:{not:Ji(function($e){var je=[],Ke=[],ct=He($e.replace(kl,"$1"));return ct[Hn]?Ji(function(qe,vt,wt,$t){for(var Ut,cn=ct(qe,null,$t,[]),Ft=qe.length;Ft--;)(Ut=cn[Ft])&&(qe[Ft]=!(vt[Ft]=Ut))}):function(qe,vt,wt){return je[0]=qe,ct(je,null,wt,Ke),je[0]=null,!Ke.pop()}}),has:Ji(function($e){return function(je){return Gn($e,je).length>0}}),contains:Ji(function($e){return $e=$e.replace(Ta,Xi),function(je){return(je.textContent||Ce(je)).indexOf($e)>-1}}),lang:Ji(function($e){return Q_.test($e||"")||Gn.error("unsupported lang: "+$e),$e=$e.replace(Ta,Xi).toLowerCase(),function(je){var Ke;do if(Ke=yn?je.lang:je.getAttribute("xml:lang")||je.getAttribute("lang"))return Ke=Ke.toLowerCase(),Ke===$e||Ke.indexOf($e+"-")===0;while((je=je.parentNode)&&je.nodeType===1);return!1}}),target:function($e){var je=O.location&&O.location.hash;return je&&je.slice(1)===$e.id},root:function($e){return $e===an},focus:function($e){return $e===lt.activeElement&&(!lt.hasFocus||lt.hasFocus())&&!!($e.type||$e.href||~$e.tabIndex)},enabled:Hh(!1),disabled:Hh(!0),checked:function($e){var je=$e.nodeName.toLowerCase();return je==="input"&&!!$e.checked||je==="option"&&!!$e.selected},selected:function($e){return $e.parentNode&&$e.parentNode.selectedIndex,$e.selected===!0},empty:function($e){for($e=$e.firstChild;$e;$e=$e.nextSibling)if($e.nodeType<6)return!1;return!0},parent:function($e){return!te.pseudos.empty($e)},header:function($e){return _d.test($e.nodeName)},input:function($e){return q_.test($e.nodeName)},button:function($e){var je=$e.nodeName.toLowerCase();return je==="input"&&$e.type==="button"||je==="button"},text:function($e){var je;return $e.nodeName.toLowerCase()==="input"&&$e.type==="text"&&((je=$e.getAttribute("type"))==null||je.toLowerCase()==="text")},first:gs(function(){return[0]}),last:gs(function($e,je){return[je-1]}),eq:gs(function($e,je,Ke){return[Ke<0?Ke+je:Ke]}),even:gs(function($e,je){for(var Ke=0;Keje?je:Ke;--ct>=0;)$e.push(ct);return $e}),gt:gs(function($e,je,Ke){for(var ct=Ke<0?Ke+je:Ke;++ct1?function(je,Ke,ct){for(var qe=$e.length;qe--;)if(!$e[qe](je,Ke,ct))return!1;return!0}:$e[0]}function iy($e,je,Ke){for(var ct=0,qe=je.length;ct-1&&(wt[Ft]=!($t[Ft]=Pn))}}else In=Ml(In===$t?In.splice(Tr,In.length):In),qe?qe(null,$t,In,cn):vs.apply($t,In)})}function Gu($e){for(var je,Ke,ct,qe=$e.length,vt=te.relative[$e[0].type],wt=vt||te.relative[" "],$t=vt?1:0,Ut=Ku(function(hn){return hn===je},wt,!0),cn=Ku(function(hn){return ro(je,hn)>-1},wt,!0),Ft=[function(hn,Pn,Kn){var dn=!vt&&(Kn||Pn!==Qe)||((je=Pn).nodeType?Ut(hn,Pn,Kn):cn(hn,Pn,Kn));return je=null,dn}];$t1&&Ed(Ft),$t>1&&Al($e.slice(0,$t-1).concat({value:$e[$t-2].type===" "?"*":""})).replace(kl,"$1"),Ke,$t0,ct=$e.length>0,qe=function(vt,wt,$t,Ut,cn){var Ft,hn,Pn,Kn=0,dn="0",Tr=vt&&[],Jr=[],gi=Qe,In=vt||ct&&te.find.TAG("*",cn),da=ri+=gi==null?1:Math.random()||.1,Il=In.length;for(cn&&(Qe=wt==lt||wt||cn);dn!==Il&&(Ft=In[dn])!=null;dn++){if(ct&&Ft){for(hn=0,!wt&&Ft.ownerDocument!=lt&&(nt(Ft),$t=!yn);Pn=$e[hn++];)if(Pn(Ft,wt||lt,$t)){Ut.push(Ft);break}cn&&(ri=da)}Ke&&((Ft=!Pn&&Ft)&&Kn--,vt&&Tr.push(Ft))}if(Kn+=dn,Ke&&dn!==Kn){for(hn=0;Pn=je[hn++];)Pn(Tr,Jr,wt,$t);if(vt){if(Kn>0)for(;dn--;)Tr[dn]||Jr[dn]||(Jr[dn]=ja.call(Ut));Jr=Ml(Jr)}vs.apply(Ut,Jr),cn&&!vt&&Jr.length>0&&Kn+je.length>1&&Gn.uniqueSort(Ut)}return cn&&(ri=da,Qe=gi),Tr};return Ke?Ji(qe):qe}return He=Gn.compile=function($e,je){var Ke,ct=[],qe=[],vt=zu[$e+" "];if(!vt){for(je||(je=Me($e)),Ke=je.length;Ke--;)vt=Gu(je[Ke]),vt[Hn]?ct.push(vt):qe.push(vt);vt=zu($e,Kh(qe,ct)),vt.selector=$e}return vt},Ue=Gn.select=function($e,je,Ke,ct){var qe,vt,wt,$t,Ut,cn=typeof $e=="function"&&$e,Ft=!ct&&Me($e=cn.selector||$e);if(Ke=Ke||[],Ft.length===1){if(vt=Ft[0]=Ft[0].slice(0),vt.length>2&&(wt=vt[0]).type==="ID"&&je.nodeType===9&&yn&&te.relative[vt[1].type]){if(je=(te.find.ID(wt.matches[0].replace(Ta,Xi),je)||[])[0],je)cn&&(je=je.parentNode);else return Ke;$e=$e.slice(vt.shift().value.length)}for(qe=Pl.needsContext.test($e)?0:vt.length;qe--&&(wt=vt[qe],!te.relative[$t=wt.type]);)if((Ut=te.find[$t])&&(ct=Ut(wt.matches[0].replace(Ta,Xi),yd.test(vt[0].type)&&Bo(je.parentNode)||je))){if(vt.splice(qe,1),$e=ct.length&&Al(vt),!$e)return vs.apply(Ke,ct),Ke;break}}return(cn||He($e,Ft))(ct,je,!yn,Ke,!je||yd.test($e)&&Bo(je.parentNode)||je),Ke},K.sortStable=Hn.split("").sort(no).join("")===Hn,K.detectDuplicates=!!bt,nt(),K.sortDetached=ii(function($e){return $e.compareDocumentPosition(lt.createElement("fieldset"))&1}),ii(function($e){return $e.innerHTML="",$e.firstChild.getAttribute("href")==="#"})||Hu("type|href|height|width",function($e,je,Ke){if(!Ke)return $e.getAttribute(je,je.toLowerCase()==="type"?1:2)}),(!K.attributes||!ii(function($e){return $e.innerHTML="",$e.firstChild.setAttribute("value",""),$e.firstChild.getAttribute("value")===""}))&&Hu("value",function($e,je,Ke){if(!Ke&&$e.nodeName.toLowerCase()==="input")return $e.defaultValue}),ii(function($e){return $e.getAttribute("disabled")==null})||Hu(gd,function($e,je,Ke){var ct;if(!Ke)return $e[je]===!0?je.toLowerCase():(ct=$e.getAttributeNode(je))&&ct.specified?ct.value:null}),Gn}(t);w.find=M,w.expr=M.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=M.uniqueSort,w.text=M.getText,w.isXMLDoc=M.isXML,w.contains=M.contains,w.escapeSelector=M.escape;var T=function(O,L,K){for(var te=[],Ce=K!==void 0;(O=O[L])&&O.nodeType!==9;)if(O.nodeType===1){if(Ce&&w(O).is(K))break;te.push(O)}return te},R=function(O,L){for(var K=[];O;O=O.nextSibling)O.nodeType===1&&O!==L&&K.push(O);return K},H=w.expr.match.needsContext;function N(O,L){return O.nodeName&&O.nodeName.toLowerCase()===L.toLowerCase()}var V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(O,L,K){return y(L)?w.grep(O,function(te,Ce){return!!L.call(te,Ce,te)!==K}):L.nodeType?w.grep(O,function(te){return te===L!==K}):typeof L!="string"?w.grep(O,function(te){return h.call(L,te)>-1!==K}):w.filter(L,O,K)}w.filter=function(O,L,K){var te=L[0];return K&&(O=":not("+O+")"),L.length===1&&te.nodeType===1?w.find.matchesSelector(te,O)?[te]:[]:w.find.matches(O,w.grep(L,function(Ce){return Ce.nodeType===1}))},w.fn.extend({find:function(O){var L,K,te=this.length,Ce=this;if(typeof O!="string")return this.pushStack(w(O).filter(function(){for(L=0;L1?w.uniqueSort(K):K},filter:function(O){return this.pushStack(U(this,O||[],!1))},not:function(O){return this.pushStack(U(this,O||[],!0))},is:function(O){return!!U(this,typeof O=="string"&&H.test(O)?w(O):O||[],!1).length}});var oe,Pe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,pe=w.fn.init=function(O,L,K){var te,Ce;if(!O)return this;if(K=K||oe,typeof O=="string")if(O[0]==="<"&&O[O.length-1]===">"&&O.length>=3?te=[null,O,null]:te=Pe.exec(O),te&&(te[1]||!L))if(te[1]){if(L=L instanceof w?L[0]:L,w.merge(this,w.parseHTML(te[1],L&&L.nodeType?L.ownerDocument||L:E,!0)),V.test(te[1])&&w.isPlainObject(L))for(te in L)y(this[te])?this[te](L[te]):this.attr(te,L[te]);return this}else return Ce=E.getElementById(te[2]),Ce&&(this[0]=Ce,this.length=1),this;else return!L||L.jquery?(L||K).find(O):this.constructor(L).find(O);else{if(O.nodeType)return this[0]=O,this.length=1,this;if(y(O))return K.ready!==void 0?K.ready(O):O(w)}return w.makeArray(O,this)};pe.prototype=w.fn,oe=w(E);var ye=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(O){var L=w(O,this),K=L.length;return this.filter(function(){for(var te=0;te-1:K.nodeType===1&&w.find.matchesSelector(K,O))){Se.push(K);break}}return this.pushStack(Se.length>1?w.uniqueSort(Se):Se)},index:function(O){return O?typeof O=="string"?h.call(w(O),this[0]):h.call(this,O.jquery?O[0]:O):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(O,L){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(O,L))))},addBack:function(O){return this.add(O==null?this.prevObject:this.prevObject.filter(O))}});function xe(O,L){for(;(O=O[L])&&O.nodeType!==1;);return O}w.each({parent:function(O){var L=O.parentNode;return L&&L.nodeType!==11?L:null},parents:function(O){return T(O,"parentNode")},parentsUntil:function(O,L,K){return T(O,"parentNode",K)},next:function(O){return xe(O,"nextSibling")},prev:function(O){return xe(O,"previousSibling")},nextAll:function(O){return T(O,"nextSibling")},prevAll:function(O){return T(O,"previousSibling")},nextUntil:function(O,L,K){return T(O,"nextSibling",K)},prevUntil:function(O,L,K){return T(O,"previousSibling",K)},siblings:function(O){return R((O.parentNode||{}).firstChild,O)},children:function(O){return R(O.firstChild)},contents:function(O){return O.contentDocument!=null&&i(O.contentDocument)?O.contentDocument:(N(O,"template")&&(O=O.content||O),w.merge([],O.childNodes))}},function(O,L){w.fn[O]=function(K,te){var Ce=w.map(this,L,K);return O.slice(-5)!=="Until"&&(te=K),te&&typeof te=="string"&&(Ce=w.filter(te,Ce)),this.length>1&&(de[O]||w.uniqueSort(Ce),ye.test(O)&&Ce.reverse()),this.pushStack(Ce)}});var Y=/[^\x20\t\r\n\f]+/g;function se(O){var L={};return w.each(O.match(Y)||[],function(K,te){L[te]=!0}),L}w.Callbacks=function(O){O=typeof O=="string"?se(O):w.extend({},O);var L,K,te,Ce,Se=[],Me=[],He=-1,Ue=function(){for(Ce=Ce||O.once,te=L=!0;Me.length;He=-1)for(K=Me.shift();++He-1;)Se.splice(nt,1),nt<=He&&He--}),this},has:function(it){return it?w.inArray(it,Se)>-1:Se.length>0},empty:function(){return Se&&(Se=[]),this},disable:function(){return Ce=Me=[],Se=K="",this},disabled:function(){return!Se},lock:function(){return Ce=Me=[],!K&&!L&&(Se=K=""),this},locked:function(){return!!Ce},fireWith:function(it,bt){return Ce||(bt=bt||[],bt=[it,bt.slice?bt.slice():bt],Me.push(bt),L||Ue()),this},fire:function(){return Qe.fireWith(this,arguments),this},fired:function(){return!!te}};return Qe};function be(O){return O}function _e(O){throw O}function re(O,L,K,te){var Ce;try{O&&y(Ce=O.promise)?Ce.call(O).done(L).fail(K):O&&y(Ce=O.then)?Ce.call(O,L,K):L.apply(void 0,[O].slice(te))}catch(Se){K.apply(void 0,[Se])}}w.extend({Deferred:function(O){var L=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],K="pending",te={state:function(){return K},always:function(){return Ce.done(arguments).fail(arguments),this},catch:function(Se){return te.then(null,Se)},pipe:function(){var Se=arguments;return w.Deferred(function(Me){w.each(L,function(He,Ue){var Qe=y(Se[Ue[4]])&&Se[Ue[4]];Ce[Ue[1]](function(){var it=Qe&&Qe.apply(this,arguments);it&&y(it.promise)?it.promise().progress(Me.notify).done(Me.resolve).fail(Me.reject):Me[Ue[0]+"With"](this,Qe?[it]:arguments)})}),Se=null}).promise()},then:function(Se,Me,He){var Ue=0;function Qe(it,bt,nt,lt){return function(){var an=this,yn=arguments,Qt=function(){var xr,Mi;if(!(it=Ue&&(nt!==_e&&(an=void 0,yn=[xr]),bt.rejectWith(an,yn))}};it?Pr():(w.Deferred.getStackHook&&(Pr.stackTrace=w.Deferred.getStackHook()),t.setTimeout(Pr))}}return w.Deferred(function(it){L[0][3].add(Qe(0,it,y(He)?He:be,it.notifyWith)),L[1][3].add(Qe(0,it,y(Se)?Se:be)),L[2][3].add(Qe(0,it,y(Me)?Me:_e))}).promise()},promise:function(Se){return Se!=null?w.extend(Se,te):te}},Ce={};return w.each(L,function(Se,Me){var He=Me[2],Ue=Me[5];te[Me[1]]=He.add,Ue&&He.add(function(){K=Ue},L[3-Se][2].disable,L[3-Se][3].disable,L[0][2].lock,L[0][3].lock),He.add(Me[3].fire),Ce[Me[0]]=function(){return Ce[Me[0]+"With"](this===Ce?void 0:this,arguments),this},Ce[Me[0]+"With"]=He.fireWith}),te.promise(Ce),O&&O.call(Ce,Ce),Ce},when:function(O){var L=arguments.length,K=L,te=Array(K),Ce=a.call(arguments),Se=w.Deferred(),Me=function(He){return function(Ue){te[He]=this,Ce[He]=arguments.length>1?a.call(arguments):Ue,--L||Se.resolveWith(te,Ce)}};if(L<=1&&(re(O,Se.done(Me(K)).resolve,Se.reject,!L),Se.state()==="pending"||y(Ce[K]&&Ce[K].then)))return Se.then();for(;K--;)re(Ce[K],Me(K),Se.reject);return Se.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(O,L){t.console&&t.console.warn&&O&&Q.test(O.name)&&t.console.warn("jQuery.Deferred exception: "+O.message,O.stack,L)},w.readyException=function(O){t.setTimeout(function(){throw O})};var B=w.Deferred();w.fn.ready=function(O){return B.then(O).catch(function(L){w.readyException(L)}),this},w.extend({isReady:!1,readyWait:1,ready:function(O){(O===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(O!==!0&&--w.readyWait>0)&&B.resolveWith(E,[w]))}}),w.ready.then=B.then;function I(){E.removeEventListener("DOMContentLoaded",I),t.removeEventListener("load",I),w.ready()}E.readyState==="complete"||E.readyState!=="loading"&&!E.documentElement.doScroll?t.setTimeout(w.ready):(E.addEventListener("DOMContentLoaded",I),t.addEventListener("load",I));var Z=function(O,L,K,te,Ce,Se,Me){var He=0,Ue=O.length,Qe=K==null;if(C(K)==="object"){Ce=!0;for(He in K)Z(O,L,He,K[He],!0,Se,Me)}else if(te!==void 0&&(Ce=!0,y(te)||(Me=!0),Qe&&(Me?(L.call(O,te),L=null):(Qe=L,L=function(it,bt,nt){return Qe.call(w(it),nt)})),L))for(;He1,null,!0)},removeData:function(O){return this.each(function(){Te.remove(this,O)})}}),w.extend({queue:function(O,L,K){var te;if(O)return L=(L||"fx")+"queue",te=q.get(O,L),K&&(!te||Array.isArray(K)?te=q.access(O,L,w.makeArray(K)):te.push(K)),te||[]},dequeue:function(O,L){L=L||"fx";var K=w.queue(O,L),te=K.length,Ce=K.shift(),Se=w._queueHooks(O,L),Me=function(){w.dequeue(O,L)};Ce==="inprogress"&&(Ce=K.shift(),te--),Ce&&(L==="fx"&&K.unshift("inprogress"),delete Se.stop,Ce.call(O,Me,Se)),!te&&Se&&Se.empty.fire()},_queueHooks:function(O,L){var K=L+"queueHooks";return q.get(O,K)||q.access(O,K,{empty:w.Callbacks("once memory").add(function(){q.remove(O,[L+"queue",K])})})}}),w.fn.extend({queue:function(O,L){var K=2;return typeof O!="string"&&(L=O,O="fx",K--),arguments.length\x20\t\r\n\f]*)/i,At=/^$|^module$|\/(?:java|ecma)script/i;(function(){var O=E.createDocumentFragment(),L=O.appendChild(E.createElement("div")),K=E.createElement("input");K.setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),L.appendChild(K),_.checkClone=L.cloneNode(!0).cloneNode(!0).lastChild.checked,L.innerHTML="",_.noCloneChecked=!!L.cloneNode(!0).lastChild.defaultValue,L.innerHTML="",_.option=!!L.lastChild})();var It={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,_.option||(It.optgroup=It.option=[1,""]);function ht(O,L){var K;return typeof O.getElementsByTagName!="undefined"?K=O.getElementsByTagName(L||"*"):typeof O.querySelectorAll!="undefined"?K=O.querySelectorAll(L||"*"):K=[],L===void 0||L&&N(O,L)?w.merge([O],K):K}function Rt(O,L){for(var K=0,te=O.length;K-1){Ce&&Ce.push(Se);continue}if(Qe=ne(Se),Me=ht(bt.appendChild(Se),"script"),Qe&&Rt(Me),K)for(it=0;Se=Me[it++];)At.test(Se.type||"")&&K.push(Se)}return bt}var sn=/^([^.]*)(?:\.(.+)|)/;function Zt(){return!0}function Xt(){return!1}function qt(O,L){return O===Jt()==(L==="focus")}function Jt(){try{return E.activeElement}catch{}}function fn(O,L,K,te,Ce,Se){var Me,He;if(typeof L=="object"){typeof K!="string"&&(te=te||K,K=void 0);for(He in L)fn(O,He,K,te,L[He],Se);return O}if(te==null&&Ce==null?(Ce=K,te=K=void 0):Ce==null&&(typeof K=="string"?(Ce=te,te=void 0):(Ce=te,te=K,K=void 0)),Ce===!1)Ce=Xt;else if(!Ce)return O;return Se===1&&(Me=Ce,Ce=function(Ue){return w().off(Ue),Me.apply(this,arguments)},Ce.guid=Me.guid||(Me.guid=w.guid++)),O.each(function(){w.event.add(this,L,Ce,te,K)})}w.event={global:{},add:function(O,L,K,te,Ce){var Se,Me,He,Ue,Qe,it,bt,nt,lt,an,yn,Qt=q.get(O);if(!!G(O))for(K.handler&&(Se=K,K=Se.handler,Ce=Se.selector),Ce&&w.find.matchesSelector(X,Ce),K.guid||(K.guid=w.guid++),(Ue=Qt.events)||(Ue=Qt.events=Object.create(null)),(Me=Qt.handle)||(Me=Qt.handle=function(Pr){return typeof w!="undefined"&&w.event.triggered!==Pr.type?w.event.dispatch.apply(O,arguments):void 0}),L=(L||"").match(Y)||[""],Qe=L.length;Qe--;)He=sn.exec(L[Qe])||[],lt=yn=He[1],an=(He[2]||"").split(".").sort(),lt&&(bt=w.event.special[lt]||{},lt=(Ce?bt.delegateType:bt.bindType)||lt,bt=w.event.special[lt]||{},it=w.extend({type:lt,origType:yn,data:te,handler:K,guid:K.guid,selector:Ce,needsContext:Ce&&w.expr.match.needsContext.test(Ce),namespace:an.join(".")},Se),(nt=Ue[lt])||(nt=Ue[lt]=[],nt.delegateCount=0,(!bt.setup||bt.setup.call(O,te,an,Me)===!1)&&O.addEventListener&&O.addEventListener(lt,Me)),bt.add&&(bt.add.call(O,it),it.handler.guid||(it.handler.guid=K.guid)),Ce?nt.splice(nt.delegateCount++,0,it):nt.push(it),w.event.global[lt]=!0)},remove:function(O,L,K,te,Ce){var Se,Me,He,Ue,Qe,it,bt,nt,lt,an,yn,Qt=q.hasData(O)&&q.get(O);if(!(!Qt||!(Ue=Qt.events))){for(L=(L||"").match(Y)||[""],Qe=L.length;Qe--;){if(He=sn.exec(L[Qe])||[],lt=yn=He[1],an=(He[2]||"").split(".").sort(),!lt){for(lt in Ue)w.event.remove(O,lt+L[Qe],K,te,!0);continue}for(bt=w.event.special[lt]||{},lt=(te?bt.delegateType:bt.bindType)||lt,nt=Ue[lt]||[],He=He[2]&&new RegExp("(^|\\.)"+an.join("\\.(?:.*\\.|)")+"(\\.|$)"),Me=Se=nt.length;Se--;)it=nt[Se],(Ce||yn===it.origType)&&(!K||K.guid===it.guid)&&(!He||He.test(it.namespace))&&(!te||te===it.selector||te==="**"&&it.selector)&&(nt.splice(Se,1),it.selector&&nt.delegateCount--,bt.remove&&bt.remove.call(O,it));Me&&!nt.length&&((!bt.teardown||bt.teardown.call(O,an,Qt.handle)===!1)&&w.removeEvent(O,lt,Qt.handle),delete Ue[lt])}w.isEmptyObject(Ue)&&q.remove(O,"handle events")}},dispatch:function(O){var L,K,te,Ce,Se,Me,He=new Array(arguments.length),Ue=w.event.fix(O),Qe=(q.get(this,"events")||Object.create(null))[Ue.type]||[],it=w.event.special[Ue.type]||{};for(He[0]=Ue,L=1;L=1)){for(;Qe!==this;Qe=Qe.parentNode||this)if(Qe.nodeType===1&&!(O.type==="click"&&Qe.disabled===!0)){for(Se=[],Me={},K=0;K-1:w.find(Ce,this,null,[Qe]).length),Me[Ce]&&Se.push(te);Se.length&&He.push({elem:Qe,handlers:Se})}}return Qe=this,Ue\s*$/g;function Wt(O,L){return N(O,"table")&&N(L.nodeType!==11?L:L.firstChild,"tr")&&w(O).children("tbody")[0]||O}function Oe(O){return O.type=(O.getAttribute("type")!==null)+"/"+O.type,O}function Be(O){return(O.type||"").slice(0,5)==="true/"?O.type=O.type.slice(5):O.removeAttribute("type"),O}function Fe(O,L){var K,te,Ce,Se,Me,He,Ue;if(L.nodeType===1){if(q.hasData(O)&&(Se=q.get(O),Ue=Se.events,Ue)){q.remove(L,"handle events");for(Ce in Ue)for(K=0,te=Ue[Ce].length;K1&&typeof lt=="string"&&!_.checkClone&&at.test(lt))return O.each(function(yn){var Qt=O.eq(yn);an&&(L[0]=lt.call(this,yn,Qt.html())),tt(Qt,L,K,te)});if(bt&&(Ce=pn(L,O[0].ownerDocument,!1,O,te),Se=Ce.firstChild,Ce.childNodes.length===1&&(Ce=Se),Se||te)){for(Me=w.map(ht(Ce,"script"),Oe),He=Me.length;it0&&Rt(Me,!Ue&&ht(O,"script")),He},cleanData:function(O){for(var L,K,te,Ce=w.event.special,Se=0;(K=O[Se])!==void 0;Se++)if(G(K)){if(L=K[q.expando]){if(L.events)for(te in L.events)Ce[te]?w.event.remove(K,te):w.removeEvent(K,te,L.handle);K[q.expando]=void 0}K[Te.expando]&&(K[Te.expando]=void 0)}}}),w.fn.extend({detach:function(O){return ot(this,O,!0)},remove:function(O){return ot(this,O)},text:function(O){return Z(this,function(L){return L===void 0?w.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=L)})},null,O,arguments.length)},append:function(){return tt(this,arguments,function(O){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var L=Wt(this,O);L.appendChild(O)}})},prepend:function(){return tt(this,arguments,function(O){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var L=Wt(this,O);L.insertBefore(O,L.firstChild)}})},before:function(){return tt(this,arguments,function(O){this.parentNode&&this.parentNode.insertBefore(O,this)})},after:function(){return tt(this,arguments,function(O){this.parentNode&&this.parentNode.insertBefore(O,this.nextSibling)})},empty:function(){for(var O,L=0;(O=this[L])!=null;L++)O.nodeType===1&&(w.cleanData(ht(O,!1)),O.textContent="");return this},clone:function(O,L){return O=O==null?!1:O,L=L==null?O:L,this.map(function(){return w.clone(this,O,L)})},html:function(O){return Z(this,function(L){var K=this[0]||{},te=0,Ce=this.length;if(L===void 0&&K.nodeType===1)return K.innerHTML;if(typeof L=="string"&&!rt.test(L)&&!It[(Pt.exec(L)||["",""])[1].toLowerCase()]){L=w.htmlPrefilter(L);try{for(;te=0&&(Ue+=Math.max(0,Math.ceil(O["offset"+L[0].toUpperCase()+L.slice(1)]-Se-Ue-He-.5))||0),Ue}function Ki(O,L,K){var te=kt(O),Ce=!_.boxSizingReliable()||K,Se=Ce&&w.css(O,"boxSizing",!1,te)==="border-box",Me=Se,He=en(O,L,te),Ue="offset"+L[0].toUpperCase()+L.slice(1);if(pt.test(He)){if(!K)return He;He="auto"}return(!_.boxSizingReliable()&&Se||!_.reliableTrDimensions()&&N(O,"tr")||He==="auto"||!parseFloat(He)&&w.css(O,"display",!1,te)==="inline")&&O.getClientRects().length&&(Se=w.css(O,"boxSizing",!1,te)==="border-box",Me=Ue in O,Me&&(He=O[Ue])),He=parseFloat(He)||0,He+Ti(O,L,K||(Se?"border":"content"),Me,te,He)+"px"}w.extend({cssHooks:{opacity:{get:function(O,L){if(L){var K=en(O,"opacity");return K===""?"1":K}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(O,L,K,te){if(!(!O||O.nodeType===3||O.nodeType===8||!O.style)){var Ce,Se,Me,He=J(L),Ue=yt.test(L),Qe=O.style;if(Ue||(L=Xn(He)),Me=w.cssHooks[L]||w.cssHooks[He],K!==void 0){if(Se=typeof K,Se==="string"&&(Ce=F.exec(K))&&Ce[1]&&(K=fe(O,L,Ce),Se="number"),K==null||K!==K)return;Se==="number"&&!Ue&&(K+=Ce&&Ce[3]||(w.cssNumber[He]?"":"px")),!_.clearCloneStyle&&K===""&&L.indexOf("background")===0&&(Qe[L]="inherit"),(!Me||!("set"in Me)||(K=Me.set(O,K,te))!==void 0)&&(Ue?Qe.setProperty(L,K):Qe[L]=K)}else return Me&&"get"in Me&&(Ce=Me.get(O,!1,te))!==void 0?Ce:Qe[L]}},css:function(O,L,K,te){var Ce,Se,Me,He=J(L),Ue=yt.test(L);return Ue||(L=Xn(He)),Me=w.cssHooks[L]||w.cssHooks[He],Me&&"get"in Me&&(Ce=Me.get(O,!0,K)),Ce===void 0&&(Ce=en(O,L,te)),Ce==="normal"&&L in Hi&&(Ce=Hi[L]),K===""||K?(Se=parseFloat(Ce),K===!0||isFinite(Se)?Se||0:Ce):Ce}}),w.each(["height","width"],function(O,L){w.cssHooks[L]={get:function(K,te,Ce){if(te)return Yr.test(w.css(K,"display"))&&(!K.getClientRects().length||!K.getBoundingClientRect().width)?Vt(K,Or,function(){return Ki(K,L,Ce)}):Ki(K,L,Ce)},set:function(K,te,Ce){var Se,Me=kt(K),He=!_.scrollboxSize()&&Me.position==="absolute",Ue=He||Ce,Qe=Ue&&w.css(K,"boxSizing",!1,Me)==="border-box",it=Ce?Ti(K,L,Ce,Qe,Me):0;return Qe&&He&&(it-=Math.ceil(K["offset"+L[0].toUpperCase()+L.slice(1)]-parseFloat(Me[L])-Ti(K,L,"border",!1,Me)-.5)),it&&(Se=F.exec(te))&&(Se[3]||"px")!=="px"&&(K.style[L]=te,te=w.css(K,L)),ni(K,te,it)}}}),w.cssHooks.marginLeft=on(_.reliableMarginLeft,function(O,L){if(L)return(parseFloat(en(O,"marginLeft"))||O.getBoundingClientRect().left-Vt(O,{marginLeft:0},function(){return O.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(O,L){w.cssHooks[O+L]={expand:function(K){for(var te=0,Ce={},Se=typeof K=="string"?K.split(" "):[K];te<4;te++)Ce[O+W[te]+L]=Se[te]||Se[te-2]||Se[0];return Ce}},O!=="margin"&&(w.cssHooks[O+L].set=ni)}),w.fn.extend({css:function(O,L){return Z(this,function(K,te,Ce){var Se,Me,He={},Ue=0;if(Array.isArray(te)){for(Se=kt(K),Me=te.length;Ue1)}});function _r(O,L,K,te,Ce){return new _r.prototype.init(O,L,K,te,Ce)}w.Tween=_r,_r.prototype={constructor:_r,init:function(O,L,K,te,Ce,Se){this.elem=O,this.prop=K,this.easing=Ce||w.easing._default,this.options=L,this.start=this.now=this.cur(),this.end=te,this.unit=Se||(w.cssNumber[K]?"":"px")},cur:function(){var O=_r.propHooks[this.prop];return O&&O.get?O.get(this):_r.propHooks._default.get(this)},run:function(O){var L,K=_r.propHooks[this.prop];return this.options.duration?this.pos=L=w.easing[this.easing](O,this.options.duration*O,0,1,this.options.duration):this.pos=L=O,this.now=(this.end-this.start)*L+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),K&&K.set?K.set(this):_r.propHooks._default.set(this),this}},_r.prototype.init.prototype=_r.prototype,_r.propHooks={_default:{get:function(O){var L;return O.elem.nodeType!==1||O.elem[O.prop]!=null&&O.elem.style[O.prop]==null?O.elem[O.prop]:(L=w.css(O.elem,O.prop,""),!L||L==="auto"?0:L)},set:function(O){w.fx.step[O.prop]?w.fx.step[O.prop](O):O.elem.nodeType===1&&(w.cssHooks[O.prop]||O.elem.style[Xn(O.prop)]!=null)?w.style(O.elem,O.prop,O.now+O.unit):O.elem[O.prop]=O.now}}},_r.propHooks.scrollTop=_r.propHooks.scrollLeft={set:function(O){O.elem.nodeType&&O.elem.parentNode&&(O.elem[O.prop]=O.now)}},w.easing={linear:function(O){return O},swing:function(O){return .5-Math.cos(O*Math.PI)/2},_default:"swing"},w.fx=_r.prototype.init,w.fx.step={};var Vr,Ai,Gi=/^(?:toggle|show|hide)$/,Ie=/queueHooks$/;function We(){Ai&&(E.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(We):t.setTimeout(We,w.fx.interval),w.fx.tick())}function Le(){return t.setTimeout(function(){Vr=void 0}),Vr=Date.now()}function Ye(O,L){var K,te=0,Ce={height:O};for(L=L?1:0;te<4;te+=2-L)K=W[te],Ce["margin"+K]=Ce["padding"+K]=O;return L&&(Ce.opacity=Ce.width=O),Ce}function Ze(O,L,K){for(var te,Ce=(mt.tweeners[L]||[]).concat(mt.tweeners["*"]),Se=0,Me=Ce.length;Se1)},removeAttr:function(O){return this.each(function(){w.removeAttr(this,O)})}}),w.extend({attr:function(O,L,K){var te,Ce,Se=O.nodeType;if(!(Se===3||Se===8||Se===2)){if(typeof O.getAttribute=="undefined")return w.prop(O,L,K);if((Se!==1||!w.isXMLDoc(O))&&(Ce=w.attrHooks[L.toLowerCase()]||(w.expr.match.bool.test(L)?Dt:void 0)),K!==void 0){if(K===null){w.removeAttr(O,L);return}return Ce&&"set"in Ce&&(te=Ce.set(O,K,L))!==void 0?te:(O.setAttribute(L,K+""),K)}return Ce&&"get"in Ce&&(te=Ce.get(O,L))!==null?te:(te=w.find.attr(O,L),te==null?void 0:te)}},attrHooks:{type:{set:function(O,L){if(!_.radioValue&&L==="radio"&&N(O,"input")){var K=O.value;return O.setAttribute("type",L),K&&(O.value=K),L}}}},removeAttr:function(O,L){var K,te=0,Ce=L&&L.match(Y);if(Ce&&O.nodeType===1)for(;K=Ce[te++];)O.removeAttribute(K)}}),Dt={set:function(O,L,K){return L===!1?w.removeAttr(O,K):O.setAttribute(K,K),K}},w.each(w.expr.match.bool.source.match(/\w+/g),function(O,L){var K=St[L]||w.find.attr;St[L]=function(te,Ce,Se){var Me,He,Ue=Ce.toLowerCase();return Se||(He=St[Ue],St[Ue]=Me,Me=K(te,Ce,Se)!=null?Ue:null,St[Ue]=He),Me}});var Ct=/^(?:input|select|textarea|button)$/i,Ht=/^(?:a|area)$/i;w.fn.extend({prop:function(O,L){return Z(this,w.prop,O,L,arguments.length>1)},removeProp:function(O){return this.each(function(){delete this[w.propFix[O]||O]})}}),w.extend({prop:function(O,L,K){var te,Ce,Se=O.nodeType;if(!(Se===3||Se===8||Se===2))return(Se!==1||!w.isXMLDoc(O))&&(L=w.propFix[L]||L,Ce=w.propHooks[L]),K!==void 0?Ce&&"set"in Ce&&(te=Ce.set(O,K,L))!==void 0?te:O[L]=K:Ce&&"get"in Ce&&(te=Ce.get(O,L))!==null?te:O[L]},propHooks:{tabIndex:{get:function(O){var L=w.find.attr(O,"tabindex");return L?parseInt(L,10):Ct.test(O.nodeName)||Ht.test(O.nodeName)&&O.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(w.propHooks.selected={get:function(O){var L=O.parentNode;return L&&L.parentNode&&L.parentNode.selectedIndex,null},set:function(O){var L=O.parentNode;L&&(L.selectedIndex,L.parentNode&&L.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function vn(O){var L=O.match(Y)||[];return L.join(" ")}function Cn(O){return O.getAttribute&&O.getAttribute("class")||""}function Et(O){return Array.isArray(O)?O:typeof O=="string"?O.match(Y)||[]:[]}w.fn.extend({addClass:function(O){var L,K,te,Ce,Se,Me;return y(O)?this.each(function(He){w(this).addClass(O.call(this,He,Cn(this)))}):(L=Et(O),L.length?this.each(function(){if(te=Cn(this),K=this.nodeType===1&&" "+vn(te)+" ",K){for(Se=0;Se-1;)K=K.replace(" "+Ce+" "," ");Me=vn(K),te!==Me&&this.setAttribute("class",Me)}}):this):this.attr("class","")},toggleClass:function(O,L){var K,te,Ce,Se,Me=typeof O,He=Me==="string"||Array.isArray(O);return y(O)?this.each(function(Ue){w(this).toggleClass(O.call(this,Ue,Cn(this),L),L)}):typeof L=="boolean"&&He?L?this.addClass(O):this.removeClass(O):(K=Et(O),this.each(function(){if(He)for(Se=w(this),Ce=0;Ce-1)return!0;return!1}});var tr=/\r/g;w.fn.extend({val:function(O){var L,K,te,Ce=this[0];return arguments.length?(te=y(O),this.each(function(Se){var Me;this.nodeType===1&&(te?Me=O.call(this,Se,w(this).val()):Me=O,Me==null?Me="":typeof Me=="number"?Me+="":Array.isArray(Me)&&(Me=w.map(Me,function(He){return He==null?"":He+""})),L=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],(!L||!("set"in L)||L.set(this,Me,"value")===void 0)&&(this.value=Me))})):Ce?(L=w.valHooks[Ce.type]||w.valHooks[Ce.nodeName.toLowerCase()],L&&"get"in L&&(K=L.get(Ce,"value"))!==void 0?K:(K=Ce.value,typeof K=="string"?K.replace(tr,""):K==null?"":K)):void 0}}),w.extend({valHooks:{option:{get:function(O){var L=w.find.attr(O,"value");return L!=null?L:vn(w.text(O))}},select:{get:function(O){var L,K,te,Ce=O.options,Se=O.selectedIndex,Me=O.type==="select-one",He=Me?null:[],Ue=Me?Se+1:Ce.length;for(Se<0?te=Ue:te=Me?Se:0;te-1)&&(K=!0);return K||(O.selectedIndex=-1),Se}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(O,L){if(Array.isArray(L))return O.checked=w.inArray(w(O).val(),L)>-1}},_.checkOn||(w.valHooks[this].get=function(O){return O.getAttribute("value")===null?"on":O.value})}),_.focusin="onfocusin"in t;var En=/^(?:focusinfocus|focusoutblur)$/,dr=function(O){O.stopPropagation()};w.extend(w.event,{trigger:function(O,L,K,te){var Ce,Se,Me,He,Ue,Qe,it,bt,nt=[K||E],lt=d.call(O,"type")?O.type:O,an=d.call(O,"namespace")?O.namespace.split("."):[];if(Se=bt=Me=K=K||E,!(K.nodeType===3||K.nodeType===8)&&!En.test(lt+w.event.triggered)&&(lt.indexOf(".")>-1&&(an=lt.split("."),lt=an.shift(),an.sort()),Ue=lt.indexOf(":")<0&&"on"+lt,O=O[w.expando]?O:new w.Event(lt,typeof O=="object"&&O),O.isTrigger=te?2:3,O.namespace=an.join("."),O.rnamespace=O.namespace?new RegExp("(^|\\.)"+an.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,O.result=void 0,O.target||(O.target=K),L=L==null?[O]:w.makeArray(L,[O]),it=w.event.special[lt]||{},!(!te&&it.trigger&&it.trigger.apply(K,L)===!1))){if(!te&&!it.noBubble&&!b(K)){for(He=it.delegateType||lt,En.test(He+lt)||(Se=Se.parentNode);Se;Se=Se.parentNode)nt.push(Se),Me=Se;Me===(K.ownerDocument||E)&&nt.push(Me.defaultView||Me.parentWindow||t)}for(Ce=0;(Se=nt[Ce++])&&!O.isPropagationStopped();)bt=Se,O.type=Ce>1?He:it.bindType||lt,Qe=(q.get(Se,"events")||Object.create(null))[O.type]&&q.get(Se,"handle"),Qe&&Qe.apply(Se,L),Qe=Ue&&Se[Ue],Qe&&Qe.apply&&G(Se)&&(O.result=Qe.apply(Se,L),O.result===!1&&O.preventDefault());return O.type=lt,!te&&!O.isDefaultPrevented()&&(!it._default||it._default.apply(nt.pop(),L)===!1)&&G(K)&&Ue&&y(K[lt])&&!b(K)&&(Me=K[Ue],Me&&(K[Ue]=null),w.event.triggered=lt,O.isPropagationStopped()&&bt.addEventListener(lt,dr),K[lt](),O.isPropagationStopped()&&bt.removeEventListener(lt,dr),w.event.triggered=void 0,Me&&(K[Ue]=Me)),O.result}},simulate:function(O,L,K){var te=w.extend(new w.Event,K,{type:O,isSimulated:!0});w.event.trigger(te,null,L)}}),w.fn.extend({trigger:function(O,L){return this.each(function(){w.event.trigger(O,L,this)})},triggerHandler:function(O,L){var K=this[0];if(K)return w.event.trigger(O,L,K,!0)}}),_.focusin||w.each({focus:"focusin",blur:"focusout"},function(O,L){var K=function(te){w.event.simulate(L,te.target,w.event.fix(te))};w.event.special[L]={setup:function(){var te=this.ownerDocument||this.document||this,Ce=q.access(te,L);Ce||te.addEventListener(O,K,!0),q.access(te,L,(Ce||0)+1)},teardown:function(){var te=this.ownerDocument||this.document||this,Ce=q.access(te,L)-1;Ce?q.access(te,L,Ce):(te.removeEventListener(O,K,!0),q.remove(te,L))}}});var mi=t.location,Xr={guid:Date.now()},Wr=/\?/;w.parseXML=function(O){var L,K;if(!O||typeof O!="string")return null;try{L=new t.DOMParser().parseFromString(O,"text/xml")}catch{}return K=L&&L.getElementsByTagName("parsererror")[0],(!L||K)&&w.error("Invalid XML: "+(K?w.map(K.childNodes,function(te){return te.textContent}).join(`
`):O)),L};var Pa=/\[\]$/,gt=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,cd=/^(?:input|select|textarea|keygen)/i;function to(O,L,K,te){var Ce;if(Array.isArray(L))w.each(L,function(Se,Me){K||Pa.test(O)?te(O,Me):to(O+"["+(typeof Me=="object"&&Me!=null?Se:"")+"]",Me,K,te)});else if(!K&&C(L)==="object")for(Ce in L)to(O+"["+Ce+"]",L[Ce],K,te);else te(O,L)}w.param=function(O,L){var K,te=[],Ce=function(Se,Me){var He=y(Me)?Me():Me;te[te.length]=encodeURIComponent(Se)+"="+encodeURIComponent(He==null?"":He)};if(O==null)return"";if(Array.isArray(O)||O.jquery&&!w.isPlainObject(O))w.each(O,function(){Ce(this.name,this.value)});else for(K in O)to(K,O[K],L,Ce);return te.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var O=w.prop(this,"elements");return O?w.makeArray(O):this}).filter(function(){var O=this.type;return this.name&&!w(this).is(":disabled")&&cd.test(this.nodeName)&&!eo.test(O)&&(this.checked||!_t.test(O))}).map(function(O,L){var K=w(this).val();return K==null?null:Array.isArray(K)?w.map(K,function(te){return{name:L.name,value:te.replace(gt,`\r
`)}}):{name:L.name,value:K.replace(gt,`\r
`)}}).get()}});var V_=/%20/g,W_=/#.*$/,Lh=/([?&])_=[^&]*/,Fu=/^(.*?):[ \t]*([^\r\n]*)$/mg,Bh=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fh=/^(?:GET|HEAD)$/,H_=/^\/\//,Uh={},dd={},fd="*/".concat("*"),Ro=E.createElement("a");Ro.href=mi.href;function hd(O){return function(L,K){typeof L!="string"&&(K=L,L="*");var te,Ce=0,Se=L.toLowerCase().match(Y)||[];if(y(K))for(;te=Se[Ce++];)te[0]==="+"?(te=te.slice(1)||"*",(O[te]=O[te]||[]).unshift(K)):(O[te]=O[te]||[]).push(K)}}function pd(O,L,K,te){var Ce={},Se=O===dd;function Me(He){var Ue;return Ce[He]=!0,w.each(O[He]||[],function(Qe,it){var bt=it(L,K,te);if(typeof bt=="string"&&!Se&&!Ce[bt])return L.dataTypes.unshift(bt),Me(bt),!1;if(Se)return!(Ue=bt)}),Ue}return Me(L.dataTypes[0])||!Ce["*"]&&Me("*")}function vd(O,L){var K,te,Ce=w.ajaxSettings.flatOptions||{};for(K in L)L[K]!==void 0&&((Ce[K]?O:te||(te={}))[K]=L[K]);return te&&w.extend(!0,O,te),O}function Uu(O,L,K){for(var te,Ce,Se,Me,He=O.contents,Ue=O.dataTypes;Ue[0]==="*";)Ue.shift(),te===void 0&&(te=O.mimeType||L.getResponseHeader("Content-Type"));if(te){for(Ce in He)if(He[Ce]&&He[Ce].test(te)){Ue.unshift(Ce);break}}if(Ue[0]in K)Se=Ue[0];else{for(Ce in K){if(!Ue[0]||O.converters[Ce+" "+Ue[0]]){Se=Ce;break}Me||(Me=Ce)}Se=Se||Me}if(Se)return Se!==Ue[0]&&Ue.unshift(Se),K[Se]}function K_(O,L,K,te){var Ce,Se,Me,He,Ue,Qe={},it=O.dataTypes.slice();if(it[1])for(Me in O.converters)Qe[Me.toLowerCase()]=O.converters[Me];for(Se=it.shift();Se;)if(O.responseFields[Se]&&(K[O.responseFields[Se]]=L),!Ue&&te&&O.dataFilter&&(L=O.dataFilter(L,O.dataType)),Ue=Se,Se=it.shift(),Se){if(Se==="*")Se=Ue;else if(Ue!=="*"&&Ue!==Se){if(Me=Qe[Ue+" "+Se]||Qe["* "+Se],!Me){for(Ce in Qe)if(He=Ce.split(" "),He[1]===Se&&(Me=Qe[Ue+" "+He[0]]||Qe["* "+He[0]],Me)){Me===!0?Me=Qe[Ce]:Qe[Ce]!==!0&&(Se=He[0],it.unshift(He[1]));break}}if(Me!==!0)if(Me&&O.throws)L=Me(L);else try{L=Me(L)}catch(bt){return{state:"parsererror",error:Me?bt:"No conversion from "+Ue+" to "+Se}}}}return{state:"success",data:L}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mi.href,type:"GET",isLocal:Bh.test(mi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":fd,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(O,L){return L?vd(vd(O,w.ajaxSettings),L):vd(w.ajaxSettings,O)},ajaxPrefilter:hd(Uh),ajaxTransport:hd(dd),ajax:function(O,L){typeof O=="object"&&(L=O,O=void 0),L=L||{};var K,te,Ce,Se,Me,He,Ue,Qe,it,bt,nt=w.ajaxSetup({},L),lt=nt.context||nt,an=nt.context&&(lt.nodeType||lt.jquery)?w(lt):w.event,yn=w.Deferred(),Qt=w.Callbacks("once memory"),Pr=nt.statusCode||{},xr={},Mi={},Hn="canceled",bn={readyState:0,getResponseHeader:function(Rn){var ar;if(Ue){if(!Se)for(Se={};ar=Fu.exec(Ce);)Se[ar[1].toLowerCase()+" "]=(Se[ar[1].toLowerCase()+" "]||[]).concat(ar[2]);ar=Se[Rn.toLowerCase()+" "]}return ar==null?null:ar.join(", ")},getAllResponseHeaders:function(){return Ue?Ce:null},setRequestHeader:function(Rn,ar){return Ue==null&&(Rn=Mi[Rn.toLowerCase()]=Mi[Rn.toLowerCase()]||Rn,xr[Rn]=ar),this},overrideMimeType:function(Rn){return Ue==null&&(nt.mimeType=Rn),this},statusCode:function(Rn){var ar;if(Rn)if(Ue)bn.always(Rn[bn.status]);else for(ar in Rn)Pr[ar]=[Pr[ar],Rn[ar]];return this},abort:function(Rn){var ar=Rn||Hn;return K&&K.abort(ar),ri(0,ar),this}};if(yn.promise(bn),nt.url=((O||nt.url||mi.href)+"").replace(H_,mi.protocol+"//"),nt.type=L.method||L.type||nt.method||nt.type,nt.dataTypes=(nt.dataType||"*").toLowerCase().match(Y)||[""],nt.crossDomain==null){He=E.createElement("a");try{He.href=nt.url,He.href=He.href,nt.crossDomain=Ro.protocol+"//"+Ro.host!=He.protocol+"//"+He.host}catch{nt.crossDomain=!0}}if(nt.data&&nt.processData&&typeof nt.data!="string"&&(nt.data=w.param(nt.data,nt.traditional)),pd(Uh,nt,L,bn),Ue)return bn;Qe=w.event&&nt.global,Qe&&w.active++===0&&w.event.trigger("ajaxStart"),nt.type=nt.type.toUpperCase(),nt.hasContent=!Fh.test(nt.type),te=nt.url.replace(W_,""),nt.hasContent?nt.data&&nt.processData&&(nt.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(nt.data=nt.data.replace(V_,"+")):(bt=nt.url.slice(te.length),nt.data&&(nt.processData||typeof nt.data=="string")&&(te+=(Wr.test(te)?"&":"?")+nt.data,delete nt.data),nt.cache===!1&&(te=te.replace(Lh,"$1"),bt=(Wr.test(te)?"&":"?")+"_="+Xr.guid+++bt),nt.url=te+bt),nt.ifModified&&(w.lastModified[te]&&bn.setRequestHeader("If-Modified-Since",w.lastModified[te]),w.etag[te]&&bn.setRequestHeader("If-None-Match",w.etag[te])),(nt.data&&nt.hasContent&&nt.contentType!==!1||L.contentType)&&bn.setRequestHeader("Content-Type",nt.contentType),bn.setRequestHeader("Accept",nt.dataTypes[0]&&nt.accepts[nt.dataTypes[0]]?nt.accepts[nt.dataTypes[0]]+(nt.dataTypes[0]!=="*"?", "+fd+"; q=0.01":""):nt.accepts["*"]);for(it in nt.headers)bn.setRequestHeader(it,nt.headers[it]);if(nt.beforeSend&&(nt.beforeSend.call(lt,bn,nt)===!1||Ue))return bn.abort();if(Hn="abort",Qt.add(nt.complete),bn.done(nt.success),bn.fail(nt.error),K=pd(dd,nt,L,bn),!K)ri(-1,"No Transport");else{if(bn.readyState=1,Qe&&an.trigger("ajaxSend",[bn,nt]),Ue)return bn;nt.async&&nt.timeout>0&&(Me=t.setTimeout(function(){bn.abort("timeout")},nt.timeout));try{Ue=!1,K.send(xr,ri)}catch(Rn){if(Ue)throw Rn;ri(-1,Rn)}}function ri(Rn,ar,Lo,zu){var Ii,no,ps,Hr,ja,$i=ar;Ue||(Ue=!0,Me&&t.clearTimeout(Me),K=void 0,Ce=zu||"",bn.readyState=Rn>0?4:0,Ii=Rn>=200&&Rn<300||Rn===304,Lo&&(Hr=Uu(nt,bn,Lo)),!Ii&&w.inArray("script",nt.dataTypes)>-1&&w.inArray("json",nt.dataTypes)<0&&(nt.converters["text script"]=function(){}),Hr=K_(nt,Hr,bn,Ii),Ii?(nt.ifModified&&(ja=bn.getResponseHeader("Last-Modified"),ja&&(w.lastModified[te]=ja),ja=bn.getResponseHeader("etag"),ja&&(w.etag[te]=ja)),Rn===204||nt.type==="HEAD"?$i="nocontent":Rn===304?$i="notmodified":($i=Hr.state,no=Hr.data,ps=Hr.error,Ii=!ps)):(ps=$i,(Rn||!$i)&&($i="error",Rn<0&&(Rn=0))),bn.status=Rn,bn.statusText=(ar||$i)+"",Ii?yn.resolveWith(lt,[no,$i,bn]):yn.rejectWith(lt,[bn,$i,ps]),bn.statusCode(Pr),Pr=void 0,Qe&&an.trigger(Ii?"ajaxSuccess":"ajaxError",[bn,nt,Ii?no:ps]),Qt.fireWith(lt,[bn,$i]),Qe&&(an.trigger("ajaxComplete",[bn,nt]),--w.active||w.event.trigger("ajaxStop")))}return bn},getJSON:function(O,L,K){return w.get(O,L,K,"json")},getScript:function(O,L){return w.get(O,void 0,L,"script")}}),w.each(["get","post"],function(O,L){w[L]=function(K,te,Ce,Se){return y(te)&&(Se=Se||Ce,Ce=te,te=void 0),w.ajax(w.extend({url:K,type:L,dataType:Se,data:te,success:Ce},w.isPlainObject(K)&&K))}}),w.ajaxPrefilter(function(O){var L;for(L in O.headers)L.toLowerCase()==="content-type"&&(O.contentType=O.headers[L]||"")}),w._evalUrl=function(O,L,K){return w.ajax({url:O,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(te){w.globalEval(te,L,K)}})},w.fn.extend({wrapAll:function(O){var L;return this[0]&&(y(O)&&(O=O.call(this[0])),L=w(O,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&L.insertBefore(this[0]),L.map(function(){for(var K=this;K.firstElementChild;)K=K.firstElementChild;return K}).append(this)),this},wrapInner:function(O){return y(O)?this.each(function(L){w(this).wrapInner(O.call(this,L))}):this.each(function(){var L=w(this),K=L.contents();K.length?K.wrapAll(O):L.append(O)})},wrap:function(O){var L=y(O);return this.each(function(K){w(this).wrapAll(L?O.call(this,K):O)})},unwrap:function(O){return this.parent(O).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(O){return!w.expr.pseudos.visible(O)},w.expr.pseudos.visible=function(O){return!!(O.offsetWidth||O.offsetHeight||O.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var G_={0:200,1223:204},No=w.ajaxSettings.xhr();_.cors=!!No&&"withCredentials"in No,_.ajax=No=!!No,w.ajaxTransport(function(O){var L,K;if(_.cors||No&&!O.crossDomain)return{send:function(te,Ce){var Se,Me=O.xhr();if(Me.open(O.type,O.url,O.async,O.username,O.password),O.xhrFields)for(Se in O.xhrFields)Me[Se]=O.xhrFields[Se];O.mimeType&&Me.overrideMimeType&&Me.overrideMimeType(O.mimeType),!O.crossDomain&&!te["X-Requested-With"]&&(te["X-Requested-With"]="XMLHttpRequest");for(Se in te)Me.setRequestHeader(Se,te[Se]);L=function(He){return function(){L&&(L=K=Me.onload=Me.onerror=Me.onabort=Me.ontimeout=Me.onreadystatechange=null,He==="abort"?Me.abort():He==="error"?typeof Me.status!="number"?Ce(0,"error"):Ce(Me.status,Me.statusText):Ce(G_[Me.status]||Me.status,Me.statusText,(Me.responseType||"text")!=="text"||typeof Me.responseText!="string"?{binary:Me.response}:{text:Me.responseText},Me.getAllResponseHeaders()))}},Me.onload=L(),K=Me.onerror=Me.ontimeout=L("error"),Me.onabort!==void 0?Me.onabort=K:Me.onreadystatechange=function(){Me.readyState===4&&t.setTimeout(function(){L&&K()})},L=L("abort");try{Me.send(O.hasContent&&O.data||null)}catch(He){if(L)throw He}},abort:function(){L&&L()}}}),w.ajaxPrefilter(function(O){O.crossDomain&&(O.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(O){return w.globalEval(O),O}}}),w.ajaxPrefilter("script",function(O){O.cache===void 0&&(O.cache=!1),O.crossDomain&&(O.type="GET")}),w.ajaxTransport("script",function(O){if(O.crossDomain||O.scriptAttrs){var L,K;return{send:function(te,Ce){L=w("