dphelper
Version:
dphelper devtools, store and state management for developers by Dario Passariello
1 lines • 311 kB
JavaScript
(()=>{var e={19:function(e,t,r){var n,o,i,a,s,l,c,u,d;e.exports=(d=r(9021),r(3009),r(1025),i=(o=(n=d).lib).Base,a=o.WordArray,l=(s=n.algo).SHA256,c=s.HMAC,u=s.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:l,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=c.create(r.hasher,e),o=a.create(),i=a.create([1]),s=o.words,l=i.words,u=r.keySize,d=r.iterations;s.length<u;){var p=n.update(t).finalize(i);n.reset();for(var h=p.words,f=h.length,m=p,v=1;v<d;v++){m=n.finalize(m),n.reset();for(var g=m.words,y=0;y<f;y++)h[y]^=g[y]}o.concat(p),l[0]++}return o.sigBytes=4*u,o}}),n.PBKDF2=function(e,t,r){return u.create(r).compute(e,t)},d.PBKDF2)},25:function(e,t,r){var n,o,i,a;e.exports=(a=r(9021),r(7165),o=(n=a).lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return o.create({ciphertext:t})}},a.format.Hex)},35:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(dphelper,"setProps",{value:(e,t,r)=>{Object.defineProperty(e,t.name,r||{writable:!1,configurable:!1,enumerable:!1}),r?.lock&&Object.freeze(e[t.name])},writable:!1,configurable:!1,enumerable:!1}),Object.defineProperty(dphelper,"setDescription",{value:(e,t)=>{Object.defineProperties(dphelper,{[e.name]:{value:t,writable:!1,configurable:!1,enumerable:!1}}),Object.keys(t).forEach((function(t){Object.defineProperties(dphelper[e.name],{[t]:{writable:!1,configurable:!1,enumerable:!1}})})),dphelper.setProps(dphelper,e,{writable:!1,configurable:!1,enumerable:!1}),dphelper._list.scripts.push(e)}})},219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),idb.remove=e=>{idb.exist(e)?window.layerpro?confirm(`Are you sure to remove "${e}" database?`,(()=>{setTimeout((()=>{indexedDB.deleteDatabase(e),console.debug(e+" removed"),idbases=[],idb.databases()}),1e3)}),(()=>alert("Operation cancelled."))):confirm(`Are you sure to remove "${e}" database?`)?setTimeout((()=>{indexedDB.deleteDatabase(e),console.debug(e+" removed"),idbases=[],idb.databases()}),1e3):alert("Operation cancelled."):alert(`Database "${e}" not exist`)}},423:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1635);r(6364),r(4403);const o=n.__importDefault(r(4692)),i=n.__importDefault(r(8330)),a=n.__importDefault(r(4787));t.default=()=>{if(window.dphelper)return;const e=e=>e.keys().forEach((t=>e(t)));if(Object.defineProperty(window,"dphelper",{value:{},writable:!1,configurable:!1}),window.$=window.jQuery=o.default,Object.defineProperty(window,"$",{configurable:!1,enumerable:!1}),Object.defineProperty(window,"jQuery",{configurable:!1,enumerable:!1}),a.default.scripts)return;a.default.scripts=[],a.default.version=i.default.version;const t=setInterval((()=>{const e=dphelper?.socket?.list(),r=[];e.map((e=>{r.push(e.url)})),dphelper._list.sockets=r,r&&clearInterval(t)}),1e3);Object.defineProperties(dphelper,{_list:{value:a.default},version:{value:i.default.version}}),o.default.ajaxSetup({async:!0,cache:!0,global:!0}),e(r(6245)),e(r(5334)),dphelper.credits(i.default),Object.preventExtensions(dphelper),Object.seal(dphelper),Object.freeze(dphelper)}},477:()=>{},482:function(e,t,r){var n;e.exports=(n=r(9021),r(7165),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1635).__importDefault(r(1396)),o={uuid:{byVal:e=>{if(!e)return console.error("You need to pass a value to obtain a fixed uuid"),"";const t=dphelper.security.SHA256_Hex(e);return[t.substr(0,8),t.substr(8,4),"4"+t.substr(12,3),"8"+t.substr(15,3),t.substr(18,12)].join("-")},v4:"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(+e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+e/4).toString(16))),v5:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},hashPass:async(e,t,r="SHA-256")=>{const n=(new TextEncoder).encode(t.toLowerCase()+e.toLowerCase()),o=await crypto.subtle.digest(r,n);return Array.from(new Uint8Array(o)).map((e=>e.toString(16).padStart(2,"0"))).join("")},crypt:(e,t,r="AES")=>n.default[r].encrypt(e,t).toString(),deCrypt:(e,t,r="AES")=>n.default[r].decrypt(e,t).toString(n.default.enc.Utf8),AES_KeyGen:(e="test")=>{const t=n.default.lib.WordArray.random(16);return n.default.PBKDF2(e,t,{keySize:16,iterations:1e3}).toString()},SHA256_Hex:e=>n.default.SHA256(e).toString(n.default.enc.Hex),ulid:()=>{const e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","J","K","M","N","P","Q","R","S","T","V","W","X","Y","Z"];let t=-1;const r=new Uint8Array(16),n=new DataView(r.buffer,0,6),o=new Uint8Array(r.buffer,6,10),i=new Array(26),a=Date.now();if(a===t)for(let e=9;e>=0&&!(o[e]++<255);e--);else t=a,n.setUint16(0,a/4294967296|0),n.setUint32(2,0|a),window.crypto.getRandomValues(o);return(t=>{i[0]=e[t[0]>>5],i[1]=e[31&t[0]];for(let r=0;r<3;r++)i[8*r+2]=e[t[5*r+1]>>3],i[8*r+3]=e[31&(t[5*r+1]<<2|t[5*r+2]>>6)],i[8*r+4]=e[t[5*r+2]>>1&31],i[8*r+5]=e[31&(t[5*r+2]<<4|t[5*r+3]>>4)],i[8*r+6]=e[31&(t[5*r+3]<<1|t[5*r+4]>>7)],i[8*r+7]=e[t[5*r+4]>>2&31],i[8*r+8]=e[31&(t[5*r+4]<<3|t[5*r+5]>>5)],i[8*r+9]=e[31&t[5*r+5]];return i.join("")})(r)}};dphelper.setDescription({name:"security",active:!0,subCommand:[{name:"uuid",version:"0.0.1",example:"dphelper.security.uuid",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"UUID related commands",subCommand:[{name:"byVal",version:"0.0.1",example:"dphelper.security.uuid.byVal('string')",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"Generate a UUID based on a given string",subCommand:[]},{name:"v4",version:"0.0.1",example:"dphelper.security.uuid.v4",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"return",active:!0,description:"Generate a random UUID v4",subCommand:[]},{name:"v5",version:"0.0.1",example:"dphelper.security.uuid.v5",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"return",active:!0,description:"Generate a random UUID v5",subCommand:[]}]},{name:"hashPass",description:"Generate a crypto digest SHA-1 starting from user and password values (Please, think about security before using SHA-1)",example:"dphelper.security.hashPass(user, password)",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:[]},{name:"crypt",description:"Encrypt your message using a secret_key in a default format AES",example:"dphelper.security.crypt(data, secret_key, [optional mode])",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:[]},{name:"deCrypt",description:"Decrypt your message using a secret_key in a default format AES",example:"dphelper.security.deCrypt(data, secret_key, [optional mode])",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:[]},{name:"AES_KeyGen",description:"Generate a key based on the AES algorithm",example:"dphelper.security.AES_KeyGen(secret_key)",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:[]},{name:"SHA256_Hex",description:"Generate a SHA256 hash in hexadecimal format",example:"dphelper.security.SHA256_Hex(secret_key)",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",active:!0,subCommand:[]},{name:"ulid",description:"Generate ULID code",example:"dphelper.security.ulid()",version:"0.0.1",type:"function",author:"mix",creationDate:"20250212",lastMod:"20250212",active:!0,subCommand:[]}]},o)},547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={click:e=>{const t=document.querySelector(e);t&&t.click()},change:e=>{const t=document.querySelector(e),r=new Event("__"+e,{bubbles:!0});dphelper.dispatch.set("__"+e,r),t.dispatchEvent(r)},input:e=>{dphelper.trigger.change(e)}};dphelper.setDescription({name:"trigger",active:!0,subCommand:[{name:"click",version:"0.0.1",example:"dphelper.trigger.click(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Triggers a click event on the specified element.",subCommand:[]},{name:"change",version:"0.0.1",example:"dphelper.trigger.change([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Triggers a change event on the specified element.",subCommand:[]},{name:"input",version:"0.0.1",example:"dphelper.trigger.input([element])",author:"Dario Passariello",creationDate:"20241001",lastMod:"20241001",type:"function",active:!0,description:"Triggers an input event on the specified element.",subCommand:[]}]},r)},753:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={currency:(e,t="en-US",r="USD")=>new Intl.NumberFormat(t,{style:"currency",currency:r}).format(e),phoneNumber:(e,t="US")=>{const r=(""+e).replace(/\D/g,"");let n;return"US"===t&&(n=r.match(/^(\d{3})(\d{3})(\d{4})$/),n)?`(${n[1]}) ${n[2]}-${n[3]}`:e}};dphelper.setDescription({name:"format",active:!0,subCommand:[{name:"currency",version:"0.0.1",example:"dphelper.format.currency(value, locale, currency)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Format a number as currency.",subCommand:[]},{name:"phoneNumber",version:"0.0.1",example:"dphelper.format.phoneNumber(value, countryCode)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Format a string as a phone number.",subCommand:[]}]},r)},754:function(e,t,r){var n,o,i;e.exports=(n=r(9021),i=(o=n).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<r;s++)o.push(n.charAt(a>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,r){for(var n=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;n[o>>>2]|=s<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={toOnClick:e=>{$(e+" a").each((function(){const e=$(this),t=e.attr("href");t&&e.on("mouseup",(function(){})).css("cursor","pointer").addClass(dphelper.pathRail()[3].replace(/\//g,"")).removeAttr("href").on("click",(function(){dphelper.browser.href(t),dphelper.browser.state("","",t)}))}))}};dphelper.setDescription({name:"anchor",active:!0,subCommand:[{name:"toOnClick",type:"function",version:"0.0.1",example:"dphelper.anchor.toOnClick([element, 'foo' | '.foo' | '#foo'])",description:"This tool allows you to convert all links in an element to 'onclick'.\n It allows you to avoid the message with the path relative to the requested address\n and it is very useful when you work with SPA but you want to keep even older browsers.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:[]}]},r)},944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={rnd:()=>Math.floor(1e5+Math.random()*dphelper.math.tmr()),tmr:()=>Math.round(dphelper.date.epoch()/1e3),add:(e,t)=>e+t,sub:(e,t)=>e-t,multi:(e,t)=>e*t,div:(e,t)=>{if(0===t)throw new Error("Division by zero");return e/t},rem:(e,t)=>{if(0===t)throw new Error("Division by zero");return e%t},exp:(e,t)=>Math.pow(e,t),isOdd:e=>e%2!=0,float2int:e=>Math.floor(e),percent:(e,t)=>{if(0===t)throw new Error("Total cannot be zero");return e/t*100},isPrime:e=>{if(e<=1)return!1;for(let t=2;t<=Math.sqrt(e);t++)if(e%t==0)return!1;return!0}};dphelper.setDescription({name:"math",active:!0,subCommand:[{name:"rnd",version:"0.0.1",example:"dphelper.math.rnd()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Generate a random number.",subCommand:[]},{name:"tmr",version:"0.0.1",example:"dphelper.math.tmr()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Measure the time taken by a function.",subCommand:[]},{name:"add",version:"0.0.1",example:"dphelper.math.add(a, b)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Add two numbers.",subCommand:[]},{name:"sub",version:"0.0.1",example:"dphelper.math.sub(a, b)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Subtract two numbers.",subCommand:[]},{name:"multi",version:"0.0.1",example:"dphelper.math.multi(a, b)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Multiply two numbers.",subCommand:[]},{name:"div",version:"0.0.1",example:"dphelper.math.div(a, b)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Divide two numbers.",subCommand:[]},{name:"rem",version:"0.0.1",example:"dphelper.math.rem(a, b)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Get the remainder of the division of two numbers.",subCommand:[]},{name:"exp",version:"0.0.1",example:"dphelper.math.exp(a, b)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Calculate the exponentiation of a number.",subCommand:[]},{name:"isOdd",version:"0.0.1",example:"dphelper.math.isOdd(a)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Check if a number is odd.",subCommand:[]},{name:"float2int",version:"0.0.1",example:"dphelper.math.float2int(a)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Convert a float to an integer.",subCommand:[]},{name:"percent",version:"0.0.1",example:"dphelper.math.percent([n, tot])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Calculate the percentage of a number relative to a total. Example: total: 100, number: 25 -> 25%",subCommand:[]},{name:"isPrime",version:"0.0.1",example:"dphelper.math.isPrime(a)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Check if a number is prime.",subCommand:[]}]},r)},955:function(e,t,r){var n;e.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,o=[],i=[],a=[],s=[],l=[],c=[],u=[],d=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var f=n^n<<1^n<<2^n<<3^n<<4;f=f>>>8^255&f^99,o[r]=f,i[f]=r;var m=e[r],v=e[m],g=e[v],y=257*e[f]^16843008*f;a[r]=y<<24|y>>>8,s[r]=y<<16|y>>>16,l[r]=y<<8|y>>>24,c[r]=y,y=16843009*g^65537*v^257*m^16843008*r,u[f]=y<<24|y>>>8,d[f]=y<<16|y>>>16,p[f]=y<<8|y>>>24,h[f]=y,r?(r=m^e[e[e[g^m]]],n^=e[e[n]]):r=n=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(c=i[a-1],a%r?r>6&&a%r==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[a/r|0]<<24),i[a]=i[a-r]^c);for(var s=this._invKeySchedule=[],l=0;l<n;l++){if(a=n-l,l%4)var c=i[a];else c=i[a-4];s[l]=l<4||a<=4?c:u[o[c>>>24]]^d[o[c>>>16&255]]^p[o[c>>>8&255]]^h[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,h,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var l=this._nRounds,c=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],p=e[t+3]^r[3],h=4,f=1;f<l;f++){var m=n[c>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&p]^r[h++],v=n[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^a[255&c]^r[h++],g=n[d>>>24]^o[p>>>16&255]^i[c>>>8&255]^a[255&u]^r[h++],y=n[p>>>24]^o[c>>>16&255]^i[u>>>8&255]^a[255&d]^r[h++];c=m,u=v,d=g,p=y}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^r[h++],v=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&c])^r[h++],g=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^r[h++],y=(s[p>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=m,e[t+1]=v,e[t+2]=g,e[t+3]=y},keySize:8});e.AES=t._createHelper(m)}(),n.AES)},963:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),dphelper.terminal=function(e){if(!e)throw Error("Parent DOM element required!");let t=!1;const r=console.log,n=console.info,o=console.warn,i=console.error,a=document.getElementById("terminal"),s=function(e,...t){let r=t.join(" ");r=e===l.WARN?`<font color="#FF6600">* WARN: ${r}</font>`:e===l.ERR?`<font color="#FF0000">* ERR: ${r}</font>`:`* ${r}`,this.domElement.innerHTML+=`${r}<br/>`,a&&(a.scrollTop=a.scrollHeight)},l={LOG:0,INFO:1,WARN:2,ERR:3},c={autoScroll:!0,disableConsoleLogging:!1,domElement:document.createElement("div"),initKeyMappings:function(){t?console.warn("DebugConsole: keys already mapped!"):(state.toggleConsole=function(){this.visible=!this.visible}.bind(this),t=!0)},overrideConsole:function(){console.log=function(...e){this.disableConsoleLogging||(s.call(this,l.LOG,...e),r.apply(console,e))}.bind(this),console.info=function(...e){this.disableConsoleLogging||(s.call(this,l.INFO,...e),n.apply(console,e))}.bind(this),console.warn=function(...e){this.disableConsoleLogging||(s.call(this,l.WARN,...e),o.apply(console,e))}.bind(this),console.error=function(...e){this.disableConsoleLogging||(s.call(this,l.ERR,...e),i.apply(console,e))}.bind(this),onerror=function(e,t,r){const n=`${e} in <a href="${t}" target='_blank'>${t?.split("/").pop()}</a>: ${r}`;return console.error(n),!1}},clear:function(){this.domElement.innerHTML=""},get visible(){return""===this.domElement.style.display},set visible(e){e?(this.domElement.style.display="",this.autoScroll&&(this.domElement.scrollTop=this.domElement.scrollHeight)):this.domElement.style.display="none"},get top(){return this.domElement.style.top},set top(e){this.domElement.style.top=e},get left(){return this.domElement.style.left},set left(e){this.domElement.style.left=e},get bottom(){return this.domElement.style.bottom},set bottom(e){this.domElement.style.bottom=e},get right(){return this.domElement.style.right},set right(e){this.domElement.style.right=e},get width(){return this.domElement.style.width},set width(e){this.domElement.style.width=e},get height(){return this.domElement.style.height},set height(e){this.domElement.style.height=e}};return c.domElement.id="debugConsole",e.appendChild(c.domElement),c.overrideConsole(),c},Object.defineProperty(dphelper,"terminal",{writable:!1,enumerable:!1,configurable:!1})},1025:function(e,t,r){var n,o,i;e.exports=(o=(n=r(9021)).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))},1175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={list:e=>window.getEventListeners(e),multi:(e,t,r)=>{t.split(" ").forEach((t=>{e.addEventListener(t,r,!1)}))},copy:e=>{const t=document.querySelector(e);t&&t.addEventListener("click",(async e=>{if(navigator.clipboard)try{const t=e.target;t&&(await navigator.clipboard.writeText(t.textContent||""),alert("Copied"))}catch(e){console.error("Can't copy the value",e)}}))},onDrag:e=>{const t=`.popup_overflow_${e}`;$(t).mousedown((r=>{$(window).mousemove((r=>{const n=Math.max(r.pageY,0)-$(t).height()/2,o=Math.max(r.pageX,0)-$(t).width()/2;localStorage.setItem(e,JSON.stringify([n,o]))}))})).mouseup((()=>{$(window).off("mousemove")}))},keys:e=>({key:e.key,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})};dphelper.setDescription({name:"event",active:!0,subCommand:[{name:"list",version:"0.0.1",example:"dphelper.event.list([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Show attached events.",subCommand:[]},{name:"multi",version:"0.0.1",example:"dphelper.event.multi([element, eventNames, listener])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Attach multiple event listeners to an element.",subCommand:[]},{name:"copy",version:"0.0.1",example:"dphelper.event.copy([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Copy text content of an element to the clipboard.",subCommand:[]},{name:"onDrag",version:"0.0.1",example:"dphelper.event.onDrag([element])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Handle dragging functionality for elements.",subCommand:[]},{name:"keys",version:"0.0.1",example:"dphelper.event.keys(e)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Return key event properties.",subCommand:[]}]},r)},1380:function(e,t,r){var n;e.exports=(n=r(9021),r(3240),function(){var e=n,t=e.lib.Hasher,r=e.x64,o=r.Word,i=r.WordArray,a=e.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],u=r[5],d=r[6],p=r[7],h=n.high,f=n.low,m=o.high,v=o.low,g=i.high,y=i.low,b=a.high,x=a.low,w=s.high,D=s.low,C=u.high,S=u.low,_=d.high,k=d.low,P=p.high,M=p.low,T=h,j=f,E=m,A=v,O=g,N=y,B=b,q=x,R=w,L=D,H=C,$=S,I=_,z=k,F=P,W=M,U=0;U<80;U++){var G,Y,V=c[U];if(U<16)Y=V.high=0|e[t+2*U],G=V.low=0|e[t+2*U+1];else{var J=c[U-15],X=J.high,K=J.low,Z=(X>>>1|K<<31)^(X>>>8|K<<24)^X>>>7,Q=(K>>>1|X<<31)^(K>>>8|X<<24)^(K>>>7|X<<25),ee=c[U-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=c[U-7],ae=ie.high,se=ie.low,le=c[U-16],ce=le.high,ue=le.low;Y=(Y=(Y=Z+ae+((G=Q+se)>>>0<Q>>>0?1:0))+ne+((G+=oe)>>>0<oe>>>0?1:0))+ce+((G+=ue)>>>0<ue>>>0?1:0),V.high=Y,V.low=G}var de,pe=R&H^~R&I,he=L&$^~L&z,fe=T&E^T&O^E&O,me=j&A^j&N^A&N,ve=(T>>>28|j<<4)^(T<<30|j>>>2)^(T<<25|j>>>7),ge=(j>>>28|T<<4)^(j<<30|T>>>2)^(j<<25|T>>>7),ye=(R>>>14|L<<18)^(R>>>18|L<<14)^(R<<23|L>>>9),be=(L>>>14|R<<18)^(L>>>18|R<<14)^(L<<23|R>>>9),xe=l[U],we=xe.high,De=xe.low,Ce=F+ye+((de=W+be)>>>0<W>>>0?1:0),Se=ge+me;F=I,W=z,I=H,z=$,H=R,$=L,R=B+(Ce=(Ce=(Ce=Ce+pe+((de+=he)>>>0<he>>>0?1:0))+we+((de+=De)>>>0<De>>>0?1:0))+Y+((de+=G)>>>0<G>>>0?1:0))+((L=q+de|0)>>>0<q>>>0?1:0)|0,B=O,q=N,O=E,N=A,E=T,A=j,T=Ce+(ve+fe+(Se>>>0<ge>>>0?1:0))+((j=de+Se|0)>>>0<de>>>0?1:0)|0}f=n.low=f+j,n.high=h+T+(f>>>0<j>>>0?1:0),v=o.low=v+A,o.high=m+E+(v>>>0<A>>>0?1:0),y=i.low=y+N,i.high=g+O+(y>>>0<N>>>0?1:0),x=a.low=x+q,a.high=b+B+(x>>>0<q>>>0?1:0),D=s.low=D+L,s.high=w+R+(D>>>0<L>>>0?1:0),S=u.low=S+$,u.high=C+H+(S>>>0<$>>>0?1:0),k=d.low=k+z,d.high=_+I+(k>>>0<z>>>0?1:0),M=p.low=M+W,p.high=P+F+(M>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),n.SHA512)},1396:function(e,t,r){var n;e.exports=(n=r(9021),r(3240),r(6440),r(5503),r(754),r(4725),r(4636),r(5471),r(3009),r(6308),r(1380),r(9557),r(5953),r(8056),r(1025),r(19),r(9506),r(7165),r(2169),r(6939),r(6372),r(3797),r(8454),r(2073),r(4905),r(482),r(2155),r(8124),r(25),r(955),r(7628),r(7193),r(6298),r(2696),r(3128),n)},1585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),dphelper.consoleDebug=function(e){if(!e)throw Error("Parent dom element required!");let t=!1;this.autoScroll=!0,this.disableConsoleLogging=!1;const r=document.createElement("div");r.id="debugConsole",e.appendChild(r),this.domElement=r,this.initKeyMappings=()=>{t?console.warn("DebugConsole: keys already mapped!"):(state.toggleConsole=function(){this.visible=!this.visible}.bind(this),t=!0)},this.overrideConsole=()=>{const e=["Warning: Does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.%s",'Warning: Using the "className" prop on <View> is deprecated.',"View"],t=console.log;console.log=function(...r){const[n]=r;e.some((e=>n.includes(e)))||t(...r)};const r=console.info;console.info=function(...t){const[n]=t;e.some((e=>n.includes(e)))||r(...t)};const n=console.warn;console.warn=function(...t){const[r]=t;e.some((e=>r.includes(e)))||n(...t)};const o=console.error;console.error=function(...t){const[r]=t;e.some((e=>r.includes(e)))||o(...t)},onerror=(e,t,r)=>{const n=[e," in <a href='",t,"' target='_blank'>",t?.split("/").pop(),"</a>:",r];return console.error(n.join("")),!1}},this.overrideConsole(),this.clear=function(){this.domElement.innerHTML=""},Object.defineProperties(this,{visible:{get:function(){return""===this.domElement.style.display},set:function(e){e?(this.domElement.style.display="",this.autoScroll&&(this.domElement.scrollTop=this.domElement.scrollHeight)):this.domElement.style.display="none"},configurable:!1}})},Object.defineProperty(dphelper,"consoleDebug",{writable:!1,enumerable:!1,configurable:!1})},1635:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>B,__assign:()=>i,__asyncDelegator:()=>_,__asyncGenerator:()=>S,__asyncValues:()=>k,__await:()=>C,__awaiter:()=>f,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>N,__classPrivateFieldSet:()=>O,__createBinding:()=>v,__decorate:()=>s,__disposeResources:()=>R,__esDecorate:()=>c,__exportStar:()=>g,__extends:()=>o,__generator:()=>m,__importDefault:()=>E,__importStar:()=>j,__makeTemplateObject:()=>P,__metadata:()=>h,__param:()=>l,__propKey:()=>d,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>L,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>x,__spreadArray:()=>D,__spreadArrays:()=>w,__values:()=>y,default:()=>H});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,h=r.length-1;h>=0;h--){var f={};for(var m in n)f[m]="access"===m?{}:n[m];for(var m in n.access)f.access[m]=n.access[m];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var v=(0,r[h])("accessor"===l?{get:d.get,set:d.set}:d[c],f);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(s=a(v.get))&&(d.get=s),(s=a(v.set))&&(d.set=s),(s=a(v.init))&&o.unshift(s)}else(s=a(v))&&("field"===l?o.unshift(s):d[c]=s)}u&&Object.defineProperty(u,n.name,d),p=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function m(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var v=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function x(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function D(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,c)}})),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||s(e,t)}))},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=o[e](t)).value instanceof C?Promise.resolve(r.value.v).then(l,c):u(i[0][2],r)}catch(e){u(i[0][3],e)}var r}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function _(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:C(e[n](t)),done:!1}:o?o(t):t}:o}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var M=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},T=function(e){return T=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},T(e)};function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=T(e),n=0;n<r.length;n++)"default"!==r[n]&&v(t,e,r[n]);return M(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function A(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function O(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function B(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var q="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function R(e){function t(t){e.error=e.hasError?new q(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,(function(e){return t(e),o()}))}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function L(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e})):e}const H={__extends:o,__assign:i,__rest:a,__decorate:s,__param:l,__esDecorate:c,__runInitializers:u,__propKey:d,__setFunctionName:p,__metadata:h,__awaiter:f,__generator:m,__createBinding:v,__exportStar:g,__values:y,__read:b,__spread:x,__spreadArrays:w,__spreadArray:D,__await:C,__asyncGenerator:S,__asyncDelegator:_,__asyncValues:k,__makeTemplateObject:P,__importStar:j,__importDefault:E,__classPrivateFieldGet:A,__classPrivateFieldSet:O,__classPrivateFieldIn:N,__addDisposableResource:B,__disposeResources:R,__rewriteRelativeImportExtension:L}},1670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={enhancement:()=>{window.offScreenBuffering="auto",dphelper.window.animationframe()},animationframe:()=>window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/120)},center:({url:e,title:t,name:r,w:n,h:o})=>{const i=void 0!==screenLeft?screenLeft:screenX,a=void 0!==screenTop?screenTop:screenY,s=innerWidth||(document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width),l=innerHeight||(document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height),c=s/screen.availWidth,u=open(e,t,`\n scrollbars=yes,\n width=${n/c},\n height=${o/c},\n top=${(l-o)/2/c+a},\n left=${(s-n)/2/c+i}\n `);onfocus=()=>u?.focus()},onBeforeUnLoad:e=>{let t=!1,r=!1;const n="You have made some changes which you might want to save.",o=e=>(e.preventDefault(),n),i=document.querySelector(e.target);i&&i.addEventListener("input",(t=>{""!==e.target.value?addEventListener("beforeunload",o,{capture:!0}):removeEventListener("beforeunload",o,{capture:!0})})),!1===r&&(document.body.addEventListener("click",(r=>{if("img"===e.target.tagName&&!0===t){if(!0===confirm(n))return t=!1;r.preventDefault()}})),r=!0),addEventListener("popstate",(e=>{if(!0===t)return!0===confirm(n)?t=!1:(e.stopImmediatePropagation(),e.preventDefault(),n)})),onbeforeunload=e=>{}},purge:(e=document,t=1e4)=>{setTimeout((()=>{if(!e)return null;let t={};if(t){const r=t.length;for(let n=0;n<r;n+=1){const r=t[n].name;"function"==typeof e[r]&&(e[r]=null),void 0===e[r]&&(e[r]=null)}}if(t=e.childNodes,t){const r=t.length;for(let t=0;t<r;t+=1)dphelper.purge(e.childNodes[t])}}),t)},stopZoomWheel:e=>{addEventListener("wheel",(e=>{e.ctrlKey&&e.preventDefault()}),{passive:!1}),addEventListener("keydown",(e=>{const t=dphelper.event.keys(e);["+","-","="].includes(t.key)&&t.ctrl&&e.preventDefault()}))},setZoom:(e="html",t=1)=>(t<0&&(t=1),$(e).css("zoom",t),`New zoom value: ${100*t}% (css: ${t})`),getZoom:(e="html")=>Number($(e).css("zoom"))};dphelper.setDescription({name:"window",active:!0,subCommand:[{name:"enhancement",version:"0.0.1",example:"dphelper.window.enhancement()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use only one time at end of application",subCommand:[]},{name:"center",version:"0.0.1",example:"dphelper.window.center({ url, title, name, w, h })",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use to center popup to screen",subCommand:[]},{name:"onBeforeUnLoad",version:"0.0.1",example:"dphelper.window.onBeforeUnLoad()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Message during leave the site",subCommand:[]},{name:"purge",version:"0.0.1",example:"dphelper.window.purge()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Purge from memory",subCommand:[]},{name:"stopZoomWheel",version:"0.0.1",example:"dphelper.window.stopZoomWheel(e)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Stop Zoom Generated by Mouse Wheel",subCommand:[]},{name:"setZoom",version:"0.0.1",example:"dphelper.window.setZoom([el,1])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"Set the zoom level of an element",subCommand:[]},{name:"getZoom",version:"0.0.1",example:"dphelper.window.getZoom([el])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"Get the zoom level of an element",subCommand:[]}]},r)},1809:e=>{"use strict";e.exports=JSON.parse('{"100":{"code":100,"message":"Continue","description":"The server has received the request headers, and the client should proceed to send the request body."},"101":{"code":101,"message":"Switching Protocols","description":"The requester has asked the server to switch protocols."},"102":{"code":102,"message":"Processing","description":"This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost."},"103":{"code":103,"message":"Early Hints","description":"Used to return some response headers before final HTTP message."},"200":{"code":200,"message":"OK","description":"The request is OK (this is the standard response for successful HTTP requests)."},"201":{"code":201,"message":"Created","description":"The request has been fulfilled, and a new resource is created."},"202":{"code":202,"message":"Accepted","description":"The request has been accepted for processing, but the processing has not been completed."},"203":{"code":203,"message":"Non-Authoritative Information","description":"The request has been successfully processed, but is returning information that may be from another source."},"204":{"code":204,"message":"No Content","description":"The request has been successfully processed, but is not returning any content."},"205":{"code":205,"message":"Reset Content","description":"The request has been successfully processed, but is not returning any content, and requires that the requester reset the document view."},"206":{"code":206,"message":"Partial Content","description":"The server is delivering only part of the resource due to a range header sent by the client."},"207":{"code":207,"message":"Multi-Status","description":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made."},"208":{"code":208,"message":"Already Reported","description":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again."},"218":{"code":218,"message":"This is fine (Apache Web Server)","description":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled."},"226":{"code":226,"message":"IM Used","description":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance."},"300":{"code":300,"message":"Multiple Choices","description":"A link list. The user can select a link and go to that location. Maximum five addresses."},"301":{"code":301,"message":"Moved Permanently","description":"The requested page has moved to a new URL."},"302":{"code":302,"message":"Found","description":"The requested page has moved temporarily to a new URL."},"303":{"code":303,"message":"See Other","description":"The requested page can be found under a different URL."},"304":{"code":304,"message":"Not Modified","description":"Indicates the requested page has not been modified since last requested."},"306":{"code":306,"message":"Switch Proxy","description":"No longer used. Originally meant \\"Subsequent requests should use the specified proxy.\\""},"307":{"code":307,"message":"Temporary Redirect","description":"The requested page has moved temporarily to a new URL."},"308":{"code":308,"message":"Resume Incomplete","description":"Used in the resumable requests proposal to resume aborted PUT or POST requests."},"400":{"code":400,"message":"Bad Request","description":"The request cannot be fulfilled due to bad syntax."},"401":{"code":401,"message":"Unauthorized","description":"The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided."},"402":{"code":402,"message":"Payment Required","description":"Not yet implemented by RFC standards, but reserved for future use."},"403":{"code":403,"message":"Forbidden","description":"The request was a legal request, but the server is refusing to respond to it."},"404":{"code":404,"message":"Not Found","description":"The requested page could not be found but may be available again in the future."},"405":{"code":405,"message":"Method Not Allowed","description":"A request was made of a page using a request method not supported by that page."},"406":{"code":406,"message":"Not Acceptable","description":"The server can only generate a response that is not accepted by the client."},"407":{"code":407,"message":"Proxy Authentication Required","description":"The client must first authenticate itself with the proxy."},"408":{"code":408,"message":"Request Timeout","description":"The server timed out waiting for the request."},"409":{"code":409,"message":"Conflict","description":"The request could not be completed because of a conflict in the request."},"410":{"code":410,"message":"Gone","description":"The requested page is no longer available."},"411":{"code":411,"message":"Length Required","description":"The \\"Content-Length\\" is not defined. The server will not accept the request without it."},"412":{"code":412,"message":"Precondition Failed","description":"The precondition given in the request evaluated to false by the server."},"413":{"code":413,"message":"Request Entity Too Large","description":"The server will not accept the request, because the request entity is too large."},"414":{"code":414,"message":"Request-URI Too Long","description":"The server will not accept the request, because the URL is too long. Occurs when you convert a POST request to a GET request