1"use strict";(self.webpackChunkpixfort_core=self.webpackChunkpixfort_core||[]).push([[2435],{8085(t,e,i){i.d(e,{default:()=>f});const h=".pix-highlighted-scroll-mask",o=".pix-highlight-mask-item",n=".pix-highlight-mask-bg",a=new Set;let s=!1,r=null;function l(t,e=0,i=100){return Math.min(Math.max(t,e),i)}function g(t,e,i=!0){const h=l(e);t.__pixHighlightMaskProgress=h,t.style.setProperty("--pix-highlight-mask-progress",`${h.toFixed(3)}%`),i&&c(t)}function c(t,e=!1){const i=t.matches?.(n)?t:t.closest(n);if(!i)return;const h=Array.from(i.querySelectorAll(o));let a=0,s=0;h.forEach(t=>{const i=e&&t.__pixHighlightMaskWidth||1;a+=(t.__pixHighlightMaskProgress||0)*i,s+=i}),i.style.setProperty("--pix-highlight-mask-bg-progress",`${l(s?a/s:0).toFixed(3)}%`)}function m(t,e){const i="rtl"===e?(t,e)=>e.right-t.right:(t,e)=>t.left-e.left;return Array.from(t.querySelectorAll(o)).filter(t=>null!==t.offsetParent).map(t=>{const i=t.getBoundingClientRect(),h=function(t,e){if(!t.classList.contains("pix-highlight-mask-image-expand-scale"))return{width:e.width,height:e.height,top:e.top,bottom:e.bottom};const i=window.getComputedStyle(t),h=t.querySelector("img"),o=h?.getBoundingClientRect(),n=Number.parseFloat(i.getPropertyValue("--pix-highlight-mask-image-width"))||0,a=Number.parseFloat(h?.getAttribute("width"))||h?.naturalWidth||0,s=Number.parseFloat(h?.getAttribute("height"))||h?.naturalHeight||0,r=n&&a&&s?n*(s/a):0,l=e.height||o?.height||r||n,g=e.height?e.top:o?.top||e.top;return{width:e.width||n,height:l,top:g,bottom:e.height?e.bottom:g+l}}(t,i);return{item:t,left:i.width||"rtl"!==e?i.left:i.right-h.width,right:i.width||"rtl"===e?i.right:i.left+h.width,width:h.width,height:h.height,top:h.top,bottom:h.bottom,centerY:h.top+h.height/2,tolerance:Math.max(8,Math.min(28,.45*h.height))}}).filter(t=>t.width>0&&t.height>0).sort((t,e)=>t.centerY-e.centerY||t.left-e.left).reduce((t,e)=>{const i=t[t.length-1];return!i||Math.abs(i.centerY-e.centerY)>Math.max(i.tolerance,e.tolerance)?(t.push({top:e.top,bottom:e.bottom,centerY:e.centerY,tolerance:e.tolerance,items:[e]}),t):(i.items.push(e),i.top=Math.min(i.top,e.top),i.bottom=Math.max(i.bottom,e.bottom),i.centerY+=(e.centerY-i.centerY)/i.items.length,i.tolerance=Math.max(i.tolerance,e.tolerance),t)},[]).map(t=>(t.items.sort(i),t.width=t.items.reduce((i,h,o)=>{const n=t.items[o-1],a=n?"rtl"===e?n.left-h.right:h.left-n.right:0;return h.offset=i+Math.max(0,a),h.offset+h.width},0),t))}function p(t){if(!t.isConnected)return void a.delete(t);const e=window.innerHeight||document.documentElement.clientHeight,i=window.pageYOffset||document.documentElement.scrollTop||0,h=.7*e,o=window.getComputedStyle(t).direction,s=t.classList.contains("pix-highlight-mask-linear"),r=new Set;t.classList.toggle("pix-highlight-mask-rtl",s&&"rtl"===o),m(t,o).forEach(t=>{const e=Math.max(1,t.bottom-t.top),o=t.top+i-h;if(s){const h=l((i-o)/e,0,1),a=t.width*h;return void t.items.forEach(t=>{t.item.__pixHighlightMaskWidth=t.width,function(t,e){const i=l(e);t.__pixHighlightMaskRaf&&(cancelAnimationFrame(t.__pixHighlightMaskRaf),t.__pixHighlightMaskRaf=null),t.__pixHighlightMaskReady=!0,t.__pixHighlightMaskTarget=i,t.__pixHighlightMaskVelocity=0,t.classList.toggle("pix-highlight-mask-complete",t.classList.contains("pix-highlight-mask-image-reveal")?i>0:i>=100),g(t,i,!1)}(t.item,(a-t.offset)/t.width*100);const e=t.item.closest(n);e&&r.add(e)})}const a=e/Math.max(1,t.items.length);t.items.forEach((t,e)=>{!function(t,e){const i=e?100:0;if(t.classList.toggle("pix-highlight-mask-complete",e),!0!==t.__pixHighlightMaskReady)return t.__pixHighlightMaskReady=!0,t.__pixHighlightMaskTarget=i,t.__pixHighlightMaskVelocity=0,void g(t,i);if(t.__pixHighlightMaskTarget===i)return;t.__pixHighlightMaskTarget=i,c(t),t.__pixHighlightMaskRaf&&cancelAnimationFrame(t.__pixHighlightMaskRaf);let h="number"==typeof t.__pixHighlightMaskProgress?t.__pixHighlightMaskProgress:i,o=t.__pixHighlightMaskVelocity||0,n=performance.now();t.__pixHighlightMaskRaf=requestAnimationFrame(function e(a){const s=Math.min((a-n)/1e3,.033);if(n=a,o+=(-120*(h-i)-21*o)*s,h+=o*s,Math.abs(i-h)<.04&&Math.abs(o)<.04)return t.__pixHighlightMaskVelocity=0,t.__pixHighlightMaskRaf=null,void g(t,i);t.__pixHighlightMaskVelocity=o,g(t,h),t.__pixHighlightMaskRaf=requestAnimationFrame(e)})}(t.item,i>=o+a*e)})}),r.forEach(t=>c(t,!0))}function d(){r=null,a.forEach(p)}function u(){null===r&&(r=window.requestAnimationFrame(d))}function f(t=document){const e=t?.jquery?t[0]||document:t||document,i=e.matches?.(h)?[e]:Array.from(e.querySelectorAll?.(h)||[]);for(const t of i)a.add(t);a.size&&(s||(s=!0,window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u,{passive:!0}),window.addEventListener("pageshow",u,{passive:!0}),document.fonts&&document.fonts.ready&&document.fonts.ready.then(u)),u())}}}]);
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.