1"use strict";(self.webpackChunkpattern_library=self.webpackChunkpattern_library||[]).push([[131],{6877(i,t,n){n.r(t),n.d(t,{default:()=>h});class s{constructor(i){this.el=i,this.summary=i.querySelector(".js-summary"),this.content=i.querySelector(".js-content"),this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.summary.addEventListener("click",i=>this.onClick(i))}onClick(i){i.preventDefault(),this.el.style.overflow="hidden",this.isClosing||!this.el.open?this.open():(this.isExpanding||this.el.open)&&this.shrink()}shrink(){this.isClosing=!0,this.content.setAttribute("tabIndex","-1");const i=`${this.el.offsetHeight}px`,t=`${this.summary.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[i,t]},{duration:400,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.isClosing=!1,this.animation.oncancel=()=>""}open(){this.el.style.height=`${this.el.offsetHeight}px`,this.el.open=!0,this.content.setAttribute("tabIndex","0"),window.requestAnimationFrame(()=>this.expand())}expand(){this.isExpanding=!0;const i=`${this.el.offsetHeight}px`,t=`${this.summary.offsetHeight+this.content.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[i,t]},{duration:400,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.isExpanding=!1,this.animation.oncancel=()=>!1}onAnimationFinish(i){this.el.open=i,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.overflow="",this.el.style.height=""}}class e{constructor(i){i.querySelectorAll("details").forEach(i=>{new s(i)})}}const h=i=>new e(i);n.dn(h)}}]);
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.