Файл: vendor/laravel/framework/src/Illuminate/Foundation/resources/exceptions/renderer/dist/scripts.js
Строк: 35850
var lr=!1,ur=!1,ot=[],pr=-1,Wr=!1;function Ql(e){tu(e)}function Jl(){Wr=!0}function eu(){Wr=!1,io()}function tu(e){ot.includes(e)||ot.push(e),io()}function nu(e){let t=ot.indexOf(e);t!==-1&&t>pr&&ot.splice(t,1)}function io(){if(!ur&&!lr){if(Wr)return;lr=!0,queueMicrotask(au)}}function au(){lr=!1,ur=!0;for(let e=0;e<ot.length;e++)ot[e](),pr=e;ot.length=0,pr=-1,ur=!1}var zt,_t,Bt,so,dr=!0;function ru(e){dr=!1,e(),dr=!0}function iu(e){zt=e.reactive,Bt=e.release,_t=t=>e.effect(t,{scheduler:n=>{dr?Ql(n):n()}}),so=e.raw}function Mi(e){_t=e}function su(e){let t=()=>{};return[a=>{let r=_t(a);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(i=>i())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),Bt(r))},r},()=>{t()}]}function oo(e,t){let n=!0,a,r=_t(()=>{let i=e();if(JSON.stringify(i),!n&&(typeof i=="object"||i!==a)){let s=a;queueMicrotask(()=>{t(i,s)})}a=i,n=!1});return()=>Bt(r)}async function ou(e){Jl();try{await e(),await Promise.resolve()}finally{eu()}}var co=[],lo=[],uo=[];function cu(e){uo.push(e)}function Vr(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,lo.push(t))}function po(e){co.push(e)}function mo(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function ho(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,a])=>{(t===void 0||t.includes(n))&&(a.forEach(r=>r()),delete e._x_attributeCleanups[n])})}function lu(e){for(e._x_effects?.forEach(nu);e._x_cleanups?.length;)e._x_cleanups.pop()()}var Zr=new MutationObserver(Qr),Yr=!1;function Xr(){Zr.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Yr=!0}function go(){uu(),Zr.disconnect(),Yr=!1}var tn=[];function uu(){let e=Zr.takeRecords();tn.push(()=>e.length>0&&Qr(e));let t=tn.length;queueMicrotask(()=>{if(tn.length===t)for(;tn.length>0;)tn.shift()()})}function z(e){if(!Yr)return e();go();let t=e();return Xr(),t}var Kr=!1,la=[];function pu(){Kr=!0}function du(){Kr=!1,Qr(la),la=[]}function Qr(e){if(Kr){la=la.concat(e);return}let t=[],n=new Set,a=new Map,r=new Map;for(let i=0;i<e.length;i++)if(!e[i].target._x_ignoreMutationObserver&&(e[i].type==="childList"&&(e[i].removedNodes.forEach(s=>{s.nodeType===1&&s._x_marker&&n.add(s)}),e[i].addedNodes.forEach(s=>{if(s.nodeType===1){if(n.has(s)){n.delete(s);return}s._x_marker||t.push(s)}})),e[i].type==="attributes")){let s=e[i].target,o=e[i].attributeName,c=e[i].oldValue,l=()=>{a.has(s)||a.set(s,[]),a.get(s).push({name:o,value:s.getAttribute(o)})},u=()=>{r.has(s)||r.set(s,[]),r.get(s).push(o)};s.hasAttribute(o)&&c===null?l():s.hasAttribute(o)?(u(),l()):u()}r.forEach((i,s)=>{ho(s,i)}),a.forEach((i,s)=>{co.forEach(o=>o(s,i))});for(let i of n)t.some(s=>s.contains(i))||lo.forEach(s=>s(i));for(let i of t)i.isConnected&&uo.forEach(s=>s(i));t=null,n=null,a=null,r=null}function fo(e){return mt(dt(e))}function Fn(e,t,n){return e._x_dataStack=[t,...dt(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(a=>a!==t)}}function dt(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?dt(e.host):e.parentNode?dt(e.parentNode):[]}function mt(e){return new Proxy({objects:e},mu)}var mu={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t)||Reflect.has(n,t))},get({objects:e},t,n){return t=="toJSON"?hu:Reflect.get(e.find(a=>Reflect.has(a,t))||{},t,n)},set({objects:e},t,n,a){const r=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],i=Object.getOwnPropertyDescriptor(r,t);return i?.set&&i?.get?i.set.call(a,n)||!0:Reflect.set(r,t,n)}};function hu(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function Jr(e){let t=a=>typeof a=="object"&&!Array.isArray(a)&&a!==null,n=(a,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(a)).forEach(([i,{value:s,enumerable:o}])=>{if(o===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let c=r===""?i:`${r}.${i}`;typeof s=="object"&&s!==null&&s._x_interceptor?a[i]=s.initialize(e,c,i):t(s)&&s!==a&&!(s instanceof Element)&&n(s,c)})};return n(e)}function bo(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(a,r,i){return e(this.initialValue,()=>gu(a,r),s=>mr(a,r,s),r,i)}};return t(n),a=>{if(typeof a=="object"&&a!==null&&a._x_interceptor){let r=n.initialize.bind(n);n.initialize=(i,s,o)=>{let c=a.initialize(i,s,o);return n.initialValue=c,r(i,s,o)}}else n.initialValue=a;return n}}function gu(e,t){return t.split(".").reduce((n,a)=>n[a],e)}function mr(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),mr(e[t[0]],t.slice(1),n)}}var _o={};function ve(e,t){_o[e]=t}function fn(e,t){let n=fu(t);return Object.entries(_o).forEach(([a,r])=>{Object.defineProperty(e,`$${a}`,{get(){return r(t,n)},enumerable:!1})}),e}function fu(e){let[t,n]=Fo(e),a={interceptor:bo,...t};return Vr(e,n),a}function bu(e,t,n,...a){try{return n(...a)}catch(r){bn(r,e,t)}}function bn(...e){return yo(...e)}var yo=yu;function _u(e){yo=e}function yu(e,t,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
${n?'Expression: "'+n+`"
`:""}`,t),setTimeout(()=>{throw e},0)}var Rt=!0;function vo(e){let t=Rt;Rt=!1;let n=e();return Rt=t,n}function ct(e,t,n={}){let a;return ne(e,t)(r=>a=r,n),a}function ne(...e){return wo(...e)}var wo=ko;function vu(e){wo=e}var xo;function wu(e){xo=e}function ko(e,t){let n={};fn(n,e);let a=[n,...dt(e)],r=typeof t=="function"?xu(a,t):Cu(a,t,e);return bu.bind(null,e,t,r)}function xu(e,t){return(n=()=>{},{scope:a={},params:r=[],context:i}={})=>{if(!Rt){_n(n,t,mt([a,...e]),r);return}let s=t.apply(mt([a,...e]),r);_n(n,s)}}var za={};function ku(e,t){if(za[e])return za[e];let n=Object.getPrototypeOf(async function(){}).constructor,a=/^[ns]*if.*(.*)/.test(e.trim())||/^(let|const)s/.test(e.trim())?`(async()=>{ ${e} })()`:e,i=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${a} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return bn(s,t,e),Promise.resolve()}})();return za[e]=i,i}function Cu(e,t,n){let a=ku(t,n);return(r=()=>{},{scope:i={},params:s=[],context:o}={})=>{a.result=void 0,a.finished=!1;let c=mt([i,...e]);if(typeof a=="function"){let l=a.call(o,a,c).catch(u=>bn(u,n,t));a.finished?(_n(r,a.result,c,s,n),a.result=void 0):l.then(u=>{_n(r,u,c,s,n)}).catch(u=>bn(u,n,t)).finally(()=>a.result=void 0)}}}function _n(e,t,n,a,r){if(Rt&&typeof t=="function"){let i=t.apply(n,a);i instanceof Promise?i.then(s=>_n(e,s,n,a)).catch(s=>bn(s,r,t)):e(i)}else typeof t=="object"&&t instanceof Promise?t.then(i=>e(i)):e(t)}function Eu(...e){return xo(...e)}function Fu(e,t,n={}){let a={};fn(a,e);let r=[a,...dt(e)],i=mt([n.scope??{},...r]),s=n.params??[];if(t.includes("await")){let o=Object.getPrototypeOf(async function(){}).constructor,c=/^[ns]*if.*(.*)/.test(t.trim())||/^(let|const)s/.test(t.trim())?`(async()=>{ ${t} })()`:t;return new o(["scope"],`with (scope) { let __result = ${c}; return __result }`).call(n.context,i)}else{let o=/^[ns]*if.*(.*)/.test(t.trim())||/^(let|const)s/.test(t.trim())?`(()=>{ ${t} })()`:t,l=new Function(["scope"],`with (scope) { let __result = ${o}; return __result }`).call(n.context,i);return typeof l=="function"&&Rt?l.apply(i,s):l}}var ei="x-";function Ut(e=""){return ei+e}function $u(e){ei=e}var ua={};function W(e,t){return ua[e]=t,{before(n){if(!ua[n]){console.warn(String.raw`Cannot find directive `${n}`. `${e}` will use the default order of execution`);return}const a=rt.indexOf(n);rt.splice(a>=0?a:rt.indexOf("DEFAULT"),0,e)}}}function ju(e){return Object.keys(ua).includes(e)}function ti(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let i=Object.entries(e._x_virtualDirectives).map(([o,c])=>({name:o,value:c})),s=Co(i);i=i.map(o=>s.find(c=>c.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),t=t.concat(i)}let a={};return t.map(So((i,s)=>a[i]=s)).filter(To).map(Tu(a,n)).sort(Ru).map(i=>Au(e,i))}function Co(e){return Array.from(e).map(So()).filter(t=>!To(t))}var hr=!1,on=new Map,Eo=Symbol();function Su(e){hr=!0;let t=Symbol();Eo=t,on.set(t,[]);let n=()=>{for(;on.get(t).length;)on.get(t).shift()();on.delete(t)},a=()=>{hr=!1,n()};e(n),a()}function Fo(e){let t=[],n=o=>t.push(o),[a,r]=su(e);return t.push(r),[{Alpine:Ht,effect:a,cleanup:n,evaluateLater:ne.bind(ne,e),evaluate:ct.bind(ct,e)},()=>t.forEach(o=>o())]}function Au(e,t){let n=()=>{},a=ua[t.type]||n,[r,i]=Fo(e);mo(e,t.original,i);let s=()=>{e._x_ignore||e._x_ignoreSelf||(a.inline&&a.inline(e,t,r),a=a.bind(a,e,t,r),hr?on.get(Eo).push(a):a())};return s.runCleanups=i,s}var $o=(e,t)=>({name:n,value:a})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:a}),jo=e=>e;function So(e=()=>{}){return({name:t,value:n})=>{let{name:a,value:r}=Ao.reduce((i,s)=>s(i),{name:t,value:n});return a!==t&&e(a,t),{name:a,value:r}}}var Ao=[];function ni(e){Ao.push(e)}function To({name:e}){return Ro().test(e)}var Ro=()=>new RegExp(`^${ei}([^:^.]+)\b`);function Tu(e,t){return({name:n,value:a})=>{n===a&&(a="");let r=n.match(Ro()),i=n.match(/:([a-zA-Z0-9-_:]+)/),s=n.match(/.[^.]]+(?=[^]]*$)/g)||[],o=t||e[n]||n;return{type:r?r[1]:null,value:i?i[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:a,original:o}}}var gr="DEFAULT",rt=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",gr,"teleport"];function Ru(e,t){let n=rt.indexOf(e.type)===-1?gr:e.type,a=rt.indexOf(t.type)===-1?gr:t.type;return rt.indexOf(n)-rt.indexOf(a)}function ln(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function ht(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(r=>ht(r,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let a=e.firstElementChild;for(;a;)ht(a,t),a=a.nextElementSibling}function pe(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var qi=!1;function Ou(){qi&&pe("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),qi=!0,document.body||pe("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),ln(document,"alpine:init"),ln(document,"alpine:initializing"),Xr(),cu(t=>Pe(t,ht)),Vr(t=>Gt(t)),po((t,n)=>{ti(t,n).forEach(a=>a())});let e=t=>!Ea(t.parentElement,!0);Array.from(document.querySelectorAll(Io().join(","))).filter(e).forEach(t=>{Pe(t)}),ln(document,"alpine:initialized"),setTimeout(()=>{Pu()})}var ai=[],Oo=[];function No(){return ai.map(e=>e())}function Io(){return ai.concat(Oo).map(e=>e())}function Lo(e){ai.push(e)}function Po(e){Oo.push(e)}function Ea(e,t=!1){return gt(e,n=>{if((t?Io():No()).some(r=>n.matches(r)))return!0})}function gt(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentNode instanceof ShadowRoot)return gt(e.parentNode.host,t);if(e.parentElement)return gt(e.parentElement,t)}}function Nu(e){return No().some(t=>e.matches(t))}var Do=[];function Iu(e){Do.push(e)}var Lu=1;function Pe(e,t=ht,n=()=>{}){gt(e,a=>a._x_ignore)||Su(()=>{t(e,(a,r)=>{a._x_marker||(n(a,r),Do.forEach(i=>i(a,r)),ti(a,a.attributes).forEach(i=>i()),a._x_ignore||(a._x_marker=Lu++),a._x_ignore&&r())})})}function Gt(e,t=ht){t(e,n=>{lu(n),ho(n),delete n._x_marker})}function Pu(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,n,a])=>{ju(n)||a.some(r=>{if(document.querySelector(r))return pe(`found "${r}", but missing ${t} plugin`),!0})})}var fr=[],ri=!1;function ii(e=()=>{}){return queueMicrotask(()=>{ri||setTimeout(()=>{br()})}),new Promise(t=>{fr.push(()=>{e(),t()})})}function br(){for(ri=!1;fr.length;)fr.shift()()}function Du(){ri=!0}function si(e,t){return Array.isArray(t)?zi(e,t.join(" ")):typeof t=="object"&&t!==null?Mu(e,t):typeof t=="function"?si(e,t()):zi(e,t)}function zi(e,t){let n=r=>r.split(" ").filter(i=>!e.classList.contains(i)).filter(Boolean),a=r=>(e.classList.add(...r),()=>{e.classList.remove(...r)});return t=t===!0?t="":t||"",a(n(t))}function Mu(e,t){let n=o=>o.split(" ").filter(Boolean),a=Object.entries(t).flatMap(([o,c])=>c?n(o):!1).filter(Boolean),r=Object.entries(t).flatMap(([o,c])=>c?!1:n(o)).filter(Boolean),i=[],s=[];return r.forEach(o=>{e.classList.contains(o)&&(e.classList.remove(o),s.push(o))}),a.forEach(o=>{e.classList.contains(o)||(e.classList.add(o),i.push(o))}),()=>{s.forEach(o=>e.classList.add(o)),i.forEach(o=>e.classList.remove(o))}}function Fa(e,t){return typeof t=="object"&&t!==null?qu(e,t):zu(e,t)}function qu(e,t){let n={};return Object.entries(t).forEach(([a,r])=>{n[a]=e.style[a],a.startsWith("--")||(a=Bu(a)),e.style.setProperty(a,r)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Fa(e,n)}}function zu(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function Bu(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function _r(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}W("transition",(e,{value:t,modifiers:n,expression:a},{evaluate:r})=>{typeof a=="function"&&(a=r(a)),a!==!1&&(!a||typeof a=="boolean"?Gu(e,n,t):Uu(e,a,t))});function Uu(e,t,n){Mo(e,si,""),{enter:r=>{e._x_transition.enter.during=r},"enter-start":r=>{e._x_transition.enter.start=r},"enter-end":r=>{e._x_transition.enter.end=r},leave:r=>{e._x_transition.leave.during=r},"leave-start":r=>{e._x_transition.leave.start=r},"leave-end":r=>{e._x_transition.leave.end=r}}[n](t)}function Gu(e,t,n){Mo(e,Fa);let a=!t.includes("in")&&!t.includes("out")&&!n,r=a||t.includes("in")||["enter"].includes(n),i=a||t.includes("out")||["leave"].includes(n);t.includes("in")&&!a&&(t=t.filter((b,w)=>w<t.indexOf("out"))),t.includes("out")&&!a&&(t=t.filter((b,w)=>w>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),o=s||t.includes("opacity"),c=s||t.includes("scale"),l=o?0:1,u=c?nn(t,"scale",95)/100:1,p=nn(t,"delay",0)/1e3,m=nn(t,"origin","center"),h="opacity, transform",g=nn(t,"duration",150)/1e3,_=nn(t,"duration",75)/1e3,f="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:m,transitionDelay:`${p}s`,transitionProperty:h,transitionDuration:`${g}s`,transitionTimingFunction:f},e._x_transition.enter.start={opacity:l,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),i&&(e._x_transition.leave.during={transformOrigin:m,transitionDelay:`${p}s`,transitionProperty:h,transitionDuration:`${_}s`,transitionTimingFunction:f},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${u})`})}function Mo(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(a=()=>{},r=()=>{}){yr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},a,r)},out(a=()=>{},r=()=>{}){yr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},a,r)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,a){const r=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let i=()=>r(n);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):i():e._x_transition?e._x_transition.in(n):i();return}e._x_hidePromise=e._x_transition?new Promise((s,o)=>{e._x_transition.out(()=>{},()=>s(a)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>o({isFromCancelledTransition:!0}))}):Promise.resolve(a),queueMicrotask(()=>{let s=qo(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):r(()=>{let o=c=>{let l=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(o)]).then(([u])=>u?.());return delete c._x_hidePromise,delete c._x_hideChildren,l};o(e).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function qo(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:qo(t)}function yr(e,t,{during:n,start:a,end:r}={},i=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(a).length===0&&Object.keys(r).length===0){i(),s();return}let o,c,l;Hu(e,{start(){o=t(e,a)},during(){c=t(e,n)},before:i,end(){o(),l=t(e,r)},after:s,cleanup(){c(),l()}})}function Hu(e,t){let n,a,r,i=_r(()=>{z(()=>{n=!0,a||t.before(),r||(t.end(),br()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:_r(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();i()}),finish:i},z(()=>{t.start(),t.during()}),Du(),requestAnimationFrame(()=>{if(n)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,o=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),z(()=>{t.before()}),a=!0,requestAnimationFrame(()=>{n||(z(()=>{t.end()}),br(),setTimeout(e._x_transitioning.finish,s+o),r=!0)})})}function nn(e,t,n){if(e.indexOf(t)===-1)return n;const a=e[e.indexOf(t)+1];if(!a||t==="scale"&&isNaN(a))return n;if(t==="duration"||t==="delay"){let r=a.match(/([0-9]+)ms/);if(r)return r[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[a,e[e.indexOf(t)+2]].join(" "):a}var He=!1;function Ve(e,t=()=>{}){return(...n)=>He?t(...n):e(...n)}function Wu(e){return(...t)=>He&&e(...t)}var zo=[];function $a(e){zo.push(e)}function Vu(e,t){zo.forEach(n=>n(e,t)),He=!0,Bo(()=>{Pe(t,(n,a)=>{a(n,()=>{})})}),He=!1}var vr=!1;function Zu(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),He=!0,vr=!0,Bo(()=>{Yu(t)}),He=!1,vr=!1}function Yu(e){let t=!1;Pe(e,(a,r)=>{ht(a,(i,s)=>{if(t&&Nu(i))return s();t=!0,r(i,s)})})}function Bo(e){let t=_t;Mi((n,a)=>{let r=t(n);return Bt(r),()=>{}}),e(),Mi(t)}function Uo(e,t,n,a=[]){switch(e._x_bindings||(e._x_bindings=zt({})),e._x_bindings[t]=n,t=a.includes("camel")?ap(t):t,t){case"value":Xu(e,n);break;case"style":Qu(e,n);break;case"class":Ku(e,n);break;case"selected":case"checked":Ju(e,t,n);break;default:Go(e,t,n);break}}function Xu(e,t){if(Vo(e))e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=ra(e.value)===t:e.checked=Bi(e.value,t));else if(oi(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>Bi(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")np(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function Ku(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=si(e,t)}function Qu(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Fa(e,t)}function Ju(e,t,n){Go(e,t,n),tp(e,t,n)}function Go(e,t,n){[null,void 0,!1].includes(n)&&ip(t)?e.removeAttribute(t):(Ho(t)&&(n=t),ep(e,t,n))}function ep(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function tp(e,t,n){e[t]!==n&&(e[t]=n)}function np(e,t){const n=[].concat(t).map(a=>a+"");Array.from(e.options).forEach(a=>{a.selected=n.includes(a.value)})}function ap(e){return e.toLowerCase().replace(/-(w)/g,(t,n)=>n.toUpperCase())}function Bi(e,t){return e==t}function ra(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var rp=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Ho(e){return rp.has(e)}function ip(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function sp(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:Wo(e,t,n)}function op(e,t,n,a=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let r=e._x_inlineBindings[t];return r.extract=a,vo(()=>ct(e,r.expression))}return Wo(e,t,n)}function Wo(e,t,n){let a=e.getAttribute(t);return a===null?typeof n=="function"?n():n:a===""?!0:Ho(t)?!![t,"true"].includes(a):a}function oi(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function Vo(e){return e.type==="radio"||e.localName==="ui-radio"}function Zo(e,t){let n;return function(){const a=this,r=arguments,i=function(){n=null,e.apply(a,r)};clearTimeout(n),n=setTimeout(i,t)}}function Yo(e,t){let n;return function(){let a=this,r=arguments;n||(e.apply(a,r),n=!0,setTimeout(()=>n=!1,t))}}function Xo({get:e,set:t},{get:n,set:a}){let r=!0,i,s=_t(()=>{let o=e(),c=n();if(r)a(Ba(o)),r=!1;else{let l=JSON.stringify(o),u=JSON.stringify(c);l!==i?a(Ba(o)):l!==u&&t(Ba(c))}i=JSON.stringify(e()),JSON.stringify(n())});return()=>{Bt(s)}}function Ba(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function cp(e){(Array.isArray(e)?e:[e]).forEach(n=>n(Ht))}var et={},Ui=!1;function lp(e,t){if(Ui||(et=zt(et),Ui=!0),t===void 0)return et[e];et[e]=t,Jr(et[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&et[e].init()}function up(){return et}var Ko={};function pp(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?Qo(e,n()):(Ko[e]=n,()=>{})}function dp(e){return Object.entries(Ko).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...a)=>n(...a)}})}),e}function Qo(e,t,n){let a=[];for(;a.length;)a.pop()();let r=Object.entries(t).map(([s,o])=>({name:s,value:o})),i=Co(r);return r=r.map(s=>i.find(o=>o.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),ti(e,r,n).map(s=>{a.push(s.runCleanups),s()}),()=>{for(;a.length;)a.pop()()}}var Jo={};function mp(e,t){Jo[e]=t}function hp(e,t){return Object.entries(Jo).forEach(([n,a])=>{Object.defineProperty(e,n,{get(){return(...r)=>a.bind(t)(...r)},enumerable:!1})}),e}var gp={get reactive(){return zt},get release(){return Bt},get effect(){return _t},get raw(){return so},get transaction(){return ou},version:"3.15.8",flushAndStopDeferringMutations:du,dontAutoEvaluateFunctions:vo,disableEffectScheduling:ru,startObservingMutations:Xr,stopObservingMutations:go,setReactivityEngine:iu,onAttributeRemoved:mo,onAttributesAdded:po,closestDataStack:dt,skipDuringClone:Ve,onlyDuringClone:Wu,addRootSelector:Lo,addInitSelector:Po,setErrorHandler:_u,interceptClone:$a,addScopeToNode:Fn,deferMutations:pu,mapAttributes:ni,evaluateLater:ne,interceptInit:Iu,initInterceptors:Jr,injectMagics:fn,setEvaluator:vu,setRawEvaluator:wu,mergeProxies:mt,extractProp:op,findClosest:gt,onElRemoved:Vr,closestRoot:Ea,destroyTree:Gt,interceptor:bo,transition:yr,setStyles:Fa,mutateDom:z,directive:W,entangle:Xo,throttle:Yo,debounce:Zo,evaluate:ct,evaluateRaw:Eu,initTree:Pe,nextTick:ii,prefixed:Ut,prefix:$u,plugin:cp,magic:ve,store:lp,start:Ou,clone:Zu,cloneNode:Vu,bound:sp,$data:fo,watch:oo,walk:ht,data:mp,bind:pp},Ht=gp;function fp(e,t){const n=Object.create(null),a=e.split(",");for(let r=0;r<a.length;r++)n[a[r]]=!0;return r=>!!n[r]}var bp=Object.freeze({}),_p=Object.prototype.hasOwnProperty,ja=(e,t)=>_p.call(e,t),lt=Array.isArray,un=e=>ec(e)==="[object Map]",yp=e=>typeof e=="string",ci=e=>typeof e=="symbol",Sa=e=>e!==null&&typeof e=="object",vp=Object.prototype.toString,ec=e=>vp.call(e),tc=e=>ec(e).slice(8,-1),li=e=>yp(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wp=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xp=wp(e=>e.charAt(0).toUpperCase()+e.slice(1)),nc=(e,t)=>e!==t&&(e===e||t===t),wr=new WeakMap,an=[],Ee,ut=Symbol("iterate"),xr=Symbol("Map key iterate");function kp(e){return e&&e._isEffect===!0}function Cp(e,t=bp){kp(e)&&(e=e.raw);const n=$p(e,t);return t.lazy||n(),n}function Ep(e){e.active&&(ac(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var Fp=0;function $p(e,t){const n=function(){if(!n.active)return e();if(!an.includes(n)){ac(n);try{return Sp(),an.push(n),Ee=n,e()}finally{an.pop(),rc(),Ee=an[an.length-1]}}};return n.id=Fp++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function ac(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var It=!0,ui=[];function jp(){ui.push(It),It=!1}function Sp(){ui.push(It),It=!0}function rc(){const e=ui.pop();It=e===void 0?!0:e}function ye(e,t,n){if(!It||Ee===void 0)return;let a=wr.get(e);a||wr.set(e,a=new Map);let r=a.get(n);r||a.set(n,r=new Set),r.has(Ee)||(r.add(Ee),Ee.deps.push(r),Ee.options.onTrack&&Ee.options.onTrack({effect:Ee,target:e,type:t,key:n}))}function We(e,t,n,a,r,i){const s=wr.get(e);if(!s)return;const o=new Set,c=u=>{u&&u.forEach(p=>{(p!==Ee||p.allowRecurse)&&o.add(p)})};if(t==="clear")s.forEach(c);else if(n==="length"&<(e))s.forEach((u,p)=>{(p==="length"||p>=a)&&c(u)});else switch(n!==void 0&&c(s.get(n)),t){case"add":lt(e)?li(n)&&c(s.get("length")):(c(s.get(ut)),un(e)&&c(s.get(xr)));break;case"delete":lt(e)||(c(s.get(ut)),un(e)&&c(s.get(xr)));break;case"set":un(e)&&c(s.get(ut));break}const l=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:e,key:n,type:t,newValue:a,oldValue:r,oldTarget:i}),u.options.scheduler?u.options.scheduler(u):u()};o.forEach(l)}var Ap=fp("__proto__,__v_isRef,__isVue"),ic=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(ci)),Tp=sc(),Rp=sc(!0),Gi=Op();function Op(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const a=M(this);for(let i=0,s=this.length;i<s;i++)ye(a,"get",i+"");const r=a[t](...n);return r===-1||r===!1?a[t](...n.map(M)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){jp();const a=M(this)[t].apply(this,n);return rc(),a}}),e}function sc(e=!1,t=!1){return function(a,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_raw"&&i===(e?t?Vp:uc:t?Wp:lc).get(a))return a;const s=lt(a);if(!e&&s&&ja(Gi,r))return Reflect.get(Gi,r,i);const o=Reflect.get(a,r,i);return(ci(r)?ic.has(r):Ap(r))||(e||ye(a,"get",r),t)?o:kr(o)?!s||!li(r)?o.value:o:Sa(o)?e?pc(o):hi(o):o}}var Np=Ip();function Ip(e=!1){return function(n,a,r,i){let s=n[a];if(!e&&(r=M(r),s=M(s),!lt(n)&&kr(s)&&!kr(r)))return s.value=r,!0;const o=lt(n)&&li(a)?Number(a)<n.length:ja(n,a),c=Reflect.set(n,a,r,i);return n===M(i)&&(o?nc(r,s)&&We(n,"set",a,r,s):We(n,"add",a,r)),c}}function Lp(e,t){const n=ja(e,t),a=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&We(e,"delete",t,void 0,a),r}function Pp(e,t){const n=Reflect.has(e,t);return(!ci(t)||!ic.has(t))&&ye(e,"has",t),n}function Dp(e){return ye(e,"iterate",lt(e)?"length":ut),Reflect.ownKeys(e)}var Mp={get:Tp,set:Np,deleteProperty:Lp,has:Pp,ownKeys:Dp},qp={get:Rp,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},pi=e=>Sa(e)?hi(e):e,di=e=>Sa(e)?pc(e):e,mi=e=>e,Aa=e=>Reflect.getPrototypeOf(e);function Gn(e,t,n=!1,a=!1){e=e.__v_raw;const r=M(e),i=M(t);t!==i&&!n&&ye(r,"get",t),!n&&ye(r,"get",i);const{has:s}=Aa(r),o=a?mi:n?di:pi;if(s.call(r,t))return o(e.get(t));if(s.call(r,i))return o(e.get(i));e!==r&&e.get(t)}function Hn(e,t=!1){const n=this.__v_raw,a=M(n),r=M(e);return e!==r&&!t&&ye(a,"has",e),!t&&ye(a,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function Wn(e,t=!1){return e=e.__v_raw,!t&&ye(M(e),"iterate",ut),Reflect.get(e,"size",e)}function Hi(e){e=M(e);const t=M(this);return Aa(t).has.call(t,e)||(t.add(e),We(t,"add",e,e)),this}function Wi(e,t){t=M(t);const n=M(this),{has:a,get:r}=Aa(n);let i=a.call(n,e);i?cc(n,a,e):(e=M(e),i=a.call(n,e));const s=r.call(n,e);return n.set(e,t),i?nc(t,s)&&We(n,"set",e,t,s):We(n,"add",e,t),this}function Vi(e){const t=M(this),{has:n,get:a}=Aa(t);let r=n.call(t,e);r?cc(t,n,e):(e=M(e),r=n.call(t,e));const i=a?a.call(t,e):void 0,s=t.delete(e);return r&&We(t,"delete",e,void 0,i),s}function Zi(){const e=M(this),t=e.size!==0,n=un(e)?new Map(e):new Set(e),a=e.clear();return t&&We(e,"clear",void 0,void 0,n),a}function Vn(e,t){return function(a,r){const i=this,s=i.__v_raw,o=M(s),c=t?mi:e?di:pi;return!e&&ye(o,"iterate",ut),s.forEach((l,u)=>a.call(r,c(l),c(u),i))}}function Zn(e,t,n){return function(...a){const r=this.__v_raw,i=M(r),s=un(i),o=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=r[e](...a),u=n?mi:t?di:pi;return!t&&ye(i,"iterate",c?xr:ut),{next(){const{value:p,done:m}=l.next();return m?{value:p,done:m}:{value:o?[u(p[0]),u(p[1])]:u(p),done:m}},[Symbol.iterator](){return this}}}}function ze(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${xp(e)} operation ${n}failed: target is readonly.`,M(this))}return e==="delete"?!1:this}}function zp(){const e={get(i){return Gn(this,i)},get size(){return Wn(this)},has:Hn,add:Hi,set:Wi,delete:Vi,clear:Zi,forEach:Vn(!1,!1)},t={get(i){return Gn(this,i,!1,!0)},get size(){return Wn(this)},has:Hn,add:Hi,set:Wi,delete:Vi,clear:Zi,forEach:Vn(!1,!0)},n={get(i){return Gn(this,i,!0)},get size(){return Wn(this,!0)},has(i){return Hn.call(this,i,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:Vn(!0,!1)},a={get(i){return Gn(this,i,!0,!0)},get size(){return Wn(this,!0)},has(i){return Hn.call(this,i,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:Vn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Zn(i,!1,!1),n[i]=Zn(i,!0,!1),t[i]=Zn(i,!1,!0),a[i]=Zn(i,!0,!0)}),[e,n,t,a]}var[Bp,Up]=zp();function oc(e,t){const n=e?Up:Bp;return(a,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?a:Reflect.get(ja(n,r)&&r in a?n:a,r,i)}var Gp={get:oc(!1)},Hp={get:oc(!0)};function cc(e,t,n){const a=M(n);if(a!==n&&t.call(e,a)){const r=tc(e);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var lc=new WeakMap,Wp=new WeakMap,uc=new WeakMap,Vp=new WeakMap;function Zp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yp(e){return e.__v_skip||!Object.isExtensible(e)?0:Zp(tc(e))}function hi(e){return e&&e.__v_isReadonly?e:dc(e,!1,Mp,Gp,lc)}function pc(e){return dc(e,!0,qp,Hp,uc)}function dc(e,t,n,a,r){if(!Sa(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Yp(e);if(s===0)return e;const o=new Proxy(e,s===2?a:n);return r.set(e,o),o}function M(e){return e&&M(e.__v_raw)||e}function kr(e){return!!(e&&e.__v_isRef===!0)}ve("nextTick",()=>ii);ve("dispatch",e=>ln.bind(ln,e));ve("watch",(e,{evaluateLater:t,cleanup:n})=>(a,r)=>{let i=t(a),o=oo(()=>{let c;return i(l=>c=l),c},r);n(o)});ve("store",up);ve("data",e=>fo(e));ve("root",e=>Ea(e));ve("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=mt(Xp(e))),e._x_refs_proxy));function Xp(e){let t=[];return gt(e,n=>{n._x_refs&&t.push(n._x_refs)}),t}var Ua={};function mc(e){return Ua[e]||(Ua[e]=0),++Ua[e]}function Kp(e,t){return gt(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function Qp(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=mc(t))}ve("id",(e,{cleanup:t})=>(n,a=null)=>{let r=`${n}${a?`-${a}`:""}`;return Jp(e,r,t,()=>{let i=Kp(e,n),s=i?i._x_ids[n]:mc(n);return a?`${n}-${s}-${a}`:`${n}-${s}`})});$a((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Jp(e,t,n,a){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let r=a();return e._x_id[t]=r,n(()=>{delete e._x_id[t]}),r}ve("el",e=>e);hc("Focus","focus","focus");hc("Persist","persist","persist");function hc(e,t,n){ve(t,a=>pe(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,a))}W("modelable",(e,{expression:t},{effect:n,evaluateLater:a,cleanup:r})=>{let i=a(t),s=()=>{let u;return i(p=>u=p),u},o=a(`${t} = __placeholder`),c=u=>o(()=>{},{scope:{__placeholder:u}}),l=s();c(l),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,p=e._x_model.set,m=Xo({get(){return u()},set(h){p(h)}},{get(){return s()},set(h){c(h)}});r(m)})});W("teleport",(e,{modifiers:t,expression:n},{cleanup:a})=>{e.tagName.toLowerCase()!=="template"&&pe("x-teleport can only be used on a <template> tag",e);let r=Yi(n),i=e.content.cloneNode(!0).firstElementChild;e._x_teleport=i,i._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),i.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(o=>{i.addEventListener(o,c=>{c.stopPropagation(),e.dispatchEvent(new c.constructor(c.type,c))})}),Fn(i,{},e);let s=(o,c,l)=>{l.includes("prepend")?c.parentNode.insertBefore(o,c):l.includes("append")?c.parentNode.insertBefore(o,c.nextSibling):c.appendChild(o)};z(()=>{s(i,r,t),Ve(()=>{Pe(i)})()}),e._x_teleportPutBack=()=>{let o=Yi(n);z(()=>{s(e._x_teleport,o,t)})},a(()=>z(()=>{i.remove(),Gt(i)}))});var ed=document.createElement("div");function Yi(e){let t=Ve(()=>document.querySelector(e),()=>ed)();return t||pe(`Cannot find x-teleport element for selector: "${e}"`),t}var gc=()=>{};gc.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};W("ignore",gc);W("effect",Ve((e,{expression:t},{effect:n})=>{n(ne(e,t))}));function $t(e,t,n,a){let r=e,i=c=>a(c),s={},o=(c,l)=>u=>l(c,u);if(n.includes("dot")&&(t=td(t)),n.includes("camel")&&(t=nd(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(r=window),n.includes("document")&&(r=document),n.includes("debounce")){let c=n[n.indexOf("debounce")+1]||"invalid-wait",l=pa(c.split("ms")[0])?Number(c.split("ms")[0]):250;i=Zo(i,l)}if(n.includes("throttle")){let c=n[n.indexOf("throttle")+1]||"invalid-wait",l=pa(c.split("ms")[0])?Number(c.split("ms")[0]):250;i=Yo(i,l)}return n.includes("prevent")&&(i=o(i,(c,l)=>{l.preventDefault(),c(l)})),n.includes("stop")&&(i=o(i,(c,l)=>{l.stopPropagation(),c(l)})),n.includes("once")&&(i=o(i,(c,l)=>{c(l),r.removeEventListener(t,i,s)})),(n.includes("away")||n.includes("outside"))&&(r=document,i=o(i,(c,l)=>{e.contains(l.target)||l.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&c(l))})),n.includes("self")&&(i=o(i,(c,l)=>{l.target===e&&c(l)})),t==="submit"&&(i=o(i,(c,l)=>{l.target._x_pendingModelUpdates&&l.target._x_pendingModelUpdates.forEach(u=>u()),c(l)})),(rd(t)||fc(t))&&(i=o(i,(c,l)=>{id(l,n)||c(l)})),r.addEventListener(t,i,s),()=>{r.removeEventListener(t,i,s)}}function td(e){return e.replace(/-/g,".")}function nd(e){return e.toLowerCase().replace(/-(w)/g,(t,n)=>n.toUpperCase())}function pa(e){return!Array.isArray(e)&&!isNaN(e)}function ad(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_s]/,"-").toLowerCase()}function rd(e){return["keydown","keyup"].includes(e)}function fc(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function id(e,t){let n=t.filter(i=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(i));if(n.includes("debounce")){let i=n.indexOf("debounce");n.splice(i,pa((n[i+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let i=n.indexOf("throttle");n.splice(i,pa((n[i+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&Xi(e.key).includes(n[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(i=>n.includes(i));return n=n.filter(i=>!r.includes(i)),!(r.length>0&&r.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===r.length&&(fc(e.type)||Xi(e.key).includes(n[0])))}function Xi(e){if(!e)return[];e=ad(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}W("model",(e,{modifiers:t,expression:n},{effect:a,cleanup:r})=>{let i=e;t.includes("parent")&&(i=e.parentNode);let s=ne(i,n),o;typeof n=="string"?o=ne(i,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?o=ne(i,`${n()} = __placeholder`):o=()=>{};let c=()=>{let _;return s(f=>_=f),Ki(_)?_.get():_},l=_=>{let f;s(b=>f=b),Ki(f)?f.set(_):o(()=>{},{scope:{__placeholder:_}})};typeof n=="string"&&e.type==="radio"&&z(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});let u=t.includes("change")||t.includes("lazy"),p=t.includes("blur"),m=t.includes("enter"),h=u||p||m,g;if(He)g=()=>{};else if(h){let _=[],f=b=>l(Yn(e,t,b,c()));if(u&&_.push($t(e,"change",t,f)),p&&(_.push($t(e,"blur",t,f)),e.form)){let b=()=>f({target:e});e.form._x_pendingModelUpdates||(e.form._x_pendingModelUpdates=[]),e.form._x_pendingModelUpdates.push(b),r(()=>e.form._x_pendingModelUpdates.splice(e.form._x_pendingModelUpdates.indexOf(b),1))}m&&_.push($t(e,"keydown",t,b=>{b.key==="Enter"&&f(b)})),g=()=>_.forEach(b=>b())}else{let _=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)?"change":"input";g=$t(e,_,t,f=>{l(Yn(e,t,f,c()))})}if(t.includes("fill")&&([void 0,null,""].includes(c())||oi(e)&&Array.isArray(c())||e.tagName.toLowerCase()==="select"&&e.multiple)&&l(Yn(e,t,{target:e},c())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=g,r(()=>e._x_removeModelListeners.default()),e.form){let _=$t(e.form,"reset",[],f=>{ii(()=>e._x_model&&e._x_model.set(Yn(e,t,{target:e},c())))});r(()=>_())}e._x_model={get(){return c()},set(_){l(_)}},e._x_forceModelUpdate=_=>{_===void 0&&typeof n=="string"&&n.match(/./)&&(_=""),window.fromModel=!0,z(()=>Uo(e,"value",_)),delete window.fromModel},a(()=>{let _=c();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(_)})});function Yn(e,t,n,a){return z(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(oi(e))if(Array.isArray(a)){let r=null;return t.includes("number")?r=Ga(n.target.value):t.includes("boolean")?r=ra(n.target.value):r=n.target.value,n.target.checked?a.includes(r)?a:a.concat([r]):a.filter(i=>!sd(i,r))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(r=>{let i=r.value||r.text;return Ga(i)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(r=>{let i=r.value||r.text;return ra(i)}):Array.from(n.target.selectedOptions).map(r=>r.value||r.text);{let r;return Vo(e)?n.target.checked?r=n.target.value:r=a:r=n.target.value,t.includes("number")?Ga(r):t.includes("boolean")?ra(r):t.includes("trim")?r.trim():r}}})}function Ga(e){let t=e?parseFloat(e):null;return od(t)?t:e}function sd(e,t){return e==t}function od(e){return!Array.isArray(e)&&!isNaN(e)}function Ki(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}W("cloak",e=>queueMicrotask(()=>z(()=>e.removeAttribute(Ut("cloak")))));Po(()=>`[${Ut("init")}]`);W("init",Ve((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));W("text",(e,{expression:t},{effect:n,evaluateLater:a})=>{let r=a(t);n(()=>{r(i=>{z(()=>{e.textContent=i})})})});W("html",(e,{expression:t},{effect:n,evaluateLater:a})=>{let r=a(t);n(()=>{r(i=>{z(()=>{e.innerHTML=i,e._x_ignoreSelf=!0,Pe(e),delete e._x_ignoreSelf})})})});ni($o(":",jo(Ut("bind:"))));var bc=(e,{value:t,modifiers:n,expression:a,original:r},{effect:i,cleanup:s})=>{if(!t){let c={};dp(c),ne(e,a)(u=>{Qo(e,u,r)},{scope:c});return}if(t==="key")return cd(e,a);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let o=ne(e,a);i(()=>o(c=>{c===void 0&&typeof a=="string"&&a.match(/./)&&(c=""),z(()=>Uo(e,t,c,n))})),s(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};bc.inline=(e,{value:t,modifiers:n,expression:a})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:a,extract:!1})};W("bind",bc);function cd(e,t){e._x_keyExpression=t}Lo(()=>`[${Ut("data")}]`);W("data",(e,{expression:t},{cleanup:n})=>{if(ld(e))return;t=t===""?"{}":t;let a={};fn(a,e);let r={};hp(r,a);let i=ct(e,t,{scope:r});(i===void 0||i===!0)&&(i={}),fn(i,e);let s=zt(i);Jr(s);let o=Fn(e,s);s.init&&ct(e,s.init),n(()=>{s.destroy&&ct(e,s.destroy),o()})});$a((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function ld(e){return He?vr?!0:e.hasAttribute("data-has-alpine-state"):!1}W("show",(e,{modifiers:t,expression:n},{effect:a})=>{let r=ne(e,n);e._x_doHide||(e._x_doHide=()=>{z(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{z(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let i=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},o=()=>setTimeout(s),c=_r(p=>p?s():i(),p=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,p,s,i):p?o():i()}),l,u=!0;a(()=>r(p=>{!u&&p===l||(t.includes("immediate")&&(p?o():i()),c(p),l=p,u=!1)}))});W("for",(e,{expression:t},{effect:n,cleanup:a})=>{let r=pd(t),i=ne(e,r.items),s=ne(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>ud(e,r,i,s)),a(()=>{Object.values(e._x_lookup).forEach(o=>z(()=>{Gt(o),o.remove()})),delete e._x_prevKeys,delete e._x_lookup})});function ud(e,t,n,a){let r=s=>typeof s=="object"&&!Array.isArray(s),i=e;n(s=>{dd(s)&&s>=0&&(s=Array.from(Array(s).keys(),f=>f+1)),s===void 0&&(s=[]);let o=e._x_lookup,c=e._x_prevKeys,l=[],u=[];if(r(s))s=Object.entries(s).map(([f,b])=>{let w=Qi(t,b,f,s);a(y=>{u.includes(y)&&pe("Duplicate key on x-for",e),u.push(y)},{scope:{index:f,...w}}),l.push(w)});else for(let f=0;f<s.length;f++){let b=Qi(t,s[f],f,s);a(w=>{u.includes(w)&&pe("Duplicate key on x-for",e),u.push(w)},{scope:{index:f,...b}}),l.push(b)}let p=[],m=[],h=[],g=[];for(let f=0;f<c.length;f++){let b=c[f];u.indexOf(b)===-1&&h.push(b)}c=c.filter(f=>!h.includes(f));let _="template";for(let f=0;f<u.length;f++){let b=u[f],w=c.indexOf(b);if(w===-1)c.splice(f,0,b),p.push([_,f]);else if(w!==f){let y=c.splice(f,1)[0],d=c.splice(w-1,1)[0];c.splice(f,0,d),c.splice(w,0,y),m.push([y,d])}else g.push(b);_=b}for(let f=0;f<h.length;f++){let b=h[f];b in o&&(z(()=>{Gt(o[b]),o[b].remove()}),delete o[b])}for(let f=0;f<m.length;f++){let[b,w]=m[f],y=o[b],d=o[w],C=document.createElement("div");z(()=>{d||pe('x-for ":key" is undefined or invalid',i,w,o),d.after(C),y.after(d),d._x_currentIfEl&&d.after(d._x_currentIfEl),C.before(y),y._x_currentIfEl&&y.after(y._x_currentIfEl),C.remove()}),d._x_refreshXForScope(l[u.indexOf(w)])}for(let f=0;f<p.length;f++){let[b,w]=p[f],y=b==="template"?i:o[b];y._x_currentIfEl&&(y=y._x_currentIfEl);let d=l[w],C=u[w],k=document.importNode(i.content,!0).firstElementChild,$=zt(d);Fn(k,$,i),k._x_refreshXForScope=T=>{Object.entries(T).forEach(([I,N])=>{$[I]=N})},z(()=>{y.after(k),Ve(()=>Pe(k))()}),typeof C=="object"&&pe("x-for key cannot be an object, it must be a string or an integer",i),o[C]=k}for(let f=0;f<g.length;f++)o[g[f]]._x_refreshXForScope(l[u.indexOf(g[f])]);i._x_prevKeys=u})}function pd(e){let t=/,([^,}]]*)(?:,([^,}]]*))?$/,n=/^s*(|)s*$/g,a=/([sS]*?)s+(?:in|of)s+([sS]*)/,r=e.match(a);if(!r)return;let i={};i.items=r[2].trim();let s=r[1].replace(n,"").trim(),o=s.match(t);return o?(i.item=s.replace(t,"").trim(),i.index=o[1].trim(),o[2]&&(i.collection=o[2].trim())):i.item=s,i}function Qi(e,t,n,a){let r={};return/^[.*]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,o)=>{r[s]=t[o]}):/^{.*}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{r[s]=t[s]}):r[e.item]=t,e.index&&(r[e.index]=n),e.collection&&(r[e.collection]=a),r}function dd(e){return!Array.isArray(e)&&!isNaN(e)}function _c(){}_c.inline=(e,{expression:t},{cleanup:n})=>{let a=Ea(e);a._x_refs||(a._x_refs={}),a._x_refs[t]=e,n(()=>delete a._x_refs[t])};W("ref",_c);W("if",(e,{expression:t},{effect:n,cleanup:a})=>{e.tagName.toLowerCase()!=="template"&&pe("x-if can only be used on a <template> tag",e);let r=ne(e,t),i=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let o=e.content.cloneNode(!0).firstElementChild;return Fn(o,{},e),z(()=>{e.after(o),Ve(()=>Pe(o))()}),e._x_currentIfEl=o,e._x_undoIf=()=>{z(()=>{Gt(o),o.remove()}),delete e._x_currentIfEl},o},s=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>r(o=>{o?i():s()})),a(()=>e._x_undoIf&&e._x_undoIf())});W("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(r=>Qp(e,r))});$a((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});ni($o("@",jo(Ut("on:"))));W("on",Ve((e,{value:t,modifiers:n,expression:a},{cleanup:r})=>{let i=a?ne(e,a):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=$t(e,t,n,o=>{i(()=>{},{scope:{$event:o},params:[o]})});r(()=>s())}));Ta("Collapse","collapse","collapse");Ta("Intersect","intersect","intersect");Ta("Focus","trap","focus");Ta("Mask","mask","mask");function Ta(e,t,n){W(t,a=>pe(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,a))}Ht.setEvaluator(ko);Ht.setRawEvaluator(Fu);Ht.setReactivityEngine({reactive:hi,effect:Cp,release:Ep,raw:M});var md=Ht,yc=md,ae="top",he="bottom",ge="right",re="left",gi="auto",$n=[ae,he,ge,re],Lt="start",yn="end",hd="clippingParents",vc="viewport",rn="popper",gd="reference",Ji=$n.reduce(function(e,t){return e.concat([t+"-"+Lt,t+"-"+yn])},[]),wc=[].concat($n,[gi]).reduce(function(e,t){return e.concat([t,t+"-"+Lt,t+"-"+yn])},[]),fd="beforeRead",bd="read",_d="afterRead",yd="beforeMain",vd="main",wd="afterMain",xd="beforeWrite",kd="write",Cd="afterWrite",Ed=[fd,bd,_d,yd,vd,wd,xd,kd,Cd];function je(e){return e?(e.nodeName||"").toLowerCase():null}function oe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ft(e){var t=oe(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=oe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function fi(e){if(typeof ShadowRoot>"u")return!1;var t=oe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fd(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!me(i)||!je(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(s){var o=r[s];o===!1?i.removeAttribute(s):i.setAttribute(s,o===!0?"":o)}))})}function $d(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],i=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),o=s.reduce(function(c,l){return c[l]="",c},{});!me(r)||!je(r)||(Object.assign(r.style,o),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const xc={name:"applyStyles",enabled:!0,phase:"write",fn:Fd,effect:$d,requires:["computeStyles"]};function $e(e){return e.split("-")[0]}var pt=Math.max,da=Math.min,Pt=Math.round;function Cr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function kc(){return!/^((?!chrome|android).)*safari/i.test(Cr())}function Dt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),r=1,i=1;t&&me(e)&&(r=e.offsetWidth>0&&Pt(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Pt(a.height)/e.offsetHeight||1);var s=ft(e)?oe(e):window,o=s.visualViewport,c=!kc()&&n,l=(a.left+(c&&o?o.offsetLeft:0))/r,u=(a.top+(c&&o?o.offsetTop:0))/i,p=a.width/r,m=a.height/i;return{width:p,height:m,top:u,right:l+p,bottom:u+m,left:l,x:l,y:u}}function bi(e){var t=Dt(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function Cc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&fi(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function De(e){return oe(e).getComputedStyle(e)}function jd(e){return["table","td","th"].indexOf(je(e))>=0}function Ze(e){return((ft(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ra(e){return je(e)==="html"?e:e.assignedSlot||e.parentNode||(fi(e)?e.host:null)||Ze(e)}function es(e){return!me(e)||De(e).position==="fixed"?null:e.offsetParent}function Sd(e){var t=/firefox/i.test(Cr()),n=/Trident/i.test(Cr());if(n&&me(e)){var a=De(e);if(a.position==="fixed")return null}var r=Ra(e);for(fi(r)&&(r=r.host);me(r)&&["html","body"].indexOf(je(r))<0;){var i=De(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function jn(e){for(var t=oe(e),n=es(e);n&&jd(n)&&De(n).position==="static";)n=es(n);return n&&(je(n)==="html"||je(n)==="body"&&De(n).position==="static")?t:n||Sd(e)||t}function _i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pn(e,t,n){return pt(e,da(t,n))}function Ad(e,t,n){var a=pn(e,t,n);return a>n?n:a}function Ec(){return{top:0,right:0,bottom:0,left:0}}function Fc(e){return Object.assign({},Ec(),e)}function $c(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var Td=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fc(typeof t!="number"?t:$c(t,$n))};function Rd(e){var t,n=e.state,a=e.name,r=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,o=$e(n.placement),c=_i(o),l=[re,ge].indexOf(o)>=0,u=l?"height":"width";if(!(!i||!s)){var p=Td(r.padding,n),m=bi(i),h=c==="y"?ae:re,g=c==="y"?he:ge,_=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],f=s[c]-n.rects.reference[c],b=jn(i),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,y=_/2-f/2,d=p[h],C=w-m[u]-p[g],k=w/2-m[u]/2+y,$=pn(d,k,C),T=c;n.modifiersData[a]=(t={},t[T]=$,t.centerOffset=$-k,t)}}function Od(e){var t=e.state,n=e.options,a=n.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Cc(t.elements.popper,r)&&(t.elements.arrow=r))}const Nd={name:"arrow",enabled:!0,phase:"main",fn:Rd,effect:Od,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mt(e){return e.split("-")[1]}var Id={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ld(e,t){var n=e.x,a=e.y,r=t.devicePixelRatio||1;return{x:Pt(n*r)/r||0,y:Pt(a*r)/r||0}}function ts(e){var t,n=e.popper,a=e.popperRect,r=e.placement,i=e.variation,s=e.offsets,o=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,p=e.isFixed,m=s.x,h=m===void 0?0:m,g=s.y,_=g===void 0?0:g,f=typeof u=="function"?u({x:h,y:_}):{x:h,y:_};h=f.x,_=f.y;var b=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),y=re,d=ae,C=window;if(l){var k=jn(n),$="clientHeight",T="clientWidth";if(k===oe(n)&&(k=Ze(n),De(k).position!=="static"&&o==="absolute"&&($="scrollHeight",T="scrollWidth")),k=k,r===ae||(r===re||r===ge)&&i===yn){d=he;var I=p&&k===C&&C.visualViewport?C.visualViewport.height:k[$];_-=I-a.height,_*=c?1:-1}if(r===re||(r===ae||r===he)&&i===yn){y=ge;var N=p&&k===C&&C.visualViewport?C.visualViewport.width:k[T];h-=N-a.width,h*=c?1:-1}}var D=Object.assign({position:o},l&&Id),R=u===!0?Ld({x:h,y:_},oe(n)):{x:h,y:_};if(h=R.x,_=R.y,c){var L;return Object.assign({},D,(L={},L[d]=w?"0":"",L[y]=b?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+_+"px)":"translate3d("+h+"px, "+_+"px, 0)",L))}return Object.assign({},D,(t={},t[d]=w?_+"px":"",t[y]=b?h+"px":"",t.transform="",t))}function Pd(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,s=i===void 0?!0:i,o=n.roundOffsets,c=o===void 0?!0:o,l={placement:$e(t.placement),variation:Mt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ts(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ts(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Dd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pd,data:{}};var Xn={passive:!0};function Md(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,i=r===void 0?!0:r,s=a.resize,o=s===void 0?!0:s,c=oe(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(u){u.addEventListener("scroll",n.update,Xn)}),o&&c.addEventListener("resize",n.update,Xn),function(){i&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Xn)}),o&&c.removeEventListener("resize",n.update,Xn)}}const qd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Md,data:{}};var zd={left:"right",right:"left",bottom:"top",top:"bottom"};function ia(e){return e.replace(/left|right|bottom|top/g,function(t){return zd[t]})}var Bd={start:"end",end:"start"};function ns(e){return e.replace(/start|end/g,function(t){return Bd[t]})}function yi(e){var t=oe(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function vi(e){return Dt(Ze(e)).left+yi(e).scrollLeft}function Ud(e,t){var n=oe(e),a=Ze(e),r=n.visualViewport,i=a.clientWidth,s=a.clientHeight,o=0,c=0;if(r){i=r.width,s=r.height;var l=kc();(l||!l&&t==="fixed")&&(o=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:o+vi(e),y:c}}function Gd(e){var t,n=Ze(e),a=yi(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=pt(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=pt(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-a.scrollLeft+vi(e),c=-a.scrollTop;return De(r||n).direction==="rtl"&&(o+=pt(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:o,y:c}}function wi(e){var t=De(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function jc(e){return["html","body","#document"].indexOf(je(e))>=0?e.ownerDocument.body:me(e)&&wi(e)?e:jc(Ra(e))}function dn(e,t){var n;t===void 0&&(t=[]);var a=jc(e),r=a===((n=e.ownerDocument)==null?void 0:n.body),i=oe(a),s=r?[i].concat(i.visualViewport||[],wi(a)?a:[]):a,o=t.concat(s);return r?o:o.concat(dn(Ra(s)))}function Er(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hd(e,t){var n=Dt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function as(e,t,n){return t===vc?Er(Ud(e,n)):ft(t)?Hd(t,n):Er(Gd(Ze(e)))}function Wd(e){var t=dn(Ra(e)),n=["absolute","fixed"].indexOf(De(e).position)>=0,a=n&&me(e)?jn(e):e;return ft(a)?t.filter(function(r){return ft(r)&&Cc(r,a)&&je(r)!=="body"}):[]}function Vd(e,t,n,a){var r=t==="clippingParents"?Wd(e):[].concat(t),i=[].concat(r,[n]),s=i[0],o=i.reduce(function(c,l){var u=as(e,l,a);return c.top=pt(u.top,c.top),c.right=da(u.right,c.right),c.bottom=da(u.bottom,c.bottom),c.left=pt(u.left,c.left),c},as(e,s,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Sc(e){var t=e.reference,n=e.element,a=e.placement,r=a?$e(a):null,i=a?Mt(a):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,c;switch(r){case ae:c={x:s,y:t.y-n.height};break;case he:c={x:s,y:t.y+t.height};break;case ge:c={x:t.x+t.width,y:o};break;case re:c={x:t.x-n.width,y:o};break;default:c={x:t.x,y:t.y}}var l=r?_i(r):null;if(l!=null){var u=l==="y"?"height":"width";switch(i){case Lt:c[l]=c[l]-(t[u]/2-n[u]/2);break;case yn:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function vn(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,i=n.strategy,s=i===void 0?e.strategy:i,o=n.boundary,c=o===void 0?hd:o,l=n.rootBoundary,u=l===void 0?vc:l,p=n.elementContext,m=p===void 0?rn:p,h=n.altBoundary,g=h===void 0?!1:h,_=n.padding,f=_===void 0?0:_,b=Fc(typeof f!="number"?f:$c(f,$n)),w=m===rn?gd:rn,y=e.rects.popper,d=e.elements[g?w:m],C=Vd(ft(d)?d:d.contextElement||Ze(e.elements.popper),c,u,s),k=Dt(e.elements.reference),$=Sc({reference:k,element:y,placement:r}),T=Er(Object.assign({},y,$)),I=m===rn?T:k,N={top:C.top-I.top+b.top,bottom:I.bottom-C.bottom+b.bottom,left:C.left-I.left+b.left,right:I.right-C.right+b.right},D=e.modifiersData.offset;if(m===rn&&D){var R=D[r];Object.keys(N).forEach(function(L){var q=[ge,he].indexOf(L)>=0?1:-1,U=[ae,he].indexOf(L)>=0?"y":"x";N[L]+=R[U]*q})}return N}function Zd(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,o=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?wc:c,u=Mt(a),p=u?o?Ji:Ji.filter(function(g){return Mt(g)===u}):$n,m=p.filter(function(g){return l.indexOf(g)>=0});m.length===0&&(m=p);var h=m.reduce(function(g,_){return g[_]=vn(e,{placement:_,boundary:r,rootBoundary:i,padding:s})[$e(_)],g},{});return Object.keys(h).sort(function(g,_){return h[g]-h[_]})}function Yd(e){if($e(e)===gi)return[];var t=ia(e);return[ns(e),t,ns(t)]}function Xd(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,o=s===void 0?!0:s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,p=n.rootBoundary,m=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,_=n.allowedAutoPlacements,f=t.options.placement,b=$e(f),w=b===f,y=c||(w||!g?[ia(f)]:Yd(f)),d=[f].concat(y).reduce(function(Se,fe){return Se.concat($e(fe)===gi?Zd(t,{placement:fe,boundary:u,rootBoundary:p,padding:l,flipVariations:g,allowedAutoPlacements:_}):fe)},[]),C=t.rects.reference,k=t.rects.popper,$=new Map,T=!0,I=d[0],N=0;N<d.length;N++){var D=d[N],R=$e(D),L=Mt(D)===Lt,q=[ae,he].indexOf(R)>=0,U=q?"width":"height",G=vn(t,{placement:D,boundary:u,rootBoundary:p,altBoundary:m,padding:l}),Q=q?L?ge:re:L?he:ae;C[U]>k[U]&&(Q=ia(Q));var K=ia(Q),we=[];if(i&&we.push(G[R]<=0),o&&we.push(G[Q]<=0,G[K]<=0),we.every(function(Se){return Se})){I=D,T=!1;break}$.set(D,we)}if(T)for(var xe=g?3:1,Ye=function(fe){var Ae=d.find(function(vt){var Te=$.get(vt);if(Te)return Te.slice(0,fe).every(function(wt){return wt})});if(Ae)return I=Ae,"break"},ke=xe;ke>0;ke--){var Xe=Ye(ke);if(Xe==="break")break}t.placement!==I&&(t.modifiersData[a]._skip=!0,t.placement=I,t.reset=!0)}}const Kd={name:"flip",enabled:!0,phase:"main",fn:Xd,requiresIfExists:["offset"],data:{_skip:!1}};function rs(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function is(e){return[ae,ge,he,re].some(function(t){return e[t]>=0})}function Qd(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,s=vn(t,{elementContext:"reference"}),o=vn(t,{altBoundary:!0}),c=rs(s,a),l=rs(o,r,i),u=is(c),p=is(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const Jd={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qd};function em(e,t,n){var a=$e(e),r=[re,ae].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],o=i[1];return s=s||0,o=(o||0)*r,[re,ge].indexOf(a)>=0?{x:o,y:s}:{x:s,y:o}}function tm(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=r===void 0?[0,0]:r,s=wc.reduce(function(u,p){return u[p]=em(p,t.rects,i),u},{}),o=s[t.placement],c=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[a]=s}const nm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tm};function am(e){var t=e.state,n=e.name;t.modifiersData[n]=Sc({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const rm={name:"popperOffsets",enabled:!0,phase:"read",fn:am,data:{}};function im(e){return e==="x"?"y":"x"}function sm(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,o=s===void 0?!1:s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,p=n.padding,m=n.tether,h=m===void 0?!0:m,g=n.tetherOffset,_=g===void 0?0:g,f=vn(t,{boundary:c,rootBoundary:l,padding:p,altBoundary:u}),b=$e(t.placement),w=Mt(t.placement),y=!w,d=_i(b),C=im(d),k=t.modifiersData.popperOffsets,$=t.rects.reference,T=t.rects.popper,I=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(k){if(i){var L,q=d==="y"?ae:re,U=d==="y"?he:ge,G=d==="y"?"height":"width",Q=k[d],K=Q+f[q],we=Q-f[U],xe=h?-T[G]/2:0,Ye=w===Lt?$[G]:T[G],ke=w===Lt?-T[G]:-$[G],Xe=t.elements.arrow,Se=h&&Xe?bi(Xe):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ec(),Ae=fe[q],vt=fe[U],Te=pn(0,$[G],Se[G]),wt=y?$[G]/2-xe-Te-Ae-N.mainAxis:Ye-Te-Ae-N.mainAxis,Me=y?-$[G]/2+xe+Te+vt+N.mainAxis:ke+Te+vt+N.mainAxis,xt=t.elements.arrow&&jn(t.elements.arrow),On=xt?d==="y"?xt.clientTop||0:xt.clientLeft||0:0,Xt=(L=D?.[d])!=null?L:0,Nn=Q+wt-Xt-On,In=Q+Me-Xt,Kt=pn(h?da(K,Nn):K,Q,h?pt(we,In):we);k[d]=Kt,R[d]=Kt-Q}if(o){var Qt,Ln=d==="x"?ae:re,Pn=d==="x"?he:ge,Re=k[C],qe=C==="y"?"height":"width",Jt=Re+f[Ln],Ke=Re-f[Pn],en=[ae,re].indexOf(b)!==-1,Dn=(Qt=D?.[C])!=null?Qt:0,Mn=en?Jt:Re-$[qe]-T[qe]-Dn+N.altAxis,qn=en?Re+$[qe]+T[qe]-Dn-N.altAxis:Ke,zn=h&&en?Ad(Mn,Re,qn):pn(h?Mn:Jt,Re,h?qn:Ke);k[C]=zn,R[C]=zn-Re}t.modifiersData[a]=R}}const om={name:"preventOverflow",enabled:!0,phase:"main",fn:sm,requiresIfExists:["offset"]};function cm(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lm(e){return e===oe(e)||!me(e)?yi(e):cm(e)}function um(e){var t=e.getBoundingClientRect(),n=Pt(t.width)/e.offsetWidth||1,a=Pt(t.height)/e.offsetHeight||1;return n!==1||a!==1}function pm(e,t,n){n===void 0&&(n=!1);var a=me(t),r=me(t)&&um(t),i=Ze(t),s=Dt(e,r,n),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((je(t)!=="body"||wi(i))&&(o=lm(t)),me(t)?(c=Dt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=vi(i))),{x:s.left+o.scrollLeft-c.x,y:s.top+o.scrollTop-c.y,width:s.width,height:s.height}}function dm(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var c=t.get(o);c&&r(c)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),a}function mm(e){var t=dm(e);return Ed.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function hm(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function gm(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var ss={placement:"bottom",modifiers:[],strategy:"absolute"};function os(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function fm(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?ss:r;return function(o,c,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ss,i),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},p=[],m=!1,h={state:u,setOptions:function(b){var w=typeof b=="function"?b(u.options):b;_(),u.options=Object.assign({},i,u.options,w),u.scrollParents={reference:ft(o)?dn(o):o.contextElement?dn(o.contextElement):[],popper:dn(c)};var y=mm(gm([].concat(a,u.options.modifiers)));return u.orderedModifiers=y.filter(function(d){return d.enabled}),g(),h.update()},forceUpdate:function(){if(!m){var b=u.elements,w=b.reference,y=b.popper;if(os(w,y)){u.rects={reference:pm(w,jn(y),u.options.strategy==="fixed"),popper:bi(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var d=0;d<u.orderedModifiers.length;d++){if(u.reset===!0){u.reset=!1,d=-1;continue}var C=u.orderedModifiers[d],k=C.fn,$=C.options,T=$===void 0?{}:$,I=C.name;typeof k=="function"&&(u=k({state:u,options:T,name:I,instance:h})||u)}}}},update:hm(function(){return new Promise(function(f){h.forceUpdate(),f(u)})}),destroy:function(){_(),m=!0}};if(!os(o,c))return h;h.setOptions(l).then(function(f){!m&&l.onFirstUpdate&&l.onFirstUpdate(f)});function g(){u.orderedModifiers.forEach(function(f){var b=f.name,w=f.options,y=w===void 0?{}:w,d=f.effect;if(typeof d=="function"){var C=d({state:u,name:b,instance:h,options:y}),k=function(){};p.push(C||k)}})}function _(){p.forEach(function(f){return f()}),p=[]}return h}}var bm=[qd,rm,Dd,xc,nm,Kd,om,Nd,Jd],_m=fm({defaultModifiers:bm}),ym="tippy-box",Ac="tippy-content",vm="tippy-backdrop",Tc="tippy-arrow",Rc="tippy-svg-arrow",tt={passive:!0,capture:!0},Oc=function(){return document.body};function Ha(e,t,n){if(Array.isArray(e)){var a=e[t];return a??(Array.isArray(n)?n[t]:n)}return e}function xi(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Nc(e,t){return typeof e=="function"?e.apply(void 0,t):e}function cs(e,t){if(t===0)return e;var n;return function(a){clearTimeout(n),n=setTimeout(function(){e(a)},t)}}function wm(e){return e.split(/s+/).filter(Boolean)}function jt(e){return[].concat(e)}function ls(e,t){e.indexOf(t)===-1&&e.push(t)}function xm(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function km(e){return e.split("-")[0]}function ma(e){return[].slice.call(e)}function us(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function mn(){return document.createElement("div")}function Oa(e){return["Element","Fragment"].some(function(t){return xi(e,t)})}function Cm(e){return xi(e,"NodeList")}function Em(e){return xi(e,"MouseEvent")}function Fm(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function $m(e){return Oa(e)?[e]:Cm(e)?ma(e):Array.isArray(e)?e:ma(document.querySelectorAll(e))}function Wa(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function ps(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function jm(e){var t,n=jt(e),a=n[0];return a!=null&&(t=a.ownerDocument)!=null&&t.body?a.ownerDocument:document}function Sm(e,t){var n=t.clientX,a=t.clientY;return e.every(function(r){var i=r.popperRect,s=r.popperState,o=r.props,c=o.interactiveBorder,l=km(s.placement),u=s.modifiersData.offset;if(!u)return!0;var p=l==="bottom"?u.top.y:0,m=l==="top"?u.bottom.y:0,h=l==="right"?u.left.x:0,g=l==="left"?u.right.x:0,_=i.top-a+p>c,f=a-i.bottom-m>c,b=i.left-n+h>c,w=n-i.right-g>c;return _||f||b||w})}function Va(e,t,n){var a=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){e[a](r,n)})}function ds(e,t){for(var n=t;n;){var a;if(e.contains(n))return!0;n=n.getRootNode==null||(a=n.getRootNode())==null?void 0:a.host}return!1}var Fe={isTouch:!1},ms=0;function Am(){Fe.isTouch||(Fe.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ic))}function Ic(){var e=performance.now();e-ms<20&&(Fe.isTouch=!1,document.removeEventListener("mousemove",Ic)),ms=e}function Tm(){var e=document.activeElement;if(Fm(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Rm(){document.addEventListener("touchstart",Am,tt),window.addEventListener("blur",Tm)}var Om=typeof window<"u"&&typeof document<"u",Nm=Om?!!window.msCrypto:!1,Im={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Lm={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},_e=Object.assign({appendTo:Oc,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Im,Lm),Pm=Object.keys(_e),Dm=function(t){var n=Object.keys(t);n.forEach(function(a){_e[a]=t[a]})};function Lc(e){var t=e.plugins||[],n=t.reduce(function(a,r){var i=r.name,s=r.defaultValue;if(i){var o;a[i]=e[i]!==void 0?e[i]:(o=_e[i])!=null?o:s}return a},{});return Object.assign({},e,n)}function Mm(e,t){var n=t?Object.keys(Lc(Object.assign({},_e,{plugins:t}))):Pm,a=n.reduce(function(r,i){var s=(e.getAttribute("data-tippy-"+i)||"").trim();if(!s)return r;if(i==="content")r[i]=s;else try{r[i]=JSON.parse(s)}catch{r[i]=s}return r},{});return a}function hs(e,t){var n=Object.assign({},t,{content:Nc(t.content,[e])},t.ignoreAttributes?{}:Mm(e,t.plugins));return n.aria=Object.assign({},_e.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var qm=function(){return"innerHTML"};function Fr(e,t){e[qm()]=t}function gs(e){var t=mn();return e===!0?t.className=Tc:(t.className=Rc,Oa(e)?t.appendChild(e):Fr(t,e)),t}function fs(e,t){Oa(t.content)?(Fr(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Fr(e,t.content):e.textContent=t.content)}function $r(e){var t=e.firstElementChild,n=ma(t.children);return{box:t,content:n.find(function(a){return a.classList.contains(Ac)}),arrow:n.find(function(a){return a.classList.contains(Tc)||a.classList.contains(Rc)}),backdrop:n.find(function(a){return a.classList.contains(vm)})}}function Pc(e){var t=mn(),n=mn();n.className=ym,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var a=mn();a.className=Ac,a.setAttribute("data-state","hidden"),fs(a,e.props),t.appendChild(n),n.appendChild(a),r(e.props,e.props);function r(i,s){var o=$r(t),c=o.box,l=o.content,u=o.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&fs(l,e.props),s.arrow?u?i.arrow!==s.arrow&&(c.removeChild(u),c.appendChild(gs(s.arrow))):c.appendChild(gs(s.arrow)):u&&c.removeChild(u)}return{popper:t,onUpdate:r}}Pc.$$tippy=!0;var zm=1,Kn=[],Za=[];function Bm(e,t){var n=hs(e,Object.assign({},_e,Lc(us(t)))),a,r,i,s=!1,o=!1,c=!1,l=!1,u,p,m,h=[],g=cs(Nn,n.interactiveDebounce),_,f=zm++,b=null,w=xm(n.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},d={id:f,reference:e,popper:mn(),popperInstance:b,props:n,state:y,plugins:w,clearDelayTimeouts:Mn,setProps:qn,setContent:zn,show:Wl,hide:Vl,hideWithInteractivity:Zl,enable:en,disable:Dn,unmount:Yl,destroy:Xl};if(!n.render)return d;var C=n.render(d),k=C.popper,$=C.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+d.id,d.popper=k,e._tippy=d,k._tippy=d;var T=w.map(function(v){return v.fn(d)}),I=e.hasAttribute("aria-expanded");return xt(),xe(),Q(),K("onCreate",[d]),n.showOnCreate&&Jt(),k.addEventListener("mouseenter",function(){d.props.interactive&&d.state.isVisible&&d.clearDelayTimeouts()}),k.addEventListener("mouseleave",function(){d.props.interactive&&d.props.trigger.indexOf("mouseenter")>=0&&q().addEventListener("mousemove",g)}),d;function N(){var v=d.props.touch;return Array.isArray(v)?v:[v,0]}function D(){return N()[0]==="hold"}function R(){var v;return!!((v=d.props.render)!=null&&v.$$tippy)}function L(){return _||e}function q(){var v=L().parentNode;return v?jm(v):document}function U(){return $r(k)}function G(v){return d.state.isMounted&&!d.state.isVisible||Fe.isTouch||u&&u.type==="focus"?0:Ha(d.props.delay,v?0:1,_e.delay)}function Q(v){v===void 0&&(v=!1),k.style.pointerEvents=d.props.interactive&&!v?"":"none",k.style.zIndex=""+d.props.zIndex}function K(v,E,F){if(F===void 0&&(F=!0),T.forEach(function(A){A[v]&&A[v].apply(A,E)}),F){var O;(O=d.props)[v].apply(O,E)}}function we(){var v=d.props.aria;if(v.content){var E="aria-"+v.content,F=k.id,O=jt(d.props.triggerTarget||e);O.forEach(function(A){var te=A.getAttribute(E);if(d.state.isVisible)A.setAttribute(E,te?te+" "+F:F);else{var ce=te&&te.replace(F,"").trim();ce?A.setAttribute(E,ce):A.removeAttribute(E)}})}}function xe(){if(!(I||!d.props.aria.expanded)){var v=jt(d.props.triggerTarget||e);v.forEach(function(E){d.props.interactive?E.setAttribute("aria-expanded",d.state.isVisible&&E===L()?"true":"false"):E.removeAttribute("aria-expanded")})}}function Ye(){q().removeEventListener("mousemove",g),Kn=Kn.filter(function(v){return v!==g})}function ke(v){if(!(Fe.isTouch&&(c||v.type==="mousedown"))){var E=v.composedPath&&v.composedPath()[0]||v.target;if(!(d.props.interactive&&ds(k,E))){if(jt(d.props.triggerTarget||e).some(function(F){return ds(F,E)})){if(Fe.isTouch||d.state.isVisible&&d.props.trigger.indexOf("click")>=0)return}else K("onClickOutside",[d,v]);d.props.hideOnClick===!0&&(d.clearDelayTimeouts(),d.hide(),o=!0,setTimeout(function(){o=!1}),d.state.isMounted||Ae())}}}function Xe(){c=!0}function Se(){c=!1}function fe(){var v=q();v.addEventListener("mousedown",ke,!0),v.addEventListener("touchend",ke,tt),v.addEventListener("touchstart",Se,tt),v.addEventListener("touchmove",Xe,tt)}function Ae(){var v=q();v.removeEventListener("mousedown",ke,!0),v.removeEventListener("touchend",ke,tt),v.removeEventListener("touchstart",Se,tt),v.removeEventListener("touchmove",Xe,tt)}function vt(v,E){wt(v,function(){!d.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&E()})}function Te(v,E){wt(v,E)}function wt(v,E){var F=U().box;function O(A){A.target===F&&(Va(F,"remove",O),E())}if(v===0)return E();Va(F,"remove",p),Va(F,"add",O),p=O}function Me(v,E,F){F===void 0&&(F=!1);var O=jt(d.props.triggerTarget||e);O.forEach(function(A){A.addEventListener(v,E,F),h.push({node:A,eventType:v,handler:E,options:F})})}function xt(){D()&&(Me("touchstart",Xt,{passive:!0}),Me("touchend",In,{passive:!0})),wm(d.props.trigger).forEach(function(v){if(v!=="manual")switch(Me(v,Xt),v){case"mouseenter":Me("mouseleave",In);break;case"focus":Me(Nm?"focusout":"blur",Kt);break;case"focusin":Me("focusout",Kt);break}})}function On(){h.forEach(function(v){var E=v.node,F=v.eventType,O=v.handler,A=v.options;E.removeEventListener(F,O,A)}),h=[]}function Xt(v){var E,F=!1;if(!(!d.state.isEnabled||Qt(v)||o)){var O=((E=u)==null?void 0:E.type)==="focus";u=v,_=v.currentTarget,xe(),!d.state.isVisible&&Em(v)&&Kn.forEach(function(A){return A(v)}),v.type==="click"&&(d.props.trigger.indexOf("mouseenter")<0||s)&&d.props.hideOnClick!==!1&&d.state.isVisible?F=!0:Jt(v),v.type==="click"&&(s=!F),F&&!O&&Ke(v)}}function Nn(v){var E=v.target,F=L().contains(E)||k.contains(E);if(!(v.type==="mousemove"&&F)){var O=qe().concat(k).map(function(A){var te,ce=A._tippy,kt=(te=ce.popperInstance)==null?void 0:te.state;return kt?{popperRect:A.getBoundingClientRect(),popperState:kt,props:n}:null}).filter(Boolean);Sm(O,v)&&(Ye(),Ke(v))}}function In(v){var E=Qt(v)||d.props.trigger.indexOf("click")>=0&&s;if(!E){if(d.props.interactive){d.hideWithInteractivity(v);return}Ke(v)}}function Kt(v){d.props.trigger.indexOf("focusin")<0&&v.target!==L()||d.props.interactive&&v.relatedTarget&&k.contains(v.relatedTarget)||Ke(v)}function Qt(v){return Fe.isTouch?D()!==v.type.indexOf("touch")>=0:!1}function Ln(){Pn();var v=d.props,E=v.popperOptions,F=v.placement,O=v.offset,A=v.getReferenceClientRect,te=v.moveTransition,ce=R()?$r(k).arrow:null,kt=A?{getBoundingClientRect:A,contextElement:A.contextElement||L()}:e,Di={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Bn){var Ct=Bn.state;if(R()){var Kl=U(),qa=Kl.box;["placement","reference-hidden","escaped"].forEach(function(Un){Un==="placement"?qa.setAttribute("data-placement",Ct.placement):Ct.attributes.popper["data-popper-"+Un]?qa.setAttribute("data-"+Un,""):qa.removeAttribute("data-"+Un)}),Ct.attributes.popper={}}}},Qe=[{name:"offset",options:{offset:O}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!te}},Di];R()&&ce&&Qe.push({name:"arrow",options:{element:ce,padding:3}}),Qe.push.apply(Qe,E?.modifiers||[]),d.popperInstance=_m(kt,k,Object.assign({},E,{placement:F,onFirstUpdate:m,modifiers:Qe}))}function Pn(){d.popperInstance&&(d.popperInstance.destroy(),d.popperInstance=null)}function Re(){var v=d.props.appendTo,E,F=L();d.props.interactive&&v===Oc||v==="parent"?E=F.parentNode:E=Nc(v,[F]),E.contains(k)||E.appendChild(k),d.state.isMounted=!0,Ln()}function qe(){return ma(k.querySelectorAll("[data-tippy-root]"))}function Jt(v){d.clearDelayTimeouts(),v&&K("onTrigger",[d,v]),fe();var E=G(!0),F=N(),O=F[0],A=F[1];Fe.isTouch&&O==="hold"&&A&&(E=A),E?a=setTimeout(function(){d.show()},E):d.show()}function Ke(v){if(d.clearDelayTimeouts(),K("onUntrigger",[d,v]),!d.state.isVisible){Ae();return}if(!(d.props.trigger.indexOf("mouseenter")>=0&&d.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(v.type)>=0&&s)){var E=G(!1);E?r=setTimeout(function(){d.state.isVisible&&d.hide()},E):i=requestAnimationFrame(function(){d.hide()})}}function en(){d.state.isEnabled=!0}function Dn(){d.hide(),d.state.isEnabled=!1}function Mn(){clearTimeout(a),clearTimeout(r),cancelAnimationFrame(i)}function qn(v){if(!d.state.isDestroyed){K("onBeforeUpdate",[d,v]),On();var E=d.props,F=hs(e,Object.assign({},E,us(v),{ignoreAttributes:!0}));d.props=F,xt(),E.interactiveDebounce!==F.interactiveDebounce&&(Ye(),g=cs(Nn,F.interactiveDebounce)),E.triggerTarget&&!F.triggerTarget?jt(E.triggerTarget).forEach(function(O){O.removeAttribute("aria-expanded")}):F.triggerTarget&&e.removeAttribute("aria-expanded"),xe(),Q(),$&&$(E,F),d.popperInstance&&(Ln(),qe().forEach(function(O){requestAnimationFrame(O._tippy.popperInstance.forceUpdate)})),K("onAfterUpdate",[d,v])}}function zn(v){d.setProps({content:v})}function Wl(){var v=d.state.isVisible,E=d.state.isDestroyed,F=!d.state.isEnabled,O=Fe.isTouch&&!d.props.touch,A=Ha(d.props.duration,0,_e.duration);if(!(v||E||F||O)&&!L().hasAttribute("disabled")&&(K("onShow",[d],!1),d.props.onShow(d)!==!1)){if(d.state.isVisible=!0,R()&&(k.style.visibility="visible"),Q(),fe(),d.state.isMounted||(k.style.transition="none"),R()){var te=U(),ce=te.box,kt=te.content;Wa([ce,kt],0)}m=function(){var Qe;if(!(!d.state.isVisible||l)){if(l=!0,k.offsetHeight,k.style.transition=d.props.moveTransition,R()&&d.props.animation){var Ma=U(),Bn=Ma.box,Ct=Ma.content;Wa([Bn,Ct],A),ps([Bn,Ct],"visible")}we(),xe(),ls(Za,d),(Qe=d.popperInstance)==null||Qe.forceUpdate(),K("onMount",[d]),d.props.animation&&R()&&Te(A,function(){d.state.isShown=!0,K("onShown",[d])})}},Re()}}function Vl(){var v=!d.state.isVisible,E=d.state.isDestroyed,F=!d.state.isEnabled,O=Ha(d.props.duration,1,_e.duration);if(!(v||E||F)&&(K("onHide",[d],!1),d.props.onHide(d)!==!1)){if(d.state.isVisible=!1,d.state.isShown=!1,l=!1,s=!1,R()&&(k.style.visibility="hidden"),Ye(),Ae(),Q(!0),R()){var A=U(),te=A.box,ce=A.content;d.props.animation&&(Wa([te,ce],O),ps([te,ce],"hidden"))}we(),xe(),d.props.animation?R()&&vt(O,d.unmount):d.unmount()}}function Zl(v){q().addEventListener("mousemove",g),ls(Kn,g),g(v)}function Yl(){d.state.isVisible&&d.hide(),d.state.isMounted&&(Pn(),qe().forEach(function(v){v._tippy.unmount()}),k.parentNode&&k.parentNode.removeChild(k),Za=Za.filter(function(v){return v!==d}),d.state.isMounted=!1,K("onHidden",[d]))}function Xl(){d.state.isDestroyed||(d.clearDelayTimeouts(),d.unmount(),On(),delete e._tippy,d.state.isDestroyed=!0,K("onDestroy",[d]))}}function Sn(e,t){t===void 0&&(t={});var n=_e.plugins.concat(t.plugins||[]);Rm();var a=Object.assign({},t,{plugins:n}),r=$m(e),i=r.reduce(function(s,o){var c=o&&Bm(o,a);return c&&s.push(c),s},[]);return Oa(e)?i[0]:i}Sn.defaultProps=_e;Sn.setDefaultProps=Dm;Sn.currentInput=Fe;Object.assign({},xc,{effect:function(t){var n=t.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow)}});Sn.setDefaultProps({render:Pc});let Y=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Um(e){return ki(e)}function ki(e){return Array.isArray(e)?Gm(e):e instanceof RegExp?e:typeof e=="object"?Hm(e):e}function Gm(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=ki(e[n]);return t}function Hm(e){let t={};for(let n in e)t[n]=ki(e[n]);return t}function Dc(e,...t){return t.forEach(n=>{for(let a in n)e[a]=n[a]}),e}function Mc(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\");return t===0?e:~t===e.length-1?Mc(e.substring(0,e.length-1)):e.substr(~t+1)}var Ya=/$(d+)|${(d+):/(downcase|upcase)}/g,Qn=class{static hasCaptures(e){return e===null?!1:(Ya.lastIndex=0,Ya.test(e))}static replaceCaptures(e,t,n){return e.replace(Ya,(a,r,i,s)=>{let o=n[parseInt(r||i,10)];if(o){let c=t.substring(o.start,o.end);for(;c[0]===".";)c=c.substring(1);switch(s){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return a})}};function qc(e,t){return e<t?-1:e>t?1:0}function zc(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let r=0;r<n;r++){let i=qc(e[r],t[r]);if(i!==0)return i}return 0}return n-a}function bs(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Bc(e){return e.replace(/[-\{}*+?|^$.,[]()#s]/g,"\$&")}var Uc=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},ha=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Zm(e),t)}static createFromParsedTheme(e,t){return Xm(e,t)}_cachedMatchRoot=new Uc(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find(r=>Wm(e.parent,r.parentScopes));return a?new Gc(a.fontStyle,a.foreground,a.background):null}},Xa=class sa{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const a of n)t=new sa(t,a);return t}static from(...t){let n=null;for(let a=0;a<t.length;a++)n=new sa(n,t[a]);return n}push(t){return new sa(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let a=this;for(;a&&a!==t;)n.push(a.scopeName),a=a.parent;return a===t?n.reverse():void 0}};function Wm(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let a=t[n],r=!1;if(a===">"){if(n===t.length-1)return!1;a=t[++n],r=!0}for(;e&&!Vm(e.scopeName,a);){if(r)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Vm(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Gc=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Zm(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],a=0;for(let r=0,i=t.length;r<i;r++){let s=t[r];if(!s.settings)continue;let o;if(typeof s.scope=="string"){let p=s.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),o=p.split(",")}else Array.isArray(s.scope)?o=s.scope:o=[""];let c=-1;if(typeof s.settings.fontStyle=="string"){c=0;let p=s.settings.fontStyle.split(" ");for(let m=0,h=p.length;m<h;m++)switch(p[m]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let l=null;typeof s.settings.foreground=="string"&&bs(s.settings.foreground)&&(l=s.settings.foreground);let u=null;typeof s.settings.background=="string"&&bs(s.settings.background)&&(u=s.settings.background);for(let p=0,m=o.length;p<m;p++){let g=o[p].trim().split(" "),_=g[g.length-1],f=null;g.length>1&&(f=g.slice(0,g.length-1),f.reverse()),n[a++]=new Ym(_,f,r,c,l,u)}}return n}var Ym=class{constructor(e,t,n,a,r,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=r,this.background=i}},ee=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(ee||{});function Xm(e,t){e.sort((c,l)=>{let u=qc(c.scope,l.scope);return u!==0||(u=zc(c.parentScopes,l.parentScopes),u!==0)?u:c.index-l.index});let n=0,a="#000000",r="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(n=c.fontStyle),c.foreground!==null&&(a=c.foreground),c.background!==null&&(r=c.background)}let i=new Km(t),s=new Gc(n,i.getId(a),i.getId(r)),o=new Jm(new jr(0,null,-1,0,0),[]);for(let c=0,l=e.length;c<l;c++){let u=e[c];o.insert(0,u.scope,u.parentScopes,u.fontStyle,i.getId(u.foreground),i.getId(u.background))}return new ha(i,s,o)}var Km=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Qm=Object.freeze([]),jr=class Hc{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,a,r,i){this.scopeDepth=t,this.parentScopes=n||Qm,this.fontStyle=a,this.foreground=r,this.background=i}clone(){return new Hc(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let a=0,r=t.length;a<r;a++)n[a]=t[a].clone();return n}acceptOverwrite(t,n,a,r){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),a!==0&&(this.foreground=a),r!==0&&(this.background=r)}},Jm=class Sr{constructor(t,n=[],a={}){this._mainRule=t,this._children=a,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let a=0,r=0;for(;t.parentScopes[a]===">"&&a++,n.parentScopes[r]===">"&&r++,!(a>=t.parentScopes.length||r>=n.parentScopes.length);){const i=n.parentScopes[r].length-t.parentScopes[a].length;if(i!==0)return i;a++,r++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let a=t.indexOf("."),r,i;if(a===-1?(r=t,i=""):(r=t.substring(0,a),i=t.substring(a+1)),this._children.hasOwnProperty(r))return this._children[r].match(i)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Sr._cmpBySpecificity),n}insert(t,n,a,r,i,s){if(n===""){this._doInsertHere(t,a,r,i,s);return}let o=n.indexOf("."),c,l;o===-1?(c=n,l=""):(c=n.substring(0,o),l=n.substring(o+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new Sr(this._mainRule.clone(),jr.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,a,r,i,s)}_doInsertHere(t,n,a,r,i){if(n===null){this._mainRule.acceptOverwrite(t,a,r,i);return}for(let s=0,o=this._rulesWithParentScopes.length;s<o;s++){let c=this._rulesWithParentScopes[s];if(zc(c.parentScopes,n)===0){c.acceptOverwrite(t,a,r,i);return}}a===-1&&(a=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new jr(t,n,a,r,i))}},qt=class le{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=le.getLanguageId(t),a=le.getTokenType(t),r=le.getFontStyle(t),i=le.getForeground(t),s=le.getBackground(t);console.log({languageId:n,tokenType:a,fontStyle:r,foreground:i,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,a,r,i,s,o){let c=le.getLanguageId(t),l=le.getTokenType(t),u=le.containsBalancedBrackets(t)?1:0,p=le.getFontStyle(t),m=le.getForeground(t),h=le.getBackground(t);return n!==0&&(c=n),a!==8&&(l=a),r!==null&&(u=r?1:0),i!==-1&&(p=i),s!==0&&(m=s),o!==0&&(h=o),(c<<0|l<<8|u<<10|p<<11|m<<15|h<<24)>>>0}};function ga(e,t){const n=[],a=eh(e);let r=a.next();for(;r!==null;){let c=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=a.next()}let l=s();if(n.push({matcher:l,priority:c}),r!==",")break;r=a.next()}return n;function i(){if(r==="-"){r=a.next();const c=i();return l=>!!c&&!c(l)}if(r==="("){r=a.next();const c=o();return r===")"&&(r=a.next()),c}if(_s(r)){const c=[];do c.push(r),r=a.next();while(_s(r));return l=>t(c,l)}return null}function s(){const c=[];let l=i();for(;l;)c.push(l),l=i();return u=>c.every(p=>p(u))}function o(){const c=[];let l=s();for(;l&&(c.push(l),r==="|"||r===",");){do r=a.next();while(r==="|"||r===",");l=s()}return u=>c.some(p=>p(u))}}function _s(e){return!!e&&!!e.match(/[w.:]+/)}function eh(e){let t=/([LR]:|[w.:][w.:-]*|[,|-()])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const a=n[0];return n=t.exec(e),a}}}function Wc(e){typeof e.dispose=="function"&&e.dispose()}var wn=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},th=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},nh=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ah=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new wn(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new nh;for(const n of e)rh(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof wn){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function rh(e,t,n,a){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=n.lookup(t);e instanceof wn?oa({baseGrammar:i,selfGrammar:r},a):Ar(e.ruleName,{baseGrammar:i,selfGrammar:r,repository:r.repository},a);const s=n.injections(e.scopeName);if(s)for(const o of s)a.add(new wn(o))}function Ar(e,t,n){if(t.repository&&t.repository[e]){const a=t.repository[e];fa([a],t,n)}}function oa(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&fa(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&fa(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function fa(e,t,n){for(const a of e){if(n.visitedRule.has(a))continue;n.visitedRule.add(a);const r=a.repository?Dc({},t.repository,a.repository):t.repository;Array.isArray(a.patterns)&&fa(a.patterns,{...t,repository:r},n);const i=a.include;if(!i)continue;const s=Vc(i);switch(s.kind){case 0:oa({...t,selfGrammar:t.baseGrammar},n);break;case 1:oa(t,n);break;case 2:Ar(s.ruleName,{...t,repository:r},n);break;case 3:case 4:const o=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){const c={baseGrammar:t.baseGrammar,selfGrammar:o,repository:r};s.kind===4?Ar(s.ruleName,c,n):oa(c,n)}else s.kind===4?n.add(new th(s.scopeName,s.ruleName)):n.add(new wn(s.scopeName));break}}}var ih=class{kind=0},sh=class{kind=1},oh=class{constructor(e){this.ruleName=e}kind=2},ch=class{constructor(e){this.scopeName=e}kind=3},lh=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Vc(e){if(e==="$base")return new ih;if(e==="$self")return new sh;const t=e.indexOf("#");if(t===-1)return new ch(e);if(t===0)return new oh(e.substring(1));{const n=e.substring(0,t),a=e.substring(t+1);return new lh(n,a)}}var uh=/\(d+)/,ys=/\(d+)/g,ph=-1,Zc=-2;var An=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,a){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Qn.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=Qn.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Mc(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Qn.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Qn.replaceCaptures(this._contentName,e,t)}},dh=class extends An{retokenizeCapturedWithRuleId;constructor(e,t,n,a,r){super(e,t,n,a),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}},mh=class extends An{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,a,r){super(e,t,n,null),this._match=new xn(a,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new kn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vs=class extends An{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,a,r){super(e,t,n,a),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new kn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Tr=class extends An{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,a,r,i,s,o,c,l){super(e,t,n,a),this._begin=new xn(r,this.id),this.beginCaptures=i,this._end=new xn(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new kn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ba=class extends An{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,a,r,i,s,o,c){super(e,t,n,a),this._begin=new xn(r,this.id),this.beginCaptures=i,this.whileCaptures=o,this._while=new xn(s,Zc),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new kn;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new kn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},Yc=class J{static createCaptureRule(t,n,a,r,i){return t.registerRule(s=>new dh(n,s,a,r,i))}static getCompiledRuleId(t,n,a){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new mh(t.$vscodeTextmateLocation,t.id,t.name,t.match,J._compileCaptures(t.captures,n,a));if(typeof t.begin>"u"){t.repository&&(a=Dc({},a,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new vs(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,J._compilePatterns(i,n,a))}return t.while?new ba(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,J._compileCaptures(t.beginCaptures||t.captures,n,a),t.while,J._compileCaptures(t.whileCaptures||t.captures,n,a),J._compilePatterns(t.patterns,n,a)):new Tr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,J._compileCaptures(t.beginCaptures||t.captures,n,a),t.end,J._compileCaptures(t.endCaptures||t.captures,n,a),t.applyEndPatternLast,J._compilePatterns(t.patterns,n,a))}),t.id}static _compileCaptures(t,n,a){let r=[];if(t){let i=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);o>i&&(i=o)}for(let s=0;s<=i;s++)r[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);let c=0;t[s].patterns&&(c=J.getCompiledRuleId(t[s],n,a)),r[o]=J.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,c)}}return r}static _compilePatterns(t,n,a){let r=[];if(t)for(let i=0,s=t.length;i<s;i++){const o=t[i];let c=-1;if(o.include){const l=Vc(o.include);switch(l.kind){case 0:case 1:c=J.getCompiledRuleId(a[o.include],n,a);break;case 2:let u=a[l.ruleName];u&&(c=J.getCompiledRuleId(u,n,a));break;case 3:case 4:const p=l.scopeName,m=l.kind===4?l.ruleName:null,h=n.getExternalGrammar(p,a);if(h)if(m){let g=h.repository[m];g&&(c=J.getCompiledRuleId(g,n,h.repository))}else c=J.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else c=J.getCompiledRuleId(o,n,a);if(c!==-1){const l=n.getRule(c);let u=!1;if((l instanceof vs||l instanceof Tr||l instanceof ba)&&l.hasMissingPatterns&&l.patterns.length===0&&(u=!0),u)continue;r.push(c)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},xn=class Xc{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const a=t.length;let r=0,i=[],s=!1;for(let o=0;o<a;o++)if(t.charAt(o)==="\"&&o+1<a){const l=t.charAt(o+1);l==="z"?(i.push(t.substring(r,o)),i.push("$(?!\n)(?<!\n)"),r=o+2):(l==="A"||l==="G")&&(s=!0),o++}this.hasAnchor=s,r===0?this.source=t:(i.push(t.substring(r,a)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=uh.test(this.source):this.hasBackReferences=!1}clone(){return new Xc(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let a=n.map(r=>t.substring(r.start,r.end));return ys.lastIndex=0,this.source.replace(ys,(r,i)=>Bc(a[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],a=[],r=[],i,s,o,c;for(i=0,s=this.source.length;i<s;i++)o=this.source.charAt(i),t[i]=o,n[i]=o,a[i]=o,r[i]=o,o==="\"&&i+1<s&&(c=this.source.charAt(i+1),c==="A"?(t[i+1]="",n[i+1]="",a[i+1]="A",r[i+1]="A"):c==="G"?(t[i+1]="",n[i+1]="G",a[i+1]="",r[i+1]="G"):(t[i+1]=c,n[i+1]=c,a[i+1]=c,r[i+1]=c),i++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:a.join(""),A1_G1:r.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},kn=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new ws(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map(r=>r.resolveAnchors(t,n));return new ws(e,a,this._items.map(r=>r.ruleId))}},ws=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
`)}findNextMatchSync(e,t,n){const a=this.scanner.findNextMatchSync(e,t,n);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},Ka=class{constructor(e,t){this.languageId=e,this.tokenType=t}},hh=class Rr{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Ka(t,8),this._embeddedLanguagesMatcher=new gh(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Rr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Ka(0,0);_getBasicScopeAttributes=new Uc(t=>{const n=this._scopeToLanguage(t),a=this._toStandardTokenType(t);return new Ka(n,a)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Rr.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/b(comment|string|regex|meta.embedded)b/},gh=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,a])=>Bc(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},xs=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Kc(e,t,n,a,r,i,s,o){const c=t.content.length;let l=!1,u=-1;if(s){const h=fh(e,t,n,a,r,i);r=h.stack,a=h.linePos,n=h.isFirstLine,u=h.anchorPosition}const p=Date.now();for(;!l;){if(o!==0&&Date.now()-p>o)return new xs(r,!0);m()}return new xs(r,!1);function m(){const h=bh(e,t,n,a,r,u);if(!h){i.produce(r,c),l=!0;return}const g=h.captureIndices,_=h.matchedRuleId,f=g&&g.length>0?g[0].end>a:!1;if(_===ph){const b=r.getRule(e);i.produce(r,g[0].start),r=r.withContentNameScopesList(r.nameScopesList),cn(e,t,n,r,i,b.endCaptures,g),i.produce(r,g[0].end);const w=r;if(r=r.parent,u=w.getAnchorPos(),!f&&w.getEnterPos()===a){r=w,i.produce(r,c),l=!0;return}}else{const b=e.getRule(_);i.produce(r,g[0].start);const w=r,y=b.getName(t.content,g),d=r.contentNameScopesList.pushAttributed(y,e);if(r=r.push(_,a,u,g[0].end===c,null,d,d),b instanceof Tr){const C=b;cn(e,t,n,r,i,C.beginCaptures,g),i.produce(r,g[0].end),u=g[0].end;const k=C.getContentName(t.content,g),$=d.pushAttributed(k,e);if(r=r.withContentNameScopesList($),C.endHasBackReferences&&(r=r.withEndRule(C.getEndWithResolvedBackReferences(t.content,g))),!f&&w.hasSameRuleAs(r)){r=r.pop(),i.produce(r,c),l=!0;return}}else if(b instanceof ba){const C=b;cn(e,t,n,r,i,C.beginCaptures,g),i.produce(r,g[0].end),u=g[0].end;const k=C.getContentName(t.content,g),$=d.pushAttributed(k,e);if(r=r.withContentNameScopesList($),C.whileHasBackReferences&&(r=r.withEndRule(C.getWhileWithResolvedBackReferences(t.content,g))),!f&&w.hasSameRuleAs(r)){r=r.pop(),i.produce(r,c),l=!0;return}}else if(cn(e,t,n,r,i,b.captures,g),i.produce(r,g[0].end),r=r.pop(),!f){r=r.safePop(),i.produce(r,c),l=!0;return}}g[0].end>a&&(a=g[0].end,n=!1)}}function fh(e,t,n,a,r,i){let s=r.beginRuleCapturedEOL?0:-1;const o=[];for(let c=r;c;c=c.pop()){const l=c.getRule(e);l instanceof ba&&o.push({rule:l,stack:c})}for(let c=o.pop();c;c=o.pop()){const{ruleScanner:l,findOptions:u}=vh(c.rule,e,c.stack.endRule,n,a===s),p=l.findNextMatchSync(t,a,u);if(p){if(p.ruleId!==Zc){r=c.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(i.produce(c.stack,p.captureIndices[0].start),cn(e,t,n,c.stack,i,c.rule.whileCaptures,p.captureIndices),i.produce(c.stack,p.captureIndices[0].end),s=p.captureIndices[0].end,p.captureIndices[0].end>a&&(a=p.captureIndices[0].end,n=!1))}else{r=c.stack.pop();break}}return{stack:r,linePos:a,anchorPosition:s,isFirstLine:n}}function bh(e,t,n,a,r,i){const s=_h(e,t,n,a,r,i),o=e.getInjections();if(o.length===0)return s;const c=yh(o,e,t,n,a,r,i);if(!c)return s;if(!s)return c;const l=s.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:s}function _h(e,t,n,a,r,i){const s=r.getRule(e),{ruleScanner:o,findOptions:c}=Qc(s,e,r.endRule,n,a===i),l=o.findNextMatchSync(t,a,c);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function yh(e,t,n,a,r,i,s){let o=Number.MAX_VALUE,c=null,l,u=0;const p=i.contentNameScopesList.getScopeNames();for(let m=0,h=e.length;m<h;m++){const g=e[m];if(!g.matcher(p))continue;const _=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=Qc(_,t,null,a,r===s),w=f.findNextMatchSync(n,r,b);if(!w)continue;const y=w.captureIndices[0].start;if(!(y>=o)&&(o=y,c=w.captureIndices,l=w.ruleId,u=g.priority,o===r))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function Qc(e,t,n,a,r){return{ruleScanner:e.compileAG(t,n,a,r),findOptions:0}}function vh(e,t,n,a,r){return{ruleScanner:e.compileWhileAG(t,n,a,r),findOptions:0}}function cn(e,t,n,a,r,i,s){if(i.length===0)return;const o=t.content,c=Math.min(i.length,s.length),l=[],u=s[0].end;for(let p=0;p<c;p++){const m=i[p];if(m===null)continue;const h=s[p];if(h.length===0)continue;if(h.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=h.start;)r.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?r.produceFromScopes(l[l.length-1].scopes,h.start):r.produce(a,h.start),m.retokenizeCapturedWithRuleId){const _=m.getName(o,s),f=a.contentNameScopesList.pushAttributed(_,e),b=m.getContentName(o,s),w=f.pushAttributed(b,e),y=a.push(m.retokenizeCapturedWithRuleId,h.start,-1,!1,null,f,w),d=e.createOnigString(o.substring(0,h.end));Kc(e,d,n&&h.start===0,h.start,y,r,!1,0),Wc(d);continue}const g=m.getName(o,s);if(g!==null){const f=(l.length>0?l[l.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);l.push(new wh(f,h.end))}}for(;l.length>0;)r.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var wh=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function xh(e,t,n,a,r,i,s,o){return new Ch(e,t,n,a,r,i,s,o)}function ks(e,t,n,a,r){const i=ga(t,_a),s=Yc.getCompiledRuleId(n,a,r.repository);for(const o of i)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:r,priority:o.priority})}function _a(e,t){if(t.length<e.length)return!1;let n=0;return e.every(a=>{for(let r=n;r<t.length;r++)if(kh(t[r],a))return n=r+1,!0;return!1})}function kh(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Ch=class{constructor(e,t,n,a,r,i,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=o,this._basicScopeAttributesProvider=new hh(n,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Cs(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const c of Object.keys(r)){const l=ga(c,_a);for(const u of l)this._tokenTypeMatchers.push({matcher:u.matcher,type:r[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},t=[],n=this._rootScopeName,a=e.lookup(n);if(a){const r=a.injections;if(r)for(let s in r)ks(t,s,r[s],this,a);const i=this._grammarRepository.injections(n);i&&i.forEach(s=>{const o=this.getExternalGrammar(s);if(o){const c=o.injectionSelector;c&&ks(t,c,o,this,o)}})}return t.sort((r,i)=>r.priority-i.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Cs(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const a=this._tokenize(e,t,!1,n);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,n=0){const a=this._tokenize(e,t,!0,n);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,n,a){this._rootId===-1&&(this._rootId=Yc.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!t||t===Or.NULL){r=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),p=qt.set(0,l.languageId,l.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),m=this.getRule(this._rootId).getName(null,null);let h;m?h=hn.createRootAndLookUpScopeName(m,p,this):h=hn.createRoot("unknown",p),t=new Or(null,this._rootId,-1,-1,!1,null,h,h)}else r=!1,t.reset();e=e+`
`;const i=this.createOnigString(e),s=i.content.length,o=new Fh(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Kc(this,i,r,0,t,o,!0,a);return Wc(i),{lineLength:s,lineTokens:o,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Cs(e,t){return e=Um(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var hn=class Ce{constructor(t,n,a){this.parent=t,this.scopePath=n,this.tokenAttributes=a}static fromExtension(t,n){let a=t,r=t?.scopePath??null;for(const i of n)r=Xa.push(r,i.scopeNames),a=new Ce(a,r,i.encodedTokenAttributes);return a}static createRoot(t,n){return new Ce(null,new Xa(null,t),n)}static createRootAndLookUpScopeName(t,n,a){const r=a.getMetadataForScope(t),i=new Xa(null,t),s=a.themeProvider.themeMatch(i),o=Ce.mergeAttributes(n,r,s);return new Ce(null,i,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Ce.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,a){let r=-1,i=0,s=0;return a!==null&&(r=a.fontStyle,i=a.foregroundId,s=a.backgroundId),qt.set(t,n.languageId,n.tokenType,null,r,i,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Ce._pushAttributed(this,t,n);const a=t.split(/ /g);let r=this;for(const i of a)r=Ce._pushAttributed(r,i,n);return r}static _pushAttributed(t,n,a){const r=a.getMetadataForScope(n),i=t.scopePath.push(n),s=a.themeProvider.themeMatch(i),o=Ce.mergeAttributes(t.tokenAttributes,r,s);return new Ce(t,i,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let a=this;for(;a&&a!==t;)n.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(a.parent?.scopePath??null)}),a=a.parent;return a===t?n.reverse():void 0}},Or=class nt{constructor(t,n,a,r,i,s,o,c){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=o,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new nt(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:nt._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?hn.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){nt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,a,r,i,s,o){return new nt(this,t,n,a,r,i,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new nt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const a=hn.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new nt(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,a,hn.fromExtension(a,n.contentNameScopesList))}},Eh=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ga(n,_a).map(a=>a.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ga(n,_a).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Fh=class{constructor(e,t,n,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=e?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(i)&&(a=qt.set(a,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(i))}if(r&&(a=qt.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let a=0,r=this._binaryTokens.length;a<r;a++)n[a]=this._binaryTokens[a];return n}},$h=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,a,r){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,xh(e,i,t,n,a,r,this,this._onigLib))}return this._grammars.get(e)}},jh=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new $h(ha.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(ha.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,a){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:a})}loadGrammarWithConfiguration(t,n,a){return this._loadGrammar(t,n,a.embeddedLanguages,a.tokenTypes,new Eh(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,a,r,i){const s=new ah(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(o=>this._loadSingleGrammar(o.scopeName)),s.processQueue();return this._grammarForScopeName(t,n,a,r,i)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const a=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,a)}}addGrammar(t,n=[],a=0,r=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,a,r)}_grammarForScopeName(t,n=0,a=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(t,n,a,r,i)}},Nr=Or.NULL;const Sh=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Tn{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}}Tn.prototype.normal={};Tn.prototype.property={};Tn.prototype.space=void 0;function Jc(e,t){const n={},a={};for(const r of e)Object.assign(n,r.property),Object.assign(a,r.normal);return new Tn(n,a,t)}function Ir(e){return e.toLowerCase()}class ie{constructor(t,n){this.attribute=n,this.property=t}}ie.prototype.attribute="";ie.prototype.booleanish=!1;ie.prototype.boolean=!1;ie.prototype.commaOrSpaceSeparated=!1;ie.prototype.commaSeparated=!1;ie.prototype.defined=!1;ie.prototype.mustUseProperty=!1;ie.prototype.number=!1;ie.prototype.overloadedBoolean=!1;ie.prototype.property="";ie.prototype.spaceSeparated=!1;ie.prototype.space=void 0;let Ah=0;const S=yt(),H=yt(),Lr=yt(),x=yt(),P=yt(),Ot=yt(),se=yt();function yt(){return 2**++Ah}const Pr=Object.freeze(Object.defineProperty({__proto__:null,boolean:S,booleanish:H,commaOrSpaceSeparated:se,commaSeparated:Ot,number:x,overloadedBoolean:Lr,spaceSeparated:P},Symbol.toStringTag,{value:"Module"})),Qa=Object.keys(Pr);class Ci extends ie{constructor(t,n,a,r){let i=-1;if(super(t,n),Es(this,"space",r),typeof a=="number")for(;++i<Qa.length;){const s=Qa[i];Es(this,Qa[i],(a&Pr[s])===Pr[s])}}}Ci.prototype.defined=!0;function Es(e,t,n){n&&(e[t]=n)}function Wt(e){const t={},n={};for(const[a,r]of Object.entries(e.properties)){const i=new Ci(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(i.mustUseProperty=!0),t[a]=i,n[Ir(a)]=a,n[Ir(i.attribute)]=a}return new Tn(t,n,e.space)}const el=Wt({properties:{ariaActiveDescendant:null,ariaAtomic:H,ariaAutoComplete:null,ariaBusy:H,ariaChecked:H,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:P,ariaCurrent:null,ariaDescribedBy:P,ariaDetails:null,ariaDisabled:H,ariaDropEffect:P,ariaErrorMessage:null,ariaExpanded:H,ariaFlowTo:P,ariaGrabbed:H,ariaHasPopup:null,ariaHidden:H,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:P,ariaLevel:x,ariaLive:null,ariaModal:H,ariaMultiLine:H,ariaMultiSelectable:H,ariaOrientation:null,ariaOwns:P,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:H,ariaReadOnly:H,ariaRelevant:null,ariaRequired:H,ariaRoleDescription:P,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:H,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function tl(e,t){return t in e?e[t]:t}function nl(e,t){return tl(e,t.toLowerCase())}const Th=Wt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ot,acceptCharset:P,accessKey:P,action:null,allow:null,allowFullScreen:S,allowPaymentRequest:S,allowUserMedia:S,alt:null,as:null,async:S,autoCapitalize:null,autoComplete:P,autoFocus:S,autoPlay:S,blocking:P,capture:null,charSet:null,checked:S,cite:null,className:P,cols:x,colSpan:null,content:null,contentEditable:H,controls:S,controlsList:P,coords:x|Ot,crossOrigin:null,data:null,dateTime:null,decoding:null,default:S,defer:S,dir:null,dirName:null,disabled:S,download:Lr,draggable:H,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:S,formTarget:null,headers:P,height:x,hidden:Lr,high:x,href:null,hrefLang:null,htmlFor:P,httpEquiv:P,id:null,imageSizes:null,imageSrcSet:null,inert:S,inputMode:null,integrity:null,is:null,isMap:S,itemId:null,itemProp:P,itemRef:P,itemScope:S,itemType:P,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:S,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:S,muted:S,name:null,nonce:null,noModule:S,noValidate:S,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:S,optimum:x,pattern:null,ping:P,placeholder:null,playsInline:S,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:S,referrerPolicy:null,rel:P,required:S,reversed:S,rows:x,rowSpan:x,sandbox:P,scope:null,scoped:S,seamless:S,selected:S,shadowRootClonable:S,shadowRootDelegatesFocus:S,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:H,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:S,useMap:null,value:H,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:P,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:S,declare:S,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:S,noHref:S,noShade:S,noWrap:S,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:H,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:S,disableRemotePlayback:S,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:nl}),Rh=Wt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:se,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:P,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:S,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ot,g2:Ot,glyphName:Ot,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:se,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:P,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:se,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:se,rev:se,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:se,requiredFeatures:se,requiredFonts:se,requiredFormats:se,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:se,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:se,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:se,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tl}),al=Wt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),rl=Wt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nl}),il=Wt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Oh=/[A-Z]/g,Fs=/-[a-z]/g,Nh=/^data[-w.:]+$/i;function Ih(e,t){const n=Ir(t);let a=t,r=ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Nh.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Fs,Ph);a="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Fs.test(i)){let s=i.replace(Oh,Lh);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=Ci}return new r(a,t)}function Lh(e){return"-"+e.toLowerCase()}function Ph(e){return e.charAt(1).toUpperCase()}const Dh=Jc([el,Th,al,rl,il],"html"),sl=Jc([el,Rh,al,rl,il],"svg"),$s={}.hasOwnProperty;function Mh(e,t){const n=t||{};function a(r,...i){let s=a.invalid;const o=a.handlers;if(r&&$s.call(r,e)){const c=String(r[e]);s=$s.call(o,c)?o[c]:a.unknown}if(s)return s.call(this,r,...i)}return a.handlers=n.handlers||{},a.invalid=n.invalid,a.unknown=n.unknown,a}const qh=/["&'<>`]/g,zh=/[uD800-uDBFF][uDC00-uDFFF]/g,Bh=/[x01-tvfx0E-x1Fx7Fx81x8Dx8Fx90x9DxA0-uFFFF]/g,Uh=/[|\{}()[]^$+*?.]/g,js=new WeakMap;function Gh(e,t){if(e=e.replace(t.subset?Hh(t.subset):qh,a),t.subset||t.escapeOnly)return e;return e.replace(zh,n).replace(Bh,a);function n(r,i,s){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function a(r,i,s){return t.format(r.charCodeAt(0),s.charCodeAt(i+1),t)}}function Hh(e){let t=js.get(e);return t||(t=Wh(e),js.set(e,t)),t}function Wh(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Uh,"\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Vh=/[dA-Fa-f]/;function Zh(e,t,n){const a="&#x"+e.toString(16).toUpperCase();return n&&t&&!Vh.test(String.fromCharCode(t))?a:a+";"}const Yh=/d/;function Xh(e,t,n){const a="&#"+String(e);return n&&t&&!Yh.test(String.fromCharCode(t))?a:a+";"}const Kh=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ja={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Qh=["cent","copy","divide","gt","lt","not","para","times"],ol={}.hasOwnProperty,Dr={};let Jn;for(Jn in Ja)ol.call(Ja,Jn)&&(Dr[Ja[Jn]]=Jn);const Jh=/[^dA-Za-z]/;function eg(e,t,n,a){const r=String.fromCharCode(e);if(ol.call(Dr,r)){const i=Dr[r],s="&"+i;return n&&Kh.includes(i)&&!Qh.includes(i)&&(!a||t&&t!==61&&Jh.test(String.fromCharCode(t)))?s:s+";"}return""}function tg(e,t,n){let a=Zh(e,t,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=eg(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const i=Xh(e,t,n.omitOptionalSemicolons);i.length<a.length&&(a=i)}return r&&(!n.useShortestReferences||r.length<a.length)?r:a}function Nt(e,t){return Gh(e,Object.assign({format:tg},t))}const ng=/^>|^->|<!--|-->|--!>|<!-$/g,ag=[">"],rg=["<",">"];function ig(e,t,n,a){return a.settings.bogusComments?"<?"+Nt(e.value,Object.assign({},a.settings.characterReferences,{subset:ag}))+">":"<!--"+e.value.replace(ng,r)+"-->";function r(i){return Nt(i,Object.assign({},a.settings.characterReferences,{subset:rg}))}}function sg(e,t,n,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}function Ss(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,r=n.indexOf(t);for(;r!==-1;)a++,r=n.indexOf(t,r+t.length);return a}function og(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function cg(e){return e.join(" ").trim()}const lg=/[ tnfr]/g;function Ei(e){return typeof e=="object"?e.type==="text"?As(e.value):!1:As(e)}function As(e){return e.replace(lg,"")===""}const Z=ll(1),cl=ll(-1),ug=[];function ll(e){return t;function t(n,a,r){const i=n?n.children:ug;let s=(a||0)+e,o=i[s];if(!r)for(;o&&Ei(o);)s+=e,o=i[s];return o}}const pg={}.hasOwnProperty;function ul(e){return t;function t(n,a,r){return pg.call(e,n.tagName)&&e[n.tagName](n,a,r)}}const Fi=ul({body:mg,caption:er,colgroup:er,dd:bg,dt:fg,head:er,html:dg,li:gg,optgroup:_g,option:yg,p:hg,rp:Ts,rt:Ts,tbody:wg,td:Rs,tfoot:xg,th:Rs,thead:vg,tr:kg});function er(e,t,n){const a=Z(n,t,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&Ei(a.value.charAt(0)))}function dg(e,t,n){const a=Z(n,t);return!a||a.type!=="comment"}function mg(e,t,n){const a=Z(n,t);return!a||a.type!=="comment"}function hg(e,t,n){const a=Z(n,t);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function gg(e,t,n){const a=Z(n,t);return!a||a.type==="element"&&a.tagName==="li"}function fg(e,t,n){const a=Z(n,t);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function bg(e,t,n){const a=Z(n,t);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function Ts(e,t,n){const a=Z(n,t);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function _g(e,t,n){const a=Z(n,t);return!a||a.type==="element"&&a.tagName==="optgroup"}function yg(e,t,n){const a=Z(n,t);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function vg(e,t,n){const a=Z(n,t);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function wg(e,t,n){const a=Z(n,t);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function xg(e,t,n){return!Z(n,t)}function kg(e,t,n){const a=Z(n,t);return!a||a.type==="element"&&a.tagName==="tr"}function Rs(e,t,n){const a=Z(n,t);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}const Cg=ul({body:$g,colgroup:jg,head:Fg,html:Eg,tbody:Sg});function Eg(e){const t=Z(e,-1);return!t||t.type!=="comment"}function Fg(e){const t=new Set;for(const a of e.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(t.has(a.tagName))return!1;t.add(a.tagName)}const n=e.children[0];return!n||n.type==="element"}function $g(e){const t=Z(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ei(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function jg(e,t,n){const a=cl(n,t),r=Z(e,-1,!0);return n&&a&&a.type==="element"&&a.tagName==="colgroup"&&Fi(a,n.children.indexOf(a),n)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function Sg(e,t,n){const a=cl(n,t),r=Z(e,-1);return n&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&Fi(a,n.children.indexOf(a),n)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}const ea={name:[[`
fr &/=>`.split(""),`
fr "&'/=>``.split("")],[`
fr "&'/<=>`.split(""),`
fr "&'/<=>``.split("")]],unquoted:[[`
fr &>`.split(""),`
fr "&'<=>``.split("")],[`
fr "&'<=>``.split(""),`