PageSourceSearch

https://www.urbanekuensteruhr.de/polyfills-VOF2R5BV.js

js urbanekuensteruhr.de collected 2026-10-02 12:37:29 UTC 10,770 bytes, 64 lines download raw bytes

vendor: 10,770 bytes, lines 1-64
1var P=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:o="",...r}={}){super(e,r),this.oldState=String(t||""),this.newState=String(o||"")}},C=new WeakMap;function V(e,t,o){C.set(e,setTimeout(()=>{C.has(e)&&e.dispatchEvent(new P("toggle",{cancelable:!1,oldState:t,newState:o}))},0))}var x=globalThis.ShadowRoot||function(){},G=globalThis.HTMLDialogElement||function(){},L=new WeakMap,f=new WeakMap,p=new WeakMap,w=new WeakMap;function A(e){return w.get(e)||"hidden"}var k=new WeakMap;function E(e){return[...e].pop()}function K(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let o=A(t);e.popoverTargetAction==="show"&&o==="showing"||e.popoverTargetAction==="hide"&&o==="hidden"||(o==="showing"?y(t,!0,!0):h(t,!1)&&(k.set(t,e),I(t)))}function h(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&A(e)!=="showing"||!t&&A(e)!=="hidden"||e instanceof G&&e.hasAttribute("open")||document.fullscreenElement===e)}function W(e){if(!e)return 0;let t=f.get(document)||new Set,o=p.get(document)||new Set;return o.has(e)?[...o].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function Q(e){let t=$(e),o=J(e);return W(t)>W(o)?t:o}function m(e){let t,o=p.get(e)||new Set,r=f.get(e)||new Set,i=o.size>0?o:r.size>0?r:null;return i?(t=E(i),t.isConnected?t:(i.delete(t),m(e))):null}function q(e){for(let t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function b(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?b(e.parentNode):e}function $(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&w.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||b(e),e instanceof x&&(e=e.host),e instanceof Document)return}}function J(e){for(;e;){let t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||b(e),e instanceof x&&(e=e.host),e instanceof Document)return}}function z(e,t){let o=new Map,r=0;for(let u of t||[])o.set(u,r),r+=1;o.set(e,r),r+=1;let i=null;function s(u){if(!u)return;let l=!1,n=null,a=null;for(;!l;){if(n=$(u)||null,n===null||!o.has(n))return;(e.popover==="hint"||n.popover==="auto")&&(l=!0),l||(u=n.parentElement)}a=o.get(n),(i===null||o.get(i)<a)&&(i=n)}return s(e.parentElement||b(e)),i}function X(e){return e.hidden||e instanceof x||(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&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href===""?!1:typeof e.tabIndex=="number"&&e.tabIndex!==-1}function Y(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let o=t.querySelector("[autofocus]");if(o)return o;{let s=t.querySelectorAll("slot");for(let u of s){let l=u.assignedElements({flatten:!0});for(let n of l){if(n.hasAttribute("autofocus"))return n;if(o=n.querySelector("[autofocus]"),o)return o}}}let r=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){if(X(i))return i;i=r.nextNode()}}function Z(e){var t;(t=Y(e))==null||t.focus()}var M=new WeakMap;function I(e){if(!h(e,!1))return;let t=e.ownerDocument;if(!e.dispatchEvent(new P("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!h(e,!1))return;let o=!1,r=e.popover,i=null,s=z(e,f.get(t)||new Set),u=z(e,p.get(t)||new Set);if(r==="auto"&&(R(p.get(t)||new Set,o,!0),v(s||t,o,!0),i="auto"),r==="hint"&&(u?(v(u,o,!0),i="hint"):(R(p.get(t)||new Set,o,!0),s?(v(s,o,!0),i="auto"):i="hint")),r==="auto"||r==="hint"){if(r!==e.popover||!h(e,!1))return;m(t)||(o=!0),i==="auto"?(f.has(t)||f.set(t,new Set),f.get(t).add(e)):i==="hint"&&(p.has(t)||p.set(t,new Set),p.get(t).add(e))}M.delete(e);let l=t.activeElement;e.classList.add(":popover-open"),w.set(e,"showing"),L.has(t)||L.set(t,new Set),L.get(t).add(e),U(k.get(e),!0),Z(e),o&&l&&e.popover==="auto"&&M.set(e,l),V(e,"closed","open")}function y(e,t=!1,o=!1){var r,i;if(!h(e,!0))return;let s=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(v(e,t,o),!h(e,!0)))return;let u=f.get(s)||new Set,l=u.has(e)&&E(u)===e;if(U(k.get(e),!1),k.delete(e),o&&(e.dispatchEvent(new P("beforetoggle",{oldState:"open",newState:"closed"})),l&&E(u)!==e&&v(e,t,o),!h(e,!0)))return;(r=L.get(s))==null||r.delete(e),u.delete(e),(i=p.get(s))==null||i.delete(e),e.classList.remove(":popover-open"),w.set(e,"hidden"),o&&V(e,"open","closed");let n=M.get(e);n&&(M.delete(e),t&&n.focus())}function ee(e,t=!1,o=!1){let r=m(e);for(;r;)y(r,t,o),r=m(e)}function R(e,t=!1,o=!1){let r=q(e);for(;r;)y(r,t,o),r=q(e)}function _(e,t,o,r){let i=!1,s=!1;for(;i||!s;){s=!0;let u=null,l=!1;for(let n of t)if(n===e)l=!0;else if(l){u=n;break}if(!u)return;for(;A(u)==="showing"&&t.size;)y(E(t),o,r);t.has(e)&&E(t)!==e&&(i=!0),i&&(r=!1)}}function v(e,t,o){var r,i;let s=e.ownerDocument||e;if(e instanceof Document)return ee(s,t,o);if((r=p.get(s))!=null&&r.has(e)){_(e,p.get(s),t,o);return}R(p.get(s)||new Set,t,o),(i=f.get(s))!=null&&i.has(e)&&_(e,f.get(s),t,o)}var T=new WeakMap;function j(e){if(!e.isTrusted)return;let t=e.composedPath()[0];if(!t)return;let o=t.ownerDocument;if(!m(o))return;let i=Q(t);if(i&&e.type==="pointerdown")T.set(o,i);else if(e.type==="pointerup"){let s=T.get(o)===i;T.delete(o),s&&v(i||o,!1,!0)}}var H=new WeakMap;function U(e,t=!1){if(!e)return;H.has(e)||H.set(e,e.getAttribute("aria-expanded"));let o=e.popoverTargetElement;if(o instanceof HTMLElement&&o.popover==="auto")e.setAttribute("aria-expanded",String(t));else{let r=H.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var B=globalThis.ShadowRoot||function(){};function te(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function d(e,t,o){let r=e[t];Object.defineProperty(e,t,{value(i){return r.call(this,o(i))}})}var oe=/(^|[^\\]):popover-open\b/g;function ne(){return typeof globalThis.CSSLayerBlockRule=="function"}function re(){let e=ne();return`
2${e?"@layer popover-polyfill {":""}
3  :where([popover]) {
4    position: fixed;
5    z-index: 2147483647;
6    inset: 0;
7    padding: 0.25em;
8    width: fit-content;
9    height: fit-content;
10    border-width: initial;
11    border-color: initial;
12    border-image: initial;
13    border-style: solid;
14    background-color: canvas;
15    color: canvastext;
16    overflow: auto;
17    margin: auto;
18  }
19
20  :where([popover]:not(.\\:popover-open)) {
21    display: none;
22  }
23
24  :where(dialog[popover].\\:popover-open) {
25    display: block;
26  }
27
28  :where(dialog[popover][open]) {
29    display: revert;
30  }
31
32  :where([anchor].\\:popover-open) {
33    inset: auto;
34  }
35
36  :where([anchor]:popover-open) {
37    inset: auto;
38  }
39
40  @supports not (background-color: canvas) {
41    :where([popover]) {
42      background-color: white;
43      color: black;
44    }
45  }
46
47  @supports (width: -moz-fit-content) {
48    :where([popover]) {
49      width: -moz-fit-content;
50      height: -moz-fit-content;
51    }
52  }
53
54  @supports not (inset: 0) {
55    :where([popover]) {
56      top: 0;
57      left: 0;
58      right: 0;
59      bottom: 0;
60    }
61  }
62${e?"}":""}
63`}var g=null;function D(e){let t=re();if(g===null)try{g=new CSSStyleSheet,g.replaceSync(t)}catch{g=!1}if(g===!1){let o=document.createElement("style");o.textContent=t,e instanceof Document?e.head.prepend(o):e.prepend(o)}else e.adoptedStyleSheets=[g,...e.adoptedStyleSheets]}function ie(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||P;function e(n){return n?.includes(":popover-open")&&(n=n.replace(oe,"$1.\\:popover-open")),n}d(Document.prototype,"querySelector",e),d(Document.prototype,"querySelectorAll",e),d(Element.prototype,"querySelector",e),d(Element.prototype,"querySelectorAll",e),d(Element.prototype,"matches",e),d(Element.prototype,"closest",e),d(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let n=(this.getAttribute("popover")||"").toLowerCase();return n===""||n=="auto"?"auto":n=="hint"?"hint":"manual"},set(n){n===null?this.removeAttribute("popover"):this.setAttribute("popover",n)}},showPopover:{enumerable:!0,configurable:!0,value(n={}){I(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){y(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(n={}){return typeof n=="boolean"&&(n={force:n}),w.get(this)==="showing"&&n.force===void 0||n.force===!1?y(this,!0,!0):(n.force===void 0||n.force===!0)&&I(this),w.get(this)==="showing"}}});let t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(n){let a=t.call(this,n);return D(a),a}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let n=o.call(this);return n.shadowRoot&&D(n.shadowRoot),n}}});let r=new WeakMap;function i(n){Object.defineProperties(n.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(a){if(a===null)this.removeAttribute("popovertarget"),r.delete(this);else if(a instanceof Element)this.setAttribute("popovertarget",""),r.set(this,a);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;let a=r.get(this);if(a&&a.isConnected)return a;if(a&&!a.isConnected)return r.delete(this),null;let c=b(this),S=this.getAttribute("popovertarget");return(c instanceof Document||c instanceof B)&&S&&c.getElementById(S)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let a=(this.getAttribute("popovertargetaction")||"").toLowerCase();return a==="show"||a==="hide"?a:"toggle"},set(a){this.setAttribute("popovertargetaction",a)}}})}i(HTMLButtonElement),i(HTMLInputElement);let s=n=>{if(n.defaultPrevented)return;let a=n.composedPath(),c=a[0];if(!(c instanceof Element)||c?.shadowRoot)return;let S=b(c);if(!(S instanceof B||S instanceof Document))return;let O=a.find(F=>{var N;return(N=F.matches)==null?void 0:N.call(F,"[popovertargetaction],[popovertarget]")});if(O){K(O),n.preventDefault();return}},u=n=>{let a=n.key,c=n.target;!n.defaultPrevented&&c&&(a==="Escape"||a==="Esc")&&v(c.ownerDocument,!0,!0)};(n=>{n.addEventListener("click",s),n.addEventListener("keydown",u),n.addEventListener("pointerdown",j),n.addEventListener("pointerup",j)})(document),D(document)}te()||ie();
64//# sourceMappingURL=polyfills-VOF2R5BV.js.map

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.