PageSourceSearch

https://www.kashiwabara-assist.co.jp/_astro/Accordion.astro_astro_type_script_index_0_lang.Cj__KNBb.js

js kashiwabara-assist.co.jp collected 2026-10-04 19:07:56 UTC 1,760 bytes, 1 lines download raw bytes

1const l={duration:300,easing:"ease-in-out",printAll:!1},d=(e,n={})=>{if(!e){console.error("initializeDetailsAccordion: Details element is not found.");return}const r=e.querySelector("summary"),t=e.querySelector("summary + *");if(!r||!t){console.error("initializeDetailsAccordion: Elements required for initializeDetailsAccordion are not found.");return}const o={...l,...n},i=e.getAttribute("name")||null;r.addEventListener("click",c=>p(c,e,t,o,i),!1),o.printAll&&(window.addEventListener("beforeprint",()=>g(e,i)),window.addEventListener("afterprint",()=>y(e,i)))};let u=!1;const a=(e,n,r,t,o)=>{if(e.open===o)return;u=!0,t&&e.removeAttribute("name"),o&&(e.open=!0),n.style.overflow="clip";const{blockSize:i}=window.getComputedStyle(n),c=o?[{maxBlockSize:"0"},{maxBlockSize:i}]:[{maxBlockSize:i},{maxBlockSize:"0"}],f={duration:window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:Math.max(0,r.duration||0),easing:r.easing},m=()=>{requestAnimationFrame(()=>{n.style.overflow="",o||(e.open=!1),t&&e.setAttribute("name",t),u=!1})};requestAnimationFrame(()=>{n.animate(c,f).addEventListener("finish",m)})},A=(e,n,r)=>{if(!r)return;const t=document.querySelector(`details[name="${r}"][open]`);if(!t||t===e)return;const o=t.querySelector("summary + *");o&&a(t,o,n,r,!1)},p=(e,n,r,t,o)=>{e.preventDefault(),!u&&(a(n,r,t,o,!n.open),n.open&&A(n,t,o))},s="data-open-status",g=(e,n)=>{e&&(e.setAttribute(s,String(e.open)),n&&e.removeAttribute("name"),e.open=!0)},y=(e,n)=>{e&&(n&&e.setAttribute("name",n),e.open=e.getAttribute(s)==="true",e.removeAttribute(s))};function S(){const e=document.querySelectorAll("details");if(e.length===0)return;const n={duration:300,easing:"ease-in-out"};e.forEach(r=>{d(r,n)})}document.addEventListener("DOMContentLoaded",S);

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.