PageSourceSearch

https://promathtools.com/_next/static/chunks/6228-6a9f8c6058f04649.js

js promathtools.com collected 2026-10-02 00:54:43 UTC 14,389 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6228],{60781:function(t,e,n){n.d(e,{Z:function(){return H}});var r=n(2265),i=n(44839),u=n(76990),o=n(88136),l=n(48024),a=n(95885),c=n(60909),s=n(26182),d=n(98553);class f{static create(){return new f}static use(){let t=(0,d.default)(f.create).current,[e,n]=r.useState(!1);return t.shouldMount=e,t.setShouldMount=n,r.useEffect(t.mountEffect,[e]),t}mount(){return this.mounted||(this.mounted=function(){let t,e;let n=new Promise((n,r)=>{t=n,e=r});return n.resolve=t,n.reject=e,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];this.mount().then(()=>{var t;return null===(t=this.ref.current)||void 0===t?void 0:t.start(...e)})}stop(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];this.mount().then(()=>{var t;return null===(t=this.ref.current)||void 0===t?void 0:t.stop(...e)})}pulsate(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];this.mount().then(()=>{var t;return null===(t=this.ref.current)||void 0===t?void 0:t.pulsate(...e)})}constructor(){this.mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())},this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}}var p=n(48646),h=n(23950),m=n(22988),v=n(87802),b=n(44145);function g(t,e){var n=Object.create(null);return t&&r.Children.map(t,function(t){return t}).forEach(function(t){n[t.key]=e&&(0,r.isValidElement)(t)?e(t):t}),n}function y(t,e,n){return null!=n[e]?n[e]:t.props[e]}var E=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},x=function(t){function e(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,v.Z)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n,i,u=e.children,o=e.handleExited;return{children:e.firstRender?g(t.children,function(e){return(0,r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:y(e,"appear",t),enter:y(e,"enter",t),exit:y(e,"exit",t)})}):(Object.keys(i=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,i=Object.create(null),u=[];for(var o in t)o in e?u.length&&(i[o]=u,u=[]):u.push(o);var l={};for(var a in e){if(i[a])for(r=0;r<i[a].length;r++){var c=i[a][r];l[i[a][r]]=n(c)}l[a]=n(a)}for(r=0;r<u.length;r++)l[u[r]]=n(u[r]);return l}(u,n=g(t.children))).forEach(function(e){var l=i[e];if((0,r.isValidElement)(l)){var a=e in u,c=e in n,s=u[e],d=(0,r.isValidElement)(s)&&!s.props.in;c&&(!a||d)?i[e]=(0,r.cloneElement)(l,{onExited:o.bind(null,l),in:!0,exit:y(l,"exit",t),enter:y(l,"enter",t)}):c||!a||d?c&&a&&(0,r.isValidElement)(s)&&(i[e]=(0,r.cloneElement)(l,{onExited:o.bind(null,l),in:s.props.in,exit:y(l,"exit",t),enter:y(l,"enter",t)})):i[e]=(0,r.cloneElement)(l,{in:!1})}}),i),firstRender:!1}},n.handleExited=function(t,e){var n=g(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState(function(e){var n=(0,m.Z)({},e.children);return delete n[t.key],{children:n}}))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,i=(0,h.Z)(t,["component","childFactory"]),u=this.state.contextValue,o=E(this.state.children).map(n);return(delete i.appear,delete i.enter,delete i.exit,null===e)?r.createElement(b.Z.Provider,{value:u},o):r.createElement(b.Z.Provider,{value:u},r.createElement(e,i,o))},e}(r.Component);x.propTypes={},x.defaultProps={component:"div",childFactory:function(t){return t}};var M=n(63811),Z=n(63098),R=n(57437),k=n(72296);let P=(0,k.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function w(){let t=(0,p._)(["\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n"]);return w=function(){return t},t}function j(){let t=(0,p._)(["\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n"]);return j=function(){return t},t}function T(){let t=(0,p._)(["\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n"]);return T=function(){return t},t}function O(){let t=(0,p._)(["\n  opacity: 0;\n  position: absolute;\n\n  &."," {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  &."," {\n    animation-duration: ","ms;\n  }\n\n  & ."," {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & ."," {\n    opacity: 0;\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  & ."," {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ",";\n    animation-duration: 2500ms;\n    animation-timing-function: ",";\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n"]);return O=function(){return t},t}
1let C=(0,Z.F4)(w()),S=(0,Z.F4)(j()),V=(0,Z.F4)(T()),I=(0,l.default)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_=(0,l.default)(function(t){let{className:e,classes:n,pulsate:u=!1,rippleX:o,rippleY:l,rippleSize:a,in:c,onExited:s,timeout:d}=t,[f,p]=r.useState(!1),h=(0,i.Z)(e,n.ripple,n.rippleVisible,u&&n.ripplePulsate),m=(0,i.Z)(n.child,f&&n.childLeaving,u&&n.childPulsate);return c||f||p(!0),r.useEffect(()=>{if(!c&&null!=s){let t=setTimeout(s,d);return()=>{clearTimeout(t)}}},[s,c,d]),(0,R.jsx)("span",{className:h,style:{width:a,height:a,top:-(a/2)+l,left:-(a/2)+o},children:(0,R.jsx)("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})(O(),P.rippleVisible,C,550,t=>{let{theme:e}=t;return e.transitions.easing.easeInOut},P.ripplePulsate,t=>{let{theme:e}=t;return e.transitions.duration.shorter},P.child,P.childLeaving,S,550,t=>{let{theme:e}=t;return e.transitions.easing.easeInOut},P.childPulsate,V,t=>{let{theme:e}=t;return e.transitions.easing.easeInOut}),B=r.forwardRef(function(t,e){let{center:n=!1,classes:u={},className:o,...l}=(0,a.i)({props:t,name:"MuiTouchRipple"}),[c,s]=r.useState([]),d=r.useRef(0),f=r.useRef(null);r.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);let p=r.useRef(!1),h=(0,M.default)(),m=r.useRef(null),v=r.useRef(null),b=r.useCallback(t=>{let{pulsate:e,rippleX:n,rippleY:r,rippleSize:o,cb:l}=t;s(t=>[...t,(0,R.jsx)(_,{classes:{ripple:(0,i.Z)(u.ripple,P.ripple),rippleVisible:(0,i.Z)(u.rippleVisible,P.rippleVisible),ripplePulsate:(0,i.Z)(u.ripplePulsate,P.ripplePulsate),child:(0,i.Z)(u.child,P.child),childLeaving:(0,i.Z)(u.childLeaving,P.childLeaving),childPulsate:(0,i.Z)(u.childPulsate,P.childPulsate)},timeout:550,pulsate:e,rippleX:n,rippleY:r,rippleSize:o},d.current)]),d.current+=1,f.current=l},[u]),g=r.useCallback(function(){let t,e,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:l=!1,center:a=n||u.pulsate,fakeElement:c=!1}=u;if((null==i?void 0:i.type)==="mousedown"&&p.current){p.current=!1;return}(null==i?void 0:i.type)==="touchstart"&&(p.current=!0);let s=c?null:v.current,d=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!a&&void 0!==i&&(0!==i.clientX||0!==i.clientY)&&(i.clientX||i.touches)){let{clientX:n,clientY:r}=i.touches&&i.touches.length>0?i.touches[0]:i;t=Math.round(n-d.left),e=Math.round(r-d.top)}else t=Math.round(d.width/2),e=Math.round(d.height/2);a?(r=Math.sqrt((2*d.width**2+d.height**2)/3))%2==0&&(r+=1):r=Math.sqrt((2*Math.max(Math.abs((s?s.clientWidth:0)-t),t)+2)**2+(2*Math.max(Math.abs((s?s.clientHeight:0)-e),e)+2)**2),(null==i?void 0:i.touches)?null===m.current&&(m.current=()=>{b({pulsate:l,rippleX:t,rippleY:e,rippleSize:r,cb:o})},h.start(80,()=>{m.current&&(m.current(),m.current=null)})):b({pulsate:l,rippleX:t,rippleY:e,rippleSize:r,cb:o})},[n,b,h]),y=r.useCallback(()=>{g({},{pulsate:!0})},[g]),E=r.useCallback((t,e)=>{if(h.clear(),(null==t?void 0:t.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{E(t,e)});return}m.current=null,s(t=>t.length>0?t.slice(1):t),f.current=e},[h]);return r.useImperativeHandle(e,()=>({pulsate:y,start:g,stop:E}),[y,g,E]),(0,R.jsx)(I,{className:(0,i.Z)(P.root,u.root,o),ref:v,...l,children:(0,R.jsx)(x,{component:null,exit:!0,children:c})})});var A=n(70587);function D(t){return(0,A.ZP)("MuiButtonBase",t)}let L=(0,k.Z)("MuiButtonBase",["root","disabled","focusVisible"]),F=t=>{let{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:i}=t,o=(0,u.Z)({root:["root",e&&"disabled",n&&"focusVisible"]},D,i);return n&&r&&(o.root+=" ".concat(r)),o},z=(0,l.default)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(L.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});function N(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,s.Z)(i=>(n&&n(i),r||t[e](i),!0))}var H=r.forwardRef(function(t,e){let n=(0,a.i)({props:t,name:"MuiButtonBase"}),{action:u,centerRipple:l=!1,children:d,className:p,component:h="button",disabled:m=!1,disableRipple:v=!1,disableTouchRipple:b=!1,focusRipple:g=!1,focusVisibleClassName:y,LinkComponent:E="a",onBlur:x,onClick:M,onContextMenu:Z,onDragLeave:k,onFocus:P,onFocusVisible:w,onKeyDown:j,onKeyUp:T,onMouseDown:O,onMouseLeave:C,onMouseUp:S,onTouchEnd:V,onTouchMove:I,onTouchStart:_,tabIndex:A=0,TouchRippleProps:D,touchRippleRef:L,type:H,...W}
1=n,U=r.useRef(null),X=f.use(),q=(0,c.Z)(X.ref,L),[K,Y]=r.useState(!1);m&&K&&Y(!1),r.useImperativeHandle(u,()=>({focusVisible:()=>{Y(!0),U.current.focus()}}),[]);let G=X.shouldMount&&!v&&!m;r.useEffect(()=>{K&&g&&!v&&X.pulsate()},[v,g,K,X]);let J=N(X,"start",O,b),Q=N(X,"stop",Z,b),$=N(X,"stop",k,b),tt=N(X,"stop",S,b),te=N(X,"stop",t=>{K&&t.preventDefault(),C&&C(t)},b),tn=N(X,"start",_,b),tr=N(X,"stop",V,b),ti=N(X,"stop",I,b),tu=N(X,"stop",t=>{(0,o.Z)(t.target)||Y(!1),x&&x(t)},!1),to=(0,s.Z)(t=>{U.current||(U.current=t.currentTarget),(0,o.Z)(t.target)&&(Y(!0),w&&w(t)),P&&P(t)}),tl=()=>{let t=U.current;return h&&"button"!==h&&!("A"===t.tagName&&t.href)},ta=(0,s.Z)(t=>{g&&!t.repeat&&K&&" "===t.key&&X.stop(t,()=>{X.start(t)}),t.target===t.currentTarget&&tl()&&" "===t.key&&t.preventDefault(),j&&j(t),t.target===t.currentTarget&&tl()&&"Enter"===t.key&&!m&&(t.preventDefault(),M&&M(t))}),tc=(0,s.Z)(t=>{g&&" "===t.key&&K&&!t.defaultPrevented&&X.stop(t,()=>{X.pulsate(t)}),T&&T(t),M&&t.target===t.currentTarget&&tl()&&" "===t.key&&!t.defaultPrevented&&M(t)}),ts=h;"button"===ts&&(W.href||W.to)&&(ts=E);let td={};"button"===ts?(td.type=void 0===H?"button":H,td.disabled=m):(W.href||W.to||(td.role="button"),m&&(td["aria-disabled"]=m));let tf=(0,c.Z)(e,U),tp={...n,centerRipple:l,component:h,disabled:m,disableRipple:v,disableTouchRipple:b,focusRipple:g,tabIndex:A,focusVisible:K},th=F(tp);return(0,R.jsxs)(z,{as:ts,className:(0,i.Z)(th.root,p),ownerState:tp,onBlur:tu,onClick:M,onContextMenu:Q,onFocus:to,onKeyDown:ta,onKeyUp:tc,onMouseDown:J,onMouseLeave:te,onMouseUp:tt,onDragLeave:$,onTouchEnd:tr,onTouchMove:ti,onTouchStart:tn,ref:tf,tabIndex:m?-1:A,type:H,...td,...W,children:[d,G?(0,R.jsx)(B,{ref:q,center:l,...D}):null]})})},22960:function(t,e,n){n.d(e,{default:function(){return o}}),n(2265);var r=n(75735),i=n(87547),u=n(52737);function o(){let t=(0,r.default)(i.Z);return t[u.Z]||t}},26182:function(t,e,n){var r=n(45590);e.Z=r.default},88136:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t){try{return t.matches(":focus-visible")}catch(t){}return!1}},13815:function(t,e,n){var r=n(2265);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;e.default=i},45590:function(t,e,n){var r=n(2265),i=n(13815);e.default=function(t){let e=r.useRef(t);return(0,i.default)(()=>{e.current=t}),r.useRef(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,e.current)(...n)}).current}},98553:function(t,e,n){n.d(e,{default:function(){return u}});var r=n(2265);let i={};function u(t,e){let n=r.useRef(i);return n.current===i&&(n.current=t(e)),n}},11105:function(t,e,n){n.d(e,{default:function(){return u}});var r=n(2265);let i=[];function u(t){r.useEffect(t,i)}},63811:function(t,e,n){n.r(e),n.d(e,{Timeout:function(){return u},default:function(){return o}});var r=n(98553),i=n(11105);class u{static create(){return new u}start(t,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},t)}constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}}function o(){let t=(0,r.default)(u.create).current;return(0,i.default)(t.disposeEffect),t}},44145:function(t,e,n){var r=n(2265);e.Z=r.createContext(null)},87802:function(t,e,n){function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{Z:function(){return i}})},23950:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}},48646:function(t,e,n){n.d(e,{_:function(){return r}});function r(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}}}]);

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.