HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/2dAnimation-CHlApqtb.js
import{O as m,aa as d,aF as f,bD as l}from"./index-XCg2QAX4.js";function c(e){document.getElementById(e)?document.getElementById(e).style.visibility="visible":console.log(e+" n'existe pas et ne peut pas être rendu visible.")}function u(e){document.getElementById(e)?document.getElementById(e).style.visibility="hidden":console.log(e+" n'existe pas et ne peut pas être caché.")}function b(e,r=1,s=5,n="Infinity"){let t=1;const i=setInterval(function(){if(document.getElementById(e.id))if(clearInterval(i),u(e.id),n===1)setTimeout(function(){c(e.id)},r*1e3);else{const o=setInterval(function(){u(e.id)},s*1e3);setTimeout(function(){c(e.id);const a=setInterval(function(){c(e.id),t++,typeof n=="number"&&t>=n&&(clearInterval(o),clearInterval(a))},s*1e3)},r*1e3)}},100)}function A(e,r=1,s=5,n="Infinity"){let t=1;const i=setInterval(function(){if(document.getElementById(e.id))if(clearInterval(i),c(e.id),n===1)setTimeout(function(){u(e.id)},r*1e3);else{const o=setInterval(function(){c(e.id)},s*1e3);setTimeout(function(){u(e.id);const a=setInterval(function(){u(e.id),t++,typeof n=="number"&&t>=n&&(clearInterval(a),clearInterval(o))},s*1e3)},r*1e3)}},100)}function y(e,r=2,s=.5,n="indefinite"){m.call(this,{}),this.svg=function(t){let i="<g> ";if(Array.isArray(e))for(const o of e)i+=`
`+o.svg(t);else i+=`
`+e.svg(t);return i+=`<animate attributeType="CSS"
    attributeName="visibility"
    from="hidden"
    to="hidden"
    values="hidden;visible;hidden"
    keyTimes="0; ${s}; 1"
    dur="${r}"
    repeatCount="${n}"/>`,i+="</g>",i}}function I(e,r=2,s=.5,n="indefinite"){return new y(e,r,s,n)}function p(e,r,s='begin="0s" dur="2s" repeatCount="indefinite"'){m.call(this,{}),this.svg=function(n){let t="<g> ";if(Array.isArray(e))for(const i of e)t+=`
`+i.svg(n);else t+=`
`+e.svg(n);if(Array.isArray(r)){t+='<animateMotion path="M 0 0 l';for(const i of r)t+=` ${i.xSVG(n)} ${i.ySVG(n)} `;t+=`${s} />`}else t+=`<animateMotion path="M 0 0 l ${r.xSVG(n)} ${r.ySVG(n)} " ${s} />`;return t+="</g>",t}}function x(...e){return new p(...e)}function g(e,r,s,n='begin="0s" dur="2s" repeatCount="indefinite"'){m.call(this,{}),Array.isArray(e)||(e=[e]);const t=d([e,e.map(i=>f(i,r,s))]);this.bordures=[t.xmin,t.ymin,t.xmax,t.ymax],this.svg=function(i){let o="<g> ";if(Array.isArray(e))for(const a of e)o+=`
`+a.svg(i);else o+=`
`+e.svg(i);return o+=`<animateTransform
  attributeName="transform"
  type="rotate"
  from="0 ${r.xSVG(i)} ${r.ySVG(i)}"
  to="${-s} ${r.xSVG(i)} ${r.ySVG(i)}"
  ${n}
  />`,o+="</g>",o}}function S(...e){return new g(...e)}function v(e,r,s='begin="0s" dur="2s" repeatCount="indefinite"'){m.call(this,{});const n=d([e,l(e,r)]);this.bordures=[n.xmin,n.ymin,n.xmax,n.ymax],this.svg=function(t){const i=e.binomesXY(t),o=l(e,r);o.isVisible=!1;const a=o.binomesXY(t);return`<polygon stroke="${e.color[0]}" stroke-width="${e.epaisseur}" fill="${e.couleurDeRemplissage[0]}" >
    <animate attributeName="points" ${s}
    from="${i}"
    to="${a}"
    />
    </polygon>`}}function T(...e){return new v(...e)}export{I as a,b,A as c,S as r,T as s,x as t};
//# sourceMappingURL=2dAnimation-CHlApqtb.js.map