PageSourceSearch

https://propec.sbs/assets/workbook-BUhC6HnL.js

js propec.sbs collected 2026-10-01 00:56:28 UTC 3,949 bytes, 1 lines download raw bytes

1import{j as h}from"./kinematics-Di5PXsRQ.js";import{a as s}from"./glyphs-myXpDwvS.js";import{x as k,y as N,z as j,A as T}from"./algebra-CcXhFBFE.js";import{u as S,I as Z}from"./lab-safety-9lbEFqdD.js";import{a as O,R as q,o as L,r as V}from"./geometry-5DFQyt7V.js";import"./meteorology-7juZoOw8.js";import"./earth-science-52cTImor.js";import"./periodic-table-QDa7g7Xi.js";function C(u,l){var x;if(u)try{const f=u.contentDocument;f&&f.querySelectorAll("audio, video").forEach(r=>{const n=r;n.muted=l,l&&(n.volume=0)});const t=u.contentWindow;if(!t)return;try{if(t.__pzMuted=l,!t.__pzMutePatched){t.__pzMutePatched=!0;const n=(x=t.HTMLMediaElement)==null?void 0:x.prototype;if(n){const d=n.play;n.play=function(...i){try{this.muted=!!t.__pzMuted,t.__pzMuted&&(this.volume=0)}catch{}return d.apply(this,i)}}}const r=t.AudioContext||t.webkitAudioContext;if(r){if(t.__pzAudioContexts||(t.__pzAudioContexts=[]),!t.__pzAudioPatched){t.__pzAudioPatched=!0;const n=r;t.AudioContext=function(...d){const i=new n(...d);if(t.__pzAudioContexts.push(i),t.__pzMuted)try{i.suspend()}catch{}return i},t.AudioContext.prototype=n.prototype,t.webkitAudioContext&&(t.webkitAudioContext=t.AudioContext)}for(const n of t.__pzAudioContexts)try{l?n.suspend():n.resume()}catch{}}}catch{}}catch{}}function Q({url:u,title:l,onBack:x}){const f=s.useRef(null),t=s.useRef(null),r=s.useRef(null),n=s.useRef(null),d=s.useRef(1),[i,F]=s.useState(1),[A,z]=s.useState(!1),[R,v]=s.useState(!0),[y,E]=s.useState(!1),{unlocked:p,phase:w}=S("app"),_=w==="ad"||w==="loading"||w==="ready"||p,g=(l==null?void 0:l.trim())||"App",m=s.useCallback(e=>{const c=t.current,a=f.current;if(!c||!a)return;const o=O(a,c,e);d.current=o,F(o)},[]);s.useEffect(()=>{if(!_)return;const e=t.current;if(!e)return;k().catch(()=>{});const c=()=>{var a;if(!N())return!1;try{if((a=r.current)!=null&&a.parentNode)return!0;const o=j();return o?(n.current=o,o.frame.style.cssText="position:absolute;inset:0;width:100%;height:100%;border:none;background:#fff;",e.appendChild(o.frame),T(o.frame,u),o.frame.onload=()=>{C(o.frame,y)},r.current=o.frame,requestAnimationFrame(()=>m(d.current)),!0):!1}catch{return!1}};if(!c()){const a=setInterval(()=>{c()&&clearInterval(a)},100);return()=>{var o;clearInterval(a),(o=r.current)!=null&&o.parentNode&&r.current.parentNode.removeChild(r.current),r.current=null,n.current=null}}return()=>{var a;(a=r.current)!=null&&a.parentNode&&r.current.parentNode.removeChild(r.current),r.current=null,n.current=null}},[u,_,m]),s.useEffect(()=>{const e=r.current;e&&(e.style.opacity=p?"1":"0",e.style.pointerEvents=p?"auto":"none")},[p,u,_]),s.useEffect(()=>{const e=()=>{const c=!!document.fullscreenElement;z(c),c||v(!0),requestAnimationFrame(()=>m(d.current))};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[m]),s.useEffect(()=>{if(!p)return;const e=()=>{document.hidden||C(r.current,y)};e();const c=window.setInterval(e,2e3);return()=>window.clearInterval(c)},[y,p,u]);const b=()=>{const e=f.current;e&&(document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(()=>{}))},I=()=>{L(u)},M=()=>{V(void 0,n.current,()=>r.current)},P=()=>{var c;try{if((c=n.current)!=null&&c.reload){n.current.reload();return}}catch{}const e=r.current;try{if(e!=null&&e.contentWindow){e.contentWindow.location.reload();return}}catch{}e&&(e.src=e.src)};return h.jsx("div",{className:"absolute inset-0",children:h.jsxs("div",{ref:f,className:"relative w-full h-full overflow-hidden","data-pz-content-frame":"1",children:[h.jsx("div",{ref:t,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",transformOrigin:"0 0"}}),h.jsx(Z,{phase:w}),h.jsx(q,{title:g,zoom:i,muted:y,isFullscreen:A,controlsVisible:R,bottomOffset:20,onBack:x,onForward:M,onZoomIn:()=>m(i+.25),onZoomOut:()=>m(i-.25),onToggleMute:()=>E(e=>!e),onReload:P,onExternal:I,onFullscreen:b,onToggleControls:()=>v(e=>!e)})]})})}export{Q as default};

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.