dphelper 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1 +1,2 @@
1
- addEventListener("message",e=>{if(e.origin!==String(location.origin))return;if(e.source!==window)return;const t=e.data;"dpHelper"===t?.exec&&("state"===t?.tool&&"add"===t?.command?state[t?.name]=t?.value:"state"===t?.tool&&t?.command&&t?.name&&state[t?.command]([t?.name]),"store"===t?.tool&&"add"===t?.command?store.set(t?.name,t?.value):"store"===t?.tool&&t?.command&&t?.name&&store[t?.command]([t?.name]))});const e="2.0.2",t={info:{title:"List",description:"Complete list of tools"},categories:["3party","system","financial","memory","numbers","time","path","file","forms","ui","other"]};Object.defineProperty(window,"dphelper",{value:{},writable:!1,configurable:!0,enumerable:!1}),Object.defineProperty(window,"$",{configurable:!1,enumerable:!1}),Object.defineProperty(window,"jQuery",{configurable:!1,enumerable:!1}),Object.defineProperty(dphelper,"setProps",{value:(e,t,n)=>{Object.defineProperty(e,t.name,n||{writable:!1,configurable:!1,enumerable:!1}),n?.lock&&Object.freeze(e[t.name])},writable:!1,configurable:!1,enumerable:!1}),Object.defineProperty(dphelper,"setDescription",{value:(e,t)=>{t||(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.t?.scripts.push(e)}}),Object.defineProperties(dphelper,{t:{value:{...t,scripts:[],version:e}},version:{value:e}}),dphelper.console={info:(e,t,n)=>{},stop:(e=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn","verbose"])=>{console.disableYellowBox=!0,console.log=()=>{},console.debug=()=>{},window.console=console;const t=()=>{};e.forEach(e=>{console[e]=t})},toHtml:e=>{const t=document.getElementById(e);t&&(console.log=function(e){t.innerHTML+="object"==typeof e?(JSON&&JSON.stringify?JSON.stringify(e):e)+"<br />":e+"<br />"})}},Object.defineProperty(dphelper,"console",{writable:!1,enumerable:!1,configurable:!1}),dphelper.consoleDebug=function(e){if(!e)throw Error("Parent dom element required!");let t=!1;this.autoScroll=!0,this.disableConsoleLogging=!1;const n=document.createElement("div");n.id="debugConsole",e.appendChild(n),this.domElement=n,this.initKeyMappings=()=>{t||(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(...n){const[r]=n;e.some(e=>r.includes(e))||t(...n)};const n=console.info;console.info=function(...t){const[r]=t;e.some(e=>r.includes(e))||n(...t)};const r=console.warn;console.warn=function(...t){const[n]=t;e.some(e=>n.includes(e))||r(...t)};const o=console.error;console.error=function(...t){const[n]=t;e.some(e=>n.includes(e))||o(...t)},onerror=(e,t,n)=>{t?.split("/").pop();return!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}),dphelper.credits=e=>{},Object.defineProperty(dphelper,"credits",{writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(window,"idb",{value:{},configurable:!0,enumerable:!1}),window.idbases=[],Object.defineProperty(window,"idbases",{value:[],configurable:!0,enumerable:!1}),dphelper.terminal=function(e){if(!e)throw Error("Parent DOM element required!");let t=!1;const n=console.log,r=console.info,o=console.warn,i=console.error,a=document.getElementById("terminal"),s=function(e,...t){let n=t.join(" ");n=e===c.WARN?`<font color="#FF6600">* WARN: ${n}</font>`:e===c.ERR?`<font color="#FF0000">* ERR: ${n}</font>`:`* ${n}`,this.domElement.innerHTML+=`${n}<br/>`,a&&(a.scrollTop=a.scrollHeight)},c={LOG:0,INFO:1,WARN:2,ERR:3},u={autoScroll:!0,disableConsoleLogging:!1,domElement:document.createElement("div"),initKeyMappings:function(){t||(state.toggleConsole=function(){this.visible=!this.visible}.bind(this),t=!0)},overrideConsole:function(){console.log=function(...e){this.disableConsoleLogging||(s.call(this,c.LOG,...e),n.apply(console,e))}.bind(this),console.info=function(...e){this.disableConsoleLogging||(s.call(this,c.INFO,...e),r.apply(console,e))}.bind(this),console.warn=function(...e){this.disableConsoleLogging||(s.call(this,c.WARN,...e),o.apply(console,e))}.bind(this),console.error=function(...e){this.disableConsoleLogging||(s.call(this,c.ERR,...e),i.apply(console,e))}.bind(this),onerror=function(e,t,n){t?.split("/").pop();return!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 u.domElement.id="debugConsole",e.appendChild(u.domElement),u.overrideConsole(),u},Object.defineProperty(dphelper,"terminal",{writable:!1,enumerable:!1,configurable:!1});const n={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={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(n,r);const o={name:"array",active:!0,subCommand:[{name:"find",version:"0.0.1",example:"dphelper.array.find([array, item])",description:"Find an item in the array.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240619",type:"function",active:!0,subCommand:[]},{name:"unique",version:"0.0.1",example:"dphelper.array.unique([array])",description:"Return a new array with unique items.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"delete",version:"0.0.1",example:"dphelper.array.delete([array, item])",description:"Delete an item from the array.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"merge",version:"0.0.1",example:"dphelper.array.merge([array1, array2])",description:"Merge two arrays into one.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"mergeByKey",version:"0.0.1",example:"dphelper.array.mergeByKey([arrayA, arrayB, key])",author:"Dario Passariello",creationDate:"20230603",lastMod:"20230603",type:"function",active:!0,description:'\n Example:\n const array = [\n {"date":1230,"value":1},\n {"date":1231,"value":2},\n {"date":1232,"value":3, "value1":3, name:"John"},\n {"date":1233,"value":4},\n {"date":1234,"value":5},\n {"date":1235,"value":6}\n ]\n const newData = [\n {"date":1230,"value":1000,\'name\':\'Diana\'},\n {"date":1232,"value":1000, "value1":20000},\n {"date":1234,"value":1000},\n {"date":1235,"value":888810000}\n ]\n Command: dphelper.array.mergeByKey( array, newData, \'date\' )\n Result:\n [\n {"date": 1230,"value": 1000, name: "Diana" },\n {"date": 1231,"value": 2},\n {"date": 1232 "value": 1000, "value1": 20000, name: "John" },\n {"date": 1233,"value": 4},\n {"date": 1234, "value": 1000},\n {"date": 1235,"value": 888810000}\n ]\n ',subCommand:[]},{name:"asc",version:"0.0.1",example:"dphelper.array.asc([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Sort an array in ascending order.",subCommand:[]},{name:"desc",version:"0.0.1",example:"dphelper.array.desc([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Sort an array in descending order.",subCommand:[]},{name:"duplicates",version:"0.0.1",example:"dphelper.array.duplicates([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Find duplicate items in an array.",subCommand:[]},{name:"even",version:"0.0.1",example:"dphelper.array.even([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Filter even numbers from an array.",subCommand:[]},{name:"odd",version:"0.0.1",example:"dphelper.array.odd([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Filter odd numbers from an array.",subCommand:[]},{name:"sumColumn",version:"0.0.1",example:"dphelper.array.sumColumn([array, column])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20230111",type:"function",active:!0,description:"\n Sum the values of a specified column in a multidimensional array.\n Example:\n const array = [\n [12, 23, 34],\n [45, 56, 67],\n [78, 89, 90]\n ]\n console.debug(dphelper.array.sumColumn(array, 0)) // Result: 135\n ",subCommand:[]},{name:"shuffle",version:"0.0.1",example:"dphelper.array.shuffle([array])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Shuffle the elements of an array.",subCommand:[]},{name:"generate",version:"0.0.1",example:"dphelper.array.generate(num)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Generate an array of random numbers (max 500000).",subCommand:[]},{name:"testArrayInt",version:"0.0.1",example:"dphelper.array.testArrayInt([array])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"\n Test if an array contains consecutive integers.\n Examples:\n console.debug(dphelper.array.testArrayInt([1,2,3,4,6,7])) // Result: [5]\n ",subCommand:[]},{name:"rand32",version:"0.0.1",example:"dphelper.array.rand32(num)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"\n Generate an array of random 32-bit unsigned integers.\n Example:\n console.debug(dphelper.array.rand32(500000))\n ",subCommand:[]},{name:"deepClone",version:"0.0.1",example:"dphelper.array.deepClone(array|object)",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"\n Generate a deep clone of an array or object.\n Example:\n dphelper.array.deepClone([array|object])\n ",subCommand:[]},{name:"match",version:"0.0.1",example:"dphelper.array.match([arrayOfWords, arrayToCheck])",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"\n Find a perfect match between an array of words and an array to check.\n Example:\n dphelper.array.match([arrayOfWords, arrayToCheck])\n ",subCommand:[]},{name:"shallow",version:"0.0.1",example:"dphelper.array.shallow([array])",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"\n Generate a shallow copy of an array\n Example: dphelper.array.shallow([array])\n ",subCommand:[]},{name:"deepCopy",version:"0.0.1",example:"dphelper.array.deepCopy([array])",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"\n Generate a deepCopy of an array\n Example: dphelper.array.deepCopy([array])\n ",subCommand:[]},{name:"groupBy",version:"0.0.1",example:"dphelper.array.groupBy([array, key])",author:"Dario Passariello",creationDate:"20250414",lastMod:"20250414",type:"function",active:!0,description:"\n Generate groups of array by a specific key\n Example: dphelper.array.groupBy([array, key])\n ",subCommand:[]}]},i={find:(e,t)=>{if(Array.isArray(e)){for(const n of e){if(n[t]===t)return n;if(n.children){const e=dphelper.array.find(t,n.children);if(e)return e}}return!1}},unique:e=>{if(Array.isArray(e))return[...new Set(e)]},delete:(e,t)=>{Array.isArray(e)&&e.some(function e(n,r,o){if(n[t]===t)return o.splice(r,1),!0;for(const t of Object.keys(n)){const r=n[t];if(Array.isArray(r))return r.some(e)}})},merge:(e,t)=>{if(!e||!t)return t||e;for(const n of Object.keys(e))e[n]instanceof Object&&t[n]&&Object.assign(e[n],dphelper.array.merge(t[n],e[n]));return Object.assign(t||{},e)},mergeByKey:(e,t,n)=>e.map(e=>{const r=t.find(t=>e[n]===t[n]);return r?Object.assign({},e,r):e}),asc:e=>{if(Array.isArray(e))return e.sort((e,t)=>e-t)},desc:e=>{if(Array.isArray(e))return e.sort((e,t)=>t-e)},duplicates:e=>{if(!Array.isArray(e))return;const t=/* @__PURE__ */new Set,n=/* @__PURE__ */new Set;for(const r of e)t.has(r)?n.add(r):t.add(r);return Array.from(n)},even:e=>{if(Array.isArray(e))return e.filter(e=>e%2==0)},odd:e=>{if(Array.isArray(e))return e.filter(e=>e%2!=0)},toObj:e=>{if(Array.isArray(e))return Object.assign({},e)},sumColumn:(e=[],t=0)=>Array.isArray(e)?void 0===t?"provide a column":e.reduce((e,n)=>e+(n[t]||0),0):"provide a multidimensional array",shuffle:e=>{if(Array.isArray(e)){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}},generate:e=>{if(Number.isNaN(e))return;const t=Array.from({length:e},(e,t)=>t+1);return dphelper.array.shuffle(t)},testArrayInt:e=>{if(!Array.isArray(e))return;const t=[];for(let n=1;n<=e.length;n++)e.includes(n)||t.push(n);return t},rand32:e=>{const t=performance.now(),n=[];n.nums=[],n.time=[];for(var r=0;r<e;++r)n.nums.push(crypto.getRandomValues(new Uint32Array(1))[0]);const o=performance.now();return n.time.push(o-t),n},findindex:(e,t)=>e.findIndex(e=>e.name===t),pathToJson:(e,t="/")=>{const n={};let r;for(const o of e){r=n;const e=o.split(t);for(const t of e.slice(1,-1)){if(""===t)return;t in r||(r[t]={}),r=r[t]}r[e[e.length-1]]=null}return n},deepClone:e=>JSON.parse(JSON.stringify(e)),match:(e,t)=>e.filter(e=>t.includes(e)),shallow:e=>Object.assign([],e),deepCopy:e=>structuredClone(e),groupBy:(e,t)=>e.reduce((e,n)=>({...e,[n[t]]:[...e[t]||[],n]}),{})};dphelper.setDescription(o,i);const a={play:(e,t="",n=!1)=>{if(e){if(!document.querySelector(`#audio_${e}`)){const r=document.createElement("audio");r.id="audio_"+e,r.src=t+e,r.loop=n,document.body.appendChild(r),r.load(),r.play().catch(e=>{})}}else document.querySelectorAll("audio").forEach(e=>e.remove())}};dphelper.setDescription({name:"audio",active:!0,subCommand:[{name:"play",version:"0.0.1",example:"dphelper.audio.play([audiofile])",description:"",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,subCommand:[]}]},a);const s={cache:e=>{if("string"!=typeof e)throw new Error("The provided URI must be a string");return e.concat(/\?/.test(e)?"&":"?","t=",dphelper.rnd())}};dphelper.setDescription({name:"avoid",active:!0,subCommand:[{name:"cache",version:"0.0.1",example:"dphelper.avoid.cache()",description:"Appends a cache-busting query parameter to a given URI.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]}]},s);const c={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 with a long query information."},415:{code:415,message:"Unsupported Media Type",description:"The server will not accept the request, because the media type is not supported."},416:{code:416,message:"Requested Range Not Satisfiable",description:"The client has asked for a portion of the file, but the server cannot supply that portion."},417:{code:417,message:"Expectation Failed",description:"The server cannot meet the requirements of the Expect request-header field."},418:{code:418,message:"I'm a teapot",description:'Any attempt to brew coffee with a teapot should result in the error code "418 I\'m a teapot". The resulting entity body MAY be short and stout.'},419:{code:419,message:"Page Expired (Laravel Framework)",description:"Used by the Laravel Framework when a CSRF Token is missing or expired."},420:{code:420,message:"Method Failure (Spring Framework)",description:"A deprecated response used by the Spring Framework when a method has failed."},421:{code:421,message:"Misdirected Request",description:"The request was directed at a server that is not able to produce a response (for example because a connection reuse)."},422:{code:422,message:"Unprocessable Entity",description:"The request was well-formed but was unable to be followed due to semantic errors."},423:{code:423,message:"Locked",description:"The resource that is being accessed is locked."},424:{code:424,message:"Failed Dependency",description:"The request failed due to failure of a previous request (e.g., a PROPPATCH)."},426:{code:426,message:"Upgrade Required",description:"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field."},428:{code:428,message:"Precondition Required",description:"The origin server requires the request to be conditional."},429:{code:429,message:"Too Many Requests",description:"The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes."},431:{code:431,message:"Request Header Fields Too Large",description:"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large."},440:{code:440,message:"Login Time-out",description:"The client's session has expired and must log in again. (IIS)"},444:{code:444,message:"Connection Closed Without Response",description:"A non-standard status code used to instruct nginx to close the connection without sending a response to the client, most commonly used to deny malicious or malformed requests."},449:{code:449,message:"Retry With",description:"The server cannot honour the request because the user has not provided the required information. (IIS)"},450:{code:450,message:"Blocked by Windows Parental Controls",description:"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage."},451:{code:451,message:"Unavailable For Legal Reasons",description:"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource."},494:{code:494,message:"Request Header Too Large",description:"Used by nginx to indicate the client sent too large of a request or header line that is too long."},495:{code:495,message:"SSL Certificate Error",description:"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate."},496:{code:496,message:"SSL Certificate Required",description:"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided."},497:{code:497,message:"HTTP Request Sent to HTTPS Port",description:"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests."},498:{code:498,message:"Invalid Token (Esri)",description:"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token."},499:{code:499,message:"Client Closed Request",description:"A non-standard status code introduced by nginx for the case when a client closes the connection while nginx is processing the request."},500:{code:500,message:"Internal Server Error",description:"An error has occurred in a server side script, a no more specific message is suitable."},501:{code:501,message:"Not Implemented",description:"The server either does not recognize the request method, or it lacks the ability to fulfill the request."},502:{code:502,message:"Bad Gateway",description:"The server was acting as a gateway or proxy and received an invalid response from the upstream server."},503:{code:503,message:"Service Unavailable",description:"The server is currently unavailable (overloaded or down)."},504:{code:504,message:"Gateway Timeout",description:"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server."},505:{code:505,message:"HTTP Version Not Supported",description:"The server does not support the HTTP protocol version used in the request."},506:{code:506,message:"Variant Also Negotiates",description:"Transparent content negotiation for the request results in a circular reference."},507:{code:507,message:"Insufficient Storage",description:"The server is unable to store the representation needed to complete the request."},508:{code:508,message:"Loop Detected",description:"The server detected an infinite loop while processing the request (sent instead of 208 Already Reported)."},509:{code:509,message:"Bandwidth Limit Exceeded",description:"The server has exceeded the bandwidth specified by the server administrator; this is often used by shared hosting providers to limit the bandwidth of customers."},510:{code:510,message:"Not Extended",description:"Further extensions to the request are required for the server to fulfil it."},511:{code:511,message:"Network Authentication Required",description:"The client needs to authenticate to gain network access."},520:{code:520,message:"Unknown Error",description:'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.'},521:{code:521,message:"Web Server Is Down",description:"The origin server has refused the connection from Cloudflare."},522:{code:522,message:"Connection Timed Out",description:"Cloudflare could not negotiate a TCP handshake with the origin server."},523:{code:523,message:"Origin Is Unreachable",description:"Cloudflare could not reach the origin server; for example, if the DNS records for the origin server are incorrect."},524:{code:524,message:"A Timeout Occurred",description:"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response."},525:{code:525,message:"SSL Handshake Failed",description:"Cloudflare could not negotiate a SSL/TLS handshake with the origin server."},526:{code:526,message:"Invalid SSL Certificate",description:"Used by Cloudflare and Cloud Foundry's gorouter to indicate failure to validate the SSL/TLS certificate that the origin server presented."},527:{code:527,message:"Railgun Listener to Origin Error",description:"Error 527 indicates that the request timed out or failed after the WAN connection had been established."},530:{code:530,message:"Origin DNS Error",description:"Error 530 indicates that the requested host name could not be resolved on the Cloudflare network to an origin server."},598:{code:598,message:"Network Read Timeout Error",description:"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy."},"1xx":{code:"1xx",message:"Information",description:"1xx codes are often interim responses for sharing connection status information. Not intended for final request or response action."},"2xx":{code:"2xx",message:"Successful",description:"2xx codes indicate successful responses usually this means the action requested by the client was received, understood and accepted successfully."},"3xx":{code:"3xx",message:"Redirection",description:"3xx codes are a class of responses that suggest the User-Agent must follow another course of action to obtain the complete requested resource."},"4xx":{code:"4xx",message:"Client Error",description:"4xx codes generally are error responses specifying an issue at the client’s end. Potentially a network issue."},"5xx":{code:"5xx",message:"Server Error",description:"5xx error codes indicate that an error or unresolvable request occurred on the server side, whether that is a proxy or the origin host."}},u={state:(e,t,n)=>{history.pushState(e,t,n)},forw:e=>{history.go(e)},back:e=>{history.go(-Math.abs(e))},reload:()=>{location.href="/"},href:e=>{location.href=e},offLine:(e="You are offline.")=>{addEventListener("online",()=>{$("[o]").remove()}),addEventListener("offline",()=>{$(`\n <style o>\n html {\n\n &:before {\n content: "";\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: #00000082;\n z-index: 9999;\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n\n }\n\n &:after{\n position: absolute;\n content: "${e}";\n font-size: 1em;\n background-color: orange;\n color: black;\n text-align: center;\n padding: 10px 30px;\n z-index: 10000;\n border-radius: 20px;\n top: calc(50% - 22px);\n left: calc(50% - 92px);\n border: 6px solid #00000026;\n }\n\n }\n </style>\n `).appendTo("body")})},zoom:()=>Math.round(100*devicePixelRatio),status:e=>{if(!e)return"";return c[e]}};dphelper.setDescription({name:"browser",active:!0,subCommand:[{name:"state",version:"0.0.1",example:"dphelper.browser.state([state, title, url])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Pushes a new state to the browser history.",subCommand:[]},{name:"forw",version:"0.0.1",example:"dphelper.browser.forw([number])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Moves forward in the browser history.",subCommand:[]},{name:"back",version:"0.0.1",example:"dphelper.browser.back([number])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Moves backward in the browser history.",subCommand:[]},{name:"reload",version:"0.0.1",example:"dphelper.browser.reload()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Reloads the current page.",subCommand:[]},{name:"href",version:"0.0.1",example:"dphelper.browser.href([url])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Navigates to the specified URL.",subCommand:[]},{name:"offLine",version:"0.0.1",example:"dphelper.browser.offline([text])",author:"Dario Passariello",creationDate:"20190727",lastMod:"20240727",type:"function",active:!0,description:"Displays an offline message when the browser is offline.",subCommand:[]},{name:"zoom",version:"0.0.1",example:"dphelper.browser.zoom()",author:"Dario Passariello",creationDate:"20190727",lastMod:"20240727",type:"function",active:!0,description:"Returns the current zoom level of the browser.",subCommand:[]},{name:"status",version:"0.0.1",example:"dphelper.browser.status(404)",author:"Dario Passariello",creationDate:"20240912",lastMod:"20240912",type:"function",active:!0,description:"Returns a description of the specified HTTP status code.",subCommand:[]}]},u);const l={url:e=>fetch(`https://a51.dev/dns/status.php?domain=${e}`).then(e=>e.json()).then(e=>e).catch(e=>{}),version:(e,t,n)=>{if(!e||!t)return NaN;const r=n&&n.lex,o=n&&n.zero;let i=e.split("."),a=t.split(".");function s(e){return(r?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)}if(!i.every(s)||!a.every(s))return NaN;if(o){for(;i.length<a.length;)i.push("0");for(;a.length<i.length;)a.push("0")}r||(i=i.map(Number),a=a.map(Number));for(let c=0;c<i.length;++c){if(a.length==c)return 1;if(i[c]!=a[c])return i[c]>a[c]?1:-1}return i.length!=a.length?-1:0},npmVer:async(e="dphelper")=>{const t=`https://registry.npmjs.org/${e}/latest`;return await fetch(t).then(e=>e.json()).then(e=>e).catch(e=>{})}};dphelper.setDescription({name:"check",active:!0,subCommand:[{name:"url",version:"0.0.1",example:"dphelper.check.url([domain])",description:"Checks the status of a domain.",author:"Dario Passariello",creationDate:"20240829",lastMod:"20240829",type:"function",active:!0,subCommand:[]},{name:"version",version:"0.0.1",example:"dphelper.check.version([v1], [v2], [opts])",description:"Compares two versions.",author:"Dario Passariello",creationDate:"20240829",lastMod:"20240829",type:"function",active:!0,subCommand:[]},{name:"npmVer",version:"0.0.1",example:"dphelper.check.npmVer([npm])",description:"Fetches the latest version of an npm package.",author:"Dario Passariello",creationDate:"20240829",lastMod:"20240829",type:"function",active:!0,subCommand:[]}]},l);const d={name:"color",active:!0,subCommand:[{name:"hex",version:"0.0.1",example:"dphelper.color.hex(255)",description:"Converts a number to a hexadecimal string.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"toHex",version:"0.0.1",example:"dphelper.color.toHex([255, 255, 255])",description:"Converts an RGB array to a hexadecimal string.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"toRGB",version:"0.0.1",example:"dphelper.color.toRGB('#ffffff')",description:"Converts a hexadecimal string to an RGB array.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"oleColor",version:"0.0.1",example:"dphelper.color.oleColor('#ffffff')",description:"Converts a hexadecimal string to an OLE color.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"gradient",version:"0.0.1",example:"dphelper.color.gradient([colorStart, colorEnd, colorCount])",description:"Generates a gradient between two colors.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]}]};dphelper.t.scripts.push(d);const p={hex:e=>{const t="0123456789abcdef";let n=parseInt(e.toString());return 0==n||Number.isNaN(n)?"00":(n=Math.round(Math.min(Math.max(0,n),255)),t.charAt((n-n%16)/16)+t.charAt(n%16))},toHex:e=>dphelper.color.hex(e[0])+dphelper.color.hex(e[1])+dphelper.color.hex(e[2]),toRGB:e=>{const t=[];return t[0]=parseInt(dphelper.text.trim(e,"#",1,7).substring(0,2),16),t[1]=parseInt(dphelper.text.trim(e,"#",1,7).substring(2,4),16),t[2]=parseInt(dphelper.text.trim(e,"#",1,7).substring(4,6),16),t},oleColor:e=>{const t=e.replace("#","").match(/.{1,2}/g);return(parseInt(t[0],16)+256*parseInt(t[1],16)+65536*parseInt(t[2],16)).toString()},gradient:(e,t,n)=>{const r=dphelper.color.toRGB(e),o=dphelper.color.toRGB(t),i=n,a=[];let s=0;const c=[];for(let u=0;u<i;u++)s+=1/i,c[0]=r[0]*s+(1-s)*o[0],c[1]=r[1]*s+(1-s)*o[1],c[2]=r[2]*s+(1-s)*o[2],a.push(dphelper.color.toHex(c));return a}};dphelper.setDescription(d,p);const f={name:"cookie",active:!0,subCommand:[{name:"set",version:"0.0.1",example:"dphelper.cookie.set({name, value, time, path = '/'})",description:"Creates a cookie with specified properties.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,subCommand:[]},{name:"get",version:"0.0.1",example:"dphelper.cookie.get(name)",description:"Retrieves the value of a specified cookie.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,subCommand:[]},{name:"delete",version:"0.0.1",example:"dphelper.cookie.delete(name)",description:"Deletes a specified cookie.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,subCommand:[]},{name:"removeAll",version:"0.0.1",example:"dphelper.cookie.removeAll()",description:"Clears all cookies.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,subCommand:[]}]};dphelper.t.scripts.push(f);const h={set:e=>{const t=/* @__PURE__ */new Date;if(t.setTime(t.getTime()+31536e6),!e.name)return;const{name:n,value:r,time:o=e.time||t.toUTCString(),path:i=e.path||"/",sameSite:a=e.sameSite||"Lax",secure:s=("https:"===location.protocol?"Secure":"false")}=e;document.cookie=`${n}=${r};expires=${o};path=${i};SameSite=${a};Secure=${s};`},get:e=>{const t=document.cookie.split(";"),n=t.length;for(let r=0;r<n;r++){const n=t[r].split("=");if(e===n[0])return decodeURIComponent(n[1])}return null},delete:e=>{dphelper.cookie.set({name:e,value:"",time:"Thu, 01 Jan 1970 00:00:00 GMT"})},removeAll:()=>{const e=document.cookie.split(";"),t=e.length;for(let n=0;n<t;n++){const t=e[n],r=t.indexOf("="),o=r>-1?t.slice(0,r):t;dphelper.cookie.delete(o)}}};dphelper.setDescription(f,h);const m={name:"coords",active:!0,subCommand:[{name:"degreesToRadians",version:"0.0.1",example:"dphelper.coords.degreesToRadians(45)",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Convert degrees to radians",subCommand:[]},{name:"latToMeters",version:"0.0.1",example:"dphelper.coords.latToMeters([40.689202777778, -74.044219444444])",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Convert latitude to meters",subCommand:[]},{name:"toVector",version:"0.0.1",example:"dphelper.coords.toVector([40.689202777778, -74.044219444444, 1])",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Convert coordinates to vector",subCommand:[]},{name:"convertToDecDegrees",version:"0.0.1",example:"dphelper.coords.convertToDecDegrees([39, 5, 59, 'N'])",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Convert coordinates to decimal degrees",subCommand:[]},{name:"distance",version:"0.0.1",example:"dphelper.coords.distance([40.718788808171105, -74.0114768663747],[38.909309636475875, -77.01712459058946])",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"\n Haversine formula:\n a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)\n c = 2 ⋅ atan2( √a, √(1-a) )\n d = R ⋅ c\n where φ is latitude, λ is longitude, R is earth's radius (mean radius = 6,371km);\n note that angles need to be in radians to pass to trig functions!\n ",subCommand:[]},{name:"polarToCartesian",version:"0.0.1",example:"dphelper.coords.polarToCartesian([centerX, centerY, radius, angleInDegrees])",author:"Dario Passariello",creationDate:"2024-09-28",lastMod:"2024-09-28",type:"function",active:!0,description:"Convert polar coordinates to Cartesian coordinates",subCommand:[]},{name:"mapDegreesToPixels",version:"0.0.1",example:"dphelper.coords.mapDegreesToPixels([degree, minDegree, maxDegree, minPixel, maxPixel, padding])",author:"Dario Passariello",creationDate:"2024-09-28",lastMod:"2024-09-28",type:"function",active:!0,description:"Map degrees to pixels",subCommand:[]}]},v=6371e3,b={degreesToRadians:e=>e*Math.PI/180,latToMeters:e=>{if(!Array.isArray(e))return;return v*Math.cos(e[0])*Math.cos(e[1])/1e3},toVector:e=>{if(!Array.isArray(e))return;return[v*Math.cos(e[1]*Math.PI/180)*Math.cos(e[0]*Math.PI/180),v*Math.cos(e[1]*Math.PI/180)*Math.sin(e[0]*Math.PI/180),v*Math.sin(e[2]*Math.PI/180)]},convertToDecDegrees:(e,t,n,r)=>{let o=e+t/60+n/3600;return"S"!==r&&"W"!==r||(o*=-1),o},distance:(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return;const n=e[0]*Math.PI/180,r=t[0]*Math.PI/180,o=(t[0]-e[0])*Math.PI/180,i=(t[1]-e[1])*Math.PI/180,a=Math.sin(o/2)*Math.sin(o/2)+Math.cos(n)*Math.cos(r)*Math.sin(i/2)*Math.sin(i/2),s=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)),c=v*s;return{km:Number((c/1e3).toFixed(2)),Mi:Number((c/1e3*.621371).toFixed(2)),nMi:Number((c/1e3/1.852).toFixed(2))}},polarToCartesian:(e,t,n,r)=>{const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}},mapDegreesToPixels:(e,t,n,r,o,i)=>{const a=o-i/10/2-(r+(e-t)/(n-t)*(o-r)-i);return a<i?i:a}};dphelper.setDescription(m,b);const y={days:(e="en")=>({en:["Monday","Tuesday","Wednesday","Thursday","Wednesday","Saturday","Sunday"],it:["lunedì","martedì","mercoledì","giovedì","Venerdì","Sabato","domenica"]}[e]),months:(e="en")=>({en:["January","February","March","April","May","June","July","August","September","October","November","December"],it:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]}[e]),year:()=>(/* @__PURE__ */new Date).getFullYear(),toIso:(e,t="en")=>{e||(e="");const n=new Date(e);if("Invalid Date"==String(n))return null;return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(n)},toMMDDYYYY:e=>{e||(e="");const t=new Date(e);return("0"+(t.getMonth()+1)).slice(-2)+""+("0"+t.getDate()).slice(-2)+t.getFullYear()},toYYYYMMDD:e=>{if(e)return e.toISOString().split("T")[0].replaceAll("-","")},toHuman:e=>e.toLocaleDateString(void 0,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),convert:(e,t)=>{if(!e)return null;t||(t=dphelper.date.months("en"));const n=e.substring(0,2).replace("0",""),r=e.substring(2,4),o=e.substring(e.length-4);return r+" "+t[Number(n)-1]+" "+o},iso2Epoch:e=>{e||(e="");return new Date(e).getTime()},localIsoTime:e=>{e||(e="");const t=6e4*new Date(e).getTimezoneOffset();return new Date(Date.now()-t).toISOString().slice(0,-1)},utc:()=>(/* @__PURE__ */new Date).toUTCString(),parse:(e,t="/")=>{if(!e)return null;return e.substring(0,2)+t+e.substring(2,4)+t+e.substring(4,8)},addDays:(e,t)=>{const n=new Date(Number(e));return n.setDate(e.getDate()+t),n},dateTimeToString:e=>{try{return`${e.getFullYear()}${e.getMonth().toString().length>1?e.getMonth()+1:`0${e.getMonth()+1}`}\n ${e.getDate().toString().length>1?e.getDate():`0${e.getDate()}`}_${e.getHours()}${e.getMinutes()}${e.getSeconds()}`}catch(t){return e}},isoToHuman:(e,t="@")=>{if(!e)return null;const n=dphelper.date.months("en"),r=new Date(e),o=r.getFullYear(),i=e.split("T")[1].split(":").slice(0,2).join(":");let a=(r.getMonth()+1).toString(),s=r.getDate().toString();return s.length<2&&(s="0"+s),a.length<2&&(a="0"+a),s+" "+n[Number(a)-1]+" "+o+" "+t+" "+i},fullDate:()=>{const e=/* @__PURE__ */new Date,t=Number(e.getDate()),n=Number(e.getMonth()+1),r=Number(e.getFullYear()),o=Number(e.getHours()),i=Number(e.getMinutes()),a=Number(e.getSeconds());return(t<10?"0"+t:t)+"-"+(n<10?"0"+n:n)+"-"+r+" "+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)},epoch:()=>/* @__PURE__ */(new Date).getTime(),diffInDays:(e,t)=>{const n=t.getTime(),r=e.getTime();return Math.floor((n-r)/864e5)},diffInWeeks:(e,t)=>{const n=t.getTime(),r=e.getTime();return Number(parseInt(String((n-r)/6048e5)))},diffInMonths:(e,t)=>{const n=e.getFullYear(),r=t.getFullYear(),o=e.getMonth();return t.getMonth()+12*r-(o+12*n)},diffInYears:(e,t)=>t.getFullYear()-e.getFullYear(),dateToYMD:e=>{const t=e.getDate(),n=e.getMonth()+1;return e.getFullYear()+"-"+(n<=9?"0"+n:n)+"-"+(t<=9?"0"+t:t)},collection:({date:e=/* @__PURE__ */new Date,type:t,locale:n="en-US"})=>{let r;switch(t){case"toDateString":r=e.toDateString();break;case"toISOString":r=e.toISOString();break;case"toJSON":r=e.toJSON();break;case"toLocaleDateString":r=e.toLocaleDateString(n);break;case"toLocaleString":r=e.toLocaleString(n);break;case"toLocaleTimeString":r=e.toLocaleTimeString(n);break;case"toString":r=e.toString();break;case"toISOStringShort":r=e.toISOString().slice(0,10)}return r},timeZones:()=>{const e=[];return Intl.supportedValuesOf("timeZone").forEach(t=>e.push(t)),e}};dphelper.setDescription({name:"date",active:!0,subCommand:[{name:"toIso",version:"0.0.1",example:"dphelper.date.toIso([value, int = 'en'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts a date value to ISO format.",subCommand:[]},{name:"toMMDDYYYY",version:"0.0.1",example:"dphelper.date.toMMDDYYYY([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts a date value to MMDDYYYY format.",subCommand:[]},{name:"toYYYYMMDD",version:"0.0.1",example:"dphelper.date.toYYYYMMDD([value])",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230101",type:"function",active:!0,description:"Converts a date value to YYYYMMDD format.",subCommand:[]},{name:"toHuman",version:"0.0.1",example:"dphelper.date.toHuman([value])",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230101",type:"function",active:!0,description:"Converts a date value to a human-readable format.",subCommand:[]},{name:"convert",version:"0.0.1",example:"dphelper.date.convert([value, format])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts a date value to a specified format.",subCommand:[]},{name:"iso2Epoch",version:"0.0.1",example:"dphelper.date.iso2Epoch([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts an ISO date value to epoch time.",subCommand:[]},{name:"localIsoTime",version:"0.0.1",example:"dphelper.date.localIsoTime([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Gets the local ISO time for a given date value.",subCommand:[]},{name:"utc",version:"0.0.1",example:"dphelper.date.utc()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Gets the current UTC time.",subCommand:[]},{name:"parse",version:"0.0.1",example:"dphelper.date.parse([value, separator = '/'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Parses a date value with a specified separator.",subCommand:[]},{name:"year",version:"0.0.1",example:"dphelper.date.year()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Gets the current year.",subCommand:[]},{name:"addDays",version:"0.0.1",example:"dphelper.date.addDays([date, days])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Adds a specified number of days to a date.",subCommand:[]},{name:"dateTimeToString",version:"0.0.1",example:"dphelper.date.dateTimeToString([dateObject])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts a date object to a string.",subCommand:[]},{name:"isoToHuman",version:"0.0.1",example:"dphelper.date.isoToHuman([value, symbol = '@'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts an ISO date value to a human-readable format with a specified symbol.",subCommand:[]},{name:"fullDate",version:"0.0.1",example:"dphelper.date.fullDate()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Gets the full date and time in the format DD-MM-YYYY HH:MM:SS.",subCommand:[]},{name:"epoch",version:"0.0.1",example:"dphelper.date.epoch()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Gets the current epoch time.",subCommand:[]},{name:"diffInDays",version:"0.0.1",example:"dphelper.date.diffInDays()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Calculates the difference in days between two dates.",subCommand:[]},{name:"diffInWeeks",version:"0.0.1",example:"dphelper.date.diffInWeeks()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Calculates the difference in weeks between two dates.",subCommand:[]},{name:"diffInMonths",version:"0.0.1",example:"dphelper.date.diffInMonths()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Calculates the difference in months between two dates.",subCommand:[]},{name:"diffInYears",version:"0.0.1",example:"dphelper.date.diffInYears()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Calculates the difference in years between two dates.",subCommand:[]},{name:"dateToYMD",version:"0.0.1",example:"dphelper.date.dateToYMD()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts a date to the format YYYY-MM-DD.",subCommand:[]},{name:"collection",version:"0.0.1",example:"dphelper.date.collection()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Gets various date representations based on the type and locale.",subCommand:[]},{name:"timeZones",version:"0.0.1",example:"dphelper.date.timeZones()",author:"Dario Passariello",creationDate:"20240901",lastMod:"20240901",type:"function",active:!0,description:"Returns an array of all supported timezones.",subCommand:[]}]},y);const g={select:(e="body")=>{$(e).on("mousedown",e=>{if(!$(e.target).is("input, button, select, textarea, .selectable *"))return $("*").trigger("blur"),e.preventDefault(),!1;$("img, a, input, button").on("dragstart",e=>(e.preventDefault(),!1))})},spellCheck:(e=5e3)=>{setInterval(()=>{document.querySelectorAll("input[type=text], textarea, code").forEach(e=>{e.getAttribute("spellcheck")||e.setAttribute("spellcheck","false")})},e)},rightClick:(e="body")=>{$(e).on("contextmenu",function(e){e.preventDefault()})},copy:(e="body")=>{$(e).on("copy",function(e){e.preventDefault()})},paste:(e="body")=>{$(e).on("paste",function(e){e.preventDefault()})},cut:(e="body")=>{$(e).on("cut",function(e){e.preventDefault()})},drag:(e="body")=>{$(e).on("dragstart",function(e){e.preventDefault()})}};dphelper.setDescription({name:"disable",active:!0,subCommand:[{name:"select",version:"0.0.1",example:"dphelper.disable.select([el = 'body'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Disable text selection on the specified element.",subCommand:[]},{name:"spellCheck",version:"0.0.1",example:"dphelper.disable.spellCheck([tmr = 5000])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Disable spell check on the specified element after a delay.",subCommand:[]},{name:"rightClick",version:"0.0.1",example:"dphelper.disable.rightClick([el = 'body'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Disable right-click context menu on the specified element.",subCommand:[]},{name:"copy",version:"0.0.1",example:"dphelper.disable.copy([el = 'body'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Disable copy functionality on the specified element.",subCommand:[]},{name:"paste",version:"0.0.1",example:"dphelper.disable.paste([el = 'body'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Disable paste functionality on the specified element.",subCommand:[]},{name:"cut",version:"0.0.1",example:"dphelper.disable.cut([el = 'body'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Disable cut functionality on the specified element.",subCommand:[]},{name:"drag",version:"0.0.1",example:"dphelper.disable.drag([el = 'body'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Disable drag functionality on the specified element.",subCommand:[]}]},g);const x={set:(e,t={})=>{dispatchEvent(new CustomEvent(String(e),t))},listen:(e,t=null,n=!1)=>{observer.list?.[e]?.length>0&&observer.remove(e);$(window).on(e,e=>t?setTimeout(()=>t(e),0):null)},remove:e=>{$(window).off(e)}};dphelper.setDescription({name:"dispatch",active:!0,subCommand:[{name:"set",version:"0.0.1",example:"dphelper.dispatch.set([name, value])",author:"Dario Passariello",creationDate:"20231231",lastMod:"20240612",type:"function",active:!0,description:"Dispatches a custom event with the specified name and value.",subCommand:[]},{name:"listen",version:"0.0.1",example:"dphelper.dispatch.listen([eventNames, callback=null], flag = true)",author:"Dario Passariello",creationDate:"20231231",lastMod:"20240612",type:"function",active:!0,description:"Listens for the specified event names and executes the callback when the event is triggered.",subCommand:[]},{name:"remove",version:"0.0.1",example:"dphelper.dispatch.remove([eventNames, callback=null], flag = true)",author:"Dario Passariello",creationDate:"20231231",lastMod:"20240612",type:"function",active:!0,description:"Removes the event listener for the specified event names.",subCommand:[]}]},x);const w={fitScale:(e,t=1,n=!1)=>{addEventListener("resize",r=>{dphelper.element.scaleBasedOnWindow(e,t,n)})},scaleBasedOnWindow:(e,t,n)=>{if(!e)return;const r=$(e),o=r.width()||1,i=r.height()||1;n?r.css("transform","scale("+t/Math.max(o/window.innerWidth,i/window.innerHeight)+")"):r.css("transform","scale("+t/Math.min(o/window.innerWidth,i/window.innerHeight)+")")}};dphelper.setDescription({name:"element",active:!0,subCommand:[{name:"fitScale",version:"0.0.1",example:"dphelper.element.fitScale([el = 'root', scale = 1, fit = false])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Scales an element based on the window size.",subCommand:[]}]},w);const D={list:e=>window.getEventListeners(e),multi:(e,t,n)=>{t.split(" ").forEach(t=>{e.addEventListener(t,n,!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(t){}})},onDrag:e=>{const t=`.popup_overflow_${e}`;$(t).mousedown(n=>{$(window).mousemove(n=>{const r=Math.max(n.pageY,0)-$(t).height()/2,o=Math.max(n.pageX,0)-$(t).width()/2;localStorage.setItem(e,JSON.stringify([r,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:[]}]},D);const C={serialize:function(e){const t=$(e),n={};if(!/[a-zA-Z][a-zA-Z0-9-_.]/.test(t.name))return;const r=(e,t)=>{let n=e[0];"]"==n.slice(-1)&&(n=n.slice(0,-1));const o={};return 1==e.length?o[n]=(e=>(""==e&&(e=null),"null"==e&&(e=null),"undefined"==e&&(e=void 0),"false"==e&&(e=Boolean(!1)),"true"==e&&(e=Boolean(!0)),"off"==e&&(e=Boolean(!1)),"on"==e&&(e=Boolean(!0)),"[]"==e&&(e=Array),"{}"==e&&(e=Object),0!==["null","undefined","false","true","on","off"].filter(t=>t.includes(e)).length||Number.isNaN(e)||(e=Number(e)),e))(t):(e.shift(),o[n]=r(e,t)),o};return $.each(t.serializeArray(),function(){const e=this.value,t=this.name.split("["),o=r(t,e);$.extend(!0,n,o)}),n},confirmType:(e,t)=>{if("number"===e){return/^\d+$/.test(t.toString())}if("email"===e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t.toString().toLowerCase())}return!0},required:e=>null==e?"Required":void 0,minLength:(e,t=1)=>!e||e.length<t?"Must Enter a Value":void 0,maxLength:(e,t=10)=>e.length>t?"Exceeds Max Length":void 0,maxPhoneNumber:(e,t=10)=>e.toString().length>t?"Exceeds Max Length":void 0,isNumeric:e=>!Number.isNaN(e),isEmail:e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e.toString().toLowerCase()),pattern:e=>{const t=e.target;if(!t.type||!t.value)return;let n;switch(t.type){case"text":case"password":n=/^[a-zA-Z 0-9.+\-$!@]*$/;break;case"email":n=/^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$/;break;case"number":n=/^[0-9\-+]*$/;break;case"tel":n=/^[0-9\s()\-+]*$/;break;default:return}t.value.match(n)||(t.value=t.value.slice(0,-1),e.preventDefault())},noSpecialChars:e=>{const t=e.target,n=t.value.trim(),r=/[^\w\s]/gi;n.length>2&&(t.value=n.replace(r,""))},table:(e=[7,24],t,n)=>{let r="";const o=e[0],i=e[1];r=`<form id='${t}'>`,r+="<div class='table'>",r+="<div class='title'>";for(let a=1;a<=o;a++)r+=`<span>${a}</span>`;r+="</div>";for(let a=1;a<=i;a++){r+=`<div class='row'><span>${a}</span>`;for(let e=1;e<=o;e++)r+=`<input name='data[${e}][${a}]' tabindex='${e.toString().padStart(2,"0")}${a.toString().padStart(2,"0")}' type='number' onclick="this.select()" value='${Math.floor(100*Math.random())}' title='${e} to ${a}' />`;r+="</div>"}r+="</div>",r+="</form>",$(n).html(r)},sanitize:e=>{if(e)return e.replace(/[^\w ]/g,"").replace(/[&/\\#, +()$~%.'":*?<>{}]/g,"")}};dphelper.setDescription({name:"form",active:!0,subCommand:[{name:"serialize",version:"0.0.1",example:"dphelper.form.serialize([form])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Serialize form data into an object.",subCommand:[]},{name:"confirmType",version:"0.0.1",example:"dphelper.form.confirmType([type, value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Confirm the type of a value.",subCommand:[]},{name:"required",version:"0.0.1",example:"dphelper.form.required([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Check if a value is required.",subCommand:[]},{name:"minLength",version:"0.0.1",example:"dphelper.form.minLength([value, num = 1])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Check if a value meets the minimum length.",subCommand:[]},{name:"maxLength",version:"0.0.1",example:"dphelper.form.maxLength([value, num = 10])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Check if a value exceeds the maximum length.",subCommand:[]},{name:"maxPhoneNumber",version:"0.0.1",example:"dphelper.form.maxPhoneNumber([value, num = 10])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Check if a phone number exceeds the maximum length.",subCommand:[]},{name:"isNumeric",version:"0.0.1",example:"dphelper.form.isNumeric([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Check if a value is numeric.",subCommand:[]},{name:"isEmail",version:"0.0.1",example:"dphelper.form.isEmail([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Validate an email format.",subCommand:[]},{name:"pattern",version:"0.0.1",example:"dphelper.form.pattern(event)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Pattern validation using onChange on inputs when you provide a pattern.",subCommand:[]},{name:"noSpecialChars",version:"0.0.1",example:"dphelper.form.noSpecialChars(event)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Avoid special characters in an input.",subCommand:[]},{name:"table",version:"0.0.1",example:"dphelper.form.table(size = [7, 24], id, elem)",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"Generate a table (default 7x24).",subCommand:[]},{name:"sanitize",version:"0.0.1",example:"dphelper.form.sanitize(input)",author:"Dario Passariello",creationDate:"20240318",lastMod:"20240318",type:"function",active:!0,description:"Sanitize input value to avoid injection.",subCommand:[]}]},C);const M={currency:(e,t="en-US",n="USD")=>new Intl.NumberFormat(t,{style:"currency",currency:n}).format(e),phoneNumber:(e,t="US")=>{const n=(""+e).replace(/\D/g,"");let r;return"US"===t&&(r=n.match(/^(\d{3})(\d{3})(\d{4})$/),r)?`(${r[1]}) ${r[2]}-${r[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:[]}]},M);const k={counter:(e,t,n)=>e?t&&n?Object.keys(e).length:e.items.filter(e=>e[t]===n).length:null,toCsv:e=>{const t=e,n=(e,t)=>null===t?"":t,r=Object.keys(t[0]),o=t.map(e=>r.map(t=>JSON.stringify(e[t],n)).join(","));return o.unshift(r.join(",")),o.join("\r\n")},saveCsvAs:(e,t)=>{const n=new Blob([e],{type:"text/csv;charset=utf-8;"}),r=document.createElement("a"),o=`${t}_${dphelper.date.dateTimeToString(new Date(Date.now()))}.csv`,i=URL.createObjectURL(n);r.setAttribute("href",i),r.setAttribute("download",o),r.style.visibility="hidden",document.body.appendChild(r),r.click(),document.body.removeChild(r)},is:e=>{try{JSON.parse(e)}catch(t){return!1}return!0},parse:e=>{try{return JSON.parse(e)}catch(t){return"Json not parsable"}},sanitize:e=>e,sanitizeJsonValue:e=>e?e.replace(/^"(.*)"$/,"$1").replace(/\\/g,"").replace(/\//g,"/").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/"/g,'\\"').replace(/\t/g," ").trim()+'"':'""'};dphelper.setDescription({name:"json",active:!0,subCommand:[{name:"counter",version:"0.0.1",example:"dphelper.json.counter()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Count occurrences of a key-value pair in a JSON object.",subCommand:[]},{name:"toCsv",version:"0.0.1",example:"dphelper.json.toCsv()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Convert JSON data to CSV format.",subCommand:[]},{name:"saveCsvAs",version:"0.0.1",example:"dphelper.json.saveCsvAs()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Save CSV data as a file.",subCommand:[]},{name:"is",version:"0.0.1",example:"dphelper.json.is()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Check if a string is valid JSON.",subCommand:[]},{name:"parse",version:"0.0.1",example:"dphelper.json.parse()",author:"Dario Passariello",creationDate:"20241107",lastMod:"20241107",type:"function",active:!0,description:"Parse a JSON string.",subCommand:[]},{name:"sanitize",version:"0.0.1",example:"dphelper.json.sanitize()",author:"Dario Passariello",creationDate:"20241107",lastMod:"20241107",type:"function",active:!0,description:"Sanitize a JSON string.",subCommand:[]},{name:"sanitizeJsonValue",version:"0.0.1",example:"dphelper.json.sanitizeJsonValue()",author:"Dario Passariello",creationDate:"20241107",lastMod:"20241107",type:"function",active:!0,description:"Sanitize individual JSON values.",subCommand:[]}]},k);const S={all:(e,t="")=>{e&&(t&&!window[t]&&(window[t]=[]),e.keys().forEach(n=>{n&&(t&&window[t].push(n),e(n))}))},file:()=>{},fileToElement:async(e,t)=>{try{const n=await dphelper.load.file(t),r=document.querySelector(e);r&&(r.innerHTML=dphelper.sanitize.html(n))}catch(n){}},json:async e=>{try{const t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Failed to load JSON file: ${t.statusText}`);return await t.json()}catch(t){throw t}},remote:async(e,t="GET",n={})=>{try{const r=await fetch(e,{method:t,headers:n});if(!r.ok)throw new Error(`Failed to fetch remote data: ${r.statusText}`);return await r.json()}catch(r){throw r}},script:(e,t="html")=>{const n=document.querySelector(t);n&&e.forEach(e=>{const t=document.createElement("script");t.src=e,t.async=!0,t.defer=!0,n.appendChild(t)})},toJson:(e,t="")=>{const n={};e&&(t&&(n[t]=[]),e.keys().forEach(r=>{r&&(t&&n[t].push(r),e(r))}),n[t]&&Object.defineProperty(window,t,{value:dphelper.array.pathToJson(n[t]),writable:!1,enumerable:!1,configurable:!1}))}};dphelper.setDescription({name:"load",active:!0,subCommand:[{name:"all",version:"0.0.1",example:"dphelper.load.all(require['context']('Scripts', true, /.(js|ts)$/) [, 'cacheName'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Load all files from a specific folder based on a specific extension. If you add a 'cacheName', the list is stored in cache.",subCommand:[]},{name:"file",version:"0.0.1",example:"dphelper.load.file(filePath)",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"Load a specific file.",subCommand:[]},{name:"fileToElement",version:"0.0.1",example:"dphelper.load.fileToElement(filePath, elementSelector)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Load a file and insert its content into an element.",subCommand:[]},{name:"json",version:"0.0.1",example:"dphelper.load.json(filePath)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Load a JSON file.",subCommand:[]},{name:"remote",version:"0.0.1",example:"dphelper.load.remote(path, method, headers)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Fetch data from a remote path.",subCommand:[]},{name:"script",version:"0.0.1",example:"dphelper.load.script(scripts, elementSelector)",author:"Dario Passariello",creationDate:"20240525",lastMod:"20240525",type:"function",active:!0,description:"Append script tags to an element.",subCommand:[]},{name:"toJson",version:"0.0.1",example:"dphelper.load.toJson(require.context('./src/router', true, /.(ts)$/), 'router')",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"Create JSON from folder recursion.",subCommand:[]}]},S);const P={list:()=>cache&&cache.log,reg:e=>{cache.log.push({type:"reg",message:e})},debug:e=>{cache.log.push({type:"debug",message:e})},error:e=>{cache.log.push({type:"error",message:e})}};dphelper.setDescription({name:"logging",active:!0,subCommand:[{name:"list",version:"0.0.1",example:"dphelper.log.list()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"List all log entries.",subCommand:[]},{name:"reg",version:"0.0.1",example:"dphelper.log.reg('message')",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Log a regular message.",subCommand:[]},{name:"debug",version:"0.0.1",example:"dphelper.log.debug('message')",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Log a debug message.",subCommand:[]},{name:"error",version:"0.0.1",example:"dphelper.log.error('message')",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Log an error message.",subCommand:[]}]},P);const T={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:[]}]},T);const j={lock:e=>{if(!e)return;const t=window,n=e.split(".");if(n.length<2)return;const r=t[n[0]];r&&Object.defineProperty(r,n[1],{writable:!1,configurable:!1})},unlock:e=>{if(!e)return;const t=window,n=e.split(".");if(n.length<2)return;const r=t[n[0]];r&&Object.defineProperty(r,n[1],{writable:!0,configurable:!0})}};dphelper.setDescription({name:"memory",active:!0,subCommand:[{name:"lock",version:"0.0.1",example:"dphelper.memory.lock('state[key]')",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230111",type:"function",active:!0,description:"Lock a state",subCommand:[]},{name:"unlock",version:"0.0.1",example:"dphelper.memory.unlock('state[key]')",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230111",type:"function",active:!0,description:"Unlock a state",subCommand:[]}]},j);const O={name:"obj",active:!0,subCommand:[{name:"toArray",version:"0.0.1",example:"dphelper.obj.toArray([obj])",description:"Convert an object to an array.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"replaceNullObjects",version:"0.0.1",example:"dphelper.obj.replaceNullObjects([obj])",description:"Replace null values in an object with empty objects.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"serialize",version:"0.0.1",example:"dphelper.obj.serialize([obj])",description:"Serialize an object to a JSON string.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"deSerialize",version:"0.0.1",example:"dphelper.obj.deSerialize([obj])",description:"Deserialize a JSON string to an object.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"find",version:"0.0.1",example:"dphelper.obj.find([array, key, value])",description:"Find an object in an array by key and value.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"toXML",version:"0.0.1",example:"dphelper.obj.toXML([obj])",description:"Convert an object to an XML string.",author:"Dario Passariello",creationDate:"20240315",lastMod:"20240315",type:"function",active:!0,subCommand:[]},{name:"instance",version:"0.0.1",example:"dphelper.obj.instance([obj])",description:"Create an instance of an object.",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,subCommand:[]},{name:"updateByKey",version:"0.0.1",example:"dphelper.obj.updateByKey([obj, key, newValue])",description:"Update an object's property by key.",author:"Dario Passariello",creationDate:"20240929",lastMod:"20240929",type:"function",active:!0,subCommand:[]},{name:"findindex",version:"0.0.1",example:"dphelper.obj.findindex([obj, key])",description:"Find the index of an object in an array by key.",author:"Dario Passariello",creationDate:"20240929",lastMod:"20240929",type:"function",active:!0,subCommand:[]},{name:"parse",version:"0.0.1",example:"dphelper.obj.parse(val)",description:"Check if value is an object or another type. Return object after parse or a different type. Used instead of JSON.parse to avoid crash.",author:"Dario Passariello",creationDate:"20241027",lastMod:"20240927",type:"function",active:!0,subCommand:[]},{name:"diff",version:"0.0.1",example:"dphelper.obj.diff([obj1, obj2])",description:"Show the differences between two objects.",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,subCommand:[]},{name:"shallow",version:"0.0.1",example:"dphelper.obj.shallow([object])",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"\n Generate a shallow copy of an object\n Example: dphelper.obj.shallow([object])\n ",subCommand:[]},{name:"deepCopy",version:"0.0.1",example:"dphelper.obj.deepCopy([object])",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"\n Generate a deepCopy of an object\n Example: dphelper.obj.deepCopy([object])\n ",subCommand:[]}]},A={toArray:e=>Object.entries(e),replaceNullObjects:e=>{const t={...e};return Object.keys(e).forEach(n=>{null===e[n]&&(t[n]="")}),t},serialize:e=>{if("function"==typeof e)return e.toString();if("object"==typeof e){const t={};for(const[n,r]of Object.entries(e))t[n]=dphelper.obj.serialize(r);return t}return e},deSerialize:e=>{if("string"==typeof e&&e.toLowerCase().startsWith("function("))return Function('"use strict"; return '+e)();if("object"==typeof e){const t={};for(const[n,r]of Object.entries(e))t[n]=dphelper.obj.deSerialize(r);return t}return e},sort:e=>Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{}),toXML:e=>{const t=(e,n="")=>{let r="";for(const o in e)if(e.hasOwnProperty(o)){const i=e[o];r+="object"==typeof i&&null!==i?`${n}<${o}>\n${t(i,n+" ")}${n}</${o}>\n`:`${n}<${o}>${i}</${o}>\n`}return r};return t(e)},find:(e,t,n)=>e.find(e=>e[t]===n),instance:e=>Object.create(e),updateByKey:(e,t,n)=>(e.hasOwnProperty(t)&&(e[t]=n),e),findindex:(e,t)=>e.findIndex(e=>void 0!==e[t]),parse:e=>{try{return JSON.parse(e)}catch(t){return e}},isObject:e=>"object"==typeof e&&null!==e,diff:(e,t)=>{const n={};for(const r in e)e.hasOwnProperty(r)&&e[r]!==t[r]&&(n[r]={obj1:e[r],obj2:t[r]});for(const r in t)t.hasOwnProperty(r)&&e[r]!==t[r]&&(n[r]={obj1:e[r],obj2:t[r]});return n},path:(e,t,n=".")=>t.concat(e).join(n),shallow:e=>Object.assign({},e),deepCopy:e=>structuredClone(e)};dphelper.setDescription(O,A);const E={rail:()=>location.href.split("?")[0].replace(location.protocol,"").replace(location.host,"").replace(location.hash,"").split("/").filter(e=>e),hash:()=>{const e=location.hash.replace("#","").split("/");return e.length?e.filter(e=>e):["empty"]},query:e=>{const t=new URLSearchParams(window.location.search),n={};return t.forEach((e,t)=>n[t]=e),e?n[e]||null:n}};dphelper.setDescription({name:"path",active:!0,subCommand:[{name:"rail",version:"0.0.1",example:"dphelper.path.rail()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Extract the path segments from the current URL.",subCommand:[]},{name:"hash",version:"0.0.1",example:"dphelper.path.hash([hashUrl])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Extract the hash from a URL.",subCommand:[]},{name:"query",version:"0.0.1",example:"dphelper.path.query([queryString])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20250513",type:"function",active:!0,description:"Extract the query parameters from a URL.",subCommand:[]}]},E);const R={check:e=>e&&"[object Promise]"===Object.prototype.toString.call(e),resolve:async e=>dphelper.promise.check(e)?Promise.resolve(e):e};dphelper.setDescription({name:"promise",active:!0,subCommand:[{name:"check",version:"0.0.1",example:"dphelper.promise.check(promise)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Check if a value is a Promise.",subCommand:[]},{name:"resolve",version:"0.0.1",example:"dphelper.promise.resolve(data)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Resolve a value to a Promise.",subCommand:[]}]},R);dphelper.setDescription({name:"sanitize",active:!0,subCommand:[{name:"html",version:"0.0.1",example:"dphelper.sanitize.html([html])",author:"Dario Passariello",creationDate:"20241204",lastMod:"20241204",type:"function",active:!0,description:"Sanitize HTML by escaping special characters.",subCommand:[]}]},{html:e=>"string"!=typeof e?"":e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")});const q={fullScreen:e=>{const t=document.querySelector(e);t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},toggle:e=>{const t=document,n=t.querySelector(e);n&&(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement?t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.msExitFullscreen&&t.msExitFullscreen():n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.msRequestFullscreen&&n.msRequestFullscreen())},info:()=>({width:screen.width,height:screen.height,availWidth:screen.availWidth,availHeight:screen.availHeight,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth})};dphelper.setDescription({name:"screen",active:!0,subCommand:[{name:"fullScreen",version:"0.0.2",example:"dphelper.screen.fullScreen([element])",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"Enter full screen mode for a given element.",subCommand:[]},{name:"toggle",version:"0.0.2",example:"dphelper.screen.toggle([element])",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"Toggle full screen mode for a given element.",subCommand:[]}]},q);const z={custom:(e="*",t)=>{t.color_1=t?.color_1||"black",t.color_1_hover=t?.color_1_hover||"black",t.color_2=t?.color_2||"transparent",t.color_3=t?.color_3||"rgba(30,150,255,.5)",t.type=t?.type||"thin",t.behavior=t?.behavior||"smooth",t.width=t?.width||"16px",t.height=t?.height||"16px",t.rounded=t?.rounded||"10px",t.margin=t?.margin||0,t.border=t?.border||"5px",t.opacity=t?.opacity||1;const n=` ${e}::-webkit-scrollbar {\n scroll-behavior: ${t.behavior};\n width: ${t.width};\n height: ${t.height};\n }\n ${e}::-webkit-scrollbar-thumb {\n opacity: ${t.opacity} !important;\n -webkit-border-radius: ${t.rounded} !important;\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n border-radius: ${t.rounded} !important;\n background: ${t.color_1} !important;\n background-clip: content-box !important;\n border: ${t.border} solid transparent !important;\n min-height: 2px !important;\n min-width: 2px !important;\n }\n ${e}::-webkit-scrollbar-thumb:hover{\n background: ${t.color_1_hover} !important;\n }\n ${e}::-webkit-scrollbar-thumb:active{\n background: ${t.color_1} !important;\n background-clip: content-box !important;\n border: calc( ${t.border} - 1.5px ) solid transparent !important;\n }\n ${e}::-webkit-scrollbar-track {\n background: ${t.color_2};\n border-radius: ${t.rounded};\n }\n ${e}::-webkit-scrollbar-track:hover {\n /*background: rgba(128,128,128,.15) !important;*/\n }\n ${e}::-webkit-scrollbar-track:vertical:hover {\n /* border-left: 1px solid rgba(0,0,0,.1) !important; */\n }\n ${e}::-webkit-scrollbar-track:horizontal:hover {\n /* border-top: 1px solid rgba(0,0,0,.1) !important; */\n }\n ${e}::-webkit-scrollbar-corner {\n background:rgba(0,0,0,0)\n }\n /*\n ${e}::-webkit-scrollbar-thumb:window-inactive {\n background: ${t.color_3}\n }\n */\n select::-webkit-scrollbar-thumb {\n border: 4px solid hsl(0 0% 92% / 1) !important;\n }\n select::-webkit-scrollbar-track {\n background: hsl(0 0% 92% / 1) !important;\n }\n select::-webkit-scrollbar-track:vertical,\n select::-webkit-scrollbar-track:horizontal {\n border-top: none !important;\n border-left: none !important;\n }\n `,r=document.createElement("style");document.head.appendChild(r),r.innerHTML=n},indicator:e=>{const t=document.querySelector(e.el),n=document.querySelector(".scrollindicator");if(!n){const e=document.createElement("div");e.classList.add("scrollindicator"),document.querySelector("header")?.appendChild(e),e.style.cssText="\n height:5px;\n background:#65c45c;\n position:absolute;\n bottom:0;\n left:0;\n z-index:2\n "}if(e.el||!n)try{const e=document.querySelector(".scrollindicator");t.addEventListener("scroll",function(t){e.style.width="0%";const n=Number(this.scrollTop),r=Number(this.scrollHeight-this.clientHeight),o=Math.min(Math.max(n/r*100),100);e.style.width=o+"%",e.click()}),t.addEventListener("popstate",function(t){e.style.width=0})}catch(r){return}else n.style.width="0%"},position:{set:e=>{const t=[$(e).scrollTop(),$(e).scrollLeft()];null!=t[0]&&null!=t[1]&&store.set(e,t)},get:e=>{if(store.get(e))try{const t=store.get(e);$(e).scrollTop(t[0]),$(e).scrollLeft(t[1])}catch(t){}}},smooth:(e,t,n)=>{e===document&&(e=document.scrollingElement||document.documentElement||document.body.parentNode||document.body);let r=!1,o=e.scrollTop;const i=e===document.body&&document.documentElement?document.documentElement:e,a=n=>{n.preventDefault();const a=s(n);o+=-a*t,o=Math.max(0,Math.min(o,e.scrollHeight-i.clientHeight)),r||c()};e.addEventListener("mousewheel",a,{passive:!1}),e.addEventListener("DOMMouseScroll",a,{passive:!1});const s=e=>e.detail?e.wheelDelta?e.wheelDelta/e.detail/40*(e.detail>0?1:-1):-e.detail/3:e.wheelDelta/120,c=()=>{r=!0;const t=(o-e.scrollTop)/n;e.scrollTop+=t,Math.abs(t)>.5?u(c):r=!1},u=dphelper.Window.animationframe()},scrollTo:(e,t,n=0)=>{const r=document.querySelector(e),o=document.querySelector(t);r&&o&&r.scrollTo({top:o.offsetTop-n,behavior:"smooth"})}};dphelper.setDescription({name:"scrollbar",active:!0,subCommand:[{name:"custom",version:"0.0.1",example:"dphelper.scrollbar.custom(selector)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Apply custom styles to the scrollbar for the selected elements.",subCommand:[]},{name:"indicator",version:"0.0.1",example:"dphelper.scrollbar.indicator(selector)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Add a scroll indicator to the selected elements.",subCommand:[]},{name:"position.get",version:"0.0.1",example:"dphelper.scrollbar.position.get(selector)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Get the current scroll position of the selected elements.",subCommand:[]},{name:"position.set",version:"0.0.1",example:"dphelper.scrollbar.position.set(selector, position)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Set the scroll position of the selected elements.",subCommand:[]},{name:"smooth",version:"0.0.1",example:"dphelper.scrollbar.smooth(container, element, gap)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Smoothly scroll to a specific element within a container with an optional gap.",subCommand:[]},{name:"scrollTo",version:"0.0.1",example:"dphelper.scrollbar.scrollTo(container, element, gap)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Scroll to a specific element within a container with an optional gap.",subCommand:[]}]},z);var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I(e){return e&&e.o&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"o",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var L={exports:{}};var F={exports:{}};const U=/* @__PURE__ */_(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var B;function H(){return B||(B=1,F.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==N&&N.crypto&&(n=N.crypto),!n)try{n=U}catch(m){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||/* @__PURE__ */function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},a=i.lib={},s=a.Base=/* @__PURE__ */function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=a.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s<o;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),u=i.enc={},l=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},d=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=s.extend({reset:function(){this.i=new c.init,this.u=0},l:function(e){"string"==typeof e&&(e=p.parse(e)),this.i.concat(e),this.u+=e.sigBytes},p:function(t){var n,r=this.i,o=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this.m,0))*a,l=e.min(4*u,i);if(u){for(var d=0;d<u;d+=a)this.v(o,d);n=o.splice(0,u),r.sigBytes-=l}return new c.init(n,l)},clone:function(){var e=s.clone.call(this);return e.i=this.i.clone(),e},m:0});a.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this.D()},update:function(e){return this.l(e),this.p(),this},finalize:function(e){return e&&this.l(e),this.C()},blockSize:16,M:function(e){return function(t,n){return new e.init(n).finalize(t)}},k:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=i.algo={};return i}(Math),e)),F.exports;var e}var G,Y={exports:{}};function J(){return G?Y.exports:(G=1,Y.exports=(a=H(),n=(t=a).lib,r=n.Base,o=n.WordArray,(i=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}}),a));var e,t,n,r,o,i,a}var W,V={exports:{}};function Z(){return W||(W=1,V.exports=(e=H(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),V.exports;var e}var K,X={exports:{}};function Q(){return K?X.exports:(K=1,X.exports=(e=H(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var a=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16));var e}var ee,te={exports:{}};function ne(){return ee?te.exports:(ee=1,te.exports=(e=H(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=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;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this.S;e.clamp();for(var o=[],i=0;i<n;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<n;s++)o.push(r.charAt(a>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this.S,o=this.P;if(!o){o=this.P=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,o)},S:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var re,oe={exports:{}};function ie(){return re?oe.exports:(re=1,oe.exports=(e=H(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=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;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this.T:this.S;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c<r;c++)i.push(o.charAt(s>>>6*(3-c)&63));var u=o.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this.T:this.S,i=this.P;if(!i){i=this.P=[];for(var a=0;a<o.length;a++)i[o.charCodeAt(a)]=a}var s=o.charAt(64);if(s){var c=e.indexOf(s);-1!==c&&(n=c)}return r(e,n,i)},S:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",T:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var ae,se={exports:{}};function ce(){return ae?se.exports:(ae=1,se.exports=(e=H(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=a.MD5=i.extend({D:function(){this.j=new o.init([1732584193,4023233417,2562383102,271733878])},v:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this.j.words,a=e[t+0],c=e[t+1],f=e[t+2],h=e[t+3],m=e[t+4],v=e[t+5],b=e[t+6],y=e[t+7],g=e[t+8],x=e[t+9],w=e[t+10],D=e[t+11],C=e[t+12],M=e[t+13],k=e[t+14],S=e[t+15],P=i[0],T=i[1],j=i[2],$=i[3];P=u(P,T,j,$,a,7,s[0]),$=u($,P,T,j,c,12,s[1]),j=u(j,$,P,T,f,17,s[2]),T=u(T,j,$,P,h,22,s[3]),P=u(P,T,j,$,m,7,s[4]),$=u($,P,T,j,v,12,s[5]),j=u(j,$,P,T,b,17,s[6]),T=u(T,j,$,P,y,22,s[7]),P=u(P,T,j,$,g,7,s[8]),$=u($,P,T,j,x,12,s[9]),j=u(j,$,P,T,w,17,s[10]),T=u(T,j,$,P,D,22,s[11]),P=u(P,T,j,$,C,7,s[12]),$=u($,P,T,j,M,12,s[13]),j=u(j,$,P,T,k,17,s[14]),P=l(P,T=u(T,j,$,P,S,22,s[15]),j,$,c,5,s[16]),$=l($,P,T,j,b,9,s[17]),j=l(j,$,P,T,D,14,s[18]),T=l(T,j,$,P,a,20,s[19]),P=l(P,T,j,$,v,5,s[20]),$=l($,P,T,j,w,9,s[21]),j=l(j,$,P,T,S,14,s[22]),T=l(T,j,$,P,m,20,s[23]),P=l(P,T,j,$,x,5,s[24]),$=l($,P,T,j,k,9,s[25]),j=l(j,$,P,T,h,14,s[26]),T=l(T,j,$,P,g,20,s[27]),P=l(P,T,j,$,M,5,s[28]),$=l($,P,T,j,f,9,s[29]),j=l(j,$,P,T,y,14,s[30]),P=d(P,T=l(T,j,$,P,C,20,s[31]),j,$,v,4,s[32]),$=d($,P,T,j,g,11,s[33]),j=d(j,$,P,T,D,16,s[34]),T=d(T,j,$,P,k,23,s[35]),P=d(P,T,j,$,c,4,s[36]),$=d($,P,T,j,m,11,s[37]),j=d(j,$,P,T,y,16,s[38]),T=d(T,j,$,P,w,23,s[39]),P=d(P,T,j,$,M,4,s[40]),$=d($,P,T,j,a,11,s[41]),j=d(j,$,P,T,h,16,s[42]),T=d(T,j,$,P,b,23,s[43]),P=d(P,T,j,$,x,4,s[44]),$=d($,P,T,j,C,11,s[45]),j=d(j,$,P,T,S,16,s[46]),P=p(P,T=d(T,j,$,P,f,23,s[47]),j,$,a,6,s[48]),$=p($,P,T,j,y,10,s[49]),j=p(j,$,P,T,k,15,s[50]),T=p(T,j,$,P,v,21,s[51]),P=p(P,T,j,$,C,6,s[52]),$=p($,P,T,j,h,10,s[53]),j=p(j,$,P,T,w,15,s[54]),T=p(T,j,$,P,c,21,s[55]),P=p(P,T,j,$,g,6,s[56]),$=p($,P,T,j,S,10,s[57]),j=p(j,$,P,T,b,15,s[58]),T=p(T,j,$,P,M,21,s[59]),P=p(P,T,j,$,m,6,s[60]),$=p($,P,T,j,D,10,s[61]),j=p(j,$,P,T,f,15,s[62]),T=p(T,j,$,P,x,21,s[63]),i[0]=i[0]+P|0,i[1]=i[1]+T|0,i[2]=i[2]+j|0,i[3]=i[3]+$|0},C:function(){var e=this.i,n=e.words,r=8*this.u,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this.p();for(var s=this.j,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=i.clone.call(this);return e.j=this.j.clone(),e}});function u(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function l(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function p(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}n.MD5=i.M(c),n.HmacMD5=i.k(c)}(Math),e.MD5));var e}var ue,le={exports:{}};function de(){return ue?le.exports:(ue=1,le.exports=(s=H(),t=(e=s).lib,n=t.WordArray,r=t.Hasher,o=e.algo,i=[],a=o.SHA1=r.extend({D:function(){this.j=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},v:function(e,t){for(var n=this.j.words,r=n[0],o=n[1],a=n[2],s=n[3],c=n[4],u=0;u<80;u++){if(u<16)i[u]=0|e[t+u];else{var l=i[u-3]^i[u-8]^i[u-14]^i[u-16];i[u]=l<<1|l>>>31}var d=(r<<5|r>>>27)+c+i[u];d+=u<20?1518500249+(o&a|~o&s):u<40?1859775393+(o^a^s):u<60?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,c=s,s=a,a=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},C:function(){var e=this.i,t=e.words,n=8*this.u,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this.p(),this.j},clone:function(){var e=r.clone.call(this);return e.j=this.j.clone(),e}}),e.SHA1=r.M(a),e.HmacSHA1=r.k(a),s.SHA1));var e,t,n,r,o,i,a,s}var pe,fe={exports:{}};function he(){return pe?fe.exports:(pe=1,fe.exports=(e=H(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(s[o]=n(t.pow(r,.5))),c[o]=n(t.pow(r,1/3)),o++),r++}();var u=[],l=a.SHA256=i.extend({D:function(){this.j=new o.init(s.slice(0))},v:function(e,t){for(var n=this.j.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],d=n[6],p=n[7],f=0;f<64;f++){if(f<16)u[f]=0|e[t+f];else{var h=u[f-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=u[f-2],b=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[f]=m+u[f-7]+b+u[f-16]}var y=r&o^r&i^o&i,g=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+c[f]+u[f];p=d,d=l,l=s,s=a+x|0,a=i,i=o,o=r,r=x+(g+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},C:function(){var e=this.i,n=e.words,r=8*this.u,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this.p(),this.j},clone:function(){var e=i.clone.call(this);return e.j=this.j.clone(),e}});n.SHA256=i.M(l),n.HmacSHA256=i.k(l)}(Math),e.SHA256));var e}var me,ve={exports:{}};var be,ye={exports:{}};function ge(){return be||(be=1,ye.exports=(e=H(),J(),function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,i=r.WordArray,a=t.algo;function s(){return o.create.apply(o,arguments)}var c=[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)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var l=a.SHA512=n.extend({D:function(){this.j=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)])},v:function(e,t){for(var n=this.j.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],d=n[6],p=n[7],f=r.high,h=r.low,m=o.high,v=o.low,b=i.high,y=i.low,g=a.high,x=a.low,w=s.high,D=s.low,C=l.high,M=l.low,k=d.high,S=d.low,P=p.high,T=p.low,j=f,$=h,O=m,A=v,E=b,R=y,q=g,z=x,N=w,I=D,_=C,L=M,F=k,U=S,B=P,H=T,G=0;G<80;G++){var Y,J,W=u[G];if(G<16)J=W.high=0|e[t+2*G],Y=W.low=0|e[t+2*G+1];else{var V=u[G-15],Z=V.high,K=V.low,X=(Z>>>1|K<<31)^(Z>>>8|K<<24)^Z>>>7,Q=(K>>>1|Z<<31)^(K>>>8|Z<<24)^(K>>>7|Z<<25),ee=u[G-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=u[G-7],ae=ie.high,se=ie.low,ce=u[G-16],ue=ce.high,le=ce.low;J=(J=(J=X+ae+((Y=Q+se)>>>0<Q>>>0?1:0))+re+((Y+=oe)>>>0<oe>>>0?1:0))+ue+((Y+=le)>>>0<le>>>0?1:0),W.high=J,W.low=Y}var de,pe=N&_^~N&F,fe=I&L^~I&U,he=j&O^j&E^O&E,me=$&A^$&R^A&R,ve=(j>>>28|$<<4)^(j<<30|$>>>2)^(j<<25|$>>>7),be=($>>>28|j<<4)^($<<30|j>>>2)^($<<25|j>>>7),ye=(N>>>14|I<<18)^(N>>>18|I<<14)^(N<<23|I>>>9),ge=(I>>>14|N<<18)^(I>>>18|N<<14)^(I<<23|N>>>9),xe=c[G],we=xe.high,De=xe.low,Ce=B+ye+((de=H+ge)>>>0<H>>>0?1:0),Me=be+me;B=F,H=U,F=_,U=L,_=N,L=I,N=q+(Ce=(Ce=(Ce=Ce+pe+((de+=fe)>>>0<fe>>>0?1:0))+we+((de+=De)>>>0<De>>>0?1:0))+J+((de+=Y)>>>0<Y>>>0?1:0))+((I=z+de|0)>>>0<z>>>0?1:0)|0,q=E,z=R,E=O,R=A,O=j,A=$,j=Ce+(ve+he+(Me>>>0<be>>>0?1:0))+(($=de+Me|0)>>>0<de>>>0?1:0)|0}h=r.low=h+$,r.high=f+j+(h>>>0<$>>>0?1:0),v=o.low=v+A,o.high=m+O+(v>>>0<A>>>0?1:0),y=i.low=y+R,i.high=b+E+(y>>>0<R>>>0?1:0),x=a.low=x+z,a.high=g+q+(x>>>0<z>>>0?1:0),D=s.low=D+I,s.high=w+N+(D>>>0<I>>>0?1:0),M=l.low=M+L,l.high=C+_+(M>>>0<L>>>0?1:0),S=d.low=S+U,d.high=k+F+(S>>>0<U>>>0?1:0),T=p.low=T+H,p.high=P+B+(T>>>0<H>>>0?1:0)},C:function(){var e=this.i,t=e.words,n=8*this.u,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this.p(),this.j.toX32()},clone:function(){var e=n.clone.call(this);return e.j=this.j.clone(),e},blockSize:32});t.SHA512=n.M(l),t.HmacSHA512=n.k(l)}(),e.SHA512)),ye.exports;var e}var xe,we={exports:{}};var De,Ce={exports:{}};function Me(){return De?Ce.exports:(De=1,Ce.exports=(e=H(),J(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64.Word,s=n.algo,c=[],u=[],l=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,d=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?d^=1<<f:s^=1<<f-32}128&o?o=o<<1^113:o<<=1}l[i]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var p=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),D:function(){for(var e=this.O=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},v:function(e,t){for(var n=this.O,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(T=n[o]).high^=a,T.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var f=0,h=0,m=0;m<5;m++)f^=(T=n[p+5*m]).high,h^=T.low;var v=d[p];v.high=f,v.low=h}for(p=0;p<5;p++){var b=d[(p+4)%5],y=d[(p+1)%5],g=y.high,x=y.low;for(f=b.high^(g<<1|x>>>31),h=b.low^(x<<1|g>>>31),m=0;m<5;m++)(T=n[p+5*m]).high^=f,T.low^=h}for(var w=1;w<25;w++){var D=(T=n[w]).high,C=T.low,M=c[w];M<32?(f=D<<M|C>>>32-M,h=C<<M|D>>>32-M):(f=C<<M-32|D>>>64-M,h=D<<M-32|C>>>64-M);var k=d[u[w]];k.high=f,k.low=h}var S=d[0],P=n[0];for(S.high=P.high,S.low=P.low,p=0;p<5;p++)for(m=0;m<5;m++){var T=n[w=p+5*m],j=d[w],$=d[(p+1)%5+5*m],O=d[(p+2)%5+5*m];T.high=j.high^~$.high&O.high,T.low=j.low^~$.low&O.low}T=n[0];var A=l[s];T.high^=A.high,T.low^=A.low}},C:function(){var e=this.i,n=e.words;this.u;var r=8*e.sigBytes,i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this.p();for(var a=this.O,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l<c;l++){var d=a[l],p=d.high,f=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),u.push(f),u.push(p)}return new o.init(u,s)},clone:function(){for(var e=i.clone.call(this),t=e.O=this.O.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i.M(p),n.HmacSHA3=i.k(p)}(Math),e.SHA3));var e}var ke,Se={exports:{}};var Pe,Te={exports:{}};function je(){return Pe?Te.exports:(Pe=1,Te.exports=(e=H(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this.A=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this.R=t.clone(),a=this.q=t.clone(),s=i.words,c=a.words,u=0;u<n;u++)s[u]^=1549556828,c[u]^=909522486;i.sigBytes=a.sigBytes=o,this.reset()},reset:function(){var e=this.A;e.reset(),e.update(this.q)},update:function(e){return this.A.update(e),this},finalize:function(e){var t=this.A,n=t.finalize(e);return t.reset(),t.finalize(this.R.clone().concat(n))}}))));var e,t,n,r}var $e,Oe={exports:{}};var Ae,Ee={exports:{}};function Re(){return Ae?Ee.exports:(Ae=1,Ee.exports=(s=H(),de(),je(),t=(e=s).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),a=r.create(),s=a.words,c=o.keySize,u=o.iterations;s.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var l=1;l<u;l++)n=i.finalize(n),i.reset();a.concat(n)}return a.sigBytes=4*c,a}}),e.EvpKDF=function(e,t,n){return a.create(n).compute(e,t)},s.EvpKDF));var e,t,n,r,o,i,a,s}var qe,ze={exports:{}};function Ne(){return qe?ze.exports:(qe=1,ze.exports=(e=H(),Re(),void(e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var c=s.Base64,u=n.algo.EvpKDF,l=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this.N,e,t)},createDecryptor:function(e,t){return this.create(this.I,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._=e,this.L=t,this.reset()},reset:function(){a.reset.call(this),this.D()},process:function(e){return this.l(e),this.p()},finalize:function(e){return e&&this.l(e),this.C()},keySize:4,ivSize:4,N:1,I:2,M:/* @__PURE__ */function(){function e(e){return"string"==typeof e?g:b}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});r.StreamCipher=l.extend({C:function(){return this.p(!0)},blockSize:1});var d=n.mode={},p=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this.F=e,this.U=t}}),f=d.CBC=function(){var e=p.extend();function n(e,n,r){var o,i=this.U;i?(o=i,this.U=t):o=this.B;for(var a=0;a<r;a++)e[n+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this.F,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this.B=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this.F,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this.B=i}}),e}(),h=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var c=i.create(a,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:f,padding:h}),reset:function(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._==this.N?e=r.createEncryptor:(e=r.createDecryptor,this.m=1),this.H&&this.H.G==e?this.H.init(this,n&&n.words):(this.H=e.call(r,this,n&&n.words),this.H.G=e)},v:function(e,t){this.H.processBlock(e,t)},C:function(){var e,t=this.cfg.padding;return this._==this.N?(t.pad(this.i,this.blockSize),e=this.p(!0)):(e=this.p(!0),t.unpad(e)),e},blockSize:4});var m=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},b=r.SerializableCipher=o.extend({cfg:o.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return m.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this.Y(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},Y:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)a=u.create({keySize:t+n,hasher:o}).compute(e,r);else var a=u.create({keySize:t+n}).compute(e,r);var s=i.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:r})}},g=r.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=b.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this.Y(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,b.decrypt.call(this,e,t,o.key,r)}})}())));var e}var Ie,_e={exports:{}};var Le,Fe={exports:{}};var Ue,Be={exports:{}};function He(){return Ue?Be.exports:(Ue=1,Be.exports=(e=H(),Ne(),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this.F,o=n.blockSize,i=this.U,a=this.J;i&&(a=this.J=i.slice(0),this.U=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c<o;c++)e[t+c]^=s[c]}});return t.Decryptor=o,t}(),e.mode.CTRGladman));var e}var Ge,Ye={exports:{}};var Je,We={exports:{}};var Ve,Ze={exports:{}};var Ke,Xe={exports:{}};var Qe,et={exports:{}};var tt,nt={exports:{}};var rt,ot={exports:{}};var it,at={exports:{}};var st,ct={exports:{}};var ut,lt={exports:{}};function dt(){return ut?lt.exports:(ut=1,lt.exports=(e=H(),ne(),ce(),Re(),Ne(),function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,i=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({D:function(){for(var e=this.L.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this.W=[],i=0;i<16;i++){var u=o[i]=[],l=c[i];for(n=0;n<24;n++)u[n/6|0]|=t[(s[n]-1+l)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(s[n+24]-1+l)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this.V=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this.Z(e,t,this.W)},decryptBlock:function(e,t){this.Z(e,t,this.V)},Z:function(e,t,n){this.K=e[t],this.X=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this.K,a=this.X,s=0,c=0;c<8;c++)s|=u[c][((a^o[c])&l[c])>>>0];this.K=a,this.X=i^s}var d=this.K;this.K=this.X,this.X=d,p.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this.K,e[t+1]=this.X},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this.K>>>e^this.X)&t;this.X^=n,this.K^=n<<e}function f(e,t){var n=(this.X>>>e^this.K)&t;this.K^=n,this.X^=n<<e}t.DES=o.M(d);var h=i.TripleDES=o.extend({D:function(){var e=this.L.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this.ee=d.createEncryptor(r.create(t)),this.te=d.createEncryptor(r.create(n)),this.ne=d.createEncryptor(r.create(o))},encryptBlock:function(e,t){this.ee.encryptBlock(e,t),this.te.decryptBlock(e,t),this.ne.encryptBlock(e,t)},decryptBlock:function(e,t){this.ne.decryptBlock(e,t),this.te.encryptBlock(e,t),this.ee.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o.M(h)}(),e.TripleDES));var e}var pt,ft={exports:{}};var ht,mt={exports:{}};var vt,bt={exports:{}};var yt,gt={exports:{}};function xt(){return yt?gt.exports:(yt=1,gt.exports=(e=H(),ne(),ce(),Re(),Ne(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][o],a+=e.sbox[3][i],a}function u(e,t,n){let r,i=t,a=n;for(let s=0;s<o;++s)i^=e.pbox[s],a=c(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:a}}function l(e,t,n){let r,i=t,a=n;for(let s=o+1;s>1;--s)i^=e.pbox[s],a=c(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[1],i^=e.pbox[0],{left:i,right:a}}function d(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=a[o][t]}let r=0;for(let a=0;a<o+2;a++)e.pbox[a]=i[a]^t[r],r++,r>=n&&(r=0);let s=0,c=0,l=0;for(let i=0;i<o+2;i+=2)l=u(e,s,c),s=l.left,c=l.right,e.pbox[i]=s,e.pbox[i+1]=c;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)l=u(e,s,c),s=l.left,c=l.right,e.sbox[o][t]=s,e.sbox[o][t+1]=c;return!0}var p=r.Blowfish=n.extend({D:function(){if(this.re!==this.L){var e=this.re=this.L,t=e.words,n=e.sigBytes/4;d(s,t,n)}},encryptBlock:function(e,t){var n=u(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=l(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n.M(p)}(),e.Blowfish));var e}var wt,Dt,Ct,Mt,kt,St,Pt;const Tt=/* @__PURE__ */I(wt?L.exports:(wt=1,L.exports=function(e){return e}(H(),J(),Z(),Q(),ne(),ie(),ce(),de(),he(),me||(me=1,ve.exports=(Pt=H(),he(),Ct=(Dt=Pt).lib.WordArray,Mt=Dt.algo,kt=Mt.SHA256,St=Mt.SHA224=kt.extend({D:function(){this.j=new Ct.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},C:function(){var e=kt.C.call(this);return e.sigBytes-=4,e}}),Dt.SHA224=kt.M(St),Dt.HmacSHA224=kt.k(St),Pt.SHA224)),ge(),function(){return xe?we.exports:(xe=1,we.exports=(s=H(),J(),ge(),t=(e=s).x64,n=t.Word,r=t.WordArray,o=e.algo,i=o.SHA512,a=o.SHA384=i.extend({D:function(){this.j=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},C:function(){var e=i.C.call(this);return e.sigBytes-=16,e}}),e.SHA384=i.M(a),e.HmacSHA384=i.k(a),s.SHA384));var e,t,n,r,o,i,a,s}(),Me(),function(){return ke?Se.exports:(ke=1,Se.exports=(e=H(),function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=i.RIPEMD160=o.extend({D:function(){this.j=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},v:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,p,g,x,w,D,C,M,k,S,P,T=this.j.words,j=l.words,$=d.words,O=a.words,A=s.words,E=c.words,R=u.words;for(D=i=T[0],C=p=T[1],M=g=T[2],k=x=T[3],S=w=T[4],n=0;n<80;n+=1)P=i+e[t+O[n]]|0,P+=n<16?f(p,g,x)+j[0]:n<32?h(p,g,x)+j[1]:n<48?m(p,g,x)+j[2]:n<64?v(p,g,x)+j[3]:b(p,g,x)+j[4],P=(P=y(P|=0,E[n]))+w|0,i=w,w=x,x=y(g,10),g=p,p=P,P=D+e[t+A[n]]|0,P+=n<16?b(C,M,k)+$[0]:n<32?v(C,M,k)+$[1]:n<48?m(C,M,k)+$[2]:n<64?h(C,M,k)+$[3]:f(C,M,k)+$[4],P=(P=y(P|=0,R[n]))+S|0,D=S,S=k,k=y(M,10),M=C,C=P;P=T[1]+g+k|0,T[1]=T[2]+x+S|0,T[2]=T[3]+w+D|0,T[3]=T[4]+i+C|0,T[4]=T[0]+p+M|0,T[0]=P},C:function(){var e=this.i,t=e.words,n=8*this.u,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this.p();for(var o=this.j,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e.j=this.j.clone(),e}});function f(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o.M(p),t.HmacRIPEMD160=o.k(p)}(),e.RIPEMD160));var e}(),je(),function(){return $e?Oe.exports:($e=1,Oe.exports=(c=H(),he(),je(),t=(e=c).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.SHA256,a=o.HMAC,s=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=a.create(n.hasher,e),i=r.create(),s=r.create([1]),c=i.words,u=s.words,l=n.keySize,d=n.iterations;c.length<l;){var p=o.update(t).finalize(s);o.reset();for(var f=p.words,h=f.length,m=p,v=1;v<d;v++){m=o.finalize(m),o.reset();for(var b=m.words,y=0;y<h;y++)f[y]^=b[y]}i.concat(p),u[0]++}return i.sigBytes=4*l,i}}),e.PBKDF2=function(e,t,n){return s.create(n).compute(e,t)},c.PBKDF2));var e,t,n,r,o,i,a,s,c}(),Re(),Ne(),function(){return Ie?_e.exports:(Ie=1,_e.exports=(e=H(),Ne(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,i=this.U;i?(o=i.slice(0),this.U=void 0):o=this.B,r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this.F,o=r.blockSize;n.call(this,e,t,o,r),this.B=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this.F,o=r.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,r),this.B=i}}),t}(),e.mode.CFB));var e}(),function(){return Le?Fe.exports:(Le=1,Fe.exports=(n=H(),Ne(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this.F,r=n.blockSize,o=this.U,i=this.J;o&&(i=this.J=o.slice(0),this.U=void 0);var a=i.slice(0);n.encryptBlock(a,0),i[r-1]=i[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}}),e.Decryptor=t,e),n.mode.CTR));var e,t,n}(),He(),function(){return Ge?Ye.exports:(Ge=1,Ye.exports=(n=H(),Ne(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this.F,r=n.blockSize,o=this.U,i=this.oe;o&&(i=this.oe=o.slice(0),this.U=void 0),n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}}),e.Decryptor=t,e),n.mode.OFB));var e,t,n}(),function(){return Je?We.exports:(Je=1,We.exports=(t=H(),Ne(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this.F.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this.F.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Ve?Ze.exports:(Ve=1,Ze.exports=(e=H(),Ne(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Ke?Xe.exports:(Ke=1,Xe.exports=(e=H(),Ne(),e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return Qe?et.exports:(Qe=1,et.exports=(e=H(),Ne(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return tt?nt.exports:(tt=1,nt.exports=(e=H(),Ne(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding));var e}(),function(){return rt?ot.exports:(rt=1,ot.exports=(e=H(),Ne(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return it?at.exports:(it=1,at.exports=(r=H(),Ne(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return st?ct.exports:(st=1,ct.exports=(e=H(),ne(),ce(),Re(),Ne(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],i=[],a=[],s=[],c=[],u=[],l=[],d=[],p=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,o[n]=h,i[h]=n;var m=e[n],v=e[m],b=e[v],y=257*e[h]^16843008*h;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,u[n]=y,y=16843009*b^65537*v^257*m^16843008*n,l[h]=y<<24|y>>>8,d[h]=y<<16|y>>>16,p[h]=y<<8|y>>>24,f[h]=y,n?(n=m^e[e[e[b^m]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({D:function(){if(!this.ie||this.re!==this.L){for(var e=this.re=this.L,t=e.words,n=e.sigBytes/4,r=4*((this.ie=n+6)+1),i=this.ae=[],a=0;a<r;a++)a<n?i[a]=t[a]:(u=i[a-1],a%n?n>6&&a%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=o[(u=u<<8|u>>>24)>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=h[a/n|0]<<24),i[a]=i[a-n]^u);for(var s=this.se=[],c=0;c<r;c++){if(a=r-c,c%4)var u=i[a];else u=i[a-4];s[c]=c<4||a<=4?u:l[o[u>>>24]]^d[o[u>>>16&255]]^p[o[u>>>8&255]]^f[o[255&u]]}}},encryptBlock:function(e,t){this.Z(e,t,this.ae,a,s,c,u,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this.Z(e,t,this.se,l,d,p,f,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},Z:function(e,t,n,r,o,i,a,s){for(var c=this.ie,u=e[t]^n[0],l=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],f=4,h=1;h<c;h++){var m=r[u>>>24]^o[l>>>16&255]^i[d>>>8&255]^a[255&p]^n[f++],v=r[l>>>24]^o[d>>>16&255]^i[p>>>8&255]^a[255&u]^n[f++],b=r[d>>>24]^o[p>>>16&255]^i[u>>>8&255]^a[255&l]^n[f++],y=r[p>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&d]^n[f++];u=m,l=v,d=b,p=y}m=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^n[f++],v=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^n[f++],b=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^n[f++],y=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^n[f++],e[t]=m,e[t+1]=v,e[t+2]=b,e[t+3]=y},keySize:8});t.AES=n.M(m)}(),e.AES));var e}(),dt(),function(){return pt?ft.exports:(pt=1,ft.exports=(e=H(),ne(),ce(),Re(),Ne(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({D:function(){for(var e=this.L,t=e.words,n=e.sigBytes,r=this.ce=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var a=o%n,s=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var c=r[o];r[o]=r[i],r[i]=c}this.ue=this.le=0},v:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this.ce,t=this.ue,n=this.le,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this.ue=t,this.le=n,r}t.RC4=n.M(o);var a=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),D:function(){o.D.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n.M(a)}(),e.RC4));var e}(),function(){return ht?mt.exports:(ht=1,mt.exports=(e=H(),ne(),ce(),Re(),Ne(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],s=r.Rabbit=n.extend({D:function(){for(var e=this.L.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this.de=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this.pe=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this.fe=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,a=i[0],s=i[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,p=l<<16|65535&u;for(o[0]^=u,o[1]^=d,o[2]^=l,o[3]^=p,o[4]^=u,o[5]^=d,o[6]^=l,o[7]^=p,n=0;n<4;n++)c.call(this)}},v:function(e,t){var n=this.de;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this.de,t=this.pe,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this.fe|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this.fe=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n.M(s)}(),e.Rabbit));var e}(),function(){return vt?bt.exports:(vt=1,bt.exports=(e=H(),ne(),ce(),Re(),Ne(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],s=r.RabbitLegacy=n.extend({D:function(){var e=this.L.words,t=this.cfg.iv,n=this.de=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this.pe=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this.fe=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,p=l<<16|65535&u;for(r[0]^=u,r[1]^=d,r[2]^=l,r[3]^=p,r[4]^=u,r[5]^=d,r[6]^=l,r[7]^=p,o=0;o<4;o++)c.call(this)}},v:function(e,t){var n=this.de;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this.de,t=this.pe,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this.fe|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this.fe=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n.M(s)}(),e.RabbitLegacy));var e}(),xt()))),jt={uuid:{byVal:e=>{if(!e)return"";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,n="SHA-256")=>{const r=(new TextEncoder).encode(t.toLowerCase()+e.toLowerCase()),o=await crypto.subtle.digest(n,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,"0")).join("")},crypt:(e,t,n="AES")=>Tt[n].encrypt(e,t).toString(),deCrypt:(e,t,n="AES")=>Tt[n].decrypt(e,t).toString(Tt.enc.Utf8),AES_KeyGen:(e="test")=>{const t=Tt.lib.WordArray.random(16);return Tt.PBKDF2(e,t,{keySize:16,iterations:1e3}).toString()},SHA256_Hex:e=>Tt.SHA256(e).toString(Tt.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 n=new Uint8Array(16),r=new DataView(n.buffer,0,6),o=new Uint8Array(n.buffer,6,10),i=new Array(26),a=Date.now();if(a===t)for(let s=9;s>=0&&!(o[s]++<255);s--);else t=a,r.setUint16(0,a/4294967296|0),r.setUint32(2,0|a),window.crypto.getRandomValues(o);return(t=>{i[0]=e[t[0]>>5],i[1]=e[31&t[0]];for(let n=0;n<3;n++)i[8*n+2]=e[t[5*n+1]>>3],i[8*n+3]=e[31&(t[5*n+1]<<2|t[5*n+2]>>6)],i[8*n+4]=e[t[5*n+2]>>1&31],i[8*n+5]=e[31&(t[5*n+2]<<4|t[5*n+3]>>4)],i[8*n+6]=e[31&(t[5*n+3]<<1|t[5*n+4]>>7)],i[8*n+7]=e[t[5*n+4]>>2&31],i[8*n+8]=e[31&(t[5*n+4]<<3|t[5*n+5]>>5)],i[8*n+9]=e[31&t[5*n+5]];return i.join("")})(n)}};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:[]}]},jt);const $t={keys:(e,t)=>{const n=e.which?e.which:e.keyCode;e={tes:void 0},t||(t={data:[{key:"83",ctrl:!0,active:!0,description:"CTRL+S",function:""},{key:"27",ctrl:!1,active:!0,description:"ESC",element:"",function:""},{key:"80",ctrl:!0,active:!0,description:"CTRL+P",element:"",function:"function(){ Print }"}]}),t.map(t=>{if((e.ctrlKey||e.metaKey&&!0===t.ctrl)&&n===parseInt(t.key)&&!0===t.active)return t.element&&t.element.click(),t.function?JSON.stringify(t.function):void e.preventDefault()})}};dphelper.setDescription({name:"shortcut",active:!0,subCommand:[{name:"keys",version:"0.0.1",example:"dphelper.shortcut.keys([e, trigger])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Handle keyboard shortcuts.",subCommand:[]}]},$t);const Ot={info:()=>"Created by Dario Passariello",start:(e,t,n="general")=>{state.ws={},state.ws[n],dphelper.socket.connect(t,n),dphelper.socket.receive(e,n)},conn:(e,t,n)=>{if(e&&t)try{const r=new WebSocket(t);return r.binaryType="blob",r.onmessage=e=>{"reload"===e.data&&(setTimeout(()=>location.reload(),300),setTimeout(()=>{r.close(),location.reload()},300))},[r,e,n]}catch(r){}},connect:(e,t)=>{e&&dphelper.socket.open(dphelper.security.uuid.v5,e,t)},open:(e,t,n)=>{if(e)try{const r=dphelper.socket.conn(e,t,n);state.ws[n]=r,r[0].onopen=()=>dphelper.log.reg(e+" connected"),r[0].onclose=e=>dphelper.log.debug(e.wasClean?"Disconnected":"Connection break: "+(e.reason||e.code)),r[0].onerror=e=>dphelper.log?.error(e)}catch(r){}},send:(e,t="reg",n)=>{if(state.ws[n]?.[1]&&e)try{const r=state.ws[n],o=r[0],i=r[1],a=t?`{"${t}":"(${i}:${e})"}`:e;o.send(a)}catch(r){}},ping:e=>{if(state.ws[e]?.[1])try{const t=state.ws[e];t?.[0]?.send('{"debug":"__ping__"}')}catch(t){}},receive:(e=null,t)=>{if(state.ws[t]?.[1])try{const n=state.ws[t];n[0].addEventListener("message",t=>{if(t.source===window&&t.origin===String(location.origin)){try{e&&$(e).prepend(dphelper.sanitize.html(String(Object.values(JSON.parse(t.data))[0])))}catch(n){}dphelper.log.reg(t.data)}})}catch(n){}},keepAlive:e=>{try{let t;const n=state.ws[e][0],r=(n=5e3)=>{t=setTimeout(()=>{dphelper.socket.ping(e)},n)},o=()=>{clearTimeout(t)};n.onopen=function(){setInterval(r,3e4)},n.onmessage=function(e){try{return void("__ping__"===Object.values(JSON.parse(e.data))[0]&&o())}catch(t){}}}catch(t){}},check:()=>{try{const e=WebSocket.prototype.send;dphelper.t.sockets=[],WebSocket.prototype.send=function(...t){return-1===dphelper.t.sockets.indexOf(this)&&dphelper.t.sockets.push(this),e.call(this,...t)}}catch(e){}},list:()=>dphelper.t.sockets};dphelper.setDescription({name:"socket",active:!0,subCommand:[{name:"info",version:"0.0.1",example:"dphelper.socket.info(...)",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Retrieve socket information",subCommand:[]},{name:"start",version:"0.0.1",example:"dphelper.socket.start(...)",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Start a socket connection",subCommand:[]},{name:"conn",version:"0.0.1",example:"dphelper.socket.conn(...)",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Manage socket connections",subCommand:[]},{name:"connect",version:"0.0.1",example:"dphelper.socket.connect(...)",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Connect to a socket",subCommand:[]},{name:"open",version:"0.0.1",example:"dphelper.socket.open(...)",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Open a socket connection",subCommand:[]},{name:"send",version:"0.0.1",example:"dphelper.socket.send(...)",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Send data through a socket",subCommand:[]},{name:"receive",version:"0.0.1",example:"dphelper.socket.receive(...)",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Receive data from a socket",subCommand:[]},{name:"keepAlive",version:"0.0.1",example:"dphelper.socket.keepAlive(...)",author:"Dario Passariello",creationDate:"2021-01-01",lastMod:"2021-01-01",type:"function",active:!0,description:"Keep the socket connection alive",subCommand:[]},{name:"check",version:"0.0.1",example:"dphelper.socket.check()",author:"Dario Passariello",creationDate:"2023-05-27",lastMod:"2023-05-27",type:"function",active:!0,description:"Check how many websocket connections are open",subCommand:[]},{name:"list",version:"0.0.1",example:"dphelper.socket.list()",author:"Dario Passariello",creationDate:"2023-05-27",lastMod:"2023-05-27",type:"function",active:!0,description:"List all websocket connections in real-time",subCommand:[]}]},Ot),dphelper.socket.check();const At={init:function(e,t,n,r){$(e).find("svg")&&dphelper.svg_removeConnection(e),t=[dphelper.svg.setConnector(t[0],t[1]),t[1]],n=[dphelper.svg.setConnector(n[0],n[1]),n[1]];const o=e.getBoundingClientRect(),i="http://www.w3.org/2000/svg",a=10*e.offsetWidth,s=10*e.offsetHeight,c=document.createElementNS(i,"svg");c.setAttribute("xmlns",i),c.setAttributeNS(null,"id","pathConnection"),c.setAttributeNS(null,"viewBox","0 0 "+a+" "+s),c.setAttributeNS(null,"width",String(a)),c.setAttributeNS(null,"height",String(s)),c.style.display="block";const u=document.createElementNS(i,"rect");let l=t[0].getBoundingClientRect();u.setAttributeNS(null,"x",String(l.left-o.left)),u.setAttributeNS(null,"y",String(l.top-o.top)),u.setAttributeNS(null,"width",String(l.width)),u.setAttributeNS(null,"height",String(l.height)),c.appendChild(u);const d=document.createElementNS(i,"rect");l=n[0].getBoundingClientRect(),d.setAttributeNS(null,"x",String(l.left-o.left)),d.setAttributeNS(null,"y",String(l.top-o.top)),d.setAttributeNS(null,"width",String(l.width)),d.setAttributeNS(null,"height",String(l.height)),c.appendChild(d);const p=document.createElementNS(i,"path");p.setAttributeNS(null,"id","connection"),p.setAttributeNS(null,"marker-end","url(#head)"),c.appendChild(p),e.appendChild(c),dphelper.svg.update($(u)[0],$(d)[0],$("#connection")[0]),"function"==typeof r&&r(t,n)},check:()=>{try{if(void 0===dphelper.svg.check.supported){const e=document.body.appendChild(document.createElement("div"));e.innerHTML='<v:shape id="vml_flag1" adj="1" />';const t=e.firstChild;t.style.behavior="url(#default#VML)",dphelper.svg.check.supported=!t||"object"==typeof t.adj,e.parentNode.removeChild(e)}return dphelper.svg.check.supported}catch(e){}},update:function(e,t,n){const r=parseFloat(e[0].getAttribute("x")),o=parseFloat(e[0].getAttribute("y")),i=parseFloat(t[0].getAttribute("x")),a=parseFloat(t[0].getAttribute("y")),s=parseFloat(e[0].getAttribute("width"))/2,c=parseFloat(e[0].getAttribute("height"))/2,u=parseFloat(t[0].getAttribute("width"))/2,l=parseFloat(t[0].getAttribute("height"))/2,d=r+s,p=o+c,f=i+u,h=a+l,m=f-d,v=h-p,b=dphelper.svg.getIntersection(m,v,d,p,s,c),y=dphelper.svg.getIntersection(-m,-v,f,h,u,l),g=y[0]-b[0],x=dphelper.svg.getCurve(b,y,g);n.setAttributeNS(null,"d","M"+d+","+p+x+f+","+h)},getCurve:function(e,t,n){const r=n/2;return" C"+(r+e[0])+","+e[1]+" "+(t[0]-r)+","+t[1]+" "},getIntersection:function(e,t,n,r,o,i){return Math.abs(t/e)<i/o?[n+(e>0?o:-o),r+t*o/Math.abs(e)]:[n+e*i/Math.abs(t),r+(t>0?i:-i)]},setConnector:function(e,t){let n;const r=$('<span class="connector"></span>');switch($(e).css("position","relative"),r.css({position:"absolute",width:"5px",height:"5px"}),t){case"top":n={left:"50%",top:"2.5px",marginLeft:"2.5px"};break;case"right":n={top:"50%",right:"2.5px",marginTop:"-2.5px"};break;case"bottom":n={left:"50%",bottom:"-2.5px",marginLeft:"2.5px"};break;case"left":n={top:"50%",left:"-2.5px",marginTop:"-2.5px"};break;default:n={}}return r.css(n),$(e).append(r),$(r)[0]},removeConnection:function(e){$(e).find("svg#pathConnection").each(function(e,t){$(t).remove()})},makeScrollable:function(e,t,n,r,o,i){const a=e.getBoundingClientRect(),s=[n,r],c=s.length,u=[o,i],l=[];for(let d=0;d<c;d++)l[d]=s[d].getBoundingClientRect(),u[d].setAttributeNS(null,"x",String(l[d].left-a.left)),u[d].setAttributeNS(null,"y",String(l[d].top-a.top)),u[d].setAttributeNS(null,"width",l[d].width),u[d].setAttributeNS(null,"height",l[d].height);dphelper.svg.update($(o)[0],$(i)[0],$("#connection")[0])},makeDraggable:function(e){const t=e.target;function n(e){const n=t[0].getScreenCTM();return{x:(e.clientX-n.e)/n.a,y:(e.clientY-n.f)/n.d}}t[0].addEventListener("mousedown",function(e){e.target.classList.contains("draggable")&&(r=e.target,o=n(e),o.x-=parseFloat(r[0].getAttributeNS(null,"x")||"0"),o.y-=parseFloat(r[0].getAttributeNS(null,"y")||"0"))}),t[0].addEventListener("mousemove",function(e){if(r&&o){const t=n(e);r.setAttributeNS(null,"x",String(t.x-o.x)),r.setAttributeNS(null,"y",String(t.y-o.y)),dphelper.svg.update(r,r,$("#connection")[0])}}),t[0].addEventListener("mouseup",function(){r=null,o=null});let r=null,o=null},toggle:function(e,t,n,r){$(e.target).prop("checked")&&$(n).length&&$(r).length?(dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:1,time:365}),dphelper.svg.init(t,[$(n)[0],"right"],[$(r)[0],"left"],function(e,n){$("#parts-left-body").on("scroll",function(){dphelper.svg.makeScrollable($(t)[0],$("#parts-left-body")[0],$(e)[0],$(n)[0],$("#parts svg rect")[0],$("#parts svg rect")[1])})})):(dphelper.svg.removeConnection(t),$("#parts-left-body").off("scroll"),dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:0,time:365}))},convert:({children:e,active:t=!0,size:n=[1920,1080],fit:r=["100%","100%"],preserveAspectRatio:o="none",style:i=`width:${r[0]}; height:${r[1]}`,zoom:a=1})=>{if(!e)return"Please pass ID of element for SVG conversion";if(t){const t=$(e).clone(),s=`\n <svg\n viewBox="0 0 ${n[0]} ${n[1]}"\n preserveAspectRatio="${o}"\n xmlns="http://www.w3.org/2000/svg"\n style="${i}; zoom:${a}"\n >\n <foreignObject\n x="0"\n y="0"\n width="${r[0]}"\n height="${r[1]}"\n style="${i}; zoom:${a}"\n >\n </foreignObject>\n </svg >\n `;$(e).html(s).find("foreignObject").html(t)}}};dphelper.setDescription({name:"svg",active:!0,subCommand:[{name:"init",version:"0.0.1",example:"dphelper.svg.init(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Initializes an SVG connection between two elements.",subCommand:[]},{name:"check",version:"0.0.1",example:"dphelper.svg.check(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Checks if SVG support is available.",subCommand:[]},{name:"update",version:"0.0.1",example:"dphelper.svg.update(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Updates the SVG connection between two elements.",subCommand:[]},{name:"getCurve",version:"0.0.1",example:"dphelper.svg.getCurve(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Calculates the curve of the connection between two points.",subCommand:[]},{name:"getIntersection",version:"0.0.1",example:"dphelper.svg.getIntersection(...) ",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Calculates the intersection point between two elements.",subCommand:[]},{name:"setConnector",version:"0.0.1",example:"dphelper.svg.setConnector(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Sets a connector on an element.",subCommand:[]},{name:"removeConnection",version:"0.0.1",example:"dphelper.svg.removeConnection(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Removes an SVG connection from a container.",subCommand:[]},{name:"makeScrollable",version:"0.0.1",example:"dphelper.svg.makeScrollable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Makes an SVG container scrollable.",subCommand:[]},{name:"makeDraggable",version:"0.0.1",example:"dphelper.svg.makeDraggable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Makes an SVG element draggable.",subCommand:[]},{name:"toggle",version:"0.0.1",example:"dphelper.svg.toggle(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Toggles an SVG connection on or off.",subCommand:[]},{name:"convert",version:"0.0.1",example:"dphelper.svg.convert([Object])",author:"Dario Passariello",creationDate:"20190101",lastMod:"20240401",type:"function",active:!0,description:"Converts an element to SVG.",subCommand:[]}]},At),dphelper.svg.check();const Et={multiSplit:()=>{const e=String.prototype.split;String.prototype.split=function(){if(arguments[0].length>0&&"[object Array]"==Object.prototype.toString.call(arguments[0]))return function(e,t){for(var n=t[0],r=1;r<t.length;++r)e=e.split(t[r]).join(n);return e.split(n)}(this,arguments[0]);const t=arguments;return e.apply(this,t)}}};dphelper.setDescription({name:"system",active:!0,subCommand:[{name:"multiSplit",version:"0.0.1",example:"dphelper.system.multiSplit()",author:"Dario Passariello",creationDate:"20231121",lastMod:"20231121",type:"system",active:!0,description:"Run only one time when you load your App ... extend the .split with array as argument (example.split([',', ':', ';', '?', '/'])[0])",subCommand:[]}]},Et);const Rt={name:"text",active:!0,subCommand:[{name:"trim",version:"0.0.1",example:"dphelper.text.trim(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Trims the specified characters from the start and end of a string.",subCommand:[]},{name:"capitalize",version:"0.0.1",example:"dphelper.text.capitalize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Capitalizes the first letter of each word in a string.",subCommand:[]},{name:"lower",version:"0.0.1",example:"dphelper.text.lower(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts a string to lowercase.",subCommand:[]},{name:"upper",version:"0.0.1",example:"dphelper.text.upper(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts a string to uppercase.",subCommand:[]},{name:"nl2br",version:"0.0.1",example:"dphelper.text.nl2br(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts newlines in a string to HTML <br> tags.",subCommand:[]},{name:"sanitize",version:"0.0.1",example:"dphelper.text.sanitize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Sanitizes a string by removing HTML tags.",subCommand:[]},{name:"camelCase",version:"0.0.1",example:"dphelper.text.camelCase(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts a string to camelCase.",subCommand:[{name:"toSpace",version:"0.0.1",example:"dphelper.text.camelCase.toSpace(...)",type:"function",active:!0,description:"Converts camelCase to space-separated words.",subCommand:[],author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101"},{name:"toUnderscore",version:"0.0.1",example:"dphelper.text.camelCase.toUnderscore(...)",type:"function",active:!0,description:"Converts camelCase to underscore-separated words.",subCommand:[],author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101"}]},{name:"fitContainer",version:"0.0.1",example:"dphelper.text.fitContainer([element])",type:"function",active:!0,description:"Adjusts the font size of an element to fit its container.",subCommand:[],author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101"},{name:"keywords",version:"0.0.1",example:"dphelper.text.keywords([sentence])",type:"function",active:!0,description:"Extrapolate keywords from a sentence",subCommand:[],author:"Dario Passariello",creationDate:"20250601",lastMod:"20250601"},{name:"replaceText",version:"0.0.1",example:"dphelper.text.replaceText([sentence, object])",type:"function",active:!0,description:'\n replace all occurrence from sentence using an object as list\n\n example:\n\n let text = replaceText(\n "Copyright 2022 (c) by dpHelper",\n {\n "(c)": \'&copy;\',\n "(r)": \'&reg;\'\n }\n )\n\n Copyright text (c) became an html symbol\n ',subCommand:[],author:"Dario Passariello",creationDate:"20250612",lastMod:"20250612"}]},qt={trim:(e,t,n,r)=>e.charAt(0)===t?e.substring(n,r):e,capitalize:e=>e.toLowerCase().replace(/\b\w/g,function(e){return e.toUpperCase()}),lower:e=>e.toLowerCase(),upper:e=>e.toUpperCase(),nl2br:e=>e.replace(/(?:\r\n|\r|\n)/g,"<br>"),sanitize:e=>e.replace(/<(|\/|[^>\bi]|\/[^>bi]|[^/>][^>]+|\/[^>][^>]+)>/g,""),camelCase:{toSpace:e=>e.replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()}),toUnderscore:e=>e.replace(/\.?([A-Z])/g,function(e,t){return"_"+t.toLowerCase()}).replace(/^_/,"")},fitContainer:e=>{e&&dphelper.addListenerMulti(window,"load resize",()=>function(e){const t=document.querySelectorAll(e),n=t.length;if(!(n<=0))for(let r=0;r<n;r++){const e=.05*t[r].offsetWidth;t[r].style.fontSize=e+"px"}}(e))},keywords:e=>{const t=e.match(/\b[A-Z][a-z]+\b/g)?.filter(e=>e.length>3)||[];return[...new Set(t.map(e=>e.toLowerCase()))]},replaceText:(e,t)=>{let n=e;for(const r in t)if(t.hasOwnProperty(r)){const e=/ *\([^)]*\) */g,o=r.match(e);n=n.replaceAll(o,t[r])}return n}};dphelper.setDescription(Rt,qt);const zt={sleep:e=>new Promise(t=>setTimeout(t,e)),percentage:(e,t)=>{function n(e){const t=e.split(":");return 3600*parseInt(t[0])+60*parseInt(t[1])+parseInt(t[2])}return(100*n(e)/n(t)).toFixed(2)}};dphelper.setDescription({name:"timer",active:!0,subCommand:[{name:"sleep",version:"0.0.1",example:"dphelper.timer.sleep([ms]) ",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Pauses execution for a specified number of milliseconds.",subCommand:[]},{name:"percentage",version:"0.0.1",example:"dphelper.timer.percentage([start], [end])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Calculates the percentage of time elapsed between two time strings.",subCommand:[]}]},zt);const Nt={getip:()=>{},byteSize:e=>{const t=1024;if(Math.abs(e)<t)return e+"b";const n=["Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"];let r=-1;do{e/=t,++r}while(Math.abs(e)>=t&&r<n.length-1);return e.toFixed(1)+n[r]},zIndex:()=>Array.from(document.querySelectorAll("body *")).map(e=>parseFloat(getComputedStyle(e).zIndex)).reduce((e,t)=>t>e?t:e,1),zeroToFalse:e=>0!==e&&e};dphelper.setDescription({name:"tools",active:!0,subCommand:[{name:"getip",description:"Get the IP of connection",example:"dphelper.dev.getip()",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20241020",type:"function",active:!0,subCommand:[]},{name:"byteSize",description:"Give you the total in 'Kb', 'Mb', 'Gb', 'Tb', 'Pb', 'Eb', 'Zb', 'Yb' starting from bytes",example:"dphelper.dev.byteSize(bytes)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"hashPass",description:"Hashes a password using a specified number and total.",example:"dphelper.dev.hashPass(number, total)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]},{name:"zIndex",description:"Finds the highest z-index value in the document.",example:"dphelper.dev.zIndex()",version:"0.0.1",author:"Dario Passariello",creationDate:"20240807",lastMod:"20240807",type:"function",active:!0,subCommand:[]},{name:"zeroToFalse",description:"Converts zero to false, otherwise returns the value.",example:"dphelper.dev.zeroToFalse(num)",version:"0.0.1",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,subCommand:[]}]},Nt);const It={convertMatrixToScale:e=>{e=(e=(e=e.split("(")[1]).split(")")[0]).split(",");const t=parseFloat(e[0]),n=parseFloat(e[1]);return Math.sqrt(t*t+n*n)}};dphelper.setDescription({name:"translators",active:!0,subCommand:[{name:"convertMatrixToScale",version:"0.0.1",example:"dphelper.translators.convertMatrixToScale({value})",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Converts a transformation matrix to a scale value.",subCommand:[]}]},It);const _t={click:e=>{const t=document.querySelector(e);t&&t.click()},change:e=>{const t=document.querySelector(e),n=new Event("__"+e,{bubbles:!0});dphelper.dispatch.set("__"+e,n),t.dispatchEvent(n)},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:[]}]},_t);const Lt={of:e=>typeof e,instOfObj:e=>e instanceof Object,isNull:e=>function(t){return!e(t)},isBool:e=>!e||null==e.length||"1"===e};dphelper.setDescription({name:"type",active:!0,subCommand:[{name:"of",version:"0.0.1",example:"dphelper.type.of(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Returns the type of the given parameter.",subCommand:[]},{name:"instOfObj",version:"0.0.1",example:"dphelper.type.instOfObj(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Checks if the given parameter is an instance of Object.",subCommand:[]},{name:"isNaN",version:"0.0.1",example:"dphelper.type.isNaN(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Checks if the given parameter is NaN.",subCommand:[]},{name:"isBool",version:"0.0.1",example:"dphelper.type.isBool(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Checks if the given parameter is a boolean.",subCommand:[]}]},Lt);const Ft={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:n,w:r,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),c=innerHeight||(document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height),u=s/screen.availWidth,l=open(e,t,`\n scrollbars=yes,\n width=${r/u},\n height=${o/u},\n top=${(c-o)/2/u+a},\n left=${(s-r)/2/u+i}\n `);onfocus=()=>l?.focus()},onBeforeUnLoad:e=>{let t=!1;const n=e=>(e.preventDefault(),"You have made some changes which you might want to save."),r=document.querySelector(e.target);r&&r.addEventListener("input",t=>{""!==e.target.value?addEventListener("beforeunload",n,{capture:!0}):removeEventListener("beforeunload",n,{capture:!0})}),!1===t&&(document.body.addEventListener("click",t=>{e.target.tagName}),t=!0),addEventListener("popstate",e=>{}),onbeforeunload=e=>{}},purge:(e=document,t=1e4)=>{setTimeout(()=>{if(!e)return null;let t={};if(t){const n=t.length;for(let r=0;r<n;r+=1){const n=t[r].name;"function"==typeof e[n]&&(e[n]=null),void 0===e[n]&&(e[n]=null)}}if(t=e.childNodes,t){const n=t.length;for(let t=0;t<n;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:[]}]},Ft),idb.delete=e=>{},idb.insert=(e,t,n)=>{if(!idb.exist(e))return;const r=indexedDB.open(e,idb.version(e));r.onerror=e=>{},r.onsuccess=e=>{try{const r=e.target.result;r.transaction([t],"readwrite").objectStore(t).add({value:n}),r.close(),idb.refresh()}catch(r){}}},idb.select=(e,t,n)=>{new Promise((r,o)=>{indexedDB.open(e,idb.version(e)).onsuccess=e=>{const o=e.target.result;if(0===o.objectStoreNames.length)return;o.transaction([t],"readwrite").objectStore(t).get(n).onsuccess=e=>{const t=e.target.result;r(t)}}})},idb.update=(e,t,n,r)=>{if(!idb.exist(e))return;const o=indexedDB.open(e,idb.version(e));o.onerror=e=>{},o.onsuccess=e=>{const o=e.target.result.transaction([t],"readwrite").objectStore(t);o.get(+n).onsuccess=e=>{const t=e.target.result;t.value=r;const n=o.put(t);n.onsuccess=e=>{idb.refresh()},n.onerror=e=>{}}}},idb.getTableSize=(e,t)=>new Promise((n,r)=>{if(null==e)return r();const o=event;let i=0;const a=(e=o.target.result).transaction([t]).objectStore(t).openCursor();a.onsuccess=function(e){const t=e.target.result;if(t){const e=t.value,n=JSON.stringify(e);i+=n.length,t.continue()}else n(i)}.bind(void 0),a.onerror=e=>r("error in "+t+": "+e)}),idb.support=()=>{if("indexedDB"in window)return!0},idb.addTable=(e,t,n)=>{try{indexedDB.open(e,Number(idb.version(e))+1).onupgradeneeded=e=>{try{const r=e.target.result.createObjectStore(t,n);r.createIndex("hours","hours",{unique:!1}),r.createIndex("minutes","minutes",{unique:!1}),r.createIndex("day","day",{unique:!1}),r.createIndex("month","month",{unique:!1}),r.createIndex("year","year",{unique:!1}),r.createIndex("notified","notified",{unique:!1})}catch(r){return}}}catch(r){return}},idb.create=(e,t=1)=>{idb.support();const n=indexedDB.open(e,t);n.onerror=e=>{},n.onsuccess=e=>{},n.onupgradeneeded=e=>{},setTimeout(()=>{idbases=[],idb.databases()},1e3)},idb.databases=()=>(indexedDB.databases().then(e=>e).then(e=>{e&&(idbases=e)}).catch(e=>{}),idb.size(),idbases),idb.exist=e=>void 0!==idbases?.find(t=>t.name===e),idb.quota=()=>navigator.storage.estimate(),idb.remove=e=>{idb.exist(e)?window.layerpro?confirm(`Are you sure to remove "${e}" database?`,()=>{setTimeout(()=>{indexedDB.deleteDatabase(e),idbases=[],idb.databases()},1e3)},()=>alert("Operation cancelled.")):confirm(`Are you sure to remove "${e}" database?`)?setTimeout(()=>{indexedDB.deleteDatabase(e),idbases=[],idb.databases()},1e3):alert("Operation cancelled."):alert(`Database "${e}" not exist`)},idb.size=()=>{idbases?.map(e=>{if(!idb.exist(e))return;const t=dphelper.array.findindex(idbases,e.name),n=indexedDB?.open(e.name,idb.version(e.name));n.onerror=e=>{},n.onsuccess=e=>{const n=e.target.result;((e,n)=>{const r=e.reduce((e,t)=>(e.push(idb.getTableSize(n,t)),e),[]);r.map(e=>{const t=e.reduce((e,t)=>e+t,0);parseInt(dphelper.dev.byteSize(t))}),idbases[t].size=r.length>0?r:0})([...n.objectStoreNames],n)}})},idb.version=e=>{let t=0;return idbases.forEach(n=>{n.name===e&&(t=n.version)}),t};var Ut;Ut||(Ut=1,(()=>{Object.defineProperty(globalThis,"memorio",{value:{},writable:!1,configurable:!0,enumerable:!1}),Object.defineProperty(globalThis,"events",{value:{},writable:!0,enumerable:!1}),Object.defineProperty(memorio,"version",{writable:!1,enumerable:!1,value:"1.2.6"});var e=["list","state","store","observer","useObserver","remove","removeAll"];Object.defineProperty(memorio,"dispatch",{writable:!1,enumerable:!1,value:{set:(e,t={})=>{dispatchEvent(new CustomEvent(String(e),t))},listen:(e,t=null,n=!1)=>{observer.list?.[e]?.length>0&&observer.remove(e);let r=e=>t?setTimeout(()=>t(e),1):null;globalThis.addEventListener(e,r),globalThis.events[e]=r},remove:e=>{globalThis.removeEventListener(e,globalThis.events[e]),delete globalThis.events[e]}}}),Object.defineProperty(memorio,"objPath",{writable:!1,enumerable:!1,value:(e,t,n=".")=>t.concat(e).join(n)});var t=(n,r,o=[])=>new Proxy(n,{get(e,n){if("list"===n)return JSON.parse(JSON.stringify(state));if("remove"===n)return function(t){return delete e[t],!0};if("removeAll"===n)return function(){try{for(let t in e)"function"!=typeof e[t]&&!["list","remove","removeAll"].includes(t)&&(Object.isFrozen(e[t])||delete e[t],delete e[t])}catch(t){}};if(Object.isFrozen(e[n]))return e[n];try{let i=Reflect.get(e,n);return i&&"object"==typeof i&&["Array","Object"].includes(i.constructor.name)?t(i,r,o.concat(n)):i}catch(i){return}},set(t,n,i){if(e.includes(n))return!1;if(t[n]&&"object"==typeof t[n]&&Object.isFrozen(t[n]))return!1;try{let e=globalThis.memorio.objPath(n,o);return r({action:"set",path:e,target:t,newValue:i,previousValue:Reflect.get(t,n)}),(e=>{let t=e.split(".");t.forEach((e,n)=>{let r=t.slice(0,n+1).join(".");globalThis.memorio.dispatch.set(r,{detail:{name:r}})})})("state."+e),Reflect.set(t,n,i),t[n]&&"object"==typeof t[n]&&Reflect.defineProperty(t[n],"lock",{value(){Object.defineProperty(t,n,{writable:!1,enumerable:!1}),Object.freeze(t[n])}}),!0}catch(a){return}},deleteProperty(e,t){try{let n=globalThis.memorio.objPath(t,o);return r({action:"delete",path:n,target:e}),Reflect.deleteProperty(e,t)}catch(n){return}}});globalThis?.state?globalThis.state=state:globalThis.state=t({},()=>{});var n=/* @__PURE__ */new WeakSet;n.add(state),setInterval(()=>{if(!n.has(state)){alert("Memorio state is compromised, check if you override it and please reload the page");for(let e=1;e<99999;e++)clearInterval(e);stop()}},1e3),Object.defineProperty(globalThis,"state",{enumerable:!1,configurable:!0}),globalThis.observer||(globalThis.observer=null),Object.defineProperty(globalThis,"observer",{enumerable:!1,configurable:!0}),observer=(e,t=null,n=!0)=>{try{if("state"!==e.split(".")[0])return}catch(r){return}if((e||t)&&(e||!t))if(!e||t){if(e&&t){if("string"!=typeof e||"function"!=typeof t)return;globalThis.memorio.dispatch.listen(e,t,n)}}else globalThis.memorio.dispatch.listen(String(e),{detail:{name:String(e)}})},Object.defineProperties(observer,{list:{get:()=>globalThis.events},remove:{value:e=>{e&&(globalThis.events[e]="")}},removeAll:{get:()=>{Object.entries(observer.list).forEach(e=>{globalThis.events[e[0]]})}}}),Object.freeze(observer),globalThis.useObserver||(globalThis.useObserver=null),Object.defineProperty(globalThis,"useObserver",{enumerable:!1,configurable:!0}),useObserver=(e,t)=>{try{return observer(t,()=>e()),!0}catch(n){return}},Object.freeze(useObserver),Object.defineProperty(globalThis,"store",{value:new Proxy({},{}),enumerable:!1,configurable:!0}),Object.defineProperties(store,{get:{value(e){if(e){try{let t=localStorage.getItem(e);return t&&JSON.parse(t)}catch(t){}return null}}},set:{value(e,t){if(e){try{null==t?localStorage.setItem(e,JSON.stringify(null)):("object"==typeof t||"number"==typeof t||"boolean"==typeof t||"string"==typeof t)&&localStorage.setItem(e,JSON.stringify(t))}catch(n){}return null}}},remove:{value(e){if(e)return!!localStorage.getItem(e)&&(localStorage.removeItem(e),!0)}},delete:{value:e=>(store.remove(e),!0)},removeAll:{value:()=>(localStorage.clear(),!0)},clearAll:{value:()=>(store.removeAll(),!0)},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({usage:e,quota:t})=>[e/1024,t/1024]).catch(e=>{})}},size:{value(){let e=0;for(let t in localStorage)if(localStorage.hasOwnProperty(t)){let n=localStorage.getItem(t);n&&(e+=n.length)}return e}}}),Object.freeze(store),Object.defineProperty(globalThis,"session",{value:new Proxy({},{}),enumerable:!1,configurable:!0}),Object.defineProperties(session,{get:{value(e){if(e)try{let t=sessionStorage.getItem(e);return t&&JSON.parse(t)}catch(t){}}},set:{value(e,t){if(e)try{null==t?sessionStorage.setItem(e,JSON.stringify(null)):("object"==typeof t||"number"==typeof t||"boolean"==typeof t||"string"==typeof t)&&sessionStorage.setItem(e,JSON.stringify(t))}catch(n){}}},remove:{value(e){if(e&&sessionStorage.getItem(e))return sessionStorage.removeItem(e),!0}},delete:{value:e=>(session.remove(e),!0)},removeAll:{value:()=>(sessionStorage.clear(),!0)},clearAll:{value:()=>(session.removeAll(),!0)},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({usage:e,quota:t})=>{}).catch(e=>{})}},size:{value(){let e=0;for(let t in sessionStorage)if(sessionStorage.hasOwnProperty(t)){let n=sessionStorage.getItem(t);n&&(e+=n.length)}return e}}}),Object.freeze(session),Object.defineProperty(window,"cache",{value:new Proxy({},{}),enumerable:!1,configurable:!0})})());var Bt,Ht,Gt,Yt={exports:{}};const Jt=/* @__PURE__ */I(Bt?Yt.exports:(Bt=1,Ht="undefined"!=typeof window?window:Yt.exports,Gt=function(e,t){var n=[],r=Object.getPrototypeOf,o=n.slice,i=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,s=n.indexOf,c={},u=c.toString,l=c.hasOwnProperty,d=l.toString,p=d.call(Object),f={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},v=e.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,o,i=(n=n||v).createElement("script");if(i.text=e,t)for(r in b)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function g(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e}var x="3.7.1",w=/HTML$/i,D=function(e,t){return new D.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=g(e);return!h(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}D.fn=D.prototype={jquery:x,constructor:D,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=D.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return D.each(this,e)},map:function(e){return this.pushStack(D.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(D.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(D.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},D.extend=D.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||h(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(D.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||D.isPlainObject(n)?n:{},o=!1,a[t]=D.extend(u,i,r)):void 0!==r&&(a[t]=r));return a},D.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e)||(t=r(e))&&("function"!=typeof(n=l.call(t,"constructor")&&t.constructor)||d.call(n)!==p))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,o=e.nodeType;if(!o)for(;t=e[r++];)n+=D.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?D.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!w.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,a=0,s=[];if(C(e))for(r=e.length;a<r;a++)null!=(o=t(e[a],a,n))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&s.push(o);return i(s)},guid:1,support:f}),"function"==typeof Symbol&&(D.fn[Symbol.iterator]=n[Symbol.iterator]),D.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});var k=n.pop,S=n.sort,P=n.splice,T="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+T+"+|((?:^|[^\\\\])(?:\\\\.)*)"+T+"+$","g");D.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var $=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}D.escapeSelector=function(e){return(e+"").replace($,O)};var A=v,E=a;!function(){var t,r,i,a,c,u,d,p,h,m,v=E,b=D.expando,y=0,g=0,x=ee(),w=ee(),C=ee(),$=ee(),O=function(e,t){return e===t&&(c=!0),0},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",q="(?:\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+T+"*("+q+")(?:"+T+"*([*^$|!~]?=)"+T+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+T+"*\\]",N=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",I=new RegExp(T+"+","g"),_=new RegExp("^"+T+"*,"+T+"*"),L=new RegExp("^"+T+"*([>+~]|"+T+")"+T+"*"),F=new RegExp(T+"|>"),U=new RegExp(N),B=new RegExp("^"+q+"$"),H={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+T+"*(even|odd|(([+-]|)(\\d*)n|)"+T+"*(?:([+-]|)"+T+"*(\\d+)|))"+T+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+T+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+T+"*((?:-\\d)?\\d*)"+T+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,W=/[+~]/,V=new RegExp("\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\([^\\r\\n\\f])","g"),Z=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){ce()},X=pe(function(e){return!0===e.disabled&&M(e,"fieldset")},{dir:"parentNode",next:"legend"});try{v.apply(n=o.call(A.childNodes),A.childNodes),n[A.childNodes.length].nodeType}catch(ge){v={apply:function(e,t){E.apply(e,o.call(t))},call:function(e){E.apply(e,o.call(arguments,1))}}}function Q(e,t,n,r){var o,i,a,s,c,l,d,m=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(ce(t),t=t||u,p)){if(11!==y&&(c=J.exec(e)))if(o=c[1]){if(9===y){if(!(a=t.getElementById(o)))return n;if(a.id===o)return v.call(n,a),n}else if(m&&(a=m.getElementById(o))&&Q.contains(t,a)&&a.id===o)return v.call(n,a),n}else{if(c[2])return v.apply(n,t.getElementsByTagName(e)),n;if((o=c[3])&&t.getElementsByClassName)return v.apply(n,t.getElementsByClassName(o)),n}if(!($[e+" "]||h&&h.test(e))){if(d=e,m=t,1===y&&(F.test(e)||L.test(e))){for((m=W.test(e)&&se(t.parentNode)||t)==t&&f.scope||((s=t.getAttribute("id"))?s=D.escapeSelector(s):t.setAttribute("id",s=b)),i=(l=le(e)).length;i--;)l[i]=(s?"#"+s:":scope")+" "+de(l[i]);d=l.join(",")}try{return v.apply(n,m.querySelectorAll(d)),n}catch(g){$(e,!0)}finally{s===b&&t.removeAttribute("id")}}}return ye(e.replace(j,"$1"),t,n,r)}function ee(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function te(e){return e[b]=!0,e}function ne(e){var t=u.createElement("fieldset");try{return!!e(t)}catch(ge){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return M(t,"input")&&t.type===e}}function oe(e){return function(t){return(M(t,"input")||M(t,"button"))&&t.type===e}}function ie(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&X(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te(function(t){return t=+t,te(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function ce(e){var t,n=e?e.ownerDocument||e:A;return n!=u&&9===n.nodeType&&n.documentElement?(d=(u=n).documentElement,p=!D.isXMLDoc(u),m=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&A!=u&&(t=u.defaultView)&&t.top!==t&&t.addEventListener("unload",K),f.getById=ne(function(e){return d.appendChild(e).id=D.expando,!u.getElementsByName||!u.getElementsByName(D.expando).length}),f.disconnectedMatch=ne(function(e){return m.call(e,"*")}),f.scope=ne(function(){return u.querySelectorAll(":scope")}),f.cssHas=ne(function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(ge){return!0}}),f.getById?(r.filter.ID=function(e){var t=e.replace(V,Z);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(V,Z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},r.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},h=[],ne(function(e){var t;d.appendChild(e).innerHTML="<a id='"+b+"' href='' disabled='disabled'></a><select id='"+b+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+T+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||h.push("~="),e.querySelectorAll("a#"+b+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=u.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=u.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+T+"*name"+T+"*="+T+"*(?:''|\"\")")}),f.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),O=function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===u||e.ownerDocument==A&&Q.contains(A,e)?-1:t===u||t.ownerDocument==A&&Q.contains(A,t)?1:a?s.call(a,e)-s.call(a,t):0:4&n?-1:1)},u):u}for(t in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(ce(e),p&&!$[t+" "]&&(!h||!h.test(t)))try{var n=m.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(ge){$(t,!0)}return Q(t,u,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=u&&ce(e),D.contains(e,t)},Q.attr=function(e,t){(e.ownerDocument||e)!=u&&ce(e);var n=r.attrHandle[t.toLowerCase()],o=n&&l.call(r.attrHandle,t.toLowerCase())?n(e,t,!p):void 0;return void 0!==o?o:e.getAttribute(t)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},D.uniqueSort=function(e){var t,n=[],r=0,i=0;if(c=!f.sortStable,a=!f.sortStable&&o.call(e,0),S.call(e,O),c){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)P.call(e,n[r],1)}return a=null,e},D.fn.uniqueSort=function(){return this.pushStack(D.uniqueSort(o.apply(this)))},(r=D.expr={cacheLength:50,createPseudo:te,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(V,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(V,Z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return H.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=le(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(V,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return M(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+T+")"+e+"("+T+"|$)"))&&x(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=Q.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(I," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var u,l,d,p,f,h=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),g=!c&&!s,x=!1;if(m){if(i){for(;h;){for(d=t;d=d[h];)if(s?M(d,v):1===d.nodeType)return!1;f=h="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&g){for(x=(p=(u=(l=m[b]||(m[b]={}))[e]||[])[0]===y&&u[1])&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[h]||(x=p=0)||f.pop();)if(1===d.nodeType&&++x&&d===t){l[e]=[y,p,x];break}}else if(g&&(x=p=(u=(l=t[b]||(t[b]={}))[e]||[])[0]===y&&u[1]),!1===x)for(;(d=++p&&d&&d[h]||(x=p=0)||f.pop())&&(!(s?M(d,v):1===d.nodeType)||!++x||(g&&((l=d[b]||(d[b]={}))[e]=[y,x]),d!==t)););return(x-=o)===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return o[b]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=s.call(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:te(function(e){var t=[],n=[],r=be(e.replace(j,"$1"));return r[b]?te(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return Q(e,t).length>0}}),contains:te(function(e){return e=e.replace(V,Z),function(t){return(t.textContent||D.text(t)).indexOf(e)>-1}}),lang:te(function(e){return B.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(V,Z).toLowerCase(),function(t){var n;do{if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===function(){try{return u.activeElement}catch(e){}}()&&u.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ie(!1),disabled:ie(!0),checked:function(e){return M(e,"input")&&!!e.checked||M(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){return M(e,"input")&&"button"===e.type||M(e,"button")},text:function(e){var t;return M(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae(function(){return[0]}),last:ae(function(e,t){return[t-1]}),eq:ae(function(e,t,n){return[n<0?n+t:n]}),even:ae(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ae(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ae(function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ae(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=re(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=oe(t);function ue(){}function le(e,t){var n,o,i,a,s,c,u,l=w[e+" "];if(l)return t?0:l.slice(0);for(s=e,c=[],u=r.preFilter;s;){for(a in n&&!(o=_.exec(s))||(o&&(s=s.slice(o[0].length)||s),c.push(i=[])),n=!1,(o=L.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(j," ")}),s=s.slice(n.length)),r.filter)!(o=H[a].exec(s))||u[a]&&!(o=u[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?Q.error(e):w(e,c).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pe(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=g++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,c){var u,l,d=[y,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(l=t[b]||(t[b]={}),o&&M(t,o))t=t[r]||t;else{if((u=l[i])&&u[0]===y&&u[1]===s)return d[2]=u[2];if(l[i]=d,d[2]=e(t,n,c))return!0}return!1}}function fe(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function he(e,t,n,r,o){for(var i,a=[],s=0,c=e.length,u=null!=t;s<c;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),u&&t.push(s)));return a}function me(e,t,n,r,o,i){return r&&!r[b]&&(r=me(r)),o&&!o[b]&&(o=me(o,i)),te(function(i,a,c,u){var l,d,p,f,h=[],m=[],b=a.length,y=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)Q(e,t[r],n);return n}(t||"*",c.nodeType?[c]:c,[]),g=!e||!i&&t?y:he(y,h,e,c,u);if(n?n(g,f=o||(i?e:b||r)?[]:a,c,u):f=g,r)for(l=he(f,m),r(l,[],c,u),d=l.length;d--;)(p=l[d])&&(f[m[d]]=!(g[m[d]]=p));if(i){if(o||e){if(o){for(l=[],d=f.length;d--;)(p=f[d])&&l.push(g[d]=p);o(null,f=[],l,u)}for(d=f.length;d--;)(p=f[d])&&(l=o?s.call(i,p):h[d])>-1&&(i[l]=!(a[l]=p))}}else f=he(f===a?f.splice(b,f.length):f),o?o(null,a,f,u):v.apply(a,f)})}function ve(e){for(var t,n,o,a=e.length,c=r.relative[e[0].type],u=c||r.relative[" "],l=c?1:0,d=pe(function(e){return e===t},u,!0),p=pe(function(e){return s.call(t,e)>-1},u,!0),f=[function(e,n,r){var o=!c&&(r||n!=i)||((t=n).nodeType?d(e,n,r):p(e,n,r));return t=null,o}];l<a;l++)if(n=r.relative[e[l].type])f=[pe(fe(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[b]){for(o=++l;o<a&&!r.relative[e[o].type];o++);return me(l>1&&fe(f),l>1&&de(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(j,"$1"),n,l<o&&ve(e.slice(l,o)),o<a&&ve(e=e.slice(o)),o<a&&de(e))}f.push(n)}return fe(f)}function be(e,t){var n,o=[],a=[],s=C[e+" "];if(!s){for(t||(t=le(e)),n=t.length;n--;)(s=ve(t[n]))[b]?o.push(s):a.push(s);s=C(e,function(e,t){var n=t.length>0,o=e.length>0,a=function(a,s,c,l,d){var f,h,m,b=0,g="0",x=a&&[],w=[],C=i,M=a||o&&r.find.TAG("*",d),S=y+=null==C?1:Math.random()||.1,P=M.length;for(d&&(i=s==u||s||d);g!==P&&null!=(f=M[g]);g++){if(o&&f){for(h=0,s||f.ownerDocument==u||(ce(f),c=!p);m=e[h++];)if(m(f,s||u,c)){v.call(l,f);break}d&&(y=S)}n&&((f=!m&&f)&&b--,a&&x.push(f))}if(b+=g,n&&g!==b){for(h=0;m=t[h++];)m(x,w,s,c);if(a){if(b>0)for(;g--;)x[g]||w[g]||(w[g]=k.call(l));w=he(w)}v.apply(l,w),d&&!a&&w.length>0&&b+t.length>1&&D.uniqueSort(l)}return d&&(y=S,i=C),x};return n?te(a):a}(a,o)),s.selector=e}return s}function ye(e,t,n,o){var i,a,s,c,u,l="function"==typeof e&&e,d=!o&&le(e=l.selector||e);if(n=n||[],1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===t.nodeType&&p&&r.relative[a[1].type]){if(!(t=(r.find.ID(s.matches[0].replace(V,Z),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=H.needsContext.test(e)?0:a.length;i--&&(s=a[i],!r.relative[c=s.type]);)if((u=r.find[c])&&(o=u(s.matches[0].replace(V,Z),W.test(a[0].type)&&se(t.parentNode)||t))){if(a.splice(i,1),!(e=o.length&&de(a)))return v.apply(n,o),n;break}}return(l||be(e,d))(o,t,!p,n,!t||W.test(e)&&se(t.parentNode)||t),n}ue.prototype=r.filters=r.pseudos,r.setFilters=new ue,f.sortStable=b.split("").sort(O).join("")===b,ce(),f.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(u.createElement("fieldset"))}),D.find=Q,D.expr[":"]=D.expr.pseudos,D.unique=D.uniqueSort,Q.compile=be,Q.select=ye,Q.setDocument=ce,Q.tokenize=le,Q.escape=D.escapeSelector,Q.getText=D.text,Q.isXML=D.isXMLDoc,Q.selectors=D.expr,Q.support=D.support,Q.uniqueSort=D.uniqueSort}();var R=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&D(e).is(n))break;r.push(e)}return r},q=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},z=D.expr.match.needsContext,N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,t,n){return h(t)?D.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?D.grep(e,function(e){return e===t!==n}):"string"!=typeof t?D.grep(e,function(e){return s.call(t,e)>-1!==n}):D.filter(t,e,n)}D.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?D.find.matchesSelector(r,e)?[r]:[]:D.find.matches(e,D.grep(t,function(e){return 1===e.nodeType}))},D.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(D(e).filter(function(){for(t=0;t<r;t++)if(D.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)D.find(e,o[t],n);return r>1?D.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&z.test(e)?D(e):e||[],!1).length}});var _,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(D.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||_,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof D?t[0]:t,D.merge(this,D.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),N.test(r[1])&&D.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=v.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(D):D.makeArray(e,this)}).prototype=D.fn,_=D(v);var F=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function B(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}D.fn.extend({has:function(e){var t=D(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(D.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&D(e);if(!z.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&D.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?D.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?s.call(D(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(D.uniqueSort(D.merge(this.get(),D(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),D.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return R(e,"parentNode")},parentsUntil:function(e,t,n){return R(e,"parentNode",n)},next:function(e){return B(e,"nextSibling")},prev:function(e){return B(e,"previousSibling")},nextAll:function(e){return R(e,"nextSibling")},prevAll:function(e){return R(e,"previousSibling")},nextUntil:function(e,t,n){return R(e,"nextSibling",n)},prevUntil:function(e,t,n){return R(e,"previousSibling",n)},siblings:function(e){return q((e.parentNode||{}).firstChild,e)},children:function(e){return q(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),D.merge([],e.childNodes))}},function(e,t){D.fn[e]=function(n,r){var o=D.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=D.filter(r,o)),this.length>1&&(U[e]||D.uniqueSort(o),F.test(e)&&o.reverse()),this.pushStack(o)}});var H=/[^\x20\t\r\n\f]+/g;function G(e){return e}function Y(e){throw e}function J(e,t,n,r){var o;try{e&&h(o=e.promise)?o.call(e).done(t).fail(n):e&&h(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(i){n.apply(void 0,[i])}}D.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return D.each(e.match(H)||[],function(e,n){t[n]=!0}),t}(e):D.extend({},e);var t,n,r,o,i=[],a=[],s=-1,c=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){D.each(n,function(n,r){h(r)?e.unique&&u.has(r)||i.push(r):r&&r.length&&"string"!==g(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return D.each(arguments,function(e,t){for(var n;(n=D.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?D.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},D.extend({Deferred:function(t){var n=[["notify","progress",D.Callbacks("memory"),D.Callbacks("memory"),2],["resolve","done",D.Callbacks("once memory"),D.Callbacks("once memory"),0,"resolved"],["reject","fail",D.Callbacks("once memory"),D.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return D.Deferred(function(t){D.each(n,function(n,r){var o=h(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=o&&o.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,r,o){var i=0;function a(t,n,r,o){return function(){var s=this,c=arguments,u=function(){var e,u;if(!(t<i)){if((e=r.apply(s,c))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,h(u)?o?u.call(e,a(i,n,G,o),a(i,n,Y,o)):(i++,u.call(e,a(i,n,G,o),a(i,n,Y,o),a(i,n,G,n.notifyWith))):(r!==G&&(s=void 0,c=[e]),(o||n.resolveWith)(s,c))}},l=o?u:function(){try{u()}catch(e){D.Deferred.exceptionHook&&D.Deferred.exceptionHook(e,l.error),t+1>=i&&(r!==Y&&(s=void 0,c=[e]),n.rejectWith(s,c))}};t?l():(D.Deferred.getErrorHook?l.error=D.Deferred.getErrorHook():D.Deferred.getStackHook&&(l.error=D.Deferred.getStackHook()),e.setTimeout(l))}}return D.Deferred(function(e){n[0][3].add(a(0,e,h(o)?o:G,e.notifyWith)),n[1][3].add(a(0,e,h(t)?t:G)),n[2][3].add(a(0,e,h(r)?r:Y))}).promise()},promise:function(e){return null!=e?D.extend(e,o):o}},i={};return D.each(n,function(e,t){var a=t[2],s=t[5];o[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),i[t[0]]=function(){return i[t[0]+"With"](this===i?void 0:this,arguments),this},i[t[0]+"With"]=a.fireWith}),o.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=D.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(J(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||h(i[n]&&i[n].then)))return a.then();for(;n--;)J(i[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;D.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},D.readyException=function(t){e.setTimeout(function(){throw t})};var V=D.Deferred();function Z(){v.removeEventListener("DOMContentLoaded",Z),e.removeEventListener("load",Z),D.ready()}D.fn.ready=function(e){return V.then(e).catch(function(e){D.readyException(e)}),this},D.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--D.readyWait:D.isReady)||(D.isReady=!0,!0!==e&&--D.readyWait>0||V.resolveWith(v,[D]))}}),D.ready.then=V.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?e.setTimeout(D.ready):(v.addEventListener("DOMContentLoaded",Z),e.addEventListener("load",Z));var K=function(e,t,n,r,o,i,a){var s=0,c=e.length,u=null==n;if("object"===g(n))for(s in o=!0,n)K(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,h(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(D(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:u?t.call(e):c?t(e[0],n):i},X=/^-ms-/,Q=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(X,"ms-").replace(Q,ee)}var ne=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=D.expando+re.uid++}re.uid=1,re.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ne(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[te(t)]=n;else for(r in t)o[te(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(te):(t=te(t))in r?[t]:t.match(H)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||D.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!D.isEmptyObject(t)}};var oe=new re,ie=new re,ae=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,se=/[A-Z]/g;function ce(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(se,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ae.test(e)?JSON.parse(e):e)}(n)}catch(o){}ie.set(e,t,n)}else n=void 0;return n}D.extend({hasData:function(e){return ie.hasData(e)||oe.hasData(e)},data:function(e,t,n){return ie.access(e,t,n)},removeData:function(e,t){ie.remove(e,t)},i:function(e,t,n){return oe.access(e,t,n)},he:function(e,t){oe.remove(e,t)}}),D.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=ie.get(i),1===i.nodeType&&!oe.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=te(r.slice(5)),ce(i,r,o[r]));oe.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){ie.set(this,e)}):K(this,function(t){var n;if(i&&void 0===t)return void 0!==(n=ie.get(i,e))||void 0!==(n=ce(i,e))?n:void 0;this.each(function(){ie.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ie.remove(this,e)})}}),D.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=oe.get(e,t),n&&(!r||Array.isArray(n)?r=oe.access(e,t,D.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=D.queue(e,t),r=n.length,o=n.shift(),i=D.me(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){D.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},me:function(e,t){var n=t+"queueHooks";return oe.get(e,n)||oe.access(e,n,{empty:D.Callbacks("once memory").add(function(){oe.remove(e,[t+"queue",n])})})}}),D.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?D.queue(this[0],e):void 0===t?this:this.each(function(){var n=D.queue(this,e,t);D.me(this,e),"fx"===e&&"inprogress"!==n[0]&&D.dequeue(this,e)})},dequeue:function(e){return this.each(function(){D.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=D.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=oe.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var ue=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,le=new RegExp("^(?:([+-])=|)("+ue+")([a-z%]*)$","i"),de=["Top","Right","Bottom","Left"],pe=v.documentElement,fe=function(e){return D.contains(e.ownerDocument,e)},he={composed:!0};pe.getRootNode&&(fe=function(e){return D.contains(e.ownerDocument,e)||e.getRootNode(he)===e.ownerDocument});var me=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&fe(e)&&"none"===D.css(e,"display")};function ve(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return D.css(e,t,"")},c=s(),u=n&&n[3]||(D.cssNumber[t]?"":"px"),l=e.nodeType&&(D.cssNumber[t]||"px"!==u&&+c)&&le.exec(D.css(e,t));if(l&&l[3]!==u){for(c/=2,u=u||l[3],l=+c||1;a--;)D.style(e,t,l+u),(1-i)*(1-(i=s()/c||.5))<=0&&(a=0),l/=i;l*=2,D.style(e,t,l+u),n=n||[]}return n&&(l=+l||+c||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=o)),o}var be={};function ye(e){var t,n=e.ownerDocument,r=e.nodeName,o=be[r];return o||(t=n.body.appendChild(n.createElement(r)),o=D.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),be[r]=o,o)}function ge(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=oe.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&me(r)&&(o[i]=ye(r))):"none"!==n&&(o[i]="none",oe.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}D.fn.extend({show:function(){return ge(this,!0)},hide:function(){return ge(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){me(this)?D(this).show():D(this).hide()})}});var xe,we,De=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Me=/^$|^module$|\/(?:java|ecma)script/i;xe=v.createDocumentFragment().appendChild(v.createElement("div")),(we=v.createElement("input")).setAttribute("type","radio"),we.setAttribute("checked","checked"),we.setAttribute("name","t"),xe.appendChild(we),f.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",f.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],ve:[0,"",""]};function Se(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?D.merge([e],n):n}function Pe(e,t){for(var n=0,r=e.length;n<r;n++)oe.set(e[n],"globalEval",!t||oe.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,f.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function je(e,t,n,r,o){for(var i,a,s,c,u,l,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((i=e[f])||0===i)if("object"===g(i))D.merge(p,i.nodeType?[i]:i);else if(Te.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(Ce.exec(i)||["",""])[1].toLowerCase(),c=ke[s]||ke.ve,a.innerHTML=c[1]+D.htmlPrefilter(i)+c[2],l=c[0];l--;)a=a.lastChild;D.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",f=0;i=p[f++];)if(r&&D.inArray(i,r)>-1)o&&o.push(i);else if(u=fe(i),a=Se(d.appendChild(i),"script"),u&&Pe(a),n)for(l=0;i=a[l++];)Me.test(i.type||"")&&n.push(i);return d}var $e=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Ae(){return!1}function Ee(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Ae;else if(!o)return e;return 1===i&&(a=o,o=function(e){return D().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=D.guid++)),e.each(function(){D.event.add(this,t,o,r,n)})}function Re(e,t,n){n?(oe.set(e,t,!1),D.event.add(e,t,{namespace:!1,handler:function(e){var n,r=oe.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(D.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=o.call(arguments),oe.set(this,t,r),this[t](),n=oe.get(this,t),oe.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(oe.set(this,t,D.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Oe)}})):void 0===oe.get(e,t)&&D.event.add(e,t,Oe)}D.event={global:{},add:function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,v=oe.get(e);if(ne(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&D.find.matchesSelector(pe,o),n.guid||(n.guid=D.guid++),(c=v.events)||(c=v.events=/* @__PURE__ */Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==D&&D.event.triggered!==t.type?D.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(H)||[""]).length;u--;)f=m=(s=$e.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=D.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=D.event.special[f]||{},l=D.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&D.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=c[f])||((p=c[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,l):p.push(l),D.event.global[f]=!0)},remove:function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,v=oe.hasData(e)&&oe.get(e);if(v&&(c=v.events)){for(u=(t=(t||"").match(H)||[""]).length;u--;)if(f=m=(s=$e.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=D.event.special[f]||{},p=c[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)l=p[i],!o&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,d.remove&&d.remove.call(e,l));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,v.handle)||D.removeEvent(e,f,v.handle),delete c[f])}else for(f in c)D.event.remove(e,f+t[u],n,r,!0);D.isEmptyObject(c)&&oe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=new Array(arguments.length),c=D.event.fix(e),u=(oe.get(this,"events")||/* @__PURE__ */Object.create(null))[c.type]||[],l=D.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,c)){for(a=D.event.handlers.call(this,c,u),t=0;(o=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==i.namespace&&!c.rnamespace.test(i.namespace)||(c.handleObj=i,c.data=i.data,void 0!==(r=((D.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,o,i,a,s=[],c=t.delegateCount,u=e.target;if(c&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=[],a={},n=0;n<c;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?D(o,this).index(u)>-1:D.find(o,this,null,[u]).length),a[o]&&i.push(r);i.length&&s.push({elem:u,handlers:i})}return u=this,c<t.length&&s.push({elem:u,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(D.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[D.expando]?e:new D.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return De.test(t.type)&&t.click&&M(t,"input")&&Re(t,"click",!0),!1},trigger:function(e){var t=this||e;return De.test(t.type)&&t.click&&M(t,"input")&&Re(t,"click"),!0},ve:function(e){var t=e.target;return De.test(t.type)&&t.click&&M(t,"input")&&oe.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},D.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},D.Event=function(e,t){if(!(this instanceof D.Event))return new D.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Oe:Ae,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&D.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[D.expando]=!0},D.Event.prototype={constructor:D.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},D.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},D.event.addProp),D.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(v.documentMode){var n=oe.get(this,"handle"),r=D.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else D.event.simulate(t,e.target,D.event.fix(e))}D.event.special[e]={setup:function(){var r;if(Re(this,e,!0),!v.documentMode)return!1;(r=oe.get(this,t))||this.addEventListener(t,n),oe.set(this,t,(r||0)+1)},trigger:function(){return Re(this,e),!0},teardown:function(){var e;if(!v.documentMode)return!1;(e=oe.get(this,t)-1)?oe.set(this,t,e):(this.removeEventListener(t,n),oe.remove(this,t))},ve:function(t){return oe.get(t.target,e)},delegateType:t},D.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=v.documentMode?this:r,i=oe.get(o,t);i||(v.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),oe.set(o,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=v.documentMode?this:r,i=oe.get(o,t)-1;i?oe.set(o,t,i):(v.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),oe.remove(o,t))}}}),D.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){D.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||D.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),D.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,D(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ae),this.each(function(){D.event.remove(this,e,n,t)})}});var qe=/<script|<style|<link/i,ze=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ie(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&D(e).children("tbody")[0]||e}function _e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,o,i,a,s;if(1===t.nodeType){if(oe.hasData(e)&&(s=oe.get(e).events))for(o in oe.remove(t,"handle events"),s)for(n=0,r=s[o].length;n<r;n++)D.event.add(t,o,s[o][n]);ie.hasData(e)&&(i=ie.access(e),a=D.extend({},i),ie.set(t,a))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&De.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=i(t);var o,a,s,c,u,l,d=0,p=e.length,m=p-1,v=t[0],b=h(v);if(b||p>1&&"string"==typeof v&&!f.checkClone&&ze.test(v))return e.each(function(o){var i=e.eq(o);b&&(t[0]=v.call(this,o,i.html())),Be(i,t,n,r)});if(p&&(a=(o=je(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(c=(s=D.map(Se(o,"script"),_e)).length;d<p;d++)u=o,d!==m&&(u=D.clone(u,!0,!0),c&&D.merge(s,Se(u,"script"))),n.call(e[d],u,d);if(c)for(l=s[s.length-1].ownerDocument,D.map(s,Le),d=0;d<c;d++)u=s[d],Me.test(u.type||"")&&!oe.access(u,"globalEval")&&D.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?D.be&&!u.noModule&&D.be(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):y(u.textContent.replace(Ne,""),u,l))}return e}function He(e,t,n){for(var r,o=t?D.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||D.cleanData(Se(r)),r.parentNode&&(n&&fe(r)&&Pe(Se(r,"script")),r.parentNode.removeChild(r));return e}D.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),c=fe(e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||D.isXMLDoc(e)))for(a=Se(s),r=0,o=(i=Se(e)).length;r<o;r++)Ue(i[r],a[r]);if(t)if(n)for(i=i||Se(e),a=a||Se(s),r=0,o=i.length;r<o;r++)Fe(i[r],a[r]);else Fe(e,s);return(a=Se(s,"script")).length>0&&Pe(a,!c&&Se(e,"script")),s},cleanData:function(e){for(var t,n,r,o=D.event.special,i=0;void 0!==(n=e[i]);i++)if(ne(n)){if(t=n[oe.expando]){if(t.events)for(r in t.events)o[r]?D.event.remove(n,r):D.removeEvent(n,r,t.handle);n[oe.expando]=void 0}n[ie.expando]&&(n[ie.expando]=void 0)}}}),D.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return K(this,function(e){return void 0===e?D.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Be(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)})},prepend:function(){return Be(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Be(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Be(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(D.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return D.clone(this,e,t)})},html:function(e){return K(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!ke[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=D.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(D.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(o){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,function(t){var n=this.parentNode;D.inArray(this,e)<0&&(D.cleanData(Se(this)),n&&n.replaceChild(t,this))},e)}}),D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){D.fn[e]=function(e){for(var n,r=[],o=D(e),i=o.length-1,s=0;s<=i;s++)n=s===i?this:this.clone(!0),D(o[s])[t](n),a.apply(r,n.get());return this.pushStack(r)}});var Ge=new RegExp("^("+ue+")(?!px)[a-z%]+$","i"),Ye=/^--/,Je=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},We=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Ve=new RegExp(de.join("|"),"i");function Ze(e,t,n){var r,o,i,a,s=Ye.test(t),c=e.style;return(n=n||Je(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(j,"$1")||void 0),""!==a||fe(e)||(a=D.style(e,t)),!f.pixelBoxStyles()&&Ge.test(a)&&Ve.test(t)&&(r=c.width,o=c.minWidth,i=c.maxWidth,c.minWidth=c.maxWidth=c.width=a,a=n.width,c.width=r,c.minWidth=o,c.maxWidth=i)),void 0!==a?a+"":a}function Ke(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",pe.appendChild(u).appendChild(l);var t=e.getComputedStyle(l);r="1%"!==t.top,c=12===n(t.marginLeft),l.style.right="60%",a=36===n(t.right),o=36===n(t.width),l.style.position="absolute",i=12===n(l.offsetWidth/3),pe.removeChild(u),l=null}}function n(e){return Math.round(parseFloat(e))}var r,o,i,a,s,c,u=v.createElement("div"),l=v.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===l.style.backgroundClip,D.extend(f,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),c},scrollboxSize:function(){return t(),i},reliableTrDimensions:function(){var t,n,r,o;return null==s&&(t=v.createElement("table"),n=v.createElement("tr"),r=v.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",pe.appendChild(t).appendChild(n).appendChild(r),o=e.getComputedStyle(n),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,pe.removeChild(t)),s}}))}();var Xe=["Webkit","Moz","ms"],Qe=v.createElement("div").style,et={};function tt(e){var t=D.cssProps[e]||et[e];return t||(e in Qe?e:et[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Qe)return e}(e)||e)}var nt=/^(none|table(?!-c[ea]).+)/,rt={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function it(e,t,n){var r=le.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function at(e,t,n,r,o,i){var a="width"===t?1:0,s=0,c=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=D.css(e,n+de[a],!0,o)),r?("content"===n&&(c-=D.css(e,"padding"+de[a],!0,o)),"margin"!==n&&(c-=D.css(e,"border"+de[a]+"Width",!0,o))):(c+=D.css(e,"padding"+de[a],!0,o),"padding"!==n?c+=D.css(e,"border"+de[a]+"Width",!0,o):s+=D.css(e,"border"+de[a]+"Width",!0,o));return!r&&i>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-c-s-.5))||0),c+u}function st(e,t,n){var r=Je(e),o=(!f.boxSizingReliable()||n)&&"border-box"===D.css(e,"boxSizing",!1,r),i=o,a=Ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(a)){if(!n)return a;a="auto"}return(!f.boxSizingReliable()&&o||!f.reliableTrDimensions()&&M(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===D.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===D.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+at(e,t,n||(o?"border":"content"),i,r,a)+"px"}function ct(e,t,n,r,o){return new ct.prototype.init(e,t,n,r,o)}D.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=te(t),c=Ye.test(t),u=e.style;if(c||(t=tt(s)),a=D.cssHooks[t]||D.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:u[t];"string"==(i=typeof n)&&(o=le.exec(n))&&o[1]&&(n=ve(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||c||(n+=o&&o[3]||(D.cssNumber[s]?"":"px")),f.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var o,i,a,s=te(t);return Ye.test(t)||(t=tt(s)),(a=D.cssHooks[t]||D.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ze(e,t,r)),"normal"===o&&t in ot&&(o=ot[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),D.each(["height","width"],function(e,t){D.cssHooks[t]={get:function(e,n,r){if(n)return!nt.test(D.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?st(e,t,r):We(e,rt,function(){return st(e,t,r)})},set:function(e,n,r){var o,i=Je(e),a=!f.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===D.css(e,"boxSizing",!1,i),c=r?at(e,t,r,s,i):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-at(e,t,"border",!1,i)-.5)),c&&(o=le.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=D.css(e,t)),it(0,n,c)}}}),D.cssHooks.marginLeft=Ke(f.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),D.each({margin:"",padding:"",border:"Width"},function(e,t){D.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+de[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(D.cssHooks[e+t].set=it)}),D.fn.extend({css:function(e,t){return K(this,function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Je(e),o=t.length;a<o;a++)i[t[a]]=D.css(e,t[a],!1,r);return i}return void 0!==n?D.style(e,t,n):D.css(e,t)},e,t,arguments.length>1)}}),D.Tween=ct,ct.prototype={constructor:ct,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||D.easing.ve,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(D.cssNumber[n]?"":"px")},cur:function(){var e=ct.propHooks[this.prop];return e&&e.get?e.get(this):ct.propHooks.ve.get(this)},run:function(e){var t,n=ct.propHooks[this.prop];return this.options.duration?this.pos=t=D.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ct.propHooks.ve.set(this),this}},ct.prototype.init.prototype=ct.prototype,ct.propHooks={ve:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=D.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){D.fx.step[e.prop]?D.fx.step[e.prop](e):1!==e.elem.nodeType||!D.cssHooks[e.prop]&&null==e.elem.style[tt(e.prop)]?e.elem[e.prop]=e.now:D.style(e.elem,e.prop,e.now+e.unit)}}},ct.propHooks.scrollTop=ct.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},D.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},ve:"swing"},D.fx=ct.prototype.init,D.fx.step={};var ut,lt,dt=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function ft(){lt&&(!1===v.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ft):e.setTimeout(ft,D.fx.interval),D.fx.tick())}function ht(){return e.setTimeout(function(){ut=void 0}),ut=Date.now()}function mt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=de[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function vt(e,t,n){for(var r,o=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function bt(e,t,n){var r,o,i=0,a=bt.prefilters.length,s=D.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var t=ut||ht(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),i=0,a=u.tweens.length;i<a;i++)u.tweens[i].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:D.extend({},t),opts:D.extend(!0,{specialEasing:{},easing:D.easing.ve},n),originalProperties:t,originalOptions:n,startTime:ut||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var r=D.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),l=u.props;for(function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=te(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=D.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(l,u.opts.specialEasing);i<a;i++)if(r=bt.prefilters[i].call(u,e,l,u.opts))return h(r.stop)&&(D.me(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return D.map(l,vt,u),h(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),D.fx.timer(D.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u}D.Animation=D.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ve(n.elem,e,le.exec(t),n),n}]},tweener:function(e,t){h(e)?(t=e,e=["*"]):e=e.match(H);for(var n,r=0,o=e.length;r<o;r++)n=e[r],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,c,u,l,d="width"in t||"height"in t,p=this,f={},h=e.style,m=e.nodeType&&me(e),v=oe.get(e,"fxshow");for(r in n.queue||(null==(a=D.me(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,D.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[r],dt.test(o)){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!v||void 0===v[r])continue;m=!0}f[r]=v&&v[r]||D.style(e,r)}if((c=!D.isEmptyObject(t))||!D.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=v&&v.display)&&(u=oe.get(e,"display")),"none"===(l=D.css(e,"display"))&&(u?l=u:(ge([e],!0),u=e.style.display||u,l=D.css(e,"display"),ge([e]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===D.css(e,"float")&&(c||(p.done(function(){h.display=u}),null==u&&(l=h.display,u="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),c=!1,f)c||(v?"hidden"in v&&(m=v.hidden):v=oe.access(e,"fxshow",{display:u}),i&&(v.hidden=!m),m&&ge([e],!0),p.done(function(){for(r in m||ge([e]),oe.remove(e,"fxshow"),f)D.style(e,r,f[r])})),c=vt(m?v[r]:0,r,p),r in v||(v[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),D.speed=function(e,t,n){var r=e&&"object"==typeof e?D.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};return D.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in D.fx.speeds?r.duration=D.fx.speeds[r.duration]:r.duration=D.fx.speeds.ve),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h(r.old)&&r.old.call(this),r.queue&&D.dequeue(this,r.queue)},r},D.fn.extend({fadeTo:function(e,t,n,r){return this.filter(me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=D.isEmptyObject(e),i=D.speed(t,n,r),a=function(){var t=bt(this,D.extend({},e),i);(o||oe.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=D.timers,a=oe.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&pt.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||D.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=oe.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=D.timers,a=r?r.length:0;for(n.finish=!0,D.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),D.each(["toggle","show","hide"],function(e,t){var n=D.fn[t];D.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(mt(t,!0),e,r,o)}}),D.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){D.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),D.timers=[],D.fx.tick=function(){var e,t=0,n=D.timers;for(ut=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||D.fx.stop(),ut=void 0},D.fx.timer=function(e){D.timers.push(e),D.fx.start()},D.fx.interval=13,D.fx.start=function(){lt||(lt=!0,ft())},D.fx.stop=function(){lt=null},D.fx.speeds={slow:600,fast:200,ve:400},D.fn.delay=function(t,n){return t=D.fx&&D.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var o=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(o)}})},function(){var e=v.createElement("input"),t=v.createElement("select").appendChild(v.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=t.selected,(e=v.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var yt,gt=D.expr.attrHandle;D.fn.extend({attr:function(e,t){return K(this,D.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){D.removeAttr(this,e)})}}),D.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?D.prop(e,t,n):(1===i&&D.isXMLDoc(e)||(o=D.attrHooks[t.toLowerCase()]||(D.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void D.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=D.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(H);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),yt={set:function(e,t,n){return!1===t?D.removeAttr(e,n):e.setAttribute(n,n),n}},D.each(D.expr.match.bool.source.match(/\w+/g),function(e,t){var n=gt[t]||D.find.attr;gt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=gt[a],gt[a]=o,o=null!=n(e,t,r)?a:null,gt[a]=i),o}});var xt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Dt(e){return(e.match(H)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function Mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}D.fn.extend({prop:function(e,t){return K(this,D.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[D.propFix[e]||e]})}}),D.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&D.isXMLDoc(e)||(t=D.propFix[t]||t,o=D.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=D.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(D.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),D.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){D.propFix[this.toLowerCase()]=this}),D.fn.extend({addClass:function(e){var t,n,r,o,i,a;return h(e)?this.each(function(t){D(this).addClass(e.call(this,t,Ct(this)))}):(t=Mt(e)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Dt(r)+" "){for(i=0;i<t.length;i++)o=t[i],n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=Dt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,n,r,o,i,a;return h(e)?this.each(function(t){D(this).removeClass(e.call(this,t,Ct(this)))}):arguments.length?(t=Mt(e)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Dt(r)+" "){for(i=0;i<t.length;i++)for(o=t[i];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=Dt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,o,i,a=typeof e,s="string"===a||Array.isArray(e);return h(e)?this.each(function(n){D(this).toggleClass(e.call(this,n,Ct(this),t),t)}):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Mt(e),this.each(function(){if(s)for(i=D(this),o=0;o<n.length;o++)r=n[o],i.hasClass(r)?i.removeClass(r):i.addClass(r);else void 0!==e&&"boolean"!==a||((r=Ct(this))&&oe.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":oe.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Dt(Ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var kt=/\r/g;D.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=h(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,D(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=D.map(o,function(e){return null==e?"":e+""})),(t=D.valHooks[this.type]||D.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=D.valHooks[o.type]||D.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(kt,""):null==n?"":n:void 0}}),D.extend({valHooks:{option:{get:function(e){var t=D.find.attr(e,"value");return null!=t?t:Dt(D.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?i+1:o.length;for(r=i<0?c:a?i:0;r<c;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(t=D(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=D.makeArray(t),a=o.length;a--;)((r=o[a]).selected=D.inArray(D.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),D.each(["radio","checkbox"],function(){D.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=D.inArray(D(e).val(),t)>-1}},f.checkOn||(D.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var St=e.location,Pt={guid:Date.now()},Tt=/\?/;D.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(o){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||D.error("Invalid XML: "+(r?D.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var jt=/^(?:focusinfocus|focusoutblur)$/,$t=function(e){e.stopPropagation()};D.extend(D.event,{trigger:function(t,n,r,o){var i,a,s,c,u,d,p,f,b=[r||v],y=l.call(t,"type")?t.type:t,g=l.call(t,"namespace")?t.namespace.split("."):[];if(a=f=s=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!jt.test(y+D.event.triggered)&&(y.indexOf(".")>-1&&(g=y.split("."),y=g.shift(),g.sort()),u=y.indexOf(":")<0&&"on"+y,(t=t[D.expando]?t:new D.Event(y,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:D.makeArray(n,[t]),p=D.event.special[y]||{},o||!p.trigger||!1!==p.trigger.apply(r,n))){if(!o&&!p.noBubble&&!m(r)){for(c=p.delegateType||y,jt.test(c+y)||(a=a.parentNode);a;a=a.parentNode)b.push(a),s=a;s===(r.ownerDocument||v)&&b.push(s.defaultView||s.parentWindow||e)}for(i=0;(a=b[i++])&&!t.isPropagationStopped();)f=a,t.type=i>1?c:p.bindType||y,(d=(oe.get(a,"events")||/* @__PURE__ */Object.create(null))[t.type]&&oe.get(a,"handle"))&&d.apply(a,n),(d=u&&a[u])&&d.apply&&ne(a)&&(t.result=d.apply(a,n),!1===t.result&&t.preventDefault());return t.type=y,o||t.isDefaultPrevented()||p.ve&&!1!==p.ve.apply(b.pop(),n)||!ne(r)||u&&h(r[y])&&!m(r)&&((s=r[u])&&(r[u]=null),D.event.triggered=y,t.isPropagationStopped()&&f.addEventListener(y,$t),r[y](),t.isPropagationStopped()&&f.removeEventListener(y,$t),D.event.triggered=void 0,s&&(r[u]=s)),t.result}},simulate:function(e,t,n){var r=D.extend(new D.Event,n,{type:e,isSimulated:!0});D.event.trigger(r,null,t)}}),D.fn.extend({trigger:function(e,t){return this.each(function(){D.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return D.event.trigger(e,t,n,!0)}});var Ot=/\[\]$/,At=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function qt(e,t,n,r){var o;if(Array.isArray(t))D.each(t,function(t,o){n||Ot.test(e)?r(e,o):qt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==g(t))r(e,t);else for(o in t)qt(e+"["+o+"]",t[o],n,r)}D.param=function(e,t){var n,r=[],o=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!D.isPlainObject(e))D.each(e,function(){o(this.name,this.value)});else for(n in e)qt(n,e[n],t,o);return r.join("&")},D.fn.extend({serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=D.prop(this,"elements");return e?D.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!D(this).is(":disabled")&&Rt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!De.test(e))}).map(function(e,t){var n=D(this).val();return null==n?null:Array.isArray(n)?D.map(n,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:n.replace(At,"\r\n")}}).get()}});var zt=/%20/g,Nt=/#.*$/,It=/([?&])_=[^&]*/,_t=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Ut={},Bt={},Ht="*/".concat("*"),Gt=v.createElement("a");function Yt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(H)||[];if(h(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Jt(e,t,n,r){var o={},i=e===Bt;function a(s){var c;return o[s]=!0,D.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||i||o[u]?i?!(c=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),c}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Wt(e,t){var n,r,o=D.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&D.extend(!0,e,r),e}Gt.href=St.href,D.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":D.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,D.ajaxSettings),t):Wt(D.ajaxSettings,e)},ajaxPrefilter:Yt(Ut),ajaxTransport:Yt(Bt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,i,a,s,c,u,l,d,p,f=D.ajaxSetup({},n),h=f.context||f,m=f.context&&(h.nodeType||h.jquery)?D(h):D.event,b=D.Deferred(),y=D.Callbacks("once memory"),g=f.statusCode||{},x={},w={},C="canceled",M={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=_t.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?i:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)M.always(e[M.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),k(0,t),this}};if(b.promise(M),f.url=((t||f.url||St.href)+"").replace(Ft,St.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(H)||[""],null==f.crossDomain){c=v.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Gt.protocol+"//"+Gt.host!=c.protocol+"//"+c.host}catch(S){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=D.param(f.data,f.traditional)),Jt(Ut,f,n,M),u)return M;for(d in(l=D.event&&f.global)&&0===D.active++&&D.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Lt.test(f.type),o=f.url.replace(Nt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(zt,"+")):(p=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Tt.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(It,"$1"),p=(Tt.test(o)?"&":"?")+"_="+Pt.guid+++p),f.url=o+p),f.ifModified&&(D.lastModified[o]&&M.setRequestHeader("If-Modified-Since",D.lastModified[o]),D.etag[o]&&M.setRequestHeader("If-None-Match",D.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&M.setRequestHeader("Content-Type",f.contentType),M.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ht+"; q=0.01":""):f.accepts["*"]),f.headers)M.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(h,M,f)||u))return M.abort();if(C="abort",y.add(f.complete),M.done(f.success),M.fail(f.error),r=Jt(Bt,f,n,M)){if(M.readyState=1,l&&m.trigger("ajaxSend",[M,f]),u)return M;f.async&&f.timeout>0&&(s=e.setTimeout(function(){M.abort("timeout")},f.timeout));try{u=!1,r.send(x,k)}catch(S){if(u)throw S;k(-1,S)}}else k(-1,"No Transport");function k(t,n,a,c){var d,p,v,x,w,C=n;u||(u=!0,s&&e.clearTimeout(s),r=void 0,i=c||"",M.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(x=function(e,t,n){for(var r,o,i,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){c.unshift(o);break}if(c[0]in n)i=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==c[0]&&c.unshift(i),n[i]}(f,M,a)),!d&&D.inArray("script",f.dataTypes)>-1&&D.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,r){var o,i,a,s,c,u={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=i,i=l.shift())if("*"===i)i=c;else if("*"!==c&&c!==i){if(!(a=u[c+" "+i]||u["* "+i]))for(o in u)if((s=o.split(" "))[1]===i&&(a=u[c+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[o]:!0!==u[o]&&(i=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(S){return{state:"parsererror",error:a?S:"No conversion from "+c+" to "+i}}}return{state:"success",data:t}}(f,x,M,d),d?(f.ifModified&&((w=M.getResponseHeader("Last-Modified"))&&(D.lastModified[o]=w),(w=M.getResponseHeader("etag"))&&(D.etag[o]=w)),204===t||"HEAD"===f.type?C="nocontent":304===t?C="notmodified":(C=x.state,p=x.data,d=!(v=x.error))):(v=C,!t&&C||(C="error",t<0&&(t=0))),M.status=t,M.statusText=(n||C)+"",d?b.resolveWith(h,[p,C,M]):b.rejectWith(h,[M,C,v]),M.statusCode(g),g=void 0,l&&m.trigger(d?"ajaxSuccess":"ajaxError",[M,f,d?p:v]),y.fireWith(h,[M,C]),l&&(m.trigger("ajaxComplete",[M,f]),--D.active||D.event.trigger("ajaxStop")))}return M},getJSON:function(e,t,n){return D.get(e,t,n,"json")},getScript:function(e,t){return D.get(e,void 0,t,"script")}}),D.each(["get","post"],function(e,t){D[t]=function(e,n,r,o){return h(n)&&(o=o||r,r=n,n=void 0),D.ajax(D.extend({url:e,type:t,dataType:o,data:n,success:r},D.isPlainObject(e)&&e))}}),D.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),D.be=function(e,t,n){return D.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){D.globalEval(e,t,n)}})},D.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=D(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return h(e)?this.each(function(t){D(this).wrapInner(e.call(this,t))}):this.each(function(){var t=D(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h(e);return this.each(function(n){D(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){D(this).replaceWith(this.childNodes)}),this}}),D.expr.pseudos.hidden=function(e){return!D.expr.pseudos.visible(e)},D.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},D.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Vt={0:200,1223:204},Zt=D.ajaxSettings.xhr();f.cors=!!Zt&&"withCredentials"in Zt,f.ajax=Zt=!!Zt,D.ajaxTransport(function(t){var n,r;if(f.cors||Zt&&!t.crossDomain)return{send:function(o,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(c){if(n)throw c}},abort:function(){n&&n()}}}),D.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),D.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return D.globalEval(e),e}}}),D.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),D.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=D("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}});var Kt,Xt=[],Qt=/(=)\?(?=&|$)|\?\?/;D.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||D.expando+"_"+Pt.guid++;return this[e]=!0,e}}),D.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,a,s=!1!==t.jsonp&&(Qt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Qt,"$1"+o):!1!==t.jsonp&&(t.url+=(Tt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||D.error(o+" was not called"),a[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){a=arguments},r.always(function(){void 0===i?D(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Xt.push(o)),a&&h(i)&&i(a[0]),a=i=void 0}),"script"}),f.createHTMLDocument=((Kt=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Kt.childNodes.length),D.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(f.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),i=!n&&[],(o=N.exec(e))?[t.createElement(o[1])]:(o=je([e],t,i),i&&i.length&&D(i).remove(),D.merge([],o.childNodes)));var r,o,i},D.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=Dt(e.slice(s)),e=e.slice(0,s)),h(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&D.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?D("<div>").append(D.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},D.expr.pseudos.animated=function(e){return D.grep(D.timers,function(t){return e===t.elem}).length},D.offset={setOffset:function(e,t,n){var r,o,i,a,s,c,u=D.css(e,"position"),l=D(e),d={};"static"===u&&(e.style.position="relative"),s=l.offset(),i=D.css(e,"top"),c=D.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+c).indexOf("auto")>-1?(a=(r=l.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(c)||0),h(t)&&(t=t.call(e,n,D.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):l.css(d)}},D.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){D.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===D.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===D.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=D(e).offset()).top+=D.css(e,"borderTopWidth",!0),o.left+=D.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-D.css(r,"marginTop",!0),left:t.left-o.left-D.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===D.css(e,"position");)e=e.offsetParent;return e||pe})}}),D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;D.fn[e]=function(r){return K(this,function(e,r,o){var i;if(m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),D.each(["top","left"],function(e,t){D.cssHooks[t]=Ke(f.pixelPosition,function(e,n){if(n)return n=Ze(e,t),Ge.test(n)?D(e).position()[t]+"px":n})}),D.each({Height:"height",Width:"width"},function(e,t){D.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){D.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return K(this,function(t,n,o){var i;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?D.css(t,n,s):D.style(t,n,o,s)},t,a?o:void 0,a)}})}),D.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){D.fn[t]=function(e){return this.on(t,e)}}),D.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),D.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){D.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;D.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),h(e))return r=o.call(arguments,2),i=function(){return e.apply(t||this,r.concat(o.call(arguments)))},i.guid=e.guid=e.guid||D.guid++,i},D.holdReady=function(e){e?D.readyWait++:D.ready(!0)},D.isArray=Array.isArray,D.parseJSON=JSON.parse,D.nodeName=M,D.isFunction=h,D.isWindow=m,D.camelCase=te,D.type=g,D.now=Date.now,D.isNumeric=function(e){var t=D.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},D.trim=function(e){return null==e?"":(e+"").replace(en,"$1")};var tn=e.jQuery,nn=e.$;return D.noConflict=function(t){return e.$===D&&(e.$=nn),t&&e.jQuery===D&&(e.jQuery=tn),D},void 0===t&&(e.jQuery=e.$=D),D},Yt.exports=Ht.document?Gt(Ht,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return Gt(e)}));(()=>{if(window.dphelper)return;const e=setInterval(()=>{const t=dphelper?.socket?.list(),n=[];t.map(e=>{n.push(e.url)}),dphelper.t.sockets=n,n&&clearInterval(e)},1e3);Jt.ajaxSetup({async:!0,cache:!0,global:!0}),Object.preventExtensions(dphelper),Object.seal(dphelper),Object.freeze(dphelper)})();
1
+ function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t;t||(t=1,(()=>{Object.defineProperty(globalThis,"memorio",{value:{},writable:!1,configurable:!0,enumerable:!1}),Object.defineProperty(globalThis,"events",{value:{},writable:!0,enumerable:!1}),Object.defineProperty(memorio,"version",{writable:!1,enumerable:!1,value:"1.2.6"});var e=["list","state","store","observer","useObserver","remove","removeAll"];Object.defineProperty(memorio,"dispatch",{writable:!1,enumerable:!1,value:{set:(e,t={})=>{dispatchEvent(new CustomEvent(String(e),t))},listen:(e,t=null,n=!1)=>{observer.list?.[e]?.length>0&&observer.remove(e);let r=e=>t?setTimeout(()=>t(e),1):null;globalThis.addEventListener(e,r),globalThis.events[e]=r},remove:e=>{globalThis.removeEventListener(e,globalThis.events[e]),delete globalThis.events[e]}}}),Object.defineProperty(memorio,"objPath",{writable:!1,enumerable:!1,value:(e,t,n=".")=>t.concat(e).join(n)});var t=(n,r,o=[])=>new Proxy(n,{get(e,n){if("list"===n)return console.log('Some state could be hidden when you use "state.list". Use "state" to see the complete list '),JSON.parse(JSON.stringify(state));if("remove"===n)return function(t){return delete e[t],!0};if("removeAll"===n)return function(){try{for(let t in e)"function"!=typeof e[t]&&!["list","remove","removeAll"].includes(t)&&(Object.isFrozen(e[t])||delete e[t],delete e[t])}catch(t){console.error(t)}};if(Object.isFrozen(e[n]))return e[n];try{let i=Reflect.get(e,n);return i&&"object"==typeof i&&["Array","Object"].includes(i.constructor.name)?t(i,r,o.concat(n)):i}catch(i){return void console.error("Error: ",i)}},set(t,n,i){if(e.includes(n))return console.error("key "+n+" is protected"),!1;if(t[n]&&"object"==typeof t[n]&&Object.isFrozen(t[n]))return console.error(`Error: state '${n}' is locked`),!1;try{let e=globalThis.memorio.objPath(n,o);return r({action:"set",path:e,target:t,newValue:i,previousValue:Reflect.get(t,n)}),(e=>{let t=e.split(".");t.forEach((e,n)=>{let r=t.slice(0,n+1).join(".");globalThis.memorio.dispatch.set(r,{detail:{name:r}})})})("state."+e),Reflect.set(t,n,i),t[n]&&"object"==typeof t[n]&&Reflect.defineProperty(t[n],"lock",{value(){Object.defineProperty(t,n,{writable:!1,enumerable:!1}),Object.freeze(t[n])}}),!0}catch(s){return void console.error("Error in set trap:",s)}},deleteProperty(e,t){try{let n=globalThis.memorio.objPath(t,o);return r({action:"delete",path:n,target:e}),Reflect.deleteProperty(e,t)}catch(n){return void console.error("Error in deleteProperty trap:",n)}}});globalThis?.state?globalThis.state=state:globalThis.state=t({},()=>{});var n=/* @__PURE__ */new WeakSet;n.add(state),setInterval(()=>{if(!n.has(state)){alert("Memorio state is compromised, check if you override it and please reload the page");for(let e=1;e<99999;e++)clearInterval(e);stop()}},1e3),Object.defineProperty(globalThis,"state",{enumerable:!1,configurable:!0}),globalThis.observer||(globalThis.observer=null),Object.defineProperty(globalThis,"observer",{enumerable:!1,configurable:!0}),observer=(e,t=null,n=!0)=>{try{if("state"!==(r=e).split(".")[0]&&(console.error(`Observer Error: You need to declare 'state.' or 'store.'. The '${r}' string is incorrect!`),1))return}catch(o){return void console.error(o)}var r;if(e||t){if(e||!t)return e&&!t?(globalThis.memorio.dispatch.listen(String(e),{detail:{name:String(e)}}),void console.debug("called: ",e)):e&&t?"string"!=typeof e||"function"!=typeof t?void console.error("Observer Error: name of state need to be a 'string' like 'state.test' and the callback need to be a 'function'"):void globalThis.memorio.dispatch.listen(e,t,n):void 0;console.error("Observer Error: You need to declare what state need to be monitored as string like 'state.test'.")}else console.error("Observer Error: You need to setup observer correctly, Some parameters are missed!")},Object.defineProperties(observer,{list:{get:()=>globalThis.events},remove:{value:e=>{e&&(globalThis.events[e]="")}},removeAll:{get:()=>{Object.entries(observer.list).forEach(e=>{globalThis.events[e[0]]})}}}),Object.freeze(observer),globalThis.useObserver||(globalThis.useObserver=null),Object.defineProperty(globalThis,"useObserver",{enumerable:!1,configurable:!0}),useObserver=(e,t)=>{try{return observer(t,()=>e()),!0}catch(n){return void console.error(n)}},Object.freeze(useObserver),Object.defineProperty(globalThis,"store",{value:new Proxy({},{}),enumerable:!1,configurable:!0}),Object.defineProperties(store,{get:{value(e){if(e){try{let t=localStorage.getItem(e);return t&&JSON.parse(t)}catch(t){console.error(`Error parsing store item '${e}':`,t)}return null}}},set:{value(e,t){if(e){try{null==t?localStorage.setItem(e,JSON.stringify(null)):"object"==typeof t||"number"==typeof t||"boolean"==typeof t||"string"==typeof t?localStorage.setItem(e,JSON.stringify(t)):"function"==typeof t&&console.error("It's not secure to store functions.")}catch(n){console.error(`Error setting store item '${e}':`,n)}return null}}},remove:{value(e){if(e)return!!localStorage.getItem(e)&&(localStorage.removeItem(e),!0)}},delete:{value:e=>(store.remove(e),!0)},removeAll:{value:()=>(localStorage.clear(),!0)},clearAll:{value:()=>(store.removeAll(),!0)},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({usage:e,quota:t})=>(e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`),[e/1024,t/1024])).catch(e=>{console.error("Error estimating quota:",e)})}},size:{value(){let e=0;for(let t in localStorage)if(localStorage.hasOwnProperty(t)){let n=localStorage.getItem(t);n&&(e+=n.length)}return e}}}),Object.freeze(store),Object.defineProperty(globalThis,"session",{value:new Proxy({},{}),enumerable:!1,configurable:!0}),Object.defineProperties(session,{get:{value(e){if(e)try{let t=sessionStorage.getItem(e);return t&&JSON.parse(t)}catch(t){console.error(`Error parsing session item '${e}':`,t)}}},set:{value(e,t){if(e)try{null==t?sessionStorage.setItem(e,JSON.stringify(null)):"object"==typeof t||"number"==typeof t||"boolean"==typeof t||"string"==typeof t?sessionStorage.setItem(e,JSON.stringify(t)):"function"==typeof t&&console.error("It's not secure to session functions.")}catch(n){console.error(`Error setting session item '${e}':`,n)}}},remove:{value(e){if(e&&sessionStorage.getItem(e))return sessionStorage.removeItem(e),!0}},delete:{value:e=>(session.remove(e),!0)},removeAll:{value:()=>(sessionStorage.clear(),!0)},clearAll:{value:()=>(session.removeAll(),!0)},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(({usage:e,quota:t})=>{e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`)}).catch(e=>{console.error("Error estimating quota:",e)})}},size:{value(){let e=0;for(let t in sessionStorage)if(sessionStorage.hasOwnProperty(t)){let n=sessionStorage.getItem(t);n&&(e+=n.length)}return e}}}),Object.freeze(session),Object.defineProperty(window,"cache",{value:new Proxy({},{}),enumerable:!1,configurable:!0})})());var n,r,o,i={exports:{}};const s=/* @__PURE__ */e(n?i.exports:(n=1,r="undefined"!=typeof window?window:i.exports,o=function(e,t){var n=[],r=Object.getPrototypeOf,o=n.slice,i=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,a=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,f=c.toString,p=f.call(Object),d={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},v=e.document,m={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,o,i=(n=n||v).createElement("script");if(i.text=e,t)for(r in m)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var x="3.7.1",w=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!h(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:x,constructor:T,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},T.extend=T.fn.extend=function(){var e,t,n,r,o,i,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||h(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(u&&r&&(T.isPlainObject(r)||(o=Array.isArray(r)))?(n=s[t],i=o&&!Array.isArray(n)?[]:o||T.isPlainObject(n)?n:{},o=!1,s[t]=T.extend(u,i,r)):void 0!==r&&(s[t]=r));return s},T.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e)||(t=r(e))&&("function"!=typeof(n=c.call(t,"constructor")&&t.constructor)||f.call(n)!==p))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,o=e.nodeType;if(!o)for(;t=e[r++];)n+=T.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?T.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!w.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,s=!n;o<i;o++)!t(e[o],o)!==s&&r.push(e[o]);return r},map:function(e,t,n){var r,o,s=0,a=[];if(S(e))for(r=e.length;s<r;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return i(a)},guid:1,support:d}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=n[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var E=n.pop,j=n.sort,k=n.splice,A="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g");T.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(O,N)};var q=v,P=s;!function(){var t,r,i,s,l,u,f,p,h,g,v=P,m=T.expando,y=0,b=0,x=ee(),w=ee(),S=ee(),O=ee(),N=function(e,t){return e===t&&(l=!0),0},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="(?:\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+A+"*("+H+")(?:"+A+"*([*^$|!~]?=)"+A+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+A+"*\\]",M=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",I=new RegExp(A+"+","g"),$=new RegExp("^"+A+"*,"+A+"*"),F=new RegExp("^"+A+"*([>+~]|"+A+")"+A+"*"),W=new RegExp(A+"|>"),B=new RegExp(M),_=new RegExp("^"+H+"$"),z={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\([^\\r\\n\\f])","g"),G=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){le()},K=pe(function(e){return!0===e.disabled&&C(e,"fieldset")},{dir:"parentNode",next:"legend"});try{v.apply(n=o.call(q.childNodes),q.childNodes),n[q.childNodes.length].nodeType}catch(be){v={apply:function(e,t){P.apply(e,o.call(t))},call:function(e){P.apply(e,o.call(arguments,1))}}}function Z(e,t,n,r){var o,i,s,a,l,c,f,g=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||u,p)){if(11!==y&&(l=V.exec(e)))if(o=l[1]){if(9===y){if(!(s=t.getElementById(o)))return n;if(s.id===o)return v.call(n,s),n}else if(g&&(s=g.getElementById(o))&&Z.contains(t,s)&&s.id===o)return v.call(n,s),n}else{if(l[2])return v.apply(n,t.getElementsByTagName(e)),n;if((o=l[3])&&t.getElementsByClassName)return v.apply(n,t.getElementsByClassName(o)),n}if(!(O[e+" "]||h&&h.test(e))){if(f=e,g=t,1===y&&(W.test(e)||F.test(e))){for((g=J.test(e)&&ae(t.parentNode)||t)==t&&d.scope||((a=t.getAttribute("id"))?a=T.escapeSelector(a):t.setAttribute("id",a=m)),i=(c=ce(e)).length;i--;)c[i]=(a?"#"+a:":scope")+" "+fe(c[i]);f=c.join(",")}try{return v.apply(n,g.querySelectorAll(f)),n}catch(b){O(e,!0)}finally{a===m&&t.removeAttribute("id")}}}return ye(e.replace(D,"$1"),t,n,r)}function ee(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function te(e){return e[m]=!0,e}function ne(e){var t=u.createElement("fieldset");try{return!!e(t)}catch(be){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return C(t,"input")&&t.type===e}}function oe(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function ie(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te(function(t){return t=+t,te(function(n,r){for(var o,i=e([],n.length,t),s=i.length;s--;)n[o=i[s]]&&(n[o]=!(r[o]=n[o]))})})}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,n=e?e.ownerDocument||e:q;return n!=u&&9===n.nodeType&&n.documentElement?(f=(u=n).documentElement,p=!T.isXMLDoc(u),g=f.matches||f.webkitMatchesSelector||f.msMatchesSelector,f.msMatchesSelector&&q!=u&&(t=u.defaultView)&&t.top!==t&&t.addEventListener("unload",Q),d.getById=ne(function(e){return f.appendChild(e).id=T.expando,!u.getElementsByName||!u.getElementsByName(T.expando).length}),d.disconnectedMatch=ne(function(e){return g.call(e,"*")}),d.scope=ne(function(){return u.querySelectorAll(":scope")}),d.cssHas=ne(function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(be){return!0}}),d.getById?(r.filter.ID=function(e){var t=e.replace(Y,G);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Y,G);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},r.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},h=[],ne(function(e){var t;f.appendChild(e).innerHTML="<a id='"+m+"' href='' disabled='disabled'></a><select id='"+m+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+A+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+m+"-]").length||h.push("~="),e.querySelectorAll("a#"+m+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=u.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=u.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+A+"*name"+A+"*="+A+"*(?:''|\"\")")}),d.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),N=function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===u||e.ownerDocument==q&&Z.contains(q,e)?-1:t===u||t.ownerDocument==q&&Z.contains(q,t)?1:s?a.call(s,e)-a.call(s,t):0:4&n?-1:1)},u):u}for(t in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),p&&!O[t+" "]&&(!h||!h.test(t)))try{var n=g.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(be){O(t,!0)}return Z(t,u,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=u&&le(e),T.contains(e,t)},Z.attr=function(e,t){(e.ownerDocument||e)!=u&&le(e);var n=r.attrHandle[t.toLowerCase()],o=n&&c.call(r.attrHandle,t.toLowerCase())?n(e,t,!p):void 0;return void 0!==o?o:e.getAttribute(t)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.sortStable,s=!d.sortStable&&o.call(e,0),j.call(e,N),l){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)k.call(e,n[r],1)}return s=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(o.apply(this)))},(r=T.expr={cacheLength:50,createPseudo:te,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,G),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,G),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&B.test(n)&&(t=ce(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Y,G).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+A+")"+e+"("+A+"|$)"))&&x(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=Z.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(I," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,p,d,h=i!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),b=!l&&!a,x=!1;if(g){if(i){for(;h;){for(f=t;f=f[h];)if(a?C(f,v):1===f.nodeType)return!1;d=h="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&b){for(x=(p=(u=(c=g[m]||(g[m]={}))[e]||[])[0]===y&&u[1])&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[h]||(x=p=0)||d.pop();)if(1===f.nodeType&&++x&&f===t){c[e]=[y,p,x];break}}else if(b&&(x=p=(u=(c=t[m]||(t[m]={}))[e]||[])[0]===y&&u[1]),!1===x)for(;(f=++p&&f&&f[h]||(x=p=0)||d.pop())&&(!(a?C(f,v):1===f.nodeType)||!++x||(b&&((c=f[m]||(f[m]={}))[e]=[y,x]),f!==t)););return(x-=o)===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return o[m]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,n){for(var r,i=o(e,t),s=i.length;s--;)e[r=a.call(e,i[s])]=!(n[r]=i[s])}):function(e){return o(e,0,n)}):o}},pseudos:{not:te(function(e){var t=[],n=[],r=me(e.replace(D,"$1"));return r[m]?te(function(e,t,n,o){for(var i,s=r(e,null,o,[]),a=e.length;a--;)(i=s[a])&&(e[a]=!(t[a]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return Z(e,t).length>0}}),contains:te(function(e){return e=e.replace(Y,G),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}}),lang:te(function(e){return _.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(Y,G).toLowerCase(),function(t){var n;do{if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===function(){try{return u.activeElement}catch(e){}}()&&u.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ie(!1),disabled:ie(!0),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return U.test(e.nodeName)},button:function(e){return C(e,"input")&&"button"===e.type||C(e,"button")},text:function(e){var t;return C(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se(function(){return[0]}),last:se(function(e,t){return[t-1]}),eq:se(function(e,t,n){return[n<0?n+t:n]}),even:se(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:se(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:se(function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:se(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=re(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=oe(t);function ue(){}function ce(e,t){var n,o,i,s,a,l,u,c=w[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=r.preFilter;a;){for(s in n&&!(o=$.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(i=[])),n=!1,(o=F.exec(a))&&(n=o.shift(),i.push({value:n,type:o[0].replace(D," ")}),a=a.slice(n.length)),r.filter)!(o=z[s].exec(a))||u[s]&&!(o=u[s](o))||(n=o.shift(),i.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?Z.error(e):w(e,l).slice(0)}function fe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pe(e,t,n){var r=t.dir,o=t.next,i=o||r,s=n&&"parentNode"===i,a=b++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,l){var u,c,f=[y,a];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(c=t[m]||(t[m]={}),o&&C(t,o))t=t[r]||t;else{if((u=c[i])&&u[0]===y&&u[1]===a)return f[2]=u[2];if(c[i]=f,f[2]=e(t,n,l))return!0}return!1}}function de(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function he(e,t,n,r,o){for(var i,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(i=e[a])&&(n&&!n(i,r,o)||(s.push(i),u&&t.push(a)));return s}function ge(e,t,n,r,o,i){return r&&!r[m]&&(r=ge(r)),o&&!o[m]&&(o=ge(o,i)),te(function(i,s,l,u){var c,f,p,d,h=[],g=[],m=s.length,y=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)Z(e,t[r],n);return n}(t||"*",l.nodeType?[l]:l,[]),b=!e||!i&&t?y:he(y,h,e,l,u);if(n?n(b,d=o||(i?e:m||r)?[]:s,l,u):d=b,r)for(c=he(d,g),r(c,[],l,u),f=c.length;f--;)(p=c[f])&&(d[g[f]]=!(b[g[f]]=p));if(i){if(o||e){if(o){for(c=[],f=d.length;f--;)(p=d[f])&&c.push(b[f]=p);o(null,d=[],c,u)}for(f=d.length;f--;)(p=d[f])&&(c=o?a.call(i,p):h[f])>-1&&(i[c]=!(s[c]=p))}}else d=he(d===s?d.splice(m,d.length):d),o?o(null,s,d,u):v.apply(s,d)})}function ve(e){for(var t,n,o,s=e.length,l=r.relative[e[0].type],u=l||r.relative[" "],c=l?1:0,f=pe(function(e){return e===t},u,!0),p=pe(function(e){return a.call(t,e)>-1},u,!0),d=[function(e,n,r){var o=!l&&(r||n!=i)||((t=n).nodeType?f(e,n,r):p(e,n,r));return t=null,o}];c<s;c++)if(n=r.relative[e[c].type])d=[pe(de(d),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[m]){for(o=++c;o<s&&!r.relative[e[o].type];o++);return ge(c>1&&de(d),c>1&&fe(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(D,"$1"),n,c<o&&ve(e.slice(c,o)),o<s&&ve(e=e.slice(o)),o<s&&fe(e))}d.push(n)}return de(d)}function me(e,t){var n,o=[],s=[],a=S[e+" "];if(!a){for(t||(t=ce(e)),n=t.length;n--;)(a=ve(t[n]))[m]?o.push(a):s.push(a);a=S(e,function(e,t){var n=t.length>0,o=e.length>0,s=function(s,a,l,c,f){var d,h,g,m=0,b="0",x=s&&[],w=[],S=i,C=s||o&&r.find.TAG("*",f),j=y+=null==S?1:Math.random()||.1,k=C.length;for(f&&(i=a==u||a||f);b!==k&&null!=(d=C[b]);b++){if(o&&d){for(h=0,a||d.ownerDocument==u||(le(d),l=!p);g=e[h++];)if(g(d,a||u,l)){v.call(c,d);break}f&&(y=j)}n&&((d=!g&&d)&&m--,s&&x.push(d))}if(m+=b,n&&b!==m){for(h=0;g=t[h++];)g(x,w,a,l);if(s){if(m>0)for(;b--;)x[b]||w[b]||(w[b]=E.call(c));w=he(w)}v.apply(c,w),f&&!s&&w.length>0&&m+t.length>1&&T.uniqueSort(c)}return f&&(y=j,i=S),x};return n?te(s):s}(s,o)),a.selector=e}return a}function ye(e,t,n,o){var i,s,a,l,u,c="function"==typeof e&&e,f=!o&&ce(e=c.selector||e);if(n=n||[],1===f.length){if((s=f[0]=f[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===t.nodeType&&p&&r.relative[s[1].type]){if(!(t=(r.find.ID(a.matches[0].replace(Y,G),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(i=z.needsContext.test(e)?0:s.length;i--&&(a=s[i],!r.relative[l=a.type]);)if((u=r.find[l])&&(o=u(a.matches[0].replace(Y,G),J.test(s[0].type)&&ae(t.parentNode)||t))){if(s.splice(i,1),!(e=o.length&&fe(s)))return v.apply(n,o),n;break}}return(c||me(e,f))(o,t,!p,n,!t||J.test(e)&&ae(t.parentNode)||t),n}ue.prototype=r.filters=r.pseudos,r.setFilters=new ue,d.sortStable=m.split("").sort(N).join("")===m,le(),d.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(u.createElement("fieldset"))}),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=me,Z.select=ye,Z.setDocument=le,Z.tokenize=ce,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var L=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&T(e).is(n))break;r.push(e)}return r},H=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=T.expr.match.needsContext,M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,t,n){return h(t)?T.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?T.grep(e,function(e){return e===t!==n}):"string"!=typeof t?T.grep(e,function(e){return a.call(t,e)>-1!==n}):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<r;t++)if(T.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,o[t],n);return r>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&R.test(e)?T(e):e||[],!1).length}});var $,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||$,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:F.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),M.test(r[1])&&T.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=v.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,$=T(v);var W=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function _(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],s="string"!=typeof e&&T(e);if(!R.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?T.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?a.call(T(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return L(e,"parentNode")},parentsUntil:function(e,t,n){return L(e,"parentNode",n)},next:function(e){return _(e,"nextSibling")},prev:function(e){return _(e,"previousSibling")},nextAll:function(e){return L(e,"nextSibling")},prevAll:function(e){return L(e,"previousSibling")},nextUntil:function(e,t,n){return L(e,"nextSibling",n)},prevUntil:function(e,t,n){return L(e,"previousSibling",n)},siblings:function(e){return H((e.parentNode||{}).firstChild,e)},children:function(e){return H(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(e,t){T.fn[e]=function(n,r){var o=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=T.filter(r,o)),this.length>1&&(B[e]||T.uniqueSort(o),W.test(e)&&o.reverse()),this.pushStack(o)}});var z=/[^\x20\t\r\n\f]+/g;function U(e){return e}function X(e){throw e}function V(e,t,n,r){var o;try{e&&h(o=e.promise)?o.call(e).done(t).fail(n):e&&h(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(i){n.apply(void 0,[i])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(z)||[],function(e,n){t[n]=!0}),t}(e):T.extend({},e);var t,n,r,o,i=[],s=[],a=-1,l=function(){for(o=o||e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<i.length;)!1===i[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(a=i.length-1,s.push(n)),function t(n){T.each(n,function(n,r){h(r)?e.unique&&u.has(r)||i.push(r):r&&r.length&&"string"!==b(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,function(e,t){for(var n;(n=T.inArray(t,i,n))>-1;)i.splice(n,1),n<=a&&a--}),this},has:function(e){return e?T.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=s=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=s=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},T.extend({Deferred:function(t){var n=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return T.Deferred(function(t){T.each(n,function(n,r){var o=h(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=o&&o.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,r,o){var i=0;function s(t,n,r,o){return function(){var a=this,l=arguments,u=function(){var e,u;if(!(t<i)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,h(u)?o?u.call(e,s(i,n,U,o),s(i,n,X,o)):(i++,u.call(e,s(i,n,U,o),s(i,n,X,o),s(i,n,U,n.notifyWith))):(r!==U&&(a=void 0,l=[e]),(o||n.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(e){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(e,c.error),t+1>=i&&(r!==X&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?c():(T.Deferred.getErrorHook?c.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(c.error=T.Deferred.getStackHook()),e.setTimeout(c))}}return T.Deferred(function(e){n[0][3].add(s(0,e,h(o)?o:U,e.notifyWith)),n[1][3].add(s(0,e,h(t)?t:U)),n[2][3].add(s(0,e,h(r)?r:X))}).promise()},promise:function(e){return null!=e?T.extend(e,o):o}},i={};return T.each(n,function(e,t){var s=t[2],a=t[5];o[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),i[t[0]]=function(){return i[t[0]+"With"](this===i?void 0:this,arguments),this},i[t[0]+"With"]=s.fireWith}),o.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),s=T.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||s.resolveWith(r,i)}};if(t<=1&&(V(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||h(i[n]&&i[n].then)))return s.then();for(;n--;)V(i[n],a(n),s.reject);return s.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&J.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},T.readyException=function(t){e.setTimeout(function(){throw t})};var Y=T.Deferred();function G(){v.removeEventListener("DOMContentLoaded",G),e.removeEventListener("load",G),T.ready()}T.fn.ready=function(e){return Y.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||Y.resolveWith(v,[T]))}}),T.ready.then=Y.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?e.setTimeout(T.ready):(v.addEventListener("DOMContentLoaded",G),e.addEventListener("load",G));var Q=function(e,t,n,r,o,i,s){var a=0,l=e.length,u=null==n;if("object"===b(n))for(a in o=!0,n)Q(e,t,a,n[a],!0,i,s);else if(void 0!==r&&(o=!0,h(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(T(e),n)})),t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return o?e:u?t.call(e):l?t(e[0],n):i},K=/^-ms-/,Z=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(K,"ms-").replace(Z,ee)}var ne=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=T.expando+re.uid++}re.uid=1,re.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ne(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[te(t)]=n;else for(r in t)o[te(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(te):(t=te(t))in r?[t]:t.match(z)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var oe=new re,ie=new re,se=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;function le(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:se.test(e)?JSON.parse(e):e)}(n)}catch(o){}ie.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return ie.hasData(e)||oe.hasData(e)},data:function(e,t,n){return ie.access(e,t,n)},removeData:function(e,t){ie.remove(e,t)},_data:function(e,t,n){return oe.access(e,t,n)},_removeData:function(e,t){oe.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,o,i=this[0],s=i&&i.attributes;if(void 0===e){if(this.length&&(o=ie.get(i),1===i.nodeType&&!oe.get(i,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=te(r.slice(5)),le(i,r,o[r]));oe.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){ie.set(this,e)}):Q(this,function(t){var n;if(i&&void 0===t)return void 0!==(n=ie.get(i,e))||void 0!==(n=le(i,e))?n:void 0;this.each(function(){ie.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ie.remove(this,e)})}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=oe.get(e,t),n&&(!r||Array.isArray(n)?r=oe.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,o=n.shift(),i=T._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){T.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return oe.get(e,n)||oe.access(e,n,{empty:T.Callbacks("once memory").add(function(){oe.remove(e,[t+"queue",n])})})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each(function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=T.Deferred(),i=this,s=this.length,a=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=oe.get(i[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),o.promise(t)}});var ue=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ce=new RegExp("^(?:([+-])=|)("+ue+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],pe=v.documentElement,de=function(e){return T.contains(e.ownerDocument,e)},he={composed:!0};pe.getRootNode&&(de=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(he)===e.ownerDocument});var ge=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&de(e)&&"none"===T.css(e,"display")};function ve(e,t,n,r){var o,i,s=20,a=r?function(){return r.cur()}:function(){return T.css(e,t,"")},l=a(),u=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==u&&+l)&&ce.exec(T.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)T.style(e,t,c+u),(1-i)*(1-(i=a()/l||.5))<=0&&(s=0),c/=i;c*=2,T.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=o)),o}var me={};function ye(e){var t,n=e.ownerDocument,r=e.nodeName,o=me[r];return o||(t=n.body.appendChild(n.createElement(r)),o=T.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),me[r]=o,o)}function be(e,t){for(var n,r,o=[],i=0,s=e.length;i<s;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=oe.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ge(r)&&(o[i]=ye(r))):"none"!==n&&(o[i]="none",oe.set(r,"display",n)));for(i=0;i<s;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}T.fn.extend({show:function(){return be(this,!0)},hide:function(){return be(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ge(this)?T(this).show():T(this).hide()})}});var xe,we,Te=/^(?:checkbox|radio)$/i,Se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=v.createDocumentFragment().appendChild(v.createElement("div")),(we=v.createElement("input")).setAttribute("type","radio"),we.setAttribute("checked","checked"),we.setAttribute("name","t"),xe.appendChild(we),d.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",d.option=!!xe.lastChild;var Ee={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function je(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?T.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)oe.set(e[n],"globalEval",!t||oe.get(t[n],"globalEval"))}Ee.tbody=Ee.tfoot=Ee.colgroup=Ee.caption=Ee.thead,Ee.th=Ee.td,d.option||(Ee.optgroup=Ee.option=[1,"<select multiple='multiple'>","</select>"]);var Ae=/<|&#?\w+;/;function De(e,t,n,r,o){for(var i,s,a,l,u,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((i=e[d])||0===i)if("object"===b(i))T.merge(p,i.nodeType?[i]:i);else if(Ae.test(i)){for(s=s||f.appendChild(t.createElement("div")),a=(Se.exec(i)||["",""])[1].toLowerCase(),l=Ee[a]||Ee._default,s.innerHTML=l[1]+T.htmlPrefilter(i)+l[2],c=l[0];c--;)s=s.lastChild;T.merge(p,s.childNodes),(s=f.firstChild).textContent=""}else p.push(t.createTextNode(i));for(f.textContent="",d=0;i=p[d++];)if(r&&T.inArray(i,r)>-1)o&&o.push(i);else if(u=de(i),s=je(f.appendChild(i),"script"),u&&ke(s),n)for(c=0;i=s[c++];)Ce.test(i.type||"")&&n.push(i);return f}var Oe=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Pe(e,t,n,r,o,i){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Pe(e,a,n,r,t[a],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=qe;else if(!o)return e;return 1===i&&(s=o,o=function(e){return T().off(e),s.apply(this,arguments)},o.guid=s.guid||(s.guid=T.guid++)),e.each(function(){T.event.add(this,t,o,r,n)})}function Le(e,t,n){n?(oe.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,r=oe.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=o.call(arguments),oe.set(this,t,r),this[t](),n=oe.get(this,t),oe.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(oe.set(this,t,T.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===oe.get(e,t)&&T.event.add(e,t,Ne)}T.event={global:{},add:function(e,t,n,r,o){var i,s,a,l,u,c,f,p,d,h,g,v=oe.get(e);if(ne(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&T.find.matchesSelector(pe,o),n.guid||(n.guid=T.guid++),(l=v.events)||(l=v.events=/* @__PURE__ */Object.create(null)),(s=v.handle)||(s=v.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(z)||[""]).length;u--;)d=g=(a=Oe.exec(t[u])||[])[1],h=(a[2]||"").split(".").sort(),d&&(f=T.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=T.event.special[d]||{},c=T.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=l[d])||((p=l[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(d,s)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,c):p.push(c),T.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,s,a,l,u,c,f,p,d,h,g,v=oe.hasData(e)&&oe.get(e);if(v&&(l=v.events)){for(u=(t=(t||"").match(z)||[""]).length;u--;)if(d=g=(a=Oe.exec(t[u])||[])[1],h=(a[2]||"").split(".").sort(),d){for(f=T.event.special[d]||{},p=l[d=(r?f.delegateType:f.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=p.length;i--;)c=p[i],!o&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(i,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));s&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||T.removeEvent(e,d,v.handle),delete l[d])}else for(d in l)T.event.remove(e,d+t[u],n,r,!0);T.isEmptyObject(l)&&oe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,s,a=new Array(arguments.length),l=T.event.fix(e),u=(oe.get(this,"events")||/* @__PURE__ */Object.create(null))[l.type]||[],c=T.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=T.event.handlers.call(this,l,u),t=0;(o=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(r=((T.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,o,i,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=[],s={},n=0;n<l;n++)void 0===s[o=(r=t[n]).selector+" "]&&(s[o]=r.needsContext?T(o,this).index(u)>-1:T.find(o,this,null,[u]).length),s[o]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Te.test(t.type)&&t.click&&C(t,"input")&&Le(t,"click",!0),!1},trigger:function(e){var t=this||e;return Te.test(t.type)&&t.click&&C(t,"input")&&Le(t,"click"),!0},_default:function(e){var t=e.target;return Te.test(t.type)&&t.click&&C(t,"input")&&oe.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(v.documentMode){var n=oe.get(this,"handle"),r=T.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var r;if(Le(this,e,!0),!v.documentMode)return!1;(r=oe.get(this,t))||this.addEventListener(t,n),oe.set(this,t,(r||0)+1)},trigger:function(){return Le(this,e),!0},teardown:function(){var e;if(!v.documentMode)return!1;(e=oe.get(this,t)-1)?oe.set(this,t,e):(this.removeEventListener(t,n),oe.remove(this,t))},_default:function(t){return oe.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=v.documentMode?this:r,i=oe.get(o,t);i||(v.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),oe.set(o,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=v.documentMode?this:r,i=oe.get(o,t)-1;i?oe.set(o,t,i):(v.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),oe.remove(o,t))}}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),T.fn.extend({on:function(e,t,n,r){return Pe(this,e,t,n,r)},one:function(e,t,n,r){return Pe(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){T.event.remove(this,e,n,t)})}});var He=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ie(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function $e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var n,r,o,i,s,a;if(1===t.nodeType){if(oe.hasData(e)&&(a=oe.get(e).events))for(o in oe.remove(t,"handle events"),a)for(n=0,r=a[o].length;n<r;n++)T.event.add(t,o,a[o][n]);ie.hasData(e)&&(i=ie.access(e),s=T.extend({},i),ie.set(t,s))}}function Be(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Te.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function _e(e,t,n,r){t=i(t);var o,s,a,l,u,c,f=0,p=e.length,g=p-1,v=t[0],m=h(v);if(m||p>1&&"string"==typeof v&&!d.checkClone&&Re.test(v))return e.each(function(o){var i=e.eq(o);m&&(t[0]=v.call(this,o,i.html())),_e(i,t,n,r)});if(p&&(s=(o=De(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=s),s||r)){for(l=(a=T.map(je(o,"script"),$e)).length;f<p;f++)u=o,f!==g&&(u=T.clone(u,!0,!0),l&&T.merge(a,je(u,"script"))),n.call(e[f],u,f);if(l)for(c=a[a.length-1].ownerDocument,T.map(a,Fe),f=0;f<l;f++)u=a[f],Ce.test(u.type||"")&&!oe.access(u,"globalEval")&&T.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?T._evalUrl&&!u.noModule&&T._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):y(u.textContent.replace(Me,""),u,c))}return e}function ze(e,t,n){for(var r,o=t?T.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||T.cleanData(je(r)),r.parentNode&&(n&&de(r)&&ke(je(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,s,a=e.cloneNode(!0),l=de(e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(s=je(a),r=0,o=(i=je(e)).length;r<o;r++)Be(i[r],s[r]);if(t)if(n)for(i=i||je(e),s=s||je(a),r=0,o=i.length;r<o;r++)We(i[r],s[r]);else We(e,a);return(s=je(a,"script")).length>0&&ke(s,!l&&je(e,"script")),a},cleanData:function(e){for(var t,n,r,o=T.event.special,i=0;void 0!==(n=e[i]);i++)if(ne(n)){if(t=n[oe.expando]){if(t.events)for(r in t.events)o[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[oe.expando]=void 0}n[ie.expando]&&(n[ie.expando]=void 0)}}}),T.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return Q(this,function(e){return void 0===e?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return _e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)})},prepend:function(){return _e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return _e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return _e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(je(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return Q(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!He.test(e)&&!Ee[(Se.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(je(t,!1)),t.innerHTML=e);t=0}catch(o){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return _e(this,arguments,function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(je(this)),n&&n.replaceChild(t,this))},e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){T.fn[e]=function(e){for(var n,r=[],o=T(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),T(o[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Ue=new RegExp("^("+ue+")(?!px)[a-z%]+$","i"),Xe=/^--/,Ve=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Je=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Ye=new RegExp(fe.join("|"),"i");function Ge(e,t,n){var r,o,i,s,a=Xe.test(t),l=e.style;return(n=n||Ve(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(D,"$1")||void 0),""!==s||de(e)||(s=T.style(e,t)),!d.pixelBoxStyles()&&Ue.test(s)&&Ye.test(t)&&(r=l.width,o=l.minWidth,i=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=r,l.minWidth=o,l.maxWidth=i)),void 0!==s?s+"":s}function Qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",pe.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,l=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",i=12===n(c.offsetWidth/3),pe.removeChild(u),c=null}}function n(e){return Math.round(parseFloat(e))}var r,o,i,s,a,l,u=v.createElement("div"),c=v.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===c.style.backgroundClip,T.extend(d,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),i},reliableTrDimensions:function(){var t,n,r,o;return null==a&&(t=v.createElement("table"),n=v.createElement("tr"),r=v.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",pe.appendChild(t).appendChild(n).appendChild(r),o=e.getComputedStyle(n),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,pe.removeChild(t)),a}}))}();var Ke=["Webkit","Moz","ms"],Ze=v.createElement("div").style,et={};function tt(e){var t=T.cssProps[e]||et[e];return t||(e in Ze?e:et[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ke.length;n--;)if((e=Ke[n]+t)in Ze)return e}(e)||e)}var nt=/^(none|table(?!-c[ea]).+)/,rt={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function it(e,t,n){var r=ce.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function st(e,t,n,r,o,i){var s="width"===t?1:0,a=0,l=0,u=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=T.css(e,n+fe[s],!0,o)),r?("content"===n&&(l-=T.css(e,"padding"+fe[s],!0,o)),"margin"!==n&&(l-=T.css(e,"border"+fe[s]+"Width",!0,o))):(l+=T.css(e,"padding"+fe[s],!0,o),"padding"!==n?l+=T.css(e,"border"+fe[s]+"Width",!0,o):a+=T.css(e,"border"+fe[s]+"Width",!0,o));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-a-.5))||0),l+u}function at(e,t,n){var r=Ve(e),o=(!d.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),i=o,s=Ge(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(s)){if(!n)return s;s="auto"}return(!d.boxSizingReliable()&&o||!d.reliableTrDimensions()&&C(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===T.css(e,"boxSizing",!1,r),(i=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+st(e,t,n||(o?"border":"content"),i,r,s)+"px"}function lt(e,t,n,r,o){return new lt.prototype.init(e,t,n,r,o)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,s,a=te(t),l=Xe.test(t),u=e.style;if(l||(t=tt(a)),s=T.cssHooks[t]||T.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,r))?o:u[t];"string"==(i=typeof n)&&(o=ce.exec(n))&&o[1]&&(n=ve(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=o&&o[3]||(T.cssNumber[a]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var o,i,s,a=te(t);return Xe.test(t)||(t=tt(a)),(s=T.cssHooks[t]||T.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Ge(e,t,r)),"normal"===o&&t in ot&&(o=ot[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),T.each(["height","width"],function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!nt.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?at(e,t,r):Je(e,rt,function(){return at(e,t,r)})},set:function(e,n,r){var o,i=Ve(e),s=!d.scrollboxSize()&&"absolute"===i.position,a=(s||r)&&"border-box"===T.css(e,"boxSizing",!1,i),l=r?st(e,t,r,a,i):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-st(e,t,"border",!1,i)-.5)),l&&(o=ce.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),it(0,n,l)}}}),T.cssHooks.marginLeft=Qe(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Je(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+fe[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(T.cssHooks[e+t].set=it)}),T.fn.extend({css:function(e,t){return Q(this,function(e,t,n){var r,o,i={},s=0;if(Array.isArray(t)){for(r=Ve(e),o=t.length;s<o;s++)i[t[s]]=T.css(e,t[s],!1,r);return i}return void 0!==n?T.style(e,t,n):T.css(e,t)},e,t,arguments.length>1)}}),T.Tween=lt,lt.prototype={constructor:lt,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(T.cssNumber[n]?"":"px")},cur:function(){var e=lt.propHooks[this.prop];return e&&e.get?e.get(this):lt.propHooks._default.get(this)},run:function(e){var t,n=lt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):lt.propHooks._default.set(this),this}},lt.prototype.init.prototype=lt.prototype,lt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[tt(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},lt.propHooks.scrollTop=lt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=lt.prototype.init,T.fx.step={};var ut,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ct&&(!1===v.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(dt):e.setTimeout(dt,T.fx.interval),T.fx.tick())}function ht(){return e.setTimeout(function(){ut=void 0}),ut=Date.now()}function gt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=fe[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function vt(e,t,n){for(var r,o=(mt.tweeners[t]||[]).concat(mt.tweeners["*"]),i=0,s=o.length;i<s;i++)if(r=o[i].call(n,t,e))return r}function mt(e,t,n){var r,o,i=0,s=mt.prefilters.length,a=T.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=ut||ht(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),i=0,s=u.tweens.length;i<s;i++)u.tweens[i].run(r);return a.notifyWith(e,[u,r,n]),r<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:ut||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,r,o,i,s;for(n in e)if(o=t[r=te(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(s=T.cssHooks[r])&&"expand"in s)for(n in i=s.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(c,u.opts.specialEasing);i<s;i++)if(r=mt.prefilters[i].call(u,e,c,u.opts))return h(r.stop)&&(T._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return T.map(c,vt,u),h(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}T.Animation=T.extend(mt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ve(n.elem,e,ce.exec(t),n),n}]},tweener:function(e,t){h(e)?(t=e,e=["*"]):e=e.match(z);for(var n,r=0,o=e.length;r<o;r++)n=e[r],mt.tweeners[n]=mt.tweeners[n]||[],mt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,s,a,l,u,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ge(e),v=oe.get(e,"fxshow");for(r in n.queue||(null==(s=T._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,p.always(function(){p.always(function(){s.unqueued--,T.queue(e,"fx").length||s.empty.fire()})})),t)if(o=t[r],ft.test(o)){if(delete t[r],i=i||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||T.style(e,r)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=v&&v.display)&&(u=oe.get(e,"display")),"none"===(c=T.css(e,"display"))&&(u?c=u:(be([e],!0),u=e.style.display||u,c=T.css(e,"display"),be([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===T.css(e,"float")&&(l||(p.done(function(){h.display=u}),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,d)l||(v?"hidden"in v&&(g=v.hidden):v=oe.access(e,"fxshow",{display:u}),i&&(v.hidden=!g),g&&be([e],!0),p.done(function(){for(r in g||be([e]),oe.remove(e,"fxshow"),d)T.style(e,r,d[r])})),l=vt(g?v[r]:0,r,p),r in v||(v[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?mt.prefilters.unshift(e):mt.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=T.isEmptyObject(e),i=T.speed(t,n,r),s=function(){var t=mt(this,T.extend({},e),i);(o||oe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===i.queue?this.each(s):this.queue(i.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=T.timers,s=oe.get(this);if(o)s[o]&&s[o].stop&&r(s[o]);else for(o in s)s[o]&&s[o].stop&&pt.test(o)&&r(s[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||T.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=oe.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=T.timers,s=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),T.each(["toggle","show","hide"],function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(gt(t,!0),e,r,o)}}),T.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(ut=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),ut=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ct||(ct=!0,dt())},T.fx.stop=function(){ct=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,n){return t=T.fx&&T.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var o=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(o)}})},function(){var e=v.createElement("input"),t=v.createElement("select").appendChild(v.createElement("option"));e.type="checkbox",d.checkOn=""!==e.value,d.optSelected=t.selected,(e=v.createElement("input")).value="t",e.type="radio",d.radioValue="t"===e.value}();var yt,bt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return Q(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?T.prop(e,t,n):(1===i&&T.isXMLDoc(e)||(o=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(z);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),yt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var n=bt[t]||T.find.attr;bt[t]=function(e,t,r){var o,i,s=t.toLowerCase();return r||(i=bt[s],bt[s]=o,o=null!=n(e,t,r)?s:null,bt[s]=i),o}});var xt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(z)||[]).join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}T.fn.extend({prop:function(e,t){return Q(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&T.isXMLDoc(e)||(t=T.propFix[t]||t,o=T.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(e){var t,n,r,o,i,s;return h(e)?this.each(function(t){T(this).addClass(e.call(this,t,St(this)))}):(t=Ct(e)).length?this.each(function(){if(r=St(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(i=0;i<t.length;i++)o=t[i],n.indexOf(" "+o+" ")<0&&(n+=o+" ");s=Tt(n),r!==s&&this.setAttribute("class",s)}}):this},removeClass:function(e){var t,n,r,o,i,s;return h(e)?this.each(function(t){T(this).removeClass(e.call(this,t,St(this)))}):arguments.length?(t=Ct(e)).length?this.each(function(){if(r=St(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(i=0;i<t.length;i++)for(o=t[i];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s=Tt(n),r!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,o,i,s=typeof e,a="string"===s||Array.isArray(e);return h(e)?this.each(function(n){T(this).toggleClass(e.call(this,n,St(this),t),t)}):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=Ct(e),this.each(function(){if(a)for(i=T(this),o=0;o<n.length;o++)r=n[o],i.hasClass(r)?i.removeClass(r):i.addClass(r);else void 0!==e&&"boolean"!==s||((r=St(this))&&oe.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":oe.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Tt(St(n))+" ").indexOf(t)>-1)return!0;return!1}});var Et=/\r/g;T.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=h(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,T(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,function(e){return null==e?"":e+""})),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Et,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?i+1:o.length;for(r=i<0?l:s?i:0;r<l;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=T(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,o=e.options,i=T.makeArray(t),s=o.length;s--;)((r=o[s]).selected=T.inArray(T.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},d.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var jt=e.location,kt={guid:Date.now()},At=/\?/;T.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(o){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||T.error("Invalid XML: "+(r?T.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var Dt=/^(?:focusinfocus|focusoutblur)$/,Ot=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(t,n,r,o){var i,s,a,l,u,f,p,d,m=[r||v],y=c.call(t,"type")?t.type:t,b=c.call(t,"namespace")?t.namespace.split("."):[];if(s=d=a=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!Dt.test(y+T.event.triggered)&&(y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),u=y.indexOf(":")<0&&"on"+y,(t=t[T.expando]?t:new T.Event(y,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:T.makeArray(n,[t]),p=T.event.special[y]||{},o||!p.trigger||!1!==p.trigger.apply(r,n))){if(!o&&!p.noBubble&&!g(r)){for(l=p.delegateType||y,Dt.test(l+y)||(s=s.parentNode);s;s=s.parentNode)m.push(s),a=s;a===(r.ownerDocument||v)&&m.push(a.defaultView||a.parentWindow||e)}for(i=0;(s=m[i++])&&!t.isPropagationStopped();)d=s,t.type=i>1?l:p.bindType||y,(f=(oe.get(s,"events")||/* @__PURE__ */Object.create(null))[t.type]&&oe.get(s,"handle"))&&f.apply(s,n),(f=u&&s[u])&&f.apply&&ne(s)&&(t.result=f.apply(s,n),!1===t.result&&t.preventDefault());return t.type=y,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),n)||!ne(r)||u&&h(r[y])&&!g(r)&&((a=r[u])&&(r[u]=null),T.event.triggered=y,t.isPropagationStopped()&&d.addEventListener(y,Ot),r[y](),t.isPropagationStopped()&&d.removeEventListener(y,Ot),T.event.triggered=void 0,a&&(r[u]=a)),t.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var Nt=/\[\]$/,qt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Lt=/^(?:input|select|textarea|keygen)/i;function Ht(e,t,n,r){var o;if(Array.isArray(t))T.each(t,function(t,o){n||Nt.test(e)?r(e,o):Ht(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==b(t))r(e,t);else for(o in t)Ht(e+"["+o+"]",t[o],n,r)}T.param=function(e,t){var n,r=[],o=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){o(this.name,this.value)});else for(n in e)Ht(n,e[n],t,o);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Lt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!Te.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(qt,"\r\n")}}):{name:t.name,value:n.replace(qt,"\r\n")}}).get()}});var Rt=/%20/g,Mt=/#.*$/,It=/([?&])_=[^&]*/,$t=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,Wt=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Ut=v.createElement("a");function Xt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(z)||[];if(h(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Vt(e,t,n,r){var o={},i=e===_t;function s(a){var l;return o[a]=!0,T.each(e[a]||[],function(e,a){var u=a(t,n,r);return"string"!=typeof u||i||o[u]?i?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function Jt(e,t){var n,r,o=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Ut.href=jt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(jt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Jt(Jt(e,T.ajaxSettings),t):Jt(T.ajaxSettings,e)},ajaxPrefilter:Xt(Bt),ajaxTransport:Xt(_t),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,i,s,a,l,u,c,f,p,d=T.ajaxSetup({},n),h=d.context||d,g=d.context&&(h.nodeType||h.jquery)?T(h):T.event,m=T.Deferred(),y=T.Callbacks("once memory"),b=d.statusCode||{},x={},w={},S="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=$t.exec(i);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?i:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||S;return r&&r.abort(t),E(0,t),this}};if(m.promise(C),d.url=((t||d.url||jt.href)+"").replace(Wt,jt.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(z)||[""],null==d.crossDomain){l=v.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Ut.protocol+"//"+Ut.host!=l.protocol+"//"+l.host}catch(j){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),Vt(Bt,d,n,C),u)return C;for(f in(c=T.event&&d.global)&&0===T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ft.test(d.type),o=d.url.replace(Mt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Rt,"+")):(p=d.url.slice(o.length),d.data&&(d.processData||"string"==typeof d.data)&&(o+=(At.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(o=o.replace(It,"$1"),p=(At.test(o)?"&":"?")+"_="+kt.guid+++p),d.url=o+p),d.ifModified&&(T.lastModified[o]&&C.setRequestHeader("If-Modified-Since",T.lastModified[o]),T.etag[o]&&C.setRequestHeader("If-None-Match",T.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+zt+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,C,d)||u))return C.abort();if(S="abort",y.add(d.complete),C.done(d.success),C.fail(d.error),r=Vt(_t,d,n,C)){if(C.readyState=1,c&&g.trigger("ajaxSend",[C,d]),u)return C;d.async&&d.timeout>0&&(a=e.setTimeout(function(){C.abort("timeout")},d.timeout));try{u=!1,r.send(x,E)}catch(j){if(u)throw j;E(-1,j)}}else E(-1,"No Transport");function E(t,n,s,l){var f,p,v,x,w,S=n;u||(u=!0,a&&e.clearTimeout(a),r=void 0,i=l||"",C.readyState=t>0?4:0,f=t>=200&&t<300||304===t,s&&(x=function(e,t,n){for(var r,o,i,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in a)if(a[o]&&a[o].test(r)){l.unshift(o);break}if(l[0]in n)i=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}s||(s=o)}i=i||s}if(i)return i!==l[0]&&l.unshift(i),n[i]}(d,C,s)),!f&&T.inArray("script",d.dataTypes)>-1&&T.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),x=function(e,t,n,r){var o,i,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=c.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(s=u[l+" "+i]||u["* "+i]))for(o in u)if((a=o.split(" "))[1]===i&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(i=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(j){return{state:"parsererror",error:s?j:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(d,x,C,f),f?(d.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(T.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(T.etag[o]=w)),204===t||"HEAD"===d.type?S="nocontent":304===t?S="notmodified":(S=x.state,p=x.data,f=!(v=x.error))):(v=S,!t&&S||(S="error",t<0&&(t=0))),C.status=t,C.statusText=(n||S)+"",f?m.resolveWith(h,[p,S,C]):m.rejectWith(h,[C,S,v]),C.statusCode(b),b=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[C,d,f?p:v]),y.fireWith(h,[C,S]),c&&(g.trigger("ajaxComplete",[C,d]),--T.active||T.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,t){T[t]=function(e,n,r,o){return h(n)&&(o=o||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:o,data:n,success:r},T.isPlainObject(e)&&e))}}),T.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return h(e)?this.each(function(t){T(this).wrapInner(e.call(this,t))}):this.each(function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h(e);return this.each(function(n){T(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Yt={0:200,1223:204},Gt=T.ajaxSettings.xhr();d.cors=!!Gt&&"withCredentials"in Gt,d.ajax=Gt=!!Gt,T.ajaxTransport(function(t){var n,r;if(d.cors||Gt&&!t.crossDomain)return{send:function(o,i){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?i(0,"error"):i(a.status,a.statusText):i(Yt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(l){if(n)throw l}},abort:function(){n&&n()}}}),T.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}});var Qt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||T.expando+"_"+kt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,s,a=!1!==t.jsonp&&(Zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Zt,"$1"+o):!1!==t.jsonp&&(t.url+=(At.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||T.error(o+" was not called"),s[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){s=arguments},r.always(function(){void 0===i?T(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Kt.push(o)),s&&h(i)&&i(s[0]),s=i=void 0}),"script"}),d.createHTMLDocument=((Qt=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Qt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),i=!n&&[],(o=M.exec(e))?[t.createElement(o[1])]:(o=De([e],t,i),i&&i.length&&T(i).remove(),T.merge([],o.childNodes)));var r,o,i},T.fn.load=function(e,t,n){var r,o,i,s=this,a=e.indexOf(" ");return a>-1&&(r=Tt(e.slice(a)),e=e.slice(0,a)),h(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&T.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,s.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(e,t,n){var r,o,i,s,a,l,u=T.css(e,"position"),c=T(e),f={};"static"===u&&(e.style.position="relative"),a=c.offset(),i=T.css(e,"top"),l=T.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+l).indexOf("auto")>-1?(s=(r=c.position()).top,o=r.left):(s=parseFloat(i)||0,o=parseFloat(l)||0),h(t)&&(t=t.call(e,n,T.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+o),"using"in t?t.using.call(e,f):c.css(f)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(r,"marginTop",!0),left:t.left-o.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||pe})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return Q(this,function(e,r,o){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),T.each(["top","left"],function(e,t){T.cssHooks[t]=Qe(d.pixelPosition,function(e,n){if(n)return n=Ge(e,t),Ue.test(n)?T(e).position()[t]+"px":n})}),T.each({Height:"height",Width:"width"},function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){T.fn[r]=function(o,i){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===i?"margin":"border");return Q(this,function(t,n,o){var i;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?T.css(t,n,a):T.style(t,n,o,a)},t,s?o:void 0,s)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),h(e))return r=o.call(arguments,2),i=function(){return e.apply(t||this,r.concat(o.call(arguments)))},i.guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=h,T.isWindow=g,T.camelCase=te,T.type=b,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(en,"$1")};var tn=e.jQuery,nn=e.$;return T.noConflict=function(t){return e.$===T&&(e.$=nn),t&&e.jQuery===T&&(e.jQuery=tn),T},void 0===t&&(e.jQuery=e.$=T),T},i.exports=r.document?o(r,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return o(e)}));(()=>{if(window.dphelper)return;const e=setInterval(()=>{const t=dphelper?.socket?.list(),n=[];t.map(e=>{n.push(e.url)}),dphelper._list.sockets=n,n&&clearInterval(e)},1e3);s.ajaxSetup({async:!0,cache:!0,global:!0}),Object.preventExtensions(dphelper),Object.seal(dphelper),Object.freeze(dphelper)})();
2
+ //# sourceMappingURL=index.js.map