PageSourceSearch

https://fundacionsegundaparte.org/assets/vendor/bootstrap/js/dist/dropdown-NeYjmnj.js

js fundacionsegundaparte.org collected 2026-10-04 19:58:34 UTC 16,945 bytes, 7 lines download raw bytes

1/**
2 * Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
3 * Original file: /npm/[email protected]/js/dist/dropdown.js
4 *
5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6 */
7import e from"@popperjs/core";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var t={exports:{}},n={exports:{}},o={exports:{}};o.exports=function(){const e=new Map,t={set(t,n,o){e.has(t)||e.set(t,new Map);const r=e.get(t);r.has(n)||0===r.size?r.set(n,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const o=e.get(t);o.delete(n),0===o.size&&e.delete(t)}};return t}();var r={exports:{}},s={exports:{}};!function(e){const t=1e6,n=1e3,o="transitionend",r=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),s=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),i=e=>{do{e+=Math.floor(Math.random()*t)}while(document.getElementById(e));return e},a=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:o}=window.getComputedStyle(e);const r=Number.parseFloat(t),s=Number.parseFloat(o);return r||s?(t=t.split(",")[0],o=o.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(o))*n):0},c=e=>{e.dispatchEvent(new Event(o))},l=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),u=e=>l(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(r(e)):null,p=e=>{if(!l(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},d=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),f=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?f(e.parentNode):null},g=()=>{},m=e=>{e.offsetHeight},h=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,b=[],y=e=>{"loading"===document.readyState?(b.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of b)e()})),b.push(e)):e()},_=()=>"rtl"===document.documentElement.dir,v=e=>{y((()=>{const t=h();if(t){const n=e.NAME,o=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=o,e.jQueryInterface)}}))},E=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,w=(e,t,n=!0)=>{if(!n)return void E(e);const r=5,s=a(t)+r;let i=!1;const l=({target:n})=>{n===t&&(i=!0,t.removeEventListener(o,l),E(e))};t.addEventListener(o,l),setTimeout((()=>{i||c(t)}),s)},x=(e,t,n,o)=>{const r=e.length;let s=e.indexOf(t);return-1===s?!n&&o?e[r-1]:e[0]:(s+=n?1:-1,o&&(s=(s+r)%r),e[Math.max(0,Math.min(s,r-1))])};e.defineJQueryPlugin=v,e.execute=E,e.executeAfterTransition=w,e.findShadowRoot=f,e.getElement=u,e.getNextActiveElement=x,e.getTransitionDurationFromElement=a,e.getUID=i,e.getjQuery=h,e.isDisabled=d,e.isElement=l,e.isRTL=_,e.isVisible=p,e.noop=g,e.onDOMContentLoaded=y,e.parseSelector=r,e.reflow=m,e.toType=s,e.triggerTransitionEnd=c,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(s.exports),r.exports=function(e){const t=/[^.]*(?=\..*)\.|.*/,n=/\..*/,o=/::\d+$/,r={};let s=1;
vendor: 13,237 bytes, line 7
7const i={mouseenter:"mouseover",mouseleave:"mouseout"},a=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function c(e,t){return t&&`${t}::${s++}`||e.uidEvent||s++}function l(e){const t=c(e);return e.uidEvent=t,r[t]=r[t]||{},r[t]}function u(e,t){return function n(o){return _(o,{delegateTarget:e}),n.oneOff&&y.off(e,o.type,t),t.apply(e,[o])}}function p(e,t,n){return function o(r){const s=e.querySelectorAll(t);for(let{target:i}=r;i&&i!==this;i=i.parentNode)for(const a of s)if(a===i)return _(r,{delegateTarget:i}),o.oneOff&&y.off(e,r.type,t,n),n.apply(i,[r])}}function d(e,t,n=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function f(e,t,n){const o="string"==typeof t,r=o?n:t||n;let s=b(e);return a.has(s)||(s=e),[o,r,s]}function g(e,n,o,r,s){if("string"!=typeof n||!e)return;let[a,g,m]=f(n,o,r);if(n in i){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};g=e(g)}const h=l(e),b=h[m]||(h[m]={}),y=d(b,g,a?o:null);if(y)return void(y.oneOff=y.oneOff&&s);const _=c(g,n.replace(t,"")),v=a?p(e,o,g):u(e,g);v.delegationSelector=a?o:null,v.callable=g,v.oneOff=s,v.uidEvent=_,b[_]=v,e.addEventListener(m,v,a)}function m(e,t,n,o,r){const s=d(t[n],o,r);s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}function h(e,t,n,o){const r=t[n]||{};for(const[s,i]of Object.entries(r))s.includes(o)&&m(e,t,n,i.callable,i.delegationSelector)}function b(e){return e=e.replace(n,""),i[e]||e}const y={on(e,t,n,o){g(e,t,n,o,!1)},one(e,t,n,o){g(e,t,n,o,!0)},off(e,t,n,r){if("string"!=typeof t||!e)return;const[s,i,a]=f(t,n,r),c=a!==t,u=l(e),p=u[a]||{},d=t.startsWith(".");if(void 0===i){if(d)for(const n of Object.keys(u))h(e,u,n,t.slice(1));for(const[n,r]of Object.entries(p)){const s=n.replace(o,"");c&&!t.includes(s)||m(e,u,a,r.callable,r.delegationSelector)}}else{if(!Object.keys(p).length)return;m(e,u,a,i,s?n:null)}},trigger(t,n,o){if("string"!=typeof n||!t)return null;const r=e.getjQuery();let s=null,i=!0,a=!0,c=!1;n!==b(n)&&r&&(s=r.Event(n,o),r(t).trigger(s),i=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const l=_(new Event(n,{bubbles:i,cancelable:!0}),o);return c&&l.preventDefault(),a&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function _(e,t={}){for(const[n,o]of Object.entries(t))try{e[n]=o}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>o})}return e}return y}(s.exports);var i={exports:{}},a={exports:{}};a.exports=function(){function e(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(t){return e}}function t(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}return{setDataAttribute(e,n,o){e.setAttribute(`data-bs-${t(n)}`,o)},removeDataAttribute(e,n){e.removeAttribute(`data-bs-${t(n)}`)},getDataAttributes(t){if(!t)return{};const n={},o=Object.keys(t.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const r of o){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1),n[o]=e(t.dataset[r])}return n},getDataAttribute:(n,o)=>e(n.getAttribute(`data-bs-${t(o)}`))}}(),i.exports=function(e,t){class n{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(n,o){const r=t.isElement(o)?e.getDataAttribute(o,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...t.isElement(o)?e.getDataAttributes(o):{},..."object"==typeof n?n:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[o,r]of Object.entries(n)){const n=e[o],s=t.isElement(n)?"element":t.toType(n);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${s}" but expected type "${r}".`)}}}return n}(a.exports,s.exports),n.exports=function(e,t,n,o){const r="5.3.8";class s extends n{constructor(t,n){super(),(t=o.getElement(t))&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),t.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){o.executeAfterTransition(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(t){return e.get(o.getElement(t),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return r}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}return s}(o.exports,r.exports,i.exports,s.exports);var c={exports:{}};c.exports=function(e){const t=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((t=>e.parseSelector(t))).join(","):null},n={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){const n=[];let o=e.parentNode.closest(t);for(;o;)n.push(o),o=o.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(t){const n=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(n,t).filter((t=>!e.isDisabled(t)&&e.isVisible(t)))},getSelectorFromElement(e){const o=t(e);return o&&n.findOne(o)?o:null},getElementFromSelector(e){const o=t(e);return o?n.findOne(o):null},getMultipleElementsFromSelector(e){const o=t(e);return o?n.find(o):[]}};return n}(s.exports),t.exports=function(e,t,n,o,r,s){function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const a=i(e),c="dropdown",l=".bs.dropdown",u=".data-api",p="Escape",d="Tab",f="ArrowUp",g="ArrowDown",m=2,h=`hide${l}`,b=`hidden${l}`,y=`show${l}`,_=`shown${l}`,v=`click${l}${u}`,E=`keydown${l}${u}`,w=`keyup${l}${u}`,x="show",A="dropup",C="dropend",S="dropstart",O="dropup-center",T="dropdown-center",N='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',j=`${N}.${x}`,D=".dropdown-menu",$=".navbar",L=".navbar-nav",M=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",P=s.isRTL()?"top-end":"top-start",k=s.isRTL()?"top-start":"top-end",I=s.isRTL()?"bottom-end":"bottom-start",R=s.isRTL()?"bottom-start":"bottom-end",K=s.isRTL()?"left-start":"right-start",q=s.isRTL()?"right-start":"left-start",Q="top",V="bottom",Y={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},F={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class B extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=r.next(this._element,D)[0]||r.prev(this._element,D)[0]||r.findOne(D,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Y}static get DefaultType(){return F}static get NAME(){return c}toggle(){return this._isShown()?this.hide():this.show()}show(){if(s.isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!n.trigger(this._element,y,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(L))for(const e of[].concat(...document.body.children))n.on(e,"mouseover",s.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(x),this._element.classList.add(x),n.trigger(this._element,_,e)}}hide(){if(s.isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!n.trigger(this._element,h,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))n.off(e,"mouseover",s.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(x),this._element.classList.remove(x),this._element.setAttribute("aria-expanded","false"),o.removeDataAttribute(this._menu,"popper"),n.trigger(this._element,b,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!s.isElement(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${c.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===a)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:s.isElement(this._config.reference)?e=s.getElement(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=a.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(x)}_getPlacement(){const e=this._parent;if(e.classList.contains(C))return K;if(e.classList.contains(S))return q;if(e.classList.contains(O))return Q;if(e.classList.contains(T))return V;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains(A)?t?k:P:t?R:I}_detectNavbar(){return null!==this._element.closest($)}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const 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)&&(o.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...s.execute(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=r.find(M,this._menu).filter((e=>s.isVisible(e)));n.length&&s.getNextActiveElement(n,t,e===g,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=B.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e.button===m||"keyup"===e.type&&e.key!==d)return;const t=r.find(j);for(const n of t){const t=B.getInstance(n);if(!t||!1===t._config.autoClose)continue;const o=e.composedPath(),r=o.includes(t._menu);if(o.includes(t._element)||"inside"===t._config.autoClose&&!r||"outside"===t._config.autoClose&&r)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&e.key===d||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const s={relatedTarget:t._element};"click"===e.type&&(s.clickEvent=e),t._completeHide(s)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key===p,o=[f,g].includes(e.key);if(!o&&!n)return;if(t&&!n)return;e.preventDefault();const s=this.matches(N)?this:r.prev(this,N)[0]||r.next(this,N)[0]||r.findOne(N,e.delegateTarget.parentNode),i=B.getOrCreateInstance(s);if(o)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&&(e.stopPropagation(),i.hide(),s.focus())}}return n.on(document,E,N,B.dataApiKeydownHandler),n.on(document,E,D,B.dataApiKeydownHandler),n.on(document,v,B.clearMenus),n.on(document,w,B.clearMenus),n.on(document,v,N,(function(e){e.preventDefault(),B.getOrCreateInstance(this).toggle()})),s.defineJQueryPlugin(B),B}(e,n.exports,r.exports,a.exports,c.exports,s.exports);var l=t.exports;export{l as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.