PageSourceSearch

https://www.bonfiglioli.com/build/136.e510feaa.js

js bonfiglioli.com collected 2026-09-25 18:41:45 UTC 11,297 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[136],{9136:function(e,t,n){n.r(t);var o=class extends Event{oldState;newState;constructor(e,t={}){const n=Object.assign({},t);delete n.oldState,delete n.newState,super(e,n),this.oldState=String(t.oldState||""),this.newState=String(t.newState||"")}},r=new WeakMap;function i(e,t,n){r.set(e,setTimeout((()=>{r.has(e)&&e.dispatchEvent(new o("toggle",{cancelable:!1,oldState:t,newState:n}))}),0))}var a=globalThis.ShadowRoot||function(){},l=globalThis.HTMLDialogElement||function(){},s=new WeakMap,u=new WeakMap,c=new WeakMap,p=new WeakMap;function f(e){return p.get(e)||"hidden"}var d=new WeakMap;function h(e){return[...e].pop()}function g(e,t){return("auto"===e.popover||"manual"===e.popover||"hint"===e.popover)&&(!!e.isConnected&&((!t||"showing"===f(e))&&(!(!t&&"hidden"!==f(e))&&(!(e instanceof l&&e.hasAttribute("open"))&&document.fullscreenElement!==e))))}function v(e){if(!e)return 0;const t=u.get(document)||new Set,n=c.get(document)||new Set;return n.has(e)?[...n].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function m(e){const t=S(e),n=function(e){for(;e;){const t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if((e=e.parentElement||E(e))instanceof a&&(e=e.host),e instanceof Document)return}}(e);return v(t)>v(n)?t:n}function w(e){let t;const n=c.get(e)||new Set,o=u.get(e)||new Set,r=n.size>0?n:o.size>0?o:null;return r?(t=h(r),t.isConnected?t:(r.delete(t),w(e))):null}function b(e){for(const t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function E(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?E(e.parentNode):e}function S(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===p.get(e))return e;if((e=e instanceof Element&&e.assignedSlot||e.parentElement||E(e))instanceof a&&(e=e.host),e instanceof Document)return}}function y(e,t){const n=new Map;let o=0;for(const e of t||[])n.set(e,o),o+=1;n.set(e,o),o+=1;let r=null;return function(t){if(!t)return;let o=!1,i=null;for(;!o;){if(i=S(t)||null,null===i)return;if(!n.has(i))return;"hint"!==e.popover&&"auto"!==i.popover||(o=!0),o||(t=i.parentElement)}const a=n.get(i)??null;(null===r||n.get(r)<a)&&(r=i)}(e.parentElement||E(e)),r}function T(e){return!(e.hidden||e instanceof a)&&((!(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)||!e.disabled)&&(!(e instanceof HTMLInputElement&&"hidden"===e.type)&&(!(e instanceof HTMLAnchorElement&&""===e.href)&&("number"==typeof e.tabIndex&&-1!==e.tabIndex))))}function L(e){var t;null==(t=function(e){if(e.shadowRoot&&!0!==e.shadowRoot.delegatesFocus)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let n=t.querySelector("[autofocus]");if(n)return n;{const e=t.querySelectorAll("slot");for(const t of e){const e=t.assignedElements({flatten:!0});for(const t of e){if(t.hasAttribute("autofocus"))return t;if(n=t.querySelector("[autofocus]"),n)return n}}}const o=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let r=o.currentNode;for(;r;){if(T(r))return r;r=o.nextNode()}}(e))||t.focus()}var M=new WeakMap;function k(e){if(!g(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new o("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!g(e,!1))return;let n=!1;const r=e.popover;let a=null;const l=y(e,u.get(t)||new Set),f=y(e,c.get(t)||new Set);if("auto"===r){H(c.get(t)||new Set,n,!0);O(l||t,n,!0),a="auto"}if("hint"===r&&(f?(O(f,n,!0),a="hint"):(H(c.get(t)||new Set,n,!0),l?(O(l,n,!0),a="auto"):a="hint")),"auto"===r||"hint"===r){if(r!==e.popover||!g(e,!1))return;w(t)||(n=!0),"auto"===a?(u.has(t)||u.set(t,new Set),u.get(t).add(e)):"hint"===a&&(c.has(t)||c.set(t,new Set),c.get(t).add(e))}M.delete(e);const h=t.activeElement;e.classList.add(":popover-open"),p.set(e,"showing"),s.has(t)||s.set(t,new Set),s.get(t).add(e),C(d.get(e),!0),L(e),n&&h&&"auto"===e.popover&&M.set(e,h),i(e,"closed","open")}function A(e,t=!1,n=!1){var r,a;if(!g(e,!0))return;const l=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(O(e,t,n),!g(e,!0)))return;const f=u.get(l)||new Set,v=f.has(e)&&h(f)===e;if(C(d.get(e),!1),d.delete(e),n&&(e.dispatchEvent(new o("beforetoggle",{oldState:"open",newState:"closed"})),v&&h(f)!==e&&O(e,t,n),!g(e,!0)))return;null==(r=s.get(l))||r.delete(e),f.delete(e),null==(a=c.get(l))||a.delete(e),e.classList.remove(":popover-open"),p.set(e,"hidden"),n&&i(e,"open","closed");const m=M.get(e);m&&(M.delete(e),t&&m.focus())}function H(e,t=!1,n=!1){let o=b(e);for(;o;)A(o,t,n),o=b(e)}function D(e,t,n,o){let r=!1,i=!1;for(;r||!i;){i=!0;let a=null,l=!1;for(const n of t)if(n===e)l=!0;else if(l){a=n;break}if(!a)return;for(;"showing"===f(a)&&t.size;)A(h(t),n,o);t.has(e)&&h(t)!==e&&(r=!0),r&&(o=!1)}}function O(e,t,n){var o,r;const i=e.ownerDocument||e;if(e instanceof Document)return function(e,t=!1,n=!1){let o=w(e);for(;o;)A(o,t,n),o=w(e)}(i,t,n);(null==(o=c.get(i))?void 0:o.has(e))?D(e,c.get(i),t,n):(H(c.get(i)||new Set,t,n
1),(null==(r=u.get(i))?void 0:r.has(e))&&D(e,u.get(i),t,n))}var P=new WeakMap;function x(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const n=t.ownerDocument;if(!w(n))return;const o=m(t);if(o&&"pointerdown"===e.type)P.set(n,o);else if("pointerup"===e.type){const e=P.get(n)===o;P.delete(n),e&&O(o||n,!1,!0)}}var N=new WeakMap;function C(e,t=!1){if(!e)return;N.has(e)||N.set(e,e.getAttribute("aria-expanded"));const n=e.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)e.setAttribute("aria-expanded",String(t));else{const t=N.get(e);t?e.setAttribute("aria-expanded",t):e.removeAttribute("aria-expanded")}}var R=globalThis.ShadowRoot||function(){},W="popover-polyfill";function I(e,t,n){const o=e[t];Object.defineProperty(e,t,{value(e){return o.call(this,n(e))}})}var j=/(^|[^\\]):popover-open\b/g;function q(e){var t;const n="function"==typeof globalThis.CSSLayerBlockRule,o=(e??(null==(t=window.POPOVER_POLYFILL_OPTIONS)?void 0:t.layerName)??W).split(".").map(CSS.escape).join(".");return`\n${n?`@layer ${o} {`:""}\n  :where([popover]) {\n    position: fixed;\n    z-index: 2147483647;\n    inset: 0;\n    padding: 0.25em;\n    width: fit-content;\n    height: fit-content;\n    border-width: initial;\n    border-color: initial;\n    border-image: initial;\n    border-style: solid;\n    background-color: canvas;\n    color: canvastext;\n    overflow: auto;\n    margin: auto;\n  }\n\n  :where([popover]:not(.\\:popover-open)) {\n    display: none;\n  }\n\n  :where(dialog[popover].\\:popover-open) {\n    display: block;\n  }\n\n  :where(dialog[popover][open]) {\n    display: revert;\n  }\n\n  :where([anchor].\\:popover-open) {\n    inset: auto;\n  }\n\n  :where([anchor]:popover-open) {\n    inset: auto;\n  }\n\n  @supports not (background-color: canvas) {\n    :where([popover]) {\n      background-color: white;\n      color: black;\n    }\n  }\n\n  @supports (width: -moz-fit-content) {\n    :where([popover]) {\n      width: -moz-fit-content;\n      height: -moz-fit-content;\n    }\n  }\n\n  @supports not (inset: 0) {\n    :where([popover]) {\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n    }\n  }\n${n?"}":""}\n`}var z=null;function F(e,t){const n=q(t);if(null===z)try{(z=new CSSStyleSheet).replaceSync(n)}catch{z=!1}if(!1===z){const t=document.createElement("style");t.textContent=n,e instanceof Document?e.head.prepend(t):e.prepend(t)}else e.adoptedStyleSheets=[z,...e.adoptedStyleSheets]}"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(e){if("undefined"==typeof window)return;const t=null==e?void 0:e.layerName;function n(e){return(null==e?void 0:e.includes(":popover-open"))&&(e=e.replace(j,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||o,I(Document.prototype,"querySelector",n),I(Document.prototype,"querySelectorAll",n),I(Element.prototype,"querySelector",n),I(Element.prototype,"querySelectorAll",n),I(Element.prototype,"matches",n),I(Element.prototype,"closest",n),I(DocumentFragment.prototype,"querySelectorAll",n),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const e=(this.getAttribute("popover")||"").toLowerCase();return""===e||"auto"==e?"auto":"hint"==e?"hint":"manual"},set(e){null===e?this.removeAttribute("popover"):this.setAttribute("popover",e)}},showPopover:{enumerable:!0,configurable:!0,value(e={}){k(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){A(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e={}){return"boolean"==typeof e&&(e={force:e}),"showing"===p.get(this)&&void 0===e.force||!1===e.force?A(this,!0,!0):void 0!==e.force&&!0!==e.force||k(this),"showing"===p.get(this)}}});const r=Element.prototype.attachShadow;r&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){const n=r.call(this,e);return F(n,t),n}}});const i=HTMLElement.prototype.attachInternals;i&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const e=i.call(this);return e.shadowRoot&&F(e.shadowRoot,t),e}}});const a=new WeakMap;function l(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),a.delete(this);else{if(!(e instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),a.set(this,e)}}
1,get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const e=a.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return a.delete(this),null;const t=E(this),n=this.getAttribute("popovertarget");return(t instanceof Document||t instanceof R)&&n&&t.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const e=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===e||"hide"===e?e:"toggle"},set(e){this.setAttribute("popovertargetaction",e)}}})}l(HTMLButtonElement),l(HTMLInputElement);const s=e=>{if(e.defaultPrevented)return;const t=e.composedPath(),n=t[0];if(!(n instanceof Element)||(null==n?void 0:n.shadowRoot))return;const o=E(n);if(!(o instanceof R||o instanceof Document))return;const r=t.find((e=>{var t;return null==(t=e.matches)?void 0:t.call(e,"[popovertargetaction],[popovertarget]")}));return r?(function(e){const t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;const n=f(t);"show"===e.popoverTargetAction&&"showing"===n||"hide"===e.popoverTargetAction&&"hidden"===n||("showing"===n?A(t,!0,!0):g(t,!1)&&(d.set(t,e),k(t)))}(r),void e.preventDefault()):void 0},u=e=>{const t=e.key,n=e.target;e.defaultPrevented||!n||"Escape"!==t&&"Esc"!==t||O(n.ownerDocument,!0,!0)};var c;(c=document).addEventListener("click",s),c.addEventListener("keydown",u),c.addEventListener("pointerdown",x),c.addEventListener("pointerup",x),F(document,t)}()}}]);

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.