/* [ kimera framework V 2.8.35e1 ] */ const ui=(()=>{function e(){console.debug.apply(console,arguments)}e(":: [🛈 Version] V2.8.35e1 kimera"),e(":: [🛈 wikizone] https://git.io/fhSzk"),e(":: [🛈 licence] GNU V3 https://git.io/JJVw0");const t=()=>"ontouchstart"in window,s=e=>{var t;return s=>{t&&clearTimeout(t),t=setTimeout(e,100,s)}},l=e=>{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},a=e=>{let t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},i=e=>{if(!window.getComputedStyle)return!1;let t=getComputedStyle(e),s=t.transform||t.webkitTransform||t.mozTransform,l=s.match(/^matrix3d\((.+)\)$/);return(l=s.match(/^matrix\((.+)\)$/))&&(l=parseFloat(l[1].split(", ")[4]),!isNaN(l))?l:void 0};Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return!!(this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2)}});const n=()=>{let t=document.querySelectorAll(".loader")[0];function s(t,s,l){let a=-1;for(let n of t)if(a++,!n.className.toLowerCase().includes("status")&&(a==s||null==s)){n.classList.add("[status-active]");let s=n.firstElementChild.tagName.toLowerCase(),o=n.firstElementChild.classList.toString().toLowerCase(),r=!!n.lastElementChild.className.includes("processing")&&n.lastElementChild;if("video"==s||"iframe"==s||o.includes("videobox")){let e=["watch","youtu","youtube","vimeo","instagram","facebook","fb","twitter","twitch"],t=n.firstElementChild.url||!1;if(isvideoframed=!1,t&&(isvideoframed=e.indexOf(t.toLowerCase())>-1),"iframe"==s||isvideoframed){let e=()=>{setTimeout(()=>{i(n,r,l)},200)};n.firstElementChild?e():n.firstElementChild.onload=e()}else{let e=n.getElementsByTagName("video")[0];e.readyState>=3?setTimeout(()=>{i(n,r,l)},200):e.oncanplay=(e=>{setTimeout(()=>{i(n,r,l)},200)})}}else if("img"==s){let e=n.querySelectorAll("img"),t=e.length,s=[];for(let l=0;l{s[o]=!0}),c.onerror=(()=>{r&&n.lastElementChild.insertAdjacentHTML("afterend",'
⚠️
'),s.splice(a,1),setTimeout(()=>{i(n,r,l)},200),o=t}),c.src=c.dataset.src}let o=setInterval(()=>{let t=!0;for(let e of s)0==e&&(t=!1);if(t){for(let t of e)t.classList.remove("hidden");setTimeout(()=>{i(n,r,l)},200),window.clearInterval(o)}},300)}else"div"==s||"span"==s?fetch(n.firstElementChild.dataset.src).then(e=>{e.ok?e.text().then(e=>{n.innerHTML=e,setTimeout(()=>{i(n,r,l)},200)}):(n.innerHTML='
⚠️
',n.style.minHeight=1.5*n.firstElementChild.offsetHeight+"px",i(n,r,l))}):e(":: [⚠ ui alert]: wrong preload\n ⮑ not found a correct content (div|span|img|iframe|videobox) \n Read more on: https://git.io/vldt456");function i(e,s,l){e.classList.add("[status-off]"),e.classList.add("[status---]"),s&&s.remove(),l&&t.splice(a,1),setTimeout(()=>{e.classList.remove("[status-off]"),e.classList.remove("[status-active]")},1350)}}}t.style.transitionTime="0",t.classList.add("[status-active]"),t.classList.remove("[status-off]"),function(t){let a=document.querySelectorAll(".lazy"),i=[],n=[],o=[];if(!a.length)return t();for(let t of a){let s=t.tagName.toLowerCase(),a=["div","span","picture","figure"];if(t.classList.contains("lazy")&&a.indexOf(s)<0)e(':: [⚠ ui alert]: wrong lazy preload\n ⮑ The tag "'+s+'" is not valid for a preload action!\n Read more on: https://git.io/J4hQ7');else{null!=t.firstElementChild&&null!=t.lastElementChild||e(':: [⚠ ui alert]: wrong preload\n ⮑ contents not defined, probably it\'s not first child of lazy or same destination for class="lazy" and data-src="..."\n ⮑ Error on element: ',t);let s=t.firstElementChild,a=(!!t.lastElementChild.className.includes("processing")&&t.lastElementChild,s.tagName.toLowerCase()),r=s.classList.toString().toLowerCase();if("video"==a||"iframe"==a||r.includes("videobox"))"video"!=a&&!r.includes("videobox")||r.match(/ratio/g)?(r.includes("settings")&&r.includes("autostartstop")&&o.push(t),l(t)<=(window.scrollTop||document.body.scrollTop||document.documentElement.scrollTop)+screen.availHeight?i.push(t):n.push(t)):(console.log(":: [⚠ ui alert]: preload flaw\n ⮑ ratio proportion not found on video or videobox: ",t),t.classList.add("[status-active] [status-error]"));else if("div"==a||"span"==a)s.dataset.src?i.push(t):(e(":: [⚠ ui alert]: wrong preload\n ⮑ data-src not found on element div/span\n Read more on: https://git.io/J4hQ7"),t.classList.add("[status-error]"));else if("img"==a){let a=[...t.classList].join(""),o=t.querySelectorAll("*>img"),r=!0;for(let e of o)s.dataset.src?a.match(/ratio/g)||(r=":: [⚠ ui alert]: preload flaw\n ⮑ ratio proportion not found on an image: "+e.dataset.src.match(/.*\/(.*)$/)[1],e.src=e.dataset.src):(r=":: [⚠ ui alert]: wrong preload\n ⮑ data-src not found on image\n Read more on: https://git.io/J4hQ7",t.classList.add("[status-error]"));!0===r?l(t)<=(window.scrollTop||document.body.scrollTop||document.documentElement.scrollTop)+screen.availHeight?i.push(t):n.push(t):e(r)}else e(":: [⚠ ui alert]: wrong preload\n ⮑ validation of content fail (div|span|img|iframe|videobox) \n Read more on: https://git.io/J4hQ7")}}for(let e of n){for(let t of i)e==t&&n.splice(n.indexOf(e),1);for(let t of o)e==t&&n.splice(n.indexOf(e),1)}s(i,null,!0),function(e,t){null==t[0]&&null==e[0]||document.body.addEventListener("scroll",a=>{a.preventDefault();let i=window.scrollTop||document.body.scrollTop||document.documentElement.scrollTop,n=i+(document.documentElement.clientHeight||window.innerHeight||0);if(null!=e[0]){let t=0;for(let a of e)l(a)i;o?(s.includes("[status-active]")||(s.includes("social","autostartstop")?(s.includes("facebook")||s.includes("instagram"))&&""==t.getAttribute("src")?t.setAttribute("src",t.dataset.relink):s.includes("youtube")?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):s.includes("vimeo")&&t.contentWindow.postMessage('{"method":"play"}',"*"):s.includes("videobox")&&("video"==t.tagName.toLowerCase()?t.play():t.getElementsByTagName("video")[0].play())),e.classList.remove("[status-active]"),e.classList.add("[status-off]")):(s.includes("[status-off]")||(s.includes("social","autostartstop")?(s.includes("facebook")||s.includes("instagram"))&&""!=t.getAttribute("src")?t.setAttribute("src",""):s.includes("youtube")?t.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"):s.includes("vimeo")&&t.contentWindow.postMessage('{"method":"pause"}',"*"):s.includes("videobox")&&("video"==t.tagName.toLowerCase()?t.pause():t.getElementsByTagName("video")[0].pause())),e.classList.remove("[status-off]"),e.classList.add("[status-active]"))}a=null},!1)}(n,o);t()}(e=>{document.querySelectorAll('body[class*="mode-"]')[0].style.opacity="1",setTimeout(()=>{t.classList.add("[status-off]"),setTimeout(()=>{t.classList.add("[status---]"),t.classList.remove("[status-active]","[status-off]","gpuboost")},650)},150)})},o=()=>{let e=document.querySelectorAll("CODE,SAMP");for(let t of e){let e=t.dataset.src;if(e)fetch(e).then(e=>{e.ok?e.text().then(e=>{t.removeAttribute("data-src"),t.innerText=e.trimStart().trimEnd()}):(t.removeAttribute("data-src"),t.innerText="File not found or error")});else{let e=String(t.innerHTML||t.textContent).replace(/[\r\n]+/gm,"").trimStart().trimEnd();t.innerHTML="",t.innerText=e}}},r=()=>{setTimeout(()=>{for(let e of[...document.querySelectorAll(".grid-y")])if(e.className.split("col-")[0])for(gridbox of[...e.querySelectorAll(".grid-y>*")]){let t=parseInt(window.getComputedStyle(e).getPropertyValue("grid-auto-rows")),s=parseInt(window.getComputedStyle(e).getPropertyValue("grid-row-gap"));(t<=0||!t)&&(t=0),(s<=0||!s)&&(s=0);let l=Math.ceil((gridbox.getBoundingClientRect().height+s)/(t+s));gridbox.style.gridRowEnd="span "+l}},250)},c=(e,t)=>{null!=e&&""!=e&&e||((e={}).type="alert",e.content=!1,e.accept=!1,e.decline=!1,e.input=!1,e.placeholder=!1);let s=document.getElementsByTagName("HTML")[0],l=Math.floor(99999*Math.random());(makeit=(()=>{if(e.content=e.content?e.content:"

...

",e.accept=e.accept?e.accept:"ACCEPT",e.decline=e.decline?e.decline:"DECLINE",e.input=e.input?e.input:"text",e.placeholder=e.placeholder?e.placeholder:"write a text here","alert"==e.type){let t='\n
\n
\n
\n
\n
\n '+e.content+'\n
\n
\n
\n
'+e.accept+"
\n
\n
\n
\n
\n
\n ";s.classList.add("gpuboost","vfxtransition-in","vfx-center"),s.insertAdjacentHTML("beforeEnd",t)}if("confirm"==e.type){let t='\n
\n
\n
\n
\n
\n '+e.content+'\n
\n
\n
\n
\n
\n
\n
'+e.accept+'
\n
\n
\n
\n
\n
'+e.decline+"
\n
\n
\n
\n
\n
\n
\n
\n
\n ";s.classList.add("gpuboost","vfxtransition-in","vfx-center"),s.insertAdjacentHTML("beforeEnd",t)}if("prompt"==e.type){let t='\n
\n
\n
\n
\n
\n '+e.content+'\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
'+e.accept+'
\n
\n
\n
\n
\n
'+e.decline+"
\n
\n
\n
\n
\n
\n
\n
\n
\n ";s.classList.add("gpuboost","vfxtransition-in","vfx-center"),s.insertAdjacentHTML("beforeEnd",t)}}))();var a=document.getElementById("warningbox-"+l);(clickit=(()=>{let e=a.getElementsByClassName("button");for(let l of e)l.addEventListener("click",e=>{if(e.target.classList.contains("accept")){let e=!0;if(a.getElementsByTagName("INPUT").length>0){let t=a.getElementsByTagName("INPUT")[0];t.setAttribute("value",t.value),e=t.getAttribute("value")}if(l(),"function"==typeof t)return t(e)}else if(e.target.classList.contains("decline")&&(l(),"function"==typeof t))return t(!1);function l(){clearInterval(i),i=null,a.classList.add("off"),setTimeout(()=>{s.classList.remove("gpuboost","vfxtransition-in","vfx-center"),a.remove()},300)}},!1)}))();var i=setInterval(()=>{null==document.getElementById("warningbox-"+l)&&(makeit(),a=document.getElementById("warningbox-"+l),clickit())},1500)},d=()=>{let t=document.querySelector('*[class*="mode-"]'),s=document.querySelectorAll('*[target^="outbox#"]'),l=Array.from(document.querySelectorAll(".outbox"));for(let e=0;e{let t=s[i].getAttribute("target").split("#")[1],l=document.querySelectorAll("#"+t)[0],o=l.querySelectorAll('.overlay>div[class^="side-"]')[0].className;l.querySelectorAll(".overlay")[0];l.classList.add("gpuboost","[status-active]"),o.match("center")?a("center"):o.match("top")?a("top"):o.match("left")?a("left"):o.match("right")?a("right"):o.match("bottom")&&a("bottom"),l.onclick=(e=>{l.classList.contains("warning")||(e.target.className.includes("overlay")||e.target.className.includes("close")||e.target.className.includes("accept"))&&(l.classList.add("[status-off]"),l.classList.remove("[status-active]"),setTimeout(()=>{l.classList.remove("[status-off]","[status-active]","gpuboost")},300),n(l))})});let e=l.length;for(let t=0;t{!e.classList.contains("warning")&&(t.target.className.includes("close")||t.target.className.includes("accept")||t.target.classList.contains("overlay"))&&(e.classList.add("[status-off]"),e.classList.remove("[status-active]"),setTimeout(()=>{e.classList.remove("[status-off]","[status-active]","gpuboost")},300),n(e))})}let a=e=>{t.classList.add("gpuboost","vfxtransition-in","vfx"+e)},n=(e,s)=>{t.classList.add("vfxtransition-out"),t.classList.remove("vfxtransition-in","vfxtop","vfxleft","vfxbottom","vfxright","vfxcenter"),setTimeout(()=>{e.classList.remove("[status-off]","[status-active]","gpuboost"),t.classList.remove("vfxtransition-out","gpuboost")},500)}}else e(a?":: [⚠ ui alert]: wrong outbox\n ⮑ an outbox not finded!":":: [⚠ ui alert]: wrong outbox\n ⮑ outbox "+n+" not exist!"),s[i].classList.add("debug-error")}},u=()=>{let e=[...document.querySelectorAll('[class*="absolute-"]')];for(let t of e)t.parentNode.className.includes("outbox")||t.parentNode.className.includes("side-")||t.parentNode.className.includes("view")||(t.parentNode.style.position="relative")},f=()=>{let e=document.querySelectorAll(".scroll-x");for(scroller of e)scroller.onmouseover=(e=>{let t="undefined"!=typeof InstallTrigger?4:2.5,s=scroller.className.toLowerCase().includes("scroll-x")&&!e.target.className.toLowerCase().includes("scroll-y")?"X":"Y",l=-1;window.onwheel=(a=>{if(scroller.focus(),e.preventDefault(),e.stopPropagation(),++l>=1){let e=l<5?l/3:l>5&&l<8?l/3.5:l/4.5;"X"==s&&(scroller==document.body?a.deltaY>0?document.documentElement.scrollLeft+=e*(t*a.deltaY):a.deltaY<0&&(document.documentElement.scrollLeft-=e*(t*a.deltaY)*-1):a.deltaY>0?scroller.scrollLeft+=e*(t*a.deltaY):a.deltaY<0&&(scroller.scrollLeft-=e*(t*a.deltaY)*-1)),setTimeout(()=>l=0,150)}})})},m=()=>{let e=[...document.querySelectorAll(".checksize, TABLE, CODE, PRE, OUTPUT")];for(let t of e){let e=parseInt(t.offsetWidth),s=parseInt(t.parentNode.offsetWidth);if(!t.parentNode.className.includes("scroll-x")){let l=t.tagName;if("TABLE"==l||"CODE"==l||"PRE"==l||"OUTPUT"==l){parseInt(t.style.minWidth);if(e>s){let e=document.createElement("div");t.parentNode.insertBefore(e,t),e.appendChild(t),t.parentNode.classList.add("scroll-x")}else e<=s&&t.parentNode.className.includes("checksize")&&(t.parentNode.outerHTML=t.parentNode.innerHTML)}else if(e>s){let e=document.createElement("div");t.parentNode.insertBefore(e,SizedBox),e.appendChild(SizedBox),t.parentNode.classList.add("scroll-x","checksize")}else e<=s&&t.parentNode.className.includes("checksize")&&(t.parentNode.outerHTML=t.parentNode.innerHTML)}}},p=()=>{let s=document.querySelectorAll(".snap-x , .snap-y");for(let e of s){let t=e.querySelectorAll(".snaps")[0],s=t.querySelectorAll(".snaps>*"),l=e.querySelectorAll(".dots")[0],a=null,i=null;if(t.getElementsByClassName("active")[0]||t.firstElementChild.classList.add("active"),a=t.getElementsByClassName("active")[0],i=e.querySelectorAll(".snaptype-blocks").length?e.className.includes("snap-x")?"translateX("+(a.offsetLeft-e.offsetWidth/2)+"px)":a.offsetTop<=e.offsetHeight/2?"translateY("+a.offsetTop+"px)":"translateY("+(a.offsetTop-a.offsetHeight/2+e.offsetHeight/2)+"px)":e.className.includes("snap-x")?"translateX(-"+a.offsetLeft+"px)":"translateY(-"+a.offsetTop+"px)",t.style.transform=i,l)for(let e of s){let e,t;e=document.createElement("span"),l.appendChild(e),e.classList.add("dot"),(t=l.querySelectorAll(".dot")[0]).classList.add("active")}}for(let c of s){let s=!!c.className.includes("snap-x"),d=!0,u=c.querySelectorAll('[class*="snaptype-"]')[0],f=!!u.className.includes("-blocks"),m=c.querySelectorAll(".snaps")[0],p=null,v=null,g=m.querySelectorAll(".snaps>*"),h=n(s,f,m,null),y=null!=c.querySelectorAll(".snaplabels")[0],b=null,L=null!=c.querySelectorAll(".dot")[0],x=null,T=null,A=null;h&&null!=h&&null!=h||e(":: [⚠ ui alert]: wrong snap slider\n ⮑ active class not found!\n ⮑ element:",m),m.closest(".snaptype-wide")||m.closest(".snaptype-blocks")||e(":: [⚠ ui alert]: wrong snap-x\n ⮑ deprecated api or snapstype-xxx not found!"),y&&(b=c.querySelectorAll(".snaplabels>*")),L&&(x=c.querySelectorAll(".dot")),c.querySelectorAll(".next")&&(T=c.querySelectorAll(".next")[0]),c.querySelectorAll(".prev")&&(A=c.querySelectorAll(".prev")[0]);let w=0;if(s)for(let e of g)w+=e.offsetWidth;else for(let e of g)w+=e.offsetHeight;function l(e){"a"==e.target.tagName.toLowerCase()||e.target.closest("a")||(e.preventDefault(),e.stopPropagation(),v=null,t()?(p=s?e.touches[0].clientX:e.touches[0].clientY,document.ontouchmove=a):(p=s?e.clientX:e.clientY,document.onmousemove=a),h=n(s,f,m,h))}function a(e){e.preventDefault(),e.stopPropagation(),d=!1,v=t()?s?e.touches[0].clientX-p:e.touches[0].clientY-p:s?e.clientX-p:e.clientY-p;let l,a,n,r=0,y=g.length,b=h;for(let e of g){let t,l,a;if(s?(t=e.offsetLeft,l=e.offsetLeft+e.offsetWidth,a=h.offsetLeft+h.offsetWidth/2-v):(t=e.offsetTop,l=e.offsetTop+u.offsetHeight,a=h.offsetTop+h.offsetHeight/2-v),0==r&&a=t)g[y-1].classList.add("active"),b=g[y-1];else if(r>=1&&r=t&&a<=l){for(let e of g)e.classList.remove("active");g[r].classList.add("active"),b=g[r]}else m.querySelectorAll(".snaps>.active").length>-1?(b=h,g[r].classList.remove("active")):(b=g[r]).classList.add("active");r++,L&&o(c,g)}s?(l=f?parseInt(b.offsetLeft+b.offsetWidth/2-v):parseInt(b.offsetLeft-v),a=f?u.offsetLeft:u.offsetWidth/2,n=w-a):(l=f?parseInt(b.offsetTop+b.offsetHeight/2-u.offsetHeight/2-v):parseInt(b.offsetTop-v),a=0,n=w-u.offsetHeight),l<=a?(m.classList.add("smooth"),position=a):l>=n?(m.classList.add("smooth"),position=n):(m.classList.remove("smooth"),position=l),m.style.transform=s?"translateX(-"+position+"px)":"translateY(-"+position+"px)",document.ontouchend=i,document.onmouseup=i}function i(e){let t,l,a;e.preventDefault(),e.stopPropagation(),document.onmousedown=!0,document.ontouchstart=!0,document.onmousemove=null,document.ontouchmove=null,document.onmouseup=!0,document.ontouchend=!0,(h=n(s,f,m,h)).classList.add("active"),s?(t=h.offsetLeft,l=u.offsetWidth/2||u.offsetLeft,a=w-l):(t=h.offsetTop,l=0,a=w-u.offsetHeight),position=s?f?t<=l?l:t>=a?a:f?t+h.offsetWidth/2:t:h.offsetLeft:f?t<=l?l:t>=a?a:h.offsetTop+h.offsetHeight/2-u.offsetHeight/2:h.offsetTop,m.classList.add("smooth"),m.style.transform=s?"translateX(-"+position+"px)":"translateY(-"+position+"px)",y&&r(s,g,b),setTimeout(()=>{m.classList.remove("smooth")},200),setTimeout(()=>{d=!0},1e3)}if(s&&0!=h.offsetLeft?m.style.transform=f?"translateX(-"+(u.offsetLeft+h.offsetWidth/2)+"px)":"translateX(-"+u.offsetLeft+"px)":s||0==h.offsetTop||(m.style.transform=f?"translateY(-"+(u.offsetTop+h.offsetHeight/2)+"px)":"translateY(-"+u.offsetTop+"px)"),t()?(m.ontouchstart=l,m.ontouchmove=a):(m.onmousedown=l,m.onmousedrag=a),c.className.includes("autosnap")){c.onmouseover=(e=>{d=!1}),c.onmouseleave=(e=>{d=!0}),c.ontouchstart=(e=>{d=!1}),c.ontouchend=(e=>{d=!0});let e=parseInt(c.className.split("autosnap-[")[1].split("]")[0]);setInterval(()=>{let e=n(s,f,m,null);if(d)if(e.nextElementSibling){let t,l,a;e.classList.remove("active"),e.nextElementSibling.classList.add("active"),e=n(s,f,m,null),l=0,a=w,s?(t=f?parseInt(e.offsetLeft+e.offsetWidth/2):parseInt(e.offsetLeft),position=t<=l?l:t>=a?w:t):(t=f?parseInt(e.offsetTop-(u.offsetHeight/2-e.offsetHeight/2)):parseInt(e.offsetTop),position=t+u.offsetHeight/4<=l?l:t+u.offsetHeight/4>=a?w-u.offsetHeight:t),m.classList.add("smooth"),m.style.transform=s?"translateX(-"+position+"px)":"translateY(-"+position+"px)",L&&o(c,g),y&&r(s,g,b),setTimeout(()=>{m.classList.remove("smooth")},250)}else m.classList.add("smooth"),e.classList.remove("active"),g[0].classList.add("active"),m.style.transform=s?"translateX(-"+u.offsetLeft+"px)":"translateY(-"+u.offsetTop+"px)",L&&o(c,g),y&&r(s,g,b)},e)}T&&(T.onclick=(e=>{let t=(h=n(s,f,m,h)).nextElementSibling;if(t&&!t.className.includes("lock")){let e,l,a;m.classList.add("smooth");let i=s&&f?t.offsetLeft+t.offsetWidth/2:s&&!f?t.offsetLeft:!s&&f?t.offsetTop-t.offsetHeight/2:t.offsetTop;s?(e=f?u.offsetLeft:u.offsetWidth/2,l=w-e,a=i<=e?e:i>=l?l:i):(e=0,l=w-u.offsetHeight,a=i+u.offsetHeight/4<=e?e:i+u.offsetHeight/4>=l?w-u.offsetHeight:i),m.style.transform=s?"translateX(-"+a+"px)":"translateY(-"+a+"px)",h.classList.remove("active"),t.classList.add("active");let n=g.length;for(let e=0;e{m.classList.remove("smooth")},300)}})),A&&(A.onclick=(e=>{let t=(h=n(s,f,m,h)).previousElementSibling;if(t&&!t.className.includes("lock")){let e,l,a;m.classList.add("smooth");let i=s&&f?t.offsetLeft+t.offsetWidth/2:s&&!f?t.offsetLeft:!s&&f?t.offsetTop-t.offsetHeight/2:t.offsetTop;s?(e=f?u.offsetLeft:u.offsetWidth/2,l=w-e,a=i<=e?e:i>=l?l:i):(e=0,l=w-u.offsetHeight,a=i+u.offsetHeight/4<=e?e:i+u.offsetHeight/4>=l?w-u.offsetHeight:i),m.style.transform=s?"translateX(-"+a+"px)":"translateY(-"+a+"px)",h.classList.remove("active"),t.classList.add("active");let n=g.length;for(let e=0;e{m.classList.remove("smooth")},300)}}))}function n(e,t,s,l){let a=0,i=s.querySelectorAll(".snaps>*"),n=!!l;for(let e of i){if(e.classList.contains("active")){for(let e of i)e.classList.remove("active");n=!0,e.classList.remove("active"),(l=e.classList.contains("lock")?i[a-1]:e).classList.add("active")}a++}return n||(l=i[0]),l}function o(e,t){let s=t.length;for(let l=0;l.dot")[l];s&&(t[l].className.includes("active")?s.classList.add("active"):s.classList.remove("active"))}}function r(e,t,s){let l=t.length;for(let a=0;a{let e=[...document.querySelectorAll('*[class*="autocrop"]')];for(let t of e)if(null==t.style.height||!t.style.height){let e=String(t.parentNode.style.height)+"px";t.style.height=e}},g=()=>{let e=[...document.querySelectorAll('*[class*="flange"]')],t=e.length;for(let s=0;s{let t,l,a,i,n,o,r=e[s],c=r.closest("NAV"),d=r.parentNode,u=!1;r.parentElement.style.position="relative",setTimeout(()=>{if((r.className.includes("flange-left")||r.className.includes("flange-right"))&&("DIV"==r.tagName?(r.style.height=c.offsetHeight+"px",t=r.parentNode.offsetTop,l=c.offsetTop,positon=l-t,r.style.top=positon+"px"):(r.style.top=0,i=r.offsetHeight/2,n=r.parentNode.offsetHeight/2,a=-1*(i-n),r.style.marginTop=a+"px"),r.className.includes("flange-left")&&(o=r.offsetWidth,r.style.marginLeft=-1*o+"px")),r.className.includes("flange-top")||r.className.includes("flange-bottom")){if("DIV"==r.tagName)t=parseInt(r.parentNode.offsetLeft),l=parseInt(c.offsetLeft),a=l-t,r.style.left=a+"px",r.style.width=c.offsetWidth+"px";else{let e=-1*(parseInt(r.offsetWidth)/2-parseInt(r.parentNode.offsetWidth)/2);r.style.left=e+"px"}r.className.includes("flange-top")&&(r.style.top=0,i=-1*r.offsetHeight,r.style.marginTop=i+"px"),r.className.includes("flange-bottom")&&(r.style.top=0,n=r.parentNode.offsetHeight,r.style.marginTop=n+"px")}d.className.includes("fx-")||r.className.includes("fx-")||(d.addEventListener("click",e=>{f(e)},!0),r.addEventListener("mouseleave",e=>{m(e)},!1),document.body.addEventListener("click",e=>{e.target.closest("NAV")||m(e),document.body.onclick=null},!0))},150);let f=t=>{if(t.target.closest("li")&&("a"==t.target.tagName.toLowerCase()||t.target.closest("a")))if(u)u&&(r.classList.add("[status-off]"),r.classList.remove("[status-active]"),d.classList.add("[status-off]"),d.classList.remove("[status-active]"),u=!1);else{for(let t=0;t(r.classList.add("[status-off]"),r.classList.remove("[status-active]"),d.classList.add("[status-off]"),d.classList.remove("[status-active]"),setTimeout(()=>{r.classList.remove("[status-off]"),r.classList.remove("[status-active]"),r.previousElementSibling.classList.remove("[status-off]"),r.previousElementSibling.classList.remove("[status-active]")},250),u=!1)},200)},h={layers:[]},y=()=>{var e=!1,s={layers:[]};let i=[],n=[];for(let e of document.querySelectorAll(".grabbox")){let t=String(e.parentNode.classList).split(" ");for(let e of t)e.startsWith("grabslot")&&n.push(e)}i=n.filter((e,t)=>n.indexOf(e)==t);for(let e of i)s.layers.push({name:e,elements:[]});for(let e of s.layers){let t=[...document.querySelectorAll("[class*='"+e.name+"']")];for(let s of t)e.elements.push({slot:s,slotid:s.id,box:s.firstElementChild,boxid:s.firstElementChild.id})}function o(e,t,s){let i,n,o,r,c,d;if(r=s.closest(".scroll-y")?s.closest(".scroll-y").scrollTop:0,o=s.closest(".scroll-x")?s.closest(".scroll-x").scrollLeft:0,i=(document.body.scrollLeft||window.pageXOffset)+o+e,n=(document.body.scrollTop||window.pageYOffset)+r+t,d=l(s),TBottom=d+s.offsetHeight,c=a(s),TRight=c+s.offsetWidth,n>d&&nc&&i{(new Date).getTime()-u>=750?function(){e=!0,clearInterval(f);let s=document.querySelectorAll('[class*="'+i.name+'"]');for(let e of s)e.classList.add("stratum");let u=(document.documentElement.scrollLeft||window.pageXOffset)+document.body.scrollLeft,m=(document.documentElement.scrollTop||window.pageYOffset)+document.body.scrollTop,p=a(d),v=l(d);d.closest(".scroll-x")&&(u+=d.closest(".scroll-x").scrollTop);d.closest(".scroll-y")&&(m+=d.closest(".scroll-y").scrollTop);t()?(xPointerStart=ev_grabs_start.touches[0].clientX+u,yPointerStart=ev_grabs_start.touches[0].clientY+m):(xPointerStart=ev_grabs_start.clientX+u,yPointerStart=ev_grabs_start.clientY+m);var g,h,b,L,x,T;d.closest(".scroll-y")?(g=!1,h=d.closest(".scroll-y").parentNode):d.closest(".scroll-x")?(g=!1,h=d.closest(".scroll-x").parentNode):(g=!0,h=document.documentElement||window);h&&(g?(b=parseInt(document.body.scrollTop||window.pageYOffset)+33,L=parseInt(document.body.scrollLeft||window.pageXOffset)+33,x=L+h.offsetWidth-33,T=b+h.offsetHeight-33):(b=l(h)+33,L=a(h)+33,x=a(h)+h.offsetWidth-33,T=l(h)+h.offsetHeight-33));d.classList.add("active"),d.classList.remove("off"),n.classList.add("active"),n.classList.remove("off"),d.style.left=parseInt(p-u)+"px",d.style.top=parseInt(v-m)+"px",t()?document.ontouchmove=(e=>A(e)):document.onmousemove=(e=>A(e));function A(e){let l,a;e.preventDefault(),e.stopPropagation(),t()?(l=e.touches[0].clientX,a=e.touches[0].clientY):(l=e.clientX,a=e.clientY),d.style.left=parseInt(l-xPointerStart+p)+"px",d.style.top=parseInt(a-yPointerStart+v)+"px";let i=parseInt((document.body.scrollTop||window.pageYOffset)+a),u=parseInt((document.body.scrollLeft||window.pageXOffset)+l),m=g?h:h.firstElementChild;i<=b?m.scrollTop-=50:i>=T&&(m.scrollTop+=50),ux&&(m.scrollLeft+=50);let w=null;for(let e of s)e.classList.remove("active"),e!=n&&(e.removeAttribute("style"),e.firstElementChild.removeAttribute("style")),o(l,a,e)?(w=e)!=n&&w.classList.add("active"):e.classList.remove("active");function E(t,l,a,i){if(a&&null!=a&&a!=l){c(l.firstElementChild),c(a.firstElementChild);let e=l,t=d,s=a,i=a.firstElementChild;e.appendChild(i),s.appendChild(t),e.classList.remove("active","off"),e.firstElementChild.classList.remove("active","off"),s.classList.remove("active","off"),s.firstElementChild.classList.remove("active","off"),e.style="",t.style="",s.style="",i.style="",n()}else c(l.firstElementChild),d.classList.add("off"),l.classList.add("off"),setTimeout(()=>{d.classList.remove("active","off"),l.classList.remove("active","off"),d.removeAttribute("style"),n()},500);function n(){d=null,l=null,document.ontouchstart=null,document.onmousedown=null,document.ontouchmove=null,document.onmousemove=null;for(let e of s)e.classList.remove("stratum");A=null,ev_grabs_start=null,e=null,null,r(),y()}}t()?document.ontouchend=(e=>{null!=d&&E(e,n,w,f)}):document.onmouseup=(e=>{null!=d&&E(e,n,w,f)})}}():t()?document.ontouchend=(()=>{clearInterval(f)}):document.onmouseup=(()=>{clearInterval(f)})},10)}}}t()?s.box.addEventListener("touchstart",d,!1):s.box.addEventListener("mousedown",d,!1)}h.layers=[];for(let e of s.layers)h.layers.push({name:e.name,elements:[]});for(let e of h.layers)for(let t of s.layers)if(t.name==e.name)for(let s of t.elements)e.elements.push({"slot-id":s.slotid,"box-id":s.boxid,"box-raw":s.box.innerHTML.replace(/\n|\t/g," ").replace(/\s{2,}/g," ")});return h},b=()=>{let e=document.querySelectorAll('*[class*="button-password"]');for(let t of e){let e=t.getElementsByTagName("img")[0],s=t.getElementsByTagName("img")[1],l=t.getElementsByTagName("input")[0],a=t.getElementsByTagName("input")[1];e.classList.add("active"),s.classList.add("off"),l.classList.add("off"),a.classList.add("active"),a.value=l.value,e.onclick=(()=>{e.classList.replace("active","off"),s.classList.replace("off","active"),l.classList.replace("off","active"),a.classList.replace("active","off")}),s.onclick=(()=>{e.classList.replace("off","active"),s.classList.replace("active","off"),l.classList.replace("active","off"),a.classList.replace("off","active")}),t.addEventListener("focus",()=>{let e=setInterval(()=>{t.querySelectorAll("input.off")[0].value=t.querySelectorAll("input.active")[0].value},200);t.addEventListener("blur",()=>{window.clearInterval(e)},!0)},!0)}},L=()=>{let e=document.querySelectorAll(".stars");for(let t of e){let e,s,l,a=t.previousElementSibling.value,i=["very bad","not good","normal/good","very good","exellent"];e='',t.innerHTML=e,s=t.querySelectorAll(".all-stars")[0];for(let t=0;t<5;t++)e='',s.innerHTML+=e;l=t.querySelectorAll(".all-labels")[0];for(let t=0;t<5;t++){e='

'+i[t]+"

",l.innerHTML+=e}let n=s.getElementsByTagName("svg"),o=l.getElementsByTagName("p");for(let e=0;e<5;e++)n[e].classList.remove("active");for(let e=0;e<5;e++){let t=n[e];a==n[e].dataset.rating&&(t.classList.add("active"),t.classList.remove("off"))}for(let e=0;e<5;e++){let s=n[e];s.addEventListener("mouseover",()=>{for(let t=0;t<5;t++)t<=e?n[t].classList.add("focus"):n[t].classList.remove("focus"),t==e?o[t].classList.replace("hide","show"):o[t].classList.replace("show","hide")},!0),s.addEventListener("mouseleave",()=>{for(let e=0;e<5;e++)n[e].classList.remove("focus"),o[e].classList.replace("show","hide");for(let e=0;e<5;e++)n[e].classList.contains("active")&&o[e].classList.replace("hide","show")},!0),s.addEventListener("click",()=>{for(let e=0;e<5;e++)n[e].classList.replace("active","off"),o[e].classList.replace("show","hide");t.setAttribute("data-stars",s.dataset.rating),s.classList.replace("off","active"),o[e].classList.replace("hide","show"),"INPUT"==t.previousElementSibling.tagName&&(t.previousElementSibling.value=s.dataset.rating,t.previousElementSibling.setAttribute("value",s.dataset.rating))},!0)}}},x=()=>{let e=document.querySelectorAll('*[class*="button-number"]');for(let r of e){let e=r.querySelectorAll('input[type="number"]')[0],c=e.getAttribute("value"),d=e.getAttribute("min"),u=e.getAttribute("max");r.insertAdjacentHTML("beforeEnd",'
');let f,m,p=r.querySelectorAll(".number-slider")[0];for(let e=d;e<=u;e++)p.insertAdjacentHTML("beforeEnd",''+e+"");function s(){setTimeout(()=>{let e=p.querySelectorAll(".number-slider .active")[0],t=e.offsetLeft+e.offsetWidth/2-r.offsetWidth/2;p.style.transform="translateX("+-1*t+"px)"},200)}function l(e){let s=-1*p.style.transform.replace(/[^\d.]/g,"");p.classList.add("[status-active]"),p.classList.remove("[status-off]"),t()?f=e.touches[0].clientX-s:(e.preventDefault(),f=event.clientX-s,document.onmousemove=a,document.onmouseup=i)}function a(e){e.preventDefault(),m=t()?e.touches[0].clientX-f:e.clientX-f,p.style.transform="translateX("+m+"px)",n()}function i(t){p.classList.remove("[status-active]"),p.classList.add("[status-off]"),f=-1*m,startvalueposition=-1*f,document.onmouseup=null,document.onmousemove=null;p.style.transform.replace(/[^\d.]/g,"");let s=p.querySelectorAll(".number-slider>.active")[0],l=s.offsetLeft+s.offsetWidth/2-r.offsetWidth/2;p.classList.add("smooth"),p.style.transform="translateX("+-1*l+"px)",setTimeout(()=>{p.classList.remove("smooth")},300),e.setAttribute("value",s.getElementsByTagName("small")[0].innerText)}function n(){let e=p.style.transform.replace(/[^\d.]/g,""),t=[...p.querySelectorAll(".number-slider>.active")][0],s=t.offsetLeft+t.offsetWidth/2-r.offsetWidth/2;e>s+t.offsetWidth/2?t.nextElementSibling&&(t.nextElementSibling.classList.add("active"),t.classList.remove("active"),t=[...p.querySelectorAll(".number-slider>.active")][0]):e.active")][0])}p.querySelectorAll('[class*="number-['+c+']"]')[0].classList.add("active"),s(),p.ontouchstart=l,p.onmousedown=l,p.ontouchmove=a,p.ontouchend=i;let v=r.getElementsByTagName("span")[0],g=r.getElementsByTagName("span")[1];function o(t,s){s.classList.add("active"),t.classList.remove("active"),setTimeout(()=>{e.setAttribute("value",s.getElementsByTagName("small")[0].innerText);let t=s.offsetLeft+s.offsetWidth/2-r.offsetWidth/2;p.classList.add("smooth"),p.style.transform="translateX("+-1*t+"px)",setTimeout(()=>{p.classList.remove("smooth")},250)},250)}v.onclick=(()=>{let e=p.querySelectorAll(".number-slider>.active")[0];o(e,e.previousElementSibling)}),g.onclick=(()=>{let e=p.querySelectorAll(".number-slider>.active")[0];o(e,e.nextElementSibling)})}},T=()=>{let e=document.querySelectorAll('*[class*="button-range"]');for(let s of e){s.querySelectorAll(".slider")[0];let e=s.querySelectorAll(".monitor")[0],l=s.querySelectorAll("input"),a=l.length;e.classList.add("[status-off]");for(let s=0;s{let a,i,n=l[s],o=n.getAttribute("min"),r=n.getAttribute("max"),c=n.getAttribute("value"),d=n.offsetWidth,u=n.nextElementSibling.nextElementSibling,f=n.getAttribute("type").match("float")?2:0;if((""+n.step).match("%")){a=1;let e=(""+n.step).split("%")[0];i=parseFloat(e)}else a=0,i=parseFloat(n.step);let m,p,v=b(o,r,c);function g(e){d=n.offsetWidth;let t=u.offsetLeft;if("touchstart"===e.type){let s=e.touches[0].clientX;m=s-t,u.ontouchmove=h,u.ontouchend=y}else{e.preventDefault();let s=event.clientX;m=s-t,document.onmousemove=h,document.onmouseup=y}u.classList.add("[status-active]"),u.classList.remove("[status-off]")}function h(l){let v,g,h=n.closest(".sliders").querySelectorAll("b")[s-1];h?(v=parseInt(h.offsetLeft),g=parseInt(b(0,d,v))):g=-1;let y,T,A=n.closest(".sliders").querySelectorAll("b")[s+1];if(A?(y=parseInt(A.offsetLeft),T=parseInt(b(0,d,y))):T=101,l.preventDefault(),(p=t()?l.touches[0].clientX-m:l.clientX-m)>-1&&prangemin&&pg&&sr)return!1;if(rangemax=l+i/2,s>l-i/2&&sg&&tg&&t"+t+"",n.setAttribute("value",t),c=n.value}else e.innerHTML=""+String(s)+"",n.setAttribute("value",s),c=n.value;e.classList.add("[status-active]"),e.classList.remove("[status-off]")}x()}}function y(t){u.classList.add("[status-off]"),u.classList.remove("[status-active]"),e.classList.add("[status-off]"),setTimeout(()=>{e.classList.remove("[status-active]")},500),document.onmouseup=null,document.onmousemove=null}function b(e,t,s){return Number((s-e)/(e-t)*-100).toFixed(f)}function L(e,t,s){return Number(-1*((e-t)*s/100-e)).toFixed(f)}function x(){let e=[...n.closest(".sliders").querySelectorAll("input+span")],t=e.length;for(let s=0;s{let e=document.querySelectorAll('*[class*="button-select"]');for(let l of e){let e,a,i,n=l.getElementsByTagName("select")[0],o=l.querySelectorAll("[type=search]")[0],r=l.getElementsByTagName("label")[0],c=l.querySelectorAll("input")[0],d=c.value.split(",")||select.value.split(","),u=c.multiple?1:0;if(null!=n){let t=Math.floor(9999*Math.random());l.setAttribute("target","outbox#select-"+t);let s='\n
\n
\n
\n\n
\n\n \n\n
\n '+(o?"
":"")+'\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n Close\n
\n
\n\n
\n\n
\n
\n
\n ';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",s),e=document.getElementById("select-"+t).querySelectorAll(".optiongroup")[0],i=document.getElementById("select-"+t).querySelectorAll(".selectorbox")[0],a=[...document.getElementById("select-"+t).querySelectorAll(".selectorbox .accept")][0],o&&(i.querySelectorAll(".button")[0].appendChild(o),o=[...i.querySelectorAll("[type=search]")][0]);let r=[...l.querySelectorAll("OPTGROUP")],c=r.length;for(let t=0;t

":"

"+s.getAttribute("label")+"

";let i=[],n=a.length;for(let e=0;e\n \n \n \n ";i.push(n)}else i.push(''+a[e].text+"");let o,c=String(i.join(" "));o="

"==l?'\n
\n
\n '+c+"\n
\n ":'\n
\n '+l+'\n
\n
\n '+c+"\n
\n ",e.insertAdjacentHTML("beforeEnd",o)}n.parentNode.removeChild(n)}a.innerHTML="wainting a choose";let f=[...i.querySelectorAll(".options>*")],m=f.length,p=[],v=[],g=null;for(let e=0;e=m-1&&(c.value=p.join(),r.innerHTML=v.join()):t.innerText==r.innerText&&t.classList.add("active")}for(let e=0;e{!(p.length<=0)||(a.innerHTML="Accept");let s=f[e];t(f,s,p,v,u)},!1);function t(e,t,s,l,i){if(a.innerHTML="OK - SAVE",i){let e=t.getAttribute("data-option"),a=t.getElementsByTagName("label")[0].innerText,i=s.indexOf(e),n=l.indexOf(a);t.classList.contains("active")||0==t.firstElementChild.value||0==t.firstElementChild.checked?(t.classList.remove("active"),s.push(e),l.push(a)):t.classList.contains("active")&&1!=t.firstElementChild.value&&1!=t.firstElementChild.checked||(t.classList.add("active"),s.splice(i,1),l.splice(n,1))}else{for(let t=0;t{a.innerHTML="CLOSE"},300)}a.onclick=(()=>{s(c,r,p,v,u,g)}),o&&o.addEventListener("input",()=>{let e=o.value.toLowerCase();for(let t=0;t{let e=[...document.querySelectorAll('*[class*="button-dropdown"]')];for(let s of e){let e,l=[...s.querySelectorAll("label")][0],a=[...s.querySelectorAll("[type=search]")][0],i=[...s.querySelectorAll("input")][0],n=i.value.split(",")||select.value.split(","),o=i.multiple?1:0;if(s.getElementsByTagName("select")){let t,i=l.nextElementSibling;Math.floor(9999*Math.random());t=a?'\n
\n\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n
':'\n
\n
\n
\n
\n
\n
\n
\n
',s.insertAdjacentHTML("beforeEnd",t),e=[...s.querySelectorAll(".selectorbox")][0],a&&([...e.querySelectorAll(".button")][0].appendChild(a),a=[...e.querySelectorAll("[type=search]")][0]);let r=[...s.querySelectorAll("OPTGROUP")],c=r.length;for(let t=0;t

":"

"+s.getAttribute("label")+"

";let i=[],c=a.length;for(let e=0;e\n \n \n \n ";i.push(o)}else i.push(''+a[e].text+"");let d,u=String(i.join(" "));d="

"==l?'\n
\n
\n '+u+"\n
":'
\n '+l+'\n
\n
\n '+u+"\n
",e.querySelectorAll(".optiongroup")[0].insertAdjacentHTML("beforeEnd",d)}o&&e.classList.add("multiple"),i.remove()}setTimeout(()=>{e.style.width=s.offsetWidth+"px"},500);let r=!1;document.addEventListener("click",t=>{r||(r=!0,s.contains(t.target)?t.target.closest("[type=search]")||t.target.closest(".button-checkbox")||(e.classList.contains("active")?(e.classList.add("off"),e.classList.remove("active"),setTimeout(()=>{setTimeout(()=>{e.classList.remove("off")},350)},200)):(e.classList.add("active"),setTimeout(()=>{e.classList.remove("off")},200))):(e.classList.add("off"),setTimeout(()=>{e.classList.remove("active"),setTimeout(()=>{e.classList.remove("off")},350)},200)),setTimeout(()=>{r=!1},600))});let c=[...e.querySelectorAll(".options>*")],d=c.length,u=[],f=[];for(let e=0;e=d-1&&(i.value=u.join(),l.innerHTML=f.join()):t.innerText==l.innerText&&t.classList.add("active")}for(let e=0;e{let s=c[e];t(c,s,u,f,o)},!1);function t(e,t,s,a,n){if(n){let e=t.getAttribute("data-option"),n=t.getElementsByTagName("label")[0].innerText,o=s.indexOf(e),r=a.indexOf(n);t.classList.contains("active")||0==t.firstElementChild.value||0==t.firstElementChild.checked?(t.classList.remove("active"),s.push(e),a.push(n)):t.classList.contains("active")&&1!=t.firstElementChild.value&&1!=t.firstElementChild.checked||(t.classList.add("active"),s.splice(o,1),a.splice(r,1)),i.value=s.join(),l.innerHTML=a.join()}else{for(let t=0;t{let e=a.value.toLowerCase();for(let t=0;t{e.style.width=s.offsetWidth+"px"})}},E=()=>{let s=document.querySelectorAll('*[class*="button-clock"]');for(let d of s){let s=Math.floor(999*Math.random());d.setAttribute("target","outbox#times-"+s);let u='\n
\n
\n
\n\n
\n\n \n\n
\n\n \n\n
\n
\n\n
\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n \n \n :\n \n \n \n AM\n PM\n \n
\n\n
\n\n
\n

\n
\n OK - SAVE\n
\n
\n\n
\n\n
\n
\n
\n ';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",u);let f=document.getElementById("times-"+s),m=f.querySelectorAll(".am")[0],p=f.querySelectorAll(".pm")[0],v=f.querySelectorAll(".hours>input")[0],g=f.querySelectorAll(".minutes>input")[0],h=(f.querySelectorAll(".clock")[0],f.querySelectorAll(".rayline-hours")[0]),y=f.querySelectorAll(".rayline-minutes")[0],b=f.querySelectorAll(".pivot")[0],L=f.querySelectorAll("a.accept")[0];function l(e){e.select()}if(v.onmousedown=(()=>{l(v)}),v.ontouchstart=(()=>{l(v)}),g.onmousedown=(()=>{l(g)}),g.ontouchstart=(()=>{l(g)}),""!=d.getElementsByTagName("input")[0].value){let e=d.getElementsByTagName("input")[0].value,t=parseInt(e.split(":")[0]),s=parseInt(e.split(":")[1]);setTimeout(()=>{h.style.transform="rotate("+(30*t-90)+"deg)",y.style.transform="rotate("+(6*s-90)+"deg)"},500),t>=1&&t<=9&&(t="0"+t),v.value=t,s>=1&&s<=9&&(s="0"+s),g.value=s}function a(){let e=parseInt(v.value);m.classList.contains("status-active")?e>12?e="01":e<1?e="12":e>=1&&e<=9&&(e="0"+e):e>23?e="00":e<=-1?e="23":e<=9&&(e="0"+e),e.length>=3&&(e="01"),h.classList.add("smooth"),h.style.transform="rotate("+(30*parseInt(e)-90)+"deg)",setTimeout(()=>{h.classList.remove("smooth")},300),v.value=e}function i(){let e=g.value;e>59?e="00":e<0?e="59":e>=0&&e<=9&&(e="0"+e),e.length>2&&(e="01"),y.classList.add("smooth"),y.style.transform="rotate("+(6*parseInt(e)-90)+"deg)",setTimeout(()=>{y.classList.remove("smooth")},300),g.value=e}v.onkeyup=(()=>{String(v.value).length>=2&&a()}),v.onblur=(()=>{a()}),g.onkeyup=(()=>{String(g.value).length>=2&&i()}),g.onblur=(()=>{i()}),m.onclick=(()=>{if(!m.className.includes("status-active")){m.classList.add("[status-active]"),m.classList.remove("[status-off]"),p.classList.add("[status-off]"),p.classList.remove("[status-active]");let e=parseInt(v.value);0==e&&(e=12),e>12&&(e<=22?e="0"+(e-12):e>22&&(e-=12)),v.value=e,c(d,v,g,f,L)}}),p.onclick=(()=>{if(!p.className.includes("status-active")){m.classList.add("[status-off]"),m.classList.remove("[status-active]"),p.classList.add("[status-active]"),p.classList.remove("[status-off]");let e=parseInt(v.value);12==e?e="00":e+=12,v.value=e,c(d,v,g,f,L)}});let x=180*Math.atan2(-90,0)/Math.PI;h.style.transform="rotate("+x+"deg)";let T,A,w,E=180*Math.atan2(0,15)/Math.PI;function n(e){e.preventDefault(),e.stopPropagation();let s=b.getBoundingClientRect();T={x:window.scrollX+s.left,y:window.scrollY+s.top},event.target==h?(A=!0,w=!1):event.target==y&&(A=!1,w=!0),t()?document.ontouchmove=o:document.onmousemove=o}function o(e){let s,l,a;if(t()?(s=e.touches[0].clientX-T.x,l=e.touches[0].clientY-T.y,a=180*Math.atan2(l,s)/Math.PI):(s=e.pageX-T.x,l=e.pageY-T.y,a=180*Math.atan2(l,s)/Math.PI),A){let e=-180,t=180,s=parseInt((a-e)/(e-t)*-100),l=[];for(let e=0;e<14;e++){let t=parseInt(100*e/12);l.push(t)}let i=l.length;for(let a=0;al[a-1]&&sl[a-1]&&sl?(e.innerHTML="This Time is not available",e.classList.remove("hide"),i.classList.add("disabled"),i.innerText="OUT OF RANGE"):(e.classList.replace("active","off"),e.classList.add("hide"),i.classList.remove("disabled"),i.innerText="OK - SAVE",i.addEventListener("click",e=>{t.querySelectorAll(".button-clock>label")[0].innerText=n+":"+o,t.querySelectorAll(".button-clock>input")[0].value=n+":"+o},!1))}else i.innerText="OK - SAVE",i.addEventListener("click",e=>{t.querySelectorAll(".button-clock>label")[0].innerText=n+":"+o,t.querySelectorAll(".button-clock>input")[0].value=n+":"+o},!1)}y.style.transform="rotate("+E+"deg)",t()?(h.ontouchstart=n,y.ontouchstart=n):(h.onmousedown=n,y.onmousedown=n)}},S=()=>{let e=document.querySelectorAll('*[class*="button-checkbox"]');for(let t of e){let e=t.firstElementChild;e.checked&&""!=e.value?(e.setAttribute("checked",!0),e.checked=!0,e.value=1):(e.setAttribute("checked",!1),e.checked=!1,e.value=0),t.onclick=(t=>{e.disabled||(e.checked?(e.setAttribute("checked",!1),e.checked=!1,e.value=0):(e.setAttribute("checked",!0),e.checked=!0,e.value=1))})}},I=()=>{let e=document.querySelectorAll('*[class*="button-radio"]');for(let t of e){let e=t.firstElementChild;e.checked&&""!=e.value?(e.setAttribute("checked",!0),e.checked=!0,e.value=1):(e.setAttribute("checked",!1),e.checked=!1,e.value=0),t.onclick=(t=>{let s=document.querySelectorAll('[name="'+e.getAttribute("name")+'"]'),l=s.length;for(let e=0;e{let s=[...document.querySelectorAll("*[class*=button-date]")];for(let r of s){let s=[...r.getElementsByTagName("label")][0],c=[...r.getElementsByTagName("input")],d=c.length,u=1,f=[];if(d>2)e(':: [🛈 viƨor info]: button-date oversized\n ⮑ The maximum amount of inputs is two: "start date", "end date".'),r.classList.add("debug-error");else if(d<1)e(":: [🛈 viƨor info]: button-date subsized\n ⮑ The minumum amount of inputs is one: are you kidding me?"),r.classList.add("debug-error");else{let m,p,v,g,h;r.classList.contains("EUR")?(m=!1,p=!0):(m=!0,p=!1);let y,b=[...String(r.className).split(" ")],L=["DMY","DYM","MYD","MDY","YDM","YMD"],x=L.length;for(let e=0;e\n
\n
\n\n
\n\n \n\n
'+(2==d?'
FRIST DATE END DATE
':"\x3c!--singledate--\x3e")+'
\n\n
\n\n
\n\n \n  \n \n  \n \n\n
\n\n
\n\n \n  \n \n  \n \n\n
\n\n
\n\n
\n\n
\n
\n
\n
\n\n
\n\n
\n\n
\n
\n
\n
\n\n
\n\n
\n\n
\n OK - SAVE\n
\n\n
\n\n
\n\n
\n
\n \n ';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",A);let w,E,S=document.querySelectorAll("#datepicker-"+T)[0],I=S.querySelectorAll(".accept")[0],N=S.querySelectorAll(".year_list")[0],k=S.querySelectorAll(".month_list")[0],q=S.querySelectorAll(".weekday_list>div")[0],C=S.querySelectorAll(".day_list>div")[0],M=[],H=parseInt(r.firstElementChild.min),O=parseInt(r.firstElementChild.max);!H||""==H&&!O||""==O?(w=1950,E=2050):!O||H>O?(e(':: [🛈 viƨor info]: button-date strange min/max\n ⮑ The max value is undefined or min is over to max.\n Will be applied standard max "2050"'),w=H,E=2050):H?(w=H,E=O):(e(':: [🛈 viƨor info]: button-date strange min/max\n ⮑ The min value is undefined.\n Will be applied standard min "1950"'),w=1950,E=O);for(let e=w;e<=E;e++)M.push('

'+e+"

");M=String(M.join(" ")),N.innerHTML=M;let R=[...N.querySelectorAll("p")],D=R.length;if(H==O)for(let e=0;e'+W[e]+"

");B=String(B.join(" ")),k.innerHTML=B;let F=[...k.querySelectorAll("p")],z=F.length;for(let e=0;e'+P[e]+"");j=String(j.join(" ")),q.innerHTML=j;let X=(e,t)=>{let s=new Date(Date.UTC(e,t+1,null));return parseInt(s.getUTCDate())},U=(e,t)=>{let s=new Date(Date.UTC(e,t,1));return parseInt(s.getUTCDay())},Y=(e,t,s)=>{C.innerHTML="";let l=U(e,t),a=X(e,t),i=[],n=parseInt(44-(l+1));for(let e=p?-1*(l+5):-1*(l-1);e<=n;e++){let t=e,l="off",n="";t>=1&&t<=9&&(t="0"+e),t<=0||e>a?(t="░",n='style="opacity:0.5"',l="off disabled"):t==s&&(l="active",n=""),i.push('

'+t+"

")}i=String(i.join(" ")),C.innerHTML=i,r.className.includes("-compact")&&((()=>{let e=[...S.querySelectorAll(".day_list .day")].slice(0,7),t=0;for(let s=0;s<=6;s++)"░"===e[s].textContent&&t++;if(7===t)for(let t=0;t<=6;t++)e[t].parentNode.innerHTML=""})(),(()=>{let e=[...S.querySelectorAll(".day_list .day")].slice(-7),t=0;for(let s=0;s<=6;s++)"░"===e[s].textContent&&t++;if(7===t)for(let t=0;t<=6;t++)e[t].parentNode.innerHTML=""})()),2==d&&o()};Y(f[0].year,f[0].month,f[0].day);let _=()=>{for(let e=0;e{for(let e=0;e{let e=[...S.querySelectorAll(".day_list .day")],t=e.length;for(let s=0;s.prev"),Z=S.querySelector(".years>.next");function l(){for(let e=0;e{l()}),Z.onclick=(()=>{a()}),t()?N.ontouchstart=(e=>{let t=e.touches[0].clientX;N.ontouchmove=(e=>{e.target!=N&&e.preventDefault(),t>e.changedTouches[0].clientX+75&&(t=e.touches[0].clientX,l()),t{t=null,window.ontouchmove=null})}):N.onmousedown=(e=>{let t=e.clientX;window.onmousemove=(e=>{t>e.clientX+5&&(t=e.clientX,l()),t{t=null,window.onmousemove=null})});let K=S.querySelector(".months>.prev"),Q=S.querySelector(".months>.next");function i(){for(let e=0;e{i()}),Q.onclick=(()=>{n()}),t()?k.ontouchstart=(e=>{let t=e.touches[0].clientX;k.ontouchmove=(e=>{e.target!=k&&e.preventDefault(),t>e.changedTouches[0].clientX+175&&(t=e.touches[0].clientX,i()),t{t=null,window.ontouchmove=null})}):k.onmousedown=(e=>{let t=e.clientX;window.onmousemove=(e=>{t>e.clientX+35&&(t=e.clientX,i()),t{t=null,window.onmousemove=null})}),S.addEventListener("click",e=>{let t=[...S.querySelectorAll(".day_list .day")],s=t.length;for(let l=0;l{for(let e=0;esmall")][0],t=[...S.querySelectorAll(".fromto>small")][1];e.onclick=(s=>{u=1,e.classList.replace("off","active"),t.classList.replace("active","off");for(let e=0;e{u=2,t.classList.replace("off","active"),e.classList.replace("active","off");for(let e=0;e=new Date(f[1].year,f[1].month,f[1].day+1).getTime())I.parentNode.classList.add("disabled"),I.innerText="NO VALID DATES!";else{let e=[...S.querySelectorAll(".day_list .day")],t=e.length;for(let s=0;s=r&&o<=c?o==r&&a==i&&u==s?(t.remove("date-range"),t.add("date-range-first")):o==c&&a==n&&u==l?(t.remove("date-range"),t.add("date-range-last")):a==i&&a==n&&u>s&&us?t.add("date-range"):a==n&&ui&&a{if(2==d){let e=new Date(f[0].year,f[0].month,f[0].day+1).getTime(),t=new Date(f[1].year,f[1].month,f[1].day+1).getTime();e!=c[0].value&&(c[0].value=e),t!=c[1].value&&(c[1].value=t),s.innerText=f[0].day+"-"+(f[0].month+1)+"-"+f[0].year+" // "+f[1].day+"-"+(f[1].month+1)+"-"+f[1].year}else c[0].value=new Date(f[0].year,f[0].month,f[0].day).getTime(),s.innerText=f[0].day+"-"+(f[0].month+1)+"-"+f[0].year})}}},k=()=>{let e=[...document.querySelectorAll("*[class*=button-chronos]")];for(let l of e){let e=Math.floor(999*Math.random());l.setAttribute("target","outbox#chronos-"+e);let a='\n
\n
\n
\n\n
\n\n \n\n \x3c!--\n
\n\n \n\n
\n
\n\n
\n
\n\n
\n
\n\n
\n
\n\n
\n\n
\n\n
\n --\x3e\n\n
\n\n
\n
\n \n :\n \n :\n \n .\n \n
\n
\n START\n PAUSE\n RESET\n
\n
\n\n
\n\n
\n
\n OK - SAVE\n
\n
\n\n
\n\n
\n
\n
\n ';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",a);let i=document.getElementById("chronos-"+e),n=i.querySelectorAll(".accept")[0],o=!!l.className.includes("-reversed"),r=i.querySelectorAll(".hours>input")[0],c=i.querySelectorAll(".minutes>input")[0],d=i.querySelectorAll(".seconds>input")[0],u=i.querySelectorAll(".milliseconds>input")[0];function t(e){e.select()}r.onmousedown=(()=>{t(r)}),r.ontouchstart=(()=>{t(r)}),c.onmousedown=(()=>{t(c)}),c.ontouchstart=(()=>{t(c)}),d.onmousedown=(()=>{t(d)}),d.ontouchstart=(()=>{t(d)});let f=l.querySelectorAll("label")[0],m=l.getElementsByTagName("input")[0],p=i.querySelectorAll(".display .start")[0],v=i.querySelectorAll(".display .pause")[0],g=i.querySelectorAll(".display .reset")[0],h=f.innerText,y=r.value,b=c.value,L=d.value,x=0,T=null,A=null,w=0,E=null,S=[r,c,d,u];for(let e of S)e.oninput=(t=>{setTimeout(()=>{let t=parseInt(e.value);e.value=t>9?t:"0"+t,e.setAttribute("value",t>9?t:"0"+t)},250),y=r.value,b=c.value,L=d.value,x=u.value});function s(){null!=T&&(A=new Date,clearInterval(E))}p.onclick=(e=>{p.classList.add("active"),p.classList.remove("off"),v.classList.remove("active"),v.classList.add("off"),g.classList.remove("active"),g.classList.add("off"),null==T?(T=new Date,o&&(T.setHours(T.getHours()+parseInt(y)),T.setMinutes(T.getMinutes()+parseInt(b)),T.setSeconds(T.getSeconds()+parseInt(L)),T.setMilliseconds(T.getMilliseconds()+parseInt(x)))):clearInterval(E),null!=A&&(w+=new Date-A),E=setInterval(()=>{let e,t,s,l,a=new Date;if(o){let i=new Date(T.getTime()+w)-a;if(i>0){let a=new Date(Math.abs(i));e=a.getUTCHours(),t=a.getUTCMinutes(),s=a.getUTCSeconds(),l=a.getUTCMilliseconds()}else e=0,t=0,s=0,l=0,T=null,clearInterval(E),p.classList.remove("active"),p.classList.add("off")}else{let i=new Date(a-T-w);e=i.getUTCHours(),t=i.getUTCMinutes(),s=i.getUTCSeconds(),l=i.getUTCMilliseconds()}e=e>9?e:"0"+e,t=t>9?t:"0"+t,s=s>9?s:"0"+s,l=l>99?l:l>9?"0"+l:"00"+l,r.value=e,r.setAttribute("value",e),c.value=t,c.setAttribute("value",t),d.value=s,d.setAttribute("value",s),u.value=l,u.setAttribute("value",l)},50)}),v.onclick=(e=>{p.classList.add("off"),p.classList.remove("active"),v.classList.remove("off"),v.classList.add("active"),g.classList.remove("active"),g.classList.add("off"),s()}),g.onclick=(e=>{p.classList.add("off"),p.classList.remove("active"),v.classList.remove("active"),v.classList.add("off"),g.classList.remove("off"),g.classList.add("active"),clearInterval(E),w=0,T=null,A=null;let t=parseInt(y)>9?y:"0"+parseInt(y),s=parseInt(b)>9?b:"0"+parseInt(b);sec=parseInt(L)>9?L:"0"+parseInt(L),ms=parseInt(x)>99?x:parseInt(x)>9?"0"+x:"00"+parseInt(x),r.value=t,r.setAttribute("value",t),c.value=s,c.setAttribute("value",s),d.value=sec,d.setAttribute("value",sec),u.value=ms,u.setAttribute("value",ms),f.innerText=h,setTimeout(()=>{g.classList.remove("active"),g.classList.add("off")},1e3)}),n.onclick=(e=>{s();let t=r.value,l=c.value,a=d.value,i=u.value;m.value=t+":"+l+":"+a+"."+i,m.setAttribute("value",t+":"+l+":"+a+"."+i),f.innerText=t+":"+l+":"+a+"."+i})}},q={fileloader:[]},C=()=>{let t=document.querySelectorAll('[class*="button-file"]'),s=0;for(let e of t)q.fileloader.push(e.closest(".fileloader")?{running:!1,firstlaunch:!0,container:"not defined",input:"not defined",resetter:"not defined",display:{element:"not defined",container:"not defined"},settings:{type:"not defined",autoconversion:"not defined",preview:"not defined",deleter:"not defined",grabber:"not defined",filters:"not defined",minilabels:"not defined"},compressor:{imageMaxWidth:"not defined",imageMaxHeight:"not defined",imageQuality:"not defined"},datalist:[]}:"not fileloader detected");for(let i of t){let t=i.querySelectorAll('input[type="file"]')[0],n=i.getElementsByTagName("label")[0],o=n.innerText,r=q.fileloader[s];if(!i.querySelectorAll(".originslist").length){let e='\n \n \n list ☰\n \n  \n \n ✖\n \n \n ';i.insertAdjacentHTML("beforeEnd",e)}function l(e,t,s,l,i,n){!function(l){let a=!1,i="",n=[],o=parseInt(t.getAttribute("minlength"))||0,r=parseInt(t.getAttribute("maxlength")),c=t.getAttribute("size"),d=t.getAttribute("maxsize"),u=t.getAttribute("accept"),f=t.files.length;if(o&&fr&&(s.closest("[class*='button-file']").classList.add("border-error"),n.push(!1),i="quantity wrong: "+f+" of max: "+r),d){let e=0;for(let s=0;sd&&(s.closest("[class*='button-file']").classList.add("border-error"),n.push(!1),i="out of space: "+e+"mb - max: "+d+"mb")}if(!e.closest(".fileloader")){if(c)for(let e=0;ec&&(s.closest("[class*='button-file']").classList.add("border-error"),n.push(!1),i="file overload: "+l+"mb - max: "+c+"mb")}if(0!=f&&u)for(let e=0;e"+l+" files is not supported")}}l(a=!n.includes(!1),i)}((o,r)=>{let c=e.querySelectorAll(".originslist")[0],d=c.firstElementChild,u=c.lastElementChild;t.files.length;if(c.classList.add("hide"),o){if(e.classList.remove("border-error"),c.classList.add("hide"),d.classList.add("hide"),n){let l="filelist-"+String(Math.floor(999*Math.random())),n='\n
\n
\n
\n\n
\n\n \n\n
\n\n
\n
\n\n
\n
\n\n
\n
\n\n
\n
\n
\n ';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",n),f(t,s,d,c,l),e.closest(".fileloader")&&a(e,i)}else{c.classList.remove("hide");let e=String(t.value.split("\\")[t.value.split("\\").length-1]);s.classList.add("active"),s.innerHTML="✔ "+e,setTimeout(()=>{s.classList.remove("active")},150);let l=d.target.split("outbox#")[1];f(t,s,d,c,l)}function f(e,t,s,l,a){if(null!=a){let i=document.getElementById(a)?document.getElementById(a).querySelectorAll(".filegroup")[0]:null,n=[];for(let t=0;t\n
\n

\n '+l+'\n

\n
\n
\n
\n
\n

'+a+'

\n
\n
\n
\n
\n

'+i+"mb

\n
\n
\n\n ")}let o=String(n.join(" "));i.innerHTML=o,t.innerHTML="✔ "+e.files.length+" files selected",s.setAttribute("target","outbox#"+a),s.classList.remove("hide"),l.classList.remove("hide"),t.classList.add("active"),ui.reload("outbox")}}function m(n){t.setAttribute("value",""),t.value="",s.innerText=l,c.classList.add("hide"),e.closest(".fileloader")&&a(e,i)}u.addEventListener("touchstart",e=>{m(e)},!0),u.addEventListener("click",e=>{m(e)},!0)}else e.classList.add("border-error"),s.innerHTML=r})}function a(s,a){if(s.closest(".fileloader")){a.input=t,a.container=s.closest(".fileloader"),a.resetter=a.container.querySelectorAll(".clearlist")[0]||null,a.btnsend=a.container.querySelectorAll(".button-sendnow")[0]||null,a.display.element=a.container.querySelectorAll("[class*=display]")[0];let f=!(window.File&&window.FileReader&&window.FileList&&window.Blob)&&(a.classList.add("disabled"),a.input.classList.add("disabled"),a.btnsend.classList.add("disabled"),a.display.element.innerHTML='

YOUR SYSTEM NOT SUPPORTED FILE READERS

',e(":: [⚠ ui alert]: fileloader error\n ⮑ No modern file reader are supported.\n ⮑ reader message:"+loading.target.error+"\n ⮑ element:",Btn.closest(".fileloader")),void(f=!0));if(a.display.element&&"not defined"!=a.display.element||(e(":: [⚠ ui alert]: fileloader error\n ⮑ display not found.\n ⮑ element:",s.closest(".fileloader")),f=!0,a.container.classList.add("disabled")),!f){function i(...e){e=[].concat(...e);let t=new ClipboardEvent("").clipboardData||new DataTransfer;for(let s of e)t.items.add(s);return t.files}a.container.addEventListener("dragover",e=>{e.preventDefault(),e.stopPropagation();let t=e.dataTransfer||e.clipboardData;null!=t.items[0]&&"file"==t.items[0].kind.toLowerCase()&&(a.container.classList.add("draghere"),a.container.ondragleave=(e=>{e.preventDefault(),e.stopPropagation(),setTimeout(()=>{a.container.classList.remove("draghere")},300)}))},!1),a.container.addEventListener("drop",e=>{e.preventDefault(),e.stopPropagation();let r=e.dataTransfer||e.clipboardData;if("file"==r.items[0].kind.toLowerCase()){let e=[];for(let t=0;t{l(s,t,n,o,a,!0)},300)}},!0)}let m=a.id?a.id:~~(100*Math.random()),p=(a.container.querySelectorAll(".customdock").length,String(a.container.dataset.settings).replace(/\s/g,"").replace(/\[/g,"").replace(/\]/g,""));p.includes("type")?a.settings.type=p.split("type:")[1].split(",")[0]:a.settings.type="single",p.includes("chunksize")?a.settings.chunksize=parseInt(p.split("chunksize:")[1].split(",")[0]):a.settings.chunksize=parseInt(65536),p.includes("converter")?a.settings.autoconversion="true"==p.split("converter:")[1].split(",")[0]:a.settings.autoconversion=!1,p.includes("preview")?a.settings.preview="true"==p.split("preview:")[1].split(",")[0]:a.settings.preview=!1,p.includes("linked")?a.settings.linked="true"==p.split("linked:")[1].split(",")[0]:a.settings.linked=!1,p.includes("icons")?a.settings.previewicons="true"==p.split("icons:")[1].split(",")[0]:a.settings.previewicons=!1,p.includes("deleter")?a.settings.deleter="true"==p.split("deleter:")[1].split(",")[0]:a.settings.deleter=!1,p.includes("sortable")?a.settings.sortable="true"==p.split("sortable:")[1].split(",")[0]:a.settings.sortable=!1,p.includes("grabber")?a.settings.grabber="true"==p.split("grabber:")[1].split(",")[0]:a.settings.grabber=!1,p.includes("filters")?a.settings.filters="true"==p.split("filters:")[1].split(",")[0]:a.settings.filters=!1,p.includes("metalabel")?a.settings.metalabel="true"==p.split("metalabel:")[1].split(",")[0]:a.settings.metalabel=!1,p.includes("titlelabel")?a.settings.filetitlelabel="true"==p.split("titlelabel:")[1].split(",")[0]:a.settings.filetitlelabel=!1,p.includes("customized")?a.settings.customized="true"==p.split("customized:")[1].split(",")[0]:a.settings.customized=!1;let v=1==a.settings.sortable?'
':"",g=1==a.settings.sortable?"
":"",h=String(a.container.dataset.compressor);if(a.container.dataset.compressor){let e=h.includes("resolution")?h.split("image-resolution:")[1].split(",")[0]:null;h.includes("resize-type")?a.compressor.resizingtype="proportional"==h.split("resize-type:")[1].split(",")[0]?"proportional":"linear":a.compressor.resizingtype="proportional",a.compressor.imageMaxWidth=parseInt(e.split("x")[0])||1920,a.compressor.imageMaxHeight=parseInt(e.split("x")[1])||1920,a.compressor.imageQuality=parseFloat(h.split("image-quality:")[1].split(",")[0]/100)||.75}else a.settings.preview=!1,a.settings.linked=!1,a.compressor=!1;function r(t){if("single"==t.settings.type)1==t.settings.sortable&&(t.settings.sortable=!1,e(":: [⚠ ui alert]: Info on fileloader\n ⮑ settings work, displaytype single connot have a sortable!\n\n")),1==t.settings.title&&(t.settings.title=!1,e(":: [⚠ ui alert]: Info on fileloader\n ⮑ settings work, displaytype single connot have a titles!\n\n")),1==t.settings.title&&(t.settings.title=!1,e(":: [⚠ ui alert]: Info on fileloader\n ⮑ settings work, displaytype single connot have a titles!\n\n")),1==t.settings.metalabel&&(t.settings.metalabel=!1,e(":: [⚠ ui alert]: Info on fileloader\n ⮑ settings work, displaytype single connot have a labels!\n\n")),1==t.settings.grabber&&(t.settings.grabber=!1,e(":: [⚠ ui alert]: fileloader data-settings error\n ⮑ type-single not accept a grabber")),t.input.setAttribute("maxlength","1"),t.display.element.classList.add("type-single"),t.display.container=t.display.element;else if("listed"==t.settings.type)t.display.element.classList.add("type-list"),t.display.element.innerHTML='
',t.display.container=t.display.element.querySelectorAll(".scroll-y")[0].firstElementChild;else if("grid"==t.settings.type){let e=p.includes("boxgap")?"gap-"+p.split("boxgap:")[1].split(",")[0]:"";t.display.element.classList.add("type-grid"),t.display.element.innerHTML='
',t.display.container=t.display.element.querySelectorAll(".scroll-y")[0].firstElementChild}else if("wall"==t.settings.type){let e=p.includes("wallcols")?p.split("wallcols:")[1].split(",")[0]:"04-03-01",s=p.includes("boxgap")?"gap-"+p.split("boxgap:")[1].split(",")[0]:"";t.display.element.classList.add("type-wall"),t.display.element.innerHTML='
',t.display.container=t.display.element.querySelectorAll(".scroll-y")[0].firstElementChild}else e(":: [⚠ ui alert]: Error on fileloader\n ⮑ settings work, displaytype not finded!\n see more: https://git.io/J4hdC\n\n")}function c(s){s.display.container.innerHTML="",s.datalist=[],r(s);let l=0;(init_filesanalyzer=(()=>{if(l>=s.input.files.length){if(s.input.style["pointer-events"]=null,s.btnsend&&(s.btnsend.style["pointer-events"]=null),"single"!=s.settings.type&&1!=s.firstlaunch){s.display.container.parentNode.querySelectorAll(".button-file-addone").length>0&&s.display.element.querySelectorAll(".button-file-addone")[0].parentNode.remove(),s.display.container.parentNode.insertAdjacentHTML("beforeEnd",'
');let e=s.display.container.parentNode.querySelectorAll(".button-file-addone>input")[0];e.oninput=(()=>{if(s.input.style["pointer-events"]="none",s.btnsend&&(s.btnsend.style["pointer-events"]="none"),e.parentNode.querySelectorAll("label")[0].innerHTML="wait a moment...",e.parentNode.disabled=!0,e.style.visibility="collapse",e.disabled=!0,1==e.files.length){let t=e.files[0],l=s.input.files.length;a(s,l),i(s,l,t,()=>{s.input.style["pointer-events"]=null,s.btnsend&&(s.btnsend.style["pointer-events"]=null),e.parentNode.querySelectorAll("label")[0].innerHTML="ADD ONE MORE",e.parentNode.removeAttribute("disabled"),e.removeAttribute("style"),e.removeAttribute("disabled"),d(s)}),eventfilesAddOne=null}})}!function(e){e.resetter.onclick=(()=>{e.display.container.innerHTML="",e.datalist=[],r(e),d(e)})}(s),ui.reload("grabs"),s.running=!1}else s.input.style["pointer-events"]="none",s.btnsend&&(s.btnsend.style["pointer-events"]="none"),a(s,l),i(s,l,s.input.files[l],()=>{init_filesanalyzer(s,l++)});function a(e,t){e.datalist.push({filedata:{name:"not-defined",blob:"not-defined",size:"not-defined",typed:"not-defined",mime:"not-defined",chunks:"not-defined"},container:"not-defined",origins:"not-defined",buttons:{title:"not-defined",deleter:"not-defined",grabber:"not-defined",view:"not-defined",filters:"not-defined"}});let s=e.settings.filters?'':"",l=e.settings.linked?'':"",a=e.settings.deleter?'':"",i=e.settings.grabber?'':"",n=e.settings.preview||e.settings.linked?'\n
\n  \n
\n ':"",o=e.settings.filters||e.settings.linked||e.settings.deleter||e.settings.grabber?'\n \n '+s+l+a+i+"\n \n ":"",r=e.settings.metalabel?'\n

\n

\n ':"",c=e.settings.filetitlelabel?'\n
\n \n
\n ':"";if("listed"==e.settings.type){let t='\n
\n '+v+'\n\n
\n\n '+n+"\n "+c+"\n "+r+"\n "+o+'\n\n
\n
\n\n
\n\n '+g+"\n
\n ";e.display.container.insertAdjacentHTML("beforeEnd",t)}else if("grid"==e.settings.type){let t='\n
\n
\n '+v+'\n\n
\n\n '+n+"\n "+o+"\n "+c+"\n "+r+'\n\n
\n
\n\n
\n\n '+g+"\n
\n
\n ";e.display.container.insertAdjacentHTML("beforeEnd",t)}else if("wall"==e.settings.type){let t='\n
\n '+v+'\n\n
\n\n '+o+"\n "+n+"\n "+c+"\n "+r+'\n\n
\n
\n\n
\n\n
\n\n '+g+"\n
\n ";e.display.container.insertAdjacentHTML("beforeEnd",t),ui.reload("grid-y")}else{let t="",s='\n
\n
\n\n '+(t=e.settings.filters||e.settings.linked||e.settings.deleter||e.settings.grabber?'\n
\n \n '+o+"\n
":'\n
\n \n
')+'\n\n
\n
\n\n
\n
\n ';e.display.container.insertAdjacentHTML("beforeEnd",s)}let d=e.datalist[t];d.container=e.display.container.querySelectorAll(".databox")[t],e.settings.filetitlelabel&&(d.buttons.title=d.container.querySelectorAll(".action-rename")[0]),e.settings.deleter&&(d.buttons.deleter=d.container.querySelectorAll(".action-delete")[0]),e.settings.grabber&&(d.buttons.grabber=d.container.querySelectorAll(".action-grab")[0]),e.settings.linked&&(d.buttons.view=d.container.querySelectorAll(".action-view")[0]),e.settings.filters&&(d.buttons.filters=d.container.querySelectorAll(".action-filters")[0])}function i(s,l,a,i){s.settings.deleter&&l>=s.datalist.length-1&&function(e){if(e.settings.deleter){for(let t of e.datalist)t.buttons.deleter.onclick=(t=>{let s=[...e.container.querySelectorAll(".action-delete")].indexOf(t.target);for(let t of e.datalist)t.container.classList.add("disabled");setTimeout(()=>{e.datalist[s].container.remove(),e.datalist.splice(s,1);for(let t of e.datalist)t.container.classList.remove("disabled");d(e)},100)})}}(s);let n=s.datalist[l],o=n.container.querySelectorAll(".lazy")[0],r=n.container.querySelectorAll("[class*=progress-]")[0],c=window.URL||window.webkitURL,u=new FileReader,f=parseInt(s.settings.chunksize),m=[],p=0;function v(e){let t=a.name.substr(a.name.length-15)+" : "+e.toUpperCase(),l=n.container.querySelectorAll(".preview")[0];l&&(l.innerHTML="",l.classList.remove("autocrop"),l.insertAdjacentHTML("beforeEnd",'

'));let i=n.container.querySelectorAll(".action-rename")[0];i&&(i.title="this file have an error. You cannot save/sent data if you not delete it.\n"+t,i.firstElementChild.setAttribute("value",t),i.firstElementChild.setAttribute("readonly",!0),i.firstElementChild.setAttribute("disabled",!0)),n.container.querySelectorAll(".action-grab").length>0&&n.container.querySelectorAll(".action-grab")[0].classList.add("disabled"),s.settings.filters&&[...n.container.querySelectorAll(".action-options")][0].classList.add("disabled"),g(r,o)}function g(e,t){return e.remove(),t.classList.add("[status-off]"),setTimeout(()=>{t.classList.add("[status---]"),setTimeout(()=>{n.container.removeAttribute("disabled"),t.classList.remove("[status-active]"),t.classList.remove("[status-off]"),setTimeout(()=>{t.remove()},500)},500)},500),i()}n.origins=a,(loadchunks=(()=>{let e=f+p,i=a.slice(p,e);0!=u.readyState&&2!=u.readyState||!e||(s.running=!0,setTimeout(()=>{function e(){m=[],event_encodedloaded=null,reader=null,canvas=null,projector=null,sound=null,image=null,URL.revokeObjectURL(c)}u.readAsBinaryString(i),u.onload=(i=>{let d=parseInt(p/a.size*100,10),h=String(parseInt(d)<10?"0"+d:d);r.className="progress-["+h+"]",0==i.target.result.length?(r.className="progress-[100]",function(){if(s.display.element.querySelectorAll(".scroll-y").length>0){n.container.disabled=!0;let e=s.display.element.querySelectorAll(".scroll-y")[0];e.scrollTop=e.scrollHeight}setTimeout(()=>{let i=s.compressor.imageMaxWidth,d=s.compressor.imageMaxHeight,u=t.getAttribute("size"),f="not-defined",p=!!a.name.includes(".")&&a.name.slice(a.name.lastIndexOf(".")+1).toLowerCase(),h=["svg"].includes(p),y=["gif"].includes(p),b=["mjpeg","bmp","jpg","jpeg","png","ico","webp","cur","jpe","jps","jfif"].includes(p),L=["amb","aac","flac","m4a","m4r","mp3","oga","ogg","opus","wav"].includes(p),x=["mp4","f4v","mpeg","m4v","mov","webm","ogv"].includes(p),T=["8svx","ac3","aiff","au","avr","caf","cdda","cvs","cvsd","cvu","dts","dvms","fap","fssd","gsrt","hcom","htk","ima","ircam","maud","mp2","nist","paf","prc","pvf","ra","sd2","sln","smp","snd","sndr","sndt","sou","sph","spx","tta","txw","vms","voc","vox","w64","wma","wv","wve"].includes(p),A=["ai","dds","eps","exr","fts","hdr","mng","pam","pbm","pcd","pcx","pfm","pgm","picon","pict","pnm","ppm","psd","ras","sfw","sgi","tga","tiff","tif","wbmp","wpg","x3f","xbm","xdf","xwd","xcf","xpm","cr2","dng","erf","heic","heif","jp2","nef","nrw","orf","pef","pes","raf","rw2"].includes(p),w=["3gp","asf","avi","flv","hevc","m2ts","m2v","mkv","mpg","mts","mxf","swf","ts","vob","wmv","wtv"].includes(p);p?h?(f="web-xmlsvg",mime="image/svg+xml"):y?(f="web-gif",mime="image/gif"):b?(f="web-image",mime="image/ico"==p?"x-icon":"image/png"):L?(f="web-audio",mime="audio/mpeg"):x?(f="web-video",mime="video/mp4"):A?(f="not-web-image",mime="not-web-compatible"):T?(f="not-web-audio",mime="not-web-compatible"):w?(f="not-web-video",mime="not-web-compatible"):(f="binary-file",mime="not-web-compatible"):(f="binary-file",mime="not-web-compatible"),n.filedata.name=a.name.split("."+p)[0]||a.name,n.filedata.blob=c.createObjectURL(a),n.filedata.size=parseFloat((Math.floor(a.size/1e3)/1024).toFixed(2)),n.filedata.chunks=m,n.filedata.mime=mime,n.filedata.typed=f;let E=String(n.filedata.blob),S=String(E.substr(E.length-5));function I(){if(s.settings.filetitlelabel){let e=n.filedata.name;n.buttons.title.firstElementChild.setAttribute("value",e),k(n,e)}if(s.settings.metalabel&&(n.container.querySelectorAll(".filetype")[0].innerText=p||"",n.container.querySelectorAll(".filesize")[0].innerText="0.000"==n.filedata.size?"≅.001 mB":n.filedata.size+" Mb"),n.filedata.size>u)v("SIZE OF THIS FILE IS TOO BIG!! MAX SIZE IS "+u+" Mb");else{if(s.settings.preview){let e=n.container.querySelectorAll(".preview")[0];e.classList.add("bkg-"+n.filedata.typed,"bkg-"+(p||"binary")),null==e.getElementsByTagName("img")[0].getAttribute("src").value&&e.firstElementChild.classList.add("hide"),1==s.settings.previewicons&&e.insertAdjacentHTML("beforeEnd",'')}s.settings.linked&&(s.datalist[l].buttons.view.onclick=(()=>{blobber=new Blob(['\n \n FILE PREVIEWS\n \n \n
\n
\n "NON WEB FILES" ARE CONVERTED AND SAVED IN BINARY OR B64. IT IS NOT POSSIBLE TO READ THEM FROM HERE.\n
\n
\n \n \n\n '],{type:"text/html"}),window.open(c.createObjectURL(blobber),"_blank")})),e(),g(r,o)}}function N(e,t,l,a,i){let n="no-base64-data";try{n=btoa(e.join(""))}catch(e){return v("File is oversized for make a preview"),i("unprintable")}finally{if(!s.compressor)return i(n);{let e=new Image;e.src="data:"+t+";base64,"+n,e.onload=(n=>{let o=document.createElement("canvas"),r=e.width,c=e.height;return"proportional"==s.compressor.resizingtype?(r>=c&&(r=~~(r*=a/c),c=a),r=c&&(c=~~(c*=l/r),r=l),r{let l=setInterval(()=>{!s.value&&(s.value=t),s.setAttribute("value",s.value),document.activeElement==s?e.filedata.name=s.value:window.clearInterval(l)},250)})}n.container.querySelectorAll(".contents")[0].setAttribute("id",S),n.id=S,s.settings.autoconversion?function(){if(b){let a=n.container.querySelectorAll(".preview")[0];a.classList.add("bkg-"+n.filedata.typed,"bkg-"+p),N(m,mime,i,d,a=>{if(a)if("unprintable"==a)v("ERROR ON IMAGE PREVIEW CREATION. THIS FILE CANNOT BE SENT.");else if("toosmall"==a)v("THIS IMAGE IS TOO SMALL!! MIN PX IS "+i+" x "+d);else{let i=a.replace(/=/g,"").replace("data:"+mime+";base64,",""),d=(~~(.75*i.length/1e3)/1024).toFixed(3);if(d>u)v("FILE IS TOO BIG!! USED "+d+" OF "+t+" Mb");else{if("image/ico"!=p&&(n.filedata.size=d,n.filedata.chunks=[i],s.settings.metalabel&&"single"!=s.settings.type&&(n.container.querySelectorAll(".filesize")[0].innerText="0.000"==d?"≅ 001 Mb":d+" Mb",n.container.querySelectorAll(".filetype")[0].innerText=p)),s.settings.filetitlelabel){let e=n.filedata.name;n.buttons.title.firstElementChild.setAttribute("value",e),k(n,e)}if(s.settings.preview){let e=n.container.querySelectorAll(".preview")[0];e.classList.add("bkg-"+n.filedata.typed,"bkg-"+p),e.firstElementChild.src=a,a&&null!=e.firstElementChild.src||e.firstElementChild.classList.add("hide"),1==s.settings.previewicons&&e.insertAdjacentHTML("beforeEnd",'')}s.settings.linked&&(s.datalist[l].buttons.view.onclick=(()=>{if("image/ico"==p){let e=new Blob(['\n \n FILE PREVIEWS\n \n \n
\n
\n \n WHAT YOU ARE SEEING IS THE REPRESENTATION OF ICON DATA (from .ico to web/png).
\n THE DATA THAT WILL BE SENT WILL RELATE TO THE REAL ICON.\n
\n
\n \n
\n \n \n\n '],{type:"text/html"});window.open(c.createObjectURL(e),"_blank")}else{let e=s.compressor?"THIS IS THE OPTIMIZED IMAGE DATA THAT WILL BE SENT":"THIS IS THE IMAGE ROW DATA THAT WILL BE SENT",t=new Blob(['\n \n FILE PREVIEWS\n \n \n
\n
\n \n '+e+'\n \n
\n \n
\n \n \n\n '],{type:"text/html"});window.open(c.createObjectURL(t),"_blank")}}))}e(),g(r,o)}else v("ERROR ON IMAGE COMPRESSION. THIS FILE CANNOT BE SENT.")})}else if(h||y)if(n.filedata.size>u)v("FILE IS TOO BIG!! USED "+n.filedata.size+" OF "+u+" Mb");else{if(s.settings.filetitlelabel){let e=n.filedata.name;n.buttons.title.firstElementChild.setAttribute("value",e),k(n,e)}s.settings.metalabel&&(n.container.querySelectorAll(".filetype")[0].innerText=p,n.container.querySelectorAll(".filesize")[0].innerText="0.000"==n.filedata.size?"≅.001 mB":n.filedata.size+" Mb"),N(m,mime,i,d,t=>{if(t)if("unprintable"==t)v("ERROR ON VECTOR PREVIEW CREATION. THIS FILE CANNOT BE SENT.");else if("toosmall"==t)v("THIS IMAGE IS TOO SMALL!! MIN PX IS "+i+" x "+d);else{if(s.settings.preview){let e=n.container.querySelectorAll(".preview")[0];e.classList.add("bkg-"+n.filedata.typed,"bkg-"+p),e.firstElementChild.src=t,t&&null!=e.firstElementChild.src||e.firstElementChild.classList.add("hide"),1==s.settings.previewicons&&e.insertAdjacentHTML("beforeEnd",'')}s.settings.linked&&(s.datalist[l].buttons.view.onclick=(()=>{let e;if(h)e=new Blob(['\n \n FILE PREVIEWS\n \n \n
\n
\n \n WHAT YOU ARE SEEING IS THE IMAGE REPRESENTATION OF THE VECTOR SVG DATA.
ORIGINAL DATA ARE SAVED IN BINARY.\n
\n
\n \n
\n \n \n\n '],{type:"text/html"}),window.open(c.createObjectURL(e),"_blank");else if(y){let s;try{s="data:"+mime+";base64,"+btoa(n.filedata.chunks.join(""))}catch{e=new Blob(['\n \n FILE PREVIEWS\n \n \n
\n
\n GIFs ARE NOT OPTIMIZABLE, WHAT YOU ARE SEEING IS THE DATA REPRESENTATION.
ORIGINAL DATA ARE SAVED IN BINARY OR B64.
\n
\n \n
\n \n \n\n '],{type:"text/html"}),window.open(c.createObjectURL(e),"_blank")}finally{e=new Blob(['\n \n FILE PREVIEWS\n \n \n
\n
\n GIFs ARE NOT OPTIMIZABLE, WHAT YOU ARE SEEING IS THE DATA REPRESENTATION.
ORIGINAL DATA ARE SAVED IN BINARY OR B64.
\n \n
\n
\n \n \n\n '],{type:"text/html"}),window.open(c.createObjectURL(e),"_blank")}}})),e(),g(r,o)}else v("ERROR ON VECTOR READING. THIS FILE CANNOT BE SENT.")})}else if(x){if(s.settings.filetitlelabel){let e=n.filedata.name;n.buttons.title.firstElementChild.setAttribute("value",e),k(n,e)}s.settings.metalabel&&(n.container.querySelectorAll(".filetype")[0].innerText=p,n.container.querySelectorAll(".filesize")[0].innerText="0.000"==n.filedata.size?"≅.001 mB":n.filedata.size+" Mb");let t=document.createElement("VIDEO");t.src=n.filedata.blob,t.load(),t.onloadeddata=(a=>{if(t.currentTime=parseInt(t.duration/2),t.videoWidth=a&&(l=~~(l*=d/a),a=d),l=a&&(a=~~(a*=i/l),l=i),l')}finally{let t=e.toDataURL(mime,s.compressor.imageQuality),l=n.container.querySelectorAll(".preview")[0];l.classList.add("bkg-"+n.filedata.typed,"bkg-"+p),l.firstElementChild.src=t,t&&null!=l.firstElementChild.src||l.firstElementChild.classList.add("hide"),1==s.settings.previewicons&&l.insertAdjacentHTML("beforeEnd",'')}}s.settings.linked&&(s.datalist[l].buttons.view.onclick=(()=>{let e=new Blob(['\n \n FILE PREVIEWS\n \n \n
\n
\n \n WHAT YOU ARE SEEING IS THE STREAMING REPRESENTATION OF THE VIDEO DATA.
ORIGINAL DATA ARE SAVED IN BINARY OR B64.\n
\n
\n \n
\n \n \n\n '],{type:"text/html"});window.open(c.createObjectURL(e),"_blank")})),e(),g(r,o)}})}else if(L){if(s.settings.filetitlelabel){let e=n.filedata.name;n.buttons.title.firstElementChild.setAttribute("value",e),k(n,e)}s.settings.metalabel&&(n.container.querySelectorAll(".filetype")[0].innerText=p,n.container.querySelectorAll(".filesize")[0].innerText="0.000"==n.filedata.size?"≅.001 mB":n.filedata.size+" Mb");let t=new Audio;t.src=n.filedata.blob,t.load(),t.oncanplay=(t=>{if(n.filedata.size>u)v("SIZE OF THIS FILE IS TOO BIG!! MAX SIZE IS "+u+" Mb");else{if(s.settings.preview){let e=n.container.querySelectorAll(".preview")[0];e.classList.add("bkg-"+n.filedata.typed,"bkg-"+p),null==e.getElementsByTagName("img")[0].getAttribute("src").value&&e.firstElementChild.classList.add("hide"),1==s.settings.previewicons&&e.insertAdjacentHTML("beforeEnd",'')}s.settings.linked&&(s.datalist[l].buttons.view.onclick=(()=>{blobber=new Blob(['\n \n FILE PREVIEWS\n \n \n
\n
\n AUDIO FILES ARE NOT OPTIMIZABLE, WHAT YOU ARE SEEING IS THE STREAMING REPRESENTATION.
ORIGINAL DATA ARE SAVED IN BINARY OR B64.
\n \n
\n
\n \n \n\n '],{type:"text/html"}),window.open(c.createObjectURL(blobber),"_blank")})),e(),g(r,o)}})}else I()}():I()},500)}()):null==i.target.error?(m.push(i.target.result),p+=i.target.result.length,loadchunks(p,f,a)):u.oncrash(i.target.error)})},200),s.firstlaunch&&delete s.firstlaunch)}))(),u.onabort=(t=>{e(":: [⚠ ui alert]: fileloader error\n ⮑ critical error/abort: reader crash on loading.\n ⮑ reader message:"+t.error),v(t)}),u.onerror=(t=>{e(":: [⚠ ui alert]: fileloader error\n ⮑ critical error/abort: reader crash on loading.\n ⮑ reader message:"+t.error),v(t)}),u.oncrash=(t=>{e(":: [⚠ ui alert]: fileloader error\n ⮑ critical error/abort: reader crash on loading.\n ⮑ reader message:"+t.error),v(t)})}}))()}function d(e){let a=[];setTimeout(()=>{for(let t of e.datalist){let e=t.origins,s=String(t.origins.name);a.push(new File([e],s))}setTimeout(()=>{e.input.files=i(a),t=s.querySelectorAll('input[type="file"]')[0],n=s.getElementsByTagName("label")[0],s.style="",l(s,t,n,o,e,!1)},200)},200)}function u(e){let t=[],s=e.display.element.querySelectorAll(".databox");for(let l of s){let s=l.querySelectorAll(".contents")[0].id;for(let a of e.datalist)s===a.id&&(a.container=l,t.push(a))}e.datalist=t}0==a.settings.autoconversion&&(a.settings.preview=!1,a.settings.linked=!1,a.compressor=!1),c(a),a.input.oninput=(()=>{(function(){for(let e of q.fileloader)if(e!=a&&1==e.running)return!0})()?ui.warning({type:"alert",content:"Warning! A file upload is already in progress on this page. I cannot continue in your request... wait the end of process.",accept:"OK - I UNDERSTAND"},e=>{}):c(a)}),a.display.container.ontouchend=(e=>{setTimeout(()=>{u(a)},250)}),a.display.container.onmouseup=(e=>{setTimeout(()=>{u(a)},250)})}}t.oninput=(e=>{l(i,t,n,o,r,!0)}),a(i,r),s++}};function M(){b(),L(),x(),T(),A(),w(),E(),S(),I(),N(),k(),C()}const H=()=>{let t=document.querySelectorAll(".paginator");for(let o of t){let t=o.dataset.settings.toLowerCase().split("[")[1].split("]")[0],r=!!t.includes("target:")&&t.split("target:")[1].split(",")[0],c=r?document.querySelectorAll("#"+r)[0]:e(':: [⚠ ui alert]: wrong paginator\n ⮑ not target display founded. Assign: "target:mydisplayid" on settins params.'),d=[],u=-1;for(let e of c.children)e.parentNode==c&&(d.push(e),u++);let f=t.includes("perpage:")?parseInt(t.split("perpage:")[1].split(",")[0]):6,m=o.querySelectorAll(".list")[0],p=~~(u/f);for(let e=0;e{let t=Link.getAttribute("href").split("#")[1];if(t&&!l){e.preventDefault(),e.stopPropagation();let s=document.querySelector('*[name="'+t+'"]');if(s){let e=s.offsetTop,t=s.offsetLeft;e>t?setTimeout(()=>{s.closest("HTML, BODY, .view, .scroll-y, .scroll-x").scrollTop=e},100):setTimeout(()=>{s.closest("HTML, BODY, .view, .scroll-y, .scroll-x").scrollLeft=t},100)}}},!0)}},R=()=>{let t=document.querySelectorAll(".card");for(let a of t)if(a.firstElementChild.className.includes("expander")){let t=a.firstElementChild,i=a.querySelectorAll(".close")[0];i||e(":: [⚠ ui alert]: wrong card\n ⮑ Card can be expanse but not contract. Close element not faunded.\n read more on: https://git.io/J4hdP"),t.classList.add("[status-off]");let n=t.querySelectorAll(".expander>.card-content , .expander>.card-summary");t.getBoundingClientRect().left,t.getBoundingClientRect().top,document.body.getBoundingClientRect().top;t.parentNode.style.height=t.offsetHeight+"px",t.parentNode.style.width=t.offsetWidth+"px",t.style.height=t.offsetHeight+"px",t.style.width=t.offsetWidth+"px",a.addEventListener("click",e=>{t.className.includes("status-off")&&s(t,n)},!0),i.addEventListener("click",e=>{t.className.includes("status-active")&&l(t,n)},!0)}else a.addEventListener("click",e=>{let t=document.querySelectorAll(".loader")[0],s=a.querySelectorAll(".card>a:last-child")[0],l=s.getAttribute("href"),i=s.getAttribute("target");"_self"==i||"_top"==i?(console.log(s,l),t.classList.add("[status-off]"),t.classList.remove("status---"),setTimeout(()=>{t.classList.add("[status-active]"),t.classList.remove("[status-off]")},50),setTimeout(()=>{"#"===l?location.reload():location.href=l},300)):(location.href=l,window.open(l,"_blank"))},!0);function s(e,t){e.classList.add("transition"),e.classList.remove("[status-off]"),e.style.marginLeft=-e.getBoundingClientRect().left+"px",e.style.marginTop=-e.getBoundingClientRect().top+"px",e.style.height=document.body.clientHeight+"px",e.style.width=document.body.clientWidth+"px",setTimeout(()=>{e.classList.add("[status-active]"),e.classList.remove("transition"),e.style=""},425)}function l(e,t){e.classList.add("transition"),e.style.marginLeft=e.parentNode.offsetLeft-window.scrollX+"px",e.style.marginTop=e.parentNode.offsetTop-window.scrollY+"px",e.style.height=e.parentNode.offsetHeight+"px",e.style.width=e.parentNode.offsetWidth+"px",setTimeout(()=>{e.classList.remove("transition"),e.classList.add("[status-off]"),e.classList.remove("[status-active]"),e.style=""},425)}},D=()=>{let e=document.querySelectorAll(".tabs-x");for(let t of e){let e=t.getElementsByClassName("mask")[0],s=t.querySelectorAll(".title>nav>a"),l=t.querySelectorAll(".mask>.mask");for(let e of s)e.className="[status-off]"!=name&&"[status-active]"!=name?name="[status-off]":e.className;for(let e of l)e.className="[status-off]"!=name&&"[status-active]"!=name?name="[status-off]":e.className;let a=s.length;for(let t=0;t{if(i.className.includes("close")){for(let e=0;e{let t=e.getElementsByClassName("[status-active]")[0];null!=t&&(e.style.height=t.scrollHeight+"px")},100)}},!0)}}},B=()=>{let e=document.querySelectorAll(".tabs-y");e.length;for(let t of e){let e=[...t.querySelectorAll(".tabs-y>.title")],s=e.length;for(let t of e){let l=t.querySelectorAll(".close")[0],a=t.nextElementSibling;t.classList.add("[status-off]"),a.classList.add("[status-off]"),t.className.includes("status-active")&&(t.classList.remove("[status-off]"),a.classList.remove("[status-off]"),a.style.height=a.scrollHeight+"px",a.classList.add("[status-active]")),t.addEventListener("click",i=>{if(i.target!=l){for(let t=0;t{t.classList.replace("[status-active]","[status-off]"),t.nextElementSibling.classList.replace("[status-active]","[status-off]"),t.nextElementSibling.style.height="0"},!0)}}},W=()=>{let e=document.querySelectorAll("[class^=spoiler]","details");for(let t of e)t.getAttribute("open")&&(t.getAttribute("open")||t.querySelectorAll(".mask")[0].className.contains("[status-active]"))||(t.removeAttribute("open"),t.querySelectorAll(".mask")[0].classList.add("[status-off]"));for(let s of e)s.querySelectorAll(".title")[0].addEventListener("click",e=>{t(s,s.querySelectorAll(".mask")[0],e)},!0);function t(e,t,s){"a"!=s.target.tagName.toLowerCase()&&(e.getAttribute("open")?(t.style.height=t.scrollHeight+"px",setTimeout(()=>{t.classList.add("[status-off]"),t.classList.remove("[status-active]"),e.removeAttribute("open"),t.style.height="0px"},200)):(t.style.height=t.scrollHeight+"px",t.classList.add("[status-active]"),t.classList.remove("[status-off]"),e.setAttribute("open",!0),setTimeout(()=>{t.style.height="initial"},155)))}},F=()=>{let e=document.querySelectorAll('[class*="audiobox"]');for(let l of e){let e,i,n=l.getElementsByTagName("audio")[0],o=l.querySelectorAll(".play")[0],r=l.querySelectorAll(".loop")[0],c=l.querySelectorAll(".duration>*")[0],d=l.querySelectorAll(".timeline")[0],u=l.querySelectorAll(".volume")[0];function s(){if(o&&o.classList.add("[status-off]"),r&&r.classList.add("[status-off]"),c&&(c.innerText="00:00:00/"+l(n.duration)),d&&(d.innerHTML='
',(e=d.firstElementChild).className="progress-[00]"),u){let e;n.mute?u.classList.add("[status-off]"):u.classList.add("[status-active]"),e=n.mute?"00":u.dataset["start-power"]?u.dataset["start-power"]:"100",u.innerHTML='
',i=u.firstElementChild}function s(e,t){return~~(t/e.offsetWidth*100)}function l(e){let t=~~((e=~~e)/3600),s=~~((e-3600*t)/60),l=e-3600*t-60*s;return t<10&&(t="0"+t),s<10&&(s="0"+s),l<10&&(l="0"+l),t+":"+s+":"+l}o&&o.addEventListener("click",t=>{!function(){let t=setInterval(()=>{let s=function(e){return~~(e.currentTime/e.duration*100)}(n);e&&(e.className="progress-["+(s<10?"0"+s:s)+"]"),c&&(c.innerText=l(n.currentTime)+"/"+l(n.duration)),n.paused&&window.clearInterval(t)},333)}(),n.paused?(n.play(),o.classList.add("[status-active]"),o.classList.remove("[status-off]")):(n.pause(),o.classList.add("[status-off]"),o.classList.remove("[status-active]"))},!1),r&&r.addEventListener("click",e=>{n.loop?(n.removeAttribute("loop"),r.classList.add("[status-off]"),r.classList.remove("[status-active]")):(n.loop="true",r.classList.add("[status-active]"),r.classList.remove("[status-off]"))},!1),d&&e.addEventListener("click",i=>{let o=s(e,(t()?i.touches[0].pageX:i.pageX)-a(e));e.className="progress-["+(o<10?"0"+o:o)+"]",n.currentTime=function(e,t){return~~(t/100*e.duration)}(n,o),c.innerText=l(n.currentTime)+"/"+l(n.duration),i=null},!1),u&&u.addEventListener("click",e=>{if(e.target!=i)n.muted?(n.muted=!1,u.classList.add("[status-active]"),u.classList.remove("[status-off]")):(n.muted=!0,u.classList.add("[status-off]"),u.classList.remove("[status-active]"));else{let l=s(i,(t()?e.touches[0].pageX:e.pageX)-a(i));i.className="progress-["+(l<10?"0"+l:l)+"]",n.volume=parseInt(l)/100,n.volume<=.1?(n.muted=!0,i.className="progress-[00]",u.classList.add("[status-off]"),u.classList.remove("[status-active]")):(n.muted=!1,n.removeAttribute("muted"),u.classList.add("[status-active]"),u.classList.remove("[status-off]"))}ev_audio_mutedclick=null},!1),ev_audiometa=null}n.load(),n.onloadedmetadata=(e=>s())}},z=()=>{function s(e){let t=~~((e=(e=~~(e%60))<9?"0"+e:e)/60);t=t<9?"0"+t:t;let s=~~(e/3600);return s=s<9?"0"+s:s,String(s+":"+t+":"+e)}let l=document.querySelectorAll('[class*="videobox"]');for(let t of l)if(["iframe","video"].indexOf(t.firstElementChild.tagName.toLowerCase())<0)t.classList.add("[status-error]"),e(":: [⚠ ui alert]: wrong video\n ⮑ Framework support only html5