83 lines
152 KiB
JavaScript
83 lines
152 KiB
JavaScript
|
(function(){var e=t();function t(){if(typeof window.CustomEvent=="function")return window.CustomEvent;function r(s,o){o=o||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(s,o.bubbles,o.cancelable,o.detail),a}return r.prototype=window.Event.prototype,r}function i(r,s){var o=document.createElement("input");return o.type="hidden",o.name=r,o.value=s,o}function n(r,s){var o=r.getAttribute("data-to"),a=i("_method",r.getAttribute("data-method")),l=i("_csrf_token",r.getAttribute("data-csrf")),h=document.createElement("form"),c=r.getAttribute("target");h.method=r.getAttribute("data-method")==="get"?"get":"post",h.action=o,h.style.display="hidden",c?h.target=c:s&&(h.target="_blank"),h.appendChild(l),h.appendChild(a),document.body.appendChild(h),h.submit()}window.addEventListener("click",function(r){var s=r.target;if(!r.defaultPrevented)for(;s&&s.getAttribute;){var o=new e("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!s.dispatchEvent(o))return r.preventDefault(),r.stopImmediatePropagation(),!1;if(s.getAttribute("data-method"))return n(s,r.metaKey||r.shiftKey),r.preventDefault(),!1;s=s.parentNode}},!1),window.addEventListener("phoenix.link.click",function(r){var s=r.target.getAttribute("data-confirm");s&&!window.confirm(s)&&r.preventDefault()},!1)})();var it=e=>typeof e=="function"?e:function(){return e},lr=typeof self<"u"?self:null,tt=typeof window<"u"?window:null,nt=lr||tt||nt,cr="2.0.0",we={connecting:0,open:1,closing:2,closed:3},hr=1e4,dr=1e3,oe={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Te={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},si={longpoll:"longpoll",websocket:"websocket"},ur={complete:4},gt=class{constructor(e,t,i,n){this.channel=e,this.event=t,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:i}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},Dn=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},fr=class{constructor(e,t,i){this.state=oe.closed,this.topic=e,this.params=it(t||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new gt(this,Te.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Dn(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=oe.joined,this.rejoinTimer.reset(),this.
|
||
|
* @license MIT
|
||
|
* topbar 1.0.0, 2021-01-06
|
||
|
* http://buunguyen.github.io/topbar
|
||
|
* Copyright (c) 2021 Buu Nguyen
|
||
|
*/(function(e){(function(t,i){(function(){for(var d=0,g=["ms","moz","webkit","o"],u=0;u<g.length&&!t.requestAnimationFrame;++u)t.requestAnimationFrame=t[g[u]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[g[u]+"CancelAnimationFrame"]||t[g[u]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(y,v){var _=new Date().getTime(),S=Math.max(0,16-(_-d)),N=t.setTimeout(function(){y(_+S)},S);return d=_+S,N}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(y){clearTimeout(y)})})();function n(){r.width=t.innerWidth,r.height=5*h.barThickness;var d=r.getContext("2d");d.shadowBlur=h.shadowBlur,d.shadowColor=h.shadowColor;var g,u=d.createLinearGradient(0,0,r.width,0);for(g in h.barColors)u.addColorStop(g,h.barColors[g]);d.lineWidth=h.barThickness,d.beginPath(),d.moveTo(0,h.barThickness/2),d.lineTo(Math.ceil(a*r.width),h.barThickness/2),d.strokeStyle=u,d.stroke()}var r,s,o,a,l,h={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},c={config:function(d){for(var g in d)h.hasOwnProperty(g)&&(h[g]=d[g])},show:function(){var d,g,u;l||(l=!0,o!==null&&t.cancelAnimationFrame(o),r||((u=(r=i.createElement("canvas")).style).position="fixed",u.top=u.left=u.right=u.margin=u.padding=0,u.zIndex=100001,u.display="none",h.className&&r.classList.add(h.className),i.body.appendChild(r),d="resize",g=n,(u=t).addEventListener?u.addEventListener(d,g,!1):u.attachEvent?u.attachEvent("on"+d,g):u["on"+d]=g),r.style.opacity=1,r.style.display="block",c.progress(0),h.autoRun&&function y(){s=t.requestAnimationFrame(y),c.progress("+"+.05*Math.pow(1-Math.sqrt(a),2))}())},progress:function(d){return d===void 0||(typeof d=="string"&&(d=(0<=d.indexOf("+")||0<=d.indexOf("-")?a:0)+parseFloat(d)),a=1<d?1:d,n()),a},hide:function(){l&&(l=!1,s!=null&&(t.cancelAnimationFrame(s),s=null),function d(){return 1<=c.progress("+.1")&&(r.style.opacity-=.05,r.style.opacity<=.05)?(r.style.display="none",void(o=null)):void(o=t.requestAnimationFrame(d))}())}};e.exports=c}).call(Z,window,document)})(mr);const bi=oi;var Ln="consecutive-reloads",vr=10,br=5e3,_r=1e4,yr=3e4,On=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],le="data-phx-component",Yt="data-phx-link",Er="track-static",wr="data-phx-link-state",Ee="data-phx-ref",Ne="data-phx-ref-src",xn="track-uploads",Me="data-phx-upload-ref",_i="data-phx-preflighted-refs",Ar="data-phx-done-refs",$i="drop-target",ai="data-phx-active-refs",kt="phx:live-file:updated",li="data-phx-skip",Fi="data-phx-prune",ji="page-loading",Bi="phx-connected",Gt="phx-loading",Ui="phx-no-feedback",Vi="phx-error",je="data-phx-parent-id",yi="data-phx-main",ht="data-phx-root-id",Cr="trigger-action",ci="feedback-for",Pn="phx-has-focused",Tr=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],Rn=["checkbox","radio"],hi="phx-has-submitted",Oe="data-phx-session",Ue=`[${Oe}]`,Wi="data-phx-sticky",rt="data-phx-static",Qt="data-phx-readonly",vt="data-phx-disabled",di="disable-with",bt="data-phx-disable-with-restore",Ye="hook",Sr="debounce",kr="throttle",ui="update",Dr="key",ve="phxPrivate",qi="auto-recover",_t="phx:live-socket:debug",Zt="phx:live-socket:profiling",ei="phx:live-socket:latency-sim",Lr="progress",Ki="mounted",Or=1,xr=200,Pr="phx-",Rr=3e4,Ge="debounce-trigger",yt="throttled",Ji="debounce-prev-key",Nr={debounce:300,throttle:300},Xi="d",be="s",ae="c",zi="e",Yi="r",Gi="t",Ir="p",Mr=class{constructor(e,t,i){this.liveSocket=i,this.entry=e,this.offset=0,this.chunkSize=t,this.chunkTimer=null,this.uploadChannel=i.channel(`lvu:${e.ref}`,{token:e.metadata()})}error(e){clearTimeout(this.chunkTimer),this.uploadChannel.leave(),this.entry.error(e)}upload(){this.uploadChannel.onError(e=>this.error(e)),this.uploadChannel.join().receive("ok",e=>this.readNextChunk()).r
|
||
|
|
||
|
removing illegal node: "${(n.outerHTML||n.nodeValue).trim()}"
|
||
|
|
||
|
`),i.push(n))}),i.forEach(n=>n.remove())}},replaceRootContainer(e,t,i){let n=new Set(["id",Oe,rt,yi,ht]);if(e.tagName.toLowerCase()===t.toLowerCase())return Array.from(e.attributes).filter(r=>!n.has(r.name.toLowerCase())).forEach(r=>e.removeAttribute(r.name)),Object.keys(i).filter(r=>!n.has(r.toLowerCase())).forEach(r=>e.setAttribute(r,i[r])),e;{let r=document.createElement(t);return Object.keys(i).forEach(s=>r.setAttribute(s,i[s])),n.forEach(s=>r.setAttribute(s,e.getAttribute(s))),r.innerHTML=e.innerHTML,e.replaceWith(r),r}},getSticky(e,t,i){let n=(ge.private(e,"sticky")||[]).find(([r])=>t===r);if(n){let[r,s,o]=n;return o}else return typeof i=="function"?i():i},deleteSticky(e,t){this.updatePrivate(e,"sticky",[],i=>i.filter(([n,r])=>n!==t))},putSticky(e,t,i){let n=i(e);this.updatePrivate(e,"sticky",[],r=>{let s=r.findIndex(([o])=>t===o);return s>=0?r[s]=[t,i,n]:r.push([t,i,n]),r})},applyStickyOperations(e){let t=ge.private(e,"sticky");t&&t.forEach(([i,n,r])=>this.putSticky(e,i,n))}},m=ge,ii=class{static isActive(e,t){let i=t._phxRef===void 0,r=e.getAttribute(ai).split(",").indexOf(G.genFileRef(t))>=0;return t.size>0&&(i||r)}static isPreflighted(e,t){return e.getAttribute(_i).split(",").indexOf(G.genFileRef(t))>=0&&this.isActive(e,t)}constructor(e,t,i){this.ref=G.genFileRef(t),this.fileEl=e,this.file=t,this.view=i,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(kt,this._onElUpdated)}metadata(){return this.meta}progress(e){this._progress=Math.floor(e),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{G.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}cancel(){this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(e="failed"){this.fileEl.removeEventListener(kt,this._onElUpdated),this.view.pushFileProgress(this.fileEl,this.ref,{error:e}),G.clearFiles(this.fileEl)}onDone(e){this._onDone=()=>{this.fileEl.removeEventListener(kt,this._onElUpdated),e()}}onElUpdated(){this.fileEl.getAttribute(ai).split(",").indexOf(this.ref)===-1&&this.cancel()}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,relative_path:this.file.webkitRelativePath,size:this.file.size,type:this.file.type,ref:this.ref}}uploader(e){if(this.meta.uploader){let t=e[this.meta.uploader]||Q(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:t}}else return{name:"channel",callback:jr}}zipPostFlight(e){this.meta=e.entries[this.ref],this.meta||Q(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:e})}},Br=0,G=class{static genFileRef(e){let t=e._phxRef;return t!==void 0?t:(e._phxRef=(Br++).toString(),e._phxRef)}static getEntryDataURL(e,t,i){let n=this.activeFiles(e).find(r=>this.genFileRef(r)===t);i(URL.createObjectURL(n))}static hasUploadsInProgress(e){let t=0;return m.findUploadInputs(e).forEach(i=>{i.getAttribute(_i)!==i.getAttribute(Ar)&&t++}),t>0}static serializeUploads(e){let t=this.activeFiles(e),i={};return t.forEach(n=>{let r={path:e.name},s=e.getAttribute(Me);i[s]=i[s]||[],r.ref=this.genFileRef(n),r.last_modified=n.lastModified,r.name=n.name||r.ref,r.relative_path=n.webkitRelativePath,r.type=n.type,r.size=n.size,i[s].push(r)}),i}static clearFiles(e){e.value=null,e.removeAttribute(Me),m.putPrivate(e,"files",[])}static untrackFile(e,t){m.putPrivate(e,"files",m.private(e,"files").filter(i=>!Object.is(i,t)))}static trackFiles(e,t){if(e.getAttribute("multiple")!==null){let i=t.filter(n=>!this.activeFiles(e).find(r=>Object.is(r,n)));m.putPrivate(e,"files",this.activeFiles(e).concat(i)),e.value=null}else m.putPrivate(e,"files",t)}static activeFileInputs(e){let t=m.findUploadInputs(e);return Array.from(t).filter(i=>i.files&&this.activeFiles(i).leng
|
||
|
|
||
|
got: "${d.nodeValue.trim()}"
|
||
|
|
||
|
within:
|
||
|
`,r.innerHTML.trim()),d.replaceWith(this.createSpan(d.nodeValue,t)),[!0,c]):(d.remove(),[h,c]),[!1,!1]);return!a&&!l?(Q(`expected at least one HTML element tag inside a component, but the component is empty:
|
||
|
`,r.innerHTML.trim()),this.createSpan("",t).outerHTML):(!a&&l&&Q("expected at least one HTML element tag directly inside a component, but only subcomponents were found. A component must render at least one HTML tag directly inside itself.",r.innerHTML.trim()),r.innerHTML)}createSpan(e,t){let i=document.createElement("span");return i.innerText=e,i.setAttribute(le,t),i}},os=1,et=class{static makeID(){return os++}static elementID(e){return e.phxHookId}constructor(e,t,i){this.__view=e,this.liveSocket=e.liveSocket,this.__callbacks=i,this.__listeners=new Set,this.__isDisconnected=!1,this.el=t,this.el.phxHookId=this.constructor.makeID();for(let n in this.__callbacks)this[n]=this.__callbacks[n]}__mounted(){this.mounted&&this.mounted()}__updated(){this.updated&&this.updated()}__beforeUpdate(){this.beforeUpdate&&this.beforeUpdate()}__destroyed(){this.destroyed&&this.destroyed()}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected&&this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected&&this.disconnected()}pushEvent(e,t={},i=function(){}){return this.__view.pushHookEvent(null,e,t,i)}pushEventTo(e,t,i={},n=function(){}){return this.__view.withinTargets(e,(r,s)=>r.pushHookEvent(s,t,i,n))}handleEvent(e,t){let i=(n,r)=>r?e:t(n.detail);return window.addEventListener(`phx:${e}`,i),this.__listeners.add(i),i}removeHandleEvent(e){let t=e(null,!0);window.removeEventListener(`phx:${t}`,e),this.__listeners.delete(e)}upload(e,t){return this.__view.dispatchUploads(e,t)}uploadTo(e,t,i){return this.__view.withinTargets(e,n=>n.dispatchUploads(t,i))}__cleanup__(){this.__listeners.forEach(e=>this.removeHandleEvent(e))}},Ct=null,as={exec(e,t,i,n,r){let[s,o]=r||[null,{}];(t.charAt(0)==="["?JSON.parse(t):[[s,o]]).forEach(([l,h])=>{l===s&&o.data&&(h.data=Object.assign(h.data||{},o.data)),this.filterToEls(n,h).forEach(c=>{this[`exec_${l}`](e,t,i,n,c,h)})})},isVisible(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length>0)},exec_dispatch(e,t,i,n,r,{to:s,event:o,detail:a,bubbles:l}){a=a||{},a.dispatcher=n,m.dispatchEvent(r,o,{detail:a,bubbles:l})},exec_push(e,t,i,n,r,s){if(!i.isConnected())return;let{event:o,data:a,target:l,page_loading:h,loading:c,value:d,dispatcher:g}=s,u={loading:c,value:d,target:l,page_loading:!!h},y=e==="change"&&g?g:n,v=l||y.getAttribute(i.binding("target"))||y;i.withinTargets(v,(_,S)=>{if(e==="change"){let{newCid:N,_target:f,callback:w}=s;f=f||(m.isFormInput(n)?n.name:void 0),f&&(u._target=f),_.pushInput(n,S,N,o||t,u,w)}else e==="submit"?_.submitForm(n,S,o||t,u):_.pushEvent(e,n,S,o||t,a,u)})},exec_navigate(e,t,i,n,r,{href:s,replace:o}){i.liveSocket.historyRedirect(s,o?"replace":"push")},exec_patch(e,t,i,n,r,{href:s,replace:o}){i.liveSocket.pushHistoryPatch(s,o?"replace":"push",n)},exec_focus(e,t,i,n,r){window.requestAnimationFrame(()=>Be.attemptFocus(r))},exec_focus_first(e,t,i,n,r){window.requestAnimationFrame(()=>Be.focusFirstInteractive(r)||Be.focusFirst(r))},exec_push_focus(e,t,i,n,r){window.requestAnimationFrame(()=>Ct=r||n)},exec_pop_focus(e,t,i,n,r){window.requestAnimationFrame(()=>{Ct&&Ct.focus(),Ct=null})},exec_add_class(e,t,i,n,r,{names:s,transition:o,time:a}){this.addOrRemoveClasses(r,s,[],o,a,i)},exec_remove_class(e,t,i,n,r,{names:s,transition:o,time:a}){this.addOrRemoveClasses(r,[],s,o,a,i)},exec_transition(e,t,i,n,r,{time:s,transition:o}){let[a,l,h]=o,c=()=>this.addOrRemoveClasses(r,a.concat(l),[]),d=()=>this.addOrRemoveClasses(r,h,a.concat(l));i.transition(s,c,d)},exec_toggle(e,t,i,n,r,{display:s,ins:o,outs:a,time:l}){this.toggle(e,i,r,s,o,a,l)},exec_show(e,t,i,n,r,{display:s,transition:o,time:a}){this.show(e,i,r,s,o,a)},exec_hide(e,t,i,n,r,{display:s,transition:o,time:a}){this.hide(e,i,r,s,o,a)},exec_set_attr(e,t,i,n,r,{attr:[s,o]}){this.setOrRemoveAttrs(r,[[s,o]],[])},exec_remove_attr(e,t,i,n,r,{attr:s}){this.setOrRemoveAttrs(r,[],[s])},show(e,t,i,n,r,s){this.isVisible(i)||this.toggle(e,t,i,n,r,null,s)},hide(e,t,i,n,r,s){this.isVisible(i)&&this.toggle(e,t,i,n,null,r,s)},toggle(e,t,i,n,r,s,o){let[a,l,h]=r||[[],[],[]],[c,d,g]=s||[[],[],[]];if(a.leng
|
||
|
a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:
|
||
|
|
||
|
import {Socket} from "phoenix"
|
||
|
import {LiveSocket} from "phoenix_live_view"
|
||
|
let liveSocket = new LiveSocket("/live", Socket, {...})
|
||
|
`);this.socket=new t(e,i),this.bindingPrefix=i.bindingPrefix||Pr,this.opts=i,this.params=ti(i.params||{}),this.viewLogger=i.viewLogger,this.metadataCallbacks=i.metadata||{},this.defaults=Object.assign(Dt(Nr),i.defaults||{}),this.activeElement=null,this.prevActive=null,this.silenced=!1,this.main=null,this.outgoingMainEl=null,this.clickStartedAtTarget=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=Dt(window.location),this.hooks=i.hooks||{},this.uploaders=i.uploaders||{},this.loaderTimeout=i.loaderTimeout||Or,this.reloadWithJitterTimer=null,this.maxReloads=i.maxReloads||vr,this.reloadJitterMin=i.reloadJitterMin||br,this.reloadJitterMax=i.reloadJitterMax||_r,this.failsafeJitter=i.failsafeJitter||yr,this.localStorage=i.localStorage||window.localStorage,this.sessionStorage=i.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.domCallbacks=Object.assign({onNodeAdded:ti(),onBeforeElUpdated:ti()},i.dom||{}),this.transitions=new cs,window.addEventListener("pagehide",n=>{this.unloaded=!0}),this.socket.onOpen(()=>{this.isUnloaded()&&window.location.reload()})}isProfileEnabled(){return this.sessionStorage.getItem(Zt)==="true"}isDebugEnabled(){return this.sessionStorage.getItem(_t)==="true"}isDebugDisabled(){return this.sessionStorage.getItem(_t)==="false"}enableDebug(){this.sessionStorage.setItem(_t,"true")}enableProfiling(){this.sessionStorage.setItem(Zt,"true")}disableDebug(){this.sessionStorage.setItem(_t,"false")}disableProfiling(){this.sessionStorage.removeItem(Zt)}enableLatencySim(e){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem(ei,e)}disableLatencySim(){this.sessionStorage.removeItem(ei)}getLatencySim(){let e=this.sessionStorage.getItem(ei);return e?parseInt(e):null}getSocket(){return this.socket}connect(){window.location.hostname==="localhost"&&!this.isDebugDisabled()&&this.enableDebug();let e=()=>{this.joinRootViews()?(this.bindTopLevelEvents(),this.socket.connect()):this.main?this.socket.connect():this.bindTopLevelEvents({dead:!0}),this.joinDeadView()};["complete","loaded","interactive"].indexOf(document.readyState)>=0?e():document.addEventListener("DOMContentLoaded",()=>e())}disconnect(e){clearTimeout(this.reloadWithJitterTimer),this.socket.disconnect(e)}replaceTransport(e){clearTimeout(this.reloadWithJitterTimer),this.socket.replaceTransport(e),this.connect()}execJS(e,t,i=null){this.owner(e,n=>ye.exec(i,t,n,e))}unload(){this.unloaded||(this.main&&this.isConnected()&&this.log(this.main,"socket",()=>["disconnect for page nav"]),this.unloaded=!0,this.destroyAllViews(),this.disconnect())}triggerDOM(e,t){this.domCallbacks[e](...t)}time(e,t){if(!this.isProfileEnabled()||!console.time)return t();console.time(e);let i=t();return console.timeEnd(e),i}log(e,t,i){if(this.viewLogger){let[n,r]=i();this.viewLogger(e,t,n,r)}else if(this.isDebugEnabled()){let[n,r]=i();$r(e,t,n,r)}}requestDOMUpdate(e){this.transitions.after(e)}transition(e,t,i=function(){}){this.transitions.addTransition(e,t,i)}onChannel(e,t,i){e.on(t,n=>{let r=this.getLatencySim();r?setTimeout(()=>i(n),r):i(n)})}wrapPush(e,t,i){let n=this.getLatencySim(),r=e.joinCount;if(!n)return this.isConnected()&&t.timeout?i().receive("timeout",()=>{e.joinCount===r&&!e.isDestroyed()&&this.reloadWithJitter(e,()=>{this.log(e,"timeout",()=>["received timeout while communicating with server. Falling back to hard refresh for recovery"])})}):i();let s={receives:[],receive(o,a){this.receives.push([o,a])}};return setTimeout(()=>{e.isDestroyed()||s.receives.reduce((o,[a,l])=>o.receive(a,l),i())},n),s}reloadWithJitter(e,t){clearTimeout(this.reloadWithJitterTimer),this.disconnect();let i=this.reloadJitterMin,n=this.reloadJitterMax,r=Math.floor(Math.random()*(n-i+1))+i,s=_e.updateLocal(this.localStorage,window.location.pathname,Ln,0,o=>o+1);s>this.maxReloads&&(r=this.failsafeJitter),this.reloadWithJitterTimer=setTimeout(()=>{e.isDestroyed()||e.isConnected()||(e.destroy(),t?t():this.log(e,"joi
|
||
|
* Bootstrap index.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var an;function me(){return an||(an=1,function(e,t){(function(i,n){n(t)})(Z,function(i){const s="transitionend",o=p=>p==null?`${p}`:Object.prototype.toString.call(p).match(/\s([a-z]+)/i)[1].toLowerCase(),a=p=>{do p+=Math.floor(Math.random()*1e6);while(document.getElementById(p));return p},l=p=>{let D=p.getAttribute("data-bs-target");if(!D||D==="#"){let R=p.getAttribute("href");if(!R||!R.includes("#")&&!R.startsWith("."))return null;R.includes("#")&&!R.startsWith("#")&&(R=`#${R.split("#")[1]}`),D=R&&R!=="#"?R.trim():null}return D},h=p=>{const D=l(p);return D&&document.querySelector(D)?D:null},c=p=>{const D=l(p);return D?document.querySelector(D):null},d=p=>{if(!p)return 0;let{transitionDuration:D,transitionDelay:R}=window.getComputedStyle(p);const T=Number.parseFloat(D),A=Number.parseFloat(R);return!T&&!A?0:(D=D.split(",")[0],R=R.split(",")[0],(Number.parseFloat(D)+Number.parseFloat(R))*1e3)},g=p=>{p.dispatchEvent(new Event(s))},u=p=>!p||typeof p!="object"?!1:(typeof p.jquery<"u"&&(p=p[0]),typeof p.nodeType<"u"),y=p=>u(p)?p.jquery?p[0]:p:typeof p=="string"&&p.length>0?document.querySelector(p):null,v=p=>{if(!u(p)||p.getClientRects().length===0)return!1;const D=getComputedStyle(p).getPropertyValue("visibility")==="visible",R=p.closest("details:not([open])");if(!R)return D;if(R!==p){const T=p.closest("summary");if(T&&T.parentNode!==R||T===null)return!1}return D},_=p=>!p||p.nodeType!==Node.ELEMENT_NODE||p.classList.contains("disabled")?!0:typeof p.disabled<"u"?p.disabled:p.hasAttribute("disabled")&&p.getAttribute("disabled")!=="false",S=p=>{if(!document.documentElement.attachShadow)return null;if(typeof p.getRootNode=="function"){const D=p.getRootNode();return D instanceof ShadowRoot?D:null}return p instanceof ShadowRoot?p:p.parentNode?S(p.parentNode):null},N=()=>{},f=p=>{p.offsetHeight},w=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,x=[],E=p=>{document.readyState==="loading"?(x.length||document.addEventListener("DOMContentLoaded",()=>{for(const D of x)D()}),x.push(p)):p()},C=()=>document.documentElement.dir==="rtl",P=p=>{E(()=>{const D=w();if(D){const R=p.NAME,T=D.fn[R];D.fn[R]=p.jQueryInterface,D.fn[R].Constructor=p,D.fn[R].noConflict=()=>(D.fn[R]=T,p.jQueryInterface)}})},k=p=>{typeof p=="function"&&p()},M=(p,D,R=!0)=>{if(!R){k(p);return}const T=5,A=d(D)+T;let b=!1;const L=({target:I})=>{I===D&&(b=!0,D.removeEventListener(s,L),k(p))};D.addEventListener(s,L),setTimeout(()=>{b||g(D)},A)},H=(p,D,R,T)=>{const A=p.length;let b=p.indexOf(D);return b===-1?!R&&T?p[A-1]:p[0]:(b+=R?1:-1,T&&(b=(b+A)%A),p[Math.max(0,Math.min(b,A-1))])};i.defineJQueryPlugin=P,i.execute=k,i.executeAfterTransition=M,i.findShadowRoot=S,i.getElement=y,i.getElementFromSelector=c,i.getNextActiveElement=H,i.getSelectorFromElement=h,i.getTransitionDurationFromElement=d,i.getUID=a,i.getjQuery=w,i.isDisabled=_,i.isElement=u,i.isRTL=C,i.isVisible=v,i.noop=N,i.onDOMContentLoaded=E,i.reflow=f,i.toType=o,i.triggerTransitionEnd=g,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(ds,ot)),ot}var xt={},us={get exports(){return xt},set exports(e){xt=e}};/*!
|
||
|
* Bootstrap event-handler.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var ln;function xe(){return ln||(ln=1,function(e,t){(function(i,n){e.exports=n(me())})(Z,function(i){const n=/[^.]*(?=\..*)\.|.*/,r=/\..*/,s=/::\d+$/,o={};let a=1;const l={mouseenter:"mouseover",mouseleave:"mouseout"},h=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function c(E,C){return C&&`${C}::${a++}`||E.uidEvent||a++}function d(E){const C=c(E);return E.uidEvent=C,o[C]=o[C]||{},o[C]}function g(E,C){return function P(k){return x(k,{delegateTarget:E}),P.oneOff&&w.off(E,k.type,C),C.apply(E,[k])}}function u(E,C,P){return function k(M){const H=E.querySelectorAll(C);for(let{target:p}=M;p&&p!==this;p=p.parentNode)for(const D of H)if(D===p)return x(M,{delegateTarget:p}),k.oneOff&&w.off(E,M.type,C,P),P.apply(p,[M])}}function y(E,C,P=null){return Object.values(E).find(k=>k.callable===C&&k.delegationSelector===P)}function v(E,C,P){const k=typeof C=="string",M=k?P:C||P;let H=f(E);return h.has(H)||(H=E),[k,M,H]}function _(E,C,P,k,M){if(typeof C!="string"||!E)return;let[H,p,D]=v(C,P,k);C in l&&(p=(U=>function(j){if(!j.relatedTarget||j.relatedTarget!==j.delegateTarget&&!j.delegateTarget.contains(j.relatedTarget))return U.call(this,j)})(p));const R=d(E),T=R[D]||(R[D]={}),A=y(T,p,H?P:null);if(A){A.oneOff=A.oneOff&&M;return}const b=c(p,C.replace(n,"")),L=H?u(E,P,p):g(E,p);L.delegationSelector=H?P:null,L.callable=p,L.oneOff=M,L.uidEvent=b,T[b]=L,E.addEventListener(D,L,H)}function S(E,C,P,k,M){const H=y(C[P],k,M);H&&(E.removeEventListener(P,H,Boolean(M)),delete C[P][H.uidEvent])}function N(E,C,P,k){const M=C[P]||{};for(const H of Object.keys(M))if(H.includes(k)){const p=M[H];S(E,C,P,p.callable,p.delegationSelector)}}function f(E){return E=E.replace(r,""),l[E]||E}const w={on(E,C,P,k){_(E,C,P,k,!1)},one(E,C,P,k){_(E,C,P,k,!0)},off(E,C,P,k){if(typeof C!="string"||!E)return;const[M,H,p]=v(C,P,k),D=p!==C,R=d(E),T=R[p]||{},A=C.startsWith(".");if(typeof H<"u"){if(!Object.keys(T).length)return;S(E,R,p,H,M?P:null);return}if(A)for(const b of Object.keys(R))N(E,R,b,C.slice(1));for(const b of Object.keys(T)){const L=b.replace(s,"");if(!D||C.includes(L)){const I=T[b];S(E,R,p,I.callable,I.delegationSelector)}}},trigger(E,C,P){if(typeof C!="string"||!E)return null;const k=i.getjQuery(),M=f(C),H=C!==M;let p=null,D=!0,R=!0,T=!1;H&&k&&(p=k.Event(C,P),k(E).trigger(p),D=!p.isPropagationStopped(),R=!p.isImmediatePropagationStopped(),T=p.isDefaultPrevented());let A=new Event(C,{bubbles:D,cancelable:!0});return A=x(A,P),T&&A.preventDefault(),R&&E.dispatchEvent(A),A.defaultPrevented&&p&&p.preventDefault(),A}};function x(E,C){for(const[P,k]of Object.entries(C||{}))try{E[P]=k}catch{Object.defineProperty(E,P,{configurable:!0,get(){return k}})}return E}return w})}(us)),xt}var Pt={},fs={get exports(){return Pt},set exports(e){Pt=e}},Rt={},ps={get exports(){return Rt},set exports(e){Rt=e}};/*!
|
||
|
* Bootstrap data.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var cn;function gs(){return cn||(cn=1,function(e,t){(function(i,n){e.exports=n()})(Z,function(){const i=new Map;return{set(r,s,o){i.has(r)||i.set(r,new Map);const a=i.get(r);if(!a.has(s)&&a.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`);return}a.set(s,o)},get(r,s){return i.has(r)&&i.get(r).get(s)||null},remove(r,s){if(!i.has(r))return;const o=i.get(r);o.delete(s),o.size===0&&i.delete(r)}}})}(ps)),Rt}var Nt={},ms={get exports(){return Nt},set exports(e){Nt=e}},It={},vs={get exports(){return It},set exports(e){It=e}};/*!
|
||
|
* Bootstrap manipulator.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var hn;function Ei(){return hn||(hn=1,function(e,t){(function(i,n){e.exports=n()})(Z,function(){function i(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function n(s){return s.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}return{setDataAttribute(s,o,a){s.setAttribute(`data-bs-${n(o)}`,a)},removeDataAttribute(s,o){s.removeAttribute(`data-bs-${n(o)}`)},getDataAttributes(s){if(!s)return{};const o={},a=Object.keys(s.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(const l of a){let h=l.replace(/^bs/,"");h=h.charAt(0).toLowerCase()+h.slice(1,h.length),o[h]=i(s.dataset[l])}return o},getDataAttribute(s,o){return i(s.getAttribute(`data-bs-${n(o)}`))}}})}(vs)),It}/*!
|
||
|
* Bootstrap config.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var dn;function wi(){return dn||(dn=1,function(e,t){(function(i,n){e.exports=n(me(),Ei())})(Z,function(i,n){const s=(a=>a&&typeof a=="object"&&"default"in a?a:{default:a})(n);class o{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(l){return l=this._mergeConfigObj(l),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}_configAfterMerge(l){return l}_mergeConfigObj(l,h){const c=i.isElement(h)?s.default.getDataAttribute(h,"config"):{};return{...this.constructor.Default,...typeof c=="object"?c:{},...i.isElement(h)?s.default.getDataAttributes(h):{},...typeof l=="object"?l:{}}}_typeCheckConfig(l,h=this.constructor.DefaultType){for(const c of Object.keys(h)){const d=h[c],g=l[c],u=i.isElement(g)?"element":i.toType(g);if(!new RegExp(d).test(u))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${c}" provided type "${u}" but expected type "${d}".`)}}}return o})}(ms)),Nt}/*!
|
||
|
* Bootstrap base-component.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var un;function Bt(){return un||(un=1,function(e,t){(function(i,n){e.exports=n(gs(),me(),xe(),wi())})(Z,function(i,n,r,s){const o=g=>g&&typeof g=="object"&&"default"in g?g:{default:g},a=o(i),l=o(r),h=o(s),c="5.2.3";class d extends h.default{constructor(u,y){super(),u=n.getElement(u),u&&(this._element=u,this._config=this._getConfig(y),a.default.set(this._element,this.constructor.DATA_KEY,this))}dispose(){a.default.remove(this._element,this.constructor.DATA_KEY),l.default.off(this._element,this.constructor.EVENT_KEY);for(const u of Object.getOwnPropertyNames(this))this[u]=null}_queueCallback(u,y,v=!0){n.executeAfterTransition(u,y,v)}_getConfig(u){return u=this._mergeConfigObj(u,this._element),u=this._configAfterMerge(u),this._typeCheckConfig(u),u}static getInstance(u){return a.default.get(n.getElement(u),this.DATA_KEY)}static getOrCreateInstance(u,y={}){return this.getInstance(u)||new this(u,typeof y=="object"?y:null)}static get VERSION(){return c}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(u){return`${u}${this.EVENT_KEY}`}}return d})}(fs)),Pt}var at={},bs={get exports(){return at},set exports(e){at=e}};/*!
|
||
|
* Bootstrap component-functions.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var fn;function Mn(){return fn||(fn=1,function(e,t){(function(i,n){n(t,xe(),me())})(Z,function(i,n,r){const o=(l=>l&&typeof l=="object"&&"default"in l?l:{default:l})(n),a=(l,h="hide")=>{const c=`click.dismiss${l.EVENT_KEY}`,d=l.NAME;o.default.on(document,c,`[data-bs-dismiss="${d}"]`,function(g){if(["A","AREA"].includes(this.tagName)&&g.preventDefault(),r.isDisabled(this))return;const u=r.getElementFromSelector(this)||this.closest(`.${d}`);l.getOrCreateInstance(u)[h]()})};i.enableDismissTrigger=a,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(bs,at)),at}/*!
|
||
|
* Bootstrap alert.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/(function(e,t){(function(i,n){e.exports=n(me(),xe(),Bt(),Mn())})(Z,function(i,n,r,s){const o=S=>S&&typeof S=="object"&&"default"in S?S:{default:S},a=o(n),l=o(r),h="alert",d=".bs.alert",g=`close${d}`,u=`closed${d}`,y="fade",v="show";class _ extends l.default{static get NAME(){return h}close(){if(a.default.trigger(this._element,g).defaultPrevented)return;this._element.classList.remove(v);const f=this._element.classList.contains(y);this._queueCallback(()=>this._destroyElement(),this._element,f)}_destroyElement(){this._element.remove(),a.default.trigger(this._element,u),this.dispose()}static jQueryInterface(N){return this.each(function(){const f=_.getOrCreateInstance(this);if(typeof N=="string"){if(f[N]===void 0||N.startsWith("_")||N==="constructor")throw new TypeError(`No method named "${N}"`);f[N](this)}})}}return s.enableDismissTrigger(_,"close"),i.defineJQueryPlugin(_),_})})(hs);var fi={},_s={get exports(){return fi},set exports(e){fi=e}},Mt={},ys={get exports(){return Mt},set exports(e){Mt=e}};/*!
|
||
|
* Bootstrap selector-engine.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var pn;function dt(){return pn||(pn=1,function(e,t){(function(i,n){e.exports=n(me())})(Z,function(i){return{find(r,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,r))},findOne(r,s=document.documentElement){return Element.prototype.querySelector.call(s,r)},children(r,s){return[].concat(...r.children).filter(o=>o.matches(s))},parents(r,s){const o=[];let a=r.parentNode.closest(s);for(;a;)o.push(a),a=a.parentNode.closest(s);return o},prev(r,s){let o=r.previousElementSibling;for(;o;){if(o.matches(s))return[o];o=o.previousElementSibling}return[]},next(r,s){let o=r.nextElementSibling;for(;o;){if(o.matches(s))return[o];o=o.nextElementSibling}return[]},focusableChildren(r){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(s,r).filter(o=>!i.isDisabled(o)&&i.isVisible(o))}}})}(ys)),Mt}/*!
|
||
|
* Bootstrap collapse.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/(function(e,t){(function(i,n){e.exports=n(me(),xe(),dt(),Bt())})(Z,function(i,n,r,s){const o=A=>A&&typeof A=="object"&&"default"in A?A:{default:A},a=o(n),l=o(r),h=o(s),c="collapse",g=".bs.collapse",u=".data-api",y=`show${g}`,v=`shown${g}`,_=`hide${g}`,S=`hidden${g}`,N=`click${g}${u}`,f="show",w="collapse",x="collapsing",E="collapsed",C=`:scope .${w} .${w}`,P="collapse-horizontal",k="width",M="height",H=".collapse.show, .collapse.collapsing",p='[data-bs-toggle="collapse"]',D={parent:null,toggle:!0},R={parent:"(null|element)",toggle:"boolean"};class T extends h.default{constructor(b,L){super(b,L),this._isTransitioning=!1,this._triggerArray=[];const I=l.default.find(p);for(const U of I){const j=i.getSelectorFromElement(U),J=l.default.find(j).filter(B=>B===this._element);j!==null&&J.length&&this._triggerArray.push(U)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return D}static get DefaultType(){return R}static get NAME(){return c}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let b=[];if(this._config.parent&&(b=this._getFirstLevelChildren(H).filter(B=>B!==this._element).map(B=>T.getOrCreateInstance(B,{toggle:!1}))),b.length&&b[0]._isTransitioning||a.default.trigger(this._element,y).defaultPrevented)return;for(const B of b)B.hide();const I=this._getDimension();this._element.classList.remove(w),this._element.classList.add(x),this._element.style[I]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const U=()=>{this._isTransitioning=!1,this._element.classList.remove(x),this._element.classList.add(w,f),this._element.style[I]="",a.default.trigger(this._element,v)},J=`scroll${I[0].toUpperCase()+I.slice(1)}`;this._queueCallback(U,this._element,!0),this._element.style[I]=`${this._element[J]}px`}hide(){if(this._isTransitioning||!this._isShown()||a.default.trigger(this._element,_).defaultPrevented)return;const L=this._getDimension();this._element.style[L]=`${this._element.getBoundingClientRect()[L]}px`,i.reflow(this._element),this._element.classList.add(x),this._element.classList.remove(w,f);for(const U of this._triggerArray){const j=i.getElementFromSelector(U);j&&!this._isShown(j)&&this._addAriaAndCollapsedClass([U],!1)}this._isTransitioning=!0;const I=()=>{this._isTransitioning=!1,this._element.classList.remove(x),this._element.classList.add(w),a.default.trigger(this._element,S)};this._element.style[L]="",this._queueCallback(I,this._element,!0)}_isShown(b=this._element){return b.classList.contains(f)}_configAfterMerge(b){return b.toggle=Boolean(b.toggle),b.parent=i.getElement(b.parent),b}_getDimension(){return this._element.classList.contains(P)?k:M}_initializeChildren(){if(!this._config.parent)return;const b=this._getFirstLevelChildren(p);for(const L of b){const I=i.getElementFromSelector(L);I&&this._addAriaAndCollapsedClass([L],this._isShown(I))}}_getFirstLevelChildren(b){const L=l.default.find(C,this._config.parent);return l.default.find(b,this._config.parent).filter(I=>!L.includes(I))}_addAriaAndCollapsedClass(b,L){if(b.length)for(const I of b)I.classList.toggle(E,!L),I.setAttribute("aria-expanded",L)}static jQueryInterface(b){const L={};return typeof b=="string"&&/show|hide/.test(b)&&(L.toggle=!1),this.each(function(){const I=T.getOrCreateInstance(this,L);if(typeof b=="string"){if(typeof I[b]>"u")throw new TypeError(`No method named "${b}"`);I[b]()}})}}return a.default.on(document,N,p,function(A){(A.target.tagName==="A"||A.delegateTarget&&A.delegateTarget.tagName==="A")&&A.preventDefault();const b=i.getSelectorFromElement(this),L=l.default.find(b);for(const I of L)T.getOrCreateInstance(I,{toggle:!1}).toggle()}),i.defineJQueryPlugin(T),T})})(_s);const Es=fi;var gn={},ws={get exports(){return gn},set exports(e){gn=e}},ie="top",ce="bottom",he="right",ne="left",Ut="auto",Xe=[ie,ce,he,ne],He="start",Ve="end",Hn="clippingParents",Ai="viewport",Fe="popper",$n="reference",pi=Xe.reduce(function(e,t){return e.concat([t+"-"
|
||
|
* Bootstrap dropdown.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/(function(e,t){(function(i,n){e.exports=n(uo,me(),xe(),Ei(),dt(),Bt())})(Z,function(i,n,r,s,o,a){const l=X=>X&&typeof X=="object"&&"default"in X?X:{default:X};function h(X){if(X&&X.__esModule)return X;const O=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(X){for(const F in X)if(F!=="default"){const q=Object.getOwnPropertyDescriptor(X,F);Object.defineProperty(O,F,q.get?q:{enumerable:!0,get:()=>X[F]})}}return O.default=X,Object.freeze(O)}const c=h(i),d=l(r),g=l(s),u=l(o),y=l(a),v="dropdown",S=".bs.dropdown",N=".data-api",f="Escape",w="Tab",x="ArrowUp",E="ArrowDown",C=2,P=`hide${S}`,k=`hidden${S}`,M=`show${S}`,H=`shown${S}`,p=`click${S}${N}`,D=`keydown${S}${N}`,R=`keyup${S}${N}`,T="show",A="dropup",b="dropend",L="dropstart",I="dropup-center",U="dropdown-center",j='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',J=`${j}.${T}`,B=".dropdown-menu",ee=".navbar",W=".navbar-nav",K=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",z=n.isRTL()?"top-end":"top-start",$=n.isRTL()?"top-start":"top-end",V=n.isRTL()?"bottom-end":"bottom-start",te=n.isRTL()?"bottom-start":"bottom-end",fe=n.isRTL()?"left-start":"right-start",Kt=n.isRTL()?"right-start":"left-start",ft="top",Jt="bottom",Xt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},pt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class re extends y.default{constructor(O,F){super(O,F),this._popper=null,this._parent=this._element.parentNode,this._menu=u.default.next(this._element,B)[0]||u.default.prev(this._element,B)[0]||u.default.findOne(B,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Xt}static get DefaultType(){return pt}static get NAME(){return v}toggle(){return this._isShown()?this.hide():this.show()}show(){if(n.isDisabled(this._element)||this._isShown())return;const O={relatedTarget:this._element};if(!d.default.trigger(this._element,M,O).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(W))for(const q of[].concat(...document.body.children))d.default.on(q,"mouseover",n.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(T),this._element.classList.add(T),d.default.trigger(this._element,H,O)}}hide(){if(n.isDisabled(this._element)||!this._isShown())return;const O={relatedTarget:this._element};this._completeHide(O)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(O){if(!d.default.trigger(this._element,P,O).defaultPrevented){if("ontouchstart"in document.documentElement)for(const q of[].concat(...document.body.children))d.default.off(q,"mouseover",n.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(T),this._element.classList.remove(T),this._element.setAttribute("aria-expanded","false"),g.default.removeDataAttribute(this._menu,"popper"),d.default.trigger(this._element,k,O)}}_getConfig(O){if(O=super._getConfig(O),typeof O.reference=="object"&&!n.isElement(O.reference)&&typeof O.reference.getBoundingClientRect!="function")throw new TypeError(`${v.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return O}_createPopper(){if(typeof c>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let O=this._element;this._config.reference==="parent"?O=this._parent:n.isElement(this._config.reference)?O=n.getElement(this._config.reference):typeof this._config.reference=="object"&&(O=this._config.reference);const F=this._getPopperConfig();this._popper=c.createPopper(O,this._menu,F)}_isShown(){return this._menu.classList.contains(T)}_getPlacement(){const O=this._parent;if(O.classList.contains(b))return fe;if(O.classList.contains(L))return Kt;if(O.classList.contains(I))return ft;if(O.classList.contains(U))return Jt;c
|
||
|
* Bootstrap scrollbar.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var Tn;function vo(){return Tn||(Tn=1,function(e,t){(function(i,n){e.exports=n(dt(),Ei(),me())})(Z,function(i,n,r){const s=u=>u&&typeof u=="object"&&"default"in u?u:{default:u},o=s(i),a=s(n),l=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",h=".sticky-top",c="padding-right",d="margin-right";class g{constructor(){this._element=document.body}getWidth(){const y=document.documentElement.clientWidth;return Math.abs(window.innerWidth-y)}hide(){const y=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,c,v=>v+y),this._setElementAttributes(l,c,v=>v+y),this._setElementAttributes(h,d,v=>v-y)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,c),this._resetElementAttributes(l,c),this._resetElementAttributes(h,d)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(y,v,_){const S=this.getWidth(),N=f=>{if(f!==this._element&&window.innerWidth>f.clientWidth+S)return;this._saveInitialAttribute(f,v);const w=window.getComputedStyle(f).getPropertyValue(v);f.style.setProperty(v,`${_(Number.parseFloat(w))}px`)};this._applyManipulationCallback(y,N)}_saveInitialAttribute(y,v){const _=y.style.getPropertyValue(v);_&&a.default.setDataAttribute(y,v,_)}_resetElementAttributes(y,v){const _=S=>{const N=a.default.getDataAttribute(S,v);if(N===null){S.style.removeProperty(v);return}a.default.removeDataAttribute(S,v),S.style.setProperty(v,N)};this._applyManipulationCallback(y,_)}_applyManipulationCallback(y,v){if(r.isElement(y)){v(y);return}for(const _ of o.default.find(y,this._element))v(_)}}return g})}(mo)),$t}var Ft={},bo={get exports(){return Ft},set exports(e){Ft=e}};/*!
|
||
|
* Bootstrap backdrop.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var Sn;function _o(){return Sn||(Sn=1,function(e,t){(function(i,n){e.exports=n(xe(),me(),wi())})(Z,function(i,n,r){const s=v=>v&&typeof v=="object"&&"default"in v?v:{default:v},o=s(i),a=s(r),l="backdrop",h="fade",c="show",d=`mousedown.bs.${l}`,g={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},u={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class y extends a.default{constructor(_){super(),this._config=this._getConfig(_),this._isAppended=!1,this._element=null}static get Default(){return g}static get DefaultType(){return u}static get NAME(){return l}show(_){if(!this._config.isVisible){n.execute(_);return}this._append();const S=this._getElement();this._config.isAnimated&&n.reflow(S),S.classList.add(c),this._emulateAnimation(()=>{n.execute(_)})}hide(_){if(!this._config.isVisible){n.execute(_);return}this._getElement().classList.remove(c),this._emulateAnimation(()=>{this.dispose(),n.execute(_)})}dispose(){this._isAppended&&(o.default.off(this._element,d),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const _=document.createElement("div");_.className=this._config.className,this._config.isAnimated&&_.classList.add(h),this._element=_}return this._element}_configAfterMerge(_){return _.rootElement=n.getElement(_.rootElement),_}_append(){if(this._isAppended)return;const _=this._getElement();this._config.rootElement.append(_),o.default.on(_,d,()=>{n.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(_){n.executeAfterTransition(_,this._getElement(),this._config.isAnimated)}}return y})}(bo)),Ft}var jt={},yo={get exports(){return jt},set exports(e){jt=e}};/*!
|
||
|
* Bootstrap focustrap.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var kn;function Eo(){return kn||(kn=1,function(e,t){(function(i,n){e.exports=n(xe(),dt(),wi())})(Z,function(i,n,r){const s=w=>w&&typeof w=="object"&&"default"in w?w:{default:w},o=s(i),a=s(n),l=s(r),h="focustrap",d=".bs.focustrap",g=`focusin${d}`,u=`keydown.tab${d}`,y="Tab",v="forward",_="backward",S={autofocus:!0,trapElement:null},N={autofocus:"boolean",trapElement:"element"};class f extends l.default{constructor(x){super(),this._config=this._getConfig(x),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return S}static get DefaultType(){return N}static get NAME(){return h}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),o.default.off(document,d),o.default.on(document,g,x=>this._handleFocusin(x)),o.default.on(document,u,x=>this._handleKeydown(x)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,o.default.off(document,d))}_handleFocusin(x){const{trapElement:E}=this._config;if(x.target===document||x.target===E||E.contains(x.target))return;const C=a.default.focusableChildren(E);C.length===0?E.focus():this._lastTabNavDirection===_?C[C.length-1].focus():C[0].focus()}_handleKeydown(x){x.key===y&&(this._lastTabNavDirection=x.shiftKey?_:v)}}return f})}(yo)),jt}/*!
|
||
|
* Bootstrap modal.js v5.2.3 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/(function(e,t){(function(i,n){e.exports=n(me(),xe(),dt(),vo(),Bt(),_o(),Eo(),Mn())})(Z,function(i,n,r,s,o,a,l,h){const c=z=>z&&typeof z=="object"&&"default"in z?z:{default:z},d=c(n),g=c(r),u=c(s),y=c(o),v=c(a),_=c(l),S="modal",f=".bs.modal",w=".data-api",x="Escape",E=`hide${f}`,C=`hidePrevented${f}`,P=`hidden${f}`,k=`show${f}`,M=`shown${f}`,H=`resize${f}`,p=`click.dismiss${f}`,D=`mousedown.dismiss${f}`,R=`keydown.dismiss${f}`,T=`click${f}${w}`,A="modal-open",b="fade",L="show",I="modal-static",U=".modal.show",j=".modal-dialog",J=".modal-body",B='[data-bs-toggle="modal"]',ee={backdrop:!0,focus:!0,keyboard:!0},W={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class K extends y.default{constructor($,V){super($,V),this._dialog=g.default.findOne(j,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new u.default,this._addEventListeners()}static get Default(){return ee}static get DefaultType(){return W}static get NAME(){return S}toggle($){return this._isShown?this.hide():this.show($)}show($){this._isShown||this._isTransitioning||d.default.trigger(this._element,k,{relatedTarget:$}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(A),this._adjustDialog(),this._backdrop.show(()=>this._showElement($)))}hide(){!this._isShown||this._isTransitioning||d.default.trigger(this._element,E).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(L),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const $ of[window,this._dialog])d.default.off($,f);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new v.default({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new _.default({trapElement:this._element})}_showElement($){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const V=g.default.findOne(J,this._dialog);V&&(V.scrollTop=0),i.reflow(this._element),this._element.classList.add(L);const te=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,d.default.trigger(this._element,M,{relatedTarget:$})};this._queueCallback(te,this._dialog,this._isAnimated())}_addEventListeners(){d.default.on(this._element,R,$=>{if($.key===x){if(this._config.keyboard){$.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),d.default.on(window,H,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),d.default.on(this._element,D,$=>{d.default.one(this._element,p,V=>{if(!(this._element!==$.target||this._element!==V.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(A),this._resetAdjustments(),this._scrollBar.reset(),d.default.trigger(this._element,P)})}_isAnimated(){return this._element.classList.contains(b)}_triggerBackdropTransition(){if(d.default.trigger(this._element,C).defaultPrevented)return;const V=this._element.scrollHeight>document.documentElement.clientHeight,te=this._element.style.overflowY;te==="hidden"||this._element.classList.contains(I)||(V||(this._element.style.overflowY="hidden"),this._element.classList.add(I),this._queueCallback(()=>{this._element.classList.remove(I),this._queueCallback(()=>{this._element.style.overflowY=te},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const $=this._element.scrollHeight>doc
|