Files
knowledge_base/src/public/vendor/livewire/livewire.min.js

99 lines
147 KiB
JavaScript
Raw Normal View History

(()=>{var cl=Object.create;var ui=Object.defineProperty;var fl=Object.getOwnPropertyDescriptor;var dl=Object.getOwnPropertyNames;var pl=Object.getPrototypeOf,hl=Object.prototype.hasOwnProperty;var ml=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var gl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dl(t))!hl.call(e,i)&&i!==r&&ui(e,i,{get:()=>t[i],enumerable:!(n=fl(t,i))||n.enumerable});return e};var vl=(e,t,r)=>(r=e!=null?cl(pl(e)):{},gl(t||!e||!e.__esModule?ui(r,"default",{value:e,enumerable:!0}):r,e));var ba=ml((qn,va)=>{(function(e,t){typeof define=="function"&&define.amd?define(t):typeof qn=="object"?va.exports=t():e.NProgress=t()})(qn,function(){var e={};e.version="0.2.0";var t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};e.configure=function(f){var d,h;for(d in f)h=f[d],h!==void 0&&f.hasOwnProperty(d)&&(t[d]=h);return this},e.status=null,e.set=function(f){var d=e.isStarted();f=r(f,t.minimum,1),e.status=f===1?null:f;var h=e.render(!d),b=h.querySelector(t.barSelector),g=t.speed,y=t.easing;return h.offsetWidth,o(function(v){t.positionUsing===""&&(t.positionUsing=e.getPositioningCSS()),s(b,i(f,g,y)),f===1?(s(h,{transition:"none",opacity:1}),h.offsetWidth,setTimeout(function(){s(h,{transition:"all "+g+"ms linear",opacity:0}),setTimeout(function(){e.remove(),v()},g)},g)):setTimeout(v,g)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var f=function(){setTimeout(function(){!e.status||(e.trickle(),f())},t.trickleSpeed)};return t.trickle&&f(),this},e.done=function(f){return!f&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(f){var d=e.status;return d?(typeof f!="number"&&(f=(1-d)*r(Math.random()*d,.1,.95)),d=r(d+f,0,.994),e.set(d)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var f=0,d=0;e.promise=function(h){return!h||h.state()==="resolved"?this:(d===0&&e.start(),f++,d++,h.always(function(){d--,d===0?(f=0,e.done()):e.set((f-d)/f)}),this)}}(),e.render=function(f){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=t.template;var h=d.querySelector(t.barSelector),b=f?"-100":n(e.status||0),g=document.querySelector(t.parent),y;return s(h,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),t.showSpinner||(y=d.querySelector(t.spinnerSelector),y&&p(y)),g!=document.body&&l(g,"nprogress-custom-parent"),g.appendChild(d),d},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var f=document.getElementById("nprogress");f&&p(f)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var f=document.body.style,d="WebkitTransform"in f?"Webkit":"MozTransform"in f?"Moz":"msTransform"in f?"ms":"OTransform"in f?"O":"";return d+"Perspective"in f?"translate3d":d+"Transform"in f?"translate":"margin"};function r(f,d,h){return f<d?d:f>h?h:f}function n(f){return(-1+f)*100}function i(f,d,h){var b;return t.positionUsing==="translate3d"?b={transform:"translate3d("+n(f)+"%,0,0)"}:t.positionUsing==="translate"?b={transform:"translate("+n(f)+"%,0)"}:b={"margin-left":n(f)+"%"},b.transition="all "+d+"ms "+h,b}var o=function(){var f=[];function d(){var h=f.shift();h&&h(d)}return function(h){f.push(h),f.length==1&&d()}}(),s=function(){var f=["Webkit","O","Moz","ms"],d={};function h(v){return v.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(S,A){return A.toUpperCase()})}function b(v){var S=document.body.style;if(v in S)return v;for(var A=f.length,C=v.charAt(0).toUpperCase()+v.slice(1),w;A--;)if(w=f[A]+C,w in S)return w;return v}function g(v){return v=h(v),d[v]||(d[
${r?'Expression: "'+r+`"
`:""}`,t),setTimeout(()=>{throw e},0)}var Rt=!0;function Vi(e){let t=Rt;Rt=!1;let r=e();return Rt=t,r}function Ae(e,t,r={}){let n;return U(e,t)(i=>n=i,r),n}function U(...e){return Gi(...e)}var Gi=Xi;function $l(e){Gi=e}function Xi(e,t){let r={};Mr(r,e);let n=[r,...De(e)],i=typeof t=="function"?Fl(n,t):Bl(n,t,e);return Il.bind(null,e,t,i)}function Fl(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(ct([n,...e]),i);$t(r,o)}}var Er={};function Dl(e,t){if(Er[e])return Er[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return lt(s,t,e),Promise.resolve()}})();return Er[e]=o,o}function Bl(e,t,r){let n=Dl(t,r);return(i=()=>{},{scope:o={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=ct([o,...e]);if(typeof n=="function"){let l=n(n,a).catch(u=>lt(u,r,t));n.finished?($t(i,n.result,a,s,r),n.result=void 0):l.then(u=>{$t(i,u,a,s,r)}).catch(u=>lt(u,r,t)).finally(()=>n.result=void 0)}}}function $t(e,t,r,n,i){if(Rt&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>$t(e,s,r,n)).catch(s=>lt(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var Qr="x-";function He(e=""){return Qr+e}function jl(e){Qr=e}var Ft={};function B(e,t){return Ft[e]=t,{before(r){if(!Ft[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let n=Se.indexOf(r);Se.splice(n>=0?n:Se.indexOf("DEFAULT"),0,e)}}}function Ul(e){return Object.keys(Ft).includes(e)}function Zr(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=Yi(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(ro((o,s)=>n[o]=s)).filter(io).map(Wl(n,r)).sort(zl).map(o=>ql(e,o))}function Yi(e){return Array.from(e).map(ro()).filter(t=>!io(t))}var Ir=!1,ot=new Map,Qi=Symbol();function Hl(e){Ir=!0;let t=Symbol();Qi=t,ot.set(t,[]);let r=()=>{for(;ot.get(t).length;)ot.get(t).shift()();ot.delete(t)},n=()=>{Ir=!1,r()};e(r),n()}function Zi(e){let t=[],r=a=>t.push(a),[n,i]=Al(e);return t.push(i),[{Alpine:ft,effect:n,cleanup:r,evaluateLater:U.bind(U,e),evaluate:Ae.bind(Ae,e)},()=>t.forEach(a=>a())]}function ql(e,t){let r=()=>{},n=Ft[t.type]||r,[i,o]=Zi(e);Ui(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),Ir?ot.get(Qi).push(n):n())};return s.runCleanups=o,s}var eo=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),to=e=>e;function ro(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=no.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var no=[];function en(e){no.push(e)}function io({name:e}){return oo().test(e)}var oo=()=>new RegExp(`^${Qr}([^:^.]+)\\b`);function Wl(e,t){return({name:r,value:n})=>{let i=r.match(oo()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:n,original:a}}}var $r="DEFAULT",Se=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",$r,"teleport"];function zl(e,t){let r=Se.indexOf(e.type)===-1?$r:e.type,n=Se.indexOf(t.type)===-1?$r:t.type;return Se.indexOf(r)-Se.indexOf(n)}function st(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function Te(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>Te(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)Te(n,t,!1),n=n.nextElementSibling}function V(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var _i=!1;function Kl(){_i&&V("Alpine has already
Would you like to refresh the page?`)&&window.location.reload()}function Mc(e){mn(e)}var wn={},ts;function D(e,t,r=null){wn[e]=t}function Ic(e){ts=e}var Zo={on:"$on",el:"$el",id:"$id",js:"$js",get:"$get",set:"$set",call:"$call",hook:"$hook",commit:"$commit",watch:"$watch",entangle:"$entangle",dispatch:"$dispatch",dispatchTo:"$dispatchTo",dispatchSelf:"$dispatchSelf",upload:"$upload",uploadMultiple:"$uploadMultiple",removeUpload:"$removeUpload",cancelUpload:"$cancelUpload"};function rs(e,t){return new Proxy({},{get(r,n){if(n==="__instance")return e;if(n in Zo)return es(e,Zo[n]);if(n in wn)return es(e,n);if(n in t)return t[n];if(!["then"].includes(n))return $c(e)(n)},set(r,n,i){return n in t&&(t[n]=i),!0}})}function es(e,t){return wn[t](e)}function $c(e){return ts(e)}x.magic("wire",(e,{cleanup:t})=>{let r;return new Proxy({},{get(n,i){return r||(r=H(e)),["$entangle","entangle"].includes(i)?hn(r,t):r.$wire[i]},set(n,i,o){return r||(r=H(e)),r.$wire[i]=o,!0}})});D("__instance",e=>e);D("$get",e=>(t,r=!0)=>z(r?e.reactive:e.ephemeral,t));D("$el",e=>e.el);D("$id",e=>e.id);D("$js",e=>{let t=e.addJsAction.bind(e),r=e.getJsActions();return Object.keys(r).forEach(n=>{t[n]=e.getJsAction(n)}),t});D("$set",e=>async(t,r,n=!0)=>(ye(e.reactive,t,r),n?(e.queueUpdate(t,r),await vn(e)):Promise.resolve()));D("$call",e=>async(t,...r)=>await e.$wire[t](...r));D("$entangle",e=>(t,r=!1)=>hn(e)(t,r));D("$toggle",e=>(t,r=!0)=>e.$wire.set(t,!e.$wire.get(t),r));D("$watch",e=>(t,r)=>{let n=()=>z(e.reactive,t),i=x.watch(n,r);e.addCleanup(i)});D("$refresh",e=>e.$wire.$commit);D("$commit",e=>async()=>await vn(e));D("$on",e=>(...t)=>is(e,...t));D("$hook",e=>(t,r)=>{let n=k(t,({component:i,...o})=>{if(i===void 0)return r(o);if(i.id===e.id)return r({component:i,...o})});return e.addCleanup(n),n});D("$dispatch",e=>(...t)=>Yt(e,...t));D("$dispatchSelf",e=>(...t)=>se(e,...t));D("$dispatchTo",()=>(...e)=>Ke(...e));D("$upload",e=>(...t)=>vi(e,...t));D("$uploadMultiple",e=>(...t)=>bi(e,...t));D("$removeUpload",e=>(...t)=>wi(e,...t));D("$cancelUpload",e=>(...t)=>yi(e,...t));var bn=new WeakMap;D("$parent",e=>{if(bn.has(e))return bn.get(e).$wire;let t=e.parent;return bn.set(e,t),t.$wire});var ze=new WeakMap;function ns(e,t,r){ze.has(e)||ze.set(e,{});let n=ze.get(e);n[t]=r,ze.set(e,n)}Ic(e=>t=>async(...r)=>{if(r.length===1&&r[0]instanceof Event&&(r=[]),ze.has(e)){let n=ze.get(e);if(typeof n[t]=="function")return n[t](r)}return await Qo(e,t,r)});var Qt=class{constructor(t){if(t.__livewire)throw"Component already initialized";if(t.__livewire=this,this.el=t,this.id=t.getAttribute("wire:id"),this.__livewireId=this.id,this.snapshotEncoded=t.getAttribute("wire:snapshot"),this.snapshot=JSON.parse(this.snapshotEncoded),!this.snapshot)throw"Snapshot missing on Livewire component with id: "+this.id;this.name=this.snapshot.memo.name,this.effects=JSON.parse(t.getAttribute("wire:effects")),this.originalEffects=ce(this.effects),this.canonical=xe(ce(this.snapshot.data)),this.ephemeral=xe(ce(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.queuedUpdates={},this.jsActions={},this.$wire=rs(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(t,r,n={}){let i=JSON.parse(t),o=ce(this.canonical),s=this.applyUpdates(o,n),a=xe(ce(i.data)),l=Ze(s,a);this.snapshotEncoded=t,this.snapshot=i,this.effects=r,this.canonical=xe(ce(i.data));let u=xe(ce(i.data));return Object.entries(l).forEach(([c,p])=>{let f=c.split(".")[0];this.reactive[f]=u[f]}),l}queueUpdate(t,r){this.queuedUpdates[t]=r}mergeQueuedUpdates(t){return Object.entries(this.queuedUpdates).forEach(([r,n])=>{Object.entries(t).forEach(([i,o])=>{i.startsWith(n)&&delete t[i]}),t[r]=n}),this.queuedUpdates=[],t}applyUpdates(t,r){for(let n in r)ye(t,n,r[n]);return t}replayUpdate(t,r){let n={...this.effects,html:r};this.mergeNewSnapshot(JSON.stringify(t),n),this.processEffects({html:r})}processEffects(t){N("effects",this,t),N("effect",{component:this,effects:t,cleanup:r=>this.addCleanup(r)})}get children(){let t=this.snapshot.memo;return Object.values(t.children).map(n=>n[1]).filter(n=>Z
#nprogress {
pointer-events: none;
}
#nprogress .bar {
background: var(--livewire-progress-bar-color, #29d);
position: fixed;
z-index: 1031;
top: 0;
left: 0;
width: 100%;
height: 2px;
}
/* Fancy blur effect */
#nprogress .peg {
display: block;
position: absolute;
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px var(--livewire-progress-bar-color, #29d), 0 0 5px var(--livewire-progress-bar-color, #29d);
opacity: 1.0;
-webkit-transform: rotate(3deg) translate(0px, -4px);
-ms-transform: rotate(3deg) translate(0px, -4px);
transform: rotate(3deg) translate(0px, -4px);
}
/* Remove these to get rid of the spinner */
#nprogress .spinner {
display: block;
position: fixed;
z-index: 1031;
top: 15px;
right: 15px;
}
#nprogress .spinner-icon {
width: 18px;
height: 18px;
box-sizing: border-box;
border: solid 2px transparent;
border-top-color: var(--livewire-progress-bar-color, #29d);
border-left-color: var(--livewire-progress-bar-color, #29d);
border-radius: 50%;
-webkit-animation: nprogress-spinner 400ms linear infinite;
animation: nprogress-spinner 400ms linear infinite;
}
.nprogress-custom-parent {
overflow: hidden;
position: relative;
}
.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
position: absolute;
}
@-webkit-keyframes nprogress-spinner {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes nprogress-spinner {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
`;let t=pi();t&&(e.nonce=t),document.head.appendChild(e)}function zn(e){!_a()||e.querySelectorAll(":popover-open").forEach(t=>{t.setAttribute("data-navigate-popover-open","");let r=t.getAnimations();t._pausedAnimations=r.map(n=>({keyframes:n.effect.getKeyframes(),options:{duration:n.effect.getTiming().duration,easing:n.effect.getTiming().easing,fill:n.effect.getTiming().fill,iterations:n.effect.getTiming().iterations},currentTime:n.currentTime,playState:n.playState})),r.forEach(n=>n.pause())})}function Kn(e){!_a()||e.querySelectorAll("[data-navigate-popover-open]").forEach(t=>{t.removeAttribute("data-navigate-popover-open"),queueMicrotask(()=>{!t.isConnected||(t.showPopover(),t.getAnimations().forEach(r=>r.finish()),t._pausedAnimations&&(t._pausedAnimations.forEach(({keyframes:r,options:n,currentTime:i,now:o,playState:s})=>{let a=t.animate(r,n);a.currentTime=i}),delete t._pausedAnimations))})})}function _a(){return typeof document.createElement("div").showPopover=="function"}var Jn=[],Aa=["data-csrf","nonce","aria-hidden"];function Vn(e,t){let r=new DOMParser().parseFromString(e,"text/html"),n=r.documentElement,i=document.adoptNode(r.body),o=document.adoptNode(r.head);Jn=Jn.concat(Array.from(document.body.querySelectorAll("script")).map(l=>ka(La(l.outerHTML,Aa))));let s=()=>{};Xf(n),Yf(o).finally(()=>{s()}),Gf(i,Jn);let a=document.body;document.body.replaceWith(i),Alpine.destroyTree(a),t(l=>s=l)}function Gf(e,t){e.querySelectorAll("script").forEach(r=>{if(r.hasAttribute("data-navigate-once")){let n=ka(La(r.outerHTML,Aa));if(t.includes(n))return}r.replaceWith(Ca(r))})}function Xf(e){let t=document.documentElement;Array.from(e.attributes).forEach(r=>{let n=r.name,i=r.value;t.getAttribute(n)!==i&&t.setAttribute(n,i)}),Array.from(t.attributes).forEach(r=>{e.hasAttribute(r.name)||t.removeAttribute(r.name)})}function Yf(e){let t=Array.from(document.head.children),r=t.map(s=>s.outerHTML),n=document.createDocumentFragment(),i=[],o=[];for(let s of Array.from(e.children))if(Ea(s)){if(r.includes(s.outerHTML))n.appendChild(s);else if(Oa(s)&&Zf(s,t)&&setTimeout(()=>window.location.reload()),Ta(s))try{o.push(Qf(Ca(s)))}catch{}else document.head.appendChild(s);i.push(s)}for(let s of Array.from(document.head.children))Ea(s)||s.remove();for(let s of Array.from(e.children))s.tagName.toLowerCase()!=="noscript"&&document.head.appendChild(s);return Promise.all(o)}async function Qf(e){return new Promise((t,r)=>{e.src?(e.onload=()=>t(),e.onerror=()=>r()):t(),document.head.appendChild(e)})}function Ca(e){let t=document.createElement("script");t.textContent=e.textContent,t.async=e.async;for(let r of e.attributes)t.setAttribute(r.name,r.value);return t}function Oa(e){return e.hasAttribute("data-navigate-track")}function Zf(e,t){let[r,n]=Sa(e);return t.some(i=>{if(!Oa(i))return!1;let[o,s]=Sa(i);if(o===r&&n!==s)return!0})}function Sa(e){return(Ta(e)?e.src:e.href).split("?")}function Ea(e){return e.tagName.toLowerCase()==="link"&&e.getAttribute("rel").toLowerCase()==="stylesheet"||e.tagName.toLowerCase()==="style"||e.tagName.toLowerCase()==="script"}function Ta(e){return e.tagName.toLowerCase()==="script"}function ka(e){return e.split("").reduce((t,r)=>(t=(t<<5)-t+r.charCodeAt(0),t&t),0)}function La(e,t){let r=e;return t.forEach(n=>{let i=new RegExp(`${n}="[^"]*"|${n}='[^']*'`,"g");r=r.replace(i,"")}),r=r.replaceAll(" ",""),r.trim()}var gr=!0,Gn=!0,ed=!0,Na=!1;function Ia(e){e.navigate=(r,n={})=>{let{preserveScroll:i=!1}=n,o=be(r);ue("alpine:navigate",{url:o,history:!1,cached:!1})||t(o,{preserveScroll:i})},e.navigate.disableProgressBar=()=>{Gn=!1},e.addInitSelector(()=>`[${e.prefixed("navigate")}]`),e.directive("navigate",(r,{modifiers:n})=>{let i=n.includes("hover"),o=n.includes("preserve-scroll");i&&da(r,60,()=>{let s=Pn(r);!s||Mn(s,(a,l)=>{In(a,s,l)})}),fa(r,s=>{let a=Pn(r);!a||(Mn(a,(l,u)=>{In(l,a,u)}),s(()=>{ue("alpine:navigate",{url:a,history:!1,cached:!1})||t(a,{preserveScroll:o})}))})});function t(r,{preserveScroll:n=!1,shouldPushToHistoryState:i=!0}){Gn&&wa(),td(r,(o,s)=>{ue("alpine:navigating"),ed&&Bn(),rd(),sa(),Pa(e,a=>{gr&&Un(l=>{$
`),r===""&&(r="Are you sure?"),e.__livewire_confirm=(i,o)=>{if(n){let[s,a]=r.split("|");a?prompt(s)===a?i():o():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(r)?i():o()}});x.addInitSelector(()=>"[wire\\:current]");var ii=new Map;document.addEventListener("livewire:navigated",()=>{ii.forEach(e=>e(new URL(window.location.href)))});hs("current",({el:e,directive:t,cleanup:r})=>{let n=t.expression,i={exact:t.modifiers.includes("exact"),strict:t.modifiers.includes("strict")};if(n.startsWith("#")||!e.hasAttribute("href"))return;let o=e.getAttribute("href"),s=new URL(o,window.location.href),a=n.split(" ").filter(String),l=u=>{Fd(s,u,i)?(e.classList.add(...a),e.setAttribute("data-current","")):(e.classList.remove(...a),e.removeAttribute("data-current"))};l(new URL(window.location.href)),ii.set(e,l),r(()=>ii.delete(e))});function Fd(e,t,r){if(e.hostname!==t.hostname)return!1;let n=r.strict?e.pathname:e.pathname.replace(/\/+$/,""),i=r.strict?t.pathname:t.pathname.replace(/\/+$/,"");if(r.exact)return n===i;let o=n.split("/"),s=i.split("/");for(let a=0;a<o.length;a++)if(o[a]!==s[a])return!1;return!0}function ie(e,t,r,n=null){if(r=t.modifiers.includes("remove")?!r:r,t.modifiers.includes("class")){let i=t.expression.split(" ").filter(String);r?e.classList.add(...i):e.classList.remove(...i)}else if(t.modifiers.includes("attr"))r?e.setAttribute(t.expression,!0):e.removeAttribute(t.expression);else{let i=n??window.getComputedStyle(e,null).getPropertyValue("display"),o=["inline","block","table","flex","grid","inline-flex"].filter(s=>t.modifiers.includes(s))[0]||"inline-block";o=t.modifiers.includes("remove")&&!r?i:o,e.style.display=r?o:"none"}}var oi=new Set,si=new Set;window.addEventListener("offline",()=>oi.forEach(e=>e()));window.addEventListener("online",()=>si.forEach(e=>e()));I("offline",({el:e,directive:t,cleanup:r})=>{let n=()=>ie(e,t,!0),i=()=>ie(e,t,!1);oi.add(n),si.add(i),r(()=>{oi.delete(n),si.delete(i)})});I("loading",({el:e,directive:t,component:r,cleanup:n})=>{let{targets:i,inverted:o}=Hd(e),[s,a]=Dd(t),l=Bd(r,i,o,[()=>s(()=>ie(e,t,!0)),()=>a(()=>ie(e,t,!1))]),u=jd(r,i,[()=>s(()=>ie(e,t,!0)),()=>a(()=>ie(e,t,!1))]);n(()=>{l(),u()})});function Dd(e){if(!e.modifiers.includes("delay")||e.modifiers.includes("none"))return[o=>o(),o=>o()];let t=200,r={shortest:50,shorter:100,short:150,default:200,long:300,longer:500,longest:1e3};Object.keys(r).some(o=>{if(e.modifiers.includes(o))return t=r[o],!0});let n,i=!1;return[o=>{n=setTimeout(()=>{o(),i=!0},t)},async o=>{i?(await o(),i=!1):clearTimeout(n)}]}function Bd(e,t,r,[n,i]){return k("commit",({component:o,commit:s,respond:a})=>{o===e&&(t.length>0&&Ud(s,t)===r||(n(),a(()=>{i()})))})}function jd(e,t,[r,n]){let i=l=>{let{id:u,property:c}=l.detail;return u!==e.id||t.length>0&&!t.map(p=>p.target).includes(c)},o=Et(window,"livewire-upload-start",l=>{i(l)||r()}),s=Et(window,"livewire-upload-finish",l=>{i(l)||n()}),a=Et(window,"livewire-upload-error",l=>{i(l)||n()});return()=>{o(),s(),a()}}function Ud(e,t){let{updates:r,calls:n}=e;return t.some(({target:i,params:o})=>{if(o)return n.some(({method:a,params:l})=>i===a&&o===el(JSON.stringify(l)));if(Object.keys(r).some(a=>a.includes(".")&&a.split(".")[0]===i?!0:a===i)||n.map(a=>a.method).includes(i))return!0})}function Hd(e){let t=Je(e),r=[],n=!1;if(t.has("target")){let i=t.get("target");i.modifiers.includes("except")&&(n=!0),i.methods.forEach(({method:o,params:s})=>{r.push({target:o,params:s&&s.length>0?el(JSON.stringify(s)):void 0})})}else{let i=["init","dirty","offline","target","loading","poll","ignore","key","id"];t.all().filter(o=>!i.includes(o.value)).map(o=>o.expression.split("(")[0]).forEach(o=>r.push({target:o}))}return{targets:r,inverted:n}}function el(e){return btoa(encodeURIComponent(e))}I("stream",({el:e,directive:t,cleanup:r})=>{let{expression:n,modifiers:i}=t,o=k("stream",({name:s,content:a,replace:l})=>{s===n&&(i.includes("replace")||l?e.innerHTML=a:e.insertAdjacentHTML("beforeend",a))});r(o)});k("request",({respond:e})=>{e(t=>{let r=t.response;!r.headers.has("X-Livewire-Stream")||(t.r
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */
/*! Bundled license information:
tabbable/dist/index.esm.js:
(*!
* tabbable 5.3.3
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*)
focus-trap/dist/focus-trap.esm.js:
(*!
* focus-trap 6.9.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*)
*/
//# sourceMappingURL=livewire.min.js.map