From 35dd53aad236f306a1ca9be0cad0f919b4cfc7b3 Mon Sep 17 00:00:00 2001 From: Ingo Date: Wed, 8 May 2024 07:13:41 +0200 Subject: [PATCH] [FIXED] logout button --- .../Forum/Scripts/forumAdminExtensions.js | 46 +++++++++++++++++++ .../Forum/Scripts/forumExtensions.js | 46 +++++++++++++++++++ YAF.SampleWebApplication/Site.Master | 5 +- 3 files changed, 93 insertions(+), 4 deletions(-) create mode 100644 YAF.SampleWebApplication/Forum/Scripts/forumAdminExtensions.js create mode 100644 YAF.SampleWebApplication/Forum/Scripts/forumExtensions.js diff --git a/YAF.SampleWebApplication/Forum/Scripts/forumAdminExtensions.js b/YAF.SampleWebApplication/Forum/Scripts/forumAdminExtensions.js new file mode 100644 index 00000000..07b470fb --- /dev/null +++ b/YAF.SampleWebApplication/Forum/Scripts/forumAdminExtensions.js @@ -0,0 +1,46 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){"use strict";const i=new Map,R={set(e,t,n){i.has(e)||i.set(e,new Map);e=i.get(e);e.has(t)||0===e.size?e.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(e.keys())[0]}.`)},get(e,t){return i.has(e)&&i.get(e).get(t)||null},remove(e,t){var n;i.has(e)&&((n=i.get(e)).delete(t),0===n.size)&&i.delete(e)}},F=1e3,j="transitionend",B=e=>e=e&&window.CSS&&window.CSS.escape?e.replace(/#([^\s"#']+)/g,(e,t)=>"#"+CSS.escape(t)):e,H=e=>{e.dispatchEvent(new Event(j))},r=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,s=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&0{if(!r(e)||0===e.getClientRects().length)return!1;var t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(n&&n!==e){e=e.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return t},a=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),$=e=>{var t;return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?$(e.parentNode):null:null},q=()=>{},U=e=>{e.offsetHeight},G=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Y=[],l=()=>"rtl"===document.documentElement.dir;var e=i=>{var e;e=()=>{const e=G();if(e){const t=i.NAME,n=e.fn[t];e.fn[t]=i.jQueryInterface,e.fn[t].Constructor=i,e.fn[t].noConflict=()=>(e.fn[t]=n,i.jQueryInterface)}},"loading"===document.readyState?(Y.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Y)e()}),Y.push(e)):e()};const c=(e,t=[],n=e)=>"function"==typeof e?e(...t):n,V=(n,i,e=!0)=>{if(e){e=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);var e=Number.parseFloat(t),i=Number.parseFloat(n);return e||i?(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*F):0})(i)+5;let t=!1;const s=({target:e})=>{e===i&&(t=!0,i.removeEventListener(j,s),c(n))};i.addEventListener(j,s),setTimeout(()=>{t||H(i)},e)}else c(n)},W=(e,t,n,i)=>{var s=e.length;let r=e.indexOf(t);return-1===r?!n&&i?e[s-1]:e[0]:(r+=n?1:-1,i&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},K=/[^.]*(?=\..*)\.|.*/,z=/\..*/,X=/::\d+$/,Z={};let J=1;const Q={mouseenter:"mouseover",mouseleave:"mouseout"},ee=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 te(e,t){return t&&t+"::"+J++||e.uidEvent||J++}function ne(e){var t=te(e);return e.uidEvent=t,Z[t]=Z[t]||{},Z[t]}function ie(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function se(e,t,n){var i="string"==typeof t,t=!i&&t||n;let s=ae(e);return[i,t,s=ee.has(s)?s:e]}function re(i,s,r,o,a){if("string"==typeof s&&i){let[e,t,n]=se(s,r,o);s in Q&&(t=(l=t,function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return l.call(this,e)}));var l,c,u,d,h,p,o=ne(i),o=o[n]||(o[n]={}),m=ie(o,t,e?r:null);m?m.oneOff=m.oneOff&&a:(m=te(t,s.replace(K,"")),(s=e?(d=i,h=r,p=t,function t(n){var i=d.querySelectorAll(h);for(let e=n["target"];e&&e!==this;e=e.parentNode)for(const s of i)if(s===e)return le(n,{delegateTarget:e}),t.oneOff&&f.off(d,n.type,h,p),p.apply(e,[n])}):(c=i,u=t,function e(t){return le(t,{delegateTarget:c}),e.oneOff&&f.off(c,t.type,u),u.apply(c,[t])})).delegationSelector=e?r:null,s.callable=t,s.oneOff=a,o[s.uidEvent=m]=s,i.addEventListener(n,s,e))}}function oe(e,t,n,i,s){i=ie(t[n],i,s);i&&(e.removeEventListener(n,i,Boolean(s)),delete t[n][i.uidEvent])}function ae(e){return e=e.replace(z,""),Q[e]||e}const f={on(e,t,n,i){re(e,t,n,i,!1)},one(e,t,n,i){re(e,t,n,i,!0)},off(e,t,n,i){if("string"==typeof t&&e){var s,r,[i,o,a]=se(t,n,i),l=a!==t,c=ne(e),u=c[a]||{},d=t.startsWith(".");if(void 0!==o)return Object.keys(u).length?void oe(e,c,a,o,i?n:null):void 0;if(d)for(const _ of Object.keys(c)){p=h=v=b=g=f=m=void 0;var h,p,m=e,f=c,g=_,b=t.slice(1),v=f[g]||{};for([h,p]of Object.entries(v))h.includes(b)&&oe(m,f,g,p.callable,p.delegationSelector)}for([s,r]of Object.entries(u)){var y=s.replace(X,"");l&&!t.includes(y)||oe(e,c,a,r.callable,r.delegationSelector)}}},trigger(e,t,n){if("string"!=typeof t||!e)return null;var i=G();let s=null,r=!0,o=!0,a=!1;t!==ae(t)&&i&&(s=i.Event(t,n),i(e).trigger(s),r=!s.isPropagationStopped(),o=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());i=le(new Event(t,{bubbles:r,cancelable:!0}),n);return a&&i.preventDefault(),o&&e.dispatchEvent(i),i.defaultPrevented&&s&&s.preventDefault(),i}};function le(t,e={}){for(const[n,i]of Object.entries(e))try{t[n]=i}catch(e){Object.defineProperty(t,n,{configurable:!0,get(){return i}})}return t}function ce(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ue(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}const u={setDataAttribute(e,t,n){e.setAttribute("data-bs-"+ue(t),n)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+ue(t))},getDataAttributes(t){if(!t)return{};var n={};for(const i of Object.keys(t.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let e=i.replace(/^bs/,"");n[e=e.charAt(0).toLowerCase()+e.slice(1,e.length)]=ce(t.dataset[i])}return n},getDataAttribute(e,t){return ce(e.getAttribute("data-bs-"+ue(t)))}};class de{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){var n=r(t)?u.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...r(t)?u.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(var[n,i]of Object.entries(t)){var s=e[n],s=r(s)?"element":null==(s=s)?""+s:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(i).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${i}".`)}}}class t extends de{constructor(e,t){super(),(e=s(e))&&(this._element=e,this._config=this._getConfig(t),R.set(this._element,this.constructor.DATA_KEY,this))}dispose(){R.remove(this._element,this.constructor.DATA_KEY),f.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){V(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return R.get(s(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}static eventName(e){return""+e+this.EVENT_KEY}}const he=t=>{let n=t.getAttribute("data-bs-target");if(!n||"#"===n){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),n=e&&"#"!==e?e.trim():null}return n?n.split(",").map(e=>B(e)).join(","):null},d={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){var n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(",");return this.find(t,e).filter(e=>!a(e)&&o(e))},getSelectorFromElement(e){e=he(e);return e&&d.findOne(e)?e:null},getElementFromSelector(e){e=he(e);return e?d.findOne(e):null},getMultipleElementsFromSelector(e){e=he(e);return e?d.find(e):[]}};var pe=(t,n="hide")=>{var e="click.dismiss"+t.EVENT_KEY;const i=t.NAME;f.on(document,e,`[data-bs-dismiss="${i}"]`,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(e=d.getElementFromSelector(this)||this.closest("."+i),t.getOrCreateInstance(e)[n]())})};class me extends t{static get NAME(){return"alert"}close(){var e;f.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),e=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,e))}_destroyElement(){this._element.remove(),f.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){var e=me.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}pe(me,"close"),e(me);const fe='[data-bs-toggle="button"]';class ge extends t{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){var e=ge.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}f.on(document,"click.bs.button.data-api",fe,e=>{e.preventDefault();e=e.target.closest(fe);ge.getOrCreateInstance(e).toggle()}),e(ge);const n=".bs.swipe",be=(n,n,n,n,n,{endCallback:null,leftCallback:null,rightCallback:null}),ve={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ye extends de{constructor(e,t){super(),(this._element=e)&&ye.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return be}static get DefaultType(){return ve}static get NAME(){return"swipe"}dispose(){f.off(this._element,n)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),c(this._config.endCallback)}_move(e){this._deltaX=e.touches&&1this._start(e)),f.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(f.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),f.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),f.on(this._element,"touchend.bs.swipe",e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||0this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?f.one(this._element,Se,()=>this.cycle()):this.cycle())}to(e){var t,n=this._getItems();e>n.length-1||e<0||(this._isSliding?f.one(this._element,Se,()=>this.to(e)):(t=this._getItemIndex(this._getActive()))!==e&&(t=tthis._keydown(e)),"hover"===this._config.pause&&(f.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),f.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&ye.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of d.find(".carousel-item img",this._element))f.on(t,"dragstart.bs.carousel",e=>e.preventDefault());var e={leftCallback:()=>this._slide(this._directionToOrder(p)),rightCallback:()=>this._slide(this._directionToOrder(we)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ye(this._element,e)}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=Ce[e.key])&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){var t;this._indicatorsElement&&((t=d.findOne(Le,this._indicatorsElement)).classList.remove(Ae),t.removeAttribute("aria-current"),t=d.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement))&&(t.classList.add(Ae),t.setAttribute("aria-current","true"))}_updateInterval(){var e=this._activeElement||this._getActive();e&&(e=Number.parseInt(e.getAttribute("data-bs-interval"),10),this._config.interval=e||this._config.defaultInterval)}_slide(t,e=null){if(!this._isSliding){const i=this._getActive();var n=t===Ee;const s=e||W(this._getItems(),i,n,this._config.wrap);if(s!==i){const r=this._getItemIndex(s),o=e=>f.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:r});e=o("slide.bs.carousel");if(!e.defaultPrevented&&i&&s){e=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=s;const a=n?"carousel-item-start":"carousel-item-end",l=n?"carousel-item-next":"carousel-item-prev";s.classList.add(l),U(s),i.classList.add(a),s.classList.add(a);this._queueCallback(()=>{s.classList.remove(a,l),s.classList.add(Ae),i.classList.remove(Ae,l,a),this._isSliding=!1,o(Se)},i,this._isAnimated()),e&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return d.findOne(".active.carousel-item",this._element)}_getItems(){return d.find(Oe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return l()?e===p?h:Ee:e===p?Ee:h}_orderToDirection(e){return l()?e===h?p:we:e===h?we:p}static jQueryInterface(t){return this.each(function(){var e=xe.getOrCreateInstance(this,t);if("number"==typeof t)e.to(t);else if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(e){var t=d.getElementFromSelector(this);t&&t.classList.contains(Te)&&(e.preventDefault(),e=xe.getOrCreateInstance(t),(t=this.getAttribute("data-bs-slide-to"))?e.to(t):"next"===u.getDataAttribute(this,"slide")?e.next():e.prev(),e._maybeEnableCycle())}),f.on(window,"load.bs.carousel.data-api",()=>{for(const e of d.find('[data-bs-ride="carousel"]'))xe.getOrCreateInstance(e)}),e(xe);const ke="show",m="collapse",Pe="collapsing",Me=(m,m,'[data-bs-toggle="collapse"]'),De={parent:null,toggle:!0},Re={parent:"(null|element)",toggle:"boolean"};class Fe extends t{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];for(const s of d.find(Me)){var n=d.getSelectorFromElement(s),i=d.find(n).filter(e=>e===this._element);null!==n&&i.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return De}static get DefaultType(){return Re}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let e=[];if(!(e=this._config.parent?this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>Fe.getOrCreateInstance(e,{toggle:!1})):e).length||!e[0]._isTransitioning){var t=f.trigger(this._element,"show.bs.collapse");if(!t.defaultPrevented){for(const i of e)i.hide();const n=this._getDimension();this._element.classList.remove(m),this._element.classList.add(Pe),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;t="scroll"+(n[0].toUpperCase()+n.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Pe),this._element.classList.add(m,ke),this._element.style[n]="",f.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[n]=this._element[t]+"px"}}}}hide(){if(!this._isTransitioning&&this._isShown()){var e=f.trigger(this._element,"hide.bs.collapse");if(!e.defaultPrevented){e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",U(this._element),this._element.classList.add(Pe),this._element.classList.remove(m,ke);for(const n of this._triggerArray){var t=d.getElementFromSelector(n);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Pe),this._element.classList.add(m),f.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}}_isShown(e=this._element){return e.classList.contains(ke)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=s(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent)for(const t of this._getFirstLevelChildren(Me)){var e=d.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=d.find(":scope .collapse .collapse",this._config.parent);return d.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(t){const n={};return"string"==typeof t&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){var e=Fe.getOrCreateInstance(this,n);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(document,"click.bs.collapse.data-api",Me,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const t of d.getMultipleElementsFromSelector(this))Fe.getOrCreateInstance(t,{toggle:!1}).toggle()}),e(Fe);var O="top",C="bottom",I="right",N="left",je="auto",x=[O,C,I,N],k="start",y="end",Be="clippingParents",He="viewport",$e="popper",qe="reference",Ue=x.reduce(function(e,t){return e.concat([t+"-"+k,t+"-"+y])},[]),Ge=[].concat(x,[je]).reduce(function(e,t){return e.concat([t,t+"-"+k,t+"-"+y])},[]),_e="beforeRead",Ye="afterRead",Ve="beforeMain",We="afterMain",Ke="beforeWrite",ze="afterWrite",Xe=[_e,"read",Ye,Ve,"main",We,Ke,"write",ze];function g(e){return e?(e.nodeName||"").toLowerCase():null}function _(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function b(e){return e instanceof _(e).Element||e instanceof Element}function v(e){return e instanceof _(e).HTMLElement||e instanceof HTMLElement}function Ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _(e).ShadowRoot||e instanceof ShadowRoot)}var Je={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var s=e.state;Object.keys(s.elements).forEach(function(e){var t=s.styles[e]||{},n=s.attributes[e]||{},i=s.elements[e];v(i)&&g(i)&&(Object.assign(i.style,t),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var i=e.state,s={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,s.popper),i.styles=s,i.elements.arrow&&Object.assign(i.elements.arrow.style,s.arrow),function(){Object.keys(i.elements).forEach(function(e){var t=i.elements[e],n=i.attributes[e]||{},e=Object.keys((i.styles.hasOwnProperty(e)?i.styles:s)[e]).reduce(function(e,t){return e[t]="",e},{});v(t)&&g(t)&&(Object.assign(t.style,e),Object.keys(n).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};function P(e){return e.split("-")[0]}var L=Math.max,Qe=Math.min,et=Math.round;function tt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function nt(){return!/^((?!chrome|android).)*safari/i.test(tt())}function it(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&v(e)&&(s=0c[T]&&(S=wt(S)),wt(S)),T=[];if(i&&T.push(A[E]<=0),s&&T.push(A[S]<=0,A[w]<=0),T.every(function(e){return e})){v=_,b=!1;break}u.set(_,T)}if(b)for(var L=f?3:1;0Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return!this._inNavbar&&"static"!==this._config.display||(u.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...c(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){var n=d.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>o(e));n.length&&W(n,t,e===Zt,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){var e=T.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(e){if(2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(const s of d.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show')){var t,n,i=T.getInstance(s);i&&!1!==i._config.autoClose&&(t=(n=e.composedPath()).includes(i._menu),n.includes(i._element)||"inside"===i._config.autoClose&&!t||"outside"===i._config.autoClose&&t||i._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName))||(n={relatedTarget:i._element},"click"===e.type&&(n.clickEvent=e),i._completeHide(n)))}}static dataApiKeydownHandler(e){var t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=["ArrowUp",Zt].includes(e.key);!i&&!n||t&&!n||(e.preventDefault(),t=this.matches(S)?this:d.prev(this,S)[0]||d.next(this,S)[0]||d.findOne(S,e.delegateTarget.parentNode),n=T.getOrCreateInstance(t),i?(e.stopPropagation(),n.show(),n._selectMenuItem(e)):n._isShown()&&(e.stopPropagation(),n.hide(),t.focus()))}}f.on(document,Je,S,T.dataApiKeydownHandler),f.on(document,Je,Qt,T.dataApiKeydownHandler),f.on(document,ze,T.clearMenus),f.on(document,"keyup.bs.dropdown.data-api",T.clearMenus),f.on(document,ze,S,function(e){e.preventDefault(),T.getOrCreateInstance(this).toggle()}),e(T);const cn="backdrop",un="mousedown.bs."+cn,dn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},hn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class pn extends de{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return dn}static get DefaultType(){return hn}static get NAME(){return cn}show(e){var t;this._config.isVisible?(this._append(),t=this._getElement(),this._config.isAnimated&&U(t),t.classList.add("show"),this._emulateAnimation(()=>{c(e)})):c(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),c(e)})):c(e)}dispose(){this._isAppended&&(f.off(this._element,un),this._element.remove(),this._isAppended=!1)}_getElement(){var e;return this._element||((e=document.createElement("div")).className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e),this._element}_configAfterMerge(e){return e.rootElement=s(e.rootElement),e}_append(){var e;this._isAppended||(e=this._getElement(),this._config.rootElement.append(e),f.on(e,un,()=>{c(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(e){V(e,this._getElement(),this._config.isAnimated)}}const mn=".bs.focustrap",fn=(mn,mn,"backward"),gn={autofocus:!0,trapElement:null},bn={autofocus:"boolean",trapElement:"element"};class vn extends de{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return gn}static get DefaultType(){return bn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),f.off(document,mn),f.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),f.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,f.off(document,mn))}_handleFocusin(e){var t=this._config["trapElement"];e.target===document||e.target===t||t.contains(e.target)||(0===(e=d.focusableChildren(t)).length?t:this._lastTabNavDirection===fn?e[e.length-1]:e[0]).focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?fn:"forward")}}const yn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_n=".sticky-top",En="padding-right",wn="margin-right";class Sn{constructor(){this._element=document.body}getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,En,e=>e+t),this._setElementAttributes(yn,En,e=>e+t),this._setElementAttributes(_n,wn,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,En),this._resetElementAttributes(yn,En),this._resetElementAttributes(_n,wn)}isOverflowing(){return 0{var t;e!==this._element&&window.innerWidth>e.clientWidth+s||(this._saveInitialAttribute(e,n),t=window.getComputedStyle(e).getPropertyValue(n),e.style.setProperty(n,i(Number.parseFloat(t))+"px"))})}_saveInitialAttribute(e,t){var n=e.style.getPropertyValue(t);n&&u.setDataAttribute(e,t,n)}_resetElementAttributes(e,n){this._applyManipulationCallback(e,e=>{var t=u.getDataAttribute(e,n);null===t?e.style.removeProperty(n):(u.removeDataAttribute(e,n),e.style.setProperty(n,t))})}_applyManipulationCallback(e,t){if(r(e))t(e);else for(const n of d.find(e,this._element))t(n)}}const A=".bs.modal";A,A;const Tn="hidden"+A,An="show"+A;A,A,A,A,A;A;const Ln="modal-open",On="modal-static";const Cn={backdrop:!0,focus:!0,keyboard:!0},In={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Nn extends t{constructor(e,t){super(e,t),this._dialog=d.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Sn,this._addEventListeners()}static get Default(){return Cn}static get DefaultType(){return In}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||f.trigger(this._element,An,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ln),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||f.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){f.off(window,A),f.off(this._dialog,A),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new pn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new vn({trapElement:this._element})}_showElement(e){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;var t=d.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),U(this._element),this._element.classList.add("show");this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,f.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){f.on(this._element,"keydown.dismiss.bs.modal",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),f.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),f.on(this._element,"mousedown.dismiss.bs.modal",t=>{f.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"===this._config.backdrop?this._triggerBackdropTransition():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(Ln),this._resetAdjustments(),this._scrollBar.reset(),f.trigger(this._element,Tn)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){var e=f.trigger(this._element,"hidePrevented.bs.modal");if(!e.defaultPrevented){e=this._element.scrollHeight>document.documentElement.clientHeight;const t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(On)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(On),this._queueCallback(()=>{this._element.classList.remove(On),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var e,t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),i=0{e.defaultPrevented||f.one(t,Tn,()=>{o(this)&&this.focus()})});e=d.findOne(".modal.show");e&&Nn.getInstance(e).hide(),Nn.getOrCreateInstance(t).toggle(this)}),pe(Nn),e(Nn);mt=".bs.offcanvas";const xn="showing",kn=".offcanvas.show",Pn="hidePrevented"+mt,Mn="hidden"+mt;const Dn={backdrop:!0,keyboard:!0,scroll:!1},Rn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class M extends t{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Dn}static get DefaultType(){return Rn}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||f.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Sn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(xn),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(xn),f.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&!f.trigger(this._element,"hide.bs.offcanvas").defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Sn).reset(),f.trigger(this._element,Mn)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var e=Boolean(this._config.backdrop);return new pn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"===this._config.backdrop?f.trigger(this._element,Pn):this.hide()}:null})}_initializeFocusTrap(){return new vn({trapElement:this._element})}_addEventListeners(){f.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():f.trigger(this._element,Pn))})}static jQueryInterface(t){return this.each(function(){var e=M.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}f.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(e){var t=d.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(f.one(t,Mn,()=>{o(this)&&this.focus()}),(e=d.findOne(kn))&&e!==t&&M.getInstance(e).hide(),M.getOrCreateInstance(t).toggle(this))}),f.on(window,"load.bs.offcanvas.data-api",()=>{for(const e of d.find(kn))M.getOrCreateInstance(e).show()}),f.on(window,"resize.bs.offcanvas",()=>{for(const e of d.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&M.getOrCreateInstance(e).hide()}),pe(M),e(M);Ve={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};const Fn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),jn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;function Bn(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);n=(new window.DOMParser).parseFromString(e,"text/html");for(const o of[].concat(...n.body.querySelectorAll("*"))){var i=o.nodeName.toLowerCase();if(Object.keys(t).includes(i)){var s=[].concat(...o.attributes),r=[].concat(t["*"]||[],t[i]||[]);for(const a of s)((e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Fn.has(n)||Boolean(jn.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))})(a,r)||o.removeAttribute(a.nodeName)}else o.remove()}return n.body.innerHTML}const Hn={allowList:Ve,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},$n={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},qn={entry:"(string|element|function|null)",selector:"(string|element)"};class Un extends de{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Hn}static get DefaultType(){return $n}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return 0
',title:"",trigger:"hover focus"},Jn={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Qn extends t{constructor(e,t){if(void 0===zt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Zn}static get DefaultType(){return Jn}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),f.off(this._element.closest(".modal"),Wn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this._isWithContent()&&this._isEnabled){var e=f.trigger(this._element,this.constructor.eventName("show")),t=($(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!e.defaultPrevented&&t){this._disposePopper();e=this._getTipElement(),t=(this._element.setAttribute("aria-describedby",e.getAttribute("id")),this._config)["container"];if(this._element.ownerDocument.documentElement.contains(this.tip)||(t.append(e),f.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(e),e.classList.add(Vn),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))f.on(n,"mouseover",q);this._queueCallback(()=>{f.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}hide(){if(this._isShown()){var e=f.trigger(this._element,this.constructor.eventName("hide"));if(!e.defaultPrevented){if(this._getTipElement().classList.remove(Vn),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))f.off(t,"mouseover",q);this._activeTrigger.click=!1,this._activeTrigger[zn]=!1,this._activeTrigger[Kn]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),f.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){e=this._getTemplateFactory(e).toHtml();if(!e)return null;e.classList.remove(Yn,Vn),e.classList.add(`bs-${this.constructor.NAME}-auto`);var t=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME).toString();return e.setAttribute("id",t),this._isAnimated()&&e.classList.add(Yn),e}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Un({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Yn)}_isShown(){return this.tip&&this.tip.classList.contains(Vn)}_createPopper(e){var t=c(this._config.placement,[this,e,this._element]),t=Xn[t.toUpperCase()];return Kt(this._element,e,this._getPopperConfig(t))}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return c(e,[this._element])}_getPopperConfig(e){e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...e,...c(this._config.popperConfig,[e])}}_setListeners(){var e,t;for(const n of this._config.trigger.split(" "))"click"===n?f.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()}):"manual"!==n&&(e=n===Kn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),t=n===Kn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout"),f.on(this._element,e,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?zn:Kn]=!0,t._enter()}),f.on(this._element,t,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?zn:Kn]=t._element.contains(e.relatedTarget),t._leave()}));this._hideModalHandler=()=>{this._element&&this.hide()},f.on(this._element.closest(".modal"),Wn,this._hideModalHandler)}_fixTitle(){var e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){var t=u.getDataAttributes(this._element);for(const n of Object.keys(t))Gn.has(n)&&delete t[n];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:s(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){var e,t,n={};for([e,t]of Object.entries(this._config))this.constructor.Default[e]!==t&&(n[e]=t);return n.selector=!1,n.trigger="manual",n}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){var e=Qn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(Qn);const ei={...Qn.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},ti={...Qn.DefaultType,content:"(null|string|element|function)"};class ni extends Qn{static get Default(){return ei}static get DefaultType(){return ti}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){var e=ni.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(ni);_e=".bs.scrollspy";const ii="click"+_e;const si="active",ri="[href]";const oi={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ai={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class li extends t{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return oi}static get DefaultType(){return ai}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=s(e.target)||document.body,e.rootMargin=e.offset?e.offset+"px 0px -30%":e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(f.off(this._config.target,ii),f.on(this._config.target,ii,ri,e=>{var t=this._observableSections.get(e.target.hash);t&&(e.preventDefault(),e=this._rootElement||window,t=t.offsetTop-this._element.offsetTop,e.scrollTo?e.scrollTo({top:t,behavior:"smooth"}):e.scrollTop=t)}))}_getNewObserver(){var e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get("#"+e.target.id);var n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e)if(o.isIntersecting){var r=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&r){if(n(o),i)continue;return}s||r||n(o)}else this._activeTarget=null,this._clearActiveClass(t(o))}_initializeTargetsAndObservables(){var e;this._targetLinks=new Map,this._observableSections=new Map;for(const t of d.find(ri,this._config.target))t.hash&&!a(t)&&(e=d.findOne(decodeURI(t.hash),this._element),o(e))&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),(this._activeTarget=e).classList.add(si),this._activateParents(e),f.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))d.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(si);else for(const t of d.parents(e,".nav, .list-group"))for(const n of d.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))n.classList.add(si)}_clearActiveClass(e){e.classList.remove(si);for(const t of d.find(ri+"."+si,e))t.classList.remove(si)}static jQueryInterface(t){return this.each(function(){var e=li.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(window,"load.bs.scrollspy.data-api",()=>{for(const e of d.find('[data-bs-spy="scroll"]'))li.getOrCreateInstance(e)}),e(li);const ci="ArrowRight",ui="ArrowDown",di="Home",D="active",hi="show",pi=".dropdown-toggle";pi;Ke='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const mi='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), '+Ke;D,D,D;class fi extends t{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),f.on(this._element,"keydown.bs.tab",e=>this._keydown(e)))}static get NAME(){return"tab"}show(){var e,t,n=this._element;this._elemIsActive(n)||(t=(e=this._getActiveElem())?f.trigger(e,"hide.bs.tab",{relatedTarget:n}):null,f.trigger(n,"show.bs.tab",{relatedTarget:e}).defaultPrevented)||t&&t.defaultPrevented||(this._deactivate(e,n),this._activate(n,e))}_activate(e,t){e&&(e.classList.add(D),this._activate(d.getElementFromSelector(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.add(hi):(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),f.trigger(e,"shown.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(D),e.blur(),this._deactivate(d.getElementFromSelector(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.remove(hi):(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),f.trigger(e,"hidden.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_keydown(t){if(["ArrowLeft",ci,"ArrowUp",ui,di,"End"].includes(t.key)){t.stopPropagation(),t.preventDefault();var n,i=this._getChildren().filter(e=>!a(e));let e;(e=[di,"End"].includes(t.key)?i[t.key===di?0:i.length-1]:(n=[ci,ui].includes(t.key),W(i,t.target,n,!0)))&&(e.focus({preventScroll:!0}),fi.getOrCreateInstance(e).show())}}_getChildren(){return d.find(mi,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){var t=d.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id)&&this._setAttributeIfNotExists(t,"aria-labelledby",""+e.id)}_toggleDropDown(e,n){const i=this._getOuterElement(e);i.classList.contains("dropdown")&&((e=(e,t)=>{e=d.findOne(e,i);e&&e.classList.toggle(t,n)})(pi,D),e(".dropdown-menu",hi),i.setAttribute("aria-expanded",n))}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(D)}_getInnerElement(e){return e.matches(mi)?e:d.findOne(mi,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(t){return this.each(function(){var e=fi.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(document,"click.bs.tab",Ke,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||fi.getOrCreateInstance(this).show()}),f.on(window,"load.bs.tab",()=>{for(const e of d.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))fi.getOrCreateInstance(e)}),e(fi);const gi="show",bi="showing",vi={animation:"boolean",autohide:"boolean",delay:"number"},yi={animation:!0,autohide:!0,delay:5e3};class _i extends t{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return yi}static get DefaultType(){return vi}static get NAME(){return"toast"}show(){f.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),U(this._element),this._element.classList.add(gi,bi),this._queueCallback(()=>{this._element.classList.remove(bi),f.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&!f.trigger(this._element,"hide.bs.toast").defaultPrevented&&(this._element.classList.add(bi),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(bi,gi),f.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(gi),super.dispose()}isShown(){return this._element.classList.contains(gi)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}t?this._clearTimeout():(e=e.relatedTarget,this._element===e||this._element.contains(e)||this._maybeScheduleHide())}_setListeners(){f.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),f.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),f.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),f.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){var e=_i.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return pe(_i),e(_i),{Alert:me,Button:ge,Carousel:xe,Collapse:Fe,Dropdown:T,Modal:Nn,Offcanvas:M,Popover:ni,ScrollSpy:li,Tab:fi,Toast:_i,Tooltip:Qn}}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["bootstrap"],t):"object"==typeof exports?module.exports=t(require("bootstrap")):e.bootbox=t(e.bootstrap)}(this,function t(n,w){"use strict";const S={};S.VERSION="6.0.0";const d={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"}},T={dialog:'',header:'',footer:'',closeButton:'',form:'
',button:'',option:'',promptMessage:'
',inputs:{text:'',textarea:'',email:'',select:'',checkbox:'
',radio:'
',date:'',time:'',number:'',password:'',range:''}},A={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",errorMessage:null,swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1,relatedTarget:null,size:null,id:null};function h(e,t,n){return function e(t,...n){if(!t)return{};for(const r of n)if(r)for(var[i,s]of Object.entries(r))switch(Object.prototype.toString.call(s)){case"[object Object]":t[i]=t[i]||{},t[i]=e(t[i],s);break;case"[object Array]":t[i]=e(new Array(s.length),s);break;default:t[i]=s}return t}({},e,function(e,t){var n=e.length;let i={};if(n<1||2{var t;e.target&&(t=e.target.closest(i))&&n.call(t,e)}):t.addEventListener(e,e=>{n.call(t,e)})}return S.locales=function(e){return e?d[e]:d},S.addLocale=function(e,t){return["OK","CANCEL","CONFIRM"].forEach(e=>{if(!t[e])throw new Error(`Please supply a translation for "${e}"`)}),d[e]={OK:t.OK,CANCEL:t.CANCEL,CONFIRM:t.CONFIRM},S},S.removeLocale=function(e){if("en"===e)throw new Error('"en" is used as the default and fallback locale and cannot be removed.');return delete d[e],S},S.setLocale=function(e){return S.setDefaults("locale",e)},S.setDefaults=function(){let e={};return 2===arguments.length?e[arguments[0]]=arguments[1]:e=arguments[0],Object.assign(A,e),S},S.hideAll=function(){return document.querySelectorAll(".bootbox").forEach(e=>{bootstrap.Modal.getInstance(e).hide()}),S},S.init=function(e){return t(e||n)},S.dialog=function(e){if(bootstrap.Modal===w)throw new Error('"bootstrap.Modal" is not defined; please double check you have included the Bootstrap JavaScript library. See https://getbootstrap.com/docs/5.3/getting-started/introduction/ for more details.');e=function(t){var e,n;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error('"message" option must not be null or an empty string.');(t=Object.assign({},A,t)).backdrop?t.backdrop="string"!=typeof t.backdrop||"static"!==t.backdrop.toLowerCase()||"static":t.backdrop=!1!==t.backdrop&&0!==t.backdrop&&"static";t.buttons||(t.buttons={});e=t.buttons,n=u(e);var i,s,r=0;for([i,s]of Object.entries(e)){if("function"==typeof s&&(s=e[i]={callback:s}),"object"!==Object.prototype.toString.call(s).replace(/^\[object (.+)\]$/,"$1").toLowerCase())throw new Error(`button with key "${i}" must be an object`);if(s.label||(s.label=i),!s.className){let e=!1;e=t.swapButtonOrder?0===r:r===n-1,n<=2&&e?s.className="btn-primary":s.className="btn-secondary btn-default"}r++}return t}(e),bootstrap.Modal.VERSION?(e.fullBootstrapVersion=bootstrap.Modal.VERSION,i=e.fullBootstrapVersion.indexOf("."),e.bootstrap=e.fullBootstrapVersion.substring(0,i)):(e.bootstrap="2",e.fullBootstrapVersion="2.3.2",console.warn("Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible."));let n=N(T.dialog);var t=n.querySelector(".modal-dialog"),i=n.querySelector(".modal-body"),s=N(T.header),r=N(T.footer),o=e.buttons;let a={onEscape:e.onEscape};if("string"==typeof e.message?i.querySelector(".bootbox-body").innerHTML=e.message:i.querySelector(".bootbox-body").append(e.message),0{t.classList.add(e)}),l){case"ok":case"confirm":t.classList.add("bootbox-accept");break;case"cancel":t.classList.add("bootbox-cancel")}t.innerHTML=c.label,c.id&&t.setAttribute({id:c.id}),!0===c.disabled&&(t.disabled=!0),r.append(t),a[l]=c.callback}i.after(r)}if(!0===e.animate&&n.classList.add("fade"),e.className&&e.className.split(" ").forEach(e=>{n.classList.add(e)}),e.id&&n.setAttribute({id:e.id}),e.size)switch(e.fullBootstrapVersion.substring(0,3)<"3.1"&&console.warn(`"size" requires Bootstrap 3.1.0 or higher. You appear to be using ${e.fullBootstrapVersion}. Please upgrade to use this option.`),e.size){case"small":case"sm":t.classList.add("modal-sm");break;case"large":case"lg":t.classList.add("modal-lg");break;case"extra-large":case"xl":t.classList.add("modal-xl"),e.fullBootstrapVersion.substring(0,3)<"4.2"&&console.warn(`Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using ${e.fullBootstrapVersion}. Please upgrade to use this option.`)}if(e.scrollable&&(t.classList.add("modal-dialog-scrollable"),e.fullBootstrapVersion.substring(0,3)<"4.3")&&console.warn(`Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using ${e.fullBootstrapVersion}. Please upgrade to use this option.`),(e.title||e.closeButton)&&(e.title?s.querySelector(".modal-title").innerHTML=e.title:s.classList.add("border-0"),e.closeButton&&(o=N(T.closeButton),e.bootstrap<5&&(o.innerHTML="×"),e.bootstrap<4?s.prepend(o):s.append(o)),i.before(s)),e.centerVertical&&(t.classList.add("modal-dialog-centered"),e.fullBootstrapVersion<"4.0.0")&&console.warn(`"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using ${e.fullBootstrapVersion}. Please upgrade to use this option.`),e.reusable||(n.addEventListener("hide.bs.modal",function(){n.removeEventListener("escape.close.bb",null),n.removeEventListener("click",null)},{once:!0}),n.addEventListener("hidden.bs.modal",function(){n.remove(),n=null},{once:!0})),e.onHide){if("function"!=typeof e.onHide)throw new Error('Argument supplied to "onHide" must be a function');n.addEventListener("hide.bs.modal",e.onHide)}if(e.onHidden){if("function"!=typeof e.onHidden)throw new Error('Argument supplied to "onHidden" must be a function');n.addEventListener("hidden.bs.modal",e.onHidden)}if(e.onShow){if("function"!=typeof e.onShow)throw new Error('Argument supplied to "onShow" must be a function');f(n,"show.bs.modal",e.onShow)}if(n.addEventListener("shown.bs.modal",{dialog:n},O),e.onShown){if("function"!=typeof e.onShown)throw new Error('Argument supplied to "onShown" must be a function');f(n,"shown.bs.modal",e.onShown)}if(!0===e.backdrop){let t=!1;f(n,"mousedown",function(e){e.stopPropagation(),t=!0}),f(n,"click.dismiss.bs.modal",function(e){t||e.target!==e.currentTarget||m(n,"escape.close.bb")})}n.addEventListener("escape.close.bb",function(e){a.onEscape&&p(e,n,a.onEscape)}),n.addEventListener("click",e=>{var t;"button"!==e.target.nodeName.toLowerCase()||e.target.classList.contains("disabled")||(t=e.target.dataset.bbHandler)!==w&&p(e,n,a[t])}),document.addEventListener("click",e=>{e.target.closest(".bootbox-close-button")&&p(e,n,a.onEscape)}),n.addEventListener("keyup",function(e){27===e.which&&m(n,"escape.close.bb")}),("object"==typeof e.container?e.container:document.querySelector(e.container)).append(n);o=new bootstrap.Modal(n,{backdrop:e.backdrop,keyboard:!1,show:!1});return e.show&&o.show(e.relatedTarget),n},S.alert=function(){let e;if((e=L("alert",["ok"],["message","callback"],arguments)).callback&&"function"!=typeof e.callback)throw new Error('alert requires the "callback" property to be a function when provided');return e.buttons.ok.callback=e.onEscape=function(){return"function"!=typeof e.callback||e.callback.call(this)},S.dialog(e)},S.confirm=function(){let e;if("function"!=typeof(e=L("confirm",["cancel","confirm"],["message","callback"],arguments)).callback)throw new Error("confirm requires a callback");return e.buttons.cancel.callback=e.onEscape=function(){return e.callback.call(this,!1)},e.buttons.confirm.callback=function(){return e.callback.call(this,!0)},S.dialog(e)},S.prompt=function(){let t,n;var e,i;let s,r;if(e=N(T.form),(t=L("prompt",["cancel","confirm"],["title","callback"],arguments)).value||(t.value=A.value),t.inputType||(t.inputType=A.inputType),i=(t.show===w?A:t).show,t.show=!1,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){let e;return e="checkbox"===t.inputType?Array.from(s.querySelectorAll('input[type="checkbox"]:checked')).map(function(e){return e.value}):("radio"===t.inputType?s.querySelector('input[type="radio"]:checked'):s).value,t.callback.call(this,e)},!t.title)throw new Error("prompt requires a title");if("function"!=typeof t.callback)throw new Error("prompt requires a callback");if(!T.inputs[t.inputType])throw new Error("Invalid prompt type");switch(s=N(T.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"password":s.value=t.value,t.placeholder&&s.setAttribute("placeholder",t.placeholder),t.pattern&&s.setAttribute("pattern",t.pattern),t.maxlength&&s.setAttribute("maxlength",t.maxlength),t.required&&(s.required=!0),t.rows&&!isNaN(parseInt(t.rows))&&"textarea"===t.inputType&&s.setAttribute("rows",t.rows);break;case"date":case"time":case"number":case"range":if(s.value=t.value,t.placeholder&&s.setAttribute("placeholder",t.placeholder),t.pattern?s.setAttribute("pattern",t.pattern):"date"===t.inputType?s.setAttribute("pattern","d{4}-d{2}-d{2}"):"time"===t.inputType&&s.setAttribute("pattern","d{2}:d{2}"),t.required&&(s.required=!0),"date"!==t.inputType&&t.step){if(!("any"===t.step||!isNaN(t.step)&&0")).setAttribute("label",o.group),c[o.group]=u),e=c[o.group]);var u=N(T.option);u.setAttribute("value",o.value),u.textContent=o.text,e.append(u)}for([a,l]of Object.entries(c))s.append(l);s.value=t.value,t.bootstrap<5&&(s.classList.remove("form-select"),s.classList.add("form-control"));break;case"checkbox":var d,h,p=Array.isArray(t.value)?t.value:[t.value];if(!(r=t.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');s=N('
');for([d,h]of Object.entries(r)){if(h.value===w||h.text===w)throw new Error('each option needs a "value" property and a "text" property');var m,f,g=N(T.inputs[t.inputType]);g.querySelector("input").setAttribute("value",h.value),g.querySelector("label").append(` +`+h.text);for([m,f]of Object.entries(p))f===h.value&&(g.querySelector("input").checked=!0);s.append(g)}break;case"radio":if(t.value!==w&&Array.isArray(t.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(!(r=t.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');s=N('
');var b,v,y=!0;for([b,v]of Object.entries(r)){if(v.value===w||v.text===w)throw new Error('each option needs a "value" property and a "text" property');var _=N(T.inputs[t.inputType]);_.querySelector("input").setAttribute("value",v.value),_.querySelector("label").append(` +`+v.text),t.value!==w&&v.value===t.value&&(y=!(_.querySelector("input").checked=!0)),s.append(_)}y&&s.querySelector('input[type="radio"]').setAttribute("checked",!0)}e.append(s),e.addEventListener("submit",function(e){e.preventDefault(),e.stopPropagation(),n.querySelector(".bootbox-accept").click()}),t.message&&""!==t.message.trim()&&(E=N(T.promptMessage).innerHTML=t.message,e.prepend(E)),t.message=e,(n=S.dialog(t)).removeEventListener("shown.bs.modal",O),n.addEventListener("shown.bs.modal",function(){s.focus()});var E=new bootstrap.Modal(n);return!0===i&&E.show(),n},S});class DarkEditable{constructor(e,t={}){this._element={element:null,form:null,load:null,buttons:{success:null,cancel:null}},this.element=e,this.options=t,this.init_options(),this.init_popover(),this.init_text(),this.init_hide_onclick(),this.init_style(),this.disabled&&this.disable(),this.element.dispatchEvent(new CustomEvent("init"))}init_options(){const n=(e,t)=>this[e]=this.element.dataset?.[e]??this.options?.[e]??t;var e=(e,t)=>(n(e,t),"boolean"!=typeof this[e]&&("true"==this[e]?this[e]=!0:"false"==this[e]?this[e]=!1:this[e]=t),this[e]);switch(n("value",this.element.innerHTML),n("name",this.element.id),n("id",null),n("title",""),n("type","text"),n("emptytext","Empty"),n("url",null),n("ajaxOptions",{}),this.ajaxOptions=Object.assign({method:"POST",dataType:"text"},this.ajaxOptions),e("send",!0),e("disabled",!1),e("required",!1),this.options?.success&&"function"==typeof this.options?.success&&(this.success=this.options.success),this.options?.error&&"function"==typeof this.options?.error&&(this.error=this.options.error),this.type){case"select":n("source",[]),"string"==typeof this.source&&""!=this.source&&(this.source=JSON.parse(this.source));break;case"date":n("format","YYYY-MM-DD"),n("viewformat","YYYY-MM-DD");break;case"datetime":n("format","YYYY-MM-DD HH:mm"),n("viewformat","YYYY-MM-DD HH:mm"),this.value=moment(this.value).format("YYYY-MM-DDTHH:mm")}}init_text(){var e="text-danger";this.element.classList.remove(e);let t=!0;switch(this.type){default:""==this.value?this.element.innerHTML=this.emptytext:(this.element.innerHTML=this.value,t=!1);break;case"select":this.element.innerHTML=this.emptytext,""!=this.value&&0{e.value==this.value&&(this.element.innerHTML=e.text,t=!1)});break;case"date":case"datetime":""==this.value?this.element.innerHTML=this.emptytext:(this.element.innerHTML=moment(this.value).format(this.viewformat),t=!1)}t&&this.element.classList.add(e)}init_style(){this.element.classList.add("dark-editable-element")}init_hide_onclick(){document.addEventListener("click",t=>{t=t.target;if(t!==this.popover.tip&&t!=this.element){let e=t;for(;e=e.parentNode;)if(e===this.popover.tip)return;this.popover.hide()}})}init_popover(){this.popover=new bootstrap.Popover(this.element,{container:"body",content:this.route_type(),html:!0,customClass:"dark-editable",title:this.title}),this.element.addEventListener("show.bs.popover",()=>{this._element.element.value=this.value,this.element.dispatchEvent(new CustomEvent("show"))}),this.element.addEventListener("shown.bs.popover",()=>{this.element.dispatchEvent(new CustomEvent("shown"))}),this.element.addEventListener("hide.bs.popover",()=>{this.element.dispatchEvent(new CustomEvent("hide"))}),this.element.addEventListener("hidden.bs.popover",()=>{this.element.dispatchEvent(new CustomEvent("hidden"))})}route_type(){switch(this.type){default:throw new Error("Undefined type");case"text":case"password":case"email":case"url":case"tel":case"number":case"range":case"time":return this.type_input();case"textarea":return this.type_textarea();case"select":return this.type_select();case"date":return this.type_date();case"datetime":return this.type_datetime()}}createElement(e){e=document.createElement(e);return e.classList.add("form-control"),this.required&&(e.required=this.required),this.add_focus(e),e}type_input(){var e=this.createElement("input");return e.type=this.type,this.createContainer(e)}type_textarea(){var e=this.createElement("textarea");return this.createContainer(e)}type_select(){const n=this.createElement("select");return this.source.forEach(e=>{var t=document.createElement("option");t.value=e.value,t.innerHTML=e.text,n.append(t)}),this.createContainer(n)}type_date(){var e=this.createElement("input");return e.type="date",this.createContainer(e)}type_datetime(){var e=this.createElement("input");return e.type="datetime-local",this.createContainer(e)}add_focus(e){this.element.addEventListener("shown.bs.popover",function(){e.focus()})}load(e){this._element.load.style.display=e?"block":"none"}createContainer(e){return this._element.element=e,this._element.form=this.createContainerForm(e),this._element.load=this.createContainerLoad(),this._element.buttons.success=this.createButtonSuccess(),this._element.buttons.cancel=this.createButtonCancel(),this._element.form.append(e,this._element.load,this._element.buttons.success,this._element.buttons.cancel),this._element.form}createContainerForm(n){var e=document.createElement("form");return e.classList.add("d-flex","align-items-start"),e.style.gap="10px",e.addEventListener("submit",async e=>{e.preventDefault();var t,e=n.value;this.send&&this.id&&this.url&&this.value!=e?(this.load(!0),(t=await this.ajax(e)).ok?(this.success(t,e),this.value=n.value,this.popover.hide(),this.init_text()):this.error(t,e),this.load(!1)):(this.value=n.value,this.popover.hide(),this.init_text()),this.element.dispatchEvent(new CustomEvent("save"))}),e}createContainerLoad(){var e=document.createElement("div"),t=(e.style.display="none",e.style.position="absolute",e.style.background="white",e.style.width="100%",e.style.height="100%",e.style.top=0,e.style.left=0,document.createElement("div"));return t.classList.add("dark-editable-loader"),e.append(t),e}createButton(){var e=document.createElement("button");return e.type="button",e.classList.add("btn","btn-sm"),e}createButtonSuccess(){var e=this.createButton();return e.type="submit",e.classList.add("btn-success"),e.innerHTML='',e}createButtonCancel(){var e=this.createButton();return e.classList.add("btn-danger"),e.innerHTML='',e.addEventListener("click",()=>{this.popover.hide()}),e}async ajax(e){let t=this.url;var n=new FormData,e=(n.append("id",this.id),n.append("name",this.name),n.append("value",e),{}),n=(e.method=this.ajaxOptions.method,"POST"==e.method?e.body=n:t+="?"+new URLSearchParams(n).toString(),await fetch(t,e));return n}success(e,t){}error(e,t){}enable(){this.disabled=!1,this.element.classList.remove("dark-editable-element-disabled"),this.popover.enable()}disable(){this.disabled=!0,this.element.classList.add("dark-editable-element-disabled"),this.popover.disable()}setValue(e){this.value=e,this.init_text()}getValue(){return this.value}}function Notify(e,t){var n,i,s={element:"body",type:"info",allow_dismiss:!0,allow_duplicates:!0,newest_on_top:!0,showProgressbar:!(String.format=function(){var t=arguments;return arguments[0].replace(/(\{\{\d\}\}|\{\d\})/g,function(e){return"{{"===e.substring(0,2)?e:(e=parseInt(e.match(/\d/)[0]),t[e+1])})}),placement:{from:"top",align:"right"},delay:5e3,timer:1e3,mouse_over:"pause",animate:{enter:"animated fadeInDown",exit:"animated fadeOutUp"},onShow:null,onShown:null,onClose:null,onClosed:null,onClick:null,icon_type:"class",template:['',title:"",trigger:"hover focus"},Jn={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Qn extends t{constructor(e,t){if(void 0===zt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Zn}static get DefaultType(){return Jn}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),f.off(this._element.closest(".modal"),Wn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this._isWithContent()&&this._isEnabled){var e=f.trigger(this._element,this.constructor.eventName("show")),t=(H(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!e.defaultPrevented&&t){this._disposePopper();e=this._getTipElement(),t=(this._element.setAttribute("aria-describedby",e.getAttribute("id")),this._config)["container"];if(this._element.ownerDocument.documentElement.contains(this.tip)||(t.append(e),f.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(e),e.classList.add(Vn),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))f.on(n,"mouseover",q);this._queueCallback(()=>{f.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}hide(){if(this._isShown()){var e=f.trigger(this._element,this.constructor.eventName("hide"));if(!e.defaultPrevented){if(this._getTipElement().classList.remove(Vn),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))f.off(t,"mouseover",q);this._activeTrigger.click=!1,this._activeTrigger[zn]=!1,this._activeTrigger[Kn]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),f.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){e=this._getTemplateFactory(e).toHtml();if(!e)return null;e.classList.remove(Yn,Vn),e.classList.add(`bs-${this.constructor.NAME}-auto`);var t=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME).toString();return e.setAttribute("id",t),this._isAnimated()&&e.classList.add(Yn),e}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Un({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Yn)}_isShown(){return this.tip&&this.tip.classList.contains(Vn)}_createPopper(e){var t=c(this._config.placement,[this,e,this._element]),t=Xn[t.toUpperCase()];return Kt(this._element,e,this._getPopperConfig(t))}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return c(e,[this._element])}_getPopperConfig(e){e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...e,...c(this._config.popperConfig,[e])}}_setListeners(){var e,t;for(const n of this._config.trigger.split(" "))"click"===n?f.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()}):"manual"!==n&&(e=n===Kn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),t=n===Kn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout"),f.on(this._element,e,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?zn:Kn]=!0,t._enter()}),f.on(this._element,t,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?zn:Kn]=t._element.contains(e.relatedTarget),t._leave()}));this._hideModalHandler=()=>{this._element&&this.hide()},f.on(this._element.closest(".modal"),Wn,this._hideModalHandler)}_fixTitle(){var e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){var t=d.getDataAttributes(this._element);for(const n of Object.keys(t))Gn.has(n)&&delete t[n];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:s(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){var e,t,n={};for([e,t]of Object.entries(this._config))this.constructor.Default[e]!==t&&(n[e]=t);return n.selector=!1,n.trigger="manual",n}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){var e=Qn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(Qn);const ei={...Qn.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},ti={...Qn.DefaultType,content:"(null|string|element|function)"};class ni extends Qn{static get Default(){return ei}static get DefaultType(){return ti}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){var e=ni.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(ni);_e=".bs.scrollspy";const ii="click"+_e;const si="active",ri="[href]";const oi={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ai={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class li extends t{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return oi}static get DefaultType(){return ai}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=s(e.target)||document.body,e.rootMargin=e.offset?e.offset+"px 0px -30%":e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(f.off(this._config.target,ii),f.on(this._config.target,ii,ri,e=>{var t=this._observableSections.get(e.target.hash);t&&(e.preventDefault(),e=this._rootElement||window,t=t.offsetTop-this._element.offsetTop,e.scrollTo?e.scrollTo({top:t,behavior:"smooth"}):e.scrollTop=t)}))}_getNewObserver(){var e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get("#"+e.target.id);var n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e)if(o.isIntersecting){var r=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&r){if(n(o),i)continue;return}s||r||n(o)}else this._activeTarget=null,this._clearActiveClass(t(o))}_initializeTargetsAndObservables(){var e;this._targetLinks=new Map,this._observableSections=new Map;for(const t of u.find(ri,this._config.target))t.hash&&!a(t)&&(e=u.findOne(decodeURI(t.hash),this._element),o(e))&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),(this._activeTarget=e).classList.add(si),this._activateParents(e),f.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))u.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(si);else for(const t of u.parents(e,".nav, .list-group"))for(const n of u.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))n.classList.add(si)}_clearActiveClass(e){e.classList.remove(si);for(const t of u.find(ri+"."+si,e))t.classList.remove(si)}static jQueryInterface(t){return this.each(function(){var e=li.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(window,"load.bs.scrollspy.data-api",()=>{for(const e of u.find('[data-bs-spy="scroll"]'))li.getOrCreateInstance(e)}),e(li);const ci="ArrowRight",di="ArrowDown",ui="Home",D="active",hi="show",pi=".dropdown-toggle";pi;Ke='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const mi='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), '+Ke;D,D,D;class fi extends t{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),f.on(this._element,"keydown.bs.tab",e=>this._keydown(e)))}static get NAME(){return"tab"}show(){var e,t,n=this._element;this._elemIsActive(n)||(t=(e=this._getActiveElem())?f.trigger(e,"hide.bs.tab",{relatedTarget:n}):null,f.trigger(n,"show.bs.tab",{relatedTarget:e}).defaultPrevented)||t&&t.defaultPrevented||(this._deactivate(e,n),this._activate(n,e))}_activate(e,t){e&&(e.classList.add(D),this._activate(u.getElementFromSelector(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.add(hi):(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),f.trigger(e,"shown.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(D),e.blur(),this._deactivate(u.getElementFromSelector(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.remove(hi):(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),f.trigger(e,"hidden.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_keydown(t){if(["ArrowLeft",ci,"ArrowUp",di,ui,"End"].includes(t.key)){t.stopPropagation(),t.preventDefault();var n,i=this._getChildren().filter(e=>!a(e));let e;(e=[ui,"End"].includes(t.key)?i[t.key===ui?0:i.length-1]:(n=[ci,di].includes(t.key),W(i,t.target,n,!0)))&&(e.focus({preventScroll:!0}),fi.getOrCreateInstance(e).show())}}_getChildren(){return u.find(mi,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){var t=u.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id)&&this._setAttributeIfNotExists(t,"aria-labelledby",""+e.id)}_toggleDropDown(e,n){const i=this._getOuterElement(e);i.classList.contains("dropdown")&&((e=(e,t)=>{e=u.findOne(e,i);e&&e.classList.toggle(t,n)})(pi,D),e(".dropdown-menu",hi),i.setAttribute("aria-expanded",n))}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(D)}_getInnerElement(e){return e.matches(mi)?e:u.findOne(mi,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(t){return this.each(function(){var e=fi.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(document,"click.bs.tab",Ke,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||fi.getOrCreateInstance(this).show()}),f.on(window,"load.bs.tab",()=>{for(const e of u.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))fi.getOrCreateInstance(e)}),e(fi);const gi="show",bi="showing",vi={animation:"boolean",autohide:"boolean",delay:"number"},yi={animation:!0,autohide:!0,delay:5e3};class _i extends t{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return yi}static get DefaultType(){return vi}static get NAME(){return"toast"}show(){f.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),U(this._element),this._element.classList.add(gi,bi),this._queueCallback(()=>{this._element.classList.remove(bi),f.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&!f.trigger(this._element,"hide.bs.toast").defaultPrevented&&(this._element.classList.add(bi),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(bi,gi),f.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(gi),super.dispose()}isShown(){return this._element.classList.contains(gi)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}t?this._clearTimeout():(e=e.relatedTarget,this._element===e||this._element.contains(e)||this._maybeScheduleHide())}_setListeners(){f.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),f.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),f.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),f.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){var e=_i.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return pe(_i),e(_i),{Alert:me,Button:ge,Carousel:Ne,Collapse:Fe,Dropdown:T,Modal:xn,Offcanvas:M,Popover:ni,ScrollSpy:li,Tab:fi,Toast:_i,Tooltip:Qn}}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["bootstrap"],t):"object"==typeof exports?module.exports=t(require("bootstrap")):e.bootbox=t(e.bootstrap)}(this,function t(n,w){"use strict";const S={};S.VERSION="6.0.0";const u={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"}},T={dialog:'',header:'',footer:'',closeButton:'',form:'
',button:'',option:'',promptMessage:'
',inputs:{text:'',textarea:'',email:'',select:'',checkbox:'
',radio:'
',date:'',time:'',number:'',password:'',range:''}},A={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",errorMessage:null,swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1,relatedTarget:null,size:null,id:null};function h(e,t,n){return function e(t,...n){if(!t)return{};for(const r of n)if(r)for(var[i,s]of Object.entries(r))switch(Object.prototype.toString.call(s)){case"[object Object]":t[i]=t[i]||{},t[i]=e(t[i],s);break;case"[object Array]":t[i]=e(new Array(s.length),s);break;default:t[i]=s}return t}({},e,function(e,t){var n=e.length;let i={};if(n<1||2{var t;e.target&&(t=e.target.closest(i))&&n.call(t,e)}):t.addEventListener(e,e=>{n.call(t,e)})}return S.locales=function(e){return e?u[e]:u},S.addLocale=function(e,t){return["OK","CANCEL","CONFIRM"].forEach(e=>{if(!t[e])throw new Error(`Please supply a translation for "${e}"`)}),u[e]={OK:t.OK,CANCEL:t.CANCEL,CONFIRM:t.CONFIRM},S},S.removeLocale=function(e){if("en"===e)throw new Error('"en" is used as the default and fallback locale and cannot be removed.');return delete u[e],S},S.setLocale=function(e){return S.setDefaults("locale",e)},S.setDefaults=function(){let e={};return 2===arguments.length?e[arguments[0]]=arguments[1]:e=arguments[0],Object.assign(A,e),S},S.hideAll=function(){return document.querySelectorAll(".bootbox").forEach(e=>{bootstrap.Modal.getInstance(e).hide()}),S},S.init=function(e){return t(e||n)},S.dialog=function(e){if(bootstrap.Modal===w)throw new Error('"bootstrap.Modal" is not defined; please double check you have included the Bootstrap JavaScript library. See https://getbootstrap.com/docs/5.3/getting-started/introduction/ for more details.');e=function(t){var e,n;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error('"message" option must not be null or an empty string.');(t=Object.assign({},A,t)).backdrop?t.backdrop="string"!=typeof t.backdrop||"static"!==t.backdrop.toLowerCase()||"static":t.backdrop=!1!==t.backdrop&&0!==t.backdrop&&"static";t.buttons||(t.buttons={});e=t.buttons,n=d(e);var i,s,r=0;for([i,s]of Object.entries(e)){if("function"==typeof s&&(s=e[i]={callback:s}),"object"!==Object.prototype.toString.call(s).replace(/^\[object (.+)\]$/,"$1").toLowerCase())throw new Error(`button with key "${i}" must be an object`);if(s.label||(s.label=i),!s.className){let e=!1;e=t.swapButtonOrder?0===r:r===n-1,n<=2&&e?s.className="btn-primary":s.className="btn-secondary btn-default"}r++}return t}(e),bootstrap.Modal.VERSION?(e.fullBootstrapVersion=bootstrap.Modal.VERSION,i=e.fullBootstrapVersion.indexOf("."),e.bootstrap=e.fullBootstrapVersion.substring(0,i)):(e.bootstrap="2",e.fullBootstrapVersion="2.3.2",console.warn("Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible."));let n=x(T.dialog);var t=n.querySelector(".modal-dialog"),i=n.querySelector(".modal-body"),s=x(T.header),r=x(T.footer),o=e.buttons;let a={onEscape:e.onEscape};if("string"==typeof e.message?i.querySelector(".bootbox-body").innerHTML=e.message:i.querySelector(".bootbox-body").append(e.message),0{t.classList.add(e)}),l){case"ok":case"confirm":t.classList.add("bootbox-accept");break;case"cancel":t.classList.add("bootbox-cancel")}t.innerHTML=c.label,c.id&&t.setAttribute({id:c.id}),!0===c.disabled&&(t.disabled=!0),r.append(t),a[l]=c.callback}i.after(r)}if(!0===e.animate&&n.classList.add("fade"),e.className&&e.className.split(" ").forEach(e=>{n.classList.add(e)}),e.id&&n.setAttribute({id:e.id}),e.size)switch(e.fullBootstrapVersion.substring(0,3)<"3.1"&&console.warn(`"size" requires Bootstrap 3.1.0 or higher. You appear to be using ${e.fullBootstrapVersion}. Please upgrade to use this option.`),e.size){case"small":case"sm":t.classList.add("modal-sm");break;case"large":case"lg":t.classList.add("modal-lg");break;case"extra-large":case"xl":t.classList.add("modal-xl"),e.fullBootstrapVersion.substring(0,3)<"4.2"&&console.warn(`Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using ${e.fullBootstrapVersion}. Please upgrade to use this option.`)}if(e.scrollable&&(t.classList.add("modal-dialog-scrollable"),e.fullBootstrapVersion.substring(0,3)<"4.3")&&console.warn(`Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using ${e.fullBootstrapVersion}. Please upgrade to use this option.`),(e.title||e.closeButton)&&(e.title?s.querySelector(".modal-title").innerHTML=e.title:s.classList.add("border-0"),e.closeButton&&(o=x(T.closeButton),e.bootstrap<5&&(o.innerHTML="×"),e.bootstrap<4?s.prepend(o):s.append(o)),i.before(s)),e.centerVertical&&(t.classList.add("modal-dialog-centered"),e.fullBootstrapVersion<"4.0.0")&&console.warn(`"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using ${e.fullBootstrapVersion}. Please upgrade to use this option.`),e.reusable||(n.addEventListener("hide.bs.modal",function(){n.removeEventListener("escape.close.bb",null),n.removeEventListener("click",null)},{once:!0}),n.addEventListener("hidden.bs.modal",function(){n.remove(),n=null},{once:!0})),e.onHide){if("function"!=typeof e.onHide)throw new Error('Argument supplied to "onHide" must be a function');n.addEventListener("hide.bs.modal",e.onHide)}if(e.onHidden){if("function"!=typeof e.onHidden)throw new Error('Argument supplied to "onHidden" must be a function');n.addEventListener("hidden.bs.modal",e.onHidden)}if(e.onShow){if("function"!=typeof e.onShow)throw new Error('Argument supplied to "onShow" must be a function');f(n,"show.bs.modal",e.onShow)}if(n.addEventListener("shown.bs.modal",{dialog:n},O),e.onShown){if("function"!=typeof e.onShown)throw new Error('Argument supplied to "onShown" must be a function');f(n,"shown.bs.modal",e.onShown)}if(!0===e.backdrop){let t=!1;f(n,"mousedown",function(e){e.stopPropagation(),t=!0}),f(n,"click.dismiss.bs.modal",function(e){t||e.target!==e.currentTarget||m(n,"escape.close.bb")})}n.addEventListener("escape.close.bb",function(e){a.onEscape&&p(e,n,a.onEscape)}),n.addEventListener("click",e=>{var t;"button"!==e.target.nodeName.toLowerCase()||e.target.classList.contains("disabled")||(t=e.target.dataset.bbHandler)!==w&&p(e,n,a[t])}),document.addEventListener("click",e=>{e.target.closest(".bootbox-close-button")&&p(e,n,a.onEscape)}),n.addEventListener("keyup",function(e){27===e.which&&m(n,"escape.close.bb")}),("object"==typeof e.container?e.container:document.querySelector(e.container)).append(n);o=new bootstrap.Modal(n,{backdrop:e.backdrop,keyboard:!1,show:!1});return e.show&&o.show(e.relatedTarget),n},S.alert=function(){let e;if((e=L("alert",["ok"],["message","callback"],arguments)).callback&&"function"!=typeof e.callback)throw new Error('alert requires the "callback" property to be a function when provided');return e.buttons.ok.callback=e.onEscape=function(){return"function"!=typeof e.callback||e.callback.call(this)},S.dialog(e)},S.confirm=function(){let e;if("function"!=typeof(e=L("confirm",["cancel","confirm"],["message","callback"],arguments)).callback)throw new Error("confirm requires a callback");return e.buttons.cancel.callback=e.onEscape=function(){return e.callback.call(this,!1)},e.buttons.confirm.callback=function(){return e.callback.call(this,!0)},S.dialog(e)},S.prompt=function(){let t,n;var e,i;let s,r;if(e=x(T.form),(t=L("prompt",["cancel","confirm"],["title","callback"],arguments)).value||(t.value=A.value),t.inputType||(t.inputType=A.inputType),i=(t.show===w?A:t).show,t.show=!1,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){let e;return e="checkbox"===t.inputType?Array.from(s.querySelectorAll('input[type="checkbox"]:checked')).map(function(e){return e.value}):("radio"===t.inputType?s.querySelector('input[type="radio"]:checked'):s).value,t.callback.call(this,e)},!t.title)throw new Error("prompt requires a title");if("function"!=typeof t.callback)throw new Error("prompt requires a callback");if(!T.inputs[t.inputType])throw new Error("Invalid prompt type");switch(s=x(T.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"password":s.value=t.value,t.placeholder&&s.setAttribute("placeholder",t.placeholder),t.pattern&&s.setAttribute("pattern",t.pattern),t.maxlength&&s.setAttribute("maxlength",t.maxlength),t.required&&(s.required=!0),t.rows&&!isNaN(parseInt(t.rows))&&"textarea"===t.inputType&&s.setAttribute("rows",t.rows);break;case"date":case"time":case"number":case"range":if(s.value=t.value,t.placeholder&&s.setAttribute("placeholder",t.placeholder),t.pattern?s.setAttribute("pattern",t.pattern):"date"===t.inputType?s.setAttribute("pattern","d{4}-d{2}-d{2}"):"time"===t.inputType&&s.setAttribute("pattern","d{2}:d{2}"),t.required&&(s.required=!0),"date"!==t.inputType&&t.step){if(!("any"===t.step||!isNaN(t.step)&&0")).setAttribute("label",o.group),c[o.group]=d),e=c[o.group]);var d=x(T.option);d.setAttribute("value",o.value),d.textContent=o.text,e.append(d)}for([a,l]of Object.entries(c))s.append(l);s.value=t.value,t.bootstrap<5&&(s.classList.remove("form-select"),s.classList.add("form-control"));break;case"checkbox":var u,h,p=Array.isArray(t.value)?t.value:[t.value];if(!(r=t.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');s=x('
');for([u,h]of Object.entries(r)){if(h.value===w||h.text===w)throw new Error('each option needs a "value" property and a "text" property');var m,f,g=x(T.inputs[t.inputType]);g.querySelector("input").setAttribute("value",h.value),g.querySelector("label").append(` +`+h.text);for([m,f]of Object.entries(p))f===h.value&&(g.querySelector("input").checked=!0);s.append(g)}break;case"radio":if(t.value!==w&&Array.isArray(t.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(!(r=t.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');s=x('
');var b,v,y=!0;for([b,v]of Object.entries(r)){if(v.value===w||v.text===w)throw new Error('each option needs a "value" property and a "text" property');var _=x(T.inputs[t.inputType]);_.querySelector("input").setAttribute("value",v.value),_.querySelector("label").append(` +`+v.text),t.value!==w&&v.value===t.value&&(y=!(_.querySelector("input").checked=!0)),s.append(_)}y&&s.querySelector('input[type="radio"]').setAttribute("checked",!0)}e.append(s),e.addEventListener("submit",function(e){e.preventDefault(),e.stopPropagation(),n.querySelector(".bootbox-accept").click()}),t.message&&""!==t.message.trim()&&(E=x(T.promptMessage).innerHTML=t.message,e.prepend(E)),t.message=e,(n=S.dialog(t)).removeEventListener("shown.bs.modal",O),n.addEventListener("shown.bs.modal",function(){s.focus()});var E=new bootstrap.Modal(n);return!0===i&&E.show(),n},S});class DarkEditable{constructor(e,t={}){this._element={element:null,form:null,load:null,buttons:{success:null,cancel:null}},this.element=e,this.options=t,this.init_options(),this.init_popover(),this.init_text(),this.init_hide_onclick(),this.init_style(),this.disabled&&this.disable(),this.element.dispatchEvent(new CustomEvent("init"))}init_options(){const n=(e,t)=>this[e]=this.element.dataset?.[e]??this.options?.[e]??t;var e=(e,t)=>(n(e,t),"boolean"!=typeof this[e]&&("true"==this[e]?this[e]=!0:"false"==this[e]?this[e]=!1:this[e]=t),this[e]);switch(n("value",this.element.innerHTML),n("name",this.element.id),n("id",null),n("title",""),n("type","text"),n("emptytext","Empty"),n("url",null),n("ajaxOptions",{}),this.ajaxOptions=Object.assign({method:"POST",dataType:"text"},this.ajaxOptions),e("send",!0),e("disabled",!1),e("required",!1),this.options?.success&&"function"==typeof this.options?.success&&(this.success=this.options.success),this.options?.error&&"function"==typeof this.options?.error&&(this.error=this.options.error),this.type){case"select":n("source",[]),"string"==typeof this.source&&""!=this.source&&(this.source=JSON.parse(this.source));break;case"date":n("format","YYYY-MM-DD"),n("viewformat","YYYY-MM-DD");break;case"datetime":n("format","YYYY-MM-DD HH:mm"),n("viewformat","YYYY-MM-DD HH:mm"),this.value=moment(this.value).format("YYYY-MM-DDTHH:mm")}}init_text(){var e="text-danger";this.element.classList.remove(e);let t=!0;switch(this.type){default:""==this.value?this.element.innerHTML=this.emptytext:(this.element.innerHTML=this.value,t=!1);break;case"select":this.element.innerHTML=this.emptytext,""!=this.value&&0{e.value==this.value&&(this.element.innerHTML=e.text,t=!1)});break;case"date":case"datetime":""==this.value?this.element.innerHTML=this.emptytext:(this.element.innerHTML=moment(this.value).format(this.viewformat),t=!1)}t&&this.element.classList.add(e)}init_style(){this.element.classList.add("dark-editable-element")}init_hide_onclick(){document.addEventListener("click",t=>{t=t.target;if(t!==this.popover.tip&&t!=this.element){let e=t;for(;e=e.parentNode;)if(e===this.popover.tip)return;this.popover.hide()}})}init_popover(){this.popover=new bootstrap.Popover(this.element,{container:"body",content:this.route_type(),html:!0,customClass:"dark-editable",title:this.title}),this.element.addEventListener("show.bs.popover",()=>{this._element.element.value=this.value,this.element.dispatchEvent(new CustomEvent("show"))}),this.element.addEventListener("shown.bs.popover",()=>{this.element.dispatchEvent(new CustomEvent("shown"))}),this.element.addEventListener("hide.bs.popover",()=>{this.element.dispatchEvent(new CustomEvent("hide"))}),this.element.addEventListener("hidden.bs.popover",()=>{this.element.dispatchEvent(new CustomEvent("hidden"))})}route_type(){switch(this.type){default:throw new Error("Undefined type");case"text":case"password":case"email":case"url":case"tel":case"number":case"range":case"time":return this.type_input();case"textarea":return this.type_textarea();case"select":return this.type_select();case"date":return this.type_date();case"datetime":return this.type_datetime()}}createElement(e){e=document.createElement(e);return e.classList.add("form-control"),this.required&&(e.required=this.required),this.add_focus(e),e}type_input(){var e=this.createElement("input");return e.type=this.type,this.createContainer(e)}type_textarea(){var e=this.createElement("textarea");return this.createContainer(e)}type_select(){const n=this.createElement("select");return this.source.forEach(e=>{var t=document.createElement("option");t.value=e.value,t.innerHTML=e.text,n.append(t)}),this.createContainer(n)}type_date(){var e=this.createElement("input");return e.type="date",this.createContainer(e)}type_datetime(){var e=this.createElement("input");return e.type="datetime-local",this.createContainer(e)}add_focus(e){this.element.addEventListener("shown.bs.popover",function(){e.focus()})}load(e){this._element.load.style.display=e?"block":"none"}createContainer(e){return this._element.element=e,this._element.form=this.createContainerForm(e),this._element.load=this.createContainerLoad(),this._element.buttons.success=this.createButtonSuccess(),this._element.buttons.cancel=this.createButtonCancel(),this._element.form.append(e,this._element.load,this._element.buttons.success,this._element.buttons.cancel),this._element.form}createContainerForm(n){var e=document.createElement("form");return e.classList.add("d-flex","align-items-start"),e.style.gap="10px",e.addEventListener("submit",async e=>{e.preventDefault();var t,e=n.value;this.send&&this.id&&this.url&&this.value!=e?(this.load(!0),(t=await this.ajax(e)).ok?(this.success(t,e),this.value=n.value,this.popover.hide(),this.init_text()):this.error(t,e),this.load(!1)):(this.value=n.value,this.popover.hide(),this.init_text()),this.element.dispatchEvent(new CustomEvent("save"))}),e}createContainerLoad(){var e=document.createElement("div"),t=(e.style.display="none",e.style.position="absolute",e.style.background="white",e.style.width="100%",e.style.height="100%",e.style.top=0,e.style.left=0,document.createElement("div"));return t.classList.add("dark-editable-loader"),e.append(t),e}createButton(){var e=document.createElement("button");return e.type="button",e.classList.add("btn","btn-sm"),e}createButtonSuccess(){var e=this.createButton();return e.type="submit",e.classList.add("btn-success"),e.innerHTML='',e}createButtonCancel(){var e=this.createButton();return e.classList.add("btn-danger"),e.innerHTML='',e.addEventListener("click",()=>{this.popover.hide()}),e}async ajax(e){let t=this.url;var n=new FormData,e=(n.append("id",this.id),n.append("name",this.name),n.append("value",e),{}),n=(e.method=this.ajaxOptions.method,"POST"==e.method?e.body=n:t+="?"+new URLSearchParams(n).toString(),await fetch(t,e));return n}success(e,t){}error(e,t){}enable(){this.disabled=!1,this.element.classList.remove("dark-editable-element-disabled"),this.popover.enable()}disable(){this.disabled=!0,this.element.classList.add("dark-editable-element-disabled"),this.popover.disable()}setValue(e){this.value=e,this.init_text()}getValue(){return this.value}}function Notify(e,t){var n,i,s={element:"body",type:"info",allow_dismiss:!0,allow_duplicates:!0,newest_on_top:!0,showProgressbar:!(String.format=function(){var t=arguments;return arguments[0].replace(/(\{\{\d\}\}|\{\d\})/g,function(e){return"{{"===e.substring(0,2)?e:(e=parseInt(e.match(/\d/)[0]),t[e+1])})}),placement:{from:"top",align:"right"},delay:5e3,timer:1e3,mouse_over:"pause",animate:{enter:"animated fadeInDown",exit:"animated fadeOutUp"},onShow:null,onShown:null,onClose:null,onClosed:null,onClick:null,icon_type:"class",template:['