-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebrand to TurboBoost Elements #19
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
||
${r?'Expression: "'+r+`" | ||
|
||
`:""}`,t),setTimeout(()=>{throw e},0)}var Ve=!0;function Po(e){let t=Ve;Ve=!1,e(),Ve=t}function ue(e,t,r={}){let n;return O(e,t)(o=>n=o,r),n}function O(...e){return Fr(...e)}var Fr=Kr;function Do(e){Fr=e}function Kr(e,t){let r={};Lt(r,e);let n=[r,...ce(e)];if(typeof t=="function")return Bo(n,t);let o=Ho(n,t,e);return No.bind(null,e,t,o)}function Bo(e,t){return(r=()=>{},{scope:n={},params:o=[]}={})=>{let i=t.apply(Le([n,...e]),o);Ue(r,i)}}var wt={};function Io(e,t){if(wt[e])return wt[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e,i=(()=>{try{return new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`)}catch(s){return Ce(s,t,e),Promise.resolve()}})();return wt[e]=i,i}function Ho(e,t,r){let n=Io(t,r);return(o=()=>{},{scope:i={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=Le([i,...e]);if(typeof n=="function"){let l=n(n,a).catch(u=>Ce(u,r,t));n.finished?(Ue(o,n.result,a,s,r),n.result=void 0):l.then(u=>{Ue(o,u,a,s,r)}).catch(u=>Ce(u,r,t)).finally(()=>n.result=void 0)}}}function Ue(e,t,r,n,o){if(Ve&&typeof t=="function"){let i=t.apply(r,n);i instanceof Promise?i.then(s=>Ue(e,s,r,n)).catch(s=>Ce(s,o,t)):e(i)}else e(t)}var Wt="x-";function he(e=""){return Wt+e}function jo(e){Wt=e}var qr={};function w(e,t){qr[e]=t}function Ut(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let i=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=zr(i);i=i.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(i)}let n={};return t.map(Jr((i,s)=>n[i]=s)).filter(Yr).map(qo(n,r)).sort(zo).map(i=>Ko(e,i))}function zr(e){return Array.from(e).map(Jr()).filter(t=>!Yr(t))}var Mt=!1,we=new Map,Vr=Symbol();function Fo(e){Mt=!0;let t=Symbol();Vr=t,we.set(t,[]);let r=()=>{for(;we.get(t).length;)we.get(t).shift()();we.delete(t)},n=()=>{Mt=!1,r()};e(r),n()}function Wr(e){let t=[],r=a=>t.push(a),[n,o]=To(e);return t.push(o),[{Alpine:Me,effect:n,cleanup:r,evaluateLater:O.bind(O,e),evaluate:ue.bind(ue,e)},()=>t.forEach(a=>a())]}function Ko(e,t){let r=()=>{},n=qr[t.type]||r,[o,i]=Wr(e);Co(e,t.original,i);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,o),n=n.bind(n,e,t,o),Mt?we.get(Vr).push(n):n())};return s.runCleanups=i,s}var Ur=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Gr=e=>e;function Jr(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:o}=Xr.reduce((i,s)=>s(i),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:o}}}var Xr=[];function Gt(e){Xr.push(e)}function Yr({name:e}){return Zr().test(e)}var Zr=()=>new RegExp(`^${Wt}([^:^.]+)\\b`);function qo(e,t){return({name:r,value:n})=>{let o=r.match(Zr()),i=r.match(/:([a-zA-Z0-9\-:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:o?o[1]:null,value:i?i[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:n,original:a}}}var $t="DEFAULT",qe=["ignore","ref","data","id","radio","tabs","switch","disclosure","menu","listbox","list","item","combobox","bind","init","for","mask","model","modelable","transition","show","if",$t,"teleport"];function zo(e,t){let r=qe.indexOf(e.type)===-1?$t:e.type,n=qe.indexOf(t.type)===-1?$t:t.type;return qe.indexOf(r)-qe.indexOf(n)}function Ae(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}var Rt=[],Jt=!1;function Qr(e=()=>{}){return queueMicrotask(()=>{Jt||setTimeout(()=>{Nt()})}),new Promise(t=>{Rt.push(()=>{e(),t()})})}function Nt(){for(Jt=!1;Rt.length;)Rt.shift()()}function Vo(){Jt=!0}function oe(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(o=>oe(o,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)oe(n,t,!1),n=n.nextElementSibling}function de(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function Wo(){document.body||de("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Ae(document,"alpine:init"),Ae(document,"alpine:initializing"),Dr(),Ao(t=>J(t,oe)),Nr(t=>Go(t)),So((t,r)=>{Ut(t,r).forEach(n=>n())});let e=t=>!Xe(t.parentElement,!0);Array.from(document.querySelectorAll(rn())).filter(e).forEach(t=>{J(t)}),Ae(document,"alpine:initialized")}var Xt=[],en=[];function tn(){return Xt.map(e=>e())}function rn(){return Xt.concat(en).map(e=>e())}function nn(e){Xt.push(e)}function on(e){en.push(e)}function Xe(e,t=!1){return Ye(e,r=>{if((t?rn():tn()).some(o=>r.matches(o)))return!0})}function Ye(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return Ye(e.parentElement,t)}}function Uo(e){return tn().some(t=>e.matches(t))}function J(e,t=oe){Fo(()=>{t(e,(r,n)=>{Ut(r,r.attributes).forEach(o=>o()),r._x_ignore&&n()})})}function Go(e){oe(e,t=>Pr(t))}function Yt(e,t){return Array.isArray(t)?Tr(e,t.join(" ")):typeof t=="object"&&t!==null?Jo(e,t):typeof t=="function"?Yt(e,t()):Tr(e,t)}function Tr(e,t){let r=i=>i.split(" ").filter(Boolean),n=i=>i.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),o=i=>(e.classList.add(...i),()=>{e.classList.remove(...i)});return t=t===!0?t="":t||"",o(n(t))}function Jo(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,l])=>l?r(a):!1).filter(Boolean),o=Object.entries(t).flatMap(([a,l])=>l?!1:r(a)).filter(Boolean),i=[],s=[];return o.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),i.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),i.forEach(a=>e.classList.remove(a))}}function Ze(e,t){return typeof t=="object"&&t!==null?Xo(e,t):Yo(e,t)}function Xo(e,t){let r={};return Object.entries(t).forEach(([n,o])=>{r[n]=e.style[n],n.startsWith("--")||(n=Zo(n)),e.style.setProperty(n,o)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Ze(e,r)}}function Yo(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function Zo(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pt(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}w("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:o})=>{typeof n=="function"&&(n=o(n)),n?Qo(e,n,t):ei(e,r,t)});function Qo(e,t,r){sn(e,Yt,""),{enter:o=>{e._x_transition.enter.during=o},"enter-start":o=>{e._x_transition.enter.start=o},"enter-end":o=>{e._x_transition.enter.end=o},leave:o=>{e._x_transition.leave.during=o},"leave-start":o=>{e._x_transition.leave.start=o},"leave-end":o=>{e._x_transition.leave.end=o}}[r](t)}function ei(e,t,r){sn(e,Ze);let n=!t.includes("in")&&!t.includes("out")&&!r,o=n||t.includes("in")||["enter"].includes(r),i=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((b,x)=>x<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((b,x)=>x>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),u=a?0:1,d=l?ye(t,"scale",95)/100:1,p=ye(t,"delay",0),v=ye(t,"origin","center"),P="opacity, transform",E=ye(t,"duration",150)/1e3,le=ye(t,"duration",75)/1e3,f="cubic-bezier(0.4, 0.0, 0.2, 1)";o&&(e._x_transition.enter.during={transformOrigin:v,transitionDelay:p,transitionProperty:P,transitionDuration:`${E}s`,transitionTimingFunction:f},e._x_transition.enter.start={opacity:u,transform:`scale(${d})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),i&&(e._x_transition.leave.during={transformOrigin:v,transitionDelay:p,transitionProperty:P,transitionDuration:`${le}s`,transitionTimingFunction:f},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${d})`})}function sn(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},o=()=>{}){Dt(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,o)},out(n=()=>{},o=()=>{}){Dt(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,o)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let o=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,i=()=>o(r);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(r):i():e._x_transition?e._x_transition.in(r):i();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(n)),e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=an(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):o(()=>{let a=l=>{let u=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([d])=>d());return delete l._x_hidePromise,delete l._x_hideChildren,u};a(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function an(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:an(t)}function Dt(e,t,{during:r,start:n,end:o}={},i=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(o).length===0){i(),s();return}let a,l,u;ti(e,{start(){a=t(e,n)},during(){l=t(e,r)},before:i,end(){a(),u=t(e,o)},after:s,cleanup(){l(),u()}})}function ti(e,t){let r,n,o,i=Pt(()=>{A(()=>{r=!0,n||t.before(),o||(t.end(),Nt()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:Pt(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();i()}),finish:i},A(()=>{t.start(),t.during()}),Vo(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),A(()=>{t.before()}),n=!0,requestAnimationFrame(()=>{r||(A(()=>{t.end()}),Nt(),setTimeout(e._x_transitioning.finish,s+a),o=!0)})})}function ye(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"){let o=n.match(/([0-9]+)ms/);if(o)return o[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var Bt=!1;function Qe(e,t=()=>{}){return(...r)=>Bt?t(...r):e(...r)}function ri(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Bt=!0,oi(()=>{ni(t)}),Bt=!1}function ni(e){let t=!1;J(e,(n,o)=>{oe(n,(i,s)=>{if(t&&Uo(i))return s();t=!0,o(i,s)})})}function oi(e){let t=ke;Er((r,n)=>{let o=t(r);return Je(o),()=>{}}),e(),Er(t)}function ln(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=pe({})),e._x_bindings[t]=r,t=n.includes("camel")?di(t):t,t){case"value":ii(e,r);break;case"style":ai(e,r);break;case"class":si(e,r);break;default:li(e,t,r);break}}function ii(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(e.checked=Ar(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Number.isInteger(t)&&!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>Ar(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")ci(e,t);else{if(e.value===t)return;e.value=t}}function si(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Yt(e,t)}function ai(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Ze(e,t)}function li(e,t,r){[null,void 0,!1].includes(r)&&fi(t)?e.removeAttribute(t):(un(t)&&(r=t),ui(e,t,r))}function ui(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function ci(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function di(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function Ar(e,t){return e==t}function un(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function fi(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function pi(e,t,r){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];let n=e.getAttribute(t);return n===null?typeof r=="function"?r():r:n===""?!0:un(t)?!![t,"true"].includes(n):n}function cn(e,t){var r;return function(){var n=this,o=arguments,i=function(){r=null,e.apply(n,o)};clearTimeout(r),r=setTimeout(i,t)}}function dn(e,t){let r;return function(){let n=this,o=arguments;r||(e.apply(n,o),r=!0,setTimeout(()=>r=!1,t))}}function hi(e){e(Me)}var ee={},Sr=!1;function mi(e,t){if(Sr||(ee=pe(ee),Sr=!0),t===void 0)return ee[e];ee[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&ee[e].init(),Ir(ee[e])}function gi(){return ee}var fn={};function bi(e,t){let r=typeof t!="function"?()=>t:t;e instanceof Element?pn(e,r()):fn[e]=r}function vi(e){return Object.entries(fn).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...n)=>r(...n)}})}),e}function pn(e,t,r){let n=[];for(;n.length;)n.pop()();let o=Object.entries(t).map(([s,a])=>({name:s,value:a})),i=zr(o);o=o.map(s=>i.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),Ut(e,o,r).map(s=>{n.push(s.runCleanups),s()})}var hn={};function _i(e,t){hn[e]=t}function xi(e,t){return Object.entries(hn).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...o)=>n.bind(t)(...o)},enumerable:!1})}),e}var yi={get reactive(){return pe},get release(){return Je},get effect(){return ke},get raw(){return Lr},version:"3.10.5",flushAndStopDeferringMutations:$o,dontAutoEvaluateFunctions:Po,disableEffectScheduling:Eo,setReactivityEngine:wo,closestDataStack:ce,skipDuringClone:Qe,addRootSelector:nn,addInitSelector:on,addScopeToNode:Oe,deferMutations:Mo,mapAttributes:Gt,evaluateLater:O,setEvaluator:Do,mergeProxies:Le,findClosest:Ye,closestRoot:Xe,interceptor:Hr,transition:Dt,setStyles:Ze,mutateDom:A,directive:w,throttle:dn,debounce:cn,evaluate:ue,initTree:J,nextTick:Qr,prefixed:he,prefix:jo,plugin:hi,magic:j,store:mi,start:Wo,clone:ri,bound:pi,$data:Br,data:_i,bind:bi},Me=yi;function mn(e,t){let r=Object.create(null),n=e.split(",");for(let o=0;o<n.length;o++)r[n[o]]=!0;return t?o=>!!r[o.toLowerCase()]:o=>!!r[o]}var Ei="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",aa=mn(Ei+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),wi=Object.freeze({}),la=Object.freeze([]),gn=Object.assign,Ti=Object.prototype.hasOwnProperty,et=(e,t)=>Ti.call(e,t),re=Array.isArray,Se=e=>bn(e)==="[object Map]",Ai=e=>typeof e=="string",Zt=e=>typeof e=="symbol",tt=e=>e!==null&&typeof e=="object",Si=Object.prototype.toString,bn=e=>Si.call(e),vn=e=>bn(e).slice(8,-1),Qt=e=>Ai(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rt=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Ci=/-(\w)/g,ua=rt(e=>e.replace(Ci,(t,r)=>r?r.toUpperCase():"")),ki=/\B([A-Z])/g,ca=rt(e=>e.replace(ki,"-$1").toLowerCase()),_n=rt(e=>e.charAt(0).toUpperCase()+e.slice(1)),da=rt(e=>e?`on${_n(e)}`:""),xn=(e,t)=>e!==t&&(e===e||t===t),It=new WeakMap,Ee=[],q,ne=Symbol("iterate"),Ht=Symbol("Map key iterate");function Oi(e){return e&&e._isEffect===!0}function Li(e,t=wi){Oi(e)&&(e=e.raw);let r=Ri(e,t);return t.lazy||r(),r}function Mi(e){e.active&&(yn(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var $i=0;function Ri(e,t){let r=function(){if(!r.active)return e();if(!Ee.includes(r)){yn(r);try{return Pi(),Ee.push(r),q=r,e()}finally{Ee.pop(),En(),q=Ee[Ee.length-1]}}};return r.id=$i++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function yn(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var fe=!0,er=[];function Ni(){er.push(fe),fe=!1}function Pi(){er.push(fe),fe=!0}function En(){let e=er.pop();fe=e===void 0?!0:e}function H(e,t,r){if(!fe||q===void 0)return;let n=It.get(e);n||It.set(e,n=new Map);let o=n.get(r);o||n.set(r,o=new Set),o.has(q)||(o.add(q),q.deps.push(o),q.options.onTrack&&q.options.onTrack({effect:q,target:e,type:t,key:r}))}function X(e,t,r,n,o,i){let s=It.get(e);if(!s)return;let a=new Set,l=d=>{d&&d.forEach(p=>{(p!==q||p.allowRecurse)&&a.add(p)})};if(t==="clear")s.forEach(l);else if(r==="length"&&re(e))s.forEach((d,p)=>{(p==="length"||p>=n)&&l(d)});else switch(r!==void 0&&l(s.get(r)),t){case"add":re(e)?Qt(r)&&l(s.get("length")):(l(s.get(ne)),Se(e)&&l(s.get(Ht)));break;case"delete":re(e)||(l(s.get(ne)),Se(e)&&l(s.get(Ht)));break;case"set":Se(e)&&l(s.get(ne));break}let u=d=>{d.options.onTrigger&&d.options.onTrigger({effect:d,target:e,key:r,type:t,newValue:n,oldValue:o,oldTarget:i}),d.options.scheduler?d.options.scheduler(d):d()};a.forEach(u)}var Di=mn("__proto__,__v_isRef,__isVue"),wn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Zt)),Bi=nt(),Ii=nt(!1,!0),Hi=nt(!0),ji=nt(!0,!0),Ge={};["includes","indexOf","lastIndexOf"].forEach(e=>{let t=Array.prototype[e];Ge[e]=function(...r){let n=_(this);for(let i=0,s=this.length;i<s;i++)H(n,"get",i+"");let o=t.apply(n,r);return o===-1||o===!1?t.apply(n,r.map(_)):o}});["push","pop","shift","unshift","splice"].forEach(e=>{let t=Array.prototype[e];Ge[e]=function(...r){Ni();let n=t.apply(this,r);return En(),n}});function nt(e=!1,t=!1){return function(n,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_raw"&&i===(e?t?Xi:Bn:t?Ji:Dn).get(n))return n;let s=re(n);if(!e&&s&&et(Ge,o))return Reflect.get(Ge,o,i);let a=Reflect.get(n,o,i);return(Zt(o)?wn.has(o):Di(o))||(e||H(n,"get",o),t)?a:jt(a)?!s||!Qt(o)?a.value:a:tt(a)?e?In(a):or(a):a}}var Fi=Tn(),Ki=Tn(!0);function Tn(e=!1){return function(r,n,o,i){let s=r[n];if(!e&&(o=_(o),s=_(s),!re(r)&&jt(s)&&!jt(o)))return s.value=o,!0;let a=re(r)&&Qt(n)?Number(n)<r.length:et(r,n),l=Reflect.set(r,n,o,i);return r===_(i)&&(a?xn(o,s)&&X(r,"set",n,o,s):X(r,"add",n,o)),l}}function qi(e,t){let r=et(e,t),n=e[t],o=Reflect.deleteProperty(e,t);return o&&r&&X(e,"delete",t,void 0,n),o}function zi(e,t){let r=Reflect.has(e,t);return(!Zt(t)||!wn.has(t))&&H(e,"has",t),r}function Vi(e){return H(e,"iterate",re(e)?"length":ne),Reflect.ownKeys(e)}var An={get:Bi,set:Fi,deleteProperty:qi,has:zi,ownKeys:Vi},Sn={get:Hi,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}},fa=gn({},An,{get:Ii,set:Ki}),pa=gn({},Sn,{get:ji}),tr=e=>tt(e)?or(e):e,rr=e=>tt(e)?In(e):e,nr=e=>e,ot=e=>Reflect.getPrototypeOf(e);function it(e,t,r=!1,n=!1){e=e.__v_raw;let o=_(e),i=_(t);t!==i&&!r&&H(o,"get",t),!r&&H(o,"get",i);let{has:s}=ot(o),a=n?nr:r?rr:tr;if(s.call(o,t))return a(e.get(t));if(s.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function st(e,t=!1){let r=this.__v_raw,n=_(r),o=_(e);return e!==o&&!t&&H(n,"has",e),!t&&H(n,"has",o),e===o?r.has(e):r.has(e)||r.has(o)}function at(e,t=!1){return e=e.__v_raw,!t&&H(_(e),"iterate",ne),Reflect.get(e,"size",e)}function Cn(e){e=_(e);let t=_(this);return ot(t).has.call(t,e)||(t.add(e),X(t,"add",e,e)),this}function kn(e,t){t=_(t);let r=_(this),{has:n,get:o}=ot(r),i=n.call(r,e);i?Pn(r,n,e):(e=_(e),i=n.call(r,e));let s=o.call(r,e);return r.set(e,t),i?xn(t,s)&&X(r,"set",e,t,s):X(r,"add",e,t),this}function On(e){let t=_(this),{has:r,get:n}=ot(t),o=r.call(t,e);o?Pn(t,r,e):(e=_(e),o=r.call(t,e));let i=n?n.call(t,e):void 0,s=t.delete(e);return o&&X(t,"delete",e,void 0,i),s}function Ln(){let e=_(this),t=e.size!==0,r=Se(e)?new Map(e):new Set(e),n=e.clear();return t&&X(e,"clear",void 0,void 0,r),n}function lt(e,t){return function(n,o){let i=this,s=i.__v_raw,a=_(s),l=t?nr:e?rr:tr;return!e&&H(a,"iterate",ne),s.forEach((u,d)=>n.call(o,l(u),l(d),i))}}function ze(e,t,r){return function(...n){let o=this.__v_raw,i=_(o),s=Se(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=o[e](...n),d=r?nr:t?rr:tr;return!t&&H(i,"iterate",l?Ht:ne),{next(){let{value:p,done:v}=u.next();return v?{value:p,done:v}:{value:a?[d(p[0]),d(p[1])]:d(p),done:v}},[Symbol.iterator](){return this}}}}function G(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${_n(e)} operation ${r}failed: target is readonly.`,_(this))}return e==="delete"?!1:this}}var Mn={get(e){return it(this,e)},get size(){return at(this)},has:st,add:Cn,set:kn,delete:On,clear:Ln,forEach:lt(!1,!1)},$n={get(e){return it(this,e,!1,!0)},get size(){return at(this)},has:st,add:Cn,set:kn,delete:On,clear:Ln,forEach:lt(!1,!0)},Rn={get(e){return it(this,e,!0)},get size(){return at(this,!0)},has(e){return st.call(this,e,!0)},add:G("add"),set:G("set"),delete:G("delete"),clear:G("clear"),forEach:lt(!0,!1)},Nn={get(e){return it(this,e,!0,!0)},get size(){return at(this,!0)},has(e){return st.call(this,e,!0)},add:G("add"),set:G("set"),delete:G("delete"),clear:G("clear"),forEach:lt(!0,!0)},Wi=["keys","values","entries",Symbol.iterator];Wi.forEach(e=>{Mn[e]=ze(e,!1,!1),Rn[e]=ze(e,!0,!1),$n[e]=ze(e,!1,!0),Nn[e]=ze(e,!0,!0)});function ut(e,t){let r=t?e?Nn:$n:e?Rn:Mn;return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(et(r,o)&&o in n?r:n,o,i)}var Ui={get:ut(!1,!1)},ha={get:ut(!1,!0)},Gi={get:ut(!0,!1)},ma={get:ut(!0,!0)};function Pn(e,t,r){let n=_(r);if(n!==r&&t.call(e,n)){let o=vn(e);console.warn(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="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 Dn=new WeakMap,Ji=new WeakMap,Bn=new WeakMap,Xi=new WeakMap;function Yi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zi(e){return e.__v_skip||!Object.isExtensible(e)?0:Yi(vn(e))}function or(e){return e&&e.__v_isReadonly?e:Hn(e,!1,An,Ui,Dn)}function In(e){return Hn(e,!0,Sn,Gi,Bn)}function Hn(e,t,r,n,o){if(!tt(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let i=o.get(e);if(i)return i;let s=Zi(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return o.set(e,a),a}function _(e){return e&&_(e.__v_raw)||e}function jt(e){return Boolean(e&&e.__v_isRef===!0)}j("nextTick",()=>Qr);j("dispatch",e=>Ae.bind(Ae,e));j("watch",(e,{evaluateLater:t,effect:r})=>(n,o)=>{let i=t(n),s=!0,a,l=r(()=>i(u=>{JSON.stringify(u),s?a=u:queueMicrotask(()=>{o(u,a),a=u}),s=!1}));e._x_effects.delete(l)});j("store",gi);j("data",e=>Br(e));j("root",e=>Xe(e));j("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=Le(Qi(e))),e._x_refs_proxy));function Qi(e){let t=[],r=e;for(;r;)r._x_refs&&t.push(r._x_refs),r=r.parentNode;return t}var Tt={};function jn(e){return Tt[e]||(Tt[e]=0),++Tt[e]}function es(e,t){return Ye(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function ts(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=jn(t))}j("id",e=>(t,r=null)=>{let n=es(e,t),o=n?n._x_ids[t]:jn(t);return r?`${t}-${o}-${r}`:`${t}-${o}`});j("el",e=>e);Fn("Focus","focus","focus");Fn("Persist","persist","persist");function Fn(e,t,r){j(t,n=>de(`You can't use [$${directiveName}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}w("modelable",(e,{expression:t},{effect:r,evaluateLater:n})=>{let o=n(t),i=()=>{let u;return o(d=>u=d),u},s=n(`${t} = __placeholder`),a=u=>s(()=>{},{scope:{__placeholder:u}}),l=i();a(l),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,d=e._x_model.set;r(()=>a(u())),r(()=>d(i()))})});w("teleport",(e,{expression:t},{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&de("x-teleport can only be used on a <template> tag",e);let n=document.querySelector(t);n||de(`Cannot find x-teleport element for selector: "${t}"`);let o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e._x_forwardEvents&&e._x_forwardEvents.forEach(i=>{o.addEventListener(i,s=>{s.stopPropagation(),e.dispatchEvent(new s.constructor(s.type,s))})}),Oe(o,{},e),A(()=>{n.appendChild(o),J(o),o._x_ignore=!0}),r(()=>o.remove())});var Kn=()=>{};Kn.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};w("ignore",Kn);w("effect",(e,{expression:t},{effect:r})=>r(O(e,t)));function qn(e,t,r,n){let o=e,i=l=>n(l),s={},a=(l,u)=>d=>u(l,d);if(r.includes("dot")&&(t=rs(t)),r.includes("camel")&&(t=ns(t)),r.includes("passive")&&(s.passive=!0),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(o=window),r.includes("document")&&(o=document),r.includes("prevent")&&(i=a(i,(l,u)=>{u.preventDefault(),l(u)})),r.includes("stop")&&(i=a(i,(l,u)=>{u.stopPropagation(),l(u)})),r.includes("self")&&(i=a(i,(l,u)=>{u.target===e&&l(u)})),(r.includes("away")||r.includes("outside"))&&(o=document,i=a(i,(l,u)=>{e.contains(u.target)||u.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(u))})),r.includes("once")&&(i=a(i,(l,u)=>{l(u),o.removeEventListener(t,i,s)})),i=a(i,(l,u)=>{is(t)&&ss(u,r)||l(u)}),r.includes("debounce")){let l=r[r.indexOf("debounce")+1]||"invalid-wait",u=Ft(l.split("ms")[0])?Number(l.split("ms")[0]):250;i=cn(i,u)}if(r.includes("throttle")){let l=r[r.indexOf("throttle")+1]||"invalid-wait",u=Ft(l.split("ms")[0])?Number(l.split("ms")[0]):250;i=dn(i,u)}return o.addEventListener(t,i,s),()=>{o.removeEventListener(t,i,s)}}function rs(e){return e.replace(/-/g,".")}function ns(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function Ft(e){return!Array.isArray(e)&&!isNaN(e)}function os(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function is(e){return["keydown","keyup"].includes(e)}function ss(e,t){let r=t.filter(i=>!["window","document","prevent","stop","once"].includes(i));if(r.includes("debounce")){let i=r.indexOf("debounce");r.splice(i,Ft((r[i+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&Cr(e.key).includes(r[0]))return!1;let o=["ctrl","shift","alt","meta","cmd","super"].filter(i=>r.includes(i));return r=r.filter(i=>!o.includes(i)),!(o.length>0&&o.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===o.length&&Cr(e.key).includes(r[0]))}function Cr(e){if(!e)return[];e=os(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:".",equal:"="};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}w("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:o})=>{let i=O(e,r),s=`${r} = rightSideOfExpression($event, ${r})`,a=O(e,s);var l=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let u=as(e,t,r),d=qn(e,l,t,v=>{a(()=>{},{scope:{$event:v,rightSideOfExpression:u}})});e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=d,o(()=>e._x_removeModelListeners.default());let p=O(e,`${r} = __placeholder`);e._x_model={get(){let v;return i(P=>v=P),v},set(v){p(()=>{},{scope:{__placeholder:v}})}},e._x_forceModelUpdate=()=>{i(v=>{v===void 0&&r.match(/\./)&&(v=""),window.fromModel=!0,A(()=>ln(e,"value",v)),delete window.fromModel})},n(()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()})});function as(e,t,r){return e.type==="radio"&&A(()=>{e.hasAttribute("name")||e.setAttribute("name",r)}),(n,o)=>A(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail||n.target.value;if(e.type==="checkbox")if(Array.isArray(o)){let i=t.includes("number")?At(n.target.value):n.target.value;return n.target.checked?o.concat([i]):o.filter(s=>!ls(s,i))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(i=>{let s=i.value||i.text;return At(s)}):Array.from(n.target.selectedOptions).map(i=>i.value||i.text);{let i=n.target.value;return t.includes("number")?At(i):t.includes("trim")?i.trim():i}}})}function At(e){let t=e?parseFloat(e):null;return us(t)?t:e}function ls(e,t){return e==t}function us(e){return!Array.isArray(e)&&!isNaN(e)}w("cloak",e=>queueMicrotask(()=>A(()=>e.removeAttribute(he("cloak")))));on(()=>`[${he("init")}]`);w("init",Qe((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));w("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let o=n(t);r(()=>{o(i=>{A(()=>{e.textContent=i})})})});w("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let o=n(t);r(()=>{o(i=>{A(()=>{e.innerHTML=i,e._x_ignoreSelf=!0,J(e),delete e._x_ignoreSelf})})})});Gt(Ur(":",Gr(he("bind:"))));w("bind",(e,{value:t,modifiers:r,expression:n,original:o},{effect:i})=>{if(!t){let a={};vi(a),O(e,n)(u=>{pn(e,u,o)},{scope:a});return}if(t==="key")return cs(e,n);let s=O(e,n);i(()=>s(a=>{a===void 0&&typeof n=="string"&&n.match(/\./)&&(a=""),A(()=>ln(e,t,a,r))}))});function cs(e,t){e._x_keyExpression=t}nn(()=>`[${he("data")}]`);w("data",Qe((e,{expression:t},{cleanup:r})=>{t=t===""?"{}":t;let n={};Lt(n,e);let o={};xi(o,n);let i=ue(e,t,{scope:o});i===void 0&&(i={}),Lt(i,e);let s=pe(i);Ir(s);let a=Oe(e,s);s.init&&ue(e,s.init),r(()=>{s.destroy&&ue(e,s.destroy),a()})}));w("show",(e,{modifiers:t,expression:r},{effect:n})=>{let o=O(e,r);e._x_doHide||(e._x_doHide=()=>{A(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{A(()=>{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},a=()=>setTimeout(s),l=Pt(p=>p?s():i(),p=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,p,s,i):p?a():i()}),u,d=!0;n(()=>o(p=>{!d&&p===u||(t.includes("immediate")&&(p?a():i()),l(p),u=p,d=!1)}))});w("for",(e,{expression:t},{effect:r,cleanup:n})=>{let o=fs(t),i=O(e,o.items),s=O(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r(()=>ds(e,o,i,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prevKeys,delete e._x_lookup})});function ds(e,t,r,n){let o=s=>typeof s=="object"&&!Array.isArray(s),i=e;r(s=>{ps(s)&&s>=0&&(s=Array.from(Array(s).keys(),f=>f+1)),s===void 0&&(s=[]);let a=e._x_lookup,l=e._x_prevKeys,u=[],d=[];if(o(s))s=Object.entries(s).map(([f,b])=>{let x=kr(t,b,f,s);n(C=>d.push(C),{scope:{index:f,...x}}),u.push(x)});else for(let f=0;f<s.length;f++){let b=kr(t,s[f],f,s);n(x=>d.push(x),{scope:{index:f,...b}}),u.push(b)}let p=[],v=[],P=[],E=[];for(let f=0;f<l.length;f++){let b=l[f];d.indexOf(b)===-1&&P.push(b)}l=l.filter(f=>!P.includes(f));let le="template";for(let f=0;f<d.length;f++){let b=d[f],x=l.indexOf(b);if(x===-1)l.splice(f,0,b),p.push([le,f]);else if(x!==f){let C=l.splice(f,1)[0],$=l.splice(x-1,1)[0];l.splice(f,0,$),l.splice(x,0,C),v.push([C,$])}else E.push(b);le=b}for(let f=0;f<P.length;f++){let b=P[f];a[b]._x_effects&&a[b]._x_effects.forEach(Or),a[b].remove(),a[b]=null,delete a[b]}for(let f=0;f<v.length;f++){let[b,x]=v[f],C=a[b],$=a[x],U=document.createElement("div");A(()=>{$.after(U),C.after($),$._x_currentIfEl&&$.after($._x_currentIfEl),U.before(C),C._x_currentIfEl&&C.after(C._x_currentIfEl),U.remove()}),wr($,u[d.indexOf(x)])}for(let f=0;f<p.length;f++){let[b,x]=p[f],C=b==="template"?i:a[b];C._x_currentIfEl&&(C=C._x_currentIfEl);let $=u[x],U=d[x],I=document.importNode(i.content,!0).firstElementChild;Oe(I,pe($),i),A(()=>{C.after(I),J(I)}),typeof U=="object"&&de("x-for key cannot be an object, it must be a string or an integer",i),a[U]=I}for(let f=0;f<E.length;f++)wr(a[E[f]],u[d.indexOf(E[f])]);i._x_prevKeys=d})}function fs(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,o=e.match(n);if(!o)return;let i={};i.items=o[2].trim();let s=o[1].replace(r,"").trim(),a=s.match(t);return a?(i.item=s.replace(t,"").trim(),i.index=a[1].trim(),a[2]&&(i.collection=a[2].trim())):i.item=s,i}function kr(e,t,r,n){let o={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{o[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{o[s]=t[s]}):o[e.item]=t,e.index&&(o[e.index]=r),e.collection&&(o[e.collection]=n),o}function ps(e){return!Array.isArray(e)&&!isNaN(e)}function zn(){}zn.inline=(e,{expression:t},{cleanup:r})=>{let n=Xe(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};w("ref",zn);w("if",(e,{expression:t},{effect:r,cleanup:n})=>{let o=O(e,t),i=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return Oe(a,{},e),A(()=>{e.after(a),J(a)}),e._x_currentIfEl=a,e._x_undoIf=()=>{oe(a,l=>{l._x_effects&&l._x_effects.forEach(Or)}),a.remove(),delete e._x_currentIfEl},a},s=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};r(()=>o(a=>{a?i():s()})),n(()=>e._x_undoIf&&e._x_undoIf())});w("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(o=>ts(e,o))});Gt(Ur("@",Gr(he("on:"))));w("on",Qe((e,{value:t,modifiers:r,expression:n},{cleanup:o})=>{let i=n?O(e,n):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=qn(e,t,r,a=>{i(()=>{},{scope:{$event:a},params:[a]})});o(()=>s())}));ct("Collapse","collapse","collapse");ct("Intersect","intersect","intersect");ct("Focus","trap","focus");ct("Mask","mask","mask");function ct(e,t,r){w(t,n=>de(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}Me.setEvaluator(Kr);Me.setReactivityEngine({reactive:or,effect:Li,release:Mi,raw:_});var hs=Me,ir=hs;var ms=class{el=void 0;constructor(e){this.el=e}traversals={first:"firstElementChild",next:"nextElementSibling",parent:"parentElement"};nodes(){return this.traversals={first:"firstChild",next:"nextSibling",parent:"parentNode"},this}first(){return this.teleportTo(this.el[this.traversals.first])}next(){return this.teleportTo(this.teleportBack(this.el[this.traversals.next]))}before(e){return this.el[this.traversals.parent].insertBefore(e,this.el),e}replace(e){return this.el[this.traversals.parent].replaceChild(e,this.el),e}append(e){return this.el.appendChild(e),e}teleportTo(e){return e&&(e._x_teleport?e._x_teleport:e)}teleportBack(e){return e&&(e._x_teleportBack?e._x_teleportBack:e)}};function S(e){return new ms(e)}function gs(e){let t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function bs(e){return e.nodeType===3||e.nodeType===8}var Vn=()=>{},Wn=()=>{};async function sr(e,t,r){let n,o,i,s,a,l,u,d,p,v,P;function E(c){if(P)return Wn((c||"").replace(` |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding
This replaces only the first occurrence of `\n`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.