From fc00b5716bcb6666e930cb2eabfe5a2e15356c28 Mon Sep 17 00:00:00 2001 From: sehugg Date: Thu, 3 Sep 2026 06:45:55 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20sehugg/8?= =?UTF-8?q?bitworkshop@03405df20b9ea1de25e5cdab4f2273960ba3f0a4=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/{basic-7UYJ5DHM.js => basic-NY7ZFQKT.js} | 4 +- ...-7UYJ5DHM.js.map => basic-NY7ZFQKT.js.map} | 0 gen/{chunk-7S7IJ5G7.js => chunk-DKFNMYE3.js} | 4 +- ...-7S7IJ5G7.js.map => chunk-DKFNMYE3.js.map} | 0 gen/{chunk-SJEDTBYQ.js => chunk-T4EX7VQU.js} | 4 +- ...-SJEDTBYQ.js.map => chunk-T4EX7VQU.js.map} | 0 gen/{chunk-H4446SY7.js => chunk-UG4IOEUD.js} | 12 +++--- ...-H4446SY7.js.map => chunk-UG4IOEUD.js.map} | 6 +-- gen/{devel-GISBJ47I.js => devel-VJ2ENVNQ.js} | 4 +- ...-GISBJ47I.js.map => devel-VJ2ENVNQ.js.map} | 0 gen/embedui.js | 2 +- gen/ide/shortcutbar.js | 36 ++++++++++++++++++ gen/ide/shortcutbar.js.map | 2 +- gen/src/ide/shortcutbar.js | 36 ++++++++++++++++++ gen/src/ide/shortcutbar.js.map | 2 +- gen/ui.js | 2 +- ...erilog-YO7TRYS6.js => verilog-WNCR2OMA.js} | 4 +- ...O7TRYS6.js.map => verilog-WNCR2OMA.js.map} | 0 src/ide/shortcutbar.ts | 38 +++++++++++++++++++ 19 files changed, 133 insertions(+), 23 deletions(-) rename gen/{basic-7UYJ5DHM.js => basic-NY7ZFQKT.js} (99%) rename gen/{basic-7UYJ5DHM.js.map => basic-NY7ZFQKT.js.map} (100%) rename gen/{chunk-7S7IJ5G7.js => chunk-DKFNMYE3.js} (99%) rename gen/{chunk-7S7IJ5G7.js.map => chunk-DKFNMYE3.js.map} (100%) rename gen/{chunk-SJEDTBYQ.js => chunk-T4EX7VQU.js} (96%) rename gen/{chunk-SJEDTBYQ.js.map => chunk-T4EX7VQU.js.map} (100%) rename gen/{chunk-H4446SY7.js => chunk-UG4IOEUD.js} (63%) rename gen/{chunk-H4446SY7.js.map => chunk-UG4IOEUD.js.map} (73%) rename gen/{devel-GISBJ47I.js => devel-VJ2ENVNQ.js} (95%) rename gen/{devel-GISBJ47I.js.map => devel-VJ2ENVNQ.js.map} (100%) rename gen/{verilog-YO7TRYS6.js => verilog-WNCR2OMA.js} (99%) rename gen/{verilog-YO7TRYS6.js.map => verilog-WNCR2OMA.js.map} (100%) diff --git a/gen/basic-7UYJ5DHM.js b/gen/basic-NY7ZFQKT.js similarity index 99% rename from gen/basic-7UYJ5DHM.js rename to gen/basic-NY7ZFQKT.js index 4967da5c..04efe540 100644 --- a/gen/basic-7UYJ5DHM.js +++ b/gen/basic-NY7ZFQKT.js @@ -1,4 +1,4 @@ -import{b as S}from"./chunk-3FIVEUG2.js";import{u as E}from"./chunk-7S7IJ5G7.js";import"./chunk-H4446SY7.js";import"./chunk-LNOKARBD.js";import"./chunk-A7SWO6EA.js";import"./chunk-SJEDTBYQ.js";import"./chunk-CZ7OSHSE.js";import{B as c,K as f,T as d,U as v,a as g}from"./chunk-TYDI7JZQ.js";import"./chunk-KT7KMEQC.js";function k(u){return u.value!=null}function y(u){return u.name!=null}function O(u){return u.op!=null&&u.left!=null&&u.right!=null}function N(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{u as E}from"./chunk-DKFNMYE3.js";import"./chunk-UG4IOEUD.js";import"./chunk-LNOKARBD.js";import"./chunk-A7SWO6EA.js";import"./chunk-T4EX7VQU.js";import"./chunk-CZ7OSHSE.js";import{B as c,K as f,T as d,U as v,a as g}from"./chunk-TYDI7JZQ.js";import"./chunk-KT7KMEQC.js";function k(u){return u.value!=null}function y(u){return u.name!=null}function O(u){return u.op!=null&&u.left!=null&&u.right!=null}function N(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(O(t)){var n=this.expr2js(t.left,r),s=this.expr2js(t.right,r);return`this.${t.op}(${n}, ${s})`}else if(N(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{u as E}from"./chunk-7S7IJ5G7.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()}hasCustomStepOver(){return!0}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(i){if(typeof Cg=="object"&&typeof rf!="undefined")rf.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(h,O){if(!s[h]){if(!n[h]){var f=typeof xo=="function"&&xo;if(!O&&f)return f(h,!0);if(l)return l(h,!0);var u=new Error("Cannot find module '"+h+"'");throw u.code="MODULE_NOT_FOUND",u}var p=s[h]={exports:{}};n[h][0].call(p.exports,function(m){var S=n[h][1][m];return a(S||m)},p,p.exports,r,n,s,o)}return s[h].exports}for(var l=typeof xo=="function"&&xo,c=0;c=43)}}).catch(function(){return!1})}function D(g){return typeof C=="boolean"?f.resolve(C):z(g).then(function(v){return C=v,C})}function Oe(g){var v=R[g.name],x={};x.promise=new f(function(T,X){x.resolve=T,x.reject=X}),v.deferredOperations.push(x),v.dbReady?v.dbReady=v.dbReady.then(function(){return x.promise}):v.dbReady=x.promise}function se(g){var v=R[g.name],x=v.deferredOperations.pop();if(x)return x.resolve(),x.promise}function ee(g,v){var x=R[g.name],T=x.deferredOperations.pop();if(T)return T.reject(v),T.promise}function he(g,v){return new f(function(x,T){if(R[g.name]=R[g.name]||Zt(),g.db)if(v)Oe(g),g.db.close();else return x(g.db);var X=[g.name];v&&X.push(g.version);var y=c.open.apply(c,X);v&&(y.onupgradeneeded=function(E){var V=y.result;try{V.createObjectStore(g.storeName),E.oldVersion<=1&&V.createObjectStore(w)}catch(j){if(j.name==="ConstraintError")console.warn('The database "'+g.name+'" has been upgraded from version '+E.oldVersion+" to version "+E.newVersion+', but the storage "'+g.storeName+'" already exists.');else throw j}}),y.onerror=function(E){E.preventDefault(),T(y.error)},y.onsuccess=function(){var E=y.result;E.onversionchange=function(V){V.target.close()},x(E),se(g)}})}function ge(g){return he(g,!1)}function we(g){return he(g,!0)}function Y(g,v){if(!g.db)return!0;var x=!g.db.objectStoreNames.contains(g.storeName),T=g.versiong.db.version;if(T&&(g.version!==v&&console.warn('The database "'+g.name+`" can't be downgraded from version `+g.db.version+" to version "+g.version+"."),g.version=g.db.version),X||x){if(x){var y=g.db.version+1;y>g.version&&(g.version=y)}return!0}return!1}function re(g){return new f(function(v,x){var T=new FileReader;T.onerror=x,T.onloadend=function(X){var y=btoa(X.target.result||"");v({__local_forage_encoded_blob:!0,data:y,type:g.type})},T.readAsBinaryString(g)})}function N(g){var v=Z(atob(g.data));return O([v],{type:g.type})}function be(g){return g&&g.__local_forage_encoded_blob}function ye(g){var v=this,x=v._initReady().then(function(){var T=R[v._dbInfo.name];if(T&&T.dbReady)return T.dbReady});return p(x,g,g),x}function He(g){Oe(g);for(var v=R[g.name],x=v.forages,T=0;T0&&(!g.db||y.name==="InvalidStateError"||y.name==="NotFoundError"))return f.resolve().then(function(){if(!g.db||y.name==="NotFoundError"&&!g.db.objectStoreNames.contains(g.storeName)&&g.version<=g.db.version)return g.db&&(g.version=g.db.version+1),we(g)}).then(function(){return He(g).then(function(){de(g,v,x,T-1)})}).catch(x);x(y)}}function Zt(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ti(g){var v=this,x={db:null};if(g)for(var T in g)x[T]=g[T];var X=R[x.name];X||(X=Zt(),R[x.name]=X),X.forages.push(v),v._initReady||(v._initReady=v.ready,v.ready=ye);var y=[];function E(){return f.resolve()}for(var V=0;V>4,G[X++]=(E&15)<<4|V>>2,G[X++]=(V&3)<<6|j&63;return q}function rs(g){var v=new Uint8Array(g),x="",T;for(T=0;T>2],x+=Ae[(v[T]&3)<<4|v[T+1]>>4],x+=Ae[(v[T+1]&15)<<2|v[T+2]>>6],x+=Ae[v[T+2]&63];return v.length%3===2?x=x.substring(0,x.length-1)+"=":v.length%3===1&&(x=x.substring(0,x.length-2)+"=="),x}function el(g,v){var x="";if(g&&(x=fn.call(g)),g&&(x==="[object ArrayBuffer]"||g.buffer&&fn.call(g.buffer)==="[object ArrayBuffer]")){var T,X=Kt;g instanceof ArrayBuffer?(T=g,X+=ln):(T=g.buffer,x==="[object Int8Array]"?X+=ao:x==="[object Uint8Array]"?X+=Xi:x==="[object Uint8ClampedArray]"?X+=_i:x==="[object Int16Array]"?X+=Fi:x==="[object Uint16Array]"?X+=cn:x==="[object Int32Array]"?X+=ts:x==="[object Uint32Array]"?X+=hn:x==="[object Float32Array]"?X+=is:x==="[object Float64Array]"?X+=lr:v(new Error("Failed to get type for BinaryArray"))),v(X+rs(T))}else if(x==="[object Blob]"){var y=new FileReader;y.onload=function(){var E=an+g.type+"~"+rs(this.result);v(Kt+es+E)},y.readAsArrayBuffer(g)}else try{v(JSON.stringify(g))}catch(E){console.error("Couldn't convert value into a JSON string: ",g),v(null,E)}}function co(g){if(g.substring(0,Jn)!==Kt)return JSON.parse(g);var v=g.substring(On),x=g.substring(Jn,On),T;if(x===es&&oo.test(v)){var X=v.match(oo);T=X[1],v=v.substring(X[0].length)}var y=lo(v);switch(x){case ln:return y;case es:return O([y],{type:T});case ao:return new Int8Array(y);case Xi:return new Uint8Array(y);case _i:return new Uint8ClampedArray(y);case Fi:return new Int16Array(y);case cn:return new Uint16Array(y);case ts:return new Int32Array(y);case hn:return new Uint32Array(y);case is:return new Float32Array(y);case lr:return new Float64Array(y);default:throw new Error("Unkown type: "+x)}}var Tr={serialize:el,deserialize:co,stringToBuffer:lo,bufferToString:rs};function cr(g,v,x,T){g.executeSql("CREATE TABLE IF NOT EXISTS "+v.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],x,T)}function hi(g){var v=this,x={db:null};if(g)for(var T in g)x[T]=typeof g[T]!="string"?g[T].toString():g[T];var X=new f(function(y,E){try{x.db=openDatabase(x.name,String(x.version),x.description,x.size)}catch(V){return E(V)}x.db.transaction(function(V){cr(V,x,function(){v._dbInfo=x,y()},function(j,q){E(q)})},E)});return x.serializer=Tr,X}function Oi(g,v,x,T,X,y){g.executeSql(x,T,X,function(E,V){V.code===V.SYNTAX_ERR?E.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[v.storeName],function(j,q){q.rows.length?y(j,V):cr(j,v,function(){j.executeSql(x,T,X,y)},y)},y):y(E,V)},y)}function tl(g,v){var x=this;g=m(g);var T=new f(function(X,y){x.ready().then(function(){var E=x._dbInfo;E.db.transaction(function(V){Oi(V,E,"SELECT * FROM "+E.storeName+" WHERE key = ? LIMIT 1",[g],function(j,q){var G=q.rows.length?q.rows.item(0).value:null;G&&(G=E.serializer.deserialize(G)),X(G)},function(j,q){y(q)})})}).catch(y)});return u(T,v),T}function il(g,v){var x=this,T=new f(function(X,y){x.ready().then(function(){var E=x._dbInfo;E.db.transaction(function(V){Oi(V,E,"SELECT * FROM "+E.storeName,[],function(j,q){for(var G=q.rows,oe=G.length,xe=0;xe0){E(ns.apply(X,[g,j,x,T-1]));return}V(xe)}})})}).catch(V)});return u(y,x),y}function rl(g,v,x){return ns.apply(this,[g,v,x,1])}function ss(g,v){var x=this;g=m(g);var T=new f(function(X,y){x.ready().then(function(){var E=x._dbInfo;E.db.transaction(function(V){Oi(V,E,"DELETE FROM "+E.storeName+" WHERE key = ?",[g],function(){X()},function(j,q){y(q)})})}).catch(y)});return u(T,v),T}function os(g){var v=this,x=new f(function(T,X){v.ready().then(function(){var y=v._dbInfo;y.db.transaction(function(E){Oi(E,y,"DELETE FROM "+y.storeName,[],function(){T()},function(V,j){X(j)})})}).catch(X)});return u(x,g),x}function fi(g){var v=this,x=new f(function(T,X){v.ready().then(function(){var y=v._dbInfo;y.db.transaction(function(E){Oi(E,y,"SELECT COUNT(key) as c FROM "+y.storeName,[],function(V,j){var q=j.rows.item(0).c;T(q)},function(V,j){X(j)})})}).catch(X)});return u(x,g),x}function Xr(g,v){var x=this,T=new f(function(X,y){x.ready().then(function(){var E=x._dbInfo;E.db.transaction(function(V){Oi(V,E,"SELECT key FROM "+E.storeName+" WHERE id = ? LIMIT 1",[g+1],function(j,q){var G=q.rows.length?q.rows.item(0).key:null;X(G)},function(j,q){y(q)})})}).catch(y)});return u(T,v),T}function ho(g){var v=this,x=new f(function(T,X){v.ready().then(function(){var y=v._dbInfo;y.db.transaction(function(E){Oi(E,y,"SELECT key FROM "+y.storeName,[],function(V,j){for(var q=[],G=0;G '__WebKitDatabaseInfoTable__'",[],function(X,y){for(var E=[],V=0;V0}function un(g){var v=this,x={};if(g)for(var T in g)x[T]=g[T];return x.keyPrefix=uo(g,v._defaultConfig),zO()?(v._dbInfo=x,x.serializer=Tr,f.resolve()):f.reject()}function YO(g){var v=this,x=v.ready().then(function(){for(var T=v._dbInfo.keyPrefix,X=localStorage.length-1;X>=0;X--){var y=localStorage.key(X);y.indexOf(T)===0&&localStorage.removeItem(y)}});return u(x,g),x}function MO(g,v){var x=this;g=m(g);var T=x.ready().then(function(){var X=x._dbInfo,y=localStorage.getItem(X.keyPrefix+g);return y&&(y=X.serializer.deserialize(y)),y});return u(T,v),T}function Be(g,v){var x=this,T=x.ready().then(function(){for(var X=x._dbInfo,y=X.keyPrefix,E=y.length,V=localStorage.length,j=1,q=0;q=0;E--){var V=localStorage.key(E);V.indexOf(y)===0&&localStorage.removeItem(V)}}):X=f.reject("Invalid arguments"),u(X,v),X}var WO={_driver:"localStorageWrapper",_initStorage:un,_support:fo(),iterate:Be,getItem:MO,setItem:ol,removeItem:mo,clear:YO,length:sl,key:_r,keys:LO,dropInstance:al},VO=function(v,x){return v===x||typeof v=="number"&&typeof x=="number"&&isNaN(v)&&isNaN(x)},jO=function(v,x){for(var T=v.length,X=0;X{"use strict";function $$(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t{(function(i){if(typeof Cg=="object"&&typeof rf!="undefined")rf.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(h,O){if(!s[h]){if(!n[h]){var f=typeof xo=="function"&&xo;if(!O&&f)return f(h,!0);if(l)return l(h,!0);var u=new Error("Cannot find module '"+h+"'");throw u.code="MODULE_NOT_FOUND",u}var p=s[h]={exports:{}};n[h][0].call(p.exports,function(m){var S=n[h][1][m];return a(S||m)},p,p.exports,r,n,s,o)}return s[h].exports}for(var l=typeof xo=="function"&&xo,c=0;c=43)}}).catch(function(){return!1})}function D(g){return typeof C=="boolean"?f.resolve(C):z(g).then(function(v){return C=v,C})}function Oe(g){var v=R[g.name],x={};x.promise=new f(function(T,X){x.resolve=T,x.reject=X}),v.deferredOperations.push(x),v.dbReady?v.dbReady=v.dbReady.then(function(){return x.promise}):v.dbReady=x.promise}function se(g){var v=R[g.name],x=v.deferredOperations.pop();if(x)return x.resolve(),x.promise}function ee(g,v){var x=R[g.name],T=x.deferredOperations.pop();if(T)return T.reject(v),T.promise}function he(g,v){return new f(function(x,T){if(R[g.name]=R[g.name]||Zt(),g.db)if(v)Oe(g),g.db.close();else return x(g.db);var X=[g.name];v&&X.push(g.version);var y=c.open.apply(c,X);v&&(y.onupgradeneeded=function(E){var V=y.result;try{V.createObjectStore(g.storeName),E.oldVersion<=1&&V.createObjectStore(w)}catch(j){if(j.name==="ConstraintError")console.warn('The database "'+g.name+'" has been upgraded from version '+E.oldVersion+" to version "+E.newVersion+', but the storage "'+g.storeName+'" already exists.');else throw j}}),y.onerror=function(E){E.preventDefault(),T(y.error)},y.onsuccess=function(){var E=y.result;E.onversionchange=function(V){V.target.close()},x(E),se(g)}})}function ge(g){return he(g,!1)}function we(g){return he(g,!0)}function Y(g,v){if(!g.db)return!0;var x=!g.db.objectStoreNames.contains(g.storeName),T=g.versiong.db.version;if(T&&(g.version!==v&&console.warn('The database "'+g.name+`" can't be downgraded from version `+g.db.version+" to version "+g.version+"."),g.version=g.db.version),X||x){if(x){var y=g.db.version+1;y>g.version&&(g.version=y)}return!0}return!1}function re(g){return new f(function(v,x){var T=new FileReader;T.onerror=x,T.onloadend=function(X){var y=btoa(X.target.result||"");v({__local_forage_encoded_blob:!0,data:y,type:g.type})},T.readAsBinaryString(g)})}function N(g){var v=Z(atob(g.data));return O([v],{type:g.type})}function be(g){return g&&g.__local_forage_encoded_blob}function ye(g){var v=this,x=v._initReady().then(function(){var T=R[v._dbInfo.name];if(T&&T.dbReady)return T.dbReady});return p(x,g,g),x}function He(g){Oe(g);for(var v=R[g.name],x=v.forages,T=0;T0&&(!g.db||y.name==="InvalidStateError"||y.name==="NotFoundError"))return f.resolve().then(function(){if(!g.db||y.name==="NotFoundError"&&!g.db.objectStoreNames.contains(g.storeName)&&g.version<=g.db.version)return g.db&&(g.version=g.db.version+1),we(g)}).then(function(){return He(g).then(function(){de(g,v,x,T-1)})}).catch(x);x(y)}}function Zt(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ti(g){var v=this,x={db:null};if(g)for(var T in g)x[T]=g[T];var X=R[x.name];X||(X=Zt(),R[x.name]=X),X.forages.push(v),v._initReady||(v._initReady=v.ready,v.ready=ye);var y=[];function E(){return f.resolve()}for(var V=0;V>4,G[X++]=(E&15)<<4|V>>2,G[X++]=(V&3)<<6|j&63;return q}function rs(g){var v=new Uint8Array(g),x="",T;for(T=0;T>2],x+=Ae[(v[T]&3)<<4|v[T+1]>>4],x+=Ae[(v[T+1]&15)<<2|v[T+2]>>6],x+=Ae[v[T+2]&63];return v.length%3===2?x=x.substring(0,x.length-1)+"=":v.length%3===1&&(x=x.substring(0,x.length-2)+"=="),x}function el(g,v){var x="";if(g&&(x=fn.call(g)),g&&(x==="[object ArrayBuffer]"||g.buffer&&fn.call(g.buffer)==="[object ArrayBuffer]")){var T,X=Kt;g instanceof ArrayBuffer?(T=g,X+=ln):(T=g.buffer,x==="[object Int8Array]"?X+=ao:x==="[object Uint8Array]"?X+=Xi:x==="[object Uint8ClampedArray]"?X+=_i:x==="[object Int16Array]"?X+=Fi:x==="[object Uint16Array]"?X+=cn:x==="[object Int32Array]"?X+=ts:x==="[object Uint32Array]"?X+=hn:x==="[object Float32Array]"?X+=is:x==="[object Float64Array]"?X+=lr:v(new Error("Failed to get type for BinaryArray"))),v(X+rs(T))}else if(x==="[object Blob]"){var y=new FileReader;y.onload=function(){var E=an+g.type+"~"+rs(this.result);v(Kt+es+E)},y.readAsArrayBuffer(g)}else try{v(JSON.stringify(g))}catch(E){console.error("Couldn't convert value into a JSON string: ",g),v(null,E)}}function co(g){if(g.substring(0,Jn)!==Kt)return JSON.parse(g);var v=g.substring(On),x=g.substring(Jn,On),T;if(x===es&&oo.test(v)){var X=v.match(oo);T=X[1],v=v.substring(X[0].length)}var y=lo(v);switch(x){case ln:return y;case es:return O([y],{type:T});case ao:return new Int8Array(y);case Xi:return new Uint8Array(y);case _i:return new Uint8ClampedArray(y);case Fi:return new Int16Array(y);case cn:return new Uint16Array(y);case ts:return new Int32Array(y);case hn:return new Uint32Array(y);case is:return new Float32Array(y);case lr:return new Float64Array(y);default:throw new Error("Unkown type: "+x)}}var Tr={serialize:el,deserialize:co,stringToBuffer:lo,bufferToString:rs};function cr(g,v,x,T){g.executeSql("CREATE TABLE IF NOT EXISTS "+v.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],x,T)}function hi(g){var v=this,x={db:null};if(g)for(var T in g)x[T]=typeof g[T]!="string"?g[T].toString():g[T];var X=new f(function(y,E){try{x.db=openDatabase(x.name,String(x.version),x.description,x.size)}catch(V){return E(V)}x.db.transaction(function(V){cr(V,x,function(){v._dbInfo=x,y()},function(j,q){E(q)})},E)});return x.serializer=Tr,X}function Oi(g,v,x,T,X,y){g.executeSql(x,T,X,function(E,V){V.code===V.SYNTAX_ERR?E.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[v.storeName],function(j,q){q.rows.length?y(j,V):cr(j,v,function(){j.executeSql(x,T,X,y)},y)},y):y(E,V)},y)}function tl(g,v){var x=this;g=m(g);var T=new f(function(X,y){x.ready().then(function(){var E=x._dbInfo;E.db.transaction(function(V){Oi(V,E,"SELECT * FROM "+E.storeName+" WHERE key = ? LIMIT 1",[g],function(j,q){var G=q.rows.length?q.rows.item(0).value:null;G&&(G=E.serializer.deserialize(G)),X(G)},function(j,q){y(q)})})}).catch(y)});return u(T,v),T}function il(g,v){var x=this,T=new f(function(X,y){x.ready().then(function(){var E=x._dbInfo;E.db.transaction(function(V){Oi(V,E,"SELECT * FROM "+E.storeName,[],function(j,q){for(var G=q.rows,oe=G.length,xe=0;xe0){E(ns.apply(X,[g,j,x,T-1]));return}V(xe)}})})}).catch(V)});return u(y,x),y}function rl(g,v,x){return ns.apply(this,[g,v,x,1])}function ss(g,v){var x=this;g=m(g);var T=new f(function(X,y){x.ready().then(function(){var E=x._dbInfo;E.db.transaction(function(V){Oi(V,E,"DELETE FROM "+E.storeName+" WHERE key = ?",[g],function(){X()},function(j,q){y(q)})})}).catch(y)});return u(T,v),T}function os(g){var v=this,x=new f(function(T,X){v.ready().then(function(){var y=v._dbInfo;y.db.transaction(function(E){Oi(E,y,"DELETE FROM "+y.storeName,[],function(){T()},function(V,j){X(j)})})}).catch(X)});return u(x,g),x}function fi(g){var v=this,x=new f(function(T,X){v.ready().then(function(){var y=v._dbInfo;y.db.transaction(function(E){Oi(E,y,"SELECT COUNT(key) as c FROM "+y.storeName,[],function(V,j){var q=j.rows.item(0).c;T(q)},function(V,j){X(j)})})}).catch(X)});return u(x,g),x}function Xr(g,v){var x=this,T=new f(function(X,y){x.ready().then(function(){var E=x._dbInfo;E.db.transaction(function(V){Oi(V,E,"SELECT key FROM "+E.storeName+" WHERE id = ? LIMIT 1",[g+1],function(j,q){var G=q.rows.length?q.rows.item(0).key:null;X(G)},function(j,q){y(q)})})}).catch(y)});return u(T,v),T}function ho(g){var v=this,x=new f(function(T,X){v.ready().then(function(){var y=v._dbInfo;y.db.transaction(function(E){Oi(E,y,"SELECT key FROM "+y.storeName,[],function(V,j){for(var q=[],G=0;G '__WebKitDatabaseInfoTable__'",[],function(X,y){for(var E=[],V=0;V0}function un(g){var v=this,x={};if(g)for(var T in g)x[T]=g[T];return x.keyPrefix=uo(g,v._defaultConfig),zO()?(v._dbInfo=x,x.serializer=Tr,f.resolve()):f.reject()}function YO(g){var v=this,x=v.ready().then(function(){for(var T=v._dbInfo.keyPrefix,X=localStorage.length-1;X>=0;X--){var y=localStorage.key(X);y.indexOf(T)===0&&localStorage.removeItem(y)}});return u(x,g),x}function MO(g,v){var x=this;g=m(g);var T=x.ready().then(function(){var X=x._dbInfo,y=localStorage.getItem(X.keyPrefix+g);return y&&(y=X.serializer.deserialize(y)),y});return u(T,v),T}function Be(g,v){var x=this,T=x.ready().then(function(){for(var X=x._dbInfo,y=X.keyPrefix,E=y.length,V=localStorage.length,j=1,q=0;q=0;E--){var V=localStorage.key(E);V.indexOf(y)===0&&localStorage.removeItem(V)}}):X=f.reject("Invalid arguments"),u(X,v),X}var WO={_driver:"localStorageWrapper",_initStorage:un,_support:fo(),iterate:Be,getItem:MO,setItem:ol,removeItem:mo,clear:YO,length:sl,key:_r,keys:LO,dropInstance:al},VO=function(v,x){return v===x||typeof v=="number"&&typeof x=="number"&&isNaN(v)&&isNaN(x)},jO=function(v,x){for(var T=v.length,X=0;X{"use strict";function $$(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t2?r-2:0),s=2;s1?t-1:0),n=1;n1?t-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:qa;if(P$&&P$(i,null),!nn(e))return i;let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){let s=t(n);s!==n&&(VA(e)||(e[r]=s),n=s)}i[n]=!0}return i}function HA(i){for(let e=0;e/g),nE=wt(/\${[\w\W]*/g),sE=wt(/^data-[\-\w.\u00B7-\uFFFF]+$/),oE=wt(/^aria-[\-\w]+$/),E$=wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aE=wt(/^(?:\w+script|data):/i),lE=wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cE=wt(/^html$/i),hE=wt(/^[a-z][.\w]*(-[.\w]+)+$/i),z$=wt(/<[/\w!]/g),Y$=wt(/<[/\w]/g),OE=wt(/<\/no(script|embed|frames)/i),fE=wt(/\/>/i),ci={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},uE=function(){return typeof window=="undefined"?null:window},dE=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}},M$=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},rn=function(e,t,r,n){return dt(e,t)&&nn(e[t])?Ce(n.base?Rt(n.base):{},e[t],n.transform):r};function V$(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uE(),e=M=>V$(M);if(e.version="3.4.13",e.removed=[],!i||!i.document||i.document.nodeType!==ci.document||!i.Element)return e.isSupported=!1,e;let t=i.document,r=t,n=r.currentScript;i.DocumentFragment;let s=i.HTMLTemplateElement,o=i.Node,a=i.Element,l=i.NodeFilter,c=i.NamedNodeMap;c===void 0&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;let h=i.DOMParser,O=i.trustedTypes,f=a.prototype,u=qi(f,"cloneNode"),p=qi(f,"remove"),m=qi(f,"nextSibling"),S=qi(f,"childNodes"),w=qi(f,"parentNode"),C=qi(f,"shadowRoot"),R=qi(f,"attributes"),A=o&&o.prototype?qi(o.prototype,"nodeType"):null,k=o&&o.prototype?qi(o.prototype,"nodeName"):null,P=o&&o.prototype?qi(o.prototype,"ownerDocument"):null;if(typeof s=="function"){let M=t.createElement("template");M.content&&M.content.ownerDocument&&(t=M.content.ownerDocument)}let Z,z="",D,Oe=!1,se=0,ee=function(){if(se>0)throw Nn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},he=function(b){ee(),se++;try{return Z.createHTML(b)}finally{se--}},ge=function(b){ee(),se++;try{return Z.createScriptURL(b)}finally{se--}},we=function(){return Oe||(D=dE(O,n),Oe=!0),D},Y=t,re=Y.implementation,N=Y.createNodeIterator,be=Y.createDocumentFragment,ye=Y.getElementsByTagName,He=r.importNode,de=M$();e.isSupported=typeof L$=="function"&&typeof w=="function"&&re&&re.createHTMLDocument!==void 0;let Zt=iE,Ti=rE,Ii=nE,kr=sE,Kn=oE,UO=aE,Ka=lE,AO=hE,Ja=E$,qe=null,no=Ce({},[...Z$,...tg,...ig,...rg,...C$]),De=null,so=Ce({},[...U$,...ng,...A$,...wO]),Ae=Object.seal(Js(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),an=null,oo=null,Kt=Object.seal(Js(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Jn=!0,ln=!0,es=!1,ao=!0,Xi=!1,_i=!0,Fi=!1,ts=!1,cn=null,hn=null,is=!1,lr=!1,On=!1,fn=!1,lo=!0,rs=!1,el="user-content-",co=!0,Tr=!1,cr={},hi=null,Oi=Ce({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),tl=null,il=Ce({},["audio","video","img","source","image","track"]),ns=null,rl=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ss="http://www.w3.org/1998/Math/MathML",os="http://www.w3.org/2000/svg",fi="http://www.w3.org/1999/xhtml",Xr=fi,ho=!1,Oo=null,EO=Ce({},[ss,os,fi],eg),nl=vt(["mi","mo","mn","ms","mtext"]),fo=Ce({},nl),uo=vt(["annotation-xml"]),po=Ce({},uo),zO=Ce({},["title","style","font","a","script"]),un=null,YO=["application/xhtml+xml","text/html"],MO="text/html",Be=null,_r=null,LO=t.createElement("form"),sl=function(b){return b instanceof RegExp||b instanceof Function},mo=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_r&&_r===b)return;(!b||typeof b!="object")&&(b={}),b=Rt(b),un=YO.indexOf(b.PARSER_MEDIA_TYPE)===-1?MO:b.PARSER_MEDIA_TYPE,Be=un==="application/xhtml+xml"?eg:qa,qe=rn(b,"ALLOWED_TAGS",no,{transform:Be}),De=rn(b,"ALLOWED_ATTR",so,{transform:Be}),Oo=rn(b,"ALLOWED_NAMESPACES",EO,{transform:eg}),ns=rn(b,"ADD_URI_SAFE_ATTR",rl,{transform:Be,base:rl}),tl=rn(b,"ADD_DATA_URI_TAGS",il,{transform:Be,base:il}),hi=rn(b,"FORBID_CONTENTS",Oi,{transform:Be}),an=rn(b,"FORBID_TAGS",Rt({}),{transform:Be}),oo=rn(b,"FORBID_ATTR",Rt({}),{transform:Be}),cr=dt(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?Rt(b.USE_PROFILES):b.USE_PROFILES:!1,Jn=b.ALLOW_ARIA_ATTR!==!1,ln=b.ALLOW_DATA_ATTR!==!1,es=b.ALLOW_UNKNOWN_PROTOCOLS||!1,ao=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Xi=b.SAFE_FOR_TEMPLATES||!1,_i=b.SAFE_FOR_XML!==!1,Fi=b.WHOLE_DOCUMENT||!1,lr=b.RETURN_DOM||!1,On=b.RETURN_DOM_FRAGMENT||!1,fn=b.RETURN_TRUSTED_TYPE||!1,is=b.FORCE_BODY||!1,lo=b.SANITIZE_DOM!==!1,rs=b.SANITIZE_NAMED_PROPS||!1,co=b.KEEP_CONTENT!==!1,Tr=b.IN_PLACE||!1,Ja=JA(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:E$,Xr=typeof b.NAMESPACE=="string"?b.NAMESPACE:fi,fo=dt(b,"MATHML_TEXT_INTEGRATION_POINTS")&&b.MATHML_TEXT_INTEGRATION_POINTS&&typeof b.MATHML_TEXT_INTEGRATION_POINTS=="object"?Rt(b.MATHML_TEXT_INTEGRATION_POINTS):Ce({},nl),po=dt(b,"HTML_INTEGRATION_POINTS")&&b.HTML_INTEGRATION_POINTS&&typeof b.HTML_INTEGRATION_POINTS=="object"?Rt(b.HTML_INTEGRATION_POINTS):Ce({},uo);let _=dt(b,"CUSTOM_ELEMENT_HANDLING")&&b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING=="object"?Rt(b.CUSTOM_ELEMENT_HANDLING):Js(null);if(Ae=Js(null),dt(_,"tagNameCheck")&&sl(_.tagNameCheck)&&(Ae.tagNameCheck=_.tagNameCheck),dt(_,"attributeNameCheck")&&sl(_.attributeNameCheck)&&(Ae.attributeNameCheck=_.attributeNameCheck),dt(_,"allowCustomizedBuiltInElements")&&typeof _.allowCustomizedBuiltInElements=="boolean"&&(Ae.allowCustomizedBuiltInElements=_.allowCustomizedBuiltInElements),wt(Ae),Xi&&(ln=!1),On&&(lr=!0),cr&&(qe=Ce({},C$),De=Js(null),cr.html===!0&&(Ce(qe,Z$),Ce(De,U$)),cr.svg===!0&&(Ce(qe,tg),Ce(De,ng),Ce(De,wO)),cr.svgFilters===!0&&(Ce(qe,ig),Ce(De,ng),Ce(De,wO)),cr.mathMl===!0&&(Ce(qe,rg),Ce(De,A$),Ce(De,wO))),Kt.tagCheck=null,Kt.attributeCheck=null,dt(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?Kt.tagCheck=b.ADD_TAGS:nn(b.ADD_TAGS)&&(qe===no&&(qe=Rt(qe)),Ce(qe,b.ADD_TAGS,Be))),dt(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?Kt.attributeCheck=b.ADD_ATTR:nn(b.ADD_ATTR)&&(De===so&&(De=Rt(De)),Ce(De,b.ADD_ATTR,Be))),dt(b,"ADD_URI_SAFE_ATTR")&&nn(b.ADD_URI_SAFE_ATTR)&&Ce(ns,b.ADD_URI_SAFE_ATTR,Be),dt(b,"FORBID_CONTENTS")&&nn(b.FORBID_CONTENTS)&&(hi===Oi&&(hi=Rt(hi)),Ce(hi,b.FORBID_CONTENTS,Be)),dt(b,"ADD_FORBID_CONTENTS")&&nn(b.ADD_FORBID_CONTENTS)&&(hi===Oi&&(hi=Rt(hi)),Ce(hi,b.ADD_FORBID_CONTENTS,Be)),co&&(qe["#text"]=!0),Fi&&Ce(qe,["html","head","body"]),qe.table&&(Ce(qe,["tbody"]),delete an.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw Nn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Nn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let L=Z;Z=b.TRUSTED_TYPES_POLICY;try{z=he("")}catch(ne){throw Z=L,ne}}else b.TRUSTED_TYPES_POLICY===null?(Z=void 0,z=""):(Z===void 0&&(Z=we()),Z&&typeof z=="string"&&(z=he("")));vt&&vt(b),_r=b},ol=Ce({},[...tg,...ig,...eE]),al=Ce({},[...rg,...tE]),WO=function(b,_,L){return _.namespaceURI===fi?b==="svg":_.namespaceURI===ss?b==="svg"&&(L==="annotation-xml"||fo[L]):!!ol[b]},VO=function(b,_,L){return _.namespaceURI===fi?b==="math":_.namespaceURI===os?b==="math"&&po[L]:!!al[b]},jO=function(b,_,L){return _.namespaceURI===os&&!po[L]||_.namespaceURI===ss&&!fo[L]?!1:!al[b]&&(zO[b]||!ol[b])},ll=function(b){let _=w(b);(!_||!_.tagName)&&(_={namespaceURI:Xr,tagName:"template"});let L=qa(b.tagName),ne=qa(_.tagName);return Oo[b.namespaceURI]?b.namespaceURI===os?WO(L,_,ne):b.namespaceURI===ss?VO(L,_,ne):b.namespaceURI===fi?jO(L,_,ne):!!(un==="application/xhtml+xml"&&Oo[b.namespaceURI]):!1},qt=function(b){Ks(e.removed,{element:b});try{w(b).removeChild(b)}catch(_){if(p(b),!w(b))throw Nn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},dn=function(b){Bi(b);let _=S(b);if(_){let ne=[];Hs(_,fe=>{Ks(ne,fe)}),Hs(ne,fe=>{try{p(fe)}catch(me){}})}let L=R(b);if(L)for(let ne=L.length-1;ne>=0;--ne){let fe=L[ne],me=fe&&fe.name;if(typeof me=="string")try{b.removeAttribute(me)}catch(ze){}}},Dt=function(b,_){try{Ks(e.removed,{attribute:_.getAttributeNode(b),from:_})}catch(L){Ks(e.removed,{attribute:null,from:_})}if(_.removeAttribute(b),b==="is")if(lr||On)try{qt(_)}catch(L){}else try{_.setAttribute(b,"")}catch(L){}},qO=function(b){let _=R(b);if(_)for(let L=_.length-1;L>=0;--L){let ne=_[L],fe=ne&&ne.name;if(!(typeof fe!="string"||De[Be(fe)]))try{b.removeAttribute(fe)}catch(me){}}},Bi=function(b){let _=[b];for(;_.length>0;){let L=_.pop();(A?A(L):L.nodeType)===ci.element&&qO(L);let fe=S(L);if(fe)for(let me=fe.length-1;me>=0;--me)_.push(fe[me])}},go=function(b){if(!_i)return;let _=[b];for(;_.length>0;){let L=_.pop(),ne=A?A(L):L.nodeType;if(ne===ci.processingInstruction||ne===ci.comment&&ut(Y$,L.data)){try{p(L)}catch(me){}continue}if(ne===ci.element){let me=L,ze=Be(k?k(L):L.nodeName);try{me.hasAttribute&&me.hasAttribute("patchsrc")&&me.removeAttribute("patchsrc"),me.hasAttribute&&me.hasAttribute("for")&&ze!=="label"&&ze!=="output"&&me.removeAttribute("for")}catch(Ge){}}let fe=S(L);if(fe)for(let me=fe.length-1;me>=0;--me)_.push(fe[me])}},cl=function(b){let _=null,L=null;if(is)b=""+b;else{let me=T$(b,/^[\r\n\t ]+/);L=me&&me[0]}un==="application/xhtml+xml"&&Xr===fi&&(b=''+b+"");let ne=Z?he(b):b;if(Xr===fi)try{_=new h().parseFromString(ne,un)}catch(me){}if(!_||!_.documentElement){_=re.createDocument(Xr,"template",null);try{_.documentElement.innerHTML=ho?z:ne}catch(me){}}let fe=_.body||_.documentElement;return b&&L&&fe.insertBefore(t.createTextNode(L),fe.childNodes[0]||null),Xr===fi?ye.call(_,Fi?"html":"body")[0]:Fi?_.documentElement:fe},hl=function(b){let _=P?P(b):b.ownerDocument;return N.call(_||b,b,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Rr=function(b){return b=Va(b,Zt," "),b=Va(b,Ti," "),b=Va(b,Ii," "),b},bo=function(b){var _;b.normalize();let L=P?P(b):b.ownerDocument,ne=N.call(L||b,b,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),fe=ne.nextNode();for(;fe;)fe.data=Rr(fe.data),fe=ne.nextNode();let me=(_=b.querySelectorAll)===null||_===void 0?void 0:_.call(b,"template");me&&Hs(me,ze=>{g(ze.content)&&bo(ze.content)})},as=function(b){let _=k?k(b):null;return typeof _!="string"||Be(_)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==R(b)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==A(b)||b.childNodes!==S(b)},g=function(b){if(!A||typeof b!="object"||b===null)return!1;try{return A(b)===ci.documentFragment}catch(_){return!1}},v=function(b){if(!A||typeof b!="object"||b===null)return!1;try{return typeof A(b)=="number"}catch(_){return!1}};function x(M,b,_){M.length!==0&&Hs(M,L=>{L.call(e,b,_,_r)})}let T=function(b,_){return!!(_i&&b.hasChildNodes()&&!v(b.firstElementChild)&&ut(z$,b.textContent)&&ut(z$,b.innerHTML)||_i&&b.namespaceURI===fi&&_==="style"&&v(b.firstElementChild)||b.nodeType===ci.processingInstruction||_i&&b.nodeType===ci.comment&&ut(Y$,b.data))},X=function(b,_,L){if(!an[_]&&q(_)&&(Ae.tagNameCheck instanceof RegExp&&ut(Ae.tagNameCheck,_)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(_)))return!1;if(co&&!hi[_]){let ne=w(b),fe=S(b);if(fe&&ne){let me=fe.length;for(let ze=me-1;ze>=0;--ze){let Ge=b===L?u(fe[ze],!0):fe[ze];ne.insertBefore(Ge,m(b))}}}return qt(b),!0},y=function(b,_,L,ne){return b.length===0?_:_===L||_===ne?Rt(_):_},E=function(b,_){if(x(de.beforeSanitizeElements,b,null),b!==_&&w(b)===null)return Tr&&Bi(b),!0;if(as(b))return qt(b),!0;let L=Be(k?k(b):b.nodeName);if(qe=y(de.uponSanitizeElement,qe,no,cn),x(de.uponSanitizeElement,b,{tagName:L,allowedTags:qe}),b!==_&&w(b)===null)return Tr&&Bi(b),!0;if(T(b,L))return qt(b),!0;if(an[L]||!(Kt.tagCheck instanceof Function&&Kt.tagCheck(L))&&!qe[L]){let fe=X(b,L,_);return fe===!1&&x(de.afterSanitizeElements,b,null),fe}if((A?A(b):b.nodeType)===ci.element&&!ll(b)||(L==="noscript"||L==="noembed"||L==="noframes")&&ut(OE,b.innerHTML))return qt(b),!0;if(Xi&&b.nodeType===ci.text){let fe=Rr(b.textContent);b.textContent!==fe&&(Ks(e.removed,{element:b.cloneNode()}),b.textContent=fe)}return x(de.afterSanitizeElements,b,null),!1},V=function(b,_,L){if(oo[_]||_i&&_==="patchsrc"||_i&&_==="for"&&b!=="label"&&b!=="output"||lo&&(_==="id"||_==="name")&&(L in t||L in LO))return!1;let ne=De[_]||Kt.attributeCheck instanceof Function&&Kt.attributeCheck(_,b);if(!(ln&&ut(kr,_))){if(!(Jn&&ut(Kn,_))){if(ne){if(!ns[_]){if(!ut(Ja,Va(L,Ka,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&b!=="script"&&X$(L,"data:")===0&&tl[b])){if(!(es&&!ut(UO,Va(L,Ka,"")))){if(L)return!1}}}}}else if(!(q(b)&&(Ae.tagNameCheck instanceof RegExp&&ut(Ae.tagNameCheck,b)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(b))&&(Ae.attributeNameCheck instanceof RegExp&&ut(Ae.attributeNameCheck,_)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(_,b))||_==="is"&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&ut(Ae.tagNameCheck,L)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(L))))return!1}}return!0},j=Ce({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),q=function(b){return!j[qa(b)]&&ut(AO,b)},G=function(b,_,L,ne){if(Z&&typeof O=="object"&&typeof O.getAttributeType=="function"&&!L)switch(O.getAttributeType(b,_)){case"TrustedHTML":return he(ne);case"TrustedScriptURL":return ge(ne)}return ne},oe=function(b,_,L,ne){try{L?b.setAttributeNS(L,_,ne):b.setAttribute(_,ne),as(b)?qt(b):k$(e.removed)}catch(fe){Dt(_,b)}},xe=function(b){x(de.beforeSanitizeAttributes,b,null);let _=b.attributes;if(!_||as(b))return;De=y(de.uponSanitizeAttribute,De,so,hn);let L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:De,forceKeepAttr:void 0},ne=_.length,fe=Be(b.nodeName);for(;ne--;){let me=_[ne],ze=me.name,Ge=me.namespaceURI,yt=me.value,mt=Be(ze),DO=yt,Ct=ze==="value"?DO:FA(DO);if(L.attrName=mt,L.attrValue=Ct,L.keepAttr=!0,L.forceKeepAttr=void 0,x(de.uponSanitizeAttribute,b,L),Ct=L.attrValue,rs&&(mt==="id"||mt==="name")&&X$(Ct,el)!==0&&(Dt(ze,b),Ct=el+Ct),_i&&ut(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ct)){Dt(ze,b);continue}if(mt==="attributename"&&T$(Ct,"href")){Dt(ze,b);continue}if(!L.forceKeepAttr){if(!L.keepAttr){Dt(ze,b);continue}if(!ao&&ut(fE,Ct)){Dt(ze,b);continue}if(Xi&&(Ct=Rr(Ct)),!V(fe,mt,Ct)){Dt(ze,b);continue}Ct=G(fe,mt,Ge,Ct),Ct!==DO&&oe(b,ze,Ge,Ct)}}x(de.afterSanitizeAttributes,b,null)},Xe=function(b){let _=null,L=hl(b);for(x(de.beforeSanitizeShadowDOM,b,null);_=L.nextNode();)if(x(de.uponSanitizeShadowNode,_,null),E(_,b),xe(_),g(_.content)&&Xe(_.content),(A?A(_):_.nodeType)===ci.element){let fe=C(_);g(fe)&&(Ue(fe),Xe(fe))}x(de.afterSanitizeShadowDOM,b,null)},Ue=function(b){let _=[{node:b,shadow:null}];for(;_.length>0;){let L=_.pop();if(L.shadow){Xe(L.shadow);continue}let ne=L.node,me=(A?A(ne):ne.nodeType)===ci.element,ze=S(ne);if(ze)for(let Ge=ze.length-1;Ge>=0;--Ge)_.push({node:ze[Ge],shadow:null});if(me){let Ge=k?k(ne):null;if(typeof Ge=="string"&&Be(Ge)==="template"){let yt=ne.content;g(yt)&&_.push({node:yt,shadow:null})}}if(me){let Ge=C(ne);g(Ge)&&_.push({node:null,shadow:Ge},{node:Ge,shadow:null})}}};return e.sanitize=function(M){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,L=null,ne=null,fe=null;if(ho=!M,ho&&(M=""),typeof M!="string"&&!v(M)&&(M=KA(M),typeof M!="string"))throw Nn("dirty is not a string, aborting");if(!e.isSupported)return M;ts?(qe=cn,De=hn):mo(b),(de.uponSanitizeElement.length>0||de.uponSanitizeAttribute.length>0)&&(qe=Rt(qe)),de.uponSanitizeAttribute.length>0&&(De=Rt(De)),e.removed=[];let me=Tr&&typeof M!="string"&&v(M);if(me){go(M);let yt=k?k(M):M.nodeName;if(typeof yt=="string"){let mt=Be(yt);if(!qe[mt]||an[mt])throw dn(M),Nn("root node is forbidden and cannot be sanitized in-place")}if(as(M))throw dn(M),Nn("root node is clobbered and cannot be sanitized in-place");try{Ue(M)}catch(mt){throw dn(M),mt}}else if(v(M))_=cl(""),L=_.ownerDocument.importNode(M,!0),L.nodeType===ci.element&&L.nodeName==="BODY"||L.nodeName==="HTML"?_=L:_.appendChild(L),Ue(L);else{if(!lr&&!Xi&&!Fi&&M.indexOf("<")===-1)return Z&&fn?he(M):M;if(_=cl(M),!_)return lr?null:fn?z:""}_&&is&&qt(_.firstChild);let ze=me?M:_;try{let yt=hl(ze);for(;ne=yt.nextNode();)E(ne,ze),xe(ne),g(ne.content)&&Xe(ne.content)}catch(yt){throw me&&(dn(M),Hs(e.removed,mt=>{mt.element&&Bi(mt.element)})),yt}if(me)return Hs(e.removed,yt=>{yt.element&&Bi(yt.element)}),Xi&&bo(M),M;if(lr){if(Xi&&bo(_),On)for(fe=be.call(_.ownerDocument);_.firstChild;)fe.appendChild(_.firstChild);else fe=_;return(De.shadowroot||De.shadowrootmode)&&(fe=He.call(r,fe,!0)),fe}let Ge=Fi?_.outerHTML:_.innerHTML;return Fi&&qe["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&ut(cE,_.ownerDocument.doctype.name)&&(Ge=" `+Ge),Xi&&(Ge=Rr(Ge)),Z&&fn?he(Ge):Ge},e.setConfig=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};mo(M),ts=!0,cn=qe,hn=De},e.clearConfig=function(){_r=null,ts=!1,cn=null,hn=null,Z=D,z=""},e.isValidAttribute=function(M,b,_){_r||mo({});let L=Be(M),ne=Be(b);return V(L,ne,_)},e.addHook=function(M,b){typeof b=="function"&&dt(de,M)&&Ks(de[M],b)},e.removeHook=function(M,b){if(dt(de,M)){if(b!==void 0){let _=DA(de[M],b);return _===-1?void 0:IA(de[M],_,1)[0]}return k$(de[M])}},e.removeHooks=function(M){dt(de,M)&&(de[M]=[])},e.removeAllHooks=function(){de=M$()},e}var pE=V$();j$.exports=pE});var fg=IO(nf());var Le=[/^\s*[.#%]?(include|incbin|embed)\s+"(.+?)"/gmi,/^\s*([;']|[/][/])#(resource)\s+"(.+?)"/gm],Ie=[/^\s*([;]|[/][/])#link\s+"(.+?)"/gm],wo=[/^\s*(`include|[.]include)\s+"(.+?)"/gmi,/^\s*\$(include|\$dofile|\$write_image_in_table)\('(.+?)'/gmi,{re:/^\s*([.]arch)\s+(\w+)/gmi,suffix:".json"},/\$readmem[bh]\("(.+?)"/gmi],_P=[{re:/^\s*[.#%]?\s*include\s+<(.+?)>/gmi,system:!0}];function Eg(i){let e=i&&Hi(i);return e&&e.includeDirs&&e.includeDirs.length?_P:[]}var Ug=[/^\s+(USE|ASM)\s+(\S+[.]\S+)/gm],RP=[/^[!]src\s+"(.+?)"/gmi],ZP=[{re:/^\s*import\s*"(.+?)";/gmi,suffix:".wiz"},/^\s*embed\s*"(.+?)";/gmi],CP=[/^\s*(import)\s*"(.+?)"/gmi],UP=[/^\s*%%\s*#include\s+"(.+?)"/gm],Ag={apple2:{preloadFS:"65-apple2"},c64:{preloadFS:"65-c64"},vic20:{preloadFS:"65-vic20"},nes:{preloadFS:"65-nes"},atari8:{preloadFS:"65-atari8"},vector:{preloadFS:"65-none"},atari7800:{preloadFS:"65-none"},devel:{preloadFS:"65-none"},vcs:{preloadFS:"65-atari2600"},pce:{preloadFS:"65-pce"},exidy:{preloadFS:"65-none"}},yo={dasm:{id:"dasm",name:"DASM",kind:"assembler",arch:"6502",extensions:[".dasm"],editorStyle:"6502",helpURL:"https://raw.githubusercontent.com/dasm-assembler/dasm/refs/tags/v2.20.17/docs/dasm.txt",wasmModule:"dasm-wasisdk",version:"2.20.17",includePatterns:Le,linkPatterns:Ie},acme:{id:"acme",name:"ACME",kind:"assembler",arch:"6502",extensions:[".acme"],editorStyle:"6502",helpURL:"https://raw.githubusercontent.com/sehugg/acme/main/docs/QuickRef.txt",wasmModule:"acme",version:"0.97.1",includePatterns:[...Le,...RP],linkPatterns:Ie},xa:{id:"xa",name:"XA",kind:"assembler",arch:"6502",extensions:[".xa"],editorStyle:"6502",helpURL:"https://www.floodgap.com/retrotech/xa/",wasmModule:"xa",version:"2.4.1",includePatterns:Le,linkPatterns:Ie},nesasm:{id:"nesasm",name:"NESASM",kind:"assembler",arch:"6502",extensions:[".nesasm"],editorStyle:"6502",wasmModule:"nesasm",version:"3.1",includePatterns:Le,linkPatterns:Ie},merlin32:{id:"merlin32",name:"Merlin 32",kind:"assembler",arch:"6502",extensions:[".lnk"],editorStyle:"6502",wasmModule:"merlin32",version:"1.1.1",includePatterns:[...Le,...Ug],linkPatterns:Ie},cc65:{id:"cc65",name:"cc65",kind:"compiler",arch:"6502",extensions:[".c",".h"],includeDirs:["/include","/asminc"],editorStyle:"text/x-csrc",helpURL:"https://cc65.github.io/doc/cc65.html",wasmModule:"cc65",version:"2.19",platforms:Ag,includePatterns:Le,linkPatterns:Ie},ca65:{id:"ca65",name:"ca65",kind:"assembler",arch:"6502",extensions:[".s",".ca65",".inc"],includeDirs:["/include","/asminc"],editorStyle:"6502",helpURL:"https://cc65.github.io/doc/ca65.html",wasmModule:"ca65",version:"2.19",platforms:Ag,includePatterns:Le,linkPatterns:Ie},ld65:{id:"ld65",name:"ld65",kind:"linker",arch:"6502",extensions:[],wasmModule:"ld65",version:"2.19"},sdcc:{id:"sdcc",name:"SDCC",kind:"compiler",arch:"z80",extensions:[".c",".h"],includeDirs:["/include"],editorStyle:"text/x-csrc",helpURL:"http://sdcc.sourceforge.net/doc/sdccman.pdf",wasmModule:"sdcc",version:"3.6.5",platforms:{default:{preloadFS:"sdcc"}},includePatterns:Le,linkPatterns:Ie},sdasz80:{id:"sdasz80",name:"sdasz80",kind:"assembler",arch:"z80",extensions:[".s"],includeDirs:["/include"],editorStyle:"z80",wasmModule:"sdasz80",version:"02.00",platforms:{default:{preloadFS:"sdcc"}},includePatterns:Le,linkPatterns:Ie},sdasgb:{id:"sdasgb",name:"sdasgb",kind:"assembler",arch:"gbz80",extensions:[".sgb"],includeDirs:["/include"],editorStyle:"z80",wasmModule:"sdasgb",platforms:{default:{preloadFS:"sdcc"}},includePatterns:Le,linkPatterns:Ie},sdldz80:{id:"sdldz80",name:"sdldz80",kind:"linker",arch:"z80",extensions:[],wasmModule:"sdldz80",version:"03.00"},sccz80:{id:"sccz80",name:"sccz80",kind:"compiler",arch:"z80",extensions:[".scc"],platforms:{default:{preloadFS:"sccz80"}},noWorkerBuild:!0},naken:{id:"naken",name:"Naken",kind:"assembler",extensions:[".ns"],noWorkerBuild:!0},zmac:{id:"zmac",name:"zmac",kind:"assembler",arch:"z80",extensions:[".z"],editorStyle:"z80",helpURL:"https://raw.githubusercontent.com/sehugg/zmac/master/doc.txt",wasmModule:"zmac",version:"28jul2018",includePatterns:Le,linkPatterns:Ie},jsasm:{id:"jsasm",name:"JSASM",kind:"assembler",extensions:[".asm"],editorStyle:"z80",includePatterns:wo,linkPatterns:[]},xasm6809:{id:"xasm6809",name:"XASM6809",kind:"assembler",arch:"6809",extensions:[".xasm"],editorStyle:"6809",wasmModule:"xasm6809",includePatterns:[...Le,...Ug],linkPatterns:Ie},cmoc:{id:"cmoc",name:"CMOC",kind:"compiler",arch:"6809",extensions:[".c",".h"],editorStyle:"text/x-csrc",helpURL:"http://perso.b2b2c.ca/~sarrazip/dev/cmoc.html",wasmModule:"cmoc",version:"0.1.67",includePatterns:Le,linkPatterns:Ie},lwasm:{id:"lwasm",name:"LWASM",kind:"assembler",arch:"6809",extensions:[".lwasm"],wasmModule:"lwasm",version:"4.17",includePatterns:Le,linkPatterns:Ie},lwlink:{id:"lwlink",name:"LWLINK",kind:"linker",arch:"6809",extensions:[],wasmModule:"lwlink",version:"4.17"},vasmarm:{id:"vasmarm",name:"vasm (ARM)",kind:"assembler",arch:"arm32",extensions:[".vasm"],editorStyle:"vasm",wasmModule:"vasmarm_std",version:"1.8k",includePatterns:Le,linkPatterns:Ie},armips:{id:"armips",name:"armips",kind:"assembler",arch:"arm32",extensions:[".armips"],editorStyle:"vasm",wasmModule:"armips",version:"0.11.0",includePatterns:Le,linkPatterns:Ie},armtcc:{id:"armtcc",name:"TCC (ARM)",kind:"compiler",arch:"arm32",extensions:[".c",".s"],includeDirs:["/include"],wasiFSZip:"arm32-fs.zip",editorStyle:"text/x-csrc",wasmModule:"arm-tcc",includePatterns:Le,linkPatterns:Ie},armtcclink:{id:"armtcclink",name:"TCC (ARM) link",kind:"linker",arch:"arm32",extensions:[],wasmModule:"arm-tcc"},smlrc:{id:"smlrc",name:"SmallerC",kind:"compiler",arch:"x86",extensions:[".c"],editorStyle:"text/x-csrc",wasmModule:"smlrc",includePatterns:Le,linkPatterns:Ie},yasm:{id:"yasm",name:"YASM",kind:"assembler",arch:"x86",extensions:[".asm"],editorStyle:"gas",wasmModule:"yasm",version:"1.3.0.47.gc9db",includePatterns:Le,linkPatterns:Ie},oscar64:{id:"oscar64",name:"Oscar64",kind:"compiler",arch:"6502",extensions:[".c",".cpp",".cc",".o64"],includeDirs:["/include"],wasiFSZip:"oscar64-fs.zip",editorStyle:"text/x-csrc",helpURL:"https://github.com/drmortalwombat/oscar64/blob/v1.32.266/oscar64.md",wasmModule:"oscar64",version:"1.32.266",includePatterns:Le,linkPatterns:Ie},bataribasic:{id:"bataribasic",name:"batari Basic",kind:"compiler",arch:"6502",extensions:[".bb",".bas"],includeDirs:["/includes"],editorStyle:"bataribasic",helpURL:"help/bataribasic/manual.html",wasiFSZip:"bb-fs.zip",platforms:{default:{}},includePatterns:Le,linkPatterns:Ie},fastbasic:{id:"fastbasic",name:"FastBasic",kind:"compiler",arch:"6502",extensions:[".bas",".fb",".fbi"],editorStyle:"fastbasic",helpURL:"https://github.com/dmsc/fastbasic/blob/v4.4/manual.md",wasmModule:"fastbasic-int",version:"4.4",platforms:{default:{preloadFS:"65-atari8"}},includePatterns:Le,linkPatterns:Ie},cc2600:{id:"cc2600",name:"CC2600",kind:"compiler",arch:"6502",extensions:[".cc2600"],editorStyle:"text/x-csrc",wasmModule:"cc2600",version:"0.4.5",wasiFSZip:"cc2600-fs.zip",includeDirs:["/headers"],includePatterns:Le,linkPatterns:Ie},cc7800:{id:"cc7800",name:"CC7800",kind:"compiler",arch:"6502",extensions:[".cc7800",".c78"],editorStyle:"text/x-csrc",wasmModule:"cc7800",version:"0.2.28",wasiFSZip:"cc7800-fs.zip",includeDirs:["/headers"],includePatterns:Le,linkPatterns:Ie},basic:{id:"basic",name:"BASIC",kind:"interpreter",extensions:[".bas"],editorStyle:"basic"},wiz:{id:"wiz",name:"wiz",kind:"compiler",extensions:[".wiz"],includeDirs:["/common/$platform"],editorStyle:"text/x-wiz",helpURL:"https://github.com/wiz-lang/wiz/blob/master/readme.md#wiz",wasmModule:"wiz",version:"0.1.2",platforms:{default:{preloadFS:"wiz"}},includePatterns:ZP},ecs:{id:"ecs",name:"ECS",kind:"assembler",arch:"6502",extensions:[".ecs"],editorStyle:"ecs",platforms:{vcs:{preloadFS:"65-atari2600"},nes:{preloadFS:"65-nes"},c64:{preloadFS:"65-c64"}},includePatterns:[...Le,...CP]},inform6:{id:"inform6",name:"Inform 6",kind:"compiler",arch:"zmachine",extensions:[".inf"],editorStyle:"inform6",wasmModule:"inform",version:"6.34",platforms:{default:{preloadFS:"inform"}}},dialog:{id:"dialog",name:"Dialog",kind:"compiler",arch:"zmachine",extensions:[".dg"],editorStyle:"dialog",helpURL:"https://linusakesson.net/dialog/docs/",wasmModule:"dialogc",version:"1c/03-dev",wasiFSZip:"dialog-fs.zip",includeDirs:["/"],includePatterns:UP},verilator:{id:"verilator",name:"Verilator",kind:"hdl",arch:"verilog",extensions:[".v"],editorStyle:"verilog",helpURL:"https://verilator.org/guide/4.205/",wasmModule:"verilator_bin",version:"4.205",includePatterns:wo,linkPatterns:[]},yosys:{id:"yosys",name:"Yosys",kind:"hdl",arch:"verilog",extensions:[],wasmModule:"yosys",includePatterns:wo,linkPatterns:[]},silice:{id:"silice",name:"Silice",kind:"hdl",arch:"verilog",extensions:[".ice"],editorStyle:"verilog",helpURL:"https://github.com/sylefeb/Silice",wasmModule:"silice",version:"0.1",platforms:{default:{preloadFS:"Silice"}},includePatterns:wo,linkPatterns:[]},"llvm-mos":{id:"llvm-mos",name:"LLVM-MOS",kind:"compiler",arch:"6502",extensions:[".c",".cpp",".s",".S",".C"],editorStyle:"text/x-csrc",helpURL:"https://llvm-mos.org/wiki/Welcome",remote:!0,includePatterns:Le,linkPatterns:Ie,server:{version:"latest",platforms:["atari8","c64","nes","pce","vcs"],binpath:"llvm-mos/bin",command:"mos-clang",args:["-Os","-g","-D","__8BITWORKSHOP__","-o","$OUTFILE","$INFILES"]}},remote:{id:"remote",name:"Remote build",kind:"remote",extensions:[],remote:!0}};function Hi(i){return yo[i.replace(/^remote:/,"")]}function zg(i){let e=[];for(let t in yo){let r=yo[t];for(let n of r.extensions)if(n&&i.endsWith(n)){e.push({meta:r,len:n.length});break}}return e.sort((t,r)=>r.len-t.len).map(t=>t.meta)}function AP(i,e){let t=Hi(i);if(t&&t.platforms){if(e){let n=t.platforms[e];if(n&&n.preloadFS)return n.preloadFS;let s=Ni(e);if(s&&s!==e){let o=t.platforms[s];if(o&&o.preloadFS)return o.preloadFS}}let r=t.platforms.default;if(r&&r.preloadFS)return r.preloadFS}}function sf(i){let e=Hi(i);return e&&e.skeleton?e.skeleton:i.replace(/^remote:/,"")}function vl(i,e){let t=i&&Hi(i);return t&&t.includePatterns?t.includePatterns:e&&e.startsWith("verilog")?wo:Le}function wl(i,e){let t=i&&Hi(i);return t&&t.linkPatterns?t.linkPatterns:e&&e.startsWith("verilog")?[]:Ie}function yl(i,e){e=e&&Ni(e);let t=i&&Hi(i),r=t&&t.includeDirs||[];return r=r.map(n=>n.replace("$platform",e)),r}function $l(i,e){var t=AP(i,e);if(t)return t;let r=i&&Hi(i);return r&&r.wasiFSZip?"wasi:"+r.wasiFSZip:void 0}function of(i,e){let t=[];for(let r of e||[]){let n=r instanceof RegExp?{re:r}:r,s;for(n.re.lastIndex=0;s=n.re.exec(i);){let o=s[n.group!=null?n.group:s.length-1];o&&t.push(n.suffix?o+n.suffix:o)}}return t}var Yg=0,Mg="",Lg=0;function Wg(i,e){try{if(Yg>=10)return;let s=Date.now();if(i===Mg&&s-Lg<1e4)return;Yg++,Mg=i,Lg=s;var t={msg:(i+"").substring(0,300),stack:(e&&e.stack?e.stack+"":"").substring(0,1e3),url:window.location.href},r=Object.keys(t).map(o=>o+"="+encodeURIComponent(t[o])).join("&"),n=new Image;n.src="/err.gif?"+r}catch(s){}}function We(i){i?(Ri(0),$("#pleaseWaitModal").modal("show")):(Ri(1),$("#pleaseWaitModal").modal("hide"))}function Ri(i){$("#pleaseWaitProgressBar").css("width",i*100+"%").show()}function Qe(i){We(!1),bootbox.alert({title:' Alert',message:hs.sanitize(i)})}function Pt(i){We(!1),bootbox.alert(hs.sanitize(i))}function Vg(i){throw Qe(i),new Error(i)}var lf=[],Ig=[];(()=>{let i="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e>1;if(i=Ig[r])e=r+1;else return!0;if(e==t)return!1}}function jg(i){return i>=127462&&i<=127487}var qg=8205;function Fg(i,e,t=!0,r=!0){return(t?Bg:zP)(i,e,r)}function Bg(i,e,t){if(e==i.length)return e;e&&Gg(i.charCodeAt(e))&&Ng(i.charCodeAt(e-1))&&e--;let r=af(i,e);for(e+=Dg(r);e=0&&jg(af(i,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function zP(i,e,t){for(;e>1;){let r=Bg(i,e-2,t);if(r=56320&&i<57344}function Ng(i){return i>=55296&&i<56320}function Dg(i){return i<65536?1:2}var Pe=class i{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,r){[e,t]=ds(this,e,t);let n=[];return this.decompose(0,e,n,2),r.length&&r.decompose(0,r.length,n,3),this.decompose(t,this.length,n,1),Os.from(n,this.length-(t-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=ds(this,e,t);let r=[];return this.decompose(e,t,r,0),Os.from(r,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),n=new xn(this),s=new xn(e);for(let o=t,a=t;;){if(n.next(o),s.next(o),o=0,n.lineBreak!=s.lineBreak||n.done!=s.done||n.value!=s.value)return!1;if(a+=n.value.length,n.done||a>=r)return!0}}iter(e=1){return new xn(this,e)}iterRange(e,t=this.length){return new _l(this,e,t)}iterLines(e,t){let r;if(e==null)r=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;r=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Rl(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?i.empty:e.length<=32?new Jt(e):Os.from(Jt.split(e,[]))}},Jt=class i extends Pe{constructor(e,t=YP(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,r,n){for(let s=0;;s++){let o=this.text[s],a=n+o.length;if((t?r:a)>=e)return new hf(n,a,r,o);n=a+1,r++}}decompose(e,t,r,n){let s=e<=0&&t>=this.length?this:new i(Hg(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let o=r.pop(),a=Xl(s.text,o.text.slice(),0,s.length);if(a.length<=32)r.push(new i(a,o.length+s.length));else{let l=a.length>>1;r.push(new i(a.slice(0,l)),new i(a.slice(l)))}}else r.push(s)}replace(e,t,r){if(!(r instanceof i))return super.replace(e,t,r);[e,t]=ds(this,e,t);let n=Xl(this.text,Xl(r.text,Hg(this.text,0,e)),t),s=this.length+r.length-(t-e);return n.length<=32?new i(n,s):Os.from(i.split(n,[]),s)}sliceString(e,t=this.length,r=` `){[e,t]=ds(this,e,t);let n="";for(let s=0,o=0;s<=t&&oe&&o&&(n+=r),es&&(n+=a.slice(Math.max(0,e-s),t-s)),s=l+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let r=[],n=-1;for(let s of e)r.push(s),n+=s.length+1,r.length==32&&(t.push(new i(r,n)),r=[],n=-1);return n>-1&&t.push(new i(r,n)),t}},Os=class i extends Pe{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,t,r,n){for(let s=0;;s++){let o=this.children[s],a=n+o.length,l=r+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,r,n);n=a+1,r=l+1}}decompose(e,t,r,n){for(let s=0,o=0;o<=t&&s=o){let c=n&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!c?r.push(a):a.decompose(e-o,t-o,r,c)}o=l+1}}replace(e,t,r){if([e,t]=ds(this,e,t),r.lines=s&&t<=a){let l=o.replace(e-s,t-s,r),c=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let h=this.children.slice();return h[n]=l,new i(h,this.length-(t-e)+r.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,t,r)}sliceString(e,t=this.length,r=` @@ -174,4 +174,4 @@ localforage/dist/localforage.js: dompurify/dist/purify.cjs.js: (*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE *) */ -//# sourceMappingURL=chunk-7S7IJ5G7.js.map +//# sourceMappingURL=chunk-DKFNMYE3.js.map diff --git a/gen/chunk-7S7IJ5G7.js.map b/gen/chunk-DKFNMYE3.js.map similarity index 100% rename from gen/chunk-7S7IJ5G7.js.map rename to gen/chunk-DKFNMYE3.js.map diff --git a/gen/chunk-SJEDTBYQ.js b/gen/chunk-T4EX7VQU.js similarity index 96% rename from gen/chunk-SJEDTBYQ.js rename to gen/chunk-T4EX7VQU.js index 0efe6a5f..a7be5636 100644 --- a/gen/chunk-SJEDTBYQ.js +++ b/gen/chunk-T4EX7VQU.js @@ -1,2 +1,2 @@ -import{M as b,N as w}from"./chunk-TYDI7JZQ.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 o(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 n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,u=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(t,r,c){var a=n.URL||n.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):o(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(o(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(n.HTMLElement)||n.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=n.URL||n.webkitURL,f=k.createObjectURL(t);a?a.location=f:location.href=f,a=null,setTimeout(function(){k.revokeObjectURL(f)},4e4)}});n.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()},o=!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 o=Math.floor(e/this.checkpointInterval),i=o0&&this.platform.advanceFrameClock&&(o=this.platform.advanceFrameClock(null,o)),this.lastSeekFrame=e,this.lastSeekStep=o,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-Q322SGXS.js");case"arm32":return import("./arm32-WOVCQM6N.js");case"astrocade":return import("./astrocade-SQ7A55O6.js");case"atari7800":return import("./atari7800-CSLPSQEZ.js");case"atari8":return import("./atari8-PRPHIOVV.js");case"basic":return import("./basic-7UYJ5DHM.js");case"c64":return import("./c64-DHNSUHPB.js");case"channelf":return import("./channelf-M23PWP7U.js");case"coleco":return import("./coleco-NBH5TXI7.js");case"cpc":return import("./cpc-UCFM4EPO.js");case"devel":return import("./devel-GISBJ47I.js");case"exidy":return import("./exidy-TFFQWBRJ.js");case"galaxian":return import("./galaxian-NTXFYBJU.js");case"gb":return import("./gb-5EE234NW.js");case"gameboy":return import("./gb-5EE234NW.js");case"kim1":return import("./kim1-467SJ56A.js");case"mcr":return import("./mcr-NJXZZ3YC.js");case"msx":return import("./msx-CUESC36T.js");case"mw8080bw":return import("./mw8080bw-WYL2RS4B.js");case"nes":return import("./nes-T6YRZMMC.js");case"pacman":return import("./pacman-NFKFJGPB.js");case"pce":return import("./pce-4ZNBAVYV.js");case"sms":return import("./sms-GWQHIYMY.js");case"sound_konami":return import("./sound_konami-6JVGIUBU.js");case"sound_williams":return import("./sound_williams-6YEWOA24.js");case"vcs":return import("./vcs-FV4TDTGD.js");case"vector":return import("./vector-JISXGQCY.js");case"vectrex":return import("./vectrex-C5EUCWF4.js");case"verilog":return import("./verilog-YO7TRYS6.js");case"vic20":return import("./vic20-GZYB2IIZ.js");case"vicdual":return import("./vicdual-VLOJTEO2.js");case"williams":return import("./williams-UBH7O3LW.js");case"x86":return import("./x86-44W4HN3H.js");case"zmachine":return import("./zmachine-XSJMZVWK.js");case"zx":return import("./zx-UCLLIIF7.js");default:throw new Error(`Platform not recognized: '${l}'`)}}export{g as a,R as b,y as c}; -//# sourceMappingURL=chunk-SJEDTBYQ.js.map +import{M as b,N as w}from"./chunk-TYDI7JZQ.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 o(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 n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,u=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(t,r,c){var a=n.URL||n.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):o(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(o(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(n.HTMLElement)||n.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=n.URL||n.webkitURL,f=k.createObjectURL(t);a?a.location=f:location.href=f,a=null,setTimeout(function(){k.revokeObjectURL(f)},4e4)}});n.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()},o=!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 o=Math.floor(e/this.checkpointInterval),i=o0&&this.platform.advanceFrameClock&&(o=this.platform.advanceFrameClock(null,o)),this.lastSeekFrame=e,this.lastSeekStep=o,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-Q322SGXS.js");case"arm32":return import("./arm32-WOVCQM6N.js");case"astrocade":return import("./astrocade-SQ7A55O6.js");case"atari7800":return import("./atari7800-CSLPSQEZ.js");case"atari8":return import("./atari8-PRPHIOVV.js");case"basic":return import("./basic-NY7ZFQKT.js");case"c64":return import("./c64-DHNSUHPB.js");case"channelf":return import("./channelf-M23PWP7U.js");case"coleco":return import("./coleco-NBH5TXI7.js");case"cpc":return import("./cpc-UCFM4EPO.js");case"devel":return import("./devel-VJ2ENVNQ.js");case"exidy":return import("./exidy-TFFQWBRJ.js");case"galaxian":return import("./galaxian-NTXFYBJU.js");case"gb":return import("./gb-5EE234NW.js");case"gameboy":return import("./gb-5EE234NW.js");case"kim1":return import("./kim1-467SJ56A.js");case"mcr":return import("./mcr-NJXZZ3YC.js");case"msx":return import("./msx-CUESC36T.js");case"mw8080bw":return import("./mw8080bw-WYL2RS4B.js");case"nes":return import("./nes-T6YRZMMC.js");case"pacman":return import("./pacman-NFKFJGPB.js");case"pce":return import("./pce-4ZNBAVYV.js");case"sms":return import("./sms-GWQHIYMY.js");case"sound_konami":return import("./sound_konami-6JVGIUBU.js");case"sound_williams":return import("./sound_williams-6YEWOA24.js");case"vcs":return import("./vcs-FV4TDTGD.js");case"vector":return import("./vector-JISXGQCY.js");case"vectrex":return import("./vectrex-C5EUCWF4.js");case"verilog":return import("./verilog-WNCR2OMA.js");case"vic20":return import("./vic20-GZYB2IIZ.js");case"vicdual":return import("./vicdual-VLOJTEO2.js");case"williams":return import("./williams-UBH7O3LW.js");case"x86":return import("./x86-44W4HN3H.js");case"zmachine":return import("./zmachine-XSJMZVWK.js");case"zx":return import("./zx-UCLLIIF7.js");default:throw new Error(`Platform not recognized: '${l}'`)}}export{g as a,R as b,y as c}; +//# sourceMappingURL=chunk-T4EX7VQU.js.map diff --git a/gen/chunk-SJEDTBYQ.js.map b/gen/chunk-T4EX7VQU.js.map similarity index 100% rename from gen/chunk-SJEDTBYQ.js.map rename to gen/chunk-T4EX7VQU.js.map diff --git a/gen/chunk-H4446SY7.js b/gen/chunk-UG4IOEUD.js similarity index 63% rename from gen/chunk-H4446SY7.js rename to gen/chunk-UG4IOEUD.js index d1698af7..9587b151 100644 --- a/gen/chunk-H4446SY7.js +++ b/gen/chunk-UG4IOEUD.js @@ -1,9 +1,9 @@ -import{a as Qi}from"./chunk-LNOKARBD.js";import{d as ii}from"./chunk-KT7KMEQC.js";var si=ii((ai,yr)=>{(function(c,h){"use strict";typeof yr=="object"&&typeof yr.exports=="object"?yr.exports=c.document?h(c,!0):function(m){if(!m.document)throw new Error("jQuery requires a window with a document");return h(m)}:h(c)})(typeof window!="undefined"?window:ai,function(c,h){"use strict";var m=[],x=Object.getPrototypeOf,_=m.slice,H=m.flat?function(e){return m.flat.call(e)}:function(e){return m.concat.apply([],e)},Z=m.push,oe=m.indexOf,ce={},Ee=ce.toString,Ae=ce.hasOwnProperty,We=Ae.toString,_e=We.call(Object),W={},z=function(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"},Ze=function(t){return t!=null&&t===t.window},q=c.document,gt={type:!0,src:!0,nonce:!0,noModule:!0};function tn(e,t,n){n=n||q;var r,o,a=n.createElement("script");if(a.text=e,t)for(r in gt)o=t[r]||t.getAttribute&&t.getAttribute(r),o&&a.setAttribute(r,o);n.head.appendChild(a).parentNode.removeChild(a)}function at(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?ce[Ee.call(e)]||"object":typeof e}var J="3.7.1",Y=/HTML$/i,i=function(e,t){return new i.fn.init(e,t)};i.fn=i.prototype={jquery:J,constructor:i,length:0,toArray:function(){return _.call(this)},get:function(e){return e==null?_.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=i.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return i.each(this,e)},map:function(e){return this.pushStack(i.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(_.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n0&&t-1 in e}function ne(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var It=m.pop,qt=m.sort,mt=m.splice,G="[\\x20\\t\\r\\n\\f]",Xe=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g");i.contains=function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))};var Pt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Sn(e,t){return t?e==="\0"?"\uFFFD":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}i.escapeSelector=function(e){return(e+"").replace(Pt,Sn)};var Re=q,yt=Z;(function(){var e,t,n,r,o,a=yt,s,d,l,g,S,A=i.expando,b=0,D=0,X=dr(),se=dr(),ee=dr(),Ue=dr(),Oe=function(f,p){return f===p&&(o=!0),0},Ot="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Lt="(?:\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ae="\\["+G+"*("+Lt+")(?:"+G+"*([*^$|!~]?=)"+G+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Lt+"))|)"+G+"*\\]",gn=":("+Lt+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ae+")*)|.*)\\)|)",le=new RegExp(G+"+","g"),Ce=new RegExp("^"+G+"*,"+G+"*"),Zn=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),Nr=new RegExp(G+"|>"),kt=new RegExp(gn),Jn=new RegExp("^"+Lt+"$"),Mt={ID:new RegExp("^#("+Lt+")"),CLASS:new RegExp("^\\.("+Lt+")"),TAG:new RegExp("^("+Lt+"|[*])"),ATTR:new RegExp("^"+ae),PSEUDO:new RegExp("^"+gn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+Ot+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},Xt=/^(?:input|select|textarea|button)$/i,Qt=/^h\d$/i,pt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Or=/[+~]/,Ft=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),Ut=function(f,p){var v="0x"+f.slice(1)-65536;return p||(v<0?String.fromCharCode(v+65536):String.fromCharCode(v>>10|55296,v&1023|56320))},Wi=function(){Zt()},Gi=hr(function(f){return f.disabled===!0&&ne(f,"fieldset")},{dir:"parentNode",next:"legend"});function $i(){try{return s.activeElement}catch(f){}}try{a.apply(m=_.call(Re.childNodes),Re.childNodes),m[Re.childNodes.length].nodeType}catch(f){a={apply:function(p,v){yt.apply(p,_.call(v))},call:function(p){yt.apply(p,_.call(arguments,1))}}}function ye(f,p,v,T){var E,O,M,F,R,re,K,Q=p&&p.ownerDocument,ie=p?p.nodeType:9;if(v=v||[],typeof f!="string"||!f||ie!==1&&ie!==9&&ie!==11)return v;if(!T&&(Zt(p),p=p||s,l)){if(ie!==11&&(R=pt.exec(f)))if(E=R[1]){if(ie===9)if(M=p.getElementById(E)){if(M.id===E)return a.call(v,M),v}else return v;else if(Q&&(M=Q.getElementById(E))&&ye.contains(p,M)&&M.id===E)return a.call(v,M),v}else{if(R[2])return a.apply(v,p.getElementsByTagName(f)),v;if((E=R[3])&&p.getElementsByClassName)return a.apply(v,p.getElementsByClassName(E)),v}if(!Ue[f+" "]&&(!g||!g.test(f))){if(K=f,Q=p,ie===1&&(Nr.test(f)||Zn.test(f))){for(Q=Or.test(f)&&Lr(p.parentNode)||p,(Q!=p||!W.scope)&&((F=p.getAttribute("id"))?F=i.escapeSelector(F):p.setAttribute("id",F=A)),re=er(f),O=re.length;O--;)re[O]=(F?"#"+F:":scope")+" "+pr(re[O]);K=re.join(",")}try{return a.apply(v,Q.querySelectorAll(K)),v}catch(B){Ue(f,!0)}finally{F===A&&p.removeAttribute("id")}}}return ri(f.replace(Xe,"$1"),p,v,T)}function dr(){var f=[];function p(v,T){return f.push(v+" ")>t.cacheLength&&delete p[f.shift()],p[v+" "]=T}return p}function xt(f){return f[A]=!0,f}function Nn(f){var p=s.createElement("fieldset");try{return!!f(p)}catch(v){return!1}finally{p.parentNode&&p.parentNode.removeChild(p),p=null}}function Yi(f){return function(p){return ne(p,"input")&&p.type===f}}function Ki(f){return function(p){return(ne(p,"input")||ne(p,"button"))&&p.type===f}}function ti(f){return function(p){return"form"in p?p.parentNode&&p.disabled===!1?"label"in p?"label"in p.parentNode?p.parentNode.disabled===f:p.disabled===f:p.isDisabled===f||p.isDisabled!==!f&&Gi(p)===f:p.disabled===f:"label"in p?p.disabled===f:!1}}function mn(f){return xt(function(p){return p=+p,xt(function(v,T){for(var E,O=f([],v.length,p),M=O.length;M--;)v[E=O[M]]&&(v[E]=!(T[E]=v[E]))})})}function Lr(f){return f&&typeof f.getElementsByTagName!="undefined"&&f}function Zt(f){var p,v=f?f.ownerDocument||f:Re;return v==s||v.nodeType!==9||!v.documentElement||(s=v,d=s.documentElement,l=!i.isXMLDoc(s),S=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&Re!=s&&(p=s.defaultView)&&p.top!==p&&p.addEventListener("unload",Wi),W.getById=Nn(function(T){return d.appendChild(T).id=i.expando,!s.getElementsByName||!s.getElementsByName(i.expando).length}),W.disconnectedMatch=Nn(function(T){return S.call(T,"*")}),W.scope=Nn(function(){return s.querySelectorAll(":scope")}),W.cssHas=Nn(function(){try{return s.querySelector(":has(*,:jqfake)"),!1}catch(T){return!0}}),W.getById?(t.filter.ID=function(T){var E=T.replace(Ft,Ut);return function(O){return O.getAttribute("id")===E}},t.find.ID=function(T,E){if(typeof E.getElementById!="undefined"&&l){var O=E.getElementById(T);return O?[O]:[]}}):(t.filter.ID=function(T){var E=T.replace(Ft,Ut);return function(O){var M=typeof O.getAttributeNode!="undefined"&&O.getAttributeNode("id");return M&&M.value===E}},t.find.ID=function(T,E){if(typeof E.getElementById!="undefined"&&l){var O,M,F,R=E.getElementById(T);if(R){if(O=R.getAttributeNode("id"),O&&O.value===T)return[R];for(F=E.getElementsByName(T),M=0;R=F[M++];)if(O=R.getAttributeNode("id"),O&&O.value===T)return[R]}return[]}}),t.find.TAG=function(T,E){return typeof E.getElementsByTagName!="undefined"?E.getElementsByTagName(T):E.querySelectorAll(T)},t.find.CLASS=function(T,E){if(typeof E.getElementsByClassName!="undefined"&&l)return E.getElementsByClassName(T)},g=[],Nn(function(T){var E;d.appendChild(T).innerHTML="",T.querySelectorAll("[selected]").length||g.push("\\["+G+"*(?:value|"+Ot+")"),T.querySelectorAll("[id~="+A+"-]").length||g.push("~="),T.querySelectorAll("a#"+A+"+*").length||g.push(".#.+[+~]"),T.querySelectorAll(":checked").length||g.push(":checked"),E=s.createElement("input"),E.setAttribute("type","hidden"),T.appendChild(E).setAttribute("name","D"),d.appendChild(T).disabled=!0,T.querySelectorAll(":disabled").length!==2&&g.push(":enabled",":disabled"),E=s.createElement("input"),E.setAttribute("name",""),T.appendChild(E),T.querySelectorAll("[name='']").length||g.push("\\["+G+"*name"+G+"*="+G+`*(?:''|"")`)}),W.cssHas||g.push(":has"),g=g.length&&new RegExp(g.join("|")),Oe=function(T,E){if(T===E)return o=!0,0;var O=!T.compareDocumentPosition-!E.compareDocumentPosition;return O||(O=(T.ownerDocument||T)==(E.ownerDocument||E)?T.compareDocumentPosition(E):1,O&1||!W.sortDetached&&E.compareDocumentPosition(T)===O?T===s||T.ownerDocument==Re&&ye.contains(Re,T)?-1:E===s||E.ownerDocument==Re&&ye.contains(Re,E)?1:r?oe.call(r,T)-oe.call(r,E):0:O&4?-1:1)}),s}ye.matches=function(f,p){return ye(f,null,null,p)},ye.matchesSelector=function(f,p){if(Zt(f),l&&!Ue[p+" "]&&(!g||!g.test(p)))try{var v=S.call(f,p);if(v||W.disconnectedMatch||f.document&&f.document.nodeType!==11)return v}catch(T){Ue(p,!0)}return ye(p,s,null,[f]).length>0},ye.contains=function(f,p){return(f.ownerDocument||f)!=s&&Zt(f),i.contains(f,p)},ye.attr=function(f,p){(f.ownerDocument||f)!=s&&Zt(f);var v=t.attrHandle[p.toLowerCase()],T=v&&Ae.call(t.attrHandle,p.toLowerCase())?v(f,p,!l):void 0;return T!==void 0?T:f.getAttribute(p)},ye.error=function(f){throw new Error("Syntax error, unrecognized expression: "+f)},i.uniqueSort=function(f){var p,v=[],T=0,E=0;if(o=!W.sortStable,r=!W.sortStable&&_.call(f,0),qt.call(f,Oe),o){for(;p=f[E++];)p===f[E]&&(T=v.push(E));for(;T--;)mt.call(f,v[T],1)}return r=null,f},i.fn.uniqueSort=function(){return this.pushStack(i.uniqueSort(_.apply(this)))},t=i.expr={cacheLength:50,createPseudo:xt,match:Mt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(f){return f[1]=f[1].replace(Ft,Ut),f[3]=(f[3]||f[4]||f[5]||"").replace(Ft,Ut),f[2]==="~="&&(f[3]=" "+f[3]+" "),f.slice(0,4)},CHILD:function(f){return f[1]=f[1].toLowerCase(),f[1].slice(0,3)==="nth"?(f[3]||ye.error(f[0]),f[4]=+(f[4]?f[5]+(f[6]||1):2*(f[3]==="even"||f[3]==="odd")),f[5]=+(f[7]+f[8]||f[3]==="odd")):f[3]&&ye.error(f[0]),f},PSEUDO:function(f){var p,v=!f[6]&&f[2];return Mt.CHILD.test(f[0])?null:(f[3]?f[2]=f[4]||f[5]||"":v&&kt.test(v)&&(p=er(v,!0))&&(p=v.indexOf(")",v.length-p)-v.length)&&(f[0]=f[0].slice(0,p),f[2]=v.slice(0,p)),f.slice(0,3))}},filter:{TAG:function(f){var p=f.replace(Ft,Ut).toLowerCase();return f==="*"?function(){return!0}:function(v){return ne(v,p)}},CLASS:function(f){var p=X[f+" "];return p||(p=new RegExp("(^|"+G+")"+f+"("+G+"|$)"))&&X(f,function(v){return p.test(typeof v.className=="string"&&v.className||typeof v.getAttribute!="undefined"&&v.getAttribute("class")||"")})},ATTR:function(f,p,v){return function(T){var E=ye.attr(T,f);return E==null?p==="!=":p?(E+="",p==="="?E===v:p==="!="?E!==v:p==="^="?v&&E.indexOf(v)===0:p==="*="?v&&E.indexOf(v)>-1:p==="$="?v&&E.slice(-v.length)===v:p==="~="?(" "+E.replace(le," ")+" ").indexOf(v)>-1:p==="|="?E===v||E.slice(0,v.length+1)===v+"-":!1):!0}},CHILD:function(f,p,v,T,E){var O=f.slice(0,3)!=="nth",M=f.slice(-4)!=="last",F=p==="of-type";return T===1&&E===0?function(R){return!!R.parentNode}:function(R,re,K){var Q,ie,B,Se,Qe,Ye=O!==M?"nextSibling":"previousSibling",ht=R.parentNode,Rt=F&&R.nodeName.toLowerCase(),On=!K&&!F,Ve=!1;if(ht){if(O){for(;Ye;){for(B=R;B=B[Ye];)if(F?ne(B,Rt):B.nodeType===1)return!1;Qe=Ye=f==="only"&&!Qe&&"nextSibling"}return!0}if(Qe=[M?ht.firstChild:ht.lastChild],M&&On){for(ie=ht[A]||(ht[A]={}),Q=ie[f]||[],Se=Q[0]===b&&Q[1],Ve=Se&&Q[2],B=Se&&ht.childNodes[Se];B=++Se&&B&&B[Ye]||(Ve=Se=0)||Qe.pop();)if(B.nodeType===1&&++Ve&&B===R){ie[f]=[b,Se,Ve];break}}else if(On&&(ie=R[A]||(R[A]={}),Q=ie[f]||[],Se=Q[0]===b&&Q[1],Ve=Se),Ve===!1)for(;(B=++Se&&B&&B[Ye]||(Ve=Se=0)||Qe.pop())&&!((F?ne(B,Rt):B.nodeType===1)&&++Ve&&(On&&(ie=B[A]||(B[A]={}),ie[f]=[b,Ve]),B===R)););return Ve-=E,Ve===T||Ve%T===0&&Ve/T>=0}}},PSEUDO:function(f,p){var v,T=t.pseudos[f]||t.setFilters[f.toLowerCase()]||ye.error("unsupported pseudo: "+f);return T[A]?T(p):T.length>1?(v=[f,f,"",p],t.setFilters.hasOwnProperty(f.toLowerCase())?xt(function(E,O){for(var M,F=T(E,p),R=F.length;R--;)M=oe.call(E,F[R]),E[M]=!(O[M]=F[R])}):function(E){return T(E,0,v)}):T}},pseudos:{not:xt(function(f){var p=[],v=[],T=Ir(f.replace(Xe,"$1"));return T[A]?xt(function(E,O,M,F){for(var R,re=T(E,null,F,[]),K=E.length;K--;)(R=re[K])&&(E[K]=!(O[K]=R))}):function(E,O,M){return p[0]=E,T(p,null,M,v),p[0]=null,!v.pop()}}),has:xt(function(f){return function(p){return ye(f,p).length>0}}),contains:xt(function(f){return f=f.replace(Ft,Ut),function(p){return(p.textContent||i.text(p)).indexOf(f)>-1}}),lang:xt(function(f){return Jn.test(f||"")||ye.error("unsupported lang: "+f),f=f.replace(Ft,Ut).toLowerCase(),function(p){var v;do if(v=l?p.lang:p.getAttribute("xml:lang")||p.getAttribute("lang"))return v=v.toLowerCase(),v===f||v.indexOf(f+"-")===0;while((p=p.parentNode)&&p.nodeType===1);return!1}}),target:function(f){var p=c.location&&c.location.hash;return p&&p.slice(1)===f.id},root:function(f){return f===d},focus:function(f){return f===$i()&&s.hasFocus()&&!!(f.type||f.href||~f.tabIndex)},enabled:ti(!1),disabled:ti(!0),checked:function(f){return ne(f,"input")&&!!f.checked||ne(f,"option")&&!!f.selected},selected:function(f){return f.parentNode&&f.parentNode.selectedIndex,f.selected===!0},empty:function(f){for(f=f.firstChild;f;f=f.nextSibling)if(f.nodeType<6)return!1;return!0},parent:function(f){return!t.pseudos.empty(f)},header:function(f){return Qt.test(f.nodeName)},input:function(f){return Xt.test(f.nodeName)},button:function(f){return ne(f,"input")&&f.type==="button"||ne(f,"button")},text:function(f){var p;return ne(f,"input")&&f.type==="text"&&((p=f.getAttribute("type"))==null||p.toLowerCase()==="text")},first:mn(function(){return[0]}),last:mn(function(f,p){return[p-1]}),eq:mn(function(f,p,v){return[v<0?v+p:v]}),even:mn(function(f,p){for(var v=0;vp?T=p:T=v;--T>=0;)f.push(T);return f}),gt:mn(function(f,p,v){for(var T=v<0?v+p:v;++T1?function(p,v,T){for(var E=f.length;E--;)if(!f[E](p,v,T))return!1;return!0}:f[0]}function Vi(f,p,v){for(var T=0,E=p.length;T-1&&(M[K]=!(F[K]=ie))}}else B=gr(B===F?B.splice(Ye,B.length):B),E?E(null,F,B,re):a.apply(F,B)})}function Rr(f){for(var p,v,T,E=f.length,O=t.relative[f[0].type],M=O||t.relative[" "],F=O?1:0,R=hr(function(Q){return Q===p},M,!0),re=hr(function(Q){return oe.call(p,Q)>-1},M,!0),K=[function(Q,ie,B){var Se=!O&&(B||ie!=n)||((p=ie).nodeType?R(Q,ie,B):re(Q,ie,B));return p=null,Se}];F1&&kr(K),F>1&&pr(f.slice(0,F-1).concat({value:f[F-2].type===" "?"*":""})).replace(Xe,"$1"),v,F0,T=f.length>0,E=function(O,M,F,R,re){var K,Q,ie,B=0,Se="0",Qe=O&&[],Ye=[],ht=n,Rt=O||T&&t.find.TAG("*",re),On=b+=ht==null?1:Math.random()||.1,Ve=Rt.length;for(re&&(n=M==s||M||re);Se!==Ve&&(K=Rt[Se])!=null;Se++){if(T&&K){for(Q=0,!M&&K.ownerDocument!=s&&(Zt(K),F=!l);ie=f[Q++];)if(ie(K,M||s,F)){a.call(R,K);break}re&&(b=On)}v&&((K=!ie&&K)&&B--,O&&Qe.push(K))}if(B+=Se,v&&Se!==B){for(Q=0;ie=p[Q++];)ie(Qe,Ye,M,F);if(O){if(B>0)for(;Se--;)Qe[Se]||Ye[Se]||(Ye[Se]=It.call(R));Ye=gr(Ye)}a.apply(R,Ye),re&&!O&&Ye.length>0&&B+p.length>1&&i.uniqueSort(R)}return re&&(b=On,n=ht),Qe};return v?xt(E):E}function Ir(f,p){var v,T=[],E=[],O=ee[f+" "];if(!O){for(p||(p=er(f)),v=p.length;v--;)O=Rr(p[v]),O[A]?T.push(O):E.push(O);O=ee(f,Xi(E,T)),O.selector=f}return O}function ri(f,p,v,T){var E,O,M,F,R,re=typeof f=="function"&&f,K=!T&&er(f=re.selector||f);if(v=v||[],K.length===1){if(O=K[0]=K[0].slice(0),O.length>2&&(M=O[0]).type==="ID"&&p.nodeType===9&&l&&t.relative[O[1].type]){if(p=(t.find.ID(M.matches[0].replace(Ft,Ut),p)||[])[0],p)re&&(p=p.parentNode);else return v;f=f.slice(O.shift().value.length)}for(E=Mt.needsContext.test(f)?0:O.length;E--&&(M=O[E],!t.relative[F=M.type]);)if((R=t.find[F])&&(T=R(M.matches[0].replace(Ft,Ut),Or.test(O[0].type)&&Lr(p.parentNode)||p))){if(O.splice(E,1),f=T.length&&pr(O),!f)return a.apply(v,T),v;break}}return(re||Ir(f,K))(T,p,!l,v,!p||Or.test(f)&&Lr(p.parentNode)||p),v}W.sortStable=A.split("").sort(Oe).join("")===A,Zt(),W.sortDetached=Nn(function(f){return f.compareDocumentPosition(s.createElement("fieldset"))&1}),i.find=ye,i.expr[":"]=i.expr.pseudos,i.unique=i.uniqueSort,ye.compile=Ir,ye.select=ri,ye.setDocument=Zt,ye.tokenize=er,ye.escape=i.escapeSelector,ye.getText=i.text,ye.isXML=i.isXMLDoc,ye.selectors=i.expr,ye.support=i.support,ye.uniqueSort=i.uniqueSort})();var Je=function(e,t,n){for(var r=[],o=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(o&&i(e).is(n))break;r.push(e)}return r},Bt=function(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},Wt=i.expr.match.needsContext,xn=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ge(e,t,n){return z(t)?i.grep(e,function(r,o){return!!t.call(r,o,r)!==n}):t.nodeType?i.grep(e,function(r){return r===t!==n}):typeof t!="string"?i.grep(e,function(r){return oe.call(t,r)>-1!==n}):i.filter(t,e,n)}i.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?i.find.matchesSelector(r,e)?[r]:[]:i.find.matches(e,i.grep(t,function(o){return o.nodeType===1}))},i.fn.extend({find:function(e){var t,n,r=this.length,o=this;if(typeof e!="string")return this.pushStack(i(e).filter(function(){for(t=0;t1?i.uniqueSort(n):n},filter:function(e){return this.pushStack(ge(this,e||[],!1))},not:function(e){return this.pushStack(ge(this,e||[],!0))},is:function(e){return!!ge(this,typeof e=="string"&&Wt.test(e)?i(e):e||[],!1).length}});var At,Gt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,nn=i.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||At,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?r=[null,e,null]:r=Gt.exec(e),r&&(r[1]||!t))if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:q,!0)),xn.test(r[1])&&i.isPlainObject(t))for(r in t)z(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}else return o=q.getElementById(r[2]),o&&(this[0]=o,this.length=1),this;else return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(z(e))return n.ready!==void 0?n.ready(e):e(i)}return i.makeArray(e,this)};nn.prototype=i.fn,At=i(q);var In=/^(?:parents|prev(?:Until|All))/,rn={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(e){var t=i(e,this),n=t.length;return this.filter(function(){for(var r=0;r-1:n.nodeType===1&&i.find.matchesSelector(n,e))){a.push(n);break}}return this.pushStack(a.length>1?i.uniqueSort(a):a)},index:function(e){return e?typeof e=="string"?oe.call(i(e),this[0]):oe.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function vt(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}i.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return Je(e,"parentNode")},parentsUntil:function(e,t,n){return Je(e,"parentNode",n)},next:function(e){return vt(e,"nextSibling")},prev:function(e){return vt(e,"previousSibling")},nextAll:function(e){return Je(e,"nextSibling")},prevAll:function(e){return Je(e,"previousSibling")},nextUntil:function(e,t,n){return Je(e,"nextSibling",n)},prevUntil:function(e,t,n){return Je(e,"previousSibling",n)},siblings:function(e){return Bt((e.parentNode||{}).firstChild,e)},children:function(e){return Bt(e.firstChild)},contents:function(e){return e.contentDocument!=null&&x(e.contentDocument)?e.contentDocument:(ne(e,"template")&&(e=e.content||e),i.merge([],e.childNodes))}},function(e,t){i.fn[e]=function(n,r){var o=i.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(o=i.filter(r,o)),this.length>1&&(rn[e]||i.uniqueSort(o),In.test(e)&&o.reverse()),this.pushStack(o)}});var Ie=/[^\x20\t\r\n\f]+/g;function Pn(e){var t={};return i.each(e.match(Ie)||[],function(n,r){t[r]=!0}),t}i.Callbacks=function(e){e=typeof e=="string"?Pn(e):i.extend({},e);var t,n,r,o,a=[],s=[],d=-1,l=function(){for(o=o||e.once,r=t=!0;s.length;d=-1)for(n=s.shift();++d-1;)a.splice(b,1),b<=d&&d--}),this},has:function(S){return S?i.inArray(S,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],!n&&!t&&(a=n=""),this},locked:function(){return!!o},fireWith:function(S,A){return o||(A=A||[],A=[S,A.slice?A.slice():A],s.push(A),t||l()),this},fire:function(){return g.fireWith(this,arguments),this},fired:function(){return!!r}};return g};function st(e){return e}function pe(e){throw e}function ut(e,t,n,r){var o;try{e&&z(o=e.promise)?o.call(e).done(t).fail(n):e&&z(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(a){n.apply(void 0,[a])}}i.extend({Deferred:function(e){var t=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(a){return r.then(null,a)},pipe:function(){var a=arguments;return i.Deferred(function(s){i.each(t,function(d,l){var g=z(a[l[4]])&&a[l[4]];o[l[1]](function(){var S=g&&g.apply(this,arguments);S&&z(S.promise)?S.promise().progress(s.notify).done(s.resolve).fail(s.reject):s[l[0]+"With"](this,g?[S]:arguments)})}),a=null}).promise()},then:function(a,s,d){var l=0;function g(S,A,b,D){return function(){var X=this,se=arguments,ee=function(){var Oe,Ot;if(!(S=l&&(b!==pe&&(X=void 0,se=[Oe]),A.rejectWith(X,se))}};S?Ue():(i.Deferred.getErrorHook?Ue.error=i.Deferred.getErrorHook():i.Deferred.getStackHook&&(Ue.error=i.Deferred.getStackHook()),c.setTimeout(Ue))}}return i.Deferred(function(S){t[0][3].add(g(0,S,z(d)?d:st,S.notifyWith)),t[1][3].add(g(0,S,z(a)?a:st)),t[2][3].add(g(0,S,z(s)?s:pe))}).promise()},promise:function(a){return a!=null?i.extend(a,r):r}},o={};return i.each(t,function(a,s){var d=s[2],l=s[5];r[s[1]]=d.add,l&&d.add(function(){n=l},t[3-a][2].disable,t[3-a][3].disable,t[0][2].lock,t[0][3].lock),d.add(s[3].fire),o[s[0]]=function(){return o[s[0]+"With"](this===o?void 0:this,arguments),this},o[s[0]+"With"]=d.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=_.call(arguments),a=i.Deferred(),s=function(d){return function(l){r[d]=this,o[d]=arguments.length>1?_.call(arguments):l,--t||a.resolveWith(r,o)}};if(t<=1&&(ut(e,a.done(s(n)).resolve,a.reject,!t),a.state()==="pending"||z(o[n]&&o[n].then)))return a.then();for(;n--;)ut(o[n],s(n),a.reject);return a.promise()}});var ve=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(e,t){c.console&&c.console.warn&&e&&ve.test(e.name)&&c.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},i.readyException=function(e){c.setTimeout(function(){throw e})};var ft=i.Deferred();i.fn.ready=function(e){return ft.then(e).catch(function(t){i.readyException(t)}),this},i.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--i.readyWait:i.isReady)||(i.isReady=!0,!(e!==!0&&--i.readyWait>0)&&ft.resolveWith(q,[i]))}}),i.ready.then=ft.then;function me(){q.removeEventListener("DOMContentLoaded",me),c.removeEventListener("load",me),i.ready()}q.readyState==="complete"||q.readyState!=="loading"&&!q.documentElement.doScroll?c.setTimeout(i.ready):(q.addEventListener("DOMContentLoaded",me),c.addEventListener("load",me));var Le=function(e,t,n,r,o,a,s){var d=0,l=e.length,g=n==null;if(at(n)==="object"){o=!0;for(d in n)Le(e,t,d,n[d],!0,a,s)}else if(r!==void 0&&(o=!0,z(r)||(s=!0),g&&(s?(t.call(e,r),t=null):(g=t,t=function(S,A,b){return g.call(i(S),b)})),t))for(;d1,null,!0)},removeData:function(e){return this.each(function(){be.remove(this,e)})}}),i.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=k.get(e,t),n&&(!r||Array.isArray(n)?r=k.access(e,t,i.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=i.queue(e,t),r=n.length,o=n.shift(),a=i._queueHooks(e,t),s=function(){i.dequeue(e,t)};o==="inprogress"&&(o=n.shift(),r--),o&&(t==="fx"&&n.unshift("inprogress"),delete a.stop,o.call(e,s,a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return k.get(e,n)||k.access(e,n,{empty:i.Callbacks("once memory").add(function(){k.remove(e,[t+"queue",n])})})}}),i.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,jn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=q.createDocumentFragment(),t=e.appendChild(q.createElement("div")),n=q.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),W.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",W.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="",W.option=!!t.lastChild})();var Ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Ge.tbody=Ge.tfoot=Ge.colgroup=Ge.caption=Ge.thead,Ge.th=Ge.td,W.option||(Ge.optgroup=Ge.option=[1,""]);function je(e,t){var n;return typeof e.getElementsByTagName!="undefined"?n=e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!="undefined"?n=e.querySelectorAll(t||"*"):n=[],t===void 0||t&&ne(e,t)?i.merge([e],n):n}function Yt(e,t){for(var n=0,r=e.length;n-1){o&&o.push(a);continue}if(g=we(a),s=je(A.appendChild(a),"script"),g&&Yt(s),n)for(S=0;a=s[S++];)jn.test(a.type||"")&&n.push(a)}return A}var jt=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function Dt(){return!1}function zn(e,t,n,r,o,a){var s,d;if(typeof t=="object"){typeof n!="string"&&(r=r||n,n=void 0);for(d in t)zn(e,d,n,r,t[d],a);return e}if(r==null&&o==null?(o=n,r=n=void 0):o==null&&(typeof n=="string"?(o=r,r=void 0):(o=r,r=n,n=void 0)),o===!1)o=Dt;else if(!o)return e;return a===1&&(s=o,o=function(l){return i().off(l),s.apply(this,arguments)},o.guid=s.guid||(s.guid=i.guid++)),e.each(function(){i.event.add(this,t,o,r,n)})}i.event={global:{},add:function(e,t,n,r,o){var a,s,d,l,g,S,A,b,D,X,se,ee=k.get(e);if(wt(e))for(n.handler&&(a=n,n=a.handler,o=a.selector),o&&i.find.matchesSelector(fe,o),n.guid||(n.guid=i.guid++),(l=ee.events)||(l=ee.events=Object.create(null)),(s=ee.handle)||(s=ee.handle=function(Ue){return typeof i!="undefined"&&i.event.triggered!==Ue.type?i.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ie)||[""],g=t.length;g--;)d=jt.exec(t[g])||[],D=se=d[1],X=(d[2]||"").split(".").sort(),D&&(A=i.event.special[D]||{},D=(o?A.delegateType:A.bindType)||D,A=i.event.special[D]||{},S=i.extend({type:D,origType:se,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&i.expr.match.needsContext.test(o),namespace:X.join(".")},a),(b=l[D])||(b=l[D]=[],b.delegateCount=0,(!A.setup||A.setup.call(e,r,X,s)===!1)&&e.addEventListener&&e.addEventListener(D,s)),A.add&&(A.add.call(e,S),S.handler.guid||(S.handler.guid=n.guid)),o?b.splice(b.delegateCount++,0,S):b.push(S),i.event.global[D]=!0)},remove:function(e,t,n,r,o){var a,s,d,l,g,S,A,b,D,X,se,ee=k.hasData(e)&&k.get(e);if(!(!ee||!(l=ee.events))){for(t=(t||"").match(Ie)||[""],g=t.length;g--;){if(d=jt.exec(t[g])||[],D=se=d[1],X=(d[2]||"").split(".").sort(),!D){for(D in l)i.event.remove(e,D+t[g],n,r,!0);continue}for(A=i.event.special[D]||{},D=(r?A.delegateType:A.bindType)||D,b=l[D]||[],d=d[2]&&new RegExp("(^|\\.)"+X.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=b.length;a--;)S=b[a],(o||se===S.origType)&&(!n||n.guid===S.guid)&&(!d||d.test(S.namespace))&&(!r||r===S.selector||r==="**"&&S.selector)&&(b.splice(a,1),S.selector&&b.delegateCount--,A.remove&&A.remove.call(e,S));s&&!b.length&&((!A.teardown||A.teardown.call(e,X,ee.handle)===!1)&&i.removeEvent(e,D,ee.handle),delete l[D])}i.isEmptyObject(l)&&k.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,a,s,d=new Array(arguments.length),l=i.event.fix(e),g=(k.get(this,"events")||Object.create(null))[l.type]||[],S=i.event.special[l.type]||{};for(d[0]=l,t=1;t=1)){for(;g!==this;g=g.parentNode||this)if(g.nodeType===1&&!(e.type==="click"&&g.disabled===!0)){for(a=[],s={},n=0;n-1:i.find(o,this,null,[g]).length),s[o]&&a.push(r);a.length&&d.push({elem:g,handlers:a})}}return g=this,l\s*$/g;function or(e,t){return ne(e,"table")&&ne(t.nodeType!==11?t:t.firstChild,"tr")&&i(e).children("tbody")[0]||e}function un(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function br(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ar(e,t){var n,r,o,a,s,d,l;if(t.nodeType===1){if(k.hasData(e)&&(a=k.get(e),l=a.events,l)){k.remove(t,"handle events");for(o in l)for(n=0,r=l[o].length;n1&&typeof D=="string"&&!W.checkClone&&ir.test(D))return e.each(function(se){var ee=e.eq(se);X&&(t[0]=D.call(this,se,ee.html())),nt(ee,t,n,r)});if(A&&(o=tt(t,e[0].ownerDocument,!1,e,r),a=o.firstChild,o.childNodes.length===1&&(o=a),a||r)){for(s=i.map(je(o,"script"),un),d=s.length;S0&&Yt(s,!l&&je(e,"script")),d},cleanData:function(e){for(var t,n,r,o=i.event.special,a=0;(n=e[a])!==void 0;a++)if(wt(n)){if(t=n[k.expando]){if(t.events)for(r in t.events)o[r]?i.event.remove(n,r):i.removeEvent(n,r,t.handle);n[k.expando]=void 0}n[be.expando]&&(n[be.expando]=void 0)}}}),i.fn.extend({detach:function(e){return sr(this,e,!0)},remove:function(e){return sr(this,e)},text:function(e){return Le(this,function(t){return t===void 0?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=t)})},null,e,arguments.length)},append:function(){return nt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=or(this,e);t.appendChild(e)}})},prepend:function(){return nt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=or(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return nt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return nt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(i.cleanData(je(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return i.clone(this,e,t)})},html:function(e){return Le(this,function(t){var n=this[0]||{},r=0,o=this.length;if(t===void 0&&n.nodeType===1)return n.innerHTML;if(typeof t=="string"&&!Fn.test(t)&&!Ge[(Hn.exec(t)||["",""])[1].toLowerCase()]){t=i.htmlPrefilter(t);try{for(;r=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-d-.5))||0),l+g}function _n(e,t,n){var r=ln(e),o=!W.boxSizingReliable()||n,a=o&&i.css(e,"boxSizing",!1,r)==="border-box",s=a,d=cn(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(Cn.test(d)){if(!n)return d;d="auto"}return(!W.boxSizingReliable()&&a||!W.reliableTrDimensions()&&ne(e,"tr")||d==="auto"||!parseFloat(d)&&i.css(e,"display",!1,r)==="inline")&&e.getClientRects().length&&(a=i.css(e,"boxSizing",!1,r)==="border-box",s=l in e,s&&(d=e[l])),d=parseFloat(d)||0,d+Kt(e,t,n||(a?"border":"content"),s,r,d)+"px"}i.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=cn(e,"opacity");return n===""?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var o,a,s,d=Pe(t),l=fn.test(t),g=e.style;if(l||(t=Bn(d)),s=i.cssHooks[t]||i.cssHooks[d],n!==void 0){if(a=typeof n,a==="string"&&(o=j.exec(n))&&o[1]&&(n=Tt(e,t,o),a="number"),n==null||n!==n)return;a==="number"&&!l&&(n+=o&&o[3]||(i.cssNumber[d]?"":"px")),!W.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(g[t]="inherit"),(!s||!("set"in s)||(n=s.set(e,n,r))!==void 0)&&(l?g.setProperty(t,n):g[t]=n)}else return s&&"get"in s&&(o=s.get(e,!1,r))!==void 0?o:g[t]}},css:function(e,t,n,r){var o,a,s,d=Pe(t),l=fn.test(t);return l||(t=Bn(d)),s=i.cssHooks[t]||i.cssHooks[d],s&&"get"in s&&(o=s.get(e,!0,n)),o===void 0&&(o=cn(e,t,r)),o==="normal"&&t in Wn&&(o=Wn[t]),n===""||n?(a=parseFloat(o),n===!0||isFinite(a)?a||0:o):o}}),i.each(["height","width"],function(e,t){i.cssHooks[t]={get:function(n,r,o){if(r)return pn.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?qn(n,Sr,function(){return _n(n,t,o)}):_n(n,t,o)},set:function(n,r,o){var a,s=ln(n),d=!W.scrollboxSize()&&s.position==="absolute",l=d||o,g=l&&i.css(n,"boxSizing",!1,s)==="border-box",S=o?Kt(n,t,o,g,s):0;return g&&d&&(S-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-Kt(n,t,"border",!1,s)-.5)),S&&(a=j.exec(r))&&(a[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),Gn(n,r,S)}}}),i.cssHooks.marginLeft=ur(W.reliableMarginLeft,function(e,t){if(t)return(parseFloat(cn(e,"marginLeft"))||e.getBoundingClientRect().left-qn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),i.each({margin:"",padding:"",border:"Width"},function(e,t){i.cssHooks[e+t]={expand:function(n){for(var r=0,o={},a=typeof n=="string"?n.split(" "):[n];r<4;r++)o[e+de[r]+t]=a[r]||a[r-2]||a[0];return o}},e!=="margin"&&(i.cssHooks[e+t].set=Gn)}),i.fn.extend({css:function(e,t){return Le(this,function(n,r,o){var a,s,d={},l=0;if(Array.isArray(r)){for(a=ln(n),s=r.length;l1)}});function Ne(e,t,n,r,o){return new Ne.prototype.init(e,t,n,r,o)}i.Tween=Ne,Ne.prototype={constructor:Ne,init:function(e,t,n,r,o,a){this.elem=e,this.prop=n,this.easing=o||i.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(i.cssNumber[n]?"":"px")},cur:function(){var e=Ne.propHooks[this.prop];return e&&e.get?e.get(this):Ne.propHooks._default.get(this)},run:function(e){var t,n=Ne.propHooks[this.prop];return this.options.duration?this.pos=t=i.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ne.propHooks._default.set(this),this}},Ne.prototype.init.prototype=Ne.prototype,Ne.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=i.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){i.fx.step[e.prop]?i.fx.step[e.prop](e):e.elem.nodeType===1&&(i.cssHooks[e.prop]||e.elem.style[Bn(e.prop)]!=null)?i.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ne.propHooks.scrollTop=Ne.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},i.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},i.fx=Ne.prototype.init,i.fx.step={};var rt,Nt,dt=/^(?:toggle|show|hide)$/,xr=/queueHooks$/;function $n(){Nt&&(q.hidden===!1&&c.requestAnimationFrame?c.requestAnimationFrame($n):c.setTimeout($n,i.fx.interval),i.fx.tick())}function Yn(){return c.setTimeout(function(){rt=void 0}),rt=Date.now()}function hn(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)n=de[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function Kn(e,t,n){for(var r,o=(it.tweeners[t]||[]).concat(it.tweeners["*"]),a=0,s=o.length;a1)},removeAttr:function(e){return this.each(function(){i.removeAttr(this,e)})}}),i.extend({attr:function(e,t,n){var r,o,a=e.nodeType;if(!(a===3||a===8||a===2)){if(typeof e.getAttribute=="undefined")return i.prop(e,t,n);if((a!==1||!i.isXMLDoc(e))&&(o=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?cr:void 0)),n!==void 0){if(n===null){i.removeAttr(e,t);return}return o&&"set"in o&&(r=o.set(e,n,t))!==void 0?r:(e.setAttribute(t,n+""),n)}return o&&"get"in o&&(r=o.get(e,t))!==null?r:(r=i.find.attr(e,t),r==null?void 0:r)}},attrHooks:{type:{set:function(e,t){if(!W.radioValue&&t==="radio"&&ne(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(Ie);if(o&&e.nodeType===1)for(;n=o[r++];)e.removeAttribute(n)}}),cr={set:function(e,t,n){return t===!1?i.removeAttr(e,n):e.setAttribute(n,n),n}},i.each(i.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Vt[t]||i.find.attr;Vt[t]=function(r,o,a){var s,d,l=o.toLowerCase();return a||(d=Vt[l],Vt[l]=s,s=n(r,o,a)!=null?l:null,Vt[l]=d),s}});var Dn=/^(?:input|select|textarea|button)$/i,Vn=/^(?:a|area)$/i;i.fn.extend({prop:function(e,t){return Le(this,i.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[i.propFix[e]||e]})}}),i.extend({prop:function(e,t,n){var r,o,a=e.nodeType;if(!(a===3||a===8||a===2))return(a!==1||!i.isXMLDoc(e))&&(t=i.propFix[t]||t,o=i.propHooks[t]),n!==void 0?o&&"set"in o&&(r=o.set(e,n,t))!==void 0?r:e[t]=n:o&&"get"in o&&(r=o.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=i.find.attr(e,"tabindex");return t?parseInt(t,10):Dn.test(e.nodeName)||Vn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),W.optSelected||(i.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});function N(e){var t=e.match(Ie)||[];return t.join(" ")}function u(e){return e.getAttribute&&e.getAttribute("class")||""}function y(e){return Array.isArray(e)?e:typeof e=="string"?e.match(Ie)||[]:[]}i.fn.extend({addClass:function(e){var t,n,r,o,a,s;return z(e)?this.each(function(d){i(this).addClass(e.call(this,d,u(this)))}):(t=y(e),t.length?this.each(function(){if(r=u(this),n=this.nodeType===1&&" "+N(r)+" ",n){for(a=0;a-1;)n=n.replace(" "+o+" "," ");s=N(n),r!==s&&this.setAttribute("class",s)}}):this):this.attr("class","")},toggleClass:function(e,t){var n,r,o,a,s=typeof e,d=s==="string"||Array.isArray(e);return z(e)?this.each(function(l){i(this).toggleClass(e.call(this,l,u(this),t),t)}):typeof t=="boolean"&&d?t?this.addClass(e):this.removeClass(e):(n=y(e),this.each(function(){if(d)for(a=i(this),o=0;o-1)return!0;return!1}});var w=/\r/g;i.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=z(e),this.each(function(a){var s;this.nodeType===1&&(r?s=e.call(this,a,i(this).val()):s=e,s==null?s="":typeof s=="number"?s+="":Array.isArray(s)&&(s=i.map(s,function(d){return d==null?"":d+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],(!t||!("set"in t)||t.set(this,s,"value")===void 0)&&(this.value=s))})):o?(t=i.valHooks[o.type]||i.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(o,"value"))!==void 0?n:(n=o.value,typeof n=="string"?n.replace(w,""):n==null?"":n)):void 0}}),i.extend({valHooks:{option:{get:function(e){var t=i.find.attr(e,"value");return t!=null?t:N(i.text(e))}},select:{get:function(e){var t,n,r,o=e.options,a=e.selectedIndex,s=e.type==="select-one",d=s?null:[],l=s?a+1:o.length;for(a<0?r=l:r=s?a:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=i.inArray(i(e).val(),t)>-1}},W.checkOn||(i.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var P=c.location,U={guid:Date.now()},V=/\?/;i.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{t=new c.DOMParser().parseFromString(e,"text/xml")}catch(r){}return n=t&&t.getElementsByTagName("parsererror")[0],(!t||n)&&i.error("Invalid XML: "+(n?i.map(n.childNodes,function(r){return r.textContent}).join(` -`):e)),t};var he=/^(?:focusinfocus|focusoutblur)$/,Te=function(e){e.stopPropagation()};i.extend(i.event,{trigger:function(e,t,n,r){var o,a,s,d,l,g,S,A,b=[n||q],D=Ae.call(e,"type")?e.type:e,X=Ae.call(e,"namespace")?e.namespace.split("."):[];if(a=A=s=n=n||q,!(n.nodeType===3||n.nodeType===8)&&!he.test(D+i.event.triggered)&&(D.indexOf(".")>-1&&(X=D.split("."),D=X.shift(),X.sort()),l=D.indexOf(":")<0&&"on"+D,e=e[i.expando]?e:new i.Event(D,typeof e=="object"&&e),e.isTrigger=r?2:3,e.namespace=X.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+X.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=t==null?[e]:i.makeArray(t,[e]),S=i.event.special[D]||{},!(!r&&S.trigger&&S.trigger.apply(n,t)===!1))){if(!r&&!S.noBubble&&!Ze(n)){for(d=S.delegateType||D,he.test(d+D)||(a=a.parentNode);a;a=a.parentNode)b.push(a),s=a;s===(n.ownerDocument||q)&&b.push(s.defaultView||s.parentWindow||c)}for(o=0;(a=b[o++])&&!e.isPropagationStopped();)A=a,e.type=o>1?d:S.bindType||D,g=(k.get(a,"events")||Object.create(null))[e.type]&&k.get(a,"handle"),g&&g.apply(a,t),g=l&&a[l],g&&g.apply&&wt(a)&&(e.result=g.apply(a,t),e.result===!1&&e.preventDefault());return e.type=D,!r&&!e.isDefaultPrevented()&&(!S._default||S._default.apply(b.pop(),t)===!1)&&wt(n)&&l&&z(n[D])&&!Ze(n)&&(s=n[l],s&&(n[l]=null),i.event.triggered=D,e.isPropagationStopped()&&A.addEventListener(D,Te),n[D](),e.isPropagationStopped()&&A.removeEventListener(D,Te),i.event.triggered=void 0,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var r=i.extend(new i.Event,n,{type:e,isSimulated:!0});i.event.trigger(r,null,t)}}),i.fn.extend({trigger:function(e,t){return this.each(function(){i.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return i.event.trigger(e,t,n,!0)}});var $e=/\[\]$/,ze=/\r?\n/g,Xn=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function Ar(e,t,n,r){var o;if(Array.isArray(t))i.each(t,function(a,s){n||$e.test(e)?r(e,s):Ar(e+"["+(typeof s=="object"&&s!=null?a:"")+"]",s,n,r)});else if(!n&&at(t)==="object")for(o in t)Ar(e+"["+o+"]",t[o],n,r);else r(e,t)}i.param=function(e,t){var n,r=[],o=function(a,s){var d=z(s)?s():s;r[r.length]=encodeURIComponent(a)+"="+encodeURIComponent(d==null?"":d)};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!i.isPlainObject(e))i.each(e,function(){o(this.name,this.value)});else for(n in e)Ar(n,e[n],t,o);return r.join("&")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=i.prop(this,"elements");return e?i.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!i(this).is(":disabled")&&Fe.test(this.nodeName)&&!Xn.test(e)&&(this.checked||!Ht.test(e))}).map(function(e,t){var n=i(this).val();return n==null?null:Array.isArray(n)?i.map(n,function(r){return{name:t.name,value:r.replace(ze,`\r +import{a as Ji}from"./chunk-LNOKARBD.js";import{d as oi}from"./chunk-KT7KMEQC.js";var ui=oi((si,vr)=>{(function(c,h){"use strict";typeof vr=="object"&&typeof vr.exports=="object"?vr.exports=c.document?h(c,!0):function(m){if(!m.document)throw new Error("jQuery requires a window with a document");return h(m)}:h(c)})(typeof window!="undefined"?window:si,function(c,h){"use strict";var m=[],x=Object.getPrototypeOf,_=m.slice,H=m.flat?function(e){return m.flat.call(e)}:function(e){return m.concat.apply([],e)},Z=m.push,oe=m.indexOf,ce={},Ee=ce.toString,Ae=ce.hasOwnProperty,We=Ae.toString,_e=We.call(Object),W={},z=function(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"},Je=function(t){return t!=null&&t===t.window},q=c.document,mt={type:!0,src:!0,nonce:!0,noModule:!0};function rn(e,t,n){n=n||q;var r,o,a=n.createElement("script");if(a.text=e,t)for(r in mt)o=t[r]||t.getAttribute&&t.getAttribute(r),o&&a.setAttribute(r,o);n.head.appendChild(a).parentNode.removeChild(a)}function st(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?ce[Ee.call(e)]||"object":typeof e}var J="3.7.1",Y=/HTML$/i,i=function(e,t){return new i.fn.init(e,t)};i.fn=i.prototype={jquery:J,constructor:i,length:0,toArray:function(){return _.call(this)},get:function(e){return e==null?_.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=i.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return i.each(this,e)},map:function(e){return this.pushStack(i.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(_.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n0&&t-1 in e}function ne(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Ht=m.pop,Wt=m.sort,yt=m.splice,G="[\\x20\\t\\r\\n\\f]",Qe=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g");i.contains=function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))};var jt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Sn(e,t){return t?e==="\0"?"\uFFFD":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}i.escapeSelector=function(e){return(e+"").replace(jt,Sn)};var Re=q,vt=Z;(function(){var e,t,n,r,o,a=vt,s,d,l,g,S,A=i.expando,b=0,D=0,X=pr(),se=pr(),ee=pr(),Ue=pr(),Oe=function(f,p){return f===p&&(o=!0),0},Lt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",kt="(?:\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ae="\\["+G+"*("+kt+")(?:"+G+"*([*^$|!~]?=)"+G+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+kt+"))|)"+G+"*\\]",yn=":("+kt+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ae+")*)|.*)\\)|)",le=new RegExp(G+"+","g"),Ce=new RegExp("^"+G+"*,"+G+"*"),Zn=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),Or=new RegExp(G+"|>"),Mt=new RegExp(yn),Jn=new RegExp("^"+kt+"$"),Rt={ID:new RegExp("^#("+kt+")"),CLASS:new RegExp("^\\.("+kt+")"),TAG:new RegExp("^("+kt+"|[*])"),ATTR:new RegExp("^"+ae),PSEUDO:new RegExp("^"+yn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+Lt+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},Zt=/^(?:input|select|textarea|button)$/i,Jt=/^h\d$/i,ht=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Lr=/[+~]/,qt=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),Bt=function(f,p){var v="0x"+f.slice(1)-65536;return p||(v<0?String.fromCharCode(v+65536):String.fromCharCode(v>>10|55296,v&1023|56320))},$i=function(){en()},Yi=gr(function(f){return f.disabled===!0&&ne(f,"fieldset")},{dir:"parentNode",next:"legend"});function Ki(){try{return s.activeElement}catch(f){}}try{a.apply(m=_.call(Re.childNodes),Re.childNodes),m[Re.childNodes.length].nodeType}catch(f){a={apply:function(p,v){vt.apply(p,_.call(v))},call:function(p){vt.apply(p,_.call(arguments,1))}}}function ye(f,p,v,T){var E,O,M,F,R,re,K,Q=p&&p.ownerDocument,ie=p?p.nodeType:9;if(v=v||[],typeof f!="string"||!f||ie!==1&&ie!==9&&ie!==11)return v;if(!T&&(en(p),p=p||s,l)){if(ie!==11&&(R=ht.exec(f)))if(E=R[1]){if(ie===9)if(M=p.getElementById(E)){if(M.id===E)return a.call(v,M),v}else return v;else if(Q&&(M=Q.getElementById(E))&&ye.contains(p,M)&&M.id===E)return a.call(v,M),v}else{if(R[2])return a.apply(v,p.getElementsByTagName(f)),v;if((E=R[3])&&p.getElementsByClassName)return a.apply(v,p.getElementsByClassName(E)),v}if(!Ue[f+" "]&&(!g||!g.test(f))){if(K=f,Q=p,ie===1&&(Or.test(f)||Zn.test(f))){for(Q=Lr.test(f)&&kr(p.parentNode)||p,(Q!=p||!W.scope)&&((F=p.getAttribute("id"))?F=i.escapeSelector(F):p.setAttribute("id",F=A)),re=er(f),O=re.length;O--;)re[O]=(F?"#"+F:":scope")+" "+hr(re[O]);K=re.join(",")}try{return a.apply(v,Q.querySelectorAll(K)),v}catch(B){Ue(f,!0)}finally{F===A&&p.removeAttribute("id")}}}return ii(f.replace(Qe,"$1"),p,v,T)}function pr(){var f=[];function p(v,T){return f.push(v+" ")>t.cacheLength&&delete p[f.shift()],p[v+" "]=T}return p}function Et(f){return f[A]=!0,f}function Nn(f){var p=s.createElement("fieldset");try{return!!f(p)}catch(v){return!1}finally{p.parentNode&&p.parentNode.removeChild(p),p=null}}function Vi(f){return function(p){return ne(p,"input")&&p.type===f}}function Xi(f){return function(p){return(ne(p,"input")||ne(p,"button"))&&p.type===f}}function ni(f){return function(p){return"form"in p?p.parentNode&&p.disabled===!1?"label"in p?"label"in p.parentNode?p.parentNode.disabled===f:p.disabled===f:p.isDisabled===f||p.isDisabled!==!f&&Yi(p)===f:p.disabled===f:"label"in p?p.disabled===f:!1}}function vn(f){return Et(function(p){return p=+p,Et(function(v,T){for(var E,O=f([],v.length,p),M=O.length;M--;)v[E=O[M]]&&(v[E]=!(T[E]=v[E]))})})}function kr(f){return f&&typeof f.getElementsByTagName!="undefined"&&f}function en(f){var p,v=f?f.ownerDocument||f:Re;return v==s||v.nodeType!==9||!v.documentElement||(s=v,d=s.documentElement,l=!i.isXMLDoc(s),S=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&Re!=s&&(p=s.defaultView)&&p.top!==p&&p.addEventListener("unload",$i),W.getById=Nn(function(T){return d.appendChild(T).id=i.expando,!s.getElementsByName||!s.getElementsByName(i.expando).length}),W.disconnectedMatch=Nn(function(T){return S.call(T,"*")}),W.scope=Nn(function(){return s.querySelectorAll(":scope")}),W.cssHas=Nn(function(){try{return s.querySelector(":has(*,:jqfake)"),!1}catch(T){return!0}}),W.getById?(t.filter.ID=function(T){var E=T.replace(qt,Bt);return function(O){return O.getAttribute("id")===E}},t.find.ID=function(T,E){if(typeof E.getElementById!="undefined"&&l){var O=E.getElementById(T);return O?[O]:[]}}):(t.filter.ID=function(T){var E=T.replace(qt,Bt);return function(O){var M=typeof O.getAttributeNode!="undefined"&&O.getAttributeNode("id");return M&&M.value===E}},t.find.ID=function(T,E){if(typeof E.getElementById!="undefined"&&l){var O,M,F,R=E.getElementById(T);if(R){if(O=R.getAttributeNode("id"),O&&O.value===T)return[R];for(F=E.getElementsByName(T),M=0;R=F[M++];)if(O=R.getAttributeNode("id"),O&&O.value===T)return[R]}return[]}}),t.find.TAG=function(T,E){return typeof E.getElementsByTagName!="undefined"?E.getElementsByTagName(T):E.querySelectorAll(T)},t.find.CLASS=function(T,E){if(typeof E.getElementsByClassName!="undefined"&&l)return E.getElementsByClassName(T)},g=[],Nn(function(T){var E;d.appendChild(T).innerHTML="",T.querySelectorAll("[selected]").length||g.push("\\["+G+"*(?:value|"+Lt+")"),T.querySelectorAll("[id~="+A+"-]").length||g.push("~="),T.querySelectorAll("a#"+A+"+*").length||g.push(".#.+[+~]"),T.querySelectorAll(":checked").length||g.push(":checked"),E=s.createElement("input"),E.setAttribute("type","hidden"),T.appendChild(E).setAttribute("name","D"),d.appendChild(T).disabled=!0,T.querySelectorAll(":disabled").length!==2&&g.push(":enabled",":disabled"),E=s.createElement("input"),E.setAttribute("name",""),T.appendChild(E),T.querySelectorAll("[name='']").length||g.push("\\["+G+"*name"+G+"*="+G+`*(?:''|"")`)}),W.cssHas||g.push(":has"),g=g.length&&new RegExp(g.join("|")),Oe=function(T,E){if(T===E)return o=!0,0;var O=!T.compareDocumentPosition-!E.compareDocumentPosition;return O||(O=(T.ownerDocument||T)==(E.ownerDocument||E)?T.compareDocumentPosition(E):1,O&1||!W.sortDetached&&E.compareDocumentPosition(T)===O?T===s||T.ownerDocument==Re&&ye.contains(Re,T)?-1:E===s||E.ownerDocument==Re&&ye.contains(Re,E)?1:r?oe.call(r,T)-oe.call(r,E):0:O&4?-1:1)}),s}ye.matches=function(f,p){return ye(f,null,null,p)},ye.matchesSelector=function(f,p){if(en(f),l&&!Ue[p+" "]&&(!g||!g.test(p)))try{var v=S.call(f,p);if(v||W.disconnectedMatch||f.document&&f.document.nodeType!==11)return v}catch(T){Ue(p,!0)}return ye(p,s,null,[f]).length>0},ye.contains=function(f,p){return(f.ownerDocument||f)!=s&&en(f),i.contains(f,p)},ye.attr=function(f,p){(f.ownerDocument||f)!=s&&en(f);var v=t.attrHandle[p.toLowerCase()],T=v&&Ae.call(t.attrHandle,p.toLowerCase())?v(f,p,!l):void 0;return T!==void 0?T:f.getAttribute(p)},ye.error=function(f){throw new Error("Syntax error, unrecognized expression: "+f)},i.uniqueSort=function(f){var p,v=[],T=0,E=0;if(o=!W.sortStable,r=!W.sortStable&&_.call(f,0),Wt.call(f,Oe),o){for(;p=f[E++];)p===f[E]&&(T=v.push(E));for(;T--;)yt.call(f,v[T],1)}return r=null,f},i.fn.uniqueSort=function(){return this.pushStack(i.uniqueSort(_.apply(this)))},t=i.expr={cacheLength:50,createPseudo:Et,match:Rt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(f){return f[1]=f[1].replace(qt,Bt),f[3]=(f[3]||f[4]||f[5]||"").replace(qt,Bt),f[2]==="~="&&(f[3]=" "+f[3]+" "),f.slice(0,4)},CHILD:function(f){return f[1]=f[1].toLowerCase(),f[1].slice(0,3)==="nth"?(f[3]||ye.error(f[0]),f[4]=+(f[4]?f[5]+(f[6]||1):2*(f[3]==="even"||f[3]==="odd")),f[5]=+(f[7]+f[8]||f[3]==="odd")):f[3]&&ye.error(f[0]),f},PSEUDO:function(f){var p,v=!f[6]&&f[2];return Rt.CHILD.test(f[0])?null:(f[3]?f[2]=f[4]||f[5]||"":v&&Mt.test(v)&&(p=er(v,!0))&&(p=v.indexOf(")",v.length-p)-v.length)&&(f[0]=f[0].slice(0,p),f[2]=v.slice(0,p)),f.slice(0,3))}},filter:{TAG:function(f){var p=f.replace(qt,Bt).toLowerCase();return f==="*"?function(){return!0}:function(v){return ne(v,p)}},CLASS:function(f){var p=X[f+" "];return p||(p=new RegExp("(^|"+G+")"+f+"("+G+"|$)"))&&X(f,function(v){return p.test(typeof v.className=="string"&&v.className||typeof v.getAttribute!="undefined"&&v.getAttribute("class")||"")})},ATTR:function(f,p,v){return function(T){var E=ye.attr(T,f);return E==null?p==="!=":p?(E+="",p==="="?E===v:p==="!="?E!==v:p==="^="?v&&E.indexOf(v)===0:p==="*="?v&&E.indexOf(v)>-1:p==="$="?v&&E.slice(-v.length)===v:p==="~="?(" "+E.replace(le," ")+" ").indexOf(v)>-1:p==="|="?E===v||E.slice(0,v.length+1)===v+"-":!1):!0}},CHILD:function(f,p,v,T,E){var O=f.slice(0,3)!=="nth",M=f.slice(-4)!=="last",F=p==="of-type";return T===1&&E===0?function(R){return!!R.parentNode}:function(R,re,K){var Q,ie,B,Se,Ze,Ye=O!==M?"nextSibling":"previousSibling",gt=R.parentNode,It=F&&R.nodeName.toLowerCase(),On=!K&&!F,Ve=!1;if(gt){if(O){for(;Ye;){for(B=R;B=B[Ye];)if(F?ne(B,It):B.nodeType===1)return!1;Ze=Ye=f==="only"&&!Ze&&"nextSibling"}return!0}if(Ze=[M?gt.firstChild:gt.lastChild],M&&On){for(ie=gt[A]||(gt[A]={}),Q=ie[f]||[],Se=Q[0]===b&&Q[1],Ve=Se&&Q[2],B=Se&>.childNodes[Se];B=++Se&&B&&B[Ye]||(Ve=Se=0)||Ze.pop();)if(B.nodeType===1&&++Ve&&B===R){ie[f]=[b,Se,Ve];break}}else if(On&&(ie=R[A]||(R[A]={}),Q=ie[f]||[],Se=Q[0]===b&&Q[1],Ve=Se),Ve===!1)for(;(B=++Se&&B&&B[Ye]||(Ve=Se=0)||Ze.pop())&&!((F?ne(B,It):B.nodeType===1)&&++Ve&&(On&&(ie=B[A]||(B[A]={}),ie[f]=[b,Ve]),B===R)););return Ve-=E,Ve===T||Ve%T===0&&Ve/T>=0}}},PSEUDO:function(f,p){var v,T=t.pseudos[f]||t.setFilters[f.toLowerCase()]||ye.error("unsupported pseudo: "+f);return T[A]?T(p):T.length>1?(v=[f,f,"",p],t.setFilters.hasOwnProperty(f.toLowerCase())?Et(function(E,O){for(var M,F=T(E,p),R=F.length;R--;)M=oe.call(E,F[R]),E[M]=!(O[M]=F[R])}):function(E){return T(E,0,v)}):T}},pseudos:{not:Et(function(f){var p=[],v=[],T=Pr(f.replace(Qe,"$1"));return T[A]?Et(function(E,O,M,F){for(var R,re=T(E,null,F,[]),K=E.length;K--;)(R=re[K])&&(E[K]=!(O[K]=R))}):function(E,O,M){return p[0]=E,T(p,null,M,v),p[0]=null,!v.pop()}}),has:Et(function(f){return function(p){return ye(f,p).length>0}}),contains:Et(function(f){return f=f.replace(qt,Bt),function(p){return(p.textContent||i.text(p)).indexOf(f)>-1}}),lang:Et(function(f){return Jn.test(f||"")||ye.error("unsupported lang: "+f),f=f.replace(qt,Bt).toLowerCase(),function(p){var v;do if(v=l?p.lang:p.getAttribute("xml:lang")||p.getAttribute("lang"))return v=v.toLowerCase(),v===f||v.indexOf(f+"-")===0;while((p=p.parentNode)&&p.nodeType===1);return!1}}),target:function(f){var p=c.location&&c.location.hash;return p&&p.slice(1)===f.id},root:function(f){return f===d},focus:function(f){return f===Ki()&&s.hasFocus()&&!!(f.type||f.href||~f.tabIndex)},enabled:ni(!1),disabled:ni(!0),checked:function(f){return ne(f,"input")&&!!f.checked||ne(f,"option")&&!!f.selected},selected:function(f){return f.parentNode&&f.parentNode.selectedIndex,f.selected===!0},empty:function(f){for(f=f.firstChild;f;f=f.nextSibling)if(f.nodeType<6)return!1;return!0},parent:function(f){return!t.pseudos.empty(f)},header:function(f){return Jt.test(f.nodeName)},input:function(f){return Zt.test(f.nodeName)},button:function(f){return ne(f,"input")&&f.type==="button"||ne(f,"button")},text:function(f){var p;return ne(f,"input")&&f.type==="text"&&((p=f.getAttribute("type"))==null||p.toLowerCase()==="text")},first:vn(function(){return[0]}),last:vn(function(f,p){return[p-1]}),eq:vn(function(f,p,v){return[v<0?v+p:v]}),even:vn(function(f,p){for(var v=0;vp?T=p:T=v;--T>=0;)f.push(T);return f}),gt:vn(function(f,p,v){for(var T=v<0?v+p:v;++T1?function(p,v,T){for(var E=f.length;E--;)if(!f[E](p,v,T))return!1;return!0}:f[0]}function Qi(f,p,v){for(var T=0,E=p.length;T-1&&(M[K]=!(F[K]=ie))}}else B=mr(B===F?B.splice(Ye,B.length):B),E?E(null,F,B,re):a.apply(F,B)})}function Ir(f){for(var p,v,T,E=f.length,O=t.relative[f[0].type],M=O||t.relative[" "],F=O?1:0,R=gr(function(Q){return Q===p},M,!0),re=gr(function(Q){return oe.call(p,Q)>-1},M,!0),K=[function(Q,ie,B){var Se=!O&&(B||ie!=n)||((p=ie).nodeType?R(Q,ie,B):re(Q,ie,B));return p=null,Se}];F1&&Mr(K),F>1&&hr(f.slice(0,F-1).concat({value:f[F-2].type===" "?"*":""})).replace(Qe,"$1"),v,F0,T=f.length>0,E=function(O,M,F,R,re){var K,Q,ie,B=0,Se="0",Ze=O&&[],Ye=[],gt=n,It=O||T&&t.find.TAG("*",re),On=b+=gt==null?1:Math.random()||.1,Ve=It.length;for(re&&(n=M==s||M||re);Se!==Ve&&(K=It[Se])!=null;Se++){if(T&&K){for(Q=0,!M&&K.ownerDocument!=s&&(en(K),F=!l);ie=f[Q++];)if(ie(K,M||s,F)){a.call(R,K);break}re&&(b=On)}v&&((K=!ie&&K)&&B--,O&&Ze.push(K))}if(B+=Se,v&&Se!==B){for(Q=0;ie=p[Q++];)ie(Ze,Ye,M,F);if(O){if(B>0)for(;Se--;)Ze[Se]||Ye[Se]||(Ye[Se]=Ht.call(R));Ye=mr(Ye)}a.apply(R,Ye),re&&!O&&Ye.length>0&&B+p.length>1&&i.uniqueSort(R)}return re&&(b=On,n=gt),Ze};return v?Et(E):E}function Pr(f,p){var v,T=[],E=[],O=ee[f+" "];if(!O){for(p||(p=er(f)),v=p.length;v--;)O=Ir(p[v]),O[A]?T.push(O):E.push(O);O=ee(f,Zi(E,T)),O.selector=f}return O}function ii(f,p,v,T){var E,O,M,F,R,re=typeof f=="function"&&f,K=!T&&er(f=re.selector||f);if(v=v||[],K.length===1){if(O=K[0]=K[0].slice(0),O.length>2&&(M=O[0]).type==="ID"&&p.nodeType===9&&l&&t.relative[O[1].type]){if(p=(t.find.ID(M.matches[0].replace(qt,Bt),p)||[])[0],p)re&&(p=p.parentNode);else return v;f=f.slice(O.shift().value.length)}for(E=Rt.needsContext.test(f)?0:O.length;E--&&(M=O[E],!t.relative[F=M.type]);)if((R=t.find[F])&&(T=R(M.matches[0].replace(qt,Bt),Lr.test(O[0].type)&&kr(p.parentNode)||p))){if(O.splice(E,1),f=T.length&&hr(O),!f)return a.apply(v,T),v;break}}return(re||Pr(f,K))(T,p,!l,v,!p||Lr.test(f)&&kr(p.parentNode)||p),v}W.sortStable=A.split("").sort(Oe).join("")===A,en(),W.sortDetached=Nn(function(f){return f.compareDocumentPosition(s.createElement("fieldset"))&1}),i.find=ye,i.expr[":"]=i.expr.pseudos,i.unique=i.uniqueSort,ye.compile=Pr,ye.select=ii,ye.setDocument=en,ye.tokenize=er,ye.escape=i.escapeSelector,ye.getText=i.text,ye.isXML=i.isXMLDoc,ye.selectors=i.expr,ye.support=i.support,ye.uniqueSort=i.uniqueSort})();var et=function(e,t,n){for(var r=[],o=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(o&&i(e).is(n))break;r.push(e)}return r},Gt=function(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},$t=i.expr.match.needsContext,xn=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ge(e,t,n){return z(t)?i.grep(e,function(r,o){return!!t.call(r,o,r)!==n}):t.nodeType?i.grep(e,function(r){return r===t!==n}):typeof t!="string"?i.grep(e,function(r){return oe.call(t,r)>-1!==n}):i.filter(t,e,n)}i.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?i.find.matchesSelector(r,e)?[r]:[]:i.find.matches(e,i.grep(t,function(o){return o.nodeType===1}))},i.fn.extend({find:function(e){var t,n,r=this.length,o=this;if(typeof e!="string")return this.pushStack(i(e).filter(function(){for(t=0;t1?i.uniqueSort(n):n},filter:function(e){return this.pushStack(ge(this,e||[],!1))},not:function(e){return this.pushStack(ge(this,e||[],!0))},is:function(e){return!!ge(this,typeof e=="string"&&$t.test(e)?i(e):e||[],!1).length}});var wt,Yt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,on=i.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||wt,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?r=[null,e,null]:r=Yt.exec(e),r&&(r[1]||!t))if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:q,!0)),xn.test(r[1])&&i.isPlainObject(t))for(r in t)z(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}else return o=q.getElementById(r[2]),o&&(this[0]=o,this.length=1),this;else return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(z(e))return n.ready!==void 0?n.ready(e):e(i)}return i.makeArray(e,this)};on.prototype=i.fn,wt=i(q);var In=/^(?:parents|prev(?:Until|All))/,an={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(e){var t=i(e,this),n=t.length;return this.filter(function(){for(var r=0;r-1:n.nodeType===1&&i.find.matchesSelector(n,e))){a.push(n);break}}return this.pushStack(a.length>1?i.uniqueSort(a):a)},index:function(e){return e?typeof e=="string"?oe.call(i(e),this[0]):oe.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function bt(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}i.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return et(e,"parentNode")},parentsUntil:function(e,t,n){return et(e,"parentNode",n)},next:function(e){return bt(e,"nextSibling")},prev:function(e){return bt(e,"previousSibling")},nextAll:function(e){return et(e,"nextSibling")},prevAll:function(e){return et(e,"previousSibling")},nextUntil:function(e,t,n){return et(e,"nextSibling",n)},prevUntil:function(e,t,n){return et(e,"previousSibling",n)},siblings:function(e){return Gt((e.parentNode||{}).firstChild,e)},children:function(e){return Gt(e.firstChild)},contents:function(e){return e.contentDocument!=null&&x(e.contentDocument)?e.contentDocument:(ne(e,"template")&&(e=e.content||e),i.merge([],e.childNodes))}},function(e,t){i.fn[e]=function(n,r){var o=i.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(o=i.filter(r,o)),this.length>1&&(an[e]||i.uniqueSort(o),In.test(e)&&o.reverse()),this.pushStack(o)}});var Ie=/[^\x20\t\r\n\f]+/g;function Pn(e){var t={};return i.each(e.match(Ie)||[],function(n,r){t[r]=!0}),t}i.Callbacks=function(e){e=typeof e=="string"?Pn(e):i.extend({},e);var t,n,r,o,a=[],s=[],d=-1,l=function(){for(o=o||e.once,r=t=!0;s.length;d=-1)for(n=s.shift();++d-1;)a.splice(b,1),b<=d&&d--}),this},has:function(S){return S?i.inArray(S,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],!n&&!t&&(a=n=""),this},locked:function(){return!!o},fireWith:function(S,A){return o||(A=A||[],A=[S,A.slice?A.slice():A],s.push(A),t||l()),this},fire:function(){return g.fireWith(this,arguments),this},fired:function(){return!!r}};return g};function ut(e){return e}function pe(e){throw e}function ft(e,t,n,r){var o;try{e&&z(o=e.promise)?o.call(e).done(t).fail(n):e&&z(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(a){n.apply(void 0,[a])}}i.extend({Deferred:function(e){var t=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(a){return r.then(null,a)},pipe:function(){var a=arguments;return i.Deferred(function(s){i.each(t,function(d,l){var g=z(a[l[4]])&&a[l[4]];o[l[1]](function(){var S=g&&g.apply(this,arguments);S&&z(S.promise)?S.promise().progress(s.notify).done(s.resolve).fail(s.reject):s[l[0]+"With"](this,g?[S]:arguments)})}),a=null}).promise()},then:function(a,s,d){var l=0;function g(S,A,b,D){return function(){var X=this,se=arguments,ee=function(){var Oe,Lt;if(!(S=l&&(b!==pe&&(X=void 0,se=[Oe]),A.rejectWith(X,se))}};S?Ue():(i.Deferred.getErrorHook?Ue.error=i.Deferred.getErrorHook():i.Deferred.getStackHook&&(Ue.error=i.Deferred.getStackHook()),c.setTimeout(Ue))}}return i.Deferred(function(S){t[0][3].add(g(0,S,z(d)?d:ut,S.notifyWith)),t[1][3].add(g(0,S,z(a)?a:ut)),t[2][3].add(g(0,S,z(s)?s:pe))}).promise()},promise:function(a){return a!=null?i.extend(a,r):r}},o={};return i.each(t,function(a,s){var d=s[2],l=s[5];r[s[1]]=d.add,l&&d.add(function(){n=l},t[3-a][2].disable,t[3-a][3].disable,t[0][2].lock,t[0][3].lock),d.add(s[3].fire),o[s[0]]=function(){return o[s[0]+"With"](this===o?void 0:this,arguments),this},o[s[0]+"With"]=d.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=_.call(arguments),a=i.Deferred(),s=function(d){return function(l){r[d]=this,o[d]=arguments.length>1?_.call(arguments):l,--t||a.resolveWith(r,o)}};if(t<=1&&(ft(e,a.done(s(n)).resolve,a.reject,!t),a.state()==="pending"||z(o[n]&&o[n].then)))return a.then();for(;n--;)ft(o[n],s(n),a.reject);return a.promise()}});var ve=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(e,t){c.console&&c.console.warn&&e&&ve.test(e.name)&&c.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},i.readyException=function(e){c.setTimeout(function(){throw e})};var lt=i.Deferred();i.fn.ready=function(e){return lt.then(e).catch(function(t){i.readyException(t)}),this},i.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--i.readyWait:i.isReady)||(i.isReady=!0,!(e!==!0&&--i.readyWait>0)&<.resolveWith(q,[i]))}}),i.ready.then=lt.then;function me(){q.removeEventListener("DOMContentLoaded",me),c.removeEventListener("load",me),i.ready()}q.readyState==="complete"||q.readyState!=="loading"&&!q.documentElement.doScroll?c.setTimeout(i.ready):(q.addEventListener("DOMContentLoaded",me),c.addEventListener("load",me));var Le=function(e,t,n,r,o,a,s){var d=0,l=e.length,g=n==null;if(st(n)==="object"){o=!0;for(d in n)Le(e,t,d,n[d],!0,a,s)}else if(r!==void 0&&(o=!0,z(r)||(s=!0),g&&(s?(t.call(e,r),t=null):(g=t,t=function(S,A,b){return g.call(i(S),b)})),t))for(;d1,null,!0)},removeData:function(e){return this.each(function(){be.remove(this,e)})}}),i.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=k.get(e,t),n&&(!r||Array.isArray(n)?r=k.access(e,t,i.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=i.queue(e,t),r=n.length,o=n.shift(),a=i._queueHooks(e,t),s=function(){i.dequeue(e,t)};o==="inprogress"&&(o=n.shift(),r--),o&&(t==="fx"&&n.unshift("inprogress"),delete a.stop,o.call(e,s,a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return k.get(e,n)||k.access(e,n,{empty:i.Callbacks("once memory").add(function(){k.remove(e,[t+"queue",n])})})}}),i.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,jn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=q.createDocumentFragment(),t=e.appendChild(q.createElement("div")),n=q.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),W.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",W.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="",W.option=!!t.lastChild})();var Ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Ge.tbody=Ge.tfoot=Ge.colgroup=Ge.caption=Ge.thead,Ge.th=Ge.td,W.option||(Ge.optgroup=Ge.option=[1,""]);function je(e,t){var n;return typeof e.getElementsByTagName!="undefined"?n=e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!="undefined"?n=e.querySelectorAll(t||"*"):n=[],t===void 0||t&&ne(e,t)?i.merge([e],n):n}function Vt(e,t){for(var n=0,r=e.length;n-1){o&&o.push(a);continue}if(g=we(a),s=je(A.appendChild(a),"script"),g&&Vt(s),n)for(S=0;a=s[S++];)jn.test(a.type||"")&&n.push(a)}return A}var Ft=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Nt(){return!1}function zn(e,t,n,r,o,a){var s,d;if(typeof t=="object"){typeof n!="string"&&(r=r||n,n=void 0);for(d in t)zn(e,d,n,r,t[d],a);return e}if(r==null&&o==null?(o=n,r=n=void 0):o==null&&(typeof n=="string"?(o=r,r=void 0):(o=r,r=n,n=void 0)),o===!1)o=Nt;else if(!o)return e;return a===1&&(s=o,o=function(l){return i().off(l),s.apply(this,arguments)},o.guid=s.guid||(s.guid=i.guid++)),e.each(function(){i.event.add(this,t,o,r,n)})}i.event={global:{},add:function(e,t,n,r,o){var a,s,d,l,g,S,A,b,D,X,se,ee=k.get(e);if(Ct(e))for(n.handler&&(a=n,n=a.handler,o=a.selector),o&&i.find.matchesSelector(fe,o),n.guid||(n.guid=i.guid++),(l=ee.events)||(l=ee.events=Object.create(null)),(s=ee.handle)||(s=ee.handle=function(Ue){return typeof i!="undefined"&&i.event.triggered!==Ue.type?i.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ie)||[""],g=t.length;g--;)d=Ft.exec(t[g])||[],D=se=d[1],X=(d[2]||"").split(".").sort(),D&&(A=i.event.special[D]||{},D=(o?A.delegateType:A.bindType)||D,A=i.event.special[D]||{},S=i.extend({type:D,origType:se,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&i.expr.match.needsContext.test(o),namespace:X.join(".")},a),(b=l[D])||(b=l[D]=[],b.delegateCount=0,(!A.setup||A.setup.call(e,r,X,s)===!1)&&e.addEventListener&&e.addEventListener(D,s)),A.add&&(A.add.call(e,S),S.handler.guid||(S.handler.guid=n.guid)),o?b.splice(b.delegateCount++,0,S):b.push(S),i.event.global[D]=!0)},remove:function(e,t,n,r,o){var a,s,d,l,g,S,A,b,D,X,se,ee=k.hasData(e)&&k.get(e);if(!(!ee||!(l=ee.events))){for(t=(t||"").match(Ie)||[""],g=t.length;g--;){if(d=Ft.exec(t[g])||[],D=se=d[1],X=(d[2]||"").split(".").sort(),!D){for(D in l)i.event.remove(e,D+t[g],n,r,!0);continue}for(A=i.event.special[D]||{},D=(r?A.delegateType:A.bindType)||D,b=l[D]||[],d=d[2]&&new RegExp("(^|\\.)"+X.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=b.length;a--;)S=b[a],(o||se===S.origType)&&(!n||n.guid===S.guid)&&(!d||d.test(S.namespace))&&(!r||r===S.selector||r==="**"&&S.selector)&&(b.splice(a,1),S.selector&&b.delegateCount--,A.remove&&A.remove.call(e,S));s&&!b.length&&((!A.teardown||A.teardown.call(e,X,ee.handle)===!1)&&i.removeEvent(e,D,ee.handle),delete l[D])}i.isEmptyObject(l)&&k.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,a,s,d=new Array(arguments.length),l=i.event.fix(e),g=(k.get(this,"events")||Object.create(null))[l.type]||[],S=i.event.special[l.type]||{};for(d[0]=l,t=1;t=1)){for(;g!==this;g=g.parentNode||this)if(g.nodeType===1&&!(e.type==="click"&&g.disabled===!0)){for(a=[],s={},n=0;n-1:i.find(o,this,null,[g]).length),s[o]&&a.push(r);a.length&&d.push({elem:g,handlers:a})}}return g=this,l\s*$/g;function ar(e,t){return ne(e,"table")&&ne(t.nodeType!==11?t:t.firstChild,"tr")&&i(e).children("tbody")[0]||e}function ln(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function Tr(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function sr(e,t){var n,r,o,a,s,d,l;if(t.nodeType===1){if(k.hasData(e)&&(a=k.get(e),l=a.events,l)){k.remove(t,"handle events");for(o in l)for(n=0,r=l[o].length;n1&&typeof D=="string"&&!W.checkClone&&or.test(D))return e.each(function(se){var ee=e.eq(se);X&&(t[0]=D.call(this,se,ee.html())),rt(ee,t,n,r)});if(A&&(o=nt(t,e[0].ownerDocument,!1,e,r),a=o.firstChild,o.childNodes.length===1&&(o=a),a||r)){for(s=i.map(je(o,"script"),ln),d=s.length;S0&&Vt(s,!l&&je(e,"script")),d},cleanData:function(e){for(var t,n,r,o=i.event.special,a=0;(n=e[a])!==void 0;a++)if(Ct(n)){if(t=n[k.expando]){if(t.events)for(r in t.events)o[r]?i.event.remove(n,r):i.removeEvent(n,r,t.handle);n[k.expando]=void 0}n[be.expando]&&(n[be.expando]=void 0)}}}),i.fn.extend({detach:function(e){return ur(this,e,!0)},remove:function(e){return ur(this,e)},text:function(e){return Le(this,function(t){return t===void 0?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=t)})},null,e,arguments.length)},append:function(){return rt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=ar(this,e);t.appendChild(e)}})},prepend:function(){return rt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=ar(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return rt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return rt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(i.cleanData(je(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return i.clone(this,e,t)})},html:function(e){return Le(this,function(t){var n=this[0]||{},r=0,o=this.length;if(t===void 0&&n.nodeType===1)return n.innerHTML;if(typeof t=="string"&&!Fn.test(t)&&!Ge[(Hn.exec(t)||["",""])[1].toLowerCase()]){t=i.htmlPrefilter(t);try{for(;r=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-d-.5))||0),l+g}function _n(e,t,n){var r=dn(e),o=!W.boxSizingReliable()||n,a=o&&i.css(e,"boxSizing",!1,r)==="border-box",s=a,d=pn(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(Cn.test(d)){if(!n)return d;d="auto"}return(!W.boxSizingReliable()&&a||!W.reliableTrDimensions()&&ne(e,"tr")||d==="auto"||!parseFloat(d)&&i.css(e,"display",!1,r)==="inline")&&e.getClientRects().length&&(a=i.css(e,"boxSizing",!1,r)==="border-box",s=l in e,s&&(d=e[l])),d=parseFloat(d)||0,d+Xt(e,t,n||(a?"border":"content"),s,r,d)+"px"}i.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=pn(e,"opacity");return n===""?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var o,a,s,d=Pe(t),l=cn.test(t),g=e.style;if(l||(t=Bn(d)),s=i.cssHooks[t]||i.cssHooks[d],n!==void 0){if(a=typeof n,a==="string"&&(o=j.exec(n))&&o[1]&&(n=St(e,t,o),a="number"),n==null||n!==n)return;a==="number"&&!l&&(n+=o&&o[3]||(i.cssNumber[d]?"":"px")),!W.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(g[t]="inherit"),(!s||!("set"in s)||(n=s.set(e,n,r))!==void 0)&&(l?g.setProperty(t,n):g[t]=n)}else return s&&"get"in s&&(o=s.get(e,!1,r))!==void 0?o:g[t]}},css:function(e,t,n,r){var o,a,s,d=Pe(t),l=cn.test(t);return l||(t=Bn(d)),s=i.cssHooks[t]||i.cssHooks[d],s&&"get"in s&&(o=s.get(e,!0,n)),o===void 0&&(o=pn(e,t,r)),o==="normal"&&t in Wn&&(o=Wn[t]),n===""||n?(a=parseFloat(o),n===!0||isFinite(a)?a||0:o):o}}),i.each(["height","width"],function(e,t){i.cssHooks[t]={get:function(n,r,o){if(r)return gn.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?qn(n,xr,function(){return _n(n,t,o)}):_n(n,t,o)},set:function(n,r,o){var a,s=dn(n),d=!W.scrollboxSize()&&s.position==="absolute",l=d||o,g=l&&i.css(n,"boxSizing",!1,s)==="border-box",S=o?Xt(n,t,o,g,s):0;return g&&d&&(S-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-Xt(n,t,"border",!1,s)-.5)),S&&(a=j.exec(r))&&(a[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),Gn(n,r,S)}}}),i.cssHooks.marginLeft=fr(W.reliableMarginLeft,function(e,t){if(t)return(parseFloat(pn(e,"marginLeft"))||e.getBoundingClientRect().left-qn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),i.each({margin:"",padding:"",border:"Width"},function(e,t){i.cssHooks[e+t]={expand:function(n){for(var r=0,o={},a=typeof n=="string"?n.split(" "):[n];r<4;r++)o[e+de[r]+t]=a[r]||a[r-2]||a[0];return o}},e!=="margin"&&(i.cssHooks[e+t].set=Gn)}),i.fn.extend({css:function(e,t){return Le(this,function(n,r,o){var a,s,d={},l=0;if(Array.isArray(r)){for(a=dn(n),s=r.length;l1)}});function Ne(e,t,n,r,o){return new Ne.prototype.init(e,t,n,r,o)}i.Tween=Ne,Ne.prototype={constructor:Ne,init:function(e,t,n,r,o,a){this.elem=e,this.prop=n,this.easing=o||i.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(i.cssNumber[n]?"":"px")},cur:function(){var e=Ne.propHooks[this.prop];return e&&e.get?e.get(this):Ne.propHooks._default.get(this)},run:function(e){var t,n=Ne.propHooks[this.prop];return this.options.duration?this.pos=t=i.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ne.propHooks._default.set(this),this}},Ne.prototype.init.prototype=Ne.prototype,Ne.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=i.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){i.fx.step[e.prop]?i.fx.step[e.prop](e):e.elem.nodeType===1&&(i.cssHooks[e.prop]||e.elem.style[Bn(e.prop)]!=null)?i.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ne.propHooks.scrollTop=Ne.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},i.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},i.fx=Ne.prototype.init,i.fx.step={};var it,Ot,pt=/^(?:toggle|show|hide)$/,Er=/queueHooks$/;function $n(){Ot&&(q.hidden===!1&&c.requestAnimationFrame?c.requestAnimationFrame($n):c.setTimeout($n,i.fx.interval),i.fx.tick())}function Yn(){return c.setTimeout(function(){it=void 0}),it=Date.now()}function mn(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)n=de[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function Kn(e,t,n){for(var r,o=(ot.tweeners[t]||[]).concat(ot.tweeners["*"]),a=0,s=o.length;a1)},removeAttr:function(e){return this.each(function(){i.removeAttr(this,e)})}}),i.extend({attr:function(e,t,n){var r,o,a=e.nodeType;if(!(a===3||a===8||a===2)){if(typeof e.getAttribute=="undefined")return i.prop(e,t,n);if((a!==1||!i.isXMLDoc(e))&&(o=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?dr:void 0)),n!==void 0){if(n===null){i.removeAttr(e,t);return}return o&&"set"in o&&(r=o.set(e,n,t))!==void 0?r:(e.setAttribute(t,n+""),n)}return o&&"get"in o&&(r=o.get(e,t))!==null?r:(r=i.find.attr(e,t),r==null?void 0:r)}},attrHooks:{type:{set:function(e,t){if(!W.radioValue&&t==="radio"&&ne(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(Ie);if(o&&e.nodeType===1)for(;n=o[r++];)e.removeAttribute(n)}}),dr={set:function(e,t,n){return t===!1?i.removeAttr(e,n):e.setAttribute(n,n),n}},i.each(i.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Qt[t]||i.find.attr;Qt[t]=function(r,o,a){var s,d,l=o.toLowerCase();return a||(d=Qt[l],Qt[l]=s,s=n(r,o,a)!=null?l:null,Qt[l]=d),s}});var Dn=/^(?:input|select|textarea|button)$/i,Vn=/^(?:a|area)$/i;i.fn.extend({prop:function(e,t){return Le(this,i.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[i.propFix[e]||e]})}}),i.extend({prop:function(e,t,n){var r,o,a=e.nodeType;if(!(a===3||a===8||a===2))return(a!==1||!i.isXMLDoc(e))&&(t=i.propFix[t]||t,o=i.propHooks[t]),n!==void 0?o&&"set"in o&&(r=o.set(e,n,t))!==void 0?r:e[t]=n:o&&"get"in o&&(r=o.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=i.find.attr(e,"tabindex");return t?parseInt(t,10):Dn.test(e.nodeName)||Vn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),W.optSelected||(i.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});function N(e){var t=e.match(Ie)||[];return t.join(" ")}function u(e){return e.getAttribute&&e.getAttribute("class")||""}function y(e){return Array.isArray(e)?e:typeof e=="string"?e.match(Ie)||[]:[]}i.fn.extend({addClass:function(e){var t,n,r,o,a,s;return z(e)?this.each(function(d){i(this).addClass(e.call(this,d,u(this)))}):(t=y(e),t.length?this.each(function(){if(r=u(this),n=this.nodeType===1&&" "+N(r)+" ",n){for(a=0;a-1;)n=n.replace(" "+o+" "," ");s=N(n),r!==s&&this.setAttribute("class",s)}}):this):this.attr("class","")},toggleClass:function(e,t){var n,r,o,a,s=typeof e,d=s==="string"||Array.isArray(e);return z(e)?this.each(function(l){i(this).toggleClass(e.call(this,l,u(this),t),t)}):typeof t=="boolean"&&d?t?this.addClass(e):this.removeClass(e):(n=y(e),this.each(function(){if(d)for(a=i(this),o=0;o-1)return!0;return!1}});var w=/\r/g;i.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=z(e),this.each(function(a){var s;this.nodeType===1&&(r?s=e.call(this,a,i(this).val()):s=e,s==null?s="":typeof s=="number"?s+="":Array.isArray(s)&&(s=i.map(s,function(d){return d==null?"":d+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],(!t||!("set"in t)||t.set(this,s,"value")===void 0)&&(this.value=s))})):o?(t=i.valHooks[o.type]||i.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(o,"value"))!==void 0?n:(n=o.value,typeof n=="string"?n.replace(w,""):n==null?"":n)):void 0}}),i.extend({valHooks:{option:{get:function(e){var t=i.find.attr(e,"value");return t!=null?t:N(i.text(e))}},select:{get:function(e){var t,n,r,o=e.options,a=e.selectedIndex,s=e.type==="select-one",d=s?null:[],l=s?a+1:o.length;for(a<0?r=l:r=s?a:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=i.inArray(i(e).val(),t)>-1}},W.checkOn||(i.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var P=c.location,U={guid:Date.now()},V=/\?/;i.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{t=new c.DOMParser().parseFromString(e,"text/xml")}catch(r){}return n=t&&t.getElementsByTagName("parsererror")[0],(!t||n)&&i.error("Invalid XML: "+(n?i.map(n.childNodes,function(r){return r.textContent}).join(` +`):e)),t};var he=/^(?:focusinfocus|focusoutblur)$/,Te=function(e){e.stopPropagation()};i.extend(i.event,{trigger:function(e,t,n,r){var o,a,s,d,l,g,S,A,b=[n||q],D=Ae.call(e,"type")?e.type:e,X=Ae.call(e,"namespace")?e.namespace.split("."):[];if(a=A=s=n=n||q,!(n.nodeType===3||n.nodeType===8)&&!he.test(D+i.event.triggered)&&(D.indexOf(".")>-1&&(X=D.split("."),D=X.shift(),X.sort()),l=D.indexOf(":")<0&&"on"+D,e=e[i.expando]?e:new i.Event(D,typeof e=="object"&&e),e.isTrigger=r?2:3,e.namespace=X.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+X.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=t==null?[e]:i.makeArray(t,[e]),S=i.event.special[D]||{},!(!r&&S.trigger&&S.trigger.apply(n,t)===!1))){if(!r&&!S.noBubble&&!Je(n)){for(d=S.delegateType||D,he.test(d+D)||(a=a.parentNode);a;a=a.parentNode)b.push(a),s=a;s===(n.ownerDocument||q)&&b.push(s.defaultView||s.parentWindow||c)}for(o=0;(a=b[o++])&&!e.isPropagationStopped();)A=a,e.type=o>1?d:S.bindType||D,g=(k.get(a,"events")||Object.create(null))[e.type]&&k.get(a,"handle"),g&&g.apply(a,t),g=l&&a[l],g&&g.apply&&Ct(a)&&(e.result=g.apply(a,t),e.result===!1&&e.preventDefault());return e.type=D,!r&&!e.isDefaultPrevented()&&(!S._default||S._default.apply(b.pop(),t)===!1)&&Ct(n)&&l&&z(n[D])&&!Je(n)&&(s=n[l],s&&(n[l]=null),i.event.triggered=D,e.isPropagationStopped()&&A.addEventListener(D,Te),n[D](),e.isPropagationStopped()&&A.removeEventListener(D,Te),i.event.triggered=void 0,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var r=i.extend(new i.Event,n,{type:e,isSimulated:!0});i.event.trigger(r,null,t)}}),i.fn.extend({trigger:function(e,t){return this.each(function(){i.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return i.event.trigger(e,t,n,!0)}});var $e=/\[\]$/,ze=/\r?\n/g,Xn=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function wr(e,t,n,r){var o;if(Array.isArray(t))i.each(t,function(a,s){n||$e.test(e)?r(e,s):wr(e+"["+(typeof s=="object"&&s!=null?a:"")+"]",s,n,r)});else if(!n&&st(t)==="object")for(o in t)wr(e+"["+o+"]",t[o],n,r);else r(e,t)}i.param=function(e,t){var n,r=[],o=function(a,s){var d=z(s)?s():s;r[r.length]=encodeURIComponent(a)+"="+encodeURIComponent(d==null?"":d)};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!i.isPlainObject(e))i.each(e,function(){o(this.name,this.value)});else for(n in e)wr(n,e[n],t,o);return r.join("&")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=i.prop(this,"elements");return e?i.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!i(this).is(":disabled")&&Fe.test(this.nodeName)&&!Xn.test(e)&&(this.checked||!zt.test(e))}).map(function(e,t){var n=i(this).val();return n==null?null:Array.isArray(n)?i.map(n,function(r){return{name:t.name,value:r.replace(ze,`\r `)}}):{name:t.name,value:n.replace(ze,`\r -`)}}).get()}});var Li=/%20/g,ki=/#.*$/,Mi=/([?&])_=[^&]*/,Ri=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ii=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pi=/^(?:GET|HEAD)$/,Hi=/^\/\//,Xr={},wr={},Qr="*/".concat("*"),Cr=q.createElement("a");Cr.href=P.href;function Zr(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,o=0,a=t.toLowerCase().match(Ie)||[];if(z(n))for(;r=a[o++];)r[0]==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Jr(e,t,n,r){var o={},a=e===wr;function s(d){var l;return o[d]=!0,i.each(e[d]||[],function(g,S){var A=S(t,n,r);if(typeof A=="string"&&!a&&!o[A])return t.dataTypes.unshift(A),s(A),!1;if(a)return!(l=A)}),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function _r(e,t){var n,r,o=i.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&i.extend(!0,e,r),e}function ji(e,t,n){for(var r,o,a,s,d=e.contents,l=e.dataTypes;l[0]==="*";)l.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r){for(o in d)if(d[o]&&d[o].test(r)){l.unshift(o);break}}if(l[0]in n)a=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}s||(s=o)}a=a||s}if(a)return a!==l[0]&&l.unshift(a),n[a]}function zi(e,t,n,r){var o,a,s,d,l,g={},S=e.dataTypes.slice();if(S[1])for(s in e.converters)g[s.toLowerCase()]=e.converters[s];for(a=S.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=S.shift(),a){if(a==="*")a=l;else if(l!=="*"&&l!==a){if(s=g[l+" "+a]||g["* "+a],!s){for(o in g)if(d=o.split(" "),d[1]===a&&(s=g[l+" "+d[0]]||g["* "+d[0]],s)){s===!0?s=g[o]:g[o]!==!0&&(a=d[0],S.unshift(d[1]));break}}if(s!==!0)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(A){return{state:"parsererror",error:s?A:"No conversion from "+l+" to "+a}}}}return{state:"success",data:t}}i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:P.href,type:"GET",isLocal:Ii.test(P.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qr,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":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_r(_r(e,i.ajaxSettings),t):_r(i.ajaxSettings,e)},ajaxPrefilter:Zr(Xr),ajaxTransport:Zr(wr),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var n,r,o,a,s,d,l,g,S,A,b=i.ajaxSetup({},t),D=b.context||b,X=b.context&&(D.nodeType||D.jquery)?i(D):i.event,se=i.Deferred(),ee=i.Callbacks("once memory"),Ue=b.statusCode||{},Oe={},Ot={},Lt="canceled",ae={readyState:0,getResponseHeader:function(le){var Ce;if(l){if(!a)for(a={};Ce=Ri.exec(o);)a[Ce[1].toLowerCase()+" "]=(a[Ce[1].toLowerCase()+" "]||[]).concat(Ce[2]);Ce=a[le.toLowerCase()+" "]}return Ce==null?null:Ce.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(le,Ce){return l==null&&(le=Ot[le.toLowerCase()]=Ot[le.toLowerCase()]||le,Oe[le]=Ce),this},overrideMimeType:function(le){return l==null&&(b.mimeType=le),this},statusCode:function(le){var Ce;if(le)if(l)ae.always(le[ae.status]);else for(Ce in le)Ue[Ce]=[Ue[Ce],le[Ce]];return this},abort:function(le){var Ce=le||Lt;return n&&n.abort(Ce),gn(0,Ce),this}};if(se.promise(ae),b.url=((e||b.url||P.href)+"").replace(Hi,P.protocol+"//"),b.type=t.method||t.type||b.method||b.type,b.dataTypes=(b.dataType||"*").toLowerCase().match(Ie)||[""],b.crossDomain==null){d=q.createElement("a");try{d.href=b.url,d.href=d.href,b.crossDomain=Cr.protocol+"//"+Cr.host!=d.protocol+"//"+d.host}catch(le){b.crossDomain=!0}}if(b.data&&b.processData&&typeof b.data!="string"&&(b.data=i.param(b.data,b.traditional)),Jr(Xr,b,t,ae),l)return ae;g=i.event&&b.global,g&&i.active++===0&&i.event.trigger("ajaxStart"),b.type=b.type.toUpperCase(),b.hasContent=!Pi.test(b.type),r=b.url.replace(ki,""),b.hasContent?b.data&&b.processData&&(b.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(b.data=b.data.replace(Li,"+")):(A=b.url.slice(r.length),b.data&&(b.processData||typeof b.data=="string")&&(r+=(V.test(r)?"&":"?")+b.data,delete b.data),b.cache===!1&&(r=r.replace(Mi,"$1"),A=(V.test(r)?"&":"?")+"_="+U.guid+++A),b.url=r+A),b.ifModified&&(i.lastModified[r]&&ae.setRequestHeader("If-Modified-Since",i.lastModified[r]),i.etag[r]&&ae.setRequestHeader("If-None-Match",i.etag[r])),(b.data&&b.hasContent&&b.contentType!==!1||t.contentType)&&ae.setRequestHeader("Content-Type",b.contentType),ae.setRequestHeader("Accept",b.dataTypes[0]&&b.accepts[b.dataTypes[0]]?b.accepts[b.dataTypes[0]]+(b.dataTypes[0]!=="*"?", "+Qr+"; q=0.01":""):b.accepts["*"]);for(S in b.headers)ae.setRequestHeader(S,b.headers[S]);if(b.beforeSend&&(b.beforeSend.call(D,ae,b)===!1||l))return ae.abort();if(Lt="abort",ee.add(b.complete),ae.done(b.success),ae.fail(b.error),n=Jr(wr,b,t,ae),!n)gn(-1,"No Transport");else{if(ae.readyState=1,g&&X.trigger("ajaxSend",[ae,b]),l)return ae;b.async&&b.timeout>0&&(s=c.setTimeout(function(){ae.abort("timeout")},b.timeout));try{l=!1,n.send(Oe,gn)}catch(le){if(l)throw le;gn(-1,le)}}function gn(le,Ce,Zn,Nr){var kt,Jn,Mt,Xt,Qt,pt=Ce;l||(l=!0,s&&c.clearTimeout(s),n=void 0,o=Nr||"",ae.readyState=le>0?4:0,kt=le>=200&&le<300||le===304,Zn&&(Xt=ji(b,ae,Zn)),!kt&&i.inArray("script",b.dataTypes)>-1&&i.inArray("json",b.dataTypes)<0&&(b.converters["text script"]=function(){}),Xt=zi(b,Xt,ae,kt),kt?(b.ifModified&&(Qt=ae.getResponseHeader("Last-Modified"),Qt&&(i.lastModified[r]=Qt),Qt=ae.getResponseHeader("etag"),Qt&&(i.etag[r]=Qt)),le===204||b.type==="HEAD"?pt="nocontent":le===304?pt="notmodified":(pt=Xt.state,Jn=Xt.data,Mt=Xt.error,kt=!Mt)):(Mt=pt,(le||!pt)&&(pt="error",le<0&&(le=0))),ae.status=le,ae.statusText=(Ce||pt)+"",kt?se.resolveWith(D,[Jn,pt,ae]):se.rejectWith(D,[ae,pt,Mt]),ae.statusCode(Ue),Ue=void 0,g&&X.trigger(kt?"ajaxSuccess":"ajaxError",[ae,b,kt?Jn:Mt]),ee.fireWith(D,[ae,pt]),g&&(X.trigger("ajaxComplete",[ae,b]),--i.active||i.event.trigger("ajaxStop")))}return ae},getJSON:function(e,t,n){return i.get(e,t,n,"json")},getScript:function(e,t){return i.get(e,void 0,t,"script")}}),i.each(["get","post"],function(e,t){i[t]=function(n,r,o,a){return z(r)&&(a=a||o,o=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:a,data:r,success:o},i.isPlainObject(n)&&n))}}),i.ajaxPrefilter(function(e){var t;for(t in e.headers)t.toLowerCase()==="content-type"&&(e.contentType=e.headers[t]||"")}),i._evalUrl=function(e,t,n){return i.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(r){i.globalEval(r,t,n)}})},i.fn.extend({wrapAll:function(e){var t;return this[0]&&(z(e)&&(e=e.call(this[0])),t=i(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(e){return z(e)?this.each(function(t){i(this).wrapInner(e.call(this,t))}):this.each(function(){var t=i(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=z(e);return this.each(function(n){i(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(e){return!i.expr.pseudos.visible(e)},i.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new c.XMLHttpRequest}catch(e){}};var Fi={0:200,1223:204},Qn=i.ajaxSettings.xhr();W.cors=!!Qn&&"withCredentials"in Qn,W.ajax=Qn=!!Qn,i.ajaxTransport(function(e){var t,n;if(W.cors||Qn&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),!e.crossDomain&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");for(a in r)s.setRequestHeader(a,r[a]);t=function(d){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,d==="abort"?s.abort():d==="error"?typeof s.status!="number"?o(0,"error"):o(s.status,s.statusText):o(Fi[s.status]||s.status,s.statusText,(s.responseType||"text")!=="text"||typeof s.responseText!="string"?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),s.onabort!==void 0?s.onabort=n:s.onreadystatechange=function(){s.readyState===4&&c.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(d){if(t)throw d}},abort:function(){t&&t()}}}),i.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return i.globalEval(e),e}}}),i.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),i.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,o){t=i("