PageSourceSearch

https://shizenlearn.com/assets/popup-positioning-exIlhfJJ.js

js shizenlearn.com collected 2026-10-02 01:44:02 UTC 541 bytes, 1 lines download raw bytes

1function P(t,e,x){return Math.max(e,Math.min(t,Math.max(e,x)))}function w({position:t,panelWidth:e,panelHeight:x,writingMode:G,margin:r=8,viewportRect:h}){const l=G?.startsWith("vertical")||G?.startsWith("sideways"),s=h??{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight},o=x??200;let c,f;if(l){const u=s.right-t.x-28-r,A=t.x-s.left-36-r;u>=e?(c=t.x+28,f=t.y-100):A>=e?(c=t.x-36-e,f=t.y-100):(c=t.x-e/2,f=t.y-o)}else c=t.x-e/2,f=t.y;return c=P(c,s.left+r,s.right-e-r),f=P(f,s.top+r,s.bottom-o-r),{left:c,top:f}}export{w as c};

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.