diff --git a/Makefile b/Makefile index 76ea6b8c..9e75e73f 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,17 @@ distro: buildtsc rm -r $(TMP)/doc $(TMP)/scripts $(TMP)/test* $(TMP)/tools $(TMP)/.[a-z]* $(TMP)/ts*.json # $(TMP)/meta rm -f $(TMP)/javatari && mkdir -p $(TMP)/javatari && cp -p javatari.js/release/javatari/* $(TMP)/javatari/ -tsweb: submodules node_modules +getip: + @if command -v ip > /dev/null; then \ + ip addr | grep -w inet; \ + elif command -v ifconfig > /dev/null; then \ + ifconfig | grep -w inet; \ + else \ + ipconfig | grep IPv4; \ + fi + +tsweb: submodules node_modules getip npm run esbuild-clean - (ip addr || ifconfig) | grep inet trap 'kill 0' EXIT; \ make buildgrammars; \ $(TSC) -w --preserveWatchOutput & \ diff --git a/README.md b/README.md index 267b65e3..fafb9340 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ git clone -b master --single-branch git@github.com:sehugg/8bitworkshop.git To build the 8bitworkshop IDE: ```sh +# On Windows, use the `UCRT64` shell from https://msys2.org/ +# On Linux/macOS, just type: make ``` @@ -51,7 +53,7 @@ Copyright © 2016-2026 [Steven E. Hugg](https://github.com/sehugg). This project, unless specifically noted, is multi-licensed. You may choose to adhere to the terms of either the [GPL-3.0](https://github.com/sehugg/8bitworkshop/blob/master/LICENSE) License for the entire project or respect the individual licenses of its dependencies and included code samples, as applicable. -This project includes various dependencies, modules, and components that retain their original licenses. +This project includes various dependencies, modules, and components that retain their original licenses. For detailed licensing information for each dependency, please refer to the respective files and documentation. All included code samples located in the `presets/` directory are licensed under diff --git a/gen/basic-45YYAJR7.js b/gen/basic-YSHCM4RD.js similarity index 99% rename from gen/basic-45YYAJR7.js rename to gen/basic-YSHCM4RD.js index 9521eee9..e7e4d7e0 100644 --- a/gen/basic-45YYAJR7.js +++ b/gen/basic-YSHCM4RD.js @@ -1,4 +1,4 @@ -import{b as S}from"./chunk-3FIVEUG2.js";import{s as E}from"./chunk-47XAKUGC.js";import"./chunk-JSIZCY7X.js";import"./chunk-LNOKARBD.js";import"./chunk-2YPLCPQR.js";import"./chunk-TBY42HNR.js";import{B as c,K as f,T as d,U as v,a as g}from"./chunk-6VYEJCUW.js";import"./chunk-KT7KMEQC.js";function k(u){return u.value!=null}function y(u){return u.name!=null}function N(u){return u.op!=null&&u.left!=null&&u.right!=null}function O(u){return u.op!=null&&u.expr!=null}var m=class{randomize(){this.seed(Math.random()*2147483647,Math.random()*2147483647,Math.random()*2147483647,Math.random()*2147483647)}constructor(){(()=>{var r,e,i,n;this.seed=function(s,a,h,o){r=s,e=a,i=h,n=o},this.seedfloat=function(s){this.seed(s,s*4294,s*429496,s*4294967296),this.next(),this.next(),this.next()},this.next=function(){r>>>=0,e>>>=0,i>>>=0,n>>>=0;var s=r+e|0;return r=e^e>>>9,e=i+(i<<3)|0,i=i<<21|i>>>11,n=n+1|0,s=s+n|0,i=i+s|0,(s>>>0)/4294967296}})(),this.seedfloat(-1)}},I=1024*1024,l=class u{constructor(){this.margin=80;this.running=!1;this.exited=!0;this.trace=!1}load(t){let r=null,e=0;if(this.pc2label!=null){let s=this.curpc;for(;s>0&&(r=this.pc2label.get(s))==null;)s--;e=this.curpc-s,console.log("oldpc=",this.curpc,"restart @ label",r,"+",e)}this.program=t,this.opts=t.opts,this.opts.maxArrayElements||(this.opts.maxArrayElements=I),this.allstmts=t.stmts,this.label2pc=t.labels,this.label2dataptr={},this.pc2label=new Map,this.datums=[],this.subroutines={},this.builtins=this.getBuiltinFunctions();for(var i in t.labels){var n=t.labels[i];this.pc2label.set(n,i)}return this.allstmts.forEach((s,a)=>{this.curpc=a+1,this.compileStatement(s),s.command=="DATA"&&(this.label2dataptr[s.$loc.label]=this.datums.length,s.datums.forEach(h=>{this.curpc=s.$loc.offset,this.datums.push(h)}))}),this.label2pc[r]!=null?(this.curpc=this.label2pc[r]+e,!0):(this.curpc=0,!1)}reset(){this.curpc=0,this.dataptr=0,this.clearVars(),this.returnStack=[],this.column=0,this.running=!0,this.exited=!1}clearVars(){this.globals=this.vars={},this.arrays={},this.defs={},this.forLoops={},this.forLoopStack=[],this.whileLoops=[],this.rng=new m,this.opts&&this.opts.staticArrays&&this.allstmts.filter(t=>t.command=="DIM").forEach(t=>{t.args.forEach(r=>this.compileJS(this._DIM(r))())})}saveState(){return $.extend(!0,{},this)}loadState(t){$.extend(!0,this,t)}getBuiltinFunctions(){var t=this.program&&this.opts.validFunctions;t||(t=Object.getOwnPropertyNames(u.prototype).filter(i=>/^[A-Z]{3,}[$]?$/.test(i)));var r={};for(var e of t)this.supportsFunction(e)&&(r[e]=this[e].bind(this));return r}supportsFunction(t){return typeof this[t]=="function"}runtimeError(t){throw this.curpc--,new d(t,this.getCurrentSourceLocation())}dialectError(t){this.runtimeError(`I can't ${t} in this dialect of BASIC.`)}getLineForPC(t){var r=this.allstmts[t];return r&&r.$loc&&r.$loc.line}getLabelForPC(t){var r=this.allstmts[t];return r&&r.$loc&&r.$loc.label}getCurrentSourceLocation(){var t=this.getStatement();return t&&t.$loc}getCurrentLabel(){var t=this.getCurrentSourceLocation();return t&&t.label}getStatement(){return this.allstmts[this.curpc]}step(){if(!this.running)return!1;var t=this.getStatement();return t?(this.trace&&console.log(this.curpc,t,this.vars,Object.keys(this.arrays)),this.curpc++,this.executeStatement(t),this.running):(this.running=!1,this.exited=!0,!1)}compileStatement(t){if(t.$run==null)try{var r=this["do__"+t.command];r==null&&this.runtimeError(`I don't know how to "${t.command}".`);var e=r.bind(this)(t);this.trace&&console.log(e),t.$run=this.compileJS(e)}catch(i){throw e&&console.log(e),i}}compileJS(t){return new Function(t).bind(this)}executeStatement(t){this.compileStatement(t),t.$run()}skipToEOL(){do this.curpc++;while(this.curpc=0?this.curpc=r:this.runtimeError(`I tried to go to the label "${t}" but couldn't find it.`)}newLocalScope(){this.vars=Object.create(this.vars)}popLocalScope(){this.vars!==this.globals&&(this.vars=Object.getPrototypeOf(this.vars))}gosubLabel(t){this.returnStack.length>32767&&this.runtimeError("I did too many GOSUBs without a RETURN."),this.returnStack.push(this.curpc),this.gotoLabel(t)}returnFromGosub(){this.returnStack.length==0&&this.runtimeError("I tried to RETURN, but there wasn't a corresponding GOSUB.");var t=this.returnStack.pop();this.curpc=t,this.popLocalScope()}popReturnStack(){this.returnStack.length==0&&this.runtimeError("I tried to POP, but there wasn't a corresponding GOSUB."),this.returnStack.pop()}valueToString(t,r){var e;if(typeof t=="number"){var i=this.float2str(t,this.opts.printZoneLength-4);return r?i.startsWith("-")?`${i} `:` ${i} `:i}else if(t==` +import{b as S}from"./chunk-3FIVEUG2.js";import{s as E}from"./chunk-OG4RI6EI.js";import"./chunk-JSIZCY7X.js";import"./chunk-LNOKARBD.js";import"./chunk-NSHJSYBI.js";import"./chunk-TBY42HNR.js";import{B as c,K as f,T as d,U as v,a as g}from"./chunk-6VYEJCUW.js";import"./chunk-KT7KMEQC.js";function k(u){return u.value!=null}function y(u){return u.name!=null}function N(u){return u.op!=null&&u.left!=null&&u.right!=null}function O(u){return u.op!=null&&u.expr!=null}var m=class{randomize(){this.seed(Math.random()*2147483647,Math.random()*2147483647,Math.random()*2147483647,Math.random()*2147483647)}constructor(){(()=>{var r,e,i,n;this.seed=function(s,a,h,o){r=s,e=a,i=h,n=o},this.seedfloat=function(s){this.seed(s,s*4294,s*429496,s*4294967296),this.next(),this.next(),this.next()},this.next=function(){r>>>=0,e>>>=0,i>>>=0,n>>>=0;var s=r+e|0;return r=e^e>>>9,e=i+(i<<3)|0,i=i<<21|i>>>11,n=n+1|0,s=s+n|0,i=i+s|0,(s>>>0)/4294967296}})(),this.seedfloat(-1)}},I=1024*1024,l=class u{constructor(){this.margin=80;this.running=!1;this.exited=!0;this.trace=!1}load(t){let r=null,e=0;if(this.pc2label!=null){let s=this.curpc;for(;s>0&&(r=this.pc2label.get(s))==null;)s--;e=this.curpc-s,console.log("oldpc=",this.curpc,"restart @ label",r,"+",e)}this.program=t,this.opts=t.opts,this.opts.maxArrayElements||(this.opts.maxArrayElements=I),this.allstmts=t.stmts,this.label2pc=t.labels,this.label2dataptr={},this.pc2label=new Map,this.datums=[],this.subroutines={},this.builtins=this.getBuiltinFunctions();for(var i in t.labels){var n=t.labels[i];this.pc2label.set(n,i)}return this.allstmts.forEach((s,a)=>{this.curpc=a+1,this.compileStatement(s),s.command=="DATA"&&(this.label2dataptr[s.$loc.label]=this.datums.length,s.datums.forEach(h=>{this.curpc=s.$loc.offset,this.datums.push(h)}))}),this.label2pc[r]!=null?(this.curpc=this.label2pc[r]+e,!0):(this.curpc=0,!1)}reset(){this.curpc=0,this.dataptr=0,this.clearVars(),this.returnStack=[],this.column=0,this.running=!0,this.exited=!1}clearVars(){this.globals=this.vars={},this.arrays={},this.defs={},this.forLoops={},this.forLoopStack=[],this.whileLoops=[],this.rng=new m,this.opts&&this.opts.staticArrays&&this.allstmts.filter(t=>t.command=="DIM").forEach(t=>{t.args.forEach(r=>this.compileJS(this._DIM(r))())})}saveState(){return $.extend(!0,{},this)}loadState(t){$.extend(!0,this,t)}getBuiltinFunctions(){var t=this.program&&this.opts.validFunctions;t||(t=Object.getOwnPropertyNames(u.prototype).filter(i=>/^[A-Z]{3,}[$]?$/.test(i)));var r={};for(var e of t)this.supportsFunction(e)&&(r[e]=this[e].bind(this));return r}supportsFunction(t){return typeof this[t]=="function"}runtimeError(t){throw this.curpc--,new d(t,this.getCurrentSourceLocation())}dialectError(t){this.runtimeError(`I can't ${t} in this dialect of BASIC.`)}getLineForPC(t){var r=this.allstmts[t];return r&&r.$loc&&r.$loc.line}getLabelForPC(t){var r=this.allstmts[t];return r&&r.$loc&&r.$loc.label}getCurrentSourceLocation(){var t=this.getStatement();return t&&t.$loc}getCurrentLabel(){var t=this.getCurrentSourceLocation();return t&&t.label}getStatement(){return this.allstmts[this.curpc]}step(){if(!this.running)return!1;var t=this.getStatement();return t?(this.trace&&console.log(this.curpc,t,this.vars,Object.keys(this.arrays)),this.curpc++,this.executeStatement(t),this.running):(this.running=!1,this.exited=!0,!1)}compileStatement(t){if(t.$run==null)try{var r=this["do__"+t.command];r==null&&this.runtimeError(`I don't know how to "${t.command}".`);var e=r.bind(this)(t);this.trace&&console.log(e),t.$run=this.compileJS(e)}catch(i){throw e&&console.log(e),i}}compileJS(t){return new Function(t).bind(this)}executeStatement(t){this.compileStatement(t),t.$run()}skipToEOL(){do this.curpc++;while(this.curpc=0?this.curpc=r:this.runtimeError(`I tried to go to the label "${t}" but couldn't find it.`)}newLocalScope(){this.vars=Object.create(this.vars)}popLocalScope(){this.vars!==this.globals&&(this.vars=Object.getPrototypeOf(this.vars))}gosubLabel(t){this.returnStack.length>32767&&this.runtimeError("I did too many GOSUBs without a RETURN."),this.returnStack.push(this.curpc),this.gotoLabel(t)}returnFromGosub(){this.returnStack.length==0&&this.runtimeError("I tried to RETURN, but there wasn't a corresponding GOSUB.");var t=this.returnStack.pop();this.curpc=t,this.popLocalScope()}popReturnStack(){this.returnStack.length==0&&this.runtimeError("I tried to POP, but there wasn't a corresponding GOSUB."),this.returnStack.pop()}valueToString(t,r){var e;if(typeof t=="number"){var i=this.float2str(t,this.opts.printZoneLength-4);return r?i.startsWith("-")?`${i} `:` ${i} `:i}else if(t==` `)this.column=0,e=t;else if(t==" "){var n=this.opts.printZoneLength,s=Math.floor(this.column/n),a=(s+1)*this.opts.printZoneLength;a+n>this.margin?(this.column=0,e=` `):e=this.TAB(a)}else e=`${t}`;return e}float2str(t,r){var e=t.toString().toUpperCase();if(r>0){for(var i=r;e.length>r;)e=t.toPrecision(i--);e.startsWith("0.")?e=e.substr(1):e.startsWith("-0.")&&(e="-"+e.substr(2))}return e}printExpr(t){var r=this.valueToString(t,this.opts.numericPadding);this.column+=r.length,this.print(r)}print(t){console.log(t)}async input(t,r){return{line:"",vals:[]}}resume(){}expr2js(t,r){if(r||(r={}),k(t))return JSON.stringify(t.value);if(y(t)){if(!t.args&&r.locals&&r.locals.indexOf(t.name)>=0)return t.name;{r.isconst&&this.runtimeError("I expected a constant value here.");var e="",i=JSON.stringify(t.name);let h=t.args?t.args.map(o=>this.expr2js(o,r)).join(", "):[];return t.name.startsWith("FN")?e+=`this.getDef(${i})(${h})`:this.builtins[t.name]?(this.checkFuncArgs(t,this.builtins[t.name]),e+=`this.builtins.${t.name}(${h})`):t.args?this.opts.arraysContainChars&&t.name.endsWith("$")?e+=`this.getStringSlice(this.vars.${t.name}, ${h})`:e+=`this.arrayGet(${i}, ${h})`:e+=`this.vars.${t.name}`,r.novalid?e:`this.checkValue(${e}, ${i})`}}else if(N(t)){var n=this.expr2js(t.left,r),s=this.expr2js(t.right,r);return`this.${t.op}(${n}, ${s})`}else if(O(t)){var a=this.expr2js(t.expr,r);return`this.${t.op}(${a})`}}assign2js(t,r){r||(r={});var e="";return(t.name.startsWith("FN")||this.builtins[t.name])&&this.runtimeError("I can't call a function here."),t.args?this.opts.arraysContainChars&&t.name.endsWith("$")?this.runtimeError("I can't set array slices via this command yet."):e+=this.array2js(t,r):e=`this.globals.${t.name}`,e}array2js(t,r){var e=JSON.stringify(t.name),i=t.args||[];return this.expr2js(t,{novalid:!0})+`;this.getArray(${e}, ${i.length})`+i.map(n=>"[this.ROUND("+this.expr2js(n,r)+")]").join("")}checkFuncArgs(t,r){var e=t.args?t.args.length:0;t.name=="RND"&&e==0||t.name=="MID$"&&e==2||t.name=="INSTR"&&e==2||r.length!=e&&this.runtimeError(`I expected ${r.length} arguments for the ${t.name} function, but I got ${e}.`)}startForLoop(t,r,e,i,n){var s=this.curpc-1,a=this.pc2label.get(s);i||(i=1),this.vars[t]=r,this.trace&&console.log(`FOR ${t} = ${r} TO ${e} STEP ${i}`);var h=()=>i>=0?this.vars[t]>e:this.vars[t]o==t)),this.forLoopStack.push(t),this.forLoops[t]={$next:o=>{o&&t!=o&&this.runtimeError(`I executed NEXT "${o}", but the last FOR was for "${t}".`),this.vars[t]+=i;var b=h();b?(this.forLoopStack.pop(),delete this.forLoops[t]):this.curpc=(a!=null&&this.label2pc[a]||s)+1,this.trace&&console.log(`NEXT ${t}: ${this.vars[t]} TO ${e} STEP ${i} DONE=${b}`)}}}nextForLoop(t){var r=this.forLoops[t||this.opts.optionalNextVar&&this.forLoopStack[this.forLoopStack.length-1]];r||this.runtimeError("I couldn't find a matching FOR for this NEXT."),r.$next(t)}whileLoop(t){t?this.whileLoops.push(this.curpc-1):this.skipToAfterWend()}nextWhileLoop(){var t=this.whileLoops.pop();t==null?this.runtimeError("I couldn't find a matching WHILE for this WEND."):this.curpc=t}assign(t,r,e){return e&&t.endsWith("$")?this.checkValue(this.convert(t,r),t):t.endsWith("$")?this.convertToString(r,t):this.convertToNumber(r,t)}convert(t,r){return t.endsWith("$")?r==null?"":r.toString():typeof r=="number"?r:parseFloat(r+"")}convertToString(t,r){if(typeof t!="string")this.runtimeError(`I can't convert ${t} to a string.`);else return t}convertToNumber(t,r){if(typeof t!="number")this.runtimeError(`I can't convert ${t} to a number.`);else return this.checkNum(t)}dimArray(t,...r){if(r=r.map(Math.round),this.arrays[t]!=null){if(this.opts.staticArrays)return;this.runtimeError(`I already dimensioned this array (${t}) earlier.`)}var e=this.getTotalArrayLength(r);e>this.opts.maxArrayElements&&this.runtimeError("I can't create an array with this many elements.");var i=t.endsWith("$"),n=i?Array:Float64Array;if(r.length==1)this.arrays[t]=new n(r[0]+1);else if(r.length==2){this.arrays[t]=new Array(r[0]+1);for(var s=0;s=i.length&&this.runtimeError(`I tried to lookup ${t}(${r}) but it exceeded the dimensions of the array.`),i=i[r[n]]}return c(i)&&this.runtimeError(`I tried to lookup ${t}(${r}) but used too few dimensions.`),i}modifyStringSlice(t,r,e,i){return t=t||"",this.checkString(t),this.checkString(r),i||(i=e),e=this.ROUND(e),i=this.ROUND(i),e<1&&this.dialectError("accept a string slice index less than 1"),ir.length)&&this.runtimeError(`I needed a number between 1 and ${r.length}, but I got ${t}.`),t<1||t>r.length?0:t}onGotoLabel(t,...r){t=this.checkOnGoto(t,r),t&&this.gotoLabel(r[t-1])}onGosubLabel(t,...r){t=this.checkOnGoto(t,r),t&&this.gosubLabel(r[t-1])}nextDatum(){return this.dataptr>=this.datums.length&&this.runtimeError("I tried to READ, but ran out of data."),this.datums[this.dataptr++].value}do__PRINT(t){var r="";for(var e of t.args){var i=this.expr2js(e),n=i.name;r+=`this.printExpr(this.checkValue(${i}, ${JSON.stringify(n)}));`}return r}preInput(){this.running=!1,this.curpc--}postInput(t){t&&this.curpc++,this.running=!0,this.resume()}do__INPUT(t){var r=t.prompt!=null?this.expr2js(t.prompt):'""',e=t.elapsed!=null?this.assign2js(t.elapsed):"let ___",i="";return t.args.forEach((n,s)=>{var a=this.assign2js(n);i+=` var value = this.convert(${JSON.stringify(n.name)}, response.vals[${s}]); @@ -34,4 +34,4 @@ import{b as S}from"./chunk-3FIVEUG2.js";import{s as E}from"./chunk-47XAKUGC.js"; `),this.tty.addtext("*** END OF PROGRAM ***",1),this.tty.showPrintHead(!1)}loadROM(t,r){var e=this.runtime.exited;this.program=r;var i=this.runtime.load(r);this.tty.uppercaseOnly=!0,(!this.hotReload||e||!i)&&this.reset()}getROMExtension(){return".json"}reset(){this.tty.clear(),this.runtime.reset(),this.clock=0,this.transcript=[]}pause(){this.timer.stop()}resume(){this.isBlocked()||(this.animcount=0,this.timer.start())}isBlocked(){return this.tty.waitingfor!=null||this.runtime.exited}isRunning(){return this.timer.isRunning()}getDefaultExtensions(){return[".bas"]}getToolForFilename(){return"basic"}getPresets(){return L}getPC(){return this.runtime.curpc}getSP(){return 4096-this.runtime.returnStack.length}isStable(){return!0}getCPUState(){return{PC:this.getPC(),SP:this.getSP()}}saveState(){return{c:this.getCPUState(),rt:this.runtime.saveState()}}loadState(t){this.runtime.loadState(t)}getDebugTree(){return{CurrentLine:this.runtime.getCurrentLabel(),Variables:this.runtime.vars,Arrays:this.runtime.arrays,Functions:this.runtime.defs,ForLoops:this.runtime.forLoops,WhileLoops:this.runtime.whileLoops,ReturnStack:this.runtime.returnStack,NextDatum:this.runtime.datums[this.runtime.dataptr],Clock:this.clock,Options:this.runtime.opts,Internals:this.runtime}}inspect(t){let r=this.runtime.vars[t];if(r!=null)return`${t} = ${r}`}showHelp(){return"https://8bitworkshop.com/docs/platforms/basic/"}getDebugCategories(){return["Variables"]}getDebugInfo(t,r){switch(t){case"Variables":return this.varsToLongString()}}varsToLongString(){var t="",r=Object.keys(this.runtime.vars);r.sort();for(var e of r){var i=this.runtime.vars[e],n=JSON.stringify(i);n.length>24&&(n=`${n.substr(0,24)}...(${n.length})`),t+=g(e,3)+" = "+n+` `}return t}setupDebug(t){this.onBreakpointHit=t}clearDebug(){this.onBreakpointHit=null,this.debugTrap=null}checkDebugTrap(){return this.debugTrap&&this.debugTrap()?(this.pause(),this.break(),!0):!1}break(){this.onBreakpointHit&&this.onBreakpointHit(this.saveState())}step(){var t=this.clock;this.debugTrap=()=>this.clock>t,this.resume()}stepOver(){var t=this.runtime.getStatement();if(t&&(t.command=="GOSUB"||t.command=="ONGOSUB")){var r=this.getPC()+1;this.runEval(()=>this.getPC()==r)}else this.step()}runUntilReturn(){var t=this.getSP();this.runEval(()=>this.getSP()>t)}runEval(t){this.debugTrap=()=>t(this.getCPUState()),this.resume()}restartAtPC(t){return t=Math.round(t),t>=0&&t{(function(l,e){typeof define=="function"&&define.amd?define([],e):typeof d!="undefined"?e():(e(),l.FileSaver={})})(d,function(){"use strict";function l(t,r){return typeof r=="undefined"?r={autoBom:!1}:typeof r!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function e(t,r,c){var a=new XMLHttpRequest;a.open("GET",t),a.responseType="blob",a.onload=function(){h(a.response,r,c)},a.onerror=function(){console.error("could not download file")},a.send()}function n(t){var r=new XMLHttpRequest;r.open("HEAD",t,!1);try{r.send()}catch(c){}return 200<=r.status&&299>=r.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(c){var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,u=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(t,r,c){var a=o.URL||o.webkitURL,s=document.createElement("a");r=r||t.name||"download",s.download=r,s.rel="noopener",typeof t=="string"?(s.href=t,s.origin===location.origin?i(s):n(s.href)?e(t,r,c):i(s,s.target="_blank")):(s.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(s.href)},4e4),setTimeout(function(){i(s)},0))}:"msSaveOrOpenBlob"in navigator?function(t,r,c){if(r=r||t.name||"download",typeof t!="string")navigator.msSaveOrOpenBlob(l(t,c),r);else if(n(t))e(t,r,c);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){i(a)})}}:function(t,r,c,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),typeof t=="string")return e(t,r,c);var s=t.type==="application/octet-stream",C=/constructor/i.test(o.HTMLElement)||o.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||s&&C||u)&&typeof FileReader!="undefined"){var p=new FileReader;p.onloadend=function(){var m=p.result;m=S?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=m:location=m,a=null},p.readAsDataURL(t)}else{var k=o.URL||o.webkitURL,f=k.createObjectURL(t);a?a.location=f:location.href=f,a=null,setTimeout(function(){k.revokeObjectURL(f)},4e4)}});o.saveAs=h.saveAs=h,typeof v!="undefined"&&(v.exports=h)})});var g=class{constructor(e){this.checkpointInterval=10;this.maxCheckpoints=300;this.reset(),this.platform=e}reset(){this.checkpoints=[],this.framerecs=[],this.frameCount=0,this.lastSeekFrame=0,this.lastSeekStep=0,this.lastStepCount=0,this.callbackStateChanged&&this.callbackStateChanged()}frameRequested(){var e={controls:this.platform.saveControlsState(),seed:b()},n=!1;return this.lastSeekFramethis.maxCheckpoints&&(this.checkpoints.shift(),this.framerecs=this.framerecs.slice(this.checkpointInterval),this.lastSeekFrame-=this.checkpointInterval,this.frameCount-=this.checkpointInterval,this.callbackStateChanged&&this.callbackStateChanged())}getStateAtOrBefore(e){if(e<=0&&this.checkpoints.length>0)return{frame:0,state:this.checkpoints[0]};var n=Math.floor(e/this.checkpointInterval),i=n0&&this.platform.advanceFrameClock&&(n=this.platform.advanceFrameClock(null,n)),this.lastSeekFrame=e,this.lastSeekStep=n,this.lastStepCount=u,e}else return-1}loadControls(e){this.platform.loadControlsState&&this.platform.loadControlsState(this.framerecs[e].controls),w(this.framerecs[e].seed)}getLastCheckpoint(){return this.checkpoints.length&&this.checkpoints[this.checkpoints.length-1]}};function R(l){switch(l){case"apple2":return import("./apple2-WUPDM2B3.js");case"arm32":return import("./arm32-JW2TD5TA.js");case"astrocade":return import("./astrocade-OFZNQTKD.js");case"atari7800":return import("./atari7800-MRJI4BD5.js");case"atari8":return import("./atari8-BLAA3MIK.js");case"basic":return import("./basic-45YYAJR7.js");case"c64":return import("./c64-4RINWVAV.js");case"channelf":return import("./channelf-TNHO7MP5.js");case"coleco":return import("./coleco-MJYGJ4EZ.js");case"cpc":return import("./cpc-UC6Q2W6F.js");case"devel":return import("./devel-7ZAVV655.js");case"exidy":return import("./exidy-K3HJBUWP.js");case"galaxian":return import("./galaxian-RNANB2GB.js");case"gb":return import("./gb-HHZGVRIU.js");case"gameboy":return import("./gb-HHZGVRIU.js");case"kim1":return import("./kim1-P2QBZOFE.js");case"markdown":return import("./markdown-JUOLLYEJ.js");case"mcr":return import("./mcr-UJKSGJWY.js");case"msx":return import("./msx-D6D4AZ2V.js");case"mw8080bw":return import("./mw8080bw-UKKXGK62.js");case"nes":return import("./nes-5MJGD6QV.js");case"pce":return import("./pce-5G3EEKIY.js");case"sms":return import("./sms-3QV6XP7F.js");case"sound_konami":return import("./sound_konami-DP3T7QIR.js");case"sound_williams":return import("./sound_williams-T4RNNXZN.js");case"vcs":return import("./vcs-PDAYLXFU.js");case"vector":return import("./vector-LTZHZNSR.js");case"vectrex":return import("./vectrex-AAMO6IB2.js");case"verilog":return import("./verilog-BR4BSCO2.js");case"vic20":return import("./vic20-F3C6WKYQ.js");case"vicdual":return import("./vicdual-QFLCFBJI.js");case"williams":return import("./williams-YIU5NAAT.js");case"x86":return import("./x86-NL7ISPMM.js");case"zmachine":return import("./zmachine-MWS3S5K7.js");case"zx":return import("./zx-ILHJAJX2.js");default:throw new Error(`Platform not recognized: '${l}'`)}}export{g as a,R as b,y as c}; -//# sourceMappingURL=chunk-2YPLCPQR.js.map +import{M as b,N as w}from"./chunk-6VYEJCUW.js";import{d as E}from"./chunk-KT7KMEQC.js";var y=E((d,v)=>{(function(l,e){typeof define=="function"&&define.amd?define([],e):typeof d!="undefined"?e():(e(),l.FileSaver={})})(d,function(){"use strict";function l(t,r){return typeof r=="undefined"?r={autoBom:!1}:typeof r!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function e(t,r,c){var a=new XMLHttpRequest;a.open("GET",t),a.responseType="blob",a.onload=function(){h(a.response,r,c)},a.onerror=function(){console.error("could not download file")},a.send()}function n(t){var r=new XMLHttpRequest;r.open("HEAD",t,!1);try{r.send()}catch(c){}return 200<=r.status&&299>=r.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(c){var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,u=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(t,r,c){var a=o.URL||o.webkitURL,s=document.createElement("a");r=r||t.name||"download",s.download=r,s.rel="noopener",typeof t=="string"?(s.href=t,s.origin===location.origin?i(s):n(s.href)?e(t,r,c):i(s,s.target="_blank")):(s.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(s.href)},4e4),setTimeout(function(){i(s)},0))}:"msSaveOrOpenBlob"in navigator?function(t,r,c){if(r=r||t.name||"download",typeof t!="string")navigator.msSaveOrOpenBlob(l(t,c),r);else if(n(t))e(t,r,c);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){i(a)})}}:function(t,r,c,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),typeof t=="string")return e(t,r,c);var s=t.type==="application/octet-stream",C=/constructor/i.test(o.HTMLElement)||o.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||s&&C||u)&&typeof FileReader!="undefined"){var p=new FileReader;p.onloadend=function(){var m=p.result;m=S?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=m:location=m,a=null},p.readAsDataURL(t)}else{var k=o.URL||o.webkitURL,f=k.createObjectURL(t);a?a.location=f:location.href=f,a=null,setTimeout(function(){k.revokeObjectURL(f)},4e4)}});o.saveAs=h.saveAs=h,typeof v!="undefined"&&(v.exports=h)})});var g=class{constructor(e){this.checkpointInterval=10;this.maxCheckpoints=300;this.reset(),this.platform=e}reset(){this.checkpoints=[],this.framerecs=[],this.frameCount=0,this.lastSeekFrame=0,this.lastSeekStep=0,this.lastStepCount=0,this.callbackStateChanged&&this.callbackStateChanged()}frameRequested(){var e={controls:this.platform.saveControlsState(),seed:b()},n=!1;return this.lastSeekFramethis.maxCheckpoints&&(this.checkpoints.shift(),this.framerecs=this.framerecs.slice(this.checkpointInterval),this.lastSeekFrame-=this.checkpointInterval,this.frameCount-=this.checkpointInterval,this.callbackStateChanged&&this.callbackStateChanged())}getStateAtOrBefore(e){if(e<=0&&this.checkpoints.length>0)return{frame:0,state:this.checkpoints[0]};var n=Math.floor(e/this.checkpointInterval),i=n0&&this.platform.advanceFrameClock&&(n=this.platform.advanceFrameClock(null,n)),this.lastSeekFrame=e,this.lastSeekStep=n,this.lastStepCount=u,e}else return-1}loadControls(e){this.platform.loadControlsState&&this.platform.loadControlsState(this.framerecs[e].controls),w(this.framerecs[e].seed)}getLastCheckpoint(){return this.checkpoints.length&&this.checkpoints[this.checkpoints.length-1]}};function R(l){switch(l){case"apple2":return import("./apple2-WUPDM2B3.js");case"arm32":return import("./arm32-JW2TD5TA.js");case"astrocade":return import("./astrocade-OFZNQTKD.js");case"atari7800":return import("./atari7800-MRJI4BD5.js");case"atari8":return import("./atari8-BLAA3MIK.js");case"basic":return import("./basic-YSHCM4RD.js");case"c64":return import("./c64-4RINWVAV.js");case"channelf":return import("./channelf-TNHO7MP5.js");case"coleco":return import("./coleco-MJYGJ4EZ.js");case"cpc":return import("./cpc-UC6Q2W6F.js");case"devel":return import("./devel-M3W5YMR2.js");case"exidy":return import("./exidy-K3HJBUWP.js");case"galaxian":return import("./galaxian-RNANB2GB.js");case"gb":return import("./gb-HHZGVRIU.js");case"gameboy":return import("./gb-HHZGVRIU.js");case"kim1":return import("./kim1-P2QBZOFE.js");case"markdown":return import("./markdown-JUOLLYEJ.js");case"mcr":return import("./mcr-UJKSGJWY.js");case"msx":return import("./msx-D6D4AZ2V.js");case"mw8080bw":return import("./mw8080bw-UKKXGK62.js");case"nes":return import("./nes-5MJGD6QV.js");case"pce":return import("./pce-5G3EEKIY.js");case"sms":return import("./sms-3QV6XP7F.js");case"sound_konami":return import("./sound_konami-DP3T7QIR.js");case"sound_williams":return import("./sound_williams-T4RNNXZN.js");case"vcs":return import("./vcs-PDAYLXFU.js");case"vector":return import("./vector-LTZHZNSR.js");case"vectrex":return import("./vectrex-AAMO6IB2.js");case"verilog":return import("./verilog-BR4BSCO2.js");case"vic20":return import("./vic20-F3C6WKYQ.js");case"vicdual":return import("./vicdual-QFLCFBJI.js");case"williams":return import("./williams-YIU5NAAT.js");case"x86":return import("./x86-NL7ISPMM.js");case"zmachine":return import("./zmachine-MWS3S5K7.js");case"zx":return import("./zx-ILHJAJX2.js");default:throw new Error(`Platform not recognized: '${l}'`)}}export{g as a,R as b,y as c}; +//# sourceMappingURL=chunk-NSHJSYBI.js.map diff --git a/gen/chunk-2YPLCPQR.js.map b/gen/chunk-NSHJSYBI.js.map similarity index 100% rename from gen/chunk-2YPLCPQR.js.map rename to gen/chunk-NSHJSYBI.js.map diff --git a/gen/chunk-47XAKUGC.js b/gen/chunk-OG4RI6EI.js similarity index 99% rename from gen/chunk-47XAKUGC.js rename to gen/chunk-OG4RI6EI.js index c0751021..c57a80b0 100644 --- a/gen/chunk-47XAKUGC.js +++ b/gen/chunk-OG4RI6EI.js @@ -1,4 +1,4 @@ -import{a as fc,b as To,c as q1}from"./chunk-JSIZCY7X.js";import{a as Yg}from"./chunk-LNOKARBD.js";import{a as Eg,b as Zg,c as j1}from"./chunk-2YPLCPQR.js";import{D as _u,J as Ru,t as Cg,u as Ag}from"./chunk-TBY42HNR.js";import{A as Us,E as Or,F as ku,G as ko,I as cc,J as Xg,K as Tu,T as Xu,V as _g,a as fn,b as ba,ba as hc,ca as Rg,d as ci,da as Sa,e as wu,f as hi,g as ht,h as $u,k as Pg,m as nc,n as sc,o as oc,p as Zs,q as kg,t as ac,w as Tg,x as Pu,y as lc,z as Qi}from"./chunk-6VYEJCUW.js";import{a as Ft,b as rc,c as ma,d as xu,e as yu}from"./chunk-KT7KMEQC.js";var Au=xu((Ug,Cu)=>{(function(i){if(typeof Ug=="object"&&typeof Cu!="undefined")Cu.exports=i();else if(typeof define=="function"&&define.amd)define([],i);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=i()}})(function(){var i,e,t;return(function r(n,s,o){function a(f,O){if(!s[f]){if(!n[f]){var m=typeof ma=="function"&&ma;if(!O&&m)return m(f,!0);if(l)return l(f,!0);var b=new Error("Cannot find module '"+f+"'");throw b.code="MODULE_NOT_FOUND",b}var Q=s[f]={exports:{}};n[f][0].call(Q.exports,function(P){var X=n[f][1][P];return a(X||P)},Q,Q.exports,r,n,s,o)}return s[f].exports}for(var l=typeof ma=="function"&&ma,h=0;h=43)}}).catch(function(){return!1})}function de(w){return typeof G=="boolean"?m.resolve(G):F(w).then(function(C){return G=C,G})}function Ee(w){var C=q[w.name],k={};k.promise=new m(function(U,M){k.resolve=U,k.reject=M}),C.deferredOperations.push(k),C.dbReady?C.dbReady=C.dbReady.then(function(){return k.promise}):C.dbReady=k.promise}function ge(w){var C=q[w.name],k=C.deferredOperations.pop();if(k)return k.resolve(),k.promise}function ie(w,C){var k=q[w.name],U=k.deferredOperations.pop();if(U)return U.reject(C),U.promise}function Te(w,C){return new m(function(k,U){if(q[w.name]=q[w.name]||nt(),w.db)if(C)Ee(w),w.db.close();else return k(w.db);var M=[w.name];C&&M.push(w.version);var Z=h.open.apply(h,M);C&&(Z.onupgradeneeded=function(H){var re=Z.result;try{re.createObjectStore(w.storeName),H.oldVersion<=1&&re.createObjectStore(E)}catch(le){if(le.name==="ConstraintError")console.warn('The database "'+w.name+'" has been upgraded from version '+H.oldVersion+" to version "+H.newVersion+', but the storage "'+w.storeName+'" already exists.');else throw le}}),Z.onerror=function(H){H.preventDefault(),U(Z.error)},Z.onsuccess=function(){var H=Z.result;H.onversionchange=function(re){re.target.close()},k(H),ge(w)}})}function Ze(w){return Te(w,!1)}function Be(w){return Te(w,!0)}function te(w,C){if(!w.db)return!0;var k=!w.db.objectStoreNames.contains(w.storeName),U=w.versionw.db.version;if(U&&(w.version!==C&&console.warn('The database "'+w.name+`" can't be downgraded from version `+w.db.version+" to version "+w.version+"."),w.version=w.db.version),M||k){if(k){var Z=w.db.version+1;Z>w.version&&(w.version=Z)}return!0}return!1}function Qe(w){return new m(function(C,k){var U=new FileReader;U.onerror=k,U.onloadend=function(M){var Z=btoa(M.target.result||"");C({__local_forage_encoded_blob:!0,data:Z,type:w.type})},U.readAsBinaryString(w)})}function ce(w){var C=j(atob(w.data));return O([C],{type:w.type})}function Me(w){return w&&w.__local_forage_encoded_blob}function je(w){var C=this,k=C._initReady().then(function(){var U=q[C._dbInfo.name];if(U&&U.dbReady)return U.dbReady});return Q(k,w,w),k}function We(w){Ee(w);for(var C=q[w.name],k=C.forages,U=0;U0&&(!w.db||Z.name==="InvalidStateError"||Z.name==="NotFoundError"))return m.resolve().then(function(){if(!w.db||Z.name==="NotFoundError"&&!w.db.objectStoreNames.contains(w.storeName)&&w.version<=w.db.version)return w.db&&(w.version=w.db.version+1),Be(w)}).then(function(){return We(w).then(function(){dt(w,C,k,U-1)})}).catch(k);k(Z)}}function nt(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ai(w){var C=this,k={db:null};if(w)for(var U in w)k[U]=w[U];var M=q[k.name];M||(M=nt(),q[k.name]=M),M.forages.push(C),C._initReady||(C._initReady=C.ready,C.ready=je);var Z=[];function H(){return m.resolve()}for(var re=0;re>4,se[M++]=(H&15)<<4|re>>2,se[M++]=(re&3)<<6|le&63;return he}function Si(w){var C=new Uint8Array(w),k="",U;for(U=0;U>2],k+=Kt[(C[U]&3)<<4|C[U+1]>>4],k+=Kt[(C[U+1]&15)<<2|C[U+2]>>6],k+=Kt[C[U+2]&63];return C.length%3===2?k=k.substring(0,k.length-1)+"=":C.length%3===1&&(k=k.substring(0,k.length-2)+"=="),k}function Gi(w,C){var k="";if(w&&(k=bi.call(w)),w&&(k==="[object ArrayBuffer]"||w.buffer&&bi.call(w.buffer)==="[object ArrayBuffer]")){var U,M=Cr;w instanceof ArrayBuffer?(U=w,M+=Jt):(U=w.buffer,k==="[object Int8Array]"?M+=en:k==="[object Uint8Array]"?M+=we:k==="[object Uint8ClampedArray]"?M+=_t:k==="[object Int16Array]"?M+=Ar:k==="[object Uint16Array]"?M+=Wn:k==="[object Int32Array]"?M+=mi:k==="[object Uint32Array]"?M+=qn:k==="[object Float32Array]"?M+=jn:k==="[object Float64Array]"?M+=ar:C(new Error("Failed to get type for BinaryArray"))),C(M+Si(U))}else if(k==="[object Blob]"){var Z=new FileReader;Z.onload=function(){var H=pi+w.type+"~"+Si(this.result);C(Cr+or+H)},Z.readAsArrayBuffer(w)}else try{C(JSON.stringify(w))}catch(H){console.error("Couldn't convert value into a JSON string: ",w),C(null,H)}}function In(w){if(w.substring(0,Jr)!==Cr)return JSON.parse(w);var C=w.substring(gi),k=w.substring(Jr,gi),U;if(k===or&&Rr.test(C)){var M=C.match(Rr);U=M[1],C=C.substring(M[0].length)}var Z=Yi(C);switch(k){case Jt:return Z;case or:return O([Z],{type:U});case en:return new Int8Array(Z);case we:return new Uint8Array(Z);case _t:return new Uint8ClampedArray(Z);case Ar:return new Int16Array(Z);case Wn:return new Uint16Array(Z);case mi:return new Int32Array(Z);case qn:return new Uint32Array(Z);case jn:return new Float32Array(Z);case ar:return new Float64Array(Z);default:throw new Error("Unkown type: "+k)}}var tn={serialize:Gi,deserialize:In,stringToBuffer:Yi,bufferToString:Si};function So(w,C,k,U){w.executeSql("CREATE TABLE IF NOT EXISTS "+C.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],k,U)}function Fi(w){var C=this,k={db:null};if(w)for(var U in w)k[U]=typeof w[U]!="string"?w[U].toString():w[U];var M=new m(function(Z,H){try{k.db=openDatabase(k.name,String(k.version),k.description,k.size)}catch(re){return H(re)}k.db.transaction(function(re){So(re,k,function(){C._dbInfo=k,Z()},function(le,he){H(he)})},H)});return k.serializer=tn,M}function Wt(w,C,k,U,M,Z){w.executeSql(k,U,M,function(H,re){re.code===re.SYNTAX_ERR?H.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[C.storeName],function(le,he){he.rows.length?Z(le,re):So(le,C,function(){le.executeSql(k,U,M,Z)},Z)},Z):Z(H,re)},Z)}function vo(w,C){var k=this;w=P(w);var U=new m(function(M,Z){k.ready().then(function(){var H=k._dbInfo;H.db.transaction(function(re){Wt(re,H,"SELECT * FROM "+H.storeName+" WHERE key = ? LIMIT 1",[w],function(le,he){var se=he.rows.length?he.rows.item(0).value:null;se&&(se=H.serializer.deserialize(se)),M(se)},function(le,he){Z(he)})})}).catch(Z)});return b(U,C),U}function rn(w,C){var k=this,U=new m(function(M,Z){k.ready().then(function(){var H=k._dbInfo;H.db.transaction(function(re){Wt(re,H,"SELECT * FROM "+H.storeName,[],function(le,he){for(var se=he.rows,$e=se.length,qe=0;qe<$e;qe++){var ut=se.item(qe),Ot=ut.value;if(Ot&&(Ot=H.serializer.deserialize(Ot)),Ot=w(Ot,ut.key,qe+1),Ot!==void 0){M(Ot);return}}M()},function(le,he){Z(he)})})}).catch(Z)});return b(U,C),U}function ei(w,C,k,U){var M=this;w=P(w);var Z=new m(function(H,re){M.ready().then(function(){C===void 0&&(C=null);var le=C,he=M._dbInfo;he.serializer.serialize(C,function(se,$e){$e?re($e):he.db.transaction(function(qe){Wt(qe,he,"INSERT OR REPLACE INTO "+he.storeName+" (key, value) VALUES (?, ?)",[w,se],function(){H(le)},function(ut,Ot){re(Ot)})},function(qe){if(qe.code===qe.QUOTA_ERR){if(U>0){H(ei.apply(M,[w,le,k,U-1]));return}re(qe)}})})}).catch(re)});return b(Z,k),Z}function Bt(w,C,k){return ei.apply(this,[w,C,k,1])}function kt(w,C){var k=this;w=P(w);var U=new m(function(M,Z){k.ready().then(function(){var H=k._dbInfo;H.db.transaction(function(re){Wt(re,H,"DELETE FROM "+H.storeName+" WHERE key = ?",[w],function(){M()},function(le,he){Z(he)})})}).catch(Z)});return b(U,C),U}function nn(w){var C=this,k=new m(function(U,M){C.ready().then(function(){var Z=C._dbInfo;Z.db.transaction(function(H){Wt(H,Z,"DELETE FROM "+Z.storeName,[],function(){U()},function(re,le){M(le)})})}).catch(M)});return b(k,w),k}function Qo(w){var C=this,k=new m(function(U,M){C.ready().then(function(){var Z=C._dbInfo;Z.db.transaction(function(H){Wt(H,Z,"SELECT COUNT(key) as c FROM "+Z.storeName,[],function(re,le){var he=le.rows.item(0).c;U(he)},function(re,le){M(le)})})}).catch(M)});return b(k,w),k}function ws(w,C){var k=this,U=new m(function(M,Z){k.ready().then(function(){var H=k._dbInfo;H.db.transaction(function(re){Wt(re,H,"SELECT key FROM "+H.storeName+" WHERE id = ? LIMIT 1",[w+1],function(le,he){var se=he.rows.length?he.rows.item(0).key:null;M(se)},function(le,he){Z(he)})})}).catch(Z)});return b(U,C),U}function lr(w){var C=this,k=new m(function(U,M){C.ready().then(function(){var Z=C._dbInfo;Z.db.transaction(function(H){Wt(H,Z,"SELECT key FROM "+Z.storeName,[],function(re,le){for(var he=[],se=0;se '__WebKitDatabaseInfoTable__'",[],function(M,Z){for(var H=[],re=0;re0}function Ps(w){var C=this,k={};if(w)for(var U in w)k[U]=w[U];return k.keyPrefix=cr(w,C._defaultConfig),$s()?(C._dbInfo=k,k.serializer=tn,m.resolve()):m.reject()}function yo(w){var C=this,k=C.ready().then(function(){for(var U=C._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var Z=localStorage.key(M);Z.indexOf(U)===0&&localStorage.removeItem(Z)}});return b(k,w),k}function Ui(w,C){var k=this;w=P(w);var U=k.ready().then(function(){var M=k._dbInfo,Z=localStorage.getItem(M.keyPrefix+w);return Z&&(Z=M.serializer.deserialize(Z)),Z});return b(U,C),U}function wo(w,C){var k=this,U=k.ready().then(function(){for(var M=k._dbInfo,Z=M.keyPrefix,H=Z.length,re=localStorage.length,le=1,he=0;he=0;H--){var re=localStorage.key(H);re.indexOf(Z)===0&&localStorage.removeItem(re)}}):M=m.reject("Invalid arguments"),b(M,C),M}var ae={_driver:"localStorageWrapper",_initStorage:Ps,_support:Zi(),iterate:wo,getItem:Ui,setItem:Pe,removeItem:Ts,clear:yo,length:Gn,key:Yr,keys:ks,dropInstance:A},xe=function(C,k){return C===k||typeof C=="number"&&typeof k=="number"&&isNaN(C)&&isNaN(k)},pt=function(C,k){for(var U=C.length,M=0;M{(function(i,e){"use strict";typeof Gf=="object"&&typeof Gf.exports=="object"?Gf.exports=i.document?e(i,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(i)})(typeof window!="undefined"?window:Lw,function(i,e){"use strict";var t=[],r=Object.getPrototypeOf,n=t.slice,s=t.flat?function(c){return t.flat.call(c)}:function(c){return t.concat.apply([],c)},o=t.push,a=t.indexOf,l={},h=l.toString,f=l.hasOwnProperty,O=f.toString,m=O.call(Object),b={},Q=function(u){return typeof u=="function"&&typeof u.nodeType!="number"&&typeof u.item!="function"},P=function(u){return u!=null&&u===u.window},X=i.document,E={type:!0,src:!0,nonce:!0,noModule:!0};function G(c,u,p){p=p||X;var g,S,v=p.createElement("script");if(v.text=c,u)for(g in E)S=u[g]||u.getAttribute&&u.getAttribute(g),S&&v.setAttribute(g,S);p.head.appendChild(v).parentNode.removeChild(v)}function q(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?l[h.call(c)]||"object":typeof c}var N="3.7.1",V=/HTML$/i,d=function(c,u){return new d.fn.init(c,u)};d.fn=d.prototype={jquery:N,constructor:d,length:0,toArray:function(){return n.call(this)},get:function(c){return c==null?n.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var u=d.merge(this.constructor(),c);return u.prevObject=this,u},each:function(c){return d.each(this,c)},map:function(c){return this.pushStack(d.map(this,function(u,p){return c.call(u,p,u)}))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(c,u){return(u+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(c,u){return u%2}))},eq:function(c){var u=this.length,p=+c+(c<0?u:0);return this.pushStack(p>=0&&p0&&u-1 in c}function F(c,u){return c.nodeName&&c.nodeName.toLowerCase()===u.toLowerCase()}var de=t.pop,Ee=t.sort,ge=t.splice,ie="[\\x20\\t\\r\\n\\f]",Te=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g");d.contains=function(c,u){var p=u&&u.parentNode;return c===p||!!(p&&p.nodeType===1&&(c.contains?c.contains(p):c.compareDocumentPosition&&c.compareDocumentPosition(p)&16))};var Ze=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Be(c,u){return u?c==="\0"?"\uFFFD":c.slice(0,-1)+"\\"+c.charCodeAt(c.length-1).toString(16)+" ":"\\"+c}d.escapeSelector=function(c){return(c+"").replace(Ze,Be)};var te=X,Qe=o;(function(){var c,u,p,g,S,v=Qe,y,R,_,z,B,ee=d.expando,W=0,oe=0,Ve=Jl(),st=Jl(),Ie=Jl(),ti=Jl(),qt=function(T,Y){return T===Y&&(S=!0),0},on="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",an="(?:\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",et="\\["+ie+"*("+an+")(?:"+ie+"*([*^$|!~]?=)"+ie+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+an+"))|)"+ie+"*\\]",Es=":("+an+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+et+")*)|.*)\\)|)",ct=new RegExp(ie+"+","g"),Yt=new RegExp("^"+ie+"*,"+ie+"*"),Oa=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),pu=new RegExp(ie+"|>"),ln=new RegExp(Es),da=new RegExp("^"+an+"$"),cn={ID:new RegExp("^#("+an+")"),CLASS:new RegExp("^\\.("+an+")"),TAG:new RegExp("^("+an+"|[*])"),ATTR:new RegExp("^"+et),PSEUDO:new RegExp("^"+Es),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+on+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},Fn=/^(?:input|select|textarea|button)$/i,Hn=/^h\d$/i,fr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mu=/[+~]/,$n=new RegExp("\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\([^\\r\\n\\f])","g"),Pn=function(T,Y){var D="0x"+T.slice(1)-65536;return Y||(D<0?String.fromCharCode(D+65536):String.fromCharCode(D>>10|55296,D&1023|56320))},U1=function(){Kn()},z1=tc(function(T){return T.disabled===!0&&F(T,"fieldset")},{dir:"parentNode",next:"legend"});function L1(){try{return y.activeElement}catch(T){}}try{v.apply(t=n.call(te.childNodes),te.childNodes),t[te.childNodes.length].nodeType}catch(T){v={apply:function(Y,D){Qe.apply(Y,n.call(D))},call:function(Y){Qe.apply(Y,n.call(arguments,1))}}}function bt(T,Y,D,I){var K,ue,be,Xe,Se,He,Ue,De=Y&&Y.ownerDocument,Ke=Y?Y.nodeType:9;if(D=D||[],typeof T!="string"||!T||Ke!==1&&Ke!==9&&Ke!==11)return D;if(!I&&(Kn(Y),Y=Y||y,_)){if(Ke!==11&&(Se=fr.exec(T)))if(K=Se[1]){if(Ke===9)if(be=Y.getElementById(K)){if(be.id===K)return v.call(D,be),D}else return D;else if(De&&(be=De.getElementById(K))&&bt.contains(Y,be)&&be.id===K)return v.call(D,be),D}else{if(Se[2])return v.apply(D,Y.getElementsByTagName(T)),D;if((K=Se[3])&&Y.getElementsByClassName)return v.apply(D,Y.getElementsByClassName(K)),D}if(!ti[T+" "]&&(!z||!z.test(T))){if(Ue=T,De=Y,Ke===1&&(pu.test(T)||Oa.test(T))){for(De=mu.test(T)&&gu(Y.parentNode)||Y,(De!=Y||!b.scope)&&((Xe=Y.getAttribute("id"))?Xe=d.escapeSelector(Xe):Y.setAttribute("id",Xe=ee)),He=pa(T),ue=He.length;ue--;)He[ue]=(Xe?"#"+Xe:":scope")+" "+ec(He[ue]);Ue=He.join(",")}try{return v.apply(D,De.querySelectorAll(Ue)),D}catch(Ye){ti(T,!0)}finally{Xe===ee&&Y.removeAttribute("id")}}}return $g(T.replace(Te,"$1"),Y,D,I)}function Jl(){var T=[];function Y(D,I){return T.push(D+" ")>u.cacheLength&&delete Y[T.shift()],Y[D+" "]=I}return Y}function Zr(T){return T[ee]=!0,T}function $o(T){var Y=y.createElement("fieldset");try{return!!T(Y)}catch(D){return!1}finally{Y.parentNode&&Y.parentNode.removeChild(Y),Y=null}}function M1(T){return function(Y){return F(Y,"input")&&Y.type===T}}function V1(T){return function(Y){return(F(Y,"input")||F(Y,"button"))&&Y.type===T}}function yg(T){return function(Y){return"form"in Y?Y.parentNode&&Y.disabled===!1?"label"in Y?"label"in Y.parentNode?Y.parentNode.disabled===T:Y.disabled===T:Y.isDisabled===T||Y.isDisabled!==!T&&z1(Y)===T:Y.disabled===T:"label"in Y?Y.disabled===T:!1}}function Ys(T){return Zr(function(Y){return Y=+Y,Zr(function(D,I){for(var K,ue=T([],D.length,Y),be=ue.length;be--;)D[K=ue[be]]&&(D[K]=!(I[K]=D[K]))})})}function gu(T){return T&&typeof T.getElementsByTagName!="undefined"&&T}function Kn(T){var Y,D=T?T.ownerDocument||T:te;return D==y||D.nodeType!==9||!D.documentElement||(y=D,R=y.documentElement,_=!d.isXMLDoc(y),B=R.matches||R.webkitMatchesSelector||R.msMatchesSelector,R.msMatchesSelector&&te!=y&&(Y=y.defaultView)&&Y.top!==Y&&Y.addEventListener("unload",U1),b.getById=$o(function(I){return R.appendChild(I).id=d.expando,!y.getElementsByName||!y.getElementsByName(d.expando).length}),b.disconnectedMatch=$o(function(I){return B.call(I,"*")}),b.scope=$o(function(){return y.querySelectorAll(":scope")}),b.cssHas=$o(function(){try{return y.querySelector(":has(*,:jqfake)"),!1}catch(I){return!0}}),b.getById?(u.filter.ID=function(I){var K=I.replace($n,Pn);return function(ue){return ue.getAttribute("id")===K}},u.find.ID=function(I,K){if(typeof K.getElementById!="undefined"&&_){var ue=K.getElementById(I);return ue?[ue]:[]}}):(u.filter.ID=function(I){var K=I.replace($n,Pn);return function(ue){var be=typeof ue.getAttributeNode!="undefined"&&ue.getAttributeNode("id");return be&&be.value===K}},u.find.ID=function(I,K){if(typeof K.getElementById!="undefined"&&_){var ue,be,Xe,Se=K.getElementById(I);if(Se){if(ue=Se.getAttributeNode("id"),ue&&ue.value===I)return[Se];for(Xe=K.getElementsByName(I),be=0;Se=Xe[be++];)if(ue=Se.getAttributeNode("id"),ue&&ue.value===I)return[Se]}return[]}}),u.find.TAG=function(I,K){return typeof K.getElementsByTagName!="undefined"?K.getElementsByTagName(I):K.querySelectorAll(I)},u.find.CLASS=function(I,K){if(typeof K.getElementsByClassName!="undefined"&&_)return K.getElementsByClassName(I)},z=[],$o(function(I){var K;R.appendChild(I).innerHTML="",I.querySelectorAll("[selected]").length||z.push("\\["+ie+"*(?:value|"+on+")"),I.querySelectorAll("[id~="+ee+"-]").length||z.push("~="),I.querySelectorAll("a#"+ee+"+*").length||z.push(".#.+[+~]"),I.querySelectorAll(":checked").length||z.push(":checked"),K=y.createElement("input"),K.setAttribute("type","hidden"),I.appendChild(K).setAttribute("name","D"),R.appendChild(I).disabled=!0,I.querySelectorAll(":disabled").length!==2&&z.push(":enabled",":disabled"),K=y.createElement("input"),K.setAttribute("name",""),I.appendChild(K),I.querySelectorAll("[name='']").length||z.push("\\["+ie+"*name"+ie+"*="+ie+`*(?:''|"")`)}),b.cssHas||z.push(":has"),z=z.length&&new RegExp(z.join("|")),qt=function(I,K){if(I===K)return S=!0,0;var ue=!I.compareDocumentPosition-!K.compareDocumentPosition;return ue||(ue=(I.ownerDocument||I)==(K.ownerDocument||K)?I.compareDocumentPosition(K):1,ue&1||!b.sortDetached&&K.compareDocumentPosition(I)===ue?I===y||I.ownerDocument==te&&bt.contains(te,I)?-1:K===y||K.ownerDocument==te&&bt.contains(te,K)?1:g?a.call(g,I)-a.call(g,K):0:ue&4?-1:1)}),y}bt.matches=function(T,Y){return bt(T,null,null,Y)},bt.matchesSelector=function(T,Y){if(Kn(T),_&&!ti[Y+" "]&&(!z||!z.test(Y)))try{var D=B.call(T,Y);if(D||b.disconnectedMatch||T.document&&T.document.nodeType!==11)return D}catch(I){ti(Y,!0)}return bt(Y,y,null,[T]).length>0},bt.contains=function(T,Y){return(T.ownerDocument||T)!=y&&Kn(T),d.contains(T,Y)},bt.attr=function(T,Y){(T.ownerDocument||T)!=y&&Kn(T);var D=u.attrHandle[Y.toLowerCase()],I=D&&f.call(u.attrHandle,Y.toLowerCase())?D(T,Y,!_):void 0;return I!==void 0?I:T.getAttribute(Y)},bt.error=function(T){throw new Error("Syntax error, unrecognized expression: "+T)},d.uniqueSort=function(T){var Y,D=[],I=0,K=0;if(S=!b.sortStable,g=!b.sortStable&&n.call(T,0),Ee.call(T,qt),S){for(;Y=T[K++];)Y===T[K]&&(I=D.push(K));for(;I--;)ge.call(T,D[I],1)}return g=null,T},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort(n.apply(this)))},u=d.expr={cacheLength:50,createPseudo:Zr,match:cn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(T){return T[1]=T[1].replace($n,Pn),T[3]=(T[3]||T[4]||T[5]||"").replace($n,Pn),T[2]==="~="&&(T[3]=" "+T[3]+" "),T.slice(0,4)},CHILD:function(T){return T[1]=T[1].toLowerCase(),T[1].slice(0,3)==="nth"?(T[3]||bt.error(T[0]),T[4]=+(T[4]?T[5]+(T[6]||1):2*(T[3]==="even"||T[3]==="odd")),T[5]=+(T[7]+T[8]||T[3]==="odd")):T[3]&&bt.error(T[0]),T},PSEUDO:function(T){var Y,D=!T[6]&&T[2];return cn.CHILD.test(T[0])?null:(T[3]?T[2]=T[4]||T[5]||"":D&&ln.test(D)&&(Y=pa(D,!0))&&(Y=D.indexOf(")",D.length-Y)-D.length)&&(T[0]=T[0].slice(0,Y),T[2]=D.slice(0,Y)),T.slice(0,3))}},filter:{TAG:function(T){var Y=T.replace($n,Pn).toLowerCase();return T==="*"?function(){return!0}:function(D){return F(D,Y)}},CLASS:function(T){var Y=Ve[T+" "];return Y||(Y=new RegExp("(^|"+ie+")"+T+"("+ie+"|$)"))&&Ve(T,function(D){return Y.test(typeof D.className=="string"&&D.className||typeof D.getAttribute!="undefined"&&D.getAttribute("class")||"")})},ATTR:function(T,Y,D){return function(I){var K=bt.attr(I,T);return K==null?Y==="!=":Y?(K+="",Y==="="?K===D:Y==="!="?K!==D:Y==="^="?D&&K.indexOf(D)===0:Y==="*="?D&&K.indexOf(D)>-1:Y==="$="?D&&K.slice(-D.length)===D:Y==="~="?(" "+K.replace(ct," ")+" ").indexOf(D)>-1:Y==="|="?K===D||K.slice(0,D.length+1)===D+"-":!1):!0}},CHILD:function(T,Y,D,I,K){var ue=T.slice(0,3)!=="nth",be=T.slice(-4)!=="last",Xe=Y==="of-type";return I===1&&K===0?function(Se){return!!Se.parentNode}:function(Se,He,Ue){var De,Ke,Ye,$t,zi,li=ue!==be?"nextSibling":"previousSibling",ur=Se.parentNode,hn=Xe&&Se.nodeName.toLowerCase(),Po=!Ue&&!Xe,vi=!1;if(ur){if(ue){for(;li;){for(Ye=Se;Ye=Ye[li];)if(Xe?F(Ye,hn):Ye.nodeType===1)return!1;zi=li=T==="only"&&!zi&&"nextSibling"}return!0}if(zi=[be?ur.firstChild:ur.lastChild],be&&Po){for(Ke=ur[ee]||(ur[ee]={}),De=Ke[T]||[],$t=De[0]===W&&De[1],vi=$t&&De[2],Ye=$t&&ur.childNodes[$t];Ye=++$t&&Ye&&Ye[li]||(vi=$t=0)||zi.pop();)if(Ye.nodeType===1&&++vi&&Ye===Se){Ke[T]=[W,$t,vi];break}}else if(Po&&(Ke=Se[ee]||(Se[ee]={}),De=Ke[T]||[],$t=De[0]===W&&De[1],vi=$t),vi===!1)for(;(Ye=++$t&&Ye&&Ye[li]||(vi=$t=0)||zi.pop())&&!((Xe?F(Ye,hn):Ye.nodeType===1)&&++vi&&(Po&&(Ke=Ye[ee]||(Ye[ee]={}),Ke[T]=[W,vi]),Ye===Se)););return vi-=K,vi===I||vi%I===0&&vi/I>=0}}},PSEUDO:function(T,Y){var D,I=u.pseudos[T]||u.setFilters[T.toLowerCase()]||bt.error("unsupported pseudo: "+T);return I[ee]?I(Y):I.length>1?(D=[T,T,"",Y],u.setFilters.hasOwnProperty(T.toLowerCase())?Zr(function(K,ue){for(var be,Xe=I(K,Y),Se=Xe.length;Se--;)be=a.call(K,Xe[Se]),K[be]=!(ue[be]=Xe[Se])}):function(K){return I(K,0,D)}):I}},pseudos:{not:Zr(function(T){var Y=[],D=[],I=Qu(T.replace(Te,"$1"));return I[ee]?Zr(function(K,ue,be,Xe){for(var Se,He=I(K,null,Xe,[]),Ue=K.length;Ue--;)(Se=He[Ue])&&(K[Ue]=!(ue[Ue]=Se))}):function(K,ue,be){return Y[0]=K,I(Y,null,be,D),Y[0]=null,!D.pop()}}),has:Zr(function(T){return function(Y){return bt(T,Y).length>0}}),contains:Zr(function(T){return T=T.replace($n,Pn),function(Y){return(Y.textContent||d.text(Y)).indexOf(T)>-1}}),lang:Zr(function(T){return da.test(T||"")||bt.error("unsupported lang: "+T),T=T.replace($n,Pn).toLowerCase(),function(Y){var D;do if(D=_?Y.lang:Y.getAttribute("xml:lang")||Y.getAttribute("lang"))return D=D.toLowerCase(),D===T||D.indexOf(T+"-")===0;while((Y=Y.parentNode)&&Y.nodeType===1);return!1}}),target:function(T){var Y=i.location&&i.location.hash;return Y&&Y.slice(1)===T.id},root:function(T){return T===R},focus:function(T){return T===L1()&&y.hasFocus()&&!!(T.type||T.href||~T.tabIndex)},enabled:yg(!1),disabled:yg(!0),checked:function(T){return F(T,"input")&&!!T.checked||F(T,"option")&&!!T.selected},selected:function(T){return T.parentNode&&T.parentNode.selectedIndex,T.selected===!0},empty:function(T){for(T=T.firstChild;T;T=T.nextSibling)if(T.nodeType<6)return!1;return!0},parent:function(T){return!u.pseudos.empty(T)},header:function(T){return Hn.test(T.nodeName)},input:function(T){return Fn.test(T.nodeName)},button:function(T){return F(T,"input")&&T.type==="button"||F(T,"button")},text:function(T){var Y;return F(T,"input")&&T.type==="text"&&((Y=T.getAttribute("type"))==null||Y.toLowerCase()==="text")},first:Ys(function(){return[0]}),last:Ys(function(T,Y){return[Y-1]}),eq:Ys(function(T,Y,D){return[D<0?D+Y:D]}),even:Ys(function(T,Y){for(var D=0;DY?I=Y:I=D;--I>=0;)T.push(I);return T}),gt:Ys(function(T,Y,D){for(var I=D<0?D+Y:D;++I1?function(Y,D,I){for(var K=T.length;K--;)if(!T[K](Y,D,I))return!1;return!0}:T[0]}function D1(T,Y,D){for(var I=0,K=Y.length;I-1&&(be[Ue]=!(Xe[Ue]=Ke))}}else Ye=ic(Ye===Xe?Ye.splice(li,Ye.length):Ye),K?K(null,Xe,Ye,He):v.apply(Xe,Ye)})}function vu(T){for(var Y,D,I,K=T.length,ue=u.relative[T[0].type],be=ue||u.relative[" "],Xe=ue?1:0,Se=tc(function(De){return De===Y},be,!0),He=tc(function(De){return a.call(Y,De)>-1},be,!0),Ue=[function(De,Ke,Ye){var $t=!ue&&(Ye||Ke!=p)||((Y=Ke).nodeType?Se(De,Ke,Ye):He(De,Ke,Ye));return Y=null,$t}];Xe1&&bu(Ue),Xe>1&&ec(T.slice(0,Xe-1).concat({value:T[Xe-2].type===" "?"*":""})).replace(Te,"$1"),D,Xe0,I=T.length>0,K=function(ue,be,Xe,Se,He){var Ue,De,Ke,Ye=0,$t="0",zi=ue&&[],li=[],ur=p,hn=ue||I&&u.find.TAG("*",He),Po=W+=ur==null?1:Math.random()||.1,vi=hn.length;for(He&&(p=be==y||be||He);$t!==vi&&(Ue=hn[$t])!=null;$t++){if(I&&Ue){for(De=0,!be&&Ue.ownerDocument!=y&&(Kn(Ue),Xe=!_);Ke=T[De++];)if(Ke(Ue,be||y,Xe)){v.call(Se,Ue);break}He&&(W=Po)}D&&((Ue=!Ke&&Ue)&&Ye--,ue&&zi.push(Ue))}if(Ye+=$t,D&&$t!==Ye){for(De=0;Ke=Y[De++];)Ke(zi,li,be,Xe);if(ue){if(Ye>0)for(;$t--;)zi[$t]||li[$t]||(li[$t]=de.call(Se));li=ic(li)}v.apply(Se,li),He&&!ue&&li.length>0&&Ye+Y.length>1&&d.uniqueSort(Se)}return He&&(W=Po,p=ur),zi};return D?Zr(K):K}function Qu(T,Y){var D,I=[],K=[],ue=Ie[T+" "];if(!ue){for(Y||(Y=pa(T)),D=Y.length;D--;)ue=vu(Y[D]),ue[ee]?I.push(ue):K.push(ue);ue=Ie(T,W1(K,I)),ue.selector=T}return ue}function $g(T,Y,D,I){var K,ue,be,Xe,Se,He=typeof T=="function"&&T,Ue=!I&&pa(T=He.selector||T);if(D=D||[],Ue.length===1){if(ue=Ue[0]=Ue[0].slice(0),ue.length>2&&(be=ue[0]).type==="ID"&&Y.nodeType===9&&_&&u.relative[ue[1].type]){if(Y=(u.find.ID(be.matches[0].replace($n,Pn),Y)||[])[0],Y)He&&(Y=Y.parentNode);else return D;T=T.slice(ue.shift().value.length)}for(K=cn.needsContext.test(T)?0:ue.length;K--&&(be=ue[K],!u.relative[Xe=be.type]);)if((Se=u.find[Xe])&&(I=Se(be.matches[0].replace($n,Pn),mu.test(ue[0].type)&&gu(Y.parentNode)||Y))){if(ue.splice(K,1),T=I.length&&ec(ue),!T)return v.apply(D,I),D;break}}return(He||Qu(T,Ue))(I,Y,!_,D,!Y||mu.test(T)&&gu(Y.parentNode)||Y),D}b.sortStable=ee.split("").sort(qt).join("")===ee,Kn(),b.sortDetached=$o(function(T){return T.compareDocumentPosition(y.createElement("fieldset"))&1}),d.find=bt,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,bt.compile=Qu,bt.select=$g,bt.setDocument=Kn,bt.tokenize=pa,bt.escape=d.escapeSelector,bt.getText=d.text,bt.isXML=d.isXMLDoc,bt.selectors=d.expr,bt.support=d.support,bt.uniqueSort=d.uniqueSort})();var ce=function(c,u,p){for(var g=[],S=p!==void 0;(c=c[u])&&c.nodeType!==9;)if(c.nodeType===1){if(S&&d(c).is(p))break;g.push(c)}return g},Me=function(c,u){for(var p=[];c;c=c.nextSibling)c.nodeType===1&&c!==u&&p.push(c);return p},je=d.expr.match.needsContext,We=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function dt(c,u,p){return Q(u)?d.grep(c,function(g,S){return!!u.call(g,S,g)!==p}):u.nodeType?d.grep(c,function(g){return g===u!==p}):typeof u!="string"?d.grep(c,function(g){return a.call(u,g)>-1!==p}):d.filter(u,c,p)}d.filter=function(c,u,p){var g=u[0];return p&&(c=":not("+c+")"),u.length===1&&g.nodeType===1?d.find.matchesSelector(g,c)?[g]:[]:d.find.matches(c,d.grep(u,function(S){return S.nodeType===1}))},d.fn.extend({find:function(c){var u,p,g=this.length,S=this;if(typeof c!="string")return this.pushStack(d(c).filter(function(){for(u=0;u1?d.uniqueSort(p):p},filter:function(c){return this.pushStack(dt(this,c||[],!1))},not:function(c){return this.pushStack(dt(this,c||[],!0))},is:function(c){return!!dt(this,typeof c=="string"&&je.test(c)?d(c):c||[],!1).length}});var nt,Ai=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ft=d.fn.init=function(c,u,p){var g,S;if(!c)return this;if(p=p||nt,typeof c=="string")if(c[0]==="<"&&c[c.length-1]===">"&&c.length>=3?g=[null,c,null]:g=Ai.exec(c),g&&(g[1]||!u))if(g[1]){if(u=u instanceof d?u[0]:u,d.merge(this,d.parseHTML(g[1],u&&u.nodeType?u.ownerDocument||u:X,!0)),We.test(g[1])&&d.isPlainObject(u))for(g in u)Q(this[g])?this[g](u[g]):this.attr(g,u[g]);return this}else return S=X.getElementById(g[2]),S&&(this[0]=S,this.length=1),this;else return!u||u.jquery?(u||p).find(c):this.constructor(u).find(c);else{if(c.nodeType)return this[0]=c,this.length=1,this;if(Q(c))return p.ready!==void 0?p.ready(c):c(d)}return d.makeArray(c,this)};ft.prototype=d.fn,nt=d(X);var Ei=/^(?:parents|prev(?:Until|All))/,Kr={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(c){var u=d(c,this),p=u.length;return this.filter(function(){for(var g=0;g-1:p.nodeType===1&&d.find.matchesSelector(p,c))){v.push(p);break}}return this.pushStack(v.length>1?d.uniqueSort(v):v)},index:function(c){return c?typeof c=="string"?a.call(d(c),this[0]):a.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,u){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(c,u))))},addBack:function(c){return this.add(c==null?this.prevObject:this.prevObject.filter(c))}});function Tr(c,u){for(;(c=c[u])&&c.nodeType!==1;);return c}d.each({parent:function(c){var u=c.parentNode;return u&&u.nodeType!==11?u:null},parents:function(c){return ce(c,"parentNode")},parentsUntil:function(c,u,p){return ce(c,"parentNode",p)},next:function(c){return Tr(c,"nextSibling")},prev:function(c){return Tr(c,"previousSibling")},nextAll:function(c){return ce(c,"nextSibling")},prevAll:function(c){return ce(c,"previousSibling")},nextUntil:function(c,u,p){return ce(c,"nextSibling",p)},prevUntil:function(c,u,p){return ce(c,"previousSibling",p)},siblings:function(c){return Me((c.parentNode||{}).firstChild,c)},children:function(c){return Me(c.firstChild)},contents:function(c){return c.contentDocument!=null&&r(c.contentDocument)?c.contentDocument:(F(c,"template")&&(c=c.content||c),d.merge([],c.childNodes))}},function(c,u){d.fn[c]=function(p,g){var S=d.map(this,u,p);return c.slice(-5)!=="Until"&&(g=p),g&&typeof g=="string"&&(S=d.filter(g,S)),this.length>1&&(Kr[c]||d.uniqueSort(S),Ei.test(c)&&S.reverse()),this.pushStack(S)}});var di=/[^\x20\t\r\n\f]+/g;function ys(c){var u={};return d.each(c.match(di)||[],function(p,g){u[g]=!0}),u}d.Callbacks=function(c){c=typeof c=="string"?ys(c):d.extend({},c);var u,p,g,S,v=[],y=[],R=-1,_=function(){for(S=S||c.once,g=u=!0;y.length;R=-1)for(p=y.shift();++R-1;)v.splice(W,1),W<=R&&R--}),this},has:function(B){return B?d.inArray(B,v)>-1:v.length>0},empty:function(){return v&&(v=[]),this},disable:function(){return S=y=[],v=p="",this},disabled:function(){return!v},lock:function(){return S=y=[],!p&&!u&&(v=p=""),this},locked:function(){return!!S},fireWith:function(B,ee){return S||(ee=ee||[],ee=[B,ee.slice?ee.slice():ee],y.push(ee),u||_()),this},fire:function(){return z.fireWith(this,arguments),this},fired:function(){return!!g}};return z};function Xr(c){return c}function yn(c){throw c}function _r(c,u,p,g){var S;try{c&&Q(S=c.promise)?S.call(c).done(u).fail(p):c&&Q(S=c.then)?S.call(c,u,p):u.apply(void 0,[c].slice(g))}catch(v){p.apply(void 0,[v])}}d.extend({Deferred:function(c){var u=[["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"]],p="pending",g={state:function(){return p},always:function(){return S.done(arguments).fail(arguments),this},catch:function(v){return g.then(null,v)},pipe:function(){var v=arguments;return d.Deferred(function(y){d.each(u,function(R,_){var z=Q(v[_[4]])&&v[_[4]];S[_[1]](function(){var B=z&&z.apply(this,arguments);B&&Q(B.promise)?B.promise().progress(y.notify).done(y.resolve).fail(y.reject):y[_[0]+"With"](this,z?[B]:arguments)})}),v=null}).promise()},then:function(v,y,R){var _=0;function z(B,ee,W,oe){return function(){var Ve=this,st=arguments,Ie=function(){var qt,on;if(!(B<_)){if(qt=W.apply(Ve,st),qt===ee.promise())throw new TypeError("Thenable self-resolution");on=qt&&(typeof qt=="object"||typeof qt=="function")&&qt.then,Q(on)?oe?on.call(qt,z(_,ee,Xr,oe),z(_,ee,yn,oe)):(_++,on.call(qt,z(_,ee,Xr,oe),z(_,ee,yn,oe),z(_,ee,Xr,ee.notifyWith))):(W!==Xr&&(Ve=void 0,st=[qt]),(oe||ee.resolveWith)(Ve,st))}},ti=oe?Ie:function(){try{Ie()}catch(qt){d.Deferred.exceptionHook&&d.Deferred.exceptionHook(qt,ti.error),B+1>=_&&(W!==yn&&(Ve=void 0,st=[qt]),ee.rejectWith(Ve,st))}};B?ti():(d.Deferred.getErrorHook?ti.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&(ti.error=d.Deferred.getStackHook()),i.setTimeout(ti))}}return d.Deferred(function(B){u[0][3].add(z(0,B,Q(R)?R:Xr,B.notifyWith)),u[1][3].add(z(0,B,Q(v)?v:Xr)),u[2][3].add(z(0,B,Q(y)?y:yn))}).promise()},promise:function(v){return v!=null?d.extend(v,g):g}},S={};return d.each(u,function(v,y){var R=y[2],_=y[5];g[y[1]]=R.add,_&&R.add(function(){p=_},u[3-v][2].disable,u[3-v][3].disable,u[0][2].lock,u[0][3].lock),R.add(y[3].fire),S[y[0]]=function(){return S[y[0]+"With"](this===S?void 0:this,arguments),this},S[y[0]+"With"]=R.fireWith}),g.promise(S),c&&c.call(S,S),S},when:function(c){var u=arguments.length,p=u,g=Array(p),S=n.call(arguments),v=d.Deferred(),y=function(R){return function(_){g[R]=this,S[R]=arguments.length>1?n.call(arguments):_,--u||v.resolveWith(g,S)}};if(u<=1&&(_r(c,v.done(y(p)).resolve,v.reject,!u),v.state()==="pending"||Q(S[p]&&S[p].then)))return v.then();for(;p--;)_r(S[p],y(p),v.reject);return v.promise()}});var Dn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(c,u){i.console&&i.console.warn&&c&&Dn.test(c.name)&&i.console.warn("jQuery.Deferred exception: "+c.message,c.stack,u)},d.readyException=function(c){i.setTimeout(function(){throw c})};var Bi=d.Deferred();d.fn.ready=function(c){return Bi.then(c).catch(function(u){d.readyException(u)}),this},d.extend({isReady:!1,readyWait:1,ready:function(c){(c===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(c!==!0&&--d.readyWait>0)&&Bi.resolveWith(X,[d]))}}),d.ready.then=Bi.then;function Kt(){X.removeEventListener("DOMContentLoaded",Kt),i.removeEventListener("load",Kt),d.ready()}X.readyState==="complete"||X.readyState!=="loading"&&!X.documentElement.doScroll?i.setTimeout(d.ready):(X.addEventListener("DOMContentLoaded",Kt),i.addEventListener("load",Kt));var pi=function(c,u,p,g,S,v,y){var R=0,_=c.length,z=p==null;if(q(p)==="object"){S=!0;for(R in p)pi(c,u,R,p[R],!0,v,y)}else if(g!==void 0&&(S=!0,Q(g)||(y=!0),z&&(y?(u.call(c,g),u=null):(z=u,u=function(B,ee,W){return z.call(d(B),W)})),u))for(;R<_;R++)u(c[R],p,y?g:g.call(c[R],R,u(c[R],p)));return S?c:z?u.call(c):_?u(c[0],p):v},Rr=/^-ms-/,Cr=/-([a-z])/g;function Jr(c,u){return u.toUpperCase()}function Jt(c){return c.replace(Rr,"ms-").replace(Cr,Jr)}var or=function(c){return c.nodeType===1||c.nodeType===9||!+c.nodeType};function en(){this.expando=d.expando+en.uid++}en.uid=1,en.prototype={cache:function(c){var u=c[this.expando];return u||(u={},or(c)&&(c.nodeType?c[this.expando]=u:Object.defineProperty(c,this.expando,{value:u,configurable:!0}))),u},set:function(c,u,p){var g,S=this.cache(c);if(typeof u=="string")S[Jt(u)]=p;else for(g in u)S[Jt(g)]=u[g];return S},get:function(c,u){return u===void 0?this.cache(c):c[this.expando]&&c[this.expando][Jt(u)]},access:function(c,u,p){return u===void 0||u&&typeof u=="string"&&p===void 0?this.get(c,u):(this.set(c,u,p),p!==void 0?p:u)},remove:function(c,u){var p,g=c[this.expando];if(g!==void 0){if(u!==void 0)for(Array.isArray(u)?u=u.map(Jt):(u=Jt(u),u=u in g?[u]:u.match(di)||[]),p=u.length;p--;)delete g[u[p]];(u===void 0||d.isEmptyObject(g))&&(c.nodeType?c[this.expando]=void 0:delete c[this.expando])}},hasData:function(c){var u=c[this.expando];return u!==void 0&&!d.isEmptyObject(u)}};var we=new en,_t=new en,Ar=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,mi=/[A-Z]/g;function Wn(c){return c==="true"?!0:c==="false"?!1:c==="null"?null:c===+c+""?+c:Ar.test(c)?JSON.parse(c):c}function qn(c,u,p){var g;if(p===void 0&&c.nodeType===1)if(g="data-"+u.replace(mi,"-$&").toLowerCase(),p=c.getAttribute(g),typeof p=="string"){try{p=Wn(p)}catch(S){}_t.set(c,u,p)}else p=void 0;return p}d.extend({hasData:function(c){return _t.hasData(c)||we.hasData(c)},data:function(c,u,p){return _t.access(c,u,p)},removeData:function(c,u){_t.remove(c,u)},_data:function(c,u,p){return we.access(c,u,p)},_removeData:function(c,u){we.remove(c,u)}}),d.fn.extend({data:function(c,u){var p,g,S,v=this[0],y=v&&v.attributes;if(c===void 0){if(this.length&&(S=_t.get(v),v.nodeType===1&&!we.get(v,"hasDataAttrs"))){for(p=y.length;p--;)y[p]&&(g=y[p].name,g.indexOf("data-")===0&&(g=Jt(g.slice(5)),qn(v,g,S[g])));we.set(v,"hasDataAttrs",!0)}return S}return typeof c=="object"?this.each(function(){_t.set(this,c)}):pi(this,function(R){var _;if(v&&R===void 0)return _=_t.get(v,c),_!==void 0||(_=qn(v,c),_!==void 0)?_:void 0;this.each(function(){_t.set(this,c,R)})},null,u,arguments.length>1,null,!0)},removeData:function(c){return this.each(function(){_t.remove(this,c)})}}),d.extend({queue:function(c,u,p){var g;if(c)return u=(u||"fx")+"queue",g=we.get(c,u),p&&(!g||Array.isArray(p)?g=we.access(c,u,d.makeArray(p)):g.push(p)),g||[]},dequeue:function(c,u){u=u||"fx";var p=d.queue(c,u),g=p.length,S=p.shift(),v=d._queueHooks(c,u),y=function(){d.dequeue(c,u)};S==="inprogress"&&(S=p.shift(),g--),S&&(u==="fx"&&p.unshift("inprogress"),delete v.stop,S.call(c,y,v)),!g&&v&&v.empty.fire()},_queueHooks:function(c,u){var p=u+"queueHooks";return we.get(c,p)||we.access(c,p,{empty:d.Callbacks("once memory").add(function(){we.remove(c,[u+"queue",p])})})}}),d.fn.extend({queue:function(c,u){var p=2;return typeof c!="string"&&(u=c,c="fx",p--),arguments.length\x20\t\r\n\f]*)/i,rn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var c=X.createDocumentFragment(),u=c.appendChild(X.createElement("div")),p=X.createElement("input");p.setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),u.appendChild(p),b.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,u.innerHTML="",b.noCloneChecked=!!u.cloneNode(!0).lastChild.defaultValue,u.innerHTML="",b.option=!!u.lastChild})();var ei={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ei.tbody=ei.tfoot=ei.colgroup=ei.caption=ei.thead,ei.th=ei.td,b.option||(ei.optgroup=ei.option=[1,""]);function Bt(c,u){var p;return typeof c.getElementsByTagName!="undefined"?p=c.getElementsByTagName(u||"*"):typeof c.querySelectorAll!="undefined"?p=c.querySelectorAll(u||"*"):p=[],u===void 0||u&&F(c,u)?d.merge([c],p):p}function kt(c,u){for(var p=0,g=c.length;p-1){S&&S.push(v);continue}if(z=Yi(v),y=Bt(ee.appendChild(v),"script"),z&&kt(y),p)for(B=0;v=y[B++];)rn.test(v.type||"")&&p.push(v)}return ee}var ws=/^([^.]*)(?:\.(.+)|)/;function lr(){return!0}function Er(){return!1}function Nn(c,u,p,g,S,v){var y,R;if(typeof u=="object"){typeof p!="string"&&(g=g||p,p=void 0);for(R in u)Nn(c,R,p,g,u[R],v);return c}if(g==null&&S==null?(S=p,g=p=void 0):S==null&&(typeof p=="string"?(S=g,g=void 0):(S=g,g=p,p=void 0)),S===!1)S=Er;else if(!S)return c;return v===1&&(y=S,S=function(_){return d().off(_),y.apply(this,arguments)},S.guid=y.guid||(y.guid=d.guid++)),c.each(function(){d.event.add(this,u,S,g,p)})}d.event={global:{},add:function(c,u,p,g,S){var v,y,R,_,z,B,ee,W,oe,Ve,st,Ie=we.get(c);if(or(c))for(p.handler&&(v=p,p=v.handler,S=v.selector),S&&d.find.matchesSelector(bi,S),p.guid||(p.guid=d.guid++),(_=Ie.events)||(_=Ie.events=Object.create(null)),(y=Ie.handle)||(y=Ie.handle=function(ti){return typeof d!="undefined"&&d.event.triggered!==ti.type?d.event.dispatch.apply(c,arguments):void 0}),u=(u||"").match(di)||[""],z=u.length;z--;)R=ws.exec(u[z])||[],oe=st=R[1],Ve=(R[2]||"").split(".").sort(),oe&&(ee=d.event.special[oe]||{},oe=(S?ee.delegateType:ee.bindType)||oe,ee=d.event.special[oe]||{},B=d.extend({type:oe,origType:st,data:g,handler:p,guid:p.guid,selector:S,needsContext:S&&d.expr.match.needsContext.test(S),namespace:Ve.join(".")},v),(W=_[oe])||(W=_[oe]=[],W.delegateCount=0,(!ee.setup||ee.setup.call(c,g,Ve,y)===!1)&&c.addEventListener&&c.addEventListener(oe,y)),ee.add&&(ee.add.call(c,B),B.handler.guid||(B.handler.guid=p.guid)),S?W.splice(W.delegateCount++,0,B):W.push(B),d.event.global[oe]=!0)},remove:function(c,u,p,g,S){var v,y,R,_,z,B,ee,W,oe,Ve,st,Ie=we.hasData(c)&&we.get(c);if(!(!Ie||!(_=Ie.events))){for(u=(u||"").match(di)||[""],z=u.length;z--;){if(R=ws.exec(u[z])||[],oe=st=R[1],Ve=(R[2]||"").split(".").sort(),!oe){for(oe in _)d.event.remove(c,oe+u[z],p,g,!0);continue}for(ee=d.event.special[oe]||{},oe=(g?ee.delegateType:ee.bindType)||oe,W=_[oe]||[],R=R[2]&&new RegExp("(^|\\.)"+Ve.join("\\.(?:.*\\.|)")+"(\\.|$)"),y=v=W.length;v--;)B=W[v],(S||st===B.origType)&&(!p||p.guid===B.guid)&&(!R||R.test(B.namespace))&&(!g||g===B.selector||g==="**"&&B.selector)&&(W.splice(v,1),B.selector&&W.delegateCount--,ee.remove&&ee.remove.call(c,B));y&&!W.length&&((!ee.teardown||ee.teardown.call(c,Ve,Ie.handle)===!1)&&d.removeEvent(c,oe,Ie.handle),delete _[oe])}d.isEmptyObject(_)&&we.remove(c,"handle events")}},dispatch:function(c){var u,p,g,S,v,y,R=new Array(arguments.length),_=d.event.fix(c),z=(we.get(this,"events")||Object.create(null))[_.type]||[],B=d.event.special[_.type]||{};for(R[0]=_,u=1;u=1)){for(;z!==this;z=z.parentNode||this)if(z.nodeType===1&&!(c.type==="click"&&z.disabled===!0)){for(v=[],y={},p=0;p<_;p++)g=u[p],S=g.selector+" ",y[S]===void 0&&(y[S]=g.needsContext?d(S,this).index(z)>-1:d.find(S,this,null,[z]).length),y[S]&&v.push(g);v.length&&R.push({elem:z,handlers:v})}}return z=this,_\s*$/g;function $s(c,u){return F(c,"table")&&F(u.nodeType!==11?u:u.firstChild,"tr")&&d(c).children("tbody")[0]||c}function Ps(c){return c.type=(c.getAttribute("type")!==null)+"/"+c.type,c}function yo(c){return(c.type||"").slice(0,5)==="true/"?c.type=c.type.slice(5):c.removeAttribute("type"),c}function Ui(c,u){var p,g,S,v,y,R,_;if(u.nodeType===1){if(we.hasData(c)&&(v=we.get(c),_=v.events,_)){we.remove(u,"handle events");for(S in _)for(p=0,g=_[S].length;p1&&typeof oe=="string"&&!b.checkClone&&cr.test(oe))return c.each(function(st){var Ie=c.eq(st);Ve&&(u[0]=oe.call(this,st,Ie.html())),Yr(Ie,u,p,g)});if(ee&&(S=Qo(u,c[0].ownerDocument,!1,c,g),v=S.firstChild,S.childNodes.length===1&&(S=v),v||g)){for(y=d.map(Bt(S,"script"),Ps),R=y.length;B0&&kt(y,!_&&Bt(c,"script")),R},cleanData:function(c){for(var u,p,g,S=d.event.special,v=0;(p=c[v])!==void 0;v++)if(or(p)){if(u=p[we.expando]){if(u.events)for(g in u.events)S[g]?d.event.remove(p,g):d.removeEvent(p,g,u.handle);p[we.expando]=void 0}p[_t.expando]&&(p[_t.expando]=void 0)}}}),d.fn.extend({detach:function(c){return ks(this,c,!0)},remove:function(c){return ks(this,c)},text:function(c){return pi(this,function(u){return u===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=u)})},null,c,arguments.length)},append:function(){return Yr(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=$s(this,c);u.appendChild(c)}})},prepend:function(){return Yr(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=$s(this,c);u.insertBefore(c,u.firstChild)}})},before:function(){return Yr(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return Yr(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,u=0;(c=this[u])!=null;u++)c.nodeType===1&&(d.cleanData(Bt(c,!1)),c.textContent="");return this},clone:function(c,u){return c=c==null?!1:c,u=u==null?c:u,this.map(function(){return d.clone(this,c,u)})},html:function(c){return pi(this,function(u){var p=this[0]||{},g=0,S=this.length;if(u===void 0&&p.nodeType===1)return p.innerHTML;if(typeof u=="string"&&!Zi.test(u)&&!ei[(vo.exec(u)||["",""])[1].toLowerCase()]){u=d.htmlPrefilter(u);try{for(;g=0&&(_+=Math.max(0,Math.ceil(c["offset"+u[0].toUpperCase()+u.slice(1)]-v-_-R-.5))||0),_+z}function Fl(c,u,p){var g=Pe(c),S=!b.boxSizingReliable()||p,v=S&&d.css(c,"boxSizing",!1,g)==="border-box",y=v,R=xe(c,u,g),_="offset"+u[0].toUpperCase()+u.slice(1);if(Gn.test(R)){if(!p)return R;R="auto"}return(!b.boxSizingReliable()&&v||!b.reliableTrDimensions()&&F(c,"tr")||R==="auto"||!parseFloat(R)&&d.css(c,"display",!1,g)==="inline")&&c.getClientRects().length&&(v=d.css(c,"boxSizing",!1,g)==="border-box",y=_ in c,y&&(R=c[_])),R=parseFloat(R)||0,R+Rs(c,u,p||(v?"border":"content"),y,g,R)+"px"}d.extend({cssHooks:{opacity:{get:function(c,u){if(u){var p=xe(c,"opacity");return p===""?"1":p}}}},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(c,u,p,g){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var S,v,y,R=Jt(u),_=Ts.test(u),z=c.style;if(_||(u=hr(R)),y=d.cssHooks[u]||d.cssHooks[R],p!==void 0){if(v=typeof p,v==="string"&&(S=ar.exec(p))&&S[1]&&(p=In(c,u,S),v="number"),p==null||p!==p)return;v==="number"&&!_&&(p+=S&&S[3]||(d.cssNumber[R]?"":"px")),!b.clearCloneStyle&&p===""&&u.indexOf("background")===0&&(z[u]="inherit"),(!y||!("set"in y)||(p=y.set(c,p,g))!==void 0)&&(_?z.setProperty(u,p):z[u]=p)}else return y&&"get"in y&&(S=y.get(c,!1,g))!==void 0?S:z[u]}},css:function(c,u,p,g){var S,v,y,R=Jt(u),_=Ts.test(u);return _||(u=hr(R)),y=d.cssHooks[u]||d.cssHooks[R],y&&"get"in y&&(S=y.get(c,!0,p)),S===void 0&&(S=xe(c,u,g)),S==="normal"&&u in Xs&&(S=Xs[u]),p===""||p?(v=parseFloat(S),p===!0||isFinite(v)?v||0:S):S}}),d.each(["height","width"],function(c,u){d.cssHooks[u]={get:function(p,g,S){if(g)return sn.test(d.css(p,"display"))&&(!p.getClientRects().length||!p.getBoundingClientRect().width)?A(p,Rt,function(){return Fl(p,u,S)}):Fl(p,u,S)},set:function(p,g,S){var v,y=Pe(p),R=!b.scrollboxSize()&&y.position==="absolute",_=R||S,z=_&&d.css(p,"boxSizing",!1,y)==="border-box",B=S?Rs(p,u,S,z,y):0;return z&&R&&(B-=Math.ceil(p["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(y[u])-Rs(p,u,"border",!1,y)-.5)),B&&(v=ar.exec(g))&&(v[3]||"px")!=="px"&&(p.style[u]=g,g=d.css(p,u)),_s(p,g,B)}}}),d.cssHooks.marginLeft=pt(b.reliableMarginLeft,function(c,u){if(u)return(parseFloat(xe(c,"marginLeft"))||c.getBoundingClientRect().left-A(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(c,u){d.cssHooks[c+u]={expand:function(p){for(var g=0,S={},v=typeof p=="string"?p.split(" "):[p];g<4;g++)S[c+gi[g]+u]=v[g]||v[g-2]||v[0];return S}},c!=="margin"&&(d.cssHooks[c+u].set=_s)}),d.fn.extend({css:function(c,u){return pi(this,function(p,g,S){var v,y,R={},_=0;if(Array.isArray(g)){for(v=Pe(p),y=g.length;_1)}});function oi(c,u,p,g,S){return new oi.prototype.init(c,u,p,g,S)}d.Tween=oi,oi.prototype={constructor:oi,init:function(c,u,p,g,S,v){this.elem=c,this.prop=p,this.easing=S||d.easing._default,this.options=u,this.start=this.now=this.cur(),this.end=g,this.unit=v||(d.cssNumber[p]?"":"px")},cur:function(){var c=oi.propHooks[this.prop];return c&&c.get?c.get(this):oi.propHooks._default.get(this)},run:function(c){var u,p=oi.propHooks[this.prop];return this.options.duration?this.pos=u=d.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=u=c,this.now=(this.end-this.start)*u+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),p&&p.set?p.set(this):oi.propHooks._default.set(this),this}},oi.prototype.init.prototype=oi.prototype,oi.propHooks={_default:{get:function(c){var u;return c.elem.nodeType!==1||c.elem[c.prop]!=null&&c.elem.style[c.prop]==null?c.elem[c.prop]:(u=d.css(c.elem,c.prop,""),!u||u==="auto"?0:u)},set:function(c){d.fx.step[c.prop]?d.fx.step[c.prop](c):c.elem.nodeType===1&&(d.cssHooks[c.prop]||c.elem.style[hr(c.prop)]!=null)?d.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}},oi.propHooks.scrollTop=oi.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},d.easing={linear:function(c){return c},swing:function(c){return .5-Math.cos(c*Math.PI)/2},_default:"swing"},d.fx=oi.prototype.init,d.fx.step={};var w,C,k=/^(?:toggle|show|hide)$/,U=/queueHooks$/;function M(){C&&(X.hidden===!1&&i.requestAnimationFrame?i.requestAnimationFrame(M):i.setTimeout(M,d.fx.interval),d.fx.tick())}function Z(){return i.setTimeout(function(){w=void 0}),w=Date.now()}function H(c,u){var p,g=0,S={height:c};for(u=u?1:0;g<4;g+=2-u)p=gi[g],S["margin"+p]=S["padding"+p]=c;return u&&(S.opacity=S.width=c),S}function re(c,u,p){for(var g,S=(se.tweeners[u]||[]).concat(se.tweeners["*"]),v=0,y=S.length;v1)},removeAttr:function(c){return this.each(function(){d.removeAttr(this,c)})}}),d.extend({attr:function(c,u,p){var g,S,v=c.nodeType;if(!(v===3||v===8||v===2)){if(typeof c.getAttribute=="undefined")return d.prop(c,u,p);if((v!==1||!d.isXMLDoc(c))&&(S=d.attrHooks[u.toLowerCase()]||(d.expr.match.bool.test(u)?$e:void 0)),p!==void 0){if(p===null){d.removeAttr(c,u);return}return S&&"set"in S&&(g=S.set(c,p,u))!==void 0?g:(c.setAttribute(u,p+""),p)}return S&&"get"in S&&(g=S.get(c,u))!==null?g:(g=d.find.attr(c,u),g==null?void 0:g)}},attrHooks:{type:{set:function(c,u){if(!b.radioValue&&u==="radio"&&F(c,"input")){var p=c.value;return c.setAttribute("type",u),p&&(c.value=p),u}}}},removeAttr:function(c,u){var p,g=0,S=u&&u.match(di);if(S&&c.nodeType===1)for(;p=S[g++];)c.removeAttribute(p)}}),$e={set:function(c,u,p){return u===!1?d.removeAttr(c,p):c.setAttribute(p,p),p}},d.each(d.expr.match.bool.source.match(/\w+/g),function(c,u){var p=qe[u]||d.find.attr;qe[u]=function(g,S,v){var y,R,_=S.toLowerCase();return v||(R=qe[_],qe[_]=y,y=p(g,S,v)!=null?_:null,qe[_]=R),y}});var ut=/^(?:input|select|textarea|button)$/i,Ot=/^(?:a|area)$/i;d.fn.extend({prop:function(c,u){return pi(this,d.prop,c,u,arguments.length>1)},removeProp:function(c){return this.each(function(){delete this[d.propFix[c]||c]})}}),d.extend({prop:function(c,u,p){var g,S,v=c.nodeType;if(!(v===3||v===8||v===2))return(v!==1||!d.isXMLDoc(c))&&(u=d.propFix[u]||u,S=d.propHooks[u]),p!==void 0?S&&"set"in S&&(g=S.set(c,p,u))!==void 0?g:c[u]=p:S&&"get"in S&&(g=S.get(c,u))!==null?g:c[u]},propHooks:{tabIndex:{get:function(c){var u=d.find.attr(c,"tabindex");return u?parseInt(u,10):ut.test(c.nodeName)||Ot.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(d.propHooks.selected={get:function(c){var u=c.parentNode;return u&&u.parentNode&&u.parentNode.selectedIndex,null},set:function(c){var u=c.parentNode;u&&(u.selectedIndex,u.parentNode&&u.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function Qt(c){var u=c.match(di)||[];return u.join(" ")}function gt(c){return c.getAttribute&&c.getAttribute("class")||""}function ai(c){return Array.isArray(c)?c:typeof c=="string"?c.match(di)||[]:[]}d.fn.extend({addClass:function(c){var u,p,g,S,v,y;return Q(c)?this.each(function(R){d(this).addClass(c.call(this,R,gt(this)))}):(u=ai(c),u.length?this.each(function(){if(g=gt(this),p=this.nodeType===1&&" "+Qt(g)+" ",p){for(v=0;v-1;)p=p.replace(" "+S+" "," ");y=Qt(p),g!==y&&this.setAttribute("class",y)}}):this):this.attr("class","")},toggleClass:function(c,u){var p,g,S,v,y=typeof c,R=y==="string"||Array.isArray(c);return Q(c)?this.each(function(_){d(this).toggleClass(c.call(this,_,gt(this),u),u)}):typeof u=="boolean"&&R?u?this.addClass(c):this.removeClass(c):(p=ai(c),this.each(function(){if(R)for(v=d(this),S=0;S-1)return!0;return!1}});var Cs=/\r/g;d.fn.extend({val:function(c){var u,p,g,S=this[0];return arguments.length?(g=Q(c),this.each(function(v){var y;this.nodeType===1&&(g?y=c.call(this,v,d(this).val()):y=c,y==null?y="":typeof y=="number"?y+="":Array.isArray(y)&&(y=d.map(y,function(R){return R==null?"":R+""})),u=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!u||!("set"in u)||u.set(this,y,"value")===void 0)&&(this.value=y))})):S?(u=d.valHooks[S.type]||d.valHooks[S.nodeName.toLowerCase()],u&&"get"in u&&(p=u.get(S,"value"))!==void 0?p:(p=S.value,typeof p=="string"?p.replace(Cs,""):p==null?"":p)):void 0}}),d.extend({valHooks:{option:{get:function(c){var u=d.find.attr(c,"value");return u!=null?u:Qt(d.text(c))}},select:{get:function(c){var u,p,g,S=c.options,v=c.selectedIndex,y=c.type==="select-one",R=y?null:[],_=y?v+1:S.length;for(v<0?g=_:g=y?v:0;g<_;g++)if(p=S[g],(p.selected||g===v)&&!p.disabled&&(!p.parentNode.disabled||!F(p.parentNode,"optgroup"))){if(u=d(p).val(),y)return u;R.push(u)}return R},set:function(c,u){for(var p,g,S=c.options,v=d.makeArray(u),y=S.length;y--;)g=S[y],(g.selected=d.inArray(d.valHooks.option.get(g),v)>-1)&&(p=!0);return p||(c.selectedIndex=-1),v}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(c,u){if(Array.isArray(u))return c.checked=d.inArray(d(c).val(),u)>-1}},b.checkOn||(d.valHooks[this].get=function(c){return c.getAttribute("value")===null?"on":c.value})});var wn=i.location,Hl={guid:Date.now()},As=/\?/;d.parseXML=function(c){var u,p;if(!c||typeof c!="string")return null;try{u=new i.DOMParser().parseFromString(c,"text/xml")}catch(g){}return p=u&&u.getElementsByTagName("parsererror")[0],(!u||p)&&d.error("Invalid XML: "+(p?d.map(p.childNodes,function(g){return g.textContent}).join(` +import{a as fc,b as To,c as q1}from"./chunk-JSIZCY7X.js";import{a as Yg}from"./chunk-LNOKARBD.js";import{a as Eg,b as Zg,c as j1}from"./chunk-NSHJSYBI.js";import{D as _u,J as Ru,t as Cg,u as Ag}from"./chunk-TBY42HNR.js";import{A as Us,E as Or,F as ku,G as ko,I as cc,J as Xg,K as Tu,T as Xu,V as _g,a as fn,b as ba,ba as hc,ca as Rg,d as ci,da as Sa,e as wu,f as hi,g as ht,h as $u,k as Pg,m as nc,n as sc,o as oc,p as Zs,q as kg,t as ac,w as Tg,x as Pu,y as lc,z as Qi}from"./chunk-6VYEJCUW.js";import{a as Ft,b as rc,c as ma,d as xu,e as yu}from"./chunk-KT7KMEQC.js";var Au=xu((Ug,Cu)=>{(function(i){if(typeof Ug=="object"&&typeof Cu!="undefined")Cu.exports=i();else if(typeof define=="function"&&define.amd)define([],i);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=i()}})(function(){var i,e,t;return(function r(n,s,o){function a(f,O){if(!s[f]){if(!n[f]){var m=typeof ma=="function"&&ma;if(!O&&m)return m(f,!0);if(l)return l(f,!0);var b=new Error("Cannot find module '"+f+"'");throw b.code="MODULE_NOT_FOUND",b}var Q=s[f]={exports:{}};n[f][0].call(Q.exports,function(P){var X=n[f][1][P];return a(X||P)},Q,Q.exports,r,n,s,o)}return s[f].exports}for(var l=typeof ma=="function"&&ma,h=0;h=43)}}).catch(function(){return!1})}function de(w){return typeof G=="boolean"?m.resolve(G):F(w).then(function(C){return G=C,G})}function Ee(w){var C=q[w.name],k={};k.promise=new m(function(U,M){k.resolve=U,k.reject=M}),C.deferredOperations.push(k),C.dbReady?C.dbReady=C.dbReady.then(function(){return k.promise}):C.dbReady=k.promise}function ge(w){var C=q[w.name],k=C.deferredOperations.pop();if(k)return k.resolve(),k.promise}function ie(w,C){var k=q[w.name],U=k.deferredOperations.pop();if(U)return U.reject(C),U.promise}function Te(w,C){return new m(function(k,U){if(q[w.name]=q[w.name]||nt(),w.db)if(C)Ee(w),w.db.close();else return k(w.db);var M=[w.name];C&&M.push(w.version);var Z=h.open.apply(h,M);C&&(Z.onupgradeneeded=function(H){var re=Z.result;try{re.createObjectStore(w.storeName),H.oldVersion<=1&&re.createObjectStore(E)}catch(le){if(le.name==="ConstraintError")console.warn('The database "'+w.name+'" has been upgraded from version '+H.oldVersion+" to version "+H.newVersion+', but the storage "'+w.storeName+'" already exists.');else throw le}}),Z.onerror=function(H){H.preventDefault(),U(Z.error)},Z.onsuccess=function(){var H=Z.result;H.onversionchange=function(re){re.target.close()},k(H),ge(w)}})}function Ze(w){return Te(w,!1)}function Be(w){return Te(w,!0)}function te(w,C){if(!w.db)return!0;var k=!w.db.objectStoreNames.contains(w.storeName),U=w.versionw.db.version;if(U&&(w.version!==C&&console.warn('The database "'+w.name+`" can't be downgraded from version `+w.db.version+" to version "+w.version+"."),w.version=w.db.version),M||k){if(k){var Z=w.db.version+1;Z>w.version&&(w.version=Z)}return!0}return!1}function Qe(w){return new m(function(C,k){var U=new FileReader;U.onerror=k,U.onloadend=function(M){var Z=btoa(M.target.result||"");C({__local_forage_encoded_blob:!0,data:Z,type:w.type})},U.readAsBinaryString(w)})}function ce(w){var C=j(atob(w.data));return O([C],{type:w.type})}function Me(w){return w&&w.__local_forage_encoded_blob}function je(w){var C=this,k=C._initReady().then(function(){var U=q[C._dbInfo.name];if(U&&U.dbReady)return U.dbReady});return Q(k,w,w),k}function We(w){Ee(w);for(var C=q[w.name],k=C.forages,U=0;U0&&(!w.db||Z.name==="InvalidStateError"||Z.name==="NotFoundError"))return m.resolve().then(function(){if(!w.db||Z.name==="NotFoundError"&&!w.db.objectStoreNames.contains(w.storeName)&&w.version<=w.db.version)return w.db&&(w.version=w.db.version+1),Be(w)}).then(function(){return We(w).then(function(){dt(w,C,k,U-1)})}).catch(k);k(Z)}}function nt(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ai(w){var C=this,k={db:null};if(w)for(var U in w)k[U]=w[U];var M=q[k.name];M||(M=nt(),q[k.name]=M),M.forages.push(C),C._initReady||(C._initReady=C.ready,C.ready=je);var Z=[];function H(){return m.resolve()}for(var re=0;re>4,se[M++]=(H&15)<<4|re>>2,se[M++]=(re&3)<<6|le&63;return he}function Si(w){var C=new Uint8Array(w),k="",U;for(U=0;U>2],k+=Kt[(C[U]&3)<<4|C[U+1]>>4],k+=Kt[(C[U+1]&15)<<2|C[U+2]>>6],k+=Kt[C[U+2]&63];return C.length%3===2?k=k.substring(0,k.length-1)+"=":C.length%3===1&&(k=k.substring(0,k.length-2)+"=="),k}function Gi(w,C){var k="";if(w&&(k=bi.call(w)),w&&(k==="[object ArrayBuffer]"||w.buffer&&bi.call(w.buffer)==="[object ArrayBuffer]")){var U,M=Cr;w instanceof ArrayBuffer?(U=w,M+=Jt):(U=w.buffer,k==="[object Int8Array]"?M+=en:k==="[object Uint8Array]"?M+=we:k==="[object Uint8ClampedArray]"?M+=_t:k==="[object Int16Array]"?M+=Ar:k==="[object Uint16Array]"?M+=Wn:k==="[object Int32Array]"?M+=mi:k==="[object Uint32Array]"?M+=qn:k==="[object Float32Array]"?M+=jn:k==="[object Float64Array]"?M+=ar:C(new Error("Failed to get type for BinaryArray"))),C(M+Si(U))}else if(k==="[object Blob]"){var Z=new FileReader;Z.onload=function(){var H=pi+w.type+"~"+Si(this.result);C(Cr+or+H)},Z.readAsArrayBuffer(w)}else try{C(JSON.stringify(w))}catch(H){console.error("Couldn't convert value into a JSON string: ",w),C(null,H)}}function In(w){if(w.substring(0,Jr)!==Cr)return JSON.parse(w);var C=w.substring(gi),k=w.substring(Jr,gi),U;if(k===or&&Rr.test(C)){var M=C.match(Rr);U=M[1],C=C.substring(M[0].length)}var Z=Yi(C);switch(k){case Jt:return Z;case or:return O([Z],{type:U});case en:return new Int8Array(Z);case we:return new Uint8Array(Z);case _t:return new Uint8ClampedArray(Z);case Ar:return new Int16Array(Z);case Wn:return new Uint16Array(Z);case mi:return new Int32Array(Z);case qn:return new Uint32Array(Z);case jn:return new Float32Array(Z);case ar:return new Float64Array(Z);default:throw new Error("Unkown type: "+k)}}var tn={serialize:Gi,deserialize:In,stringToBuffer:Yi,bufferToString:Si};function So(w,C,k,U){w.executeSql("CREATE TABLE IF NOT EXISTS "+C.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],k,U)}function Fi(w){var C=this,k={db:null};if(w)for(var U in w)k[U]=typeof w[U]!="string"?w[U].toString():w[U];var M=new m(function(Z,H){try{k.db=openDatabase(k.name,String(k.version),k.description,k.size)}catch(re){return H(re)}k.db.transaction(function(re){So(re,k,function(){C._dbInfo=k,Z()},function(le,he){H(he)})},H)});return k.serializer=tn,M}function Wt(w,C,k,U,M,Z){w.executeSql(k,U,M,function(H,re){re.code===re.SYNTAX_ERR?H.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[C.storeName],function(le,he){he.rows.length?Z(le,re):So(le,C,function(){le.executeSql(k,U,M,Z)},Z)},Z):Z(H,re)},Z)}function vo(w,C){var k=this;w=P(w);var U=new m(function(M,Z){k.ready().then(function(){var H=k._dbInfo;H.db.transaction(function(re){Wt(re,H,"SELECT * FROM "+H.storeName+" WHERE key = ? LIMIT 1",[w],function(le,he){var se=he.rows.length?he.rows.item(0).value:null;se&&(se=H.serializer.deserialize(se)),M(se)},function(le,he){Z(he)})})}).catch(Z)});return b(U,C),U}function rn(w,C){var k=this,U=new m(function(M,Z){k.ready().then(function(){var H=k._dbInfo;H.db.transaction(function(re){Wt(re,H,"SELECT * FROM "+H.storeName,[],function(le,he){for(var se=he.rows,$e=se.length,qe=0;qe<$e;qe++){var ut=se.item(qe),Ot=ut.value;if(Ot&&(Ot=H.serializer.deserialize(Ot)),Ot=w(Ot,ut.key,qe+1),Ot!==void 0){M(Ot);return}}M()},function(le,he){Z(he)})})}).catch(Z)});return b(U,C),U}function ei(w,C,k,U){var M=this;w=P(w);var Z=new m(function(H,re){M.ready().then(function(){C===void 0&&(C=null);var le=C,he=M._dbInfo;he.serializer.serialize(C,function(se,$e){$e?re($e):he.db.transaction(function(qe){Wt(qe,he,"INSERT OR REPLACE INTO "+he.storeName+" (key, value) VALUES (?, ?)",[w,se],function(){H(le)},function(ut,Ot){re(Ot)})},function(qe){if(qe.code===qe.QUOTA_ERR){if(U>0){H(ei.apply(M,[w,le,k,U-1]));return}re(qe)}})})}).catch(re)});return b(Z,k),Z}function Bt(w,C,k){return ei.apply(this,[w,C,k,1])}function kt(w,C){var k=this;w=P(w);var U=new m(function(M,Z){k.ready().then(function(){var H=k._dbInfo;H.db.transaction(function(re){Wt(re,H,"DELETE FROM "+H.storeName+" WHERE key = ?",[w],function(){M()},function(le,he){Z(he)})})}).catch(Z)});return b(U,C),U}function nn(w){var C=this,k=new m(function(U,M){C.ready().then(function(){var Z=C._dbInfo;Z.db.transaction(function(H){Wt(H,Z,"DELETE FROM "+Z.storeName,[],function(){U()},function(re,le){M(le)})})}).catch(M)});return b(k,w),k}function Qo(w){var C=this,k=new m(function(U,M){C.ready().then(function(){var Z=C._dbInfo;Z.db.transaction(function(H){Wt(H,Z,"SELECT COUNT(key) as c FROM "+Z.storeName,[],function(re,le){var he=le.rows.item(0).c;U(he)},function(re,le){M(le)})})}).catch(M)});return b(k,w),k}function ws(w,C){var k=this,U=new m(function(M,Z){k.ready().then(function(){var H=k._dbInfo;H.db.transaction(function(re){Wt(re,H,"SELECT key FROM "+H.storeName+" WHERE id = ? LIMIT 1",[w+1],function(le,he){var se=he.rows.length?he.rows.item(0).key:null;M(se)},function(le,he){Z(he)})})}).catch(Z)});return b(U,C),U}function lr(w){var C=this,k=new m(function(U,M){C.ready().then(function(){var Z=C._dbInfo;Z.db.transaction(function(H){Wt(H,Z,"SELECT key FROM "+Z.storeName,[],function(re,le){for(var he=[],se=0;se '__WebKitDatabaseInfoTable__'",[],function(M,Z){for(var H=[],re=0;re0}function Ps(w){var C=this,k={};if(w)for(var U in w)k[U]=w[U];return k.keyPrefix=cr(w,C._defaultConfig),$s()?(C._dbInfo=k,k.serializer=tn,m.resolve()):m.reject()}function yo(w){var C=this,k=C.ready().then(function(){for(var U=C._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var Z=localStorage.key(M);Z.indexOf(U)===0&&localStorage.removeItem(Z)}});return b(k,w),k}function Ui(w,C){var k=this;w=P(w);var U=k.ready().then(function(){var M=k._dbInfo,Z=localStorage.getItem(M.keyPrefix+w);return Z&&(Z=M.serializer.deserialize(Z)),Z});return b(U,C),U}function wo(w,C){var k=this,U=k.ready().then(function(){for(var M=k._dbInfo,Z=M.keyPrefix,H=Z.length,re=localStorage.length,le=1,he=0;he=0;H--){var re=localStorage.key(H);re.indexOf(Z)===0&&localStorage.removeItem(re)}}):M=m.reject("Invalid arguments"),b(M,C),M}var ae={_driver:"localStorageWrapper",_initStorage:Ps,_support:Zi(),iterate:wo,getItem:Ui,setItem:Pe,removeItem:Ts,clear:yo,length:Gn,key:Yr,keys:ks,dropInstance:A},xe=function(C,k){return C===k||typeof C=="number"&&typeof k=="number"&&isNaN(C)&&isNaN(k)},pt=function(C,k){for(var U=C.length,M=0;M{(function(i,e){"use strict";typeof Gf=="object"&&typeof Gf.exports=="object"?Gf.exports=i.document?e(i,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(i)})(typeof window!="undefined"?window:Lw,function(i,e){"use strict";var t=[],r=Object.getPrototypeOf,n=t.slice,s=t.flat?function(c){return t.flat.call(c)}:function(c){return t.concat.apply([],c)},o=t.push,a=t.indexOf,l={},h=l.toString,f=l.hasOwnProperty,O=f.toString,m=O.call(Object),b={},Q=function(u){return typeof u=="function"&&typeof u.nodeType!="number"&&typeof u.item!="function"},P=function(u){return u!=null&&u===u.window},X=i.document,E={type:!0,src:!0,nonce:!0,noModule:!0};function G(c,u,p){p=p||X;var g,S,v=p.createElement("script");if(v.text=c,u)for(g in E)S=u[g]||u.getAttribute&&u.getAttribute(g),S&&v.setAttribute(g,S);p.head.appendChild(v).parentNode.removeChild(v)}function q(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?l[h.call(c)]||"object":typeof c}var N="3.7.1",V=/HTML$/i,d=function(c,u){return new d.fn.init(c,u)};d.fn=d.prototype={jquery:N,constructor:d,length:0,toArray:function(){return n.call(this)},get:function(c){return c==null?n.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var u=d.merge(this.constructor(),c);return u.prevObject=this,u},each:function(c){return d.each(this,c)},map:function(c){return this.pushStack(d.map(this,function(u,p){return c.call(u,p,u)}))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(c,u){return(u+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(c,u){return u%2}))},eq:function(c){var u=this.length,p=+c+(c<0?u:0);return this.pushStack(p>=0&&p0&&u-1 in c}function F(c,u){return c.nodeName&&c.nodeName.toLowerCase()===u.toLowerCase()}var de=t.pop,Ee=t.sort,ge=t.splice,ie="[\\x20\\t\\r\\n\\f]",Te=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g");d.contains=function(c,u){var p=u&&u.parentNode;return c===p||!!(p&&p.nodeType===1&&(c.contains?c.contains(p):c.compareDocumentPosition&&c.compareDocumentPosition(p)&16))};var Ze=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Be(c,u){return u?c==="\0"?"\uFFFD":c.slice(0,-1)+"\\"+c.charCodeAt(c.length-1).toString(16)+" ":"\\"+c}d.escapeSelector=function(c){return(c+"").replace(Ze,Be)};var te=X,Qe=o;(function(){var c,u,p,g,S,v=Qe,y,R,_,z,B,ee=d.expando,W=0,oe=0,Ve=Jl(),st=Jl(),Ie=Jl(),ti=Jl(),qt=function(T,Y){return T===Y&&(S=!0),0},on="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",an="(?:\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",et="\\["+ie+"*("+an+")(?:"+ie+"*([*^$|!~]?=)"+ie+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+an+"))|)"+ie+"*\\]",Es=":("+an+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+et+")*)|.*)\\)|)",ct=new RegExp(ie+"+","g"),Yt=new RegExp("^"+ie+"*,"+ie+"*"),Oa=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),pu=new RegExp(ie+"|>"),ln=new RegExp(Es),da=new RegExp("^"+an+"$"),cn={ID:new RegExp("^#("+an+")"),CLASS:new RegExp("^\\.("+an+")"),TAG:new RegExp("^("+an+"|[*])"),ATTR:new RegExp("^"+et),PSEUDO:new RegExp("^"+Es),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+on+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},Fn=/^(?:input|select|textarea|button)$/i,Hn=/^h\d$/i,fr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mu=/[+~]/,$n=new RegExp("\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\([^\\r\\n\\f])","g"),Pn=function(T,Y){var D="0x"+T.slice(1)-65536;return Y||(D<0?String.fromCharCode(D+65536):String.fromCharCode(D>>10|55296,D&1023|56320))},U1=function(){Kn()},z1=tc(function(T){return T.disabled===!0&&F(T,"fieldset")},{dir:"parentNode",next:"legend"});function L1(){try{return y.activeElement}catch(T){}}try{v.apply(t=n.call(te.childNodes),te.childNodes),t[te.childNodes.length].nodeType}catch(T){v={apply:function(Y,D){Qe.apply(Y,n.call(D))},call:function(Y){Qe.apply(Y,n.call(arguments,1))}}}function bt(T,Y,D,I){var K,ue,be,Xe,Se,He,Ue,De=Y&&Y.ownerDocument,Ke=Y?Y.nodeType:9;if(D=D||[],typeof T!="string"||!T||Ke!==1&&Ke!==9&&Ke!==11)return D;if(!I&&(Kn(Y),Y=Y||y,_)){if(Ke!==11&&(Se=fr.exec(T)))if(K=Se[1]){if(Ke===9)if(be=Y.getElementById(K)){if(be.id===K)return v.call(D,be),D}else return D;else if(De&&(be=De.getElementById(K))&&bt.contains(Y,be)&&be.id===K)return v.call(D,be),D}else{if(Se[2])return v.apply(D,Y.getElementsByTagName(T)),D;if((K=Se[3])&&Y.getElementsByClassName)return v.apply(D,Y.getElementsByClassName(K)),D}if(!ti[T+" "]&&(!z||!z.test(T))){if(Ue=T,De=Y,Ke===1&&(pu.test(T)||Oa.test(T))){for(De=mu.test(T)&&gu(Y.parentNode)||Y,(De!=Y||!b.scope)&&((Xe=Y.getAttribute("id"))?Xe=d.escapeSelector(Xe):Y.setAttribute("id",Xe=ee)),He=pa(T),ue=He.length;ue--;)He[ue]=(Xe?"#"+Xe:":scope")+" "+ec(He[ue]);Ue=He.join(",")}try{return v.apply(D,De.querySelectorAll(Ue)),D}catch(Ye){ti(T,!0)}finally{Xe===ee&&Y.removeAttribute("id")}}}return $g(T.replace(Te,"$1"),Y,D,I)}function Jl(){var T=[];function Y(D,I){return T.push(D+" ")>u.cacheLength&&delete Y[T.shift()],Y[D+" "]=I}return Y}function Zr(T){return T[ee]=!0,T}function $o(T){var Y=y.createElement("fieldset");try{return!!T(Y)}catch(D){return!1}finally{Y.parentNode&&Y.parentNode.removeChild(Y),Y=null}}function M1(T){return function(Y){return F(Y,"input")&&Y.type===T}}function V1(T){return function(Y){return(F(Y,"input")||F(Y,"button"))&&Y.type===T}}function yg(T){return function(Y){return"form"in Y?Y.parentNode&&Y.disabled===!1?"label"in Y?"label"in Y.parentNode?Y.parentNode.disabled===T:Y.disabled===T:Y.isDisabled===T||Y.isDisabled!==!T&&z1(Y)===T:Y.disabled===T:"label"in Y?Y.disabled===T:!1}}function Ys(T){return Zr(function(Y){return Y=+Y,Zr(function(D,I){for(var K,ue=T([],D.length,Y),be=ue.length;be--;)D[K=ue[be]]&&(D[K]=!(I[K]=D[K]))})})}function gu(T){return T&&typeof T.getElementsByTagName!="undefined"&&T}function Kn(T){var Y,D=T?T.ownerDocument||T:te;return D==y||D.nodeType!==9||!D.documentElement||(y=D,R=y.documentElement,_=!d.isXMLDoc(y),B=R.matches||R.webkitMatchesSelector||R.msMatchesSelector,R.msMatchesSelector&&te!=y&&(Y=y.defaultView)&&Y.top!==Y&&Y.addEventListener("unload",U1),b.getById=$o(function(I){return R.appendChild(I).id=d.expando,!y.getElementsByName||!y.getElementsByName(d.expando).length}),b.disconnectedMatch=$o(function(I){return B.call(I,"*")}),b.scope=$o(function(){return y.querySelectorAll(":scope")}),b.cssHas=$o(function(){try{return y.querySelector(":has(*,:jqfake)"),!1}catch(I){return!0}}),b.getById?(u.filter.ID=function(I){var K=I.replace($n,Pn);return function(ue){return ue.getAttribute("id")===K}},u.find.ID=function(I,K){if(typeof K.getElementById!="undefined"&&_){var ue=K.getElementById(I);return ue?[ue]:[]}}):(u.filter.ID=function(I){var K=I.replace($n,Pn);return function(ue){var be=typeof ue.getAttributeNode!="undefined"&&ue.getAttributeNode("id");return be&&be.value===K}},u.find.ID=function(I,K){if(typeof K.getElementById!="undefined"&&_){var ue,be,Xe,Se=K.getElementById(I);if(Se){if(ue=Se.getAttributeNode("id"),ue&&ue.value===I)return[Se];for(Xe=K.getElementsByName(I),be=0;Se=Xe[be++];)if(ue=Se.getAttributeNode("id"),ue&&ue.value===I)return[Se]}return[]}}),u.find.TAG=function(I,K){return typeof K.getElementsByTagName!="undefined"?K.getElementsByTagName(I):K.querySelectorAll(I)},u.find.CLASS=function(I,K){if(typeof K.getElementsByClassName!="undefined"&&_)return K.getElementsByClassName(I)},z=[],$o(function(I){var K;R.appendChild(I).innerHTML="",I.querySelectorAll("[selected]").length||z.push("\\["+ie+"*(?:value|"+on+")"),I.querySelectorAll("[id~="+ee+"-]").length||z.push("~="),I.querySelectorAll("a#"+ee+"+*").length||z.push(".#.+[+~]"),I.querySelectorAll(":checked").length||z.push(":checked"),K=y.createElement("input"),K.setAttribute("type","hidden"),I.appendChild(K).setAttribute("name","D"),R.appendChild(I).disabled=!0,I.querySelectorAll(":disabled").length!==2&&z.push(":enabled",":disabled"),K=y.createElement("input"),K.setAttribute("name",""),I.appendChild(K),I.querySelectorAll("[name='']").length||z.push("\\["+ie+"*name"+ie+"*="+ie+`*(?:''|"")`)}),b.cssHas||z.push(":has"),z=z.length&&new RegExp(z.join("|")),qt=function(I,K){if(I===K)return S=!0,0;var ue=!I.compareDocumentPosition-!K.compareDocumentPosition;return ue||(ue=(I.ownerDocument||I)==(K.ownerDocument||K)?I.compareDocumentPosition(K):1,ue&1||!b.sortDetached&&K.compareDocumentPosition(I)===ue?I===y||I.ownerDocument==te&&bt.contains(te,I)?-1:K===y||K.ownerDocument==te&&bt.contains(te,K)?1:g?a.call(g,I)-a.call(g,K):0:ue&4?-1:1)}),y}bt.matches=function(T,Y){return bt(T,null,null,Y)},bt.matchesSelector=function(T,Y){if(Kn(T),_&&!ti[Y+" "]&&(!z||!z.test(Y)))try{var D=B.call(T,Y);if(D||b.disconnectedMatch||T.document&&T.document.nodeType!==11)return D}catch(I){ti(Y,!0)}return bt(Y,y,null,[T]).length>0},bt.contains=function(T,Y){return(T.ownerDocument||T)!=y&&Kn(T),d.contains(T,Y)},bt.attr=function(T,Y){(T.ownerDocument||T)!=y&&Kn(T);var D=u.attrHandle[Y.toLowerCase()],I=D&&f.call(u.attrHandle,Y.toLowerCase())?D(T,Y,!_):void 0;return I!==void 0?I:T.getAttribute(Y)},bt.error=function(T){throw new Error("Syntax error, unrecognized expression: "+T)},d.uniqueSort=function(T){var Y,D=[],I=0,K=0;if(S=!b.sortStable,g=!b.sortStable&&n.call(T,0),Ee.call(T,qt),S){for(;Y=T[K++];)Y===T[K]&&(I=D.push(K));for(;I--;)ge.call(T,D[I],1)}return g=null,T},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort(n.apply(this)))},u=d.expr={cacheLength:50,createPseudo:Zr,match:cn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(T){return T[1]=T[1].replace($n,Pn),T[3]=(T[3]||T[4]||T[5]||"").replace($n,Pn),T[2]==="~="&&(T[3]=" "+T[3]+" "),T.slice(0,4)},CHILD:function(T){return T[1]=T[1].toLowerCase(),T[1].slice(0,3)==="nth"?(T[3]||bt.error(T[0]),T[4]=+(T[4]?T[5]+(T[6]||1):2*(T[3]==="even"||T[3]==="odd")),T[5]=+(T[7]+T[8]||T[3]==="odd")):T[3]&&bt.error(T[0]),T},PSEUDO:function(T){var Y,D=!T[6]&&T[2];return cn.CHILD.test(T[0])?null:(T[3]?T[2]=T[4]||T[5]||"":D&&ln.test(D)&&(Y=pa(D,!0))&&(Y=D.indexOf(")",D.length-Y)-D.length)&&(T[0]=T[0].slice(0,Y),T[2]=D.slice(0,Y)),T.slice(0,3))}},filter:{TAG:function(T){var Y=T.replace($n,Pn).toLowerCase();return T==="*"?function(){return!0}:function(D){return F(D,Y)}},CLASS:function(T){var Y=Ve[T+" "];return Y||(Y=new RegExp("(^|"+ie+")"+T+"("+ie+"|$)"))&&Ve(T,function(D){return Y.test(typeof D.className=="string"&&D.className||typeof D.getAttribute!="undefined"&&D.getAttribute("class")||"")})},ATTR:function(T,Y,D){return function(I){var K=bt.attr(I,T);return K==null?Y==="!=":Y?(K+="",Y==="="?K===D:Y==="!="?K!==D:Y==="^="?D&&K.indexOf(D)===0:Y==="*="?D&&K.indexOf(D)>-1:Y==="$="?D&&K.slice(-D.length)===D:Y==="~="?(" "+K.replace(ct," ")+" ").indexOf(D)>-1:Y==="|="?K===D||K.slice(0,D.length+1)===D+"-":!1):!0}},CHILD:function(T,Y,D,I,K){var ue=T.slice(0,3)!=="nth",be=T.slice(-4)!=="last",Xe=Y==="of-type";return I===1&&K===0?function(Se){return!!Se.parentNode}:function(Se,He,Ue){var De,Ke,Ye,$t,zi,li=ue!==be?"nextSibling":"previousSibling",ur=Se.parentNode,hn=Xe&&Se.nodeName.toLowerCase(),Po=!Ue&&!Xe,vi=!1;if(ur){if(ue){for(;li;){for(Ye=Se;Ye=Ye[li];)if(Xe?F(Ye,hn):Ye.nodeType===1)return!1;zi=li=T==="only"&&!zi&&"nextSibling"}return!0}if(zi=[be?ur.firstChild:ur.lastChild],be&&Po){for(Ke=ur[ee]||(ur[ee]={}),De=Ke[T]||[],$t=De[0]===W&&De[1],vi=$t&&De[2],Ye=$t&&ur.childNodes[$t];Ye=++$t&&Ye&&Ye[li]||(vi=$t=0)||zi.pop();)if(Ye.nodeType===1&&++vi&&Ye===Se){Ke[T]=[W,$t,vi];break}}else if(Po&&(Ke=Se[ee]||(Se[ee]={}),De=Ke[T]||[],$t=De[0]===W&&De[1],vi=$t),vi===!1)for(;(Ye=++$t&&Ye&&Ye[li]||(vi=$t=0)||zi.pop())&&!((Xe?F(Ye,hn):Ye.nodeType===1)&&++vi&&(Po&&(Ke=Ye[ee]||(Ye[ee]={}),Ke[T]=[W,vi]),Ye===Se)););return vi-=K,vi===I||vi%I===0&&vi/I>=0}}},PSEUDO:function(T,Y){var D,I=u.pseudos[T]||u.setFilters[T.toLowerCase()]||bt.error("unsupported pseudo: "+T);return I[ee]?I(Y):I.length>1?(D=[T,T,"",Y],u.setFilters.hasOwnProperty(T.toLowerCase())?Zr(function(K,ue){for(var be,Xe=I(K,Y),Se=Xe.length;Se--;)be=a.call(K,Xe[Se]),K[be]=!(ue[be]=Xe[Se])}):function(K){return I(K,0,D)}):I}},pseudos:{not:Zr(function(T){var Y=[],D=[],I=Qu(T.replace(Te,"$1"));return I[ee]?Zr(function(K,ue,be,Xe){for(var Se,He=I(K,null,Xe,[]),Ue=K.length;Ue--;)(Se=He[Ue])&&(K[Ue]=!(ue[Ue]=Se))}):function(K,ue,be){return Y[0]=K,I(Y,null,be,D),Y[0]=null,!D.pop()}}),has:Zr(function(T){return function(Y){return bt(T,Y).length>0}}),contains:Zr(function(T){return T=T.replace($n,Pn),function(Y){return(Y.textContent||d.text(Y)).indexOf(T)>-1}}),lang:Zr(function(T){return da.test(T||"")||bt.error("unsupported lang: "+T),T=T.replace($n,Pn).toLowerCase(),function(Y){var D;do if(D=_?Y.lang:Y.getAttribute("xml:lang")||Y.getAttribute("lang"))return D=D.toLowerCase(),D===T||D.indexOf(T+"-")===0;while((Y=Y.parentNode)&&Y.nodeType===1);return!1}}),target:function(T){var Y=i.location&&i.location.hash;return Y&&Y.slice(1)===T.id},root:function(T){return T===R},focus:function(T){return T===L1()&&y.hasFocus()&&!!(T.type||T.href||~T.tabIndex)},enabled:yg(!1),disabled:yg(!0),checked:function(T){return F(T,"input")&&!!T.checked||F(T,"option")&&!!T.selected},selected:function(T){return T.parentNode&&T.parentNode.selectedIndex,T.selected===!0},empty:function(T){for(T=T.firstChild;T;T=T.nextSibling)if(T.nodeType<6)return!1;return!0},parent:function(T){return!u.pseudos.empty(T)},header:function(T){return Hn.test(T.nodeName)},input:function(T){return Fn.test(T.nodeName)},button:function(T){return F(T,"input")&&T.type==="button"||F(T,"button")},text:function(T){var Y;return F(T,"input")&&T.type==="text"&&((Y=T.getAttribute("type"))==null||Y.toLowerCase()==="text")},first:Ys(function(){return[0]}),last:Ys(function(T,Y){return[Y-1]}),eq:Ys(function(T,Y,D){return[D<0?D+Y:D]}),even:Ys(function(T,Y){for(var D=0;DY?I=Y:I=D;--I>=0;)T.push(I);return T}),gt:Ys(function(T,Y,D){for(var I=D<0?D+Y:D;++I1?function(Y,D,I){for(var K=T.length;K--;)if(!T[K](Y,D,I))return!1;return!0}:T[0]}function D1(T,Y,D){for(var I=0,K=Y.length;I-1&&(be[Ue]=!(Xe[Ue]=Ke))}}else Ye=ic(Ye===Xe?Ye.splice(li,Ye.length):Ye),K?K(null,Xe,Ye,He):v.apply(Xe,Ye)})}function vu(T){for(var Y,D,I,K=T.length,ue=u.relative[T[0].type],be=ue||u.relative[" "],Xe=ue?1:0,Se=tc(function(De){return De===Y},be,!0),He=tc(function(De){return a.call(Y,De)>-1},be,!0),Ue=[function(De,Ke,Ye){var $t=!ue&&(Ye||Ke!=p)||((Y=Ke).nodeType?Se(De,Ke,Ye):He(De,Ke,Ye));return Y=null,$t}];Xe1&&bu(Ue),Xe>1&&ec(T.slice(0,Xe-1).concat({value:T[Xe-2].type===" "?"*":""})).replace(Te,"$1"),D,Xe0,I=T.length>0,K=function(ue,be,Xe,Se,He){var Ue,De,Ke,Ye=0,$t="0",zi=ue&&[],li=[],ur=p,hn=ue||I&&u.find.TAG("*",He),Po=W+=ur==null?1:Math.random()||.1,vi=hn.length;for(He&&(p=be==y||be||He);$t!==vi&&(Ue=hn[$t])!=null;$t++){if(I&&Ue){for(De=0,!be&&Ue.ownerDocument!=y&&(Kn(Ue),Xe=!_);Ke=T[De++];)if(Ke(Ue,be||y,Xe)){v.call(Se,Ue);break}He&&(W=Po)}D&&((Ue=!Ke&&Ue)&&Ye--,ue&&zi.push(Ue))}if(Ye+=$t,D&&$t!==Ye){for(De=0;Ke=Y[De++];)Ke(zi,li,be,Xe);if(ue){if(Ye>0)for(;$t--;)zi[$t]||li[$t]||(li[$t]=de.call(Se));li=ic(li)}v.apply(Se,li),He&&!ue&&li.length>0&&Ye+Y.length>1&&d.uniqueSort(Se)}return He&&(W=Po,p=ur),zi};return D?Zr(K):K}function Qu(T,Y){var D,I=[],K=[],ue=Ie[T+" "];if(!ue){for(Y||(Y=pa(T)),D=Y.length;D--;)ue=vu(Y[D]),ue[ee]?I.push(ue):K.push(ue);ue=Ie(T,W1(K,I)),ue.selector=T}return ue}function $g(T,Y,D,I){var K,ue,be,Xe,Se,He=typeof T=="function"&&T,Ue=!I&&pa(T=He.selector||T);if(D=D||[],Ue.length===1){if(ue=Ue[0]=Ue[0].slice(0),ue.length>2&&(be=ue[0]).type==="ID"&&Y.nodeType===9&&_&&u.relative[ue[1].type]){if(Y=(u.find.ID(be.matches[0].replace($n,Pn),Y)||[])[0],Y)He&&(Y=Y.parentNode);else return D;T=T.slice(ue.shift().value.length)}for(K=cn.needsContext.test(T)?0:ue.length;K--&&(be=ue[K],!u.relative[Xe=be.type]);)if((Se=u.find[Xe])&&(I=Se(be.matches[0].replace($n,Pn),mu.test(ue[0].type)&&gu(Y.parentNode)||Y))){if(ue.splice(K,1),T=I.length&&ec(ue),!T)return v.apply(D,I),D;break}}return(He||Qu(T,Ue))(I,Y,!_,D,!Y||mu.test(T)&&gu(Y.parentNode)||Y),D}b.sortStable=ee.split("").sort(qt).join("")===ee,Kn(),b.sortDetached=$o(function(T){return T.compareDocumentPosition(y.createElement("fieldset"))&1}),d.find=bt,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,bt.compile=Qu,bt.select=$g,bt.setDocument=Kn,bt.tokenize=pa,bt.escape=d.escapeSelector,bt.getText=d.text,bt.isXML=d.isXMLDoc,bt.selectors=d.expr,bt.support=d.support,bt.uniqueSort=d.uniqueSort})();var ce=function(c,u,p){for(var g=[],S=p!==void 0;(c=c[u])&&c.nodeType!==9;)if(c.nodeType===1){if(S&&d(c).is(p))break;g.push(c)}return g},Me=function(c,u){for(var p=[];c;c=c.nextSibling)c.nodeType===1&&c!==u&&p.push(c);return p},je=d.expr.match.needsContext,We=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function dt(c,u,p){return Q(u)?d.grep(c,function(g,S){return!!u.call(g,S,g)!==p}):u.nodeType?d.grep(c,function(g){return g===u!==p}):typeof u!="string"?d.grep(c,function(g){return a.call(u,g)>-1!==p}):d.filter(u,c,p)}d.filter=function(c,u,p){var g=u[0];return p&&(c=":not("+c+")"),u.length===1&&g.nodeType===1?d.find.matchesSelector(g,c)?[g]:[]:d.find.matches(c,d.grep(u,function(S){return S.nodeType===1}))},d.fn.extend({find:function(c){var u,p,g=this.length,S=this;if(typeof c!="string")return this.pushStack(d(c).filter(function(){for(u=0;u1?d.uniqueSort(p):p},filter:function(c){return this.pushStack(dt(this,c||[],!1))},not:function(c){return this.pushStack(dt(this,c||[],!0))},is:function(c){return!!dt(this,typeof c=="string"&&je.test(c)?d(c):c||[],!1).length}});var nt,Ai=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ft=d.fn.init=function(c,u,p){var g,S;if(!c)return this;if(p=p||nt,typeof c=="string")if(c[0]==="<"&&c[c.length-1]===">"&&c.length>=3?g=[null,c,null]:g=Ai.exec(c),g&&(g[1]||!u))if(g[1]){if(u=u instanceof d?u[0]:u,d.merge(this,d.parseHTML(g[1],u&&u.nodeType?u.ownerDocument||u:X,!0)),We.test(g[1])&&d.isPlainObject(u))for(g in u)Q(this[g])?this[g](u[g]):this.attr(g,u[g]);return this}else return S=X.getElementById(g[2]),S&&(this[0]=S,this.length=1),this;else return!u||u.jquery?(u||p).find(c):this.constructor(u).find(c);else{if(c.nodeType)return this[0]=c,this.length=1,this;if(Q(c))return p.ready!==void 0?p.ready(c):c(d)}return d.makeArray(c,this)};ft.prototype=d.fn,nt=d(X);var Ei=/^(?:parents|prev(?:Until|All))/,Kr={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(c){var u=d(c,this),p=u.length;return this.filter(function(){for(var g=0;g-1:p.nodeType===1&&d.find.matchesSelector(p,c))){v.push(p);break}}return this.pushStack(v.length>1?d.uniqueSort(v):v)},index:function(c){return c?typeof c=="string"?a.call(d(c),this[0]):a.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,u){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(c,u))))},addBack:function(c){return this.add(c==null?this.prevObject:this.prevObject.filter(c))}});function Tr(c,u){for(;(c=c[u])&&c.nodeType!==1;);return c}d.each({parent:function(c){var u=c.parentNode;return u&&u.nodeType!==11?u:null},parents:function(c){return ce(c,"parentNode")},parentsUntil:function(c,u,p){return ce(c,"parentNode",p)},next:function(c){return Tr(c,"nextSibling")},prev:function(c){return Tr(c,"previousSibling")},nextAll:function(c){return ce(c,"nextSibling")},prevAll:function(c){return ce(c,"previousSibling")},nextUntil:function(c,u,p){return ce(c,"nextSibling",p)},prevUntil:function(c,u,p){return ce(c,"previousSibling",p)},siblings:function(c){return Me((c.parentNode||{}).firstChild,c)},children:function(c){return Me(c.firstChild)},contents:function(c){return c.contentDocument!=null&&r(c.contentDocument)?c.contentDocument:(F(c,"template")&&(c=c.content||c),d.merge([],c.childNodes))}},function(c,u){d.fn[c]=function(p,g){var S=d.map(this,u,p);return c.slice(-5)!=="Until"&&(g=p),g&&typeof g=="string"&&(S=d.filter(g,S)),this.length>1&&(Kr[c]||d.uniqueSort(S),Ei.test(c)&&S.reverse()),this.pushStack(S)}});var di=/[^\x20\t\r\n\f]+/g;function ys(c){var u={};return d.each(c.match(di)||[],function(p,g){u[g]=!0}),u}d.Callbacks=function(c){c=typeof c=="string"?ys(c):d.extend({},c);var u,p,g,S,v=[],y=[],R=-1,_=function(){for(S=S||c.once,g=u=!0;y.length;R=-1)for(p=y.shift();++R-1;)v.splice(W,1),W<=R&&R--}),this},has:function(B){return B?d.inArray(B,v)>-1:v.length>0},empty:function(){return v&&(v=[]),this},disable:function(){return S=y=[],v=p="",this},disabled:function(){return!v},lock:function(){return S=y=[],!p&&!u&&(v=p=""),this},locked:function(){return!!S},fireWith:function(B,ee){return S||(ee=ee||[],ee=[B,ee.slice?ee.slice():ee],y.push(ee),u||_()),this},fire:function(){return z.fireWith(this,arguments),this},fired:function(){return!!g}};return z};function Xr(c){return c}function yn(c){throw c}function _r(c,u,p,g){var S;try{c&&Q(S=c.promise)?S.call(c).done(u).fail(p):c&&Q(S=c.then)?S.call(c,u,p):u.apply(void 0,[c].slice(g))}catch(v){p.apply(void 0,[v])}}d.extend({Deferred:function(c){var u=[["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"]],p="pending",g={state:function(){return p},always:function(){return S.done(arguments).fail(arguments),this},catch:function(v){return g.then(null,v)},pipe:function(){var v=arguments;return d.Deferred(function(y){d.each(u,function(R,_){var z=Q(v[_[4]])&&v[_[4]];S[_[1]](function(){var B=z&&z.apply(this,arguments);B&&Q(B.promise)?B.promise().progress(y.notify).done(y.resolve).fail(y.reject):y[_[0]+"With"](this,z?[B]:arguments)})}),v=null}).promise()},then:function(v,y,R){var _=0;function z(B,ee,W,oe){return function(){var Ve=this,st=arguments,Ie=function(){var qt,on;if(!(B<_)){if(qt=W.apply(Ve,st),qt===ee.promise())throw new TypeError("Thenable self-resolution");on=qt&&(typeof qt=="object"||typeof qt=="function")&&qt.then,Q(on)?oe?on.call(qt,z(_,ee,Xr,oe),z(_,ee,yn,oe)):(_++,on.call(qt,z(_,ee,Xr,oe),z(_,ee,yn,oe),z(_,ee,Xr,ee.notifyWith))):(W!==Xr&&(Ve=void 0,st=[qt]),(oe||ee.resolveWith)(Ve,st))}},ti=oe?Ie:function(){try{Ie()}catch(qt){d.Deferred.exceptionHook&&d.Deferred.exceptionHook(qt,ti.error),B+1>=_&&(W!==yn&&(Ve=void 0,st=[qt]),ee.rejectWith(Ve,st))}};B?ti():(d.Deferred.getErrorHook?ti.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&(ti.error=d.Deferred.getStackHook()),i.setTimeout(ti))}}return d.Deferred(function(B){u[0][3].add(z(0,B,Q(R)?R:Xr,B.notifyWith)),u[1][3].add(z(0,B,Q(v)?v:Xr)),u[2][3].add(z(0,B,Q(y)?y:yn))}).promise()},promise:function(v){return v!=null?d.extend(v,g):g}},S={};return d.each(u,function(v,y){var R=y[2],_=y[5];g[y[1]]=R.add,_&&R.add(function(){p=_},u[3-v][2].disable,u[3-v][3].disable,u[0][2].lock,u[0][3].lock),R.add(y[3].fire),S[y[0]]=function(){return S[y[0]+"With"](this===S?void 0:this,arguments),this},S[y[0]+"With"]=R.fireWith}),g.promise(S),c&&c.call(S,S),S},when:function(c){var u=arguments.length,p=u,g=Array(p),S=n.call(arguments),v=d.Deferred(),y=function(R){return function(_){g[R]=this,S[R]=arguments.length>1?n.call(arguments):_,--u||v.resolveWith(g,S)}};if(u<=1&&(_r(c,v.done(y(p)).resolve,v.reject,!u),v.state()==="pending"||Q(S[p]&&S[p].then)))return v.then();for(;p--;)_r(S[p],y(p),v.reject);return v.promise()}});var Dn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(c,u){i.console&&i.console.warn&&c&&Dn.test(c.name)&&i.console.warn("jQuery.Deferred exception: "+c.message,c.stack,u)},d.readyException=function(c){i.setTimeout(function(){throw c})};var Bi=d.Deferred();d.fn.ready=function(c){return Bi.then(c).catch(function(u){d.readyException(u)}),this},d.extend({isReady:!1,readyWait:1,ready:function(c){(c===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(c!==!0&&--d.readyWait>0)&&Bi.resolveWith(X,[d]))}}),d.ready.then=Bi.then;function Kt(){X.removeEventListener("DOMContentLoaded",Kt),i.removeEventListener("load",Kt),d.ready()}X.readyState==="complete"||X.readyState!=="loading"&&!X.documentElement.doScroll?i.setTimeout(d.ready):(X.addEventListener("DOMContentLoaded",Kt),i.addEventListener("load",Kt));var pi=function(c,u,p,g,S,v,y){var R=0,_=c.length,z=p==null;if(q(p)==="object"){S=!0;for(R in p)pi(c,u,R,p[R],!0,v,y)}else if(g!==void 0&&(S=!0,Q(g)||(y=!0),z&&(y?(u.call(c,g),u=null):(z=u,u=function(B,ee,W){return z.call(d(B),W)})),u))for(;R<_;R++)u(c[R],p,y?g:g.call(c[R],R,u(c[R],p)));return S?c:z?u.call(c):_?u(c[0],p):v},Rr=/^-ms-/,Cr=/-([a-z])/g;function Jr(c,u){return u.toUpperCase()}function Jt(c){return c.replace(Rr,"ms-").replace(Cr,Jr)}var or=function(c){return c.nodeType===1||c.nodeType===9||!+c.nodeType};function en(){this.expando=d.expando+en.uid++}en.uid=1,en.prototype={cache:function(c){var u=c[this.expando];return u||(u={},or(c)&&(c.nodeType?c[this.expando]=u:Object.defineProperty(c,this.expando,{value:u,configurable:!0}))),u},set:function(c,u,p){var g,S=this.cache(c);if(typeof u=="string")S[Jt(u)]=p;else for(g in u)S[Jt(g)]=u[g];return S},get:function(c,u){return u===void 0?this.cache(c):c[this.expando]&&c[this.expando][Jt(u)]},access:function(c,u,p){return u===void 0||u&&typeof u=="string"&&p===void 0?this.get(c,u):(this.set(c,u,p),p!==void 0?p:u)},remove:function(c,u){var p,g=c[this.expando];if(g!==void 0){if(u!==void 0)for(Array.isArray(u)?u=u.map(Jt):(u=Jt(u),u=u in g?[u]:u.match(di)||[]),p=u.length;p--;)delete g[u[p]];(u===void 0||d.isEmptyObject(g))&&(c.nodeType?c[this.expando]=void 0:delete c[this.expando])}},hasData:function(c){var u=c[this.expando];return u!==void 0&&!d.isEmptyObject(u)}};var we=new en,_t=new en,Ar=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,mi=/[A-Z]/g;function Wn(c){return c==="true"?!0:c==="false"?!1:c==="null"?null:c===+c+""?+c:Ar.test(c)?JSON.parse(c):c}function qn(c,u,p){var g;if(p===void 0&&c.nodeType===1)if(g="data-"+u.replace(mi,"-$&").toLowerCase(),p=c.getAttribute(g),typeof p=="string"){try{p=Wn(p)}catch(S){}_t.set(c,u,p)}else p=void 0;return p}d.extend({hasData:function(c){return _t.hasData(c)||we.hasData(c)},data:function(c,u,p){return _t.access(c,u,p)},removeData:function(c,u){_t.remove(c,u)},_data:function(c,u,p){return we.access(c,u,p)},_removeData:function(c,u){we.remove(c,u)}}),d.fn.extend({data:function(c,u){var p,g,S,v=this[0],y=v&&v.attributes;if(c===void 0){if(this.length&&(S=_t.get(v),v.nodeType===1&&!we.get(v,"hasDataAttrs"))){for(p=y.length;p--;)y[p]&&(g=y[p].name,g.indexOf("data-")===0&&(g=Jt(g.slice(5)),qn(v,g,S[g])));we.set(v,"hasDataAttrs",!0)}return S}return typeof c=="object"?this.each(function(){_t.set(this,c)}):pi(this,function(R){var _;if(v&&R===void 0)return _=_t.get(v,c),_!==void 0||(_=qn(v,c),_!==void 0)?_:void 0;this.each(function(){_t.set(this,c,R)})},null,u,arguments.length>1,null,!0)},removeData:function(c){return this.each(function(){_t.remove(this,c)})}}),d.extend({queue:function(c,u,p){var g;if(c)return u=(u||"fx")+"queue",g=we.get(c,u),p&&(!g||Array.isArray(p)?g=we.access(c,u,d.makeArray(p)):g.push(p)),g||[]},dequeue:function(c,u){u=u||"fx";var p=d.queue(c,u),g=p.length,S=p.shift(),v=d._queueHooks(c,u),y=function(){d.dequeue(c,u)};S==="inprogress"&&(S=p.shift(),g--),S&&(u==="fx"&&p.unshift("inprogress"),delete v.stop,S.call(c,y,v)),!g&&v&&v.empty.fire()},_queueHooks:function(c,u){var p=u+"queueHooks";return we.get(c,p)||we.access(c,p,{empty:d.Callbacks("once memory").add(function(){we.remove(c,[u+"queue",p])})})}}),d.fn.extend({queue:function(c,u){var p=2;return typeof c!="string"&&(u=c,c="fx",p--),arguments.length\x20\t\r\n\f]*)/i,rn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var c=X.createDocumentFragment(),u=c.appendChild(X.createElement("div")),p=X.createElement("input");p.setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),u.appendChild(p),b.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,u.innerHTML="",b.noCloneChecked=!!u.cloneNode(!0).lastChild.defaultValue,u.innerHTML="",b.option=!!u.lastChild})();var ei={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ei.tbody=ei.tfoot=ei.colgroup=ei.caption=ei.thead,ei.th=ei.td,b.option||(ei.optgroup=ei.option=[1,""]);function Bt(c,u){var p;return typeof c.getElementsByTagName!="undefined"?p=c.getElementsByTagName(u||"*"):typeof c.querySelectorAll!="undefined"?p=c.querySelectorAll(u||"*"):p=[],u===void 0||u&&F(c,u)?d.merge([c],p):p}function kt(c,u){for(var p=0,g=c.length;p-1){S&&S.push(v);continue}if(z=Yi(v),y=Bt(ee.appendChild(v),"script"),z&&kt(y),p)for(B=0;v=y[B++];)rn.test(v.type||"")&&p.push(v)}return ee}var ws=/^([^.]*)(?:\.(.+)|)/;function lr(){return!0}function Er(){return!1}function Nn(c,u,p,g,S,v){var y,R;if(typeof u=="object"){typeof p!="string"&&(g=g||p,p=void 0);for(R in u)Nn(c,R,p,g,u[R],v);return c}if(g==null&&S==null?(S=p,g=p=void 0):S==null&&(typeof p=="string"?(S=g,g=void 0):(S=g,g=p,p=void 0)),S===!1)S=Er;else if(!S)return c;return v===1&&(y=S,S=function(_){return d().off(_),y.apply(this,arguments)},S.guid=y.guid||(y.guid=d.guid++)),c.each(function(){d.event.add(this,u,S,g,p)})}d.event={global:{},add:function(c,u,p,g,S){var v,y,R,_,z,B,ee,W,oe,Ve,st,Ie=we.get(c);if(or(c))for(p.handler&&(v=p,p=v.handler,S=v.selector),S&&d.find.matchesSelector(bi,S),p.guid||(p.guid=d.guid++),(_=Ie.events)||(_=Ie.events=Object.create(null)),(y=Ie.handle)||(y=Ie.handle=function(ti){return typeof d!="undefined"&&d.event.triggered!==ti.type?d.event.dispatch.apply(c,arguments):void 0}),u=(u||"").match(di)||[""],z=u.length;z--;)R=ws.exec(u[z])||[],oe=st=R[1],Ve=(R[2]||"").split(".").sort(),oe&&(ee=d.event.special[oe]||{},oe=(S?ee.delegateType:ee.bindType)||oe,ee=d.event.special[oe]||{},B=d.extend({type:oe,origType:st,data:g,handler:p,guid:p.guid,selector:S,needsContext:S&&d.expr.match.needsContext.test(S),namespace:Ve.join(".")},v),(W=_[oe])||(W=_[oe]=[],W.delegateCount=0,(!ee.setup||ee.setup.call(c,g,Ve,y)===!1)&&c.addEventListener&&c.addEventListener(oe,y)),ee.add&&(ee.add.call(c,B),B.handler.guid||(B.handler.guid=p.guid)),S?W.splice(W.delegateCount++,0,B):W.push(B),d.event.global[oe]=!0)},remove:function(c,u,p,g,S){var v,y,R,_,z,B,ee,W,oe,Ve,st,Ie=we.hasData(c)&&we.get(c);if(!(!Ie||!(_=Ie.events))){for(u=(u||"").match(di)||[""],z=u.length;z--;){if(R=ws.exec(u[z])||[],oe=st=R[1],Ve=(R[2]||"").split(".").sort(),!oe){for(oe in _)d.event.remove(c,oe+u[z],p,g,!0);continue}for(ee=d.event.special[oe]||{},oe=(g?ee.delegateType:ee.bindType)||oe,W=_[oe]||[],R=R[2]&&new RegExp("(^|\\.)"+Ve.join("\\.(?:.*\\.|)")+"(\\.|$)"),y=v=W.length;v--;)B=W[v],(S||st===B.origType)&&(!p||p.guid===B.guid)&&(!R||R.test(B.namespace))&&(!g||g===B.selector||g==="**"&&B.selector)&&(W.splice(v,1),B.selector&&W.delegateCount--,ee.remove&&ee.remove.call(c,B));y&&!W.length&&((!ee.teardown||ee.teardown.call(c,Ve,Ie.handle)===!1)&&d.removeEvent(c,oe,Ie.handle),delete _[oe])}d.isEmptyObject(_)&&we.remove(c,"handle events")}},dispatch:function(c){var u,p,g,S,v,y,R=new Array(arguments.length),_=d.event.fix(c),z=(we.get(this,"events")||Object.create(null))[_.type]||[],B=d.event.special[_.type]||{};for(R[0]=_,u=1;u=1)){for(;z!==this;z=z.parentNode||this)if(z.nodeType===1&&!(c.type==="click"&&z.disabled===!0)){for(v=[],y={},p=0;p<_;p++)g=u[p],S=g.selector+" ",y[S]===void 0&&(y[S]=g.needsContext?d(S,this).index(z)>-1:d.find(S,this,null,[z]).length),y[S]&&v.push(g);v.length&&R.push({elem:z,handlers:v})}}return z=this,_\s*$/g;function $s(c,u){return F(c,"table")&&F(u.nodeType!==11?u:u.firstChild,"tr")&&d(c).children("tbody")[0]||c}function Ps(c){return c.type=(c.getAttribute("type")!==null)+"/"+c.type,c}function yo(c){return(c.type||"").slice(0,5)==="true/"?c.type=c.type.slice(5):c.removeAttribute("type"),c}function Ui(c,u){var p,g,S,v,y,R,_;if(u.nodeType===1){if(we.hasData(c)&&(v=we.get(c),_=v.events,_)){we.remove(u,"handle events");for(S in _)for(p=0,g=_[S].length;p1&&typeof oe=="string"&&!b.checkClone&&cr.test(oe))return c.each(function(st){var Ie=c.eq(st);Ve&&(u[0]=oe.call(this,st,Ie.html())),Yr(Ie,u,p,g)});if(ee&&(S=Qo(u,c[0].ownerDocument,!1,c,g),v=S.firstChild,S.childNodes.length===1&&(S=v),v||g)){for(y=d.map(Bt(S,"script"),Ps),R=y.length;B0&&kt(y,!_&&Bt(c,"script")),R},cleanData:function(c){for(var u,p,g,S=d.event.special,v=0;(p=c[v])!==void 0;v++)if(or(p)){if(u=p[we.expando]){if(u.events)for(g in u.events)S[g]?d.event.remove(p,g):d.removeEvent(p,g,u.handle);p[we.expando]=void 0}p[_t.expando]&&(p[_t.expando]=void 0)}}}),d.fn.extend({detach:function(c){return ks(this,c,!0)},remove:function(c){return ks(this,c)},text:function(c){return pi(this,function(u){return u===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=u)})},null,c,arguments.length)},append:function(){return Yr(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=$s(this,c);u.appendChild(c)}})},prepend:function(){return Yr(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=$s(this,c);u.insertBefore(c,u.firstChild)}})},before:function(){return Yr(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return Yr(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,u=0;(c=this[u])!=null;u++)c.nodeType===1&&(d.cleanData(Bt(c,!1)),c.textContent="");return this},clone:function(c,u){return c=c==null?!1:c,u=u==null?c:u,this.map(function(){return d.clone(this,c,u)})},html:function(c){return pi(this,function(u){var p=this[0]||{},g=0,S=this.length;if(u===void 0&&p.nodeType===1)return p.innerHTML;if(typeof u=="string"&&!Zi.test(u)&&!ei[(vo.exec(u)||["",""])[1].toLowerCase()]){u=d.htmlPrefilter(u);try{for(;g=0&&(_+=Math.max(0,Math.ceil(c["offset"+u[0].toUpperCase()+u.slice(1)]-v-_-R-.5))||0),_+z}function Fl(c,u,p){var g=Pe(c),S=!b.boxSizingReliable()||p,v=S&&d.css(c,"boxSizing",!1,g)==="border-box",y=v,R=xe(c,u,g),_="offset"+u[0].toUpperCase()+u.slice(1);if(Gn.test(R)){if(!p)return R;R="auto"}return(!b.boxSizingReliable()&&v||!b.reliableTrDimensions()&&F(c,"tr")||R==="auto"||!parseFloat(R)&&d.css(c,"display",!1,g)==="inline")&&c.getClientRects().length&&(v=d.css(c,"boxSizing",!1,g)==="border-box",y=_ in c,y&&(R=c[_])),R=parseFloat(R)||0,R+Rs(c,u,p||(v?"border":"content"),y,g,R)+"px"}d.extend({cssHooks:{opacity:{get:function(c,u){if(u){var p=xe(c,"opacity");return p===""?"1":p}}}},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(c,u,p,g){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var S,v,y,R=Jt(u),_=Ts.test(u),z=c.style;if(_||(u=hr(R)),y=d.cssHooks[u]||d.cssHooks[R],p!==void 0){if(v=typeof p,v==="string"&&(S=ar.exec(p))&&S[1]&&(p=In(c,u,S),v="number"),p==null||p!==p)return;v==="number"&&!_&&(p+=S&&S[3]||(d.cssNumber[R]?"":"px")),!b.clearCloneStyle&&p===""&&u.indexOf("background")===0&&(z[u]="inherit"),(!y||!("set"in y)||(p=y.set(c,p,g))!==void 0)&&(_?z.setProperty(u,p):z[u]=p)}else return y&&"get"in y&&(S=y.get(c,!1,g))!==void 0?S:z[u]}},css:function(c,u,p,g){var S,v,y,R=Jt(u),_=Ts.test(u);return _||(u=hr(R)),y=d.cssHooks[u]||d.cssHooks[R],y&&"get"in y&&(S=y.get(c,!0,p)),S===void 0&&(S=xe(c,u,g)),S==="normal"&&u in Xs&&(S=Xs[u]),p===""||p?(v=parseFloat(S),p===!0||isFinite(v)?v||0:S):S}}),d.each(["height","width"],function(c,u){d.cssHooks[u]={get:function(p,g,S){if(g)return sn.test(d.css(p,"display"))&&(!p.getClientRects().length||!p.getBoundingClientRect().width)?A(p,Rt,function(){return Fl(p,u,S)}):Fl(p,u,S)},set:function(p,g,S){var v,y=Pe(p),R=!b.scrollboxSize()&&y.position==="absolute",_=R||S,z=_&&d.css(p,"boxSizing",!1,y)==="border-box",B=S?Rs(p,u,S,z,y):0;return z&&R&&(B-=Math.ceil(p["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(y[u])-Rs(p,u,"border",!1,y)-.5)),B&&(v=ar.exec(g))&&(v[3]||"px")!=="px"&&(p.style[u]=g,g=d.css(p,u)),_s(p,g,B)}}}),d.cssHooks.marginLeft=pt(b.reliableMarginLeft,function(c,u){if(u)return(parseFloat(xe(c,"marginLeft"))||c.getBoundingClientRect().left-A(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(c,u){d.cssHooks[c+u]={expand:function(p){for(var g=0,S={},v=typeof p=="string"?p.split(" "):[p];g<4;g++)S[c+gi[g]+u]=v[g]||v[g-2]||v[0];return S}},c!=="margin"&&(d.cssHooks[c+u].set=_s)}),d.fn.extend({css:function(c,u){return pi(this,function(p,g,S){var v,y,R={},_=0;if(Array.isArray(g)){for(v=Pe(p),y=g.length;_1)}});function oi(c,u,p,g,S){return new oi.prototype.init(c,u,p,g,S)}d.Tween=oi,oi.prototype={constructor:oi,init:function(c,u,p,g,S,v){this.elem=c,this.prop=p,this.easing=S||d.easing._default,this.options=u,this.start=this.now=this.cur(),this.end=g,this.unit=v||(d.cssNumber[p]?"":"px")},cur:function(){var c=oi.propHooks[this.prop];return c&&c.get?c.get(this):oi.propHooks._default.get(this)},run:function(c){var u,p=oi.propHooks[this.prop];return this.options.duration?this.pos=u=d.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=u=c,this.now=(this.end-this.start)*u+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),p&&p.set?p.set(this):oi.propHooks._default.set(this),this}},oi.prototype.init.prototype=oi.prototype,oi.propHooks={_default:{get:function(c){var u;return c.elem.nodeType!==1||c.elem[c.prop]!=null&&c.elem.style[c.prop]==null?c.elem[c.prop]:(u=d.css(c.elem,c.prop,""),!u||u==="auto"?0:u)},set:function(c){d.fx.step[c.prop]?d.fx.step[c.prop](c):c.elem.nodeType===1&&(d.cssHooks[c.prop]||c.elem.style[hr(c.prop)]!=null)?d.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}},oi.propHooks.scrollTop=oi.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},d.easing={linear:function(c){return c},swing:function(c){return .5-Math.cos(c*Math.PI)/2},_default:"swing"},d.fx=oi.prototype.init,d.fx.step={};var w,C,k=/^(?:toggle|show|hide)$/,U=/queueHooks$/;function M(){C&&(X.hidden===!1&&i.requestAnimationFrame?i.requestAnimationFrame(M):i.setTimeout(M,d.fx.interval),d.fx.tick())}function Z(){return i.setTimeout(function(){w=void 0}),w=Date.now()}function H(c,u){var p,g=0,S={height:c};for(u=u?1:0;g<4;g+=2-u)p=gi[g],S["margin"+p]=S["padding"+p]=c;return u&&(S.opacity=S.width=c),S}function re(c,u,p){for(var g,S=(se.tweeners[u]||[]).concat(se.tweeners["*"]),v=0,y=S.length;v1)},removeAttr:function(c){return this.each(function(){d.removeAttr(this,c)})}}),d.extend({attr:function(c,u,p){var g,S,v=c.nodeType;if(!(v===3||v===8||v===2)){if(typeof c.getAttribute=="undefined")return d.prop(c,u,p);if((v!==1||!d.isXMLDoc(c))&&(S=d.attrHooks[u.toLowerCase()]||(d.expr.match.bool.test(u)?$e:void 0)),p!==void 0){if(p===null){d.removeAttr(c,u);return}return S&&"set"in S&&(g=S.set(c,p,u))!==void 0?g:(c.setAttribute(u,p+""),p)}return S&&"get"in S&&(g=S.get(c,u))!==null?g:(g=d.find.attr(c,u),g==null?void 0:g)}},attrHooks:{type:{set:function(c,u){if(!b.radioValue&&u==="radio"&&F(c,"input")){var p=c.value;return c.setAttribute("type",u),p&&(c.value=p),u}}}},removeAttr:function(c,u){var p,g=0,S=u&&u.match(di);if(S&&c.nodeType===1)for(;p=S[g++];)c.removeAttribute(p)}}),$e={set:function(c,u,p){return u===!1?d.removeAttr(c,p):c.setAttribute(p,p),p}},d.each(d.expr.match.bool.source.match(/\w+/g),function(c,u){var p=qe[u]||d.find.attr;qe[u]=function(g,S,v){var y,R,_=S.toLowerCase();return v||(R=qe[_],qe[_]=y,y=p(g,S,v)!=null?_:null,qe[_]=R),y}});var ut=/^(?:input|select|textarea|button)$/i,Ot=/^(?:a|area)$/i;d.fn.extend({prop:function(c,u){return pi(this,d.prop,c,u,arguments.length>1)},removeProp:function(c){return this.each(function(){delete this[d.propFix[c]||c]})}}),d.extend({prop:function(c,u,p){var g,S,v=c.nodeType;if(!(v===3||v===8||v===2))return(v!==1||!d.isXMLDoc(c))&&(u=d.propFix[u]||u,S=d.propHooks[u]),p!==void 0?S&&"set"in S&&(g=S.set(c,p,u))!==void 0?g:c[u]=p:S&&"get"in S&&(g=S.get(c,u))!==null?g:c[u]},propHooks:{tabIndex:{get:function(c){var u=d.find.attr(c,"tabindex");return u?parseInt(u,10):ut.test(c.nodeName)||Ot.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(d.propHooks.selected={get:function(c){var u=c.parentNode;return u&&u.parentNode&&u.parentNode.selectedIndex,null},set:function(c){var u=c.parentNode;u&&(u.selectedIndex,u.parentNode&&u.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function Qt(c){var u=c.match(di)||[];return u.join(" ")}function gt(c){return c.getAttribute&&c.getAttribute("class")||""}function ai(c){return Array.isArray(c)?c:typeof c=="string"?c.match(di)||[]:[]}d.fn.extend({addClass:function(c){var u,p,g,S,v,y;return Q(c)?this.each(function(R){d(this).addClass(c.call(this,R,gt(this)))}):(u=ai(c),u.length?this.each(function(){if(g=gt(this),p=this.nodeType===1&&" "+Qt(g)+" ",p){for(v=0;v-1;)p=p.replace(" "+S+" "," ");y=Qt(p),g!==y&&this.setAttribute("class",y)}}):this):this.attr("class","")},toggleClass:function(c,u){var p,g,S,v,y=typeof c,R=y==="string"||Array.isArray(c);return Q(c)?this.each(function(_){d(this).toggleClass(c.call(this,_,gt(this),u),u)}):typeof u=="boolean"&&R?u?this.addClass(c):this.removeClass(c):(p=ai(c),this.each(function(){if(R)for(v=d(this),S=0;S-1)return!0;return!1}});var Cs=/\r/g;d.fn.extend({val:function(c){var u,p,g,S=this[0];return arguments.length?(g=Q(c),this.each(function(v){var y;this.nodeType===1&&(g?y=c.call(this,v,d(this).val()):y=c,y==null?y="":typeof y=="number"?y+="":Array.isArray(y)&&(y=d.map(y,function(R){return R==null?"":R+""})),u=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!u||!("set"in u)||u.set(this,y,"value")===void 0)&&(this.value=y))})):S?(u=d.valHooks[S.type]||d.valHooks[S.nodeName.toLowerCase()],u&&"get"in u&&(p=u.get(S,"value"))!==void 0?p:(p=S.value,typeof p=="string"?p.replace(Cs,""):p==null?"":p)):void 0}}),d.extend({valHooks:{option:{get:function(c){var u=d.find.attr(c,"value");return u!=null?u:Qt(d.text(c))}},select:{get:function(c){var u,p,g,S=c.options,v=c.selectedIndex,y=c.type==="select-one",R=y?null:[],_=y?v+1:S.length;for(v<0?g=_:g=y?v:0;g<_;g++)if(p=S[g],(p.selected||g===v)&&!p.disabled&&(!p.parentNode.disabled||!F(p.parentNode,"optgroup"))){if(u=d(p).val(),y)return u;R.push(u)}return R},set:function(c,u){for(var p,g,S=c.options,v=d.makeArray(u),y=S.length;y--;)g=S[y],(g.selected=d.inArray(d.valHooks.option.get(g),v)>-1)&&(p=!0);return p||(c.selectedIndex=-1),v}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(c,u){if(Array.isArray(u))return c.checked=d.inArray(d(c).val(),u)>-1}},b.checkOn||(d.valHooks[this].get=function(c){return c.getAttribute("value")===null?"on":c.value})});var wn=i.location,Hl={guid:Date.now()},As=/\?/;d.parseXML=function(c){var u,p;if(!c||typeof c!="string")return null;try{u=new i.DOMParser().parseFromString(c,"text/xml")}catch(g){}return p=u&&u.getElementsByTagName("parsererror")[0],(!u||p)&&d.error("Invalid XML: "+(p?d.map(p.childNodes,function(g){return g.textContent}).join(` `):c)),u};var lu=/^(?:focusinfocus|focusoutblur)$/,Kl=function(c){c.stopPropagation()};d.extend(d.event,{trigger:function(c,u,p,g){var S,v,y,R,_,z,B,ee,W=[p||X],oe=f.call(c,"type")?c.type:c,Ve=f.call(c,"namespace")?c.namespace.split("."):[];if(v=ee=y=p=p||X,!(p.nodeType===3||p.nodeType===8)&&!lu.test(oe+d.event.triggered)&&(oe.indexOf(".")>-1&&(Ve=oe.split("."),oe=Ve.shift(),Ve.sort()),_=oe.indexOf(":")<0&&"on"+oe,c=c[d.expando]?c:new d.Event(oe,typeof c=="object"&&c),c.isTrigger=g?2:3,c.namespace=Ve.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+Ve.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=p),u=u==null?[c]:d.makeArray(u,[c]),B=d.event.special[oe]||{},!(!g&&B.trigger&&B.trigger.apply(p,u)===!1))){if(!g&&!B.noBubble&&!P(p)){for(R=B.delegateType||oe,lu.test(R+oe)||(v=v.parentNode);v;v=v.parentNode)W.push(v),y=v;y===(p.ownerDocument||X)&&W.push(y.defaultView||y.parentWindow||i)}for(S=0;(v=W[S++])&&!c.isPropagationStopped();)ee=v,c.type=S>1?R:B.bindType||oe,z=(we.get(v,"events")||Object.create(null))[c.type]&&we.get(v,"handle"),z&&z.apply(v,u),z=_&&v[_],z&&z.apply&&or(v)&&(c.result=z.apply(v,u),c.result===!1&&c.preventDefault());return c.type=oe,!g&&!c.isDefaultPrevented()&&(!B._default||B._default.apply(W.pop(),u)===!1)&&or(p)&&_&&Q(p[oe])&&!P(p)&&(y=p[_],y&&(p[_]=null),d.event.triggered=oe,c.isPropagationStopped()&&ee.addEventListener(oe,Kl),p[oe](),c.isPropagationStopped()&&ee.removeEventListener(oe,Kl),d.event.triggered=void 0,y&&(p[_]=y)),c.result}},simulate:function(c,u,p){var g=d.extend(new d.Event,p,{type:c,isSimulated:!0});d.event.trigger(g,null,u)}}),d.fn.extend({trigger:function(c,u){return this.each(function(){d.event.trigger(c,u,this)})},triggerHandler:function(c,u){var p=this[0];if(p)return d.event.trigger(c,u,p,!0)}});var cu=/\[\]$/,fa=/\r?\n/g,x1=/^(?:submit|button|image|reset|file)$/i,y1=/^(?:input|select|textarea|keygen)/i;function hu(c,u,p,g){var S;if(Array.isArray(u))d.each(u,function(v,y){p||cu.test(c)?g(c,y):hu(c+"["+(typeof y=="object"&&y!=null?v:"")+"]",y,p,g)});else if(!p&&q(u)==="object")for(S in u)hu(c+"["+S+"]",u[S],p,g);else g(c,u)}d.param=function(c,u){var p,g=[],S=function(v,y){var R=Q(y)?y():y;g[g.length]=encodeURIComponent(v)+"="+encodeURIComponent(R==null?"":R)};if(c==null)return"";if(Array.isArray(c)||c.jquery&&!d.isPlainObject(c))d.each(c,function(){S(this.name,this.value)});else for(p in c)hu(p,c[p],u,S);return g.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=d.prop(this,"elements");return c?d.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!d(this).is(":disabled")&&y1.test(this.nodeName)&&!x1.test(c)&&(this.checked||!Wt.test(c))}).map(function(c,u){var p=d(this).val();return p==null?null:Array.isArray(p)?d.map(p,function(g){return{name:u.name,value:g.replace(fa,`\r `)}}):{name:u.name,value:p.replace(fa,`\r `)}}).get()}});var w1=/%20/g,$1=/#.*$/,P1=/([?&])_=[^&]*/,k1=/^(.*?):[ \t]*([^\r\n]*)$/mg,T1=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,X1=/^(?:GET|HEAD)$/,_1=/^\/\//,bg={},fu={},Sg="*/".concat("*"),uu=X.createElement("a");uu.href=wn.href;function vg(c){return function(u,p){typeof u!="string"&&(p=u,u="*");var g,S=0,v=u.toLowerCase().match(di)||[];if(Q(p))for(;g=v[S++];)g[0]==="+"?(g=g.slice(1)||"*",(c[g]=c[g]||[]).unshift(p)):(c[g]=c[g]||[]).push(p)}}function Qg(c,u,p,g){var S={},v=c===fu;function y(R){var _;return S[R]=!0,d.each(c[R]||[],function(z,B){var ee=B(u,p,g);if(typeof ee=="string"&&!v&&!S[ee])return u.dataTypes.unshift(ee),y(ee),!1;if(v)return!(_=ee)}),_}return y(u.dataTypes[0])||!S["*"]&&y("*")}function Ou(c,u){var p,g,S=d.ajaxSettings.flatOptions||{};for(p in u)u[p]!==void 0&&((S[p]?c:g||(g={}))[p]=u[p]);return g&&d.extend(!0,c,g),c}function R1(c,u,p){for(var g,S,v,y,R=c.contents,_=c.dataTypes;_[0]==="*";)_.shift(),g===void 0&&(g=c.mimeType||u.getResponseHeader("Content-Type"));if(g){for(S in R)if(R[S]&&R[S].test(g)){_.unshift(S);break}}if(_[0]in p)v=_[0];else{for(S in p){if(!_[0]||c.converters[S+" "+_[0]]){v=S;break}y||(y=S)}v=v||y}if(v)return v!==_[0]&&_.unshift(v),p[v]}function C1(c,u,p,g){var S,v,y,R,_,z={},B=c.dataTypes.slice();if(B[1])for(y in c.converters)z[y.toLowerCase()]=c.converters[y];for(v=B.shift();v;)if(c.responseFields[v]&&(p[c.responseFields[v]]=u),!_&&g&&c.dataFilter&&(u=c.dataFilter(u,c.dataType)),_=v,v=B.shift(),v){if(v==="*")v=_;else if(_!=="*"&&_!==v){if(y=z[_+" "+v]||z["* "+v],!y){for(S in z)if(R=S.split(" "),R[1]===v&&(y=z[_+" "+R[0]]||z["* "+R[0]],y)){y===!0?y=z[S]:z[S]!==!0&&(v=R[0],B.unshift(R[1]));break}}if(y!==!0)if(y&&c.throws)u=y(u);else try{u=y(u)}catch(ee){return{state:"parsererror",error:y?ee:"No conversion from "+_+" to "+v}}}}return{state:"success",data:u}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wn.href,type:"GET",isLocal:T1.test(wn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Sg,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(c,u){return u?Ou(Ou(c,d.ajaxSettings),u):Ou(d.ajaxSettings,c)},ajaxPrefilter:vg(bg),ajaxTransport:vg(fu),ajax:function(c,u){typeof c=="object"&&(u=c,c=void 0),u=u||{};var p,g,S,v,y,R,_,z,B,ee,W=d.ajaxSetup({},u),oe=W.context||W,Ve=W.context&&(oe.nodeType||oe.jquery)?d(oe):d.event,st=d.Deferred(),Ie=d.Callbacks("once memory"),ti=W.statusCode||{},qt={},on={},an="canceled",et={readyState:0,getResponseHeader:function(ct){var Yt;if(_){if(!v)for(v={};Yt=k1.exec(S);)v[Yt[1].toLowerCase()+" "]=(v[Yt[1].toLowerCase()+" "]||[]).concat(Yt[2]);Yt=v[ct.toLowerCase()+" "]}return Yt==null?null:Yt.join(", ")},getAllResponseHeaders:function(){return _?S:null},setRequestHeader:function(ct,Yt){return _==null&&(ct=on[ct.toLowerCase()]=on[ct.toLowerCase()]||ct,qt[ct]=Yt),this},overrideMimeType:function(ct){return _==null&&(W.mimeType=ct),this},statusCode:function(ct){var Yt;if(ct)if(_)et.always(ct[et.status]);else for(Yt in ct)ti[Yt]=[ti[Yt],ct[Yt]];return this},abort:function(ct){var Yt=ct||an;return p&&p.abort(Yt),Es(0,Yt),this}};if(st.promise(et),W.url=((c||W.url||wn.href)+"").replace(_1,wn.protocol+"//"),W.type=u.method||u.type||W.method||W.type,W.dataTypes=(W.dataType||"*").toLowerCase().match(di)||[""],W.crossDomain==null){R=X.createElement("a");try{R.href=W.url,R.href=R.href,W.crossDomain=uu.protocol+"//"+uu.host!=R.protocol+"//"+R.host}catch(ct){W.crossDomain=!0}}if(W.data&&W.processData&&typeof W.data!="string"&&(W.data=d.param(W.data,W.traditional)),Qg(bg,W,u,et),_)return et;z=d.event&&W.global,z&&d.active++===0&&d.event.trigger("ajaxStart"),W.type=W.type.toUpperCase(),W.hasContent=!X1.test(W.type),g=W.url.replace($1,""),W.hasContent?W.data&&W.processData&&(W.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(W.data=W.data.replace(w1,"+")):(ee=W.url.slice(g.length),W.data&&(W.processData||typeof W.data=="string")&&(g+=(As.test(g)?"&":"?")+W.data,delete W.data),W.cache===!1&&(g=g.replace(P1,"$1"),ee=(As.test(g)?"&":"?")+"_="+Hl.guid+++ee),W.url=g+ee),W.ifModified&&(d.lastModified[g]&&et.setRequestHeader("If-Modified-Since",d.lastModified[g]),d.etag[g]&&et.setRequestHeader("If-None-Match",d.etag[g])),(W.data&&W.hasContent&&W.contentType!==!1||u.contentType)&&et.setRequestHeader("Content-Type",W.contentType),et.setRequestHeader("Accept",W.dataTypes[0]&&W.accepts[W.dataTypes[0]]?W.accepts[W.dataTypes[0]]+(W.dataTypes[0]!=="*"?", "+Sg+"; q=0.01":""):W.accepts["*"]);for(B in W.headers)et.setRequestHeader(B,W.headers[B]);if(W.beforeSend&&(W.beforeSend.call(oe,et,W)===!1||_))return et.abort();if(an="abort",Ie.add(W.complete),et.done(W.success),et.fail(W.error),p=Qg(fu,W,u,et),!p)Es(-1,"No Transport");else{if(et.readyState=1,z&&Ve.trigger("ajaxSend",[et,W]),_)return et;W.async&&W.timeout>0&&(y=i.setTimeout(function(){et.abort("timeout")},W.timeout));try{_=!1,p.send(qt,Es)}catch(ct){if(_)throw ct;Es(-1,ct)}}function Es(ct,Yt,Oa,pu){var ln,da,cn,Fn,Hn,fr=Yt;_||(_=!0,y&&i.clearTimeout(y),p=void 0,S=pu||"",et.readyState=ct>0?4:0,ln=ct>=200&&ct<300||ct===304,Oa&&(Fn=R1(W,et,Oa)),!ln&&d.inArray("script",W.dataTypes)>-1&&d.inArray("json",W.dataTypes)<0&&(W.converters["text script"]=function(){}),Fn=C1(W,Fn,et,ln),ln?(W.ifModified&&(Hn=et.getResponseHeader("Last-Modified"),Hn&&(d.lastModified[g]=Hn),Hn=et.getResponseHeader("etag"),Hn&&(d.etag[g]=Hn)),ct===204||W.type==="HEAD"?fr="nocontent":ct===304?fr="notmodified":(fr=Fn.state,da=Fn.data,cn=Fn.error,ln=!cn)):(cn=fr,(ct||!fr)&&(fr="error",ct<0&&(ct=0))),et.status=ct,et.statusText=(Yt||fr)+"",ln?st.resolveWith(oe,[da,fr,et]):st.rejectWith(oe,[et,fr,cn]),et.statusCode(ti),ti=void 0,z&&Ve.trigger(ln?"ajaxSuccess":"ajaxError",[et,W,ln?da:cn]),Ie.fireWith(oe,[et,fr]),z&&(Ve.trigger("ajaxComplete",[et,W]),--d.active||d.event.trigger("ajaxStop")))}return et},getJSON:function(c,u,p){return d.get(c,u,p,"json")},getScript:function(c,u){return d.get(c,void 0,u,"script")}}),d.each(["get","post"],function(c,u){d[u]=function(p,g,S,v){return Q(g)&&(v=v||S,S=g,g=void 0),d.ajax(d.extend({url:p,type:u,dataType:v,data:g,success:S},d.isPlainObject(p)&&p))}}),d.ajaxPrefilter(function(c){var u;for(u in c.headers)u.toLowerCase()==="content-type"&&(c.contentType=c.headers[u]||"")}),d._evalUrl=function(c,u,p){return d.ajax({url:c,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(g){d.globalEval(g,u,p)}})},d.fn.extend({wrapAll:function(c){var u;return this[0]&&(Q(c)&&(c=c.call(this[0])),u=d(c,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&u.insertBefore(this[0]),u.map(function(){for(var p=this;p.firstElementChild;)p=p.firstElementChild;return p}).append(this)),this},wrapInner:function(c){return Q(c)?this.each(function(u){d(this).wrapInner(c.call(this,u))}):this.each(function(){var u=d(this),p=u.contents();p.length?p.wrapAll(c):u.append(c)})},wrap:function(c){var u=Q(c);return this.each(function(p){d(this).wrapAll(u?c.call(this,p):c)})},unwrap:function(c){return this.parent(c).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(c){return!d.expr.pseudos.visible(c)},d.expr.pseudos.visible=function(c){return!!(c.offsetWidth||c.offsetHeight||c.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(c){}};var A1={0:200,1223:204},ua=d.ajaxSettings.xhr();b.cors=!!ua&&"withCredentials"in ua,b.ajax=ua=!!ua,d.ajaxTransport(function(c){var u,p;if(b.cors||ua&&!c.crossDomain)return{send:function(g,S){var v,y=c.xhr();if(y.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(v in c.xhrFields)y[v]=c.xhrFields[v];c.mimeType&&y.overrideMimeType&&y.overrideMimeType(c.mimeType),!c.crossDomain&&!g["X-Requested-With"]&&(g["X-Requested-With"]="XMLHttpRequest");for(v in g)y.setRequestHeader(v,g[v]);u=function(R){return function(){u&&(u=p=y.onload=y.onerror=y.onabort=y.ontimeout=y.onreadystatechange=null,R==="abort"?y.abort():R==="error"?typeof y.status!="number"?S(0,"error"):S(y.status,y.statusText):S(A1[y.status]||y.status,y.statusText,(y.responseType||"text")!=="text"||typeof y.responseText!="string"?{binary:y.response}:{text:y.responseText},y.getAllResponseHeaders()))}},y.onload=u(),p=y.onerror=y.ontimeout=u("error"),y.onabort!==void 0?y.onabort=p:y.onreadystatechange=function(){y.readyState===4&&i.setTimeout(function(){u&&p()})},u=u("abort");try{y.send(c.hasContent&&c.data||null)}catch(R){if(u)throw R}},abort:function(){u&&u()}}}),d.ajaxPrefilter(function(c){c.crossDomain&&(c.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(c){return d.globalEval(c),c}}}),d.ajaxPrefilter("script",function(c){c.cache===void 0&&(c.cache=!1),c.crossDomain&&(c.type="GET")}),d.ajaxTransport("script",function(c){if(c.crossDomain||c.scriptAttrs){var u,p;return{send:function(g,S){u=d("