@iris.interactive/handcook 8.0.2 → 8.0.3-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "8.0.2",
3
+ "version": "8.0.3-alpha.1",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
package/public/index.js CHANGED
@@ -28,7 +28,7 @@ ${this.ctx.stack}`),this.cancel(e)):(this.callback(null,t),"count"===this.opts.s
28
28
  * @author Lucas ROCHE
29
29
  * @date 01/02/2022 10:36
30
30
  * @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
31
- */class t{}e(t,"tooltip","[data-hc-tooltip], [data-hc-popover]"),e(t,"popover","[data-hc-popover]"),e(t,"scrollSmooth","[data-hc-smooth-scroll]"),e(t,"modal","[data-hc-modal]"),e(t,"modalClose","[data-hc-modal-close]"),e(t,"lightboxAttr","data-hc-lightbox"),e(t,"lightbox",`[${t.lightboxAttr}]`),e(t,"dropdown","[data-hc-dropdown]"),e(t,"collapse","[data-hc-collapse]"),e(t,"collapseItem","[data-hc-collapse-item]"),e(t,"popin","[data-hc-popin]"),e(t,"tab","[data-hc-tab]"),e(t,"toggle","[data-hc-toggle]"),e(t,"slider","[data-hc-slider]"),e(t,"scrollspy","[data-hc-scrollspy]"),e(t,"scrollspyNav","[data-hc-scrollspy-nav]"),e(t,"scrollspyNavItem","[data-hc-scrollspy-nav-item]"),e(t,"scrollspyNavItemHref","[data-hc-scrollspy-nav-item-href]"),e(t,"scrollReveal","[data-hc-scroll-reveal]"),e(t,"scrollRevealDisable","[data-hc-noscroll-reveal]"),e(t,"scrollRevealParent","[data-hc-scroll-reveal-parent]"),e(t,"scrollRevealChildren",`${t.scrollRevealParent} > *:not(${t.scrollRevealDisable}):not(${t.scrollRevealParent}):not(${t.scrollReveal})`),e(t,"overlay","[data-hc-overlay]");let r=new Map,s={set(e,t,i){r.has(e)||r.set(e,new Map);let s=r.get(e);if(!s.has(t)&&0!==s.size)return void console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`);s.set(t,i)},get:(e,t)=>r.has(e)&&r.get(e).get(t)||null,remove(e,t){if(!r.has(e))return;let i=r.get(e);i.delete(t),0===i.size&&r.delete(e)}},n="transitionend",o=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),a=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),l=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e),r=Number.parseFloat(t),s=Number.parseFloat(i);return r||s?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*1e3):0},c=e=>{e.dispatchEvent(new Event(n))},h=e=>!!e&&"object"==typeof e&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),d=e=>h(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(o(e)):null,u=e=>{if(!h(e)||0===e.getClientRects().length)return!1;let t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){let t=e.closest("summary");if(t&&t.parentNode!==i||null===t)return!1}return t},f=e=>!!(!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled"))||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),p=e=>{e.offsetHeight},g=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,m=[],b=e=>{"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",()=>{for(let e of m)e()}),m.push(e)):e()},y=e=>{b(()=>{let t=g();if(t){let i=e.NAME,r=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=r,e.jQueryInterface)}})},v=(e,t=[],i=e)=>"function"==typeof e?e.call(...t):i,w=(e,t,i=!0)=>{if(!i)return void v(e);let r=l(t)+5,s=!1,o=({target:i})=>{i===t&&(s=!0,t.removeEventListener(n,o),v(e))};t.addEventListener(n,o),setTimeout(()=>{s||c(t)},r)},E=(e,t,i,r)=>{let s=e.length,n=e.indexOf(t);return -1===n?!i&&r?e[s-1]:e[0]:(n+=i?1:-1,r&&(n=(n+s)%s),e[Math.max(0,Math.min(n,s-1))])},x=/[^.]*(?=\..*)\.|.*/,_=/\..*/,S=/::\d+$/,A={},P=1,C={mouseenter:"mouseover",mouseleave:"mouseout"},O=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 T(e,t){return t&&`${t}::${P++}`||e.uidEvent||P++}function L(e){let t=T(e);return e.uidEvent=t,A[t]=A[t]||{},A[t]}function k(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function M(e,t,i){let r="string"==typeof t,s=R(e);return O.has(s)||(s=e),[r,r?i:t||i,s]}function I(e,t,i,r,s){var n,o;if("string"!=typeof t||!e)return;let[a,l,c]=M(t,i,r);if(t in C){let e;e=l,l=function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)}}let h=L(e),d=h[c]||(h[c]={}),u=k(d,l,a?i:null);if(u){u.oneOff=u.oneOff&&s;return}let f=T(l,t.replace(x,"")),p=a?(n=l,function t(r){let s=e.querySelectorAll(i);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(let a of s)if(a===o)return D(r,{delegateTarget:o}),t.oneOff&&j.off(e,r.type,i,n),n.apply(o,[r])}):(o=l,function t(i){return D(i,{delegateTarget:e}),t.oneOff&&j.off(e,i.type,o),o.apply(e,[i])});p.delegationSelector=a?i:null,p.callable=l,p.oneOff=s,p.uidEvent=f,d[f]=p,e.addEventListener(c,p,a)}function N(e,t,i,r,s){let n=k(t[i],r,s);n&&(e.removeEventListener(i,n,!!s),delete t[i][n.uidEvent])}function R(e){return C[e=e.replace(_,"")]||e}let j={on(e,t,i,r){I(e,t,i,r,!1)},one(e,t,i,r){I(e,t,i,r,!0)},off(e,t,i,r){if("string"!=typeof t||!e)return;let[s,n,o]=M(t,i,r),a=o!==t,l=L(e),c=l[o]||{},h=t.startsWith(".");if(void 0!==n){if(!Object.keys(c).length)return;N(e,l,o,n,s?i:null);return}if(h)for(let i of Object.keys(l)){var d=t.slice(1);for(let[t,r]of Object.entries(l[i]||{}))t.includes(d)&&N(e,l,i,r.callable,r.delegationSelector)}for(let[i,r]of Object.entries(c)){let s=i.replace(S,"");(!a||t.includes(s))&&N(e,l,o,r.callable,r.delegationSelector)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;let r=g(),s=R(t),n=null,o=!0,a=!0,l=!1;t!==s&&r&&(n=r.Event(t,i),r(e).trigger(n),o=!n.isPropagationStopped(),a=!n.isImmediatePropagationStopped(),l=n.isDefaultPrevented());let c=D(new Event(t,{bubbles:o,cancelable:!0}),i);return l&&c.preventDefault(),a&&e.dispatchEvent(c),c.defaultPrevented&&n&&n.preventDefault(),c}};function D(e,t={}){for(let[i,r]of Object.entries(t))try{e[i]=r}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>r})}return e}function F(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function U(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}let B={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${U(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${U(t)}`)},getDataAttributes(e){if(!e)return{};let t={};for(let i of Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let r=i.replace(/^bs/,"");t[r=r.charAt(0).toLowerCase()+r.slice(1)]=F(e.dataset[i])}return t},getDataAttribute:(e,t)=>F(e.getAttribute(`data-bs-${U(t)}`))},z=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw 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){let i=h(t)?B.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...h(t)?B.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[i,r]of Object.entries(t)){let t=e[i],s=h(t)?"element":a(t);if(!new RegExp(r).test(s))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}}},q=class extends z{constructor(e,t){if(super(),!(e=d(e)))return;this._element=e,this._config=this._getConfig(t),s.set(this._element,this.constructor.DATA_KEY,this)}dispose(){for(let e of(s.remove(this._element,this.constructor.DATA_KEY),j.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this)))this[e]=null}_queueCallback(e,t,i=!0){w(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return s.get(d(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.5"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},K=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map(e=>o(e)).join(","):null},H={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){let i=[],r=e.parentNode.closest(t);for(;r;)i.push(r),r=r.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){let t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!f(e)&&u(e))},getSelectorFromElement(e){let t=K(e);return t&&H.findOne(t)?t:null},getElementFromSelector(e){let t=K(e);return t?H.findOne(t):null},getMultipleElementsFromSelector(e){let t=K(e);return t?H.find(t):[]}},W=".bs.collapse",V=`show${W}`,G=`shown${W}`,X=`hide${W}`,Y=`hidden${W}`,J=`click${W}.data-api`,Z="show",Q="collapse",ee="collapsing",et=`:scope .${Q} .${Q}`,ei='[data-bs-toggle="collapse"]',er={parent:null,toggle:!0},es={parent:"(null|element)",toggle:"boolean"};class en extends q{constructor(e,t){for(let i of(super(e,t),this._isTransitioning=!1,this._triggerArray=[],H.find(ei))){let e=H.getSelectorFromElement(i),t=H.find(e).filter(e=>e===this._element);null!==e&&t.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return er}static get DefaultType(){return es}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>en.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning||j.trigger(this._element,V).defaultPrevented)return;for(let t of e)t.hide();let t=this._getDimension();this._element.classList.remove(Q),this._element.classList.add(ee),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let i=t[0].toUpperCase()+t.slice(1),r=`scroll${i}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ee),this._element.classList.add(Q,Z),this._element.style[t]="",j.trigger(this._element,G)},this._element,!0),this._element.style[t]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||j.trigger(this._element,X).defaultPrevented)return;let e=this._getDimension();for(let t of(this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,p(this._element),this._element.classList.add(ee),this._element.classList.remove(Q,Z),this._triggerArray)){let e=H.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ee),this._element.classList.add(Q),j.trigger(this._element,Y)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(Z)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=d(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent)for(let e of this._getFirstLevelChildren(ei)){let t=H.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(e){let t=H.find(et,this._config.parent);return H.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){let t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){let i=en.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw TypeError(`No method named "${e}"`);i[e]()}})}}j.on(document,J,ei,function(e){for(let t of(("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault(),H.getMultipleElementsFromSelector(this)))en.getOrCreateInstance(t,{toggle:!1}).toggle()}),y(en);/*
31
+ */class t{}e(t,"tooltip","[data-hc-tooltip], [data-hc-popover]"),e(t,"popover","[data-hc-popover]"),e(t,"scrollSmooth","[data-hc-smooth-scroll]"),e(t,"modal","[data-hc-modal]"),e(t,"modalClose","[data-hc-modal-close]"),e(t,"lightboxAttr","data-hc-lightbox"),e(t,"lightbox",`[${t.lightboxAttr}]`),e(t,"dropdown","[data-hc-dropdown]"),e(t,"collapse","[data-hc-collapse]"),e(t,"collapseItem","[data-hc-collapse-item]"),e(t,"popin","[data-hc-popin]"),e(t,"tab","[data-hc-tab]"),e(t,"toggle","[data-hc-toggle]"),e(t,"slider","[data-hc-slider]"),e(t,"scrollspy","[data-hc-scrollspy]"),e(t,"scrollspyNav","[data-hc-scrollspy-nav]"),e(t,"scrollspyNavItem","[data-hc-scrollspy-nav-item]"),e(t,"scrollspyNavItemHref","[data-hc-scrollspy-nav-item-href]"),e(t,"scrollReveal","[data-hc-scroll-reveal]"),e(t,"scrollRevealDisable","[data-hc-noscroll-reveal]"),e(t,"scrollRevealParent","[data-hc-scroll-reveal-parent]"),e(t,"scrollRevealChildren",`${t.scrollRevealParent} > *:not(${t.scrollRevealDisable}):not(${t.scrollRevealParent}):not(${t.scrollReveal})`),e(t,"overlay","[data-hc-overlay]");let r=new Map,s={set(e,t,i){r.has(e)||r.set(e,new Map);let s=r.get(e);if(!s.has(t)&&0!==s.size)return void console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`);s.set(t,i)},get:(e,t)=>r.has(e)&&r.get(e).get(t)||null,remove(e,t){if(!r.has(e))return;let i=r.get(e);i.delete(t),0===i.size&&r.delete(e)}},n="transitionend",o=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),a=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),l=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e),r=Number.parseFloat(t),s=Number.parseFloat(i);return r||s?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*1e3):0},c=e=>{e.dispatchEvent(new Event(n))},h=e=>!!e&&"object"==typeof e&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),d=e=>h(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(o(e)):null,u=e=>{if(!h(e)||0===e.getClientRects().length)return!1;let t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){let t=e.closest("summary");if(t&&t.parentNode!==i||null===t)return!1}return t},f=e=>!!(!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled"))||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),p=e=>{e.offsetHeight},g=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,m=[],b=e=>{"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",()=>{for(let e of m)e()}),m.push(e)):e()},y=e=>{b(()=>{let t=g();if(t){let i=e.NAME,r=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=r,e.jQueryInterface)}})},v=(e,t=[],i=e)=>"function"==typeof e?e.call(...t):i,w=(e,t,i=!0)=>{if(!i)return void v(e);let r=l(t)+5,s=!1,o=({target:i})=>{i===t&&(s=!0,t.removeEventListener(n,o),v(e))};t.addEventListener(n,o),setTimeout(()=>{s||c(t)},r)},E=(e,t,i,r)=>{let s=e.length,n=e.indexOf(t);return -1===n?!i&&r?e[s-1]:e[0]:(n+=i?1:-1,r&&(n=(n+s)%s),e[Math.max(0,Math.min(n,s-1))])},x=/[^.]*(?=\..*)\.|.*/,_=/\..*/,S=/::\d+$/,A={},P=1,C={mouseenter:"mouseover",mouseleave:"mouseout"},O=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 T(e,t){return t&&`${t}::${P++}`||e.uidEvent||P++}function L(e){let t=T(e);return e.uidEvent=t,A[t]=A[t]||{},A[t]}function k(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function M(e,t,i){let r="string"==typeof t,s=R(e);return O.has(s)||(s=e),[r,r?i:t||i,s]}function I(e,t,i,r,s){var n,o;if("string"!=typeof t||!e)return;let[a,l,c]=M(t,i,r);if(t in C){let e;e=l,l=function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)}}let h=L(e),d=h[c]||(h[c]={}),u=k(d,l,a?i:null);if(u){u.oneOff=u.oneOff&&s;return}let f=T(l,t.replace(x,"")),p=a?(n=l,function t(r){let s=e.querySelectorAll(i);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(let a of s)if(a===o)return D(r,{delegateTarget:o}),t.oneOff&&j.off(e,r.type,i,n),n.apply(o,[r])}):(o=l,function t(i){return D(i,{delegateTarget:e}),t.oneOff&&j.off(e,i.type,o),o.apply(e,[i])});p.delegationSelector=a?i:null,p.callable=l,p.oneOff=s,p.uidEvent=f,d[f]=p,e.addEventListener(c,p,a)}function N(e,t,i,r,s){let n=k(t[i],r,s);n&&(e.removeEventListener(i,n,!!s),delete t[i][n.uidEvent])}function R(e){return C[e=e.replace(_,"")]||e}let j={on(e,t,i,r){I(e,t,i,r,!1)},one(e,t,i,r){I(e,t,i,r,!0)},off(e,t,i,r){if("string"!=typeof t||!e)return;let[s,n,o]=M(t,i,r),a=o!==t,l=L(e),c=l[o]||{},h=t.startsWith(".");if(void 0!==n){if(!Object.keys(c).length)return;N(e,l,o,n,s?i:null);return}if(h)for(let i of Object.keys(l)){var d=t.slice(1);for(let[t,r]of Object.entries(l[i]||{}))t.includes(d)&&N(e,l,i,r.callable,r.delegationSelector)}for(let[i,r]of Object.entries(c)){let s=i.replace(S,"");(!a||t.includes(s))&&N(e,l,o,r.callable,r.delegationSelector)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;let r=g(),s=R(t),n=null,o=!0,a=!0,l=!1;t!==s&&r&&(n=r.Event(t,i),r(e).trigger(n),o=!n.isPropagationStopped(),a=!n.isImmediatePropagationStopped(),l=n.isDefaultPrevented());let c=D(new Event(t,{bubbles:o,cancelable:!0}),i);return l&&c.preventDefault(),a&&e.dispatchEvent(c),c.defaultPrevented&&n&&n.preventDefault(),c}};function D(e,t={}){for(let[i,r]of Object.entries(t))try{e[i]=r}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>r})}return e}function F(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function U(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}let B={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${U(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${U(t)}`)},getDataAttributes(e){if(!e)return{};let t={};for(let i of Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let r=i.replace(/^bs/,"");t[r=r.charAt(0).toLowerCase()+r.slice(1)]=F(e.dataset[i])}return t},getDataAttribute:(e,t)=>F(e.getAttribute(`data-bs-${U(t)}`))},z=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw 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){let i=h(t)?B.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...h(t)?B.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[i,r]of Object.entries(t)){let t=e[i],s=h(t)?"element":a(t);if(!new RegExp(r).test(s))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}}},q=class extends z{constructor(e,t){if(super(),!(e=d(e)))return;this._element=e,this._config=this._getConfig(t),s.set(this._element,this.constructor.DATA_KEY,this)}dispose(){for(let e of(s.remove(this._element,this.constructor.DATA_KEY),j.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this)))this[e]=null}_queueCallback(e,t,i=!0){w(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return s.get(d(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.6"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},K=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map(e=>o(e)).join(","):null},H={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){let i=[],r=e.parentNode.closest(t);for(;r;)i.push(r),r=r.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){let t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!f(e)&&u(e))},getSelectorFromElement(e){let t=K(e);return t&&H.findOne(t)?t:null},getElementFromSelector(e){let t=K(e);return t?H.findOne(t):null},getMultipleElementsFromSelector(e){let t=K(e);return t?H.find(t):[]}},W=".bs.collapse",V=`show${W}`,G=`shown${W}`,X=`hide${W}`,Y=`hidden${W}`,J=`click${W}.data-api`,Z="show",Q="collapse",ee="collapsing",et=`:scope .${Q} .${Q}`,ei='[data-bs-toggle="collapse"]',er={parent:null,toggle:!0},es={parent:"(null|element)",toggle:"boolean"};class en extends q{constructor(e,t){for(let i of(super(e,t),this._isTransitioning=!1,this._triggerArray=[],H.find(ei))){let e=H.getSelectorFromElement(i),t=H.find(e).filter(e=>e===this._element);null!==e&&t.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return er}static get DefaultType(){return es}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>en.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning||j.trigger(this._element,V).defaultPrevented)return;for(let t of e)t.hide();let t=this._getDimension();this._element.classList.remove(Q),this._element.classList.add(ee),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let i=t[0].toUpperCase()+t.slice(1),r=`scroll${i}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ee),this._element.classList.add(Q,Z),this._element.style[t]="",j.trigger(this._element,G)},this._element,!0),this._element.style[t]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||j.trigger(this._element,X).defaultPrevented)return;let e=this._getDimension();for(let t of(this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,p(this._element),this._element.classList.add(ee),this._element.classList.remove(Q,Z),this._triggerArray)){let e=H.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ee),this._element.classList.add(Q),j.trigger(this._element,Y)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(Z)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=d(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent)for(let e of this._getFirstLevelChildren(ei)){let t=H.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(e){let t=H.find(et,this._config.parent);return H.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){let t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){let i=en.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw TypeError(`No method named "${e}"`);i[e]()}})}}j.on(document,J,ei,function(e){for(let t of(("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault(),H.getMultipleElementsFromSelector(this)))en.getOrCreateInstance(t,{toggle:!1}).toggle()}),y(en);/*
32
32
  * IRIS Interactive
33
33
  *
34
34
  * NOTICE OF LICENSE
@@ -137,6 +137,8 @@
137
137
  /* Button
138
138
  /* ============================================= */
139
139
  @mixin button {
140
+ width: auto;
141
+ height: auto;
140
142
  text-decoration: none;
141
143
  box-shadow: none;
142
144
  display: inline-flex;