diff --git a/www/webxdc/assets/index-legacy-CpC3q1r5.js b/www/webxdc/assets/index-legacy-CpC3q1r5.js new file mode 100644 index 000000000..11799fd4a --- /dev/null +++ b/www/webxdc/assets/index-legacy-CpC3q1r5.js @@ -0,0 +1,28 @@ +!function(){function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var r,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(r){f=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new q(n||[]);return a(i,"_invoke",{value:P(e,r,s)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var p="suspendedStart",v="suspendedYield",m="executing",g="completed",b={};function y(){}function w(){}function _(){}var k={};f(k,l,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(I([])));S&&S!==o&&i.call(S,l)&&(k=S);var E=_.prototype=y.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,r){function n(o,a,s,l){var u=h(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==t(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):r.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(i,i):i()}})}function P(e,t,n){var o=p;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:r,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=N(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=h(e,t,n);if("normal"===u.type){if(o=n.done?g:v,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function N(e,t){var n=t.method,o=e.iterator[n];if(o===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,N(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}},n}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r>4}function N(e){return 15&e}function T(e){return-1!=="0123456789".indexOf(e)}function O(e){var t=N(e),r=P(e);return"abcdefgh".substring(t,t+1)+"87654321".substring(r,r+1)}function q(e){return e===a?s:a}function I(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:m.NORMAL,s=P(n);if(o!==l||7!==s&&0!==s)e.push({color:t,from:r,to:n,piece:o,captured:i,flags:a});else for(var u=0;u="a"&&t<="h"){if(e.match(/[a-h]\d.*[a-h]\d/))return;return l}return"o"===(t=t.toLowerCase())?d:t}function j(e){return e.replace(/=/,"").replace(/[+#]?[?!]*$/,"")}function R(e){return e.split(" ").slice(0,4).join(" ")}var M,D,z,U,K,F,Q,B,G,H,W,Y,X,J,V,Z,ee,te,re,ne,oe,ie,ae,se,le,ue,ce,fe,de,he,pe,ve,me,ge,be,ye,we,_e,ke,xe,Se,Ee,Ce,Ae,Pe,Ne,Te=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n(this,"_board",new Array(128)),n(this,"_turn",a),n(this,"_header",{}),n(this,"_kings",{w:p,b:p}),n(this,"_epSquare",-1),n(this,"_halfMoves",0),n(this,"_moveNumber",0),n(this,"_history",[]),n(this,"_comments",{}),n(this,"_castling",{w:0,b:0}),n(this,"_positionCount",{}),this.load(t)},o=[{key:"clear",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).preserveHeaders,t=void 0!==e&&e;this._board=new Array(128),this._kings={w:p,b:p},this._turn=a,this._castling={w:0,b:0},this._epSquare=p,this._halfMoves=0,this._moveNumber=1,this._history=[],this._comments={},this._header=t?this._header:{},this._positionCount={},delete this._header.SetUp,delete this._header.FEN}},{key:"removeHeader",value:function(e){e in this._header&&delete this._header[e]}},{key:"load",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.skipValidation,n=void 0!==r&&r,o=t.preserveHeaders,i=void 0!==o&&o,l=e.split(/\s+/);if(l.length>=2&&l.length<6&&(e=l.concat(["-","-","0","1"].slice(-(6-l.length))).join(" ")),l=e.split(/\s+/),!n){var u=function(e){var t=e.split(/\s+/);if(6!==t.length)return{ok:!1,error:"Invalid FEN: must contain six space-delimited fields"};var r=parseInt(t[5],10);if(isNaN(r)||r<=0)return{ok:!1,error:"Invalid FEN: move number must be a positive integer"};var n=parseInt(t[4],10);if(isNaN(n)||n<0)return{ok:!1,error:"Invalid FEN: half move counter number must be a non-negative integer"};if(!/^(-|[abcdefgh][36])$/.test(t[3]))return{ok:!1,error:"Invalid FEN: en-passant square is invalid"};if(/[^kKqQ-]/.test(t[2]))return{ok:!1,error:"Invalid FEN: castling availability is invalid"};if(!/^(w|b)$/.test(t[1]))return{ok:!1,error:"Invalid FEN: side-to-move is invalid"};var o=t[0].split("/");if(8!==o.length)return{ok:!1,error:"Invalid FEN: piece data does not contain 8 '/'-delimited rows"};for(var i=0;i1)return{ok:!1,error:"Invalid FEN: too many ".concat(d," kings")}}return Array.from(o[0]+o[7]).some((function(e){return"P"===e.toUpperCase()}))?{ok:!1,error:"Invalid FEN: some pawns are on the edge rows"}:{ok:!0}}(e),c=u.ok,f=u.error;if(!c)throw new Error(f)}var d=l[0],h=0;this.clear({preserveHeaders:i});for(var v=0;v-1&&(this._castling.w|=m.KSIDE_CASTLE),l[2].indexOf("Q")>-1&&(this._castling.w|=m.QSIDE_CASTLE),l[2].indexOf("k")>-1&&(this._castling.b|=m.KSIDE_CASTLE),l[2].indexOf("q")>-1&&(this._castling.b|=m.QSIDE_CASTLE),this._epSquare="-"===l[3]?p:g[l[3]],this._halfMoves=parseInt(l[4],10),this._moveNumber=parseInt(l[5],10),this._updateSetup(e),this._incPositionCount(e)}},{key:"fen",value:function(){for(var e=0,t="",r=g.a8;r<=g.h1;r++){if(this._board[r]){e>0&&(t+=e,e=0);var n=this._board[r],o=n.color,i=n.type;t+=o===a?i.toUpperCase():i.toLowerCase()}else e++;r+1&136&&(e>0&&(t+=e),r!==g.h1&&(t+="/"),e=0,r+=8)}var u="";this._castling[a]&m.KSIDE_CASTLE&&(u+="K"),this._castling[a]&m.QSIDE_CASTLE&&(u+="Q"),this._castling[s]&m.KSIDE_CASTLE&&(u+="k"),this._castling[s]&m.QSIDE_CASTLE&&(u+="q"),u=u||"-";var c="-";if(this._epSquare!==p)for(var f=this._epSquare+(this._turn===a?16:-16),d=0,h=[f+1,f-1];d0||(e!==h?(this._header.SetUp="1",this._header.FEN=e):(delete this._header.SetUp,delete this._header.FEN))}},{key:"reset",value:function(){this.load(h)}},{key:"get",value:function(e){return this._board[g[e]]||!1}},{key:"put",value:function(e,t){var r=e.type,n=e.color;return!!this._put({type:r,color:n},t)&&(this._updateCastlingRights(),this._updateEnPassantSquare(),this._updateSetup(this.fen()),!0)}},{key:"_put",value:function(e,t){var r=e.type,n=e.color;if(-1==="pnbrqkPNBRQK".indexOf(r.toLowerCase()))return!1;if(!(t in g))return!1;var o=g[t];if(r==d&&this._kings[n]!=p&&this._kings[n]!=o)return!1;var i=this._board[o];return i&&i.type===d&&(this._kings[i.color]=p),this._board[o]={type:r,color:n},r===d&&(this._kings[n]=o),!0}},{key:"remove",value:function(e){var t=this.get(e);return delete this._board[g[e]],t&&t.type===d&&(this._kings[t.color]=p),this._updateCastlingRights(),this._updateEnPassantSquare(),this._updateSetup(this.fen()),t}},{key:"_updateCastlingRights",value:function(){var e,t,r,n,o,i,l,u,f,h,p,v,b=(null===(e=this._board[g.e1])||void 0===e?void 0:e.type)===d&&(null===(t=this._board[g.e1])||void 0===t?void 0:t.color)===a,y=(null===(r=this._board[g.e8])||void 0===r?void 0:r.type)===d&&(null===(n=this._board[g.e8])||void 0===n?void 0:n.color)===s;b&&(null===(o=this._board[g.a1])||void 0===o?void 0:o.type)===c&&(null===(i=this._board[g.a1])||void 0===i?void 0:i.color)===a||(this._castling.w&=~m.QSIDE_CASTLE),b&&(null===(l=this._board[g.h1])||void 0===l?void 0:l.type)===c&&(null===(u=this._board[g.h1])||void 0===u?void 0:u.color)===a||(this._castling.w&=~m.KSIDE_CASTLE),y&&(null===(f=this._board[g.a8])||void 0===f?void 0:f.type)===c&&(null===(h=this._board[g.a8])||void 0===h?void 0:h.color)===s||(this._castling.b&=~m.QSIDE_CASTLE),y&&(null===(p=this._board[g.h8])||void 0===p?void 0:p.type)===c&&(null===(v=this._board[g.h8])||void 0===v?void 0:v.color)===s||(this._castling.b&=~m.KSIDE_CASTLE)}},{key:"_updateEnPassantSquare",value:function(){var e,t,r=this;if(this._epSquare!==p){var n=this._epSquare+(this._turn===a?-16:16),o=this._epSquare+(this._turn===a?16:-16),i=[o+1,o-1];null===this._board[n]&&null===this._board[this._epSquare]&&(null===(e=this._board[o])||void 0===e?void 0:e.color)===q(this._turn)&&(null===(t=this._board[o])||void 0===t?void 0:t.type)===l&&i.some((function(e){var t,n;return!(136&e)&&(null===(t=r._board[e])||void 0===t?void 0:t.color)===r._turn&&(null===(n=r._board[e])||void 0===n?void 0:n.type)===l}))||(this._epSquare=p)}}},{key:"_attacked",value:function(e,t){for(var r=g.a8;r<=g.h1;r++)if(136&r)r+=7;else if(void 0!==this._board[r]&&this._board[r].color===e){var n=this._board[r],o=r-t;if(0!==o){var i=o+119;if(w[i]&k[n.type]){if(n.type===l){if(o>0){if(n.color===a)return!0}else if(n.color===s)return!0;continue}if("n"===n.type||"k"===n.type)return!0;for(var u=_[i],c=r+u,f=!1;c!==t;){if(null!=this._board[c]){f=!0;break}c+=u}if(!f)return!0}}}return!1}},{key:"_isKingAttacked",value:function(e){var t=this._kings[e];return-1!==t&&this._attacked(q(e),t)}},{key:"isAttacked",value:function(e,t){return this._attacked(t,g[e])}},{key:"isCheck",value:function(){return this._isKingAttacked(this._turn)}},{key:"inCheck",value:function(){return this.isCheck()}},{key:"isCheckmate",value:function(){return this.isCheck()&&0===this._moves().length}},{key:"isStalemate",value:function(){return!this.isCheck()&&0===this._moves().length}},{key:"isInsufficientMaterial",value:function(){for(var e={b:0,n:0,r:0,q:0,k:0,p:0},t=[],r=0,n=0,o=g.a8;o<=g.h1;o++)if(n=(n+1)%2,136&o)o+=7;else{var i=this._board[o];i&&(e[i.type]=i.type in e?e[i.type]+1:1,i.type===u&&t.push(n),r++)}if(2===r)return!0;if(3===r&&(1===e[u]||1===e.n))return!0;if(r===e[u]+2){for(var a=0,s=t.length,l=0;l=3}},{key:"isDraw",value:function(){return this._halfMoves>=100||this.isStalemate()||this.isInsufficientMaterial()||this.isThreefoldRepetition()}},{key:"isGameOver",value:function(){return this.isCheckmate()||this.isStalemate()||this.isDraw()}},{key:"moves",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.verbose,n=void 0!==r&&r,o=t.square,i=void 0===o?void 0:o,a=t.piece,s=void 0===a?void 0:a,l=this._moves({square:i,piece:s});return n?l.map((function(t){return e._makePretty(t)})):l.map((function(t){return e._moveToSan(t,l)}))}},{key:"_moves",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.legal,r=void 0===t||t,n=e.piece,o=void 0===n?void 0:n,i=e.square,a=void 0===i?void 0:i,s=a?a.toLowerCase():void 0,u=null==o?void 0:o.toLowerCase(),c=[],f=this._turn,h=q(f),p=g.a8,v=g.h1,w=!1;if(s){if(!(s in g))return[];p=v=g[s],w=!0}for(var _=p;_<=v;_++)if(136&_)_+=7;else if(this._board[_]&&this._board[_].color!==h){var k=this._board[_].type,x=void 0;if(k===l){if(u&&u!==k)continue;x=_+b[f][0],this._board[x]||(I(c,f,_,x,l),x=_+b[f][1],C[f]!==P(_)||this._board[x]||I(c,f,_,x,l,void 0,m.BIG_PAWN));for(var S=2;S<4;S++){var E;136&(x=_+b[f][S])||((null===(E=this._board[x])||void 0===E?void 0:E.color)===h?I(c,f,_,x,l,this._board[x].type,m.CAPTURE):x===this._epSquare&&I(c,f,_,x,l,l,m.EP_CAPTURE))}}else{if(u&&u!==k)continue;for(var A=0,N=y[k].length;A1&&void 0!==arguments[1]?arguments[1]:{}).strict,n=void 0!==r&&r,o=null;if("string"==typeof e)o=this._moveFromSan(e,n);else if("object"===t(e))for(var i=this._moves(),a=0,s=i.length;a0&&void 0!==arguments[0]?arguments[0]:{},r=t.newline,n=void 0===r?"\n":r,o=t.maxWidth,a=void 0===o?0:o,s=[],l=!1;for(var u in this._header)s.push("["+u+' "'+this._header[u]+'"]'+n),l=!0;l&&this._history.length&&s.push(n);for(var c=function(t){var r=e._comments[e.fen()];if(void 0!==r){var n=t.length>0?" ":"";t="".concat(t).concat(n,"{").concat(r,"}")}return t},f=[];this._history.length>0;)f.push(this._undoMove());var d=[],h="";for(0===f.length&&d.push(c(""));f.length>0;){h=c(h);var p=f.pop();if(!p)break;if(this._history.length||"b"!==p.color)"w"===p.color&&(h.length&&d.push(h),h=this._moveNumber+".");else{var v="".concat(this._moveNumber,". ...");h=h?"".concat(h," ").concat(v):v}h=h+" "+this._moveToSan(p,this._moves({legal:!0})),this._makeMove(p)}if(h.length&&d.push(c(h)),void 0!==this._header.Result&&d.push(this._header.Result),0===a)return s.join("")+d.join(" ");for(var m=function(){return s.length>0&&" "===s[s.length-1]&&(s.pop(),!0)},g=function(e,t){var r,o=i(t.split(" "));try{for(o.s();!(r=o.n()).done;){var l=r.value;if(l){if(e+l.length>a){for(;m();)e--;s.push(n),e=0}s.push(l),e+=l.length,s.push(" "),e++}}}catch(u){o.e(u)}finally{o.f()}return m()&&e--,e},b=0,y=0;ya&&d[y].includes("{")?b=g(b,d[y]):(b+d[y].length>a&&0!==y?(" "===s[s.length-1]&&s.pop(),s.push(n),b=0):0!==y&&(s.push(" "),b++),s.push(d[y]),b+=d[y].length);return s.join("")}},{key:"header",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.strict,n=void 0!==r&&r,o=t.newlineChar,i=void 0===o?"\r?\n":o;function a(e){return e.replace(/\\/g,"\\")}e=e.trim();var s=new RegExp("^(\\[((?:"+a(i)+")|.)*\\])((?:\\s*"+a(i)+"){2}|(?:\\s*"+a(i)+")*$)").exec(e),l=s&&s.length>=2?s[1]:"";this.reset();var u=function(e){for(var t={},r=e.split(new RegExp(a(i))),n="",o="",s=0;s0&&(t[n]=o)}return t}(l),c="";for(var f in u)"fen"===f.toLowerCase()&&(c=u[f]),this.header(f,u[f]);if(n){if("1"===u.SetUp){if(!("FEN"in u))throw new Error("Invalid PGN: FEN tag must be supplied with SetUp tag");this.load(u.FEN,{preserveHeaders:!0})}}else c&&this.load(c,{preserveHeaders:!0});for(var d=function(e){return e=e.replace(new RegExp(a(i),"g")," "),"{".concat(function(e){return Array.from(e).map((function(e){return e.charCodeAt(0)<128?e.charCodeAt(0).toString(16):encodeURIComponent(e).replace(/%/g,"").toLowerCase()})).join("")}(e.slice(1,e.length-1)),"}")},h=function(e){if(e.startsWith("{")&&e.endsWith("}"))return function(e){return 0==e.length?"":decodeURIComponent("%"+(e.match(/.{1,2}/g)||[]).join("%"))}(e.slice(1,e.length-1))},p=e.replace(l,"").replace(new RegExp("({[^}]*})+?|;([^".concat(a(i),"]*)"),"g"),(function(e,t,r){return void 0!==t?d(t):" "+d("{".concat(r.slice(1),"}"))})).replace(new RegExp(a(i),"g")," "),v=/(\([^()]+\))+?/g;v.test(p);)p=p.replace(v,"");var m=(p=(p=(p=p.replace(/\d+\.(\.\.)?/g,"")).replace(/\.\.\./g,"")).replace(/\$\d+/g,"")).trim().split(new RegExp(/\s+/));m=m.filter((function(e){return""!==e}));for(var g="",b=0;b-1))throw new Error("Invalid move in PGN: ".concat(m[b]));g=m[b]}else g="",this._makeMove(w),this._incPositionCount(this.fen())}else this._comments[this.fen()]=y}g&&Object.keys(this._header).length&&!this._header.Result&&this.header("Result",g)}},{key:"_moveToSan",value:function(e,t){var r="";if(e.flags&m.KSIDE_CASTLE)r="O-O";else if(e.flags&m.QSIDE_CASTLE)r="O-O-O";else{if(e.piece!==l){var n=function(e,t){for(var r=e.from,n=e.to,o=e.piece,i=0,a=0,s=0,l=0,u=t.length;l0?a>0&&s>0?O(r):s>0?O(r).charAt(1):O(r).charAt(0):""}(e,t);r+=e.piece.toUpperCase()+n}e.flags&(m.CAPTURE|m.EP_CAPTURE)&&(e.piece===l&&(r+=O(e.from)[0]),r+="x"),r+=O(e.to),e.promotion&&(r+="="+e.promotion.toUpperCase())}return this._makeMove(e),this.isCheck()&&(this.isCheckmate()?r+="#":r+="+"),this._undoMove(),r}},{key:"_moveFromSan",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=j(e),n=L(r),o=this._moves({legal:!0,piece:n}),i=0,a=o.length;i0?r+=this.perft(e-1):r++),this._undoMove();return r}},{key:"_makePretty",value:function(e){var t=e.color,r=e.piece,n=e.from,o=e.to,i=e.flags,a=e.captured,s=e.promotion,l="";for(var u in m)m[u]&i&&(l+=v[u]);var c=O(n),f=O(o),d={color:t,piece:r,from:c,to:f,san:this._moveToSan(e,this._moves({legal:!0})),flags:l,lan:c+f,before:this.fen(),after:""};return this._makeMove(e),d.after=this.fen(),this._undoMove(),a&&(d.captured=a),s&&(d.promotion=s,d.lan+=s),d}},{key:"turn",value:function(){return this._turn}},{key:"board",value:function(){for(var e=[],t=[],r=g.a8;r<=g.h1;r++)null==this._board[r]?t.push(null):t.push({square:O(r),type:this._board[r].type,color:this._board[r].color}),r+1&136&&(e.push(t),t=[],r+=8);return e}},{key:"squareColor",value:function(e){if(e in g){var t=g[e];return(P(t)+N(t))%2==0?"light":"dark"}return null}},{key:"history",value:function(){for(var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).verbose,t=void 0!==e&&e,r=[],n=[];this._history.length>0;)r.push(this._undoMove());for(;;){var o=r.pop();if(!o)break;t?n.push(this._makePretty(o)):n.push(this._moveToSan(o,this._moves())),this._makeMove(o)}return n}},{key:"_getPositionCount",value:function(e){var t=R(e);return this._positionCount[t]||0}},{key:"_incPositionCount",value:function(e){var t=R(e);void 0===this._positionCount[t]&&(this._positionCount[t]=0),this._positionCount[t]+=1}},{key:"_decPositionCount",value:function(e){var t=R(e);1===this._positionCount[t]?delete this._positionCount[t]:this._positionCount[t]-=1}},{key:"_pruneComments",value:function(){for(var e=this,t=[],r={},n=function(t){t in e._comments&&(r[t]=e._comments[t])};this._history.length>0;)t.push(this._undoMove());for(n(this.fen());;){var o=t.pop();if(!o)break;this._makeMove(o),n(this.fen())}this._comments=r}},{key:"getComment",value:function(){return this._comments[this.fen()]}},{key:"setComment",value:function(e){this._comments[this.fen()]=e.replace("{","[").replace("}","]")}},{key:"deleteComment",value:function(){var e=this._comments[this.fen()];return delete this._comments[this.fen()],e}},{key:"getComments",value:function(){var e=this;return this._pruneComments(),Object.keys(this._comments).map((function(t){return{fen:t,comment:e._comments[t]}}))}},{key:"deleteComments",value:function(){var e=this;return this._pruneComments(),Object.keys(this._comments).map((function(t){var r=e._comments[t];return delete e._comments[t],{fen:t,comment:r}}))}},{key:"setCastlingRights",value:function(e,t){for(var r=0,n=[d,f];r16?e.substring(0,16)+"…":e}function Ie(){var e,t=qe("w"===Oe.game.turn()?Oe.whiteName:Oe.blackName);if(Oe.game.isCheckmate()){var r=qe("b"===Oe.game.turn()?Oe.whiteName:Oe.blackName);e="Checkmate! ".concat(r," wins 🎉")}else if(Oe.surrenderAddr){var n="b"===Oe.game.turn()?qe(Oe.whiteName):qe(Oe.blackName);e="".concat(t," surrenders, ").concat(n," wins 🎉")}else Oe.game.isDraw()?e="Game over, it is a draw! 🤝":(e="Turn: ".concat(t),Oe.game.inCheck()&&(e+=" (in check!)"));return e}function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function je(){if(D)return M;function e(e,t,r,n,o,i){return{tag:e,key:t,attrs:r,children:n,text:o,dom:i,domSize:void 0,state:void 0,events:void 0,instance:void 0}}return D=1,e.normalize=function(r){return Array.isArray(r)?e("[",void 0,void 0,e.normalizeChildren(r),void 0,void 0):null==r||"boolean"==typeof r?null:"object"===t(r)?r:e("#",void 0,void 0,String(r),void 0,void 0)},e.normalizeChildren=function(t){var r=[];if(t.length){for(var n=null!=t[0]&&null!=t[0].key,o=1;o0&&(s.className=a.join(" ")),function(e){for(var t in e)if(r.call(e,t))return!1;return!0}(s)&&(s=null),o[e]={tag:i,attrs:s}}return Q=function(n){if(null==n||"string"!=typeof n&&"function"!=typeof n&&"function"!=typeof n.view)throw Error("The selector must be either a string or a component.");var a=t.apply(1,arguments);return"string"==typeof n&&(a.children=e.normalizeChildren(a.children),"["!==n)?function(e,t){var n=t.attrs,o=r.call(n,"class"),i=o?n.class:n.className;return t.tag=e.tag,null!=e.attrs?(n=Object.assign({},e.attrs,n),null==i&&null==e.attrs.className||(n.className=null!=i?null!=e.attrs.className?String(e.attrs.className)+" "+String(i):i:null!=e.attrs.className?e.attrs.className:null)):null!=i&&(n.className=i),o&&(n.class=null),"input"===e.tag&&r.call(n,"type")&&(n=Object.assign({type:n.type},n)),t.attrs=n,t}(o[n]||i(n),a):(a.tag=n,a)},Q}function ze(){if(J)return X;J=1;var e=De();return e.trust=function(){if(H)return G;H=1;var e=je();return G=function(t){return null==t&&(t=""),e("<",void 0,void 0,t,void 0,void 0)}}(),e.fragment=function(){if(Y)return W;Y=1;var e=je(),t=Re();return W=function(){var r=t.apply(0,arguments);return r.tag="[",r.children=e.normalizeChildren(r.children),r},W}(),X=e}function Ue(){if(Z)return V;Z=1;var t=new WeakMap;return V={delayedRemoval:t,domFor:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e().mark((function o(){var i,a,s,l;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=r.dom,a=r.domSize,s=n.generation,null==i){e.next=11;break}case 4:if(l=i.nextSibling,t.get(i)!==s){e.next=9;break}return e.next=8,i;case 8:a--;case 9:i=l;case 10:if(a){e.next=4;break}case 11:case"end":return e.stop()}}),o)}))()}},V}function Ke(){if(te)return ee;te=1;var e=je(),r=Ue(),n=r.delayedRemoval,o=r.domFor;return ee=function(){var r,a,s={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"};function l(e){return e.ownerDocument}function u(e){return e.attrs&&e.attrs.xmlns||s[e.tag]}function c(e,t){if(e.state!==t)throw new Error("'vnode.state' must not be modified.")}function f(e){var t=e.state;try{return this.apply(t,arguments)}finally{c(e,t)}}function d(e){try{return l(e).activeElement}catch(t){return null}}function h(e,t,r,n,o,i,a){for(var s=r;s'+t.children+"",i=i.firstChild):i.innerHTML=t.children,t.dom=i.firstChild,t.domSize=i.childNodes.length;for(var a,s=l(e).createDocumentFragment();a=i.firstChild;)s.appendChild(a);S(e,s,n)}function g(e,t,r,n,o,i){if(t!==r&&(null!=t||null!=r))if(null==t||0===t.length)h(e,r,0,r.length,n,o,i);else if(null==r||0===r.length)C(e,t,0,t.length);else{var a=null!=t[0]&&null!=t[0].key,s=null!=r[0]&&null!=r[0].key,l=0,u=0;if(!a)for(;u=u&&w>=l&&(d=t[g],v=r[w],d.key===v.key);)d!==v&&b(e,d,v,n,o,i),null!=v.dom&&(o=v.dom),g--,w--;for(;g>=u&&w>=l&&(c=t[u],f=r[l],c.key===f.key);)u++,l++,c!==f&&b(e,c,f,n,k(t,u,o),i);for(;g>=u&&w>=l&&l!==w&&c.key===v.key&&d.key===f.key;)x(e,d,m=k(t,u,o)),d!==f&&b(e,d,f,n,m,i),++l<=--w&&x(e,c,o),c!==v&&b(e,c,v,n,o,i),null!=v.dom&&(o=v.dom),u++,d=t[--g],v=r[w],c=t[u],f=r[l];for(;g>=u&&w>=l&&d.key===v.key;)d!==v&&b(e,d,v,n,o,i),null!=v.dom&&(o=v.dom),w--,d=t[--g],v=r[w];if(l>w)C(e,t,u,g+1);else if(u>g)h(e,r,l,w+1,n,o,i);else{var S,E,P=o,N=w-l+1,T=new Array(N),O=0,q=0,I=2147483647,L=0;for(q=0;q=l;q--){null==S&&(S=y(t,u,g+1));var j=S[(v=r[q]).key];null!=j&&(I=j>>1)+(n>>>1)+(r&n&1);e[t[s]]0&&(_[o]=t[r-1]),t[r]=o)}}r=t.length,n=t[r-1];for(;r-- >0;)t[r]=n,n=_[n];return _.length=0,t}(T),O=E.length-1,q=w;q>=l;q--)f=r[q],-1===T[q-l]?p(e,f,n,i,o):E[O]===q-l?O--:x(e,f,o),null!=f.dom&&(o=r[q].dom);else for(q=w;q>=l;q--)f=r[q],-1===T[q-l]&&p(e,f,n,i,o),null!=f.dom&&(o=r[q].dom)}}else{var R=t.lengthR&&C(e,t,l,t.length),r.length>R&&h(e,r,l,r.length,n,o,i)}}}function b(t,r,n,o,i,a){var s=r.tag;if(s===n.tag){if(n.state=r.state,n.events=r.events,function(e,t){do{var r;if(null!=e.attrs&&"function"==typeof e.attrs.onbeforeupdate)if(void 0!==(r=f.call(e.attrs.onbeforeupdate,e,t))&&!r)break;if("string"!=typeof e.tag&&"function"==typeof e.state.onbeforeupdate)if(void 0!==(r=f.call(e.state.onbeforeupdate,e,t))&&!r)break;return!1}while(0);return e.dom=t.dom,e.domSize=t.domSize,e.instance=t.instance,e.attrs=t.attrs,e.children=t.children,e.text=t.text,!0}(n,r))return;if("string"==typeof s)switch(null!=n.attrs&&D(n.attrs,n,o),s){case"#":!function(e,t){e.children.toString()!==t.children.toString()&&(e.dom.nodeValue=t.children);t.dom=e.dom}(r,n);break;case"<":!function(e,t,r,n,o){t.children!==r.children?(P(e,t,void 0),m(e,r,n,o)):(r.dom=t.dom,r.domSize=t.domSize)}(t,r,n,a,i);break;case"[":!function(e,t,r,n,o,i){g(e,t.children,r.children,n,o,i);var a=0,s=r.children;if(r.dom=null,null!=s){for(var l=0;l-1||null!=e.attrs&&e.attrs.is||"href"!==t&&"list"!==t&&"form"!==t&&"width"!==t&&"height"!==t)&&t in e.dom}function L(e,r,n){if(r===n);else if(null==n)e.style="";else if("object"!==t(n))e.style=n;else if(null==r||"object"!==t(r))for(var o in e.style.cssText="",n){null!=(i=n[o])&&(o.includes("-")?e.style.setProperty(o,String(i)):e.style[o]=String(i))}else{for(var o in n){var i;null!=(i=n[o])&&(i=String(i))!==String(r[o])&&(o.includes("-")?e.style.setProperty(o,i):e.style[o]=i)}for(var o in r)null!=r[o]&&null==n[o]&&(o.includes("-")?e.style.removeProperty(o):e.style[o]="")}}function j(){this._=r}function R(e,n,o){if(null!=e.events){if(e.events._=r,e.events[n]===o)return;null==o||"function"!=typeof o&&"object"!==t(o)?(null!=e.events[n]&&e.dom.removeEventListener(n.slice(2),e.events,!1),e.events[n]=void 0):(null==e.events[n]&&e.dom.addEventListener(n.slice(2),e.events,!1),e.events[n]=o)}else null==o||"function"!=typeof o&&"object"!==t(o)||(e.events=new j,e.dom.addEventListener(n.slice(2),e.events,!1),e.events[n]=o)}function M(e,t,r){"function"==typeof e.oninit&&f.call(e.oninit,t),"function"==typeof e.oncreate&&r.push(f.bind(e.oncreate,t))}function D(e,t,r){"function"==typeof e.onupdate&&r.push(f.bind(e.onupdate,t))}return j.prototype=Object.create(null),j.prototype.handleEvent=function(e){var t,r=this["on"+e.type];"function"==typeof r?t=r.call(e.currentTarget,e):"function"==typeof r.handleEvent&&r.handleEvent(e),this._&&!1!==e.redraw&&(0,this._)(),!1===t&&(e.preventDefault(),e.stopPropagation())},function(t,n,o){if(!t)throw new TypeError("DOM element being rendered to does not exist.");if(null!=w&&t.contains(w))throw new TypeError("Node is currently being rendered to and thus is locked.");var i=r,s=w,l=[],u=d(t),c=t.namespaceURI;w=t,r="function"==typeof o?o:void 0,a={};try{null==t.vnodes&&(t.textContent=""),n=e.normalizeChildren(Array.isArray(n)?n:[n]),g(t,t.vnodes,n,l,null,"http://www.w3.org/1999/xhtml"===c?void 0:c),t.vnodes=n,null!=u&&d(t)!==u&&"function"==typeof u.focus&&u.focus();for(var f=0;f=0&&(o.splice(i,2),i<=a&&(a-=2),t(r,[])),null!=n&&(o.push(r,n),t(r,e(n),l))},redraw:l}},oe}()(e,"undefined"!=typeof requestAnimationFrame?requestAnimationFrame:null,"undefined"!=typeof console?console:null),ae}function Qe(){return ue?le:(ue=1,le=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return"";var t=[];for(var r in e)n(r,e[r]);return t.join("&");function n(e,r){if(Array.isArray(r))for(var o=0;o=0&&(p+=t.slice(n,i)),c>=0&&(p+=(n<0?"?":"&")+u.slice(c,d));var v=e(l);return v&&(p+=(n<0&&c<0?"?":"&")+v),o>=0&&(p+=t.slice(o)),f>=0&&(p+=(o<0?"":"&")+u.slice(f)),p},ce}function Ge(){if(he)return de;he=1;var e=Be(),t=Me();return de=function(r,n){function o(e){return new Promise(e)}function i(e,r){for(var n in e.headers)if(t.call(e.headers,n)&&n.toLowerCase()===r)return!0;return!1}return o.prototype=Promise.prototype,o.__proto__=Promise,{request:function(a,s){"string"!=typeof a?(s=a,a=a.url):null==s&&(s={});var l=function(n,o){return new Promise((function(a,s){n=e(n,o.params);var l,u=null!=o.method?o.method.toUpperCase():"GET",c=o.body,f=(null==o.serialize||o.serialize===JSON.serialize)&&!(c instanceof r.FormData||c instanceof r.URLSearchParams),d=o.responseType||("function"==typeof o.extract?"":"json"),h=new r.XMLHttpRequest,p=!1,v=!1,m=h,g=h.abort;for(var b in h.abort=function(){p=!0,g.call(this)},h.open(u,n,!1!==o.async,"string"==typeof o.user?o.user:void 0,"string"==typeof o.password?o.password:void 0),f&&null!=c&&!i(o,"content-type")&&h.setRequestHeader("Content-Type","application/json; charset=utf-8"),"function"==typeof o.deserialize||i(o,"accept")||h.setRequestHeader("Accept","application/json, text/*"),o.withCredentials&&(h.withCredentials=o.withCredentials),o.timeout&&(h.timeout=o.timeout),h.responseType=d,o.headers)t.call(o.headers,b)&&h.setRequestHeader(b,o.headers[b]);h.onreadystatechange=function(e){if(!p&&4===e.target.readyState)try{var t,r=e.target.status>=200&&e.target.status<300||304===e.target.status||/^file:\/\//i.test(n),i=e.target.response;if("json"===d){if(!e.target.responseType&&"function"!=typeof o.extract)try{i=JSON.parse(e.target.responseText)}catch(c){i=null}}else d&&"text"!==d||null==i&&(i=e.target.responseText);if("function"==typeof o.extract?(i=o.extract(e.target,o),r=!0):"function"==typeof o.deserialize&&(i=o.deserialize(i)),r){if("function"==typeof o.type)if(Array.isArray(i))for(var l=0;l-1&&u.pop();for(var f=0;f';for(var f=0;f<8;f++){var d=n[f]+o;t+='
',u.showNotation&&(("white"===e&&1===o||"black"===e&&8===o)&&(t+='
'+n[f]+"
"),0===f&&(t+='
'+o+"
")),t+="
",a="white"===a?"black":"white"}t+='
',a="white"===a?"black":"white","white"===e?o-=1:o+=1}return c(t,i)}(N,u.showNotation)),B(),u.sparePieces&&("white"===N?(E.html($("black")),C.html($("white"))):(E.html($("white")),C.html($("black"))))}function H(e){var t=l(T),r=l(e);k(t)!==k(r)&&(d(u.onChange)&&u.onChange(t,r),T=e)}function W(e,t){for(var r in M)if(M.hasOwnProperty(r)){var n=M[r];if(e>=n.left&&e=n.top&&t0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),B=t}function wr(){if(J)return V;J=1;var r=br(),t=p(),n=i().String;return V=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))}function Er(){if(Y)return H;Y=1;var r=wr();return H=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Sr(){if(K)return q;K=1;var r=gr(),t=pr(),n=yr(),e=Er(),i=Object;return q=e?function(r){return"symbol"==typeof r}:function(e){var o=r("Symbol");return t(o)&&n(o.prototype,i(e))}}function Or(){if(Q)return X;Q=1;var r=String;return X=function(t){try{return r(t)}catch(n){return"Object"}}}function xr(){if(rr)return Z;rr=1;var r=pr(),t=Or(),n=TypeError;return Z=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function jr(){if(nr)return tr;nr=1;var r=xr(),t=lr();return tr=function(n,e){var i=n[e];return t(i)?void 0:r(i)}}function Ir(){if(ir)return er;ir=1;var r=y(),t=pr(),n=dr(),e=TypeError;return er=function(i,o){var u,f;if("string"===o&&t(u=i.toString)&&!n(f=r(u,i)))return f;if(t(u=i.valueOf)&&!n(f=r(u,i)))return f;if("string"!==o&&t(u=i.toString)&&!n(f=r(u,i)))return f;throw new e("Can't convert object to primitive value")}}var Tr,Rr,Pr,Ar,kr,Cr,Nr,Mr,Lr,Dr,Fr,_r,Ur,$r,zr,Wr,Br,Gr,Vr,Jr,Hr,Yr,qr,Kr,Xr={exports:{}};function Qr(){return Rr?Tr:(Rr=1,Tr=!1)}function Zr(){if(Ar)return Pr;Ar=1;var r=i(),t=Object.defineProperty;return Pr=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(i){r[n]=e}return e}}function rt(){if(kr)return Xr.exports;kr=1;var r=Qr(),t=i(),n=Zr(),e="__core-js_shared__",o=Xr.exports=t[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.39.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Xr.exports}function tt(){if(Nr)return Cr;Nr=1;var r=rt();return Cr=function(t,n){return r[t]||(r[t]=n||{})}}function nt(){if(Lr)return Mr;Lr=1;var r=vr(),t=Object;return Mr=function(n){return t(r(n))}}function et(){if(Fr)return Dr;Fr=1;var r=cr(),t=nt(),n=r({}.hasOwnProperty);return Dr=Object.hasOwn||function(r,e){return n(t(r),e)}}function it(){if(Ur)return _r;Ur=1;var r=cr(),t=0,n=Math.random(),e=r(1..toString);return _r=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function ot(){if(zr)return $r;zr=1;var r=i(),t=tt(),n=et(),e=it(),o=wr(),u=Er(),f=r.Symbol,c=t("wks"),a=u?f.for||f:f&&f.withoutSetter||e;return $r=function(r){return n(c,r)||(c[r]=o&&n(f,r)?f[r]:a("Symbol."+r)),c[r]}}function ut(){if(Br)return Wr;Br=1;var r=y(),t=dr(),n=Sr(),e=jr(),i=Ir(),o=ot(),u=TypeError,f=o("toPrimitive");return Wr=function(o,c){if(!t(o)||n(o))return o;var a,s=e(o,f);if(s){if(void 0===c&&(c="default"),a=r(s,o,c),!t(a)||n(a))return a;throw new u("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(o,c)}}function ft(){if(Vr)return Gr;Vr=1;var r=ut(),t=Sr();return Gr=function(n){var e=r(n,"string");return t(e)?e:e+""}}function ct(){if(Hr)return Jr;Hr=1;var r=i(),t=dr(),n=r.document,e=t(n)&&t(n.createElement);return Jr=function(r){return e?n.createElement(r):{}}}function at(){if(qr)return Yr;qr=1;var r=d(),t=p(),n=ct();return Yr=!r&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function st(){if(Kr)return h;Kr=1;var r=d(),t=y(),n=ur(),e=fr(),i=hr(),o=ft(),u=et(),f=at(),c=Object.getOwnPropertyDescriptor;return h.f=r?c:function(r,a){if(r=i(r),a=o(a),f)try{return c(r,a)}catch(s){}if(u(r,a))return e(!t(n.f,r,a),r[a])},h}var lt,vt,ht,pt,dt,gt,yt,mt={};function bt(){if(vt)return lt;vt=1;var r=d(),t=p();return lt=r&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function wt(){if(pt)return ht;pt=1;var r=dr(),t=String,n=TypeError;return ht=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function Et(){if(dt)return mt;dt=1;var r=d(),t=at(),n=bt(),e=wt(),i=ft(),o=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",s="writable";return mt.f=r?n?function(r,t,n){if(e(r),t=i(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&s in n&&!n[s]){var o=f(r,t);o&&o[s]&&(r[t]=n.value,n={configurable:a in n?n[a]:o[a],enumerable:c in n?n[c]:o[c],writable:!1})}return u(r,t,n)}:u:function(r,n,f){if(e(r),n=i(n),e(f),t)try{return u(r,n,f)}catch(c){}if("get"in f||"set"in f)throw new o("Accessors not supported");return"value"in f&&(r[n]=f.value),r},mt}function St(){if(yt)return gt;yt=1;var r=d(),t=Et(),n=fr();return gt=r?function(r,e,i){return t.f(r,e,n(1,i))}:function(r,t,n){return r[t]=n,r}}var Ot,xt,jt,It,Tt,Rt,Pt,At,kt,Ct,Nt,Mt,Lt,Dt,Ft,_t={exports:{}};function Ut(){if(xt)return Ot;xt=1;var r=d(),t=et(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,u=i&&(!r||r&&e(n,"name").configurable);return Ot={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function $t(){if(It)return jt;It=1;var r=cr(),t=pr(),n=rt(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),jt=n.inspectSource}function zt(){if(Rt)return Tt;Rt=1;var r=i(),t=pr(),n=r.WeakMap;return Tt=t(n)&&/native code/.test(String(n))}function Wt(){if(At)return Pt;At=1;var r=tt(),t=it(),n=r("keys");return Pt=function(r){return n[r]||(n[r]=t(r))}}function Bt(){return Ct?kt:(Ct=1,kt={})}function Gt(){if(Mt)return Nt;Mt=1;var r,t,n,e=zt(),o=i(),u=dr(),f=St(),c=et(),a=rt(),s=Wt(),l=Bt(),v="Object already initialized",h=o.TypeError,p=o.WeakMap;if(e||a.state){var d=a.state||(a.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,r=function(r,t){if(d.has(r))throw new h(v);return t.facade=r,d.set(r,t),t},t=function(r){return d.get(r)||{}},n=function(r){return d.has(r)}}else{var g=s("state");l[g]=!0,r=function(r,t){if(c(r,g))throw new h(v);return t.facade=r,f(r,g,t),t},t=function(r){return c(r,g)?r[g]:{}},n=function(r){return c(r,g)}}return Nt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!u(n)||(e=t(n)).type!==r)throw new h("Incompatible receiver, "+r+" required");return e}}}}function Vt(){if(Lt)return _t.exports;Lt=1;var r=cr(),t=p(),n=pr(),e=et(),i=d(),o=Ut().CONFIGURABLE,u=$t(),f=Gt(),c=f.enforce,a=f.get,s=String,l=Object.defineProperty,v=r("".slice),h=r("".replace),g=r([].join),y=i&&!t((function(){return 8!==l((function(){}),"length",{value:8}).length})),m=String(String).split("String"),b=_t.exports=function(r,t,n){"Symbol("===v(s(t),0,7)&&(t="["+h(s(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||o&&r.name!==t)&&(i?l(r,"name",{value:t,configurable:!0}):r.name=t),y&&n&&e(n,"arity")&&r.length!==n.arity&&l(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?i&&l(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(f){}var u=c(r);return e(u,"source")||(u.source=g(m,"string"==typeof t?t:"")),r};return Function.prototype.toString=b((function(){return n(this)&&a(this).source||u(this)}),"toString"),_t.exports}function Jt(){if(Ft)return Dt;Ft=1;var r=pr(),t=Et(),n=Vt(),e=Zr();return Dt=function(i,o,u,f){f||(f={});var c=f.enumerable,a=void 0!==f.name?f.name:o;if(r(u)&&n(u,a,f),f.global)c?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(c=!0):delete i[o]}catch(s){}c?i[o]=u:t.f(i,o,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}}var Ht,Yt,qt,Kt,Xt,Qt,Zt,rn,tn,nn,en,on,un,fn,cn,an,sn,ln={};function vn(){if(Kt)return qt;Kt=1;var r=function(){if(Yt)return Ht;Yt=1;var r=Math.ceil,t=Math.floor;return Ht=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return qt=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function hn(){if(Qt)return Xt;Qt=1;var r=vn(),t=Math.max,n=Math.min;return Xt=function(e,i){var o=r(e);return o<0?t(o+i,0):n(o,i)}}function pn(){if(rn)return Zt;rn=1;var r=vn(),t=Math.min;return Zt=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function dn(){if(nn)return tn;nn=1;var r=pn();return tn=function(t){return r(t.length)}}function gn(){if(on)return en;on=1;var r=hr(),t=hn(),n=dn(),e=function(e){return function(i,o,u){var f=r(i),c=n(f);if(0===c)return!e&&-1;var a,s=t(u,c);if(e&&o!=o){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((e||s in f)&&f[s]===o)return e||s||0;return!e&&-1}};return en={includes:e(!0),indexOf:e(!1)}}function yn(){if(fn)return un;fn=1;var r=cr(),t=et(),n=hr(),e=gn().indexOf,i=Bt(),o=r([].push);return un=function(r,u){var f,c=n(r),a=0,s=[];for(f in c)!t(i,f)&&t(c,f)&&o(s,f);for(;u.length>a;)t(c,f=u[a++])&&(~e(s,f)||o(s,f));return s}}function mn(){return an?cn:(an=1,cn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function bn(){if(sn)return ln;sn=1;var r=yn(),t=mn().concat("length","prototype");return ln.f=Object.getOwnPropertyNames||function(n){return r(n,t)},ln}var wn,En,Sn,On,xn,jn,In,Tn,Rn,Pn,An,kn,Cn,Nn,Mn,Ln={};function Dn(){return wn||(wn=1,Ln.f=Object.getOwnPropertySymbols),Ln}function Fn(){if(Sn)return En;Sn=1;var r=gr(),t=cr(),n=bn(),e=Dn(),i=wt(),o=t([].concat);return En=r("Reflect","ownKeys")||function(r){var t=n.f(i(r)),u=e.f;return u?o(t,u(r)):t}}function _n(){if(xn)return On;xn=1;var r=et(),t=Fn(),n=st(),e=Et();return On=function(i,o,u){for(var f=t(o),c=e.f,a=n.f,s=0;ss;)n.f(r,u=c[s++],f[u]);return r},Xn}function re(){if(Yn)return Hn;Yn=1;var r=gr();return Hn=r("document","documentElement")}function te(){if(Kn)return qn;Kn=1;var r,t=wt(),n=Zn(),e=mn(),i=Bt(),o=re(),u=ct(),f=Wt(),c="prototype",a="script",s=f("IE_PROTO"),l=function(){},v=function(r){return"<"+a+">"+r+""},h=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(s){}var t,n,i;p="undefined"!=typeof document?document.domain&&r?h(r):(n=u("iframe"),i="java"+a+":",n.style.display="none",o.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):h(r);for(var f=e.length;f--;)delete p[c][e[f]];return p()};return i[s]=!0,qn=Object.create||function(r,e){var i;return null!==r?(l[c]=t(r),i=new l,l[c]=null,i[s]=r):i=p(),void 0===e?i:n.f(i,e)}}var ne,ee,ie,oe,ue,fe={};function ce(){if(ee)return ne;ee=1;var r=cr();return ne=r([].slice)}function ae(){if(ie)return fe;ie=1;var r=ar(),t=hr(),n=bn().f,e=ce(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return fe.f=function(o){return i&&"Window"===r(o)?function(r){try{return n(r)}catch(t){return e(i)}}(o):n(t(o))},fe}function se(){if(ue)return oe;ue=1;var r=Vt(),t=Et();return oe=function(n,e,i){return i.get&&r(i.get,e,{getter:!0}),i.set&&r(i.set,e,{setter:!0}),t.f(n,e,i)}}var le,ve,he,pe,de,ge,ye,me,be,we,Ee,Se,Oe,xe,je,Ie,Te,Re,Pe,Ae,ke,Ce,Ne,Me,Le={};function De(){if(le)return Le;le=1;var r=ot();return Le.f=r,Le}function Fe(){if(he)return ve;he=1;var r=i();return ve=r}function _e(){if(de)return pe;de=1;var r=Fe(),t=et(),n=De(),e=Et().f;return pe=function(i){var o=r.Symbol||(r.Symbol={});t(o,i)||e(o,i,{value:n.f(i)})}}function Ue(){if(ye)return ge;ye=1;var r=y(),t=gr(),n=ot(),e=Jt();return ge=function(){var i=t("Symbol"),o=i&&i.prototype,u=o&&o.valueOf,f=n("toPrimitive");o&&!o[f]&&e(o,f,(function(t){return r(u,this)}),{arity:1})}}function $e(){if(be)return me;be=1;var r=Et().f,t=et(),n=ot()("toStringTag");return me=function(e,i,o){e&&!o&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:i})}}function ze(){if(Ee)return we;Ee=1;var r=ar(),t=cr();return we=function(n){if("Function"===r(n))return t(n)}}function We(){if(Oe)return Se;Oe=1;var r=ze(),t=xr(),n=g(),e=r(r.bind);return Se=function(r,i){return t(r),void 0===i?r:n?e(r,i):function(){return r.apply(i,arguments)}},Se}function Be(){if(je)return xe;je=1;var r=ar();return xe=Array.isArray||function(t){return"Array"===r(t)}}function Ge(){if(Te)return Ie;Te=1;var r=cr(),t=p(),n=pr(),e=Wn(),i=gr(),o=$t(),u=function(){},f=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,a=r(c.exec),s=!c.test(u),l=function(r){if(!n(r))return!1;try{return f(u,[],r),!0}catch(t){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(c,o(r))}catch(t){return!0}};return v.sham=!0,Ie=!f||t((function(){var r;return l(l.call)||!l(Object)||!l((function(){r=!0}))||r}))?v:l}function Ve(){if(Pe)return Re;Pe=1;var r=Be(),t=Ge(),n=dr(),e=ot()("species"),i=Array;return Re=function(o){var u;return r(o)&&(u=o.constructor,(t(u)&&(u===i||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?i:u}}function Je(){if(ke)return Ae;ke=1;var r=Ve();return Ae=function(t,n){return new(r(t))(0===n?0:n)}}function He(){if(Ne)return Ce;Ne=1;var r=We(),t=cr(),n=sr(),e=nt(),i=dn(),o=Je(),u=t([].push),f=function(t){var f=1===t,c=2===t,a=3===t,s=4===t,l=6===t,v=7===t,h=5===t||l;return function(p,d,g,y){for(var m,b,w=e(p),E=n(w),S=i(E),O=r(d,g),x=0,j=y||o,I=f?j(p,S):c||v?j(p,0):void 0;S>x;x++)if((h||x in E)&&(b=O(m=E[x],x,w),t))if(f)I[x]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u(I,m)}else switch(t){case 4:return!1;case 7:u(I,m)}return l?-1:a||s?s:I}};return Ce={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}}var Ye,qe,Ke,Xe={};function Qe(){if(qe)return Ye;qe=1;var r=wr();return Ye=r&&!!Symbol.for&&!!Symbol.keyFor}var Ze,ri={};var ti,ni,ei,ii,oi,ui={};function fi(){if(ni)return ti;ni=1;var r=g(),t=Function.prototype,n=t.apply,e=t.call;return ti="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),ti}function ci(){if(oi)return ui;oi=1;var r=$n(),t=gr(),n=fi(),e=y(),i=cr(),o=p(),u=pr(),f=Sr(),c=ce(),a=function(){if(ii)return ei;ii=1;var r=cr(),t=Be(),n=pr(),e=ar(),i=Bn(),o=r([].push);return ei=function(r){if(n(r))return r;if(t(r)){for(var u=r.length,f=[],c=0;cm&&a(o,arguments[m]),o}));if(x.prototype=S,"Error"!==w?i?i(x,O):o(x,O,{name:!0}):l&&y in E&&(u(x,E,y),u(x,E,"prepareStackTrace")),o(x,E),!v)try{S.name!==w&&n(S,"name",w),S.constructor=x}catch(j){}return x}},Wi}!function(){if(Gi)return Vi;Gi=1;var r=$n(),t=i(),n=fi(),e=ro(),o="WebAssembly",u=t[o],f=7!==new Error("e",{cause:7}).cause,c=function(t,n){var i={};i[t]=e(t,n,f),r({global:!0,constructor:!0,arity:1,forced:f},i)},a=function(t,n){if(u&&u[t]){var i={};i[t]=e(o+"."+t,n,f),r({target:o,stat:!0,constructor:!0,arity:1,forced:f},i)}};c("Error",(function(r){return function(t){return n(r,this,arguments)}})),c("EvalError",(function(r){return function(t){return n(r,this,arguments)}})),c("RangeError",(function(r){return function(t){return n(r,this,arguments)}})),c("ReferenceError",(function(r){return function(t){return n(r,this,arguments)}})),c("SyntaxError",(function(r){return function(t){return n(r,this,arguments)}})),c("TypeError",(function(r){return function(t){return n(r,this,arguments)}})),c("URIError",(function(r){return function(t){return n(r,this,arguments)}})),a("CompileError",(function(r){return function(t){return n(r,this,arguments)}})),a("LinkError",(function(r){return function(t){return n(r,this,arguments)}})),a("RuntimeError",(function(r){return function(t){return n(r,this,arguments)}}))}();var to,no,eo,io,oo,uo,fo,co={};function ao(){if(no)return to;no=1;var r=TypeError;return to=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}}function so(){if(io)return eo;io=1;var r=d(),t=Et(),n=fr();return eo=function(e,i,o){r?t.f(e,i,n(0,o)):e[i]=o}}function lo(){if(uo)return oo;uo=1;var r=p(),t=ot(),n=br(),e=t("species");return oo=function(t){return n>=51||!r((function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}}!function(){if(fo)return co;fo=1;var r=$n(),t=p(),n=Be(),e=dr(),i=nt(),o=dn(),u=ao(),f=so(),c=Je(),a=lo(),s=ot(),l=br(),v=s("isConcatSpreadable"),h=l>=51||!t((function(){var r=[];return r[v]=!1,r.concat()[0]!==r})),d=function(r){if(!e(r))return!1;var t=r[v];return void 0!==t?!!t:n(r)};r({target:"Array",proto:!0,arity:1,forced:!h||!a("concat")},{concat:function(r){var t,n,e,a,s,l=i(this),v=c(l,0),h=0;for(t=-1,e=arguments.length;t1?arguments[1]:void 0)}})}();var po,go,yo,mo={};function bo(){if(go)return po;go=1;var r=ot(),t=te(),n=Et().f,e=r("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:t(null)}),po=function(r){i[e][r]=!0}}!function(){if(yo)return mo;yo=1;var r=$n(),t=He().find,n=bo(),e="find",i=!0;e in[]&&Array(1)[e]((function(){i=!1})),r({target:"Array",proto:!0,forced:i},{find:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}}),n(e)}();var wo,Eo,So,Oo,xo,jo,Io,To,Ro,Po,Ao,ko,Co,No,Mo,Lo,Do,Fo={};function _o(){if(Eo)return wo;Eo=1;var r=y(),t=wt(),n=jr();return wo=function(e,i,o){var u,f;t(e);try{if(!(u=n(e,"return"))){if("throw"===i)throw o;return o}u=r(u,e)}catch(c){f=!0,u=c}if("throw"===i)throw o;if(f)throw u;return t(u),o}}function Uo(){if(Oo)return So;Oo=1;var r=wt(),t=_o();return So=function(n,e,i,o){try{return o?e(r(i)[0],i[1]):e(i)}catch(u){t(n,"throw",u)}}}function $o(){return jo?xo:(jo=1,xo={})}function zo(){if(To)return Io;To=1;var r=ot(),t=$o(),n=r("iterator"),e=Array.prototype;return Io=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Wo(){if(Po)return Ro;Po=1;var r=Wn(),t=jr(),n=lr(),e=$o(),i=ot()("iterator");return Ro=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||e[r(o)]}}function Bo(){if(ko)return Ao;ko=1;var r=y(),t=xr(),n=wt(),e=Or(),i=Wo(),o=TypeError;return Ao=function(u,f){var c=arguments.length<2?i(u):f;if(t(c))return n(r(c,u));throw new o(e(u)+" is not iterable")},Ao}function Go(){if(Lo)return Mo;Lo=1;var r=ot()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,(function(){throw 2}))}catch(i){}return Mo=function(n,e){try{if(!e&&!t)return!1}catch(i){return!1}var o=!1;try{var u={};u[r]=function(){return{next:function(){return{done:o=!0}}}},n(u)}catch(i){}return o}}!function(){if(Do)return Fo;Do=1;var r=$n(),t=function(){if(No)return Co;No=1;var r=We(),t=y(),n=nt(),e=Uo(),i=zo(),o=Ge(),u=dn(),f=so(),c=Bo(),a=Wo(),s=Array;return Co=function(l){var v=n(l),h=o(this),p=arguments.length,d=p>1?arguments[1]:void 0,g=void 0!==d;g&&(d=r(d,p>2?arguments[2]:void 0));var y,m,b,w,E,S,O=a(v),x=0;if(!O||this===s&&i(O))for(y=u(v),m=h?new this(y):s(y);y>x;x++)S=g?d(v[x],x):v[x],f(m,x,S);else for(m=h?new this:[],E=(w=c(v,O)).next;!(b=t(E,w)).done;x++)S=g?e(w,d,[b.value,x],!0):b.value,f(m,x,S);return m.length=x,m},Co}();r({target:"Array",stat:!0,forced:!Go()((function(r){Array.from(r)}))},{from:t})}();var Vo,Jo={};!function(){if(Vo)return Jo;Vo=1;var r=$n(),t=gn().includes,n=p(),e=bo();r({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}}),e("includes")}();var Ho,Yo,qo,Ko,Xo,Qo,Zo,ru,tu,nu,eu,iu,ou,uu,fu,cu,au,su={};function lu(){if(Yo)return Ho;Yo=1;var r=p();return Ho=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){return 1},1)}))}}function vu(){if(Xo)return Ko;Xo=1;var r=p();return Ko=!r((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))}function hu(){if(Zo)return Qo;Zo=1;var r=et(),t=pr(),n=nt(),e=Wt(),i=vu(),o=e("IE_PROTO"),u=Object,f=u.prototype;return Qo=i?u.getPrototypeOf:function(e){var i=n(e);if(r(i,o))return i[o];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof u?f:null}}function pu(){if(tu)return ru;tu=1;var r,t,n,e=p(),i=pr(),o=dr(),u=te(),f=hu(),c=Jt(),a=ot(),s=Qr(),l=a("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=f(f(n)))!==Object.prototype&&(r=t):v=!0),!o(r)||e((function(){var t={};return r[l].call(t)!==t}))?r={}:s&&(r=u(r)),i(r[l])||c(r,l,(function(){return this})),ru={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function du(){if(ou)return iu;ou=1;var r=$n(),t=y(),n=Qr(),e=Ut(),i=pr(),o=function(){if(eu)return nu;eu=1;var r=pu().IteratorPrototype,t=te(),n=fr(),e=$e(),i=$o(),o=function(){return this};return nu=function(u,f,c,a){var s=f+" Iterator";return u.prototype=t(r,{next:n(+!a,c)}),e(u,s,!1,!0),i[s]=o,u}}(),u=hu(),f=Yi(),c=$e(),a=St(),s=Jt(),l=ot(),v=$o(),h=pu(),p=e.PROPER,d=e.CONFIGURABLE,g=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,b=l("iterator"),w="keys",E="values",S="entries",O=function(){return this};return iu=function(e,l,h,y,x,j,I){o(h,l,y);var T,R,P,A=function(r){if(r===x&&L)return L;if(!m&&r&&r in N)return N[r];switch(r){case w:case E:case S:return function(){return new h(this,r)}}return function(){return new h(this)}},k=l+" Iterator",C=!1,N=e.prototype,M=N[b]||N["@@iterator"]||x&&N[x],L=!m&&M||A(x),D="Array"===l&&N.entries||M;if(D&&(T=u(D.call(new e)))!==Object.prototype&&T.next&&(n||u(T)===g||(f?f(T,g):i(T[b])||s(T,b,O)),c(T,k,!0,!0),n&&(v[k]=O)),p&&x===E&&M&&M.name!==E&&(!n&&d?a(N,"name",E):(C=!0,L=function(){return t(M,this)})),x)if(R={values:A(E),keys:j?L:A(w),entries:A(S)},I)for(P in R)(m||C||!(P in N))&&s(N,P,R[P]);else r({target:l,proto:!0,forced:m||C},R);return n&&!I||N[b]===L||s(N,b,L,{name:x}),v[l]=L,R}}function gu(){return fu?uu:(fu=1,uu=function(r,t){return{value:r,done:t}})}function yu(){if(au)return cu;au=1;var r=hr(),t=bo(),n=$o(),e=Gt(),i=Et().f,o=du(),u=gu(),f=Qr(),c=d(),a="Array Iterator",s=e.set,l=e.getterFor(a);cu=o(Array,"Array",(function(t,n){s(this,{type:a,target:r(t),index:0,kind:n})}),(function(){var r=l(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,u(void 0,!0);switch(r.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!f&&c&&"values"!==v.name)try{i(v,"name",{value:"values"})}catch(h){}return cu}!function(){if(qo)return su;qo=1;var r=$n(),t=ze(),n=gn().indexOf,e=lu(),i=t([].indexOf),o=!!i&&1/i([1],1,-0)<0;r({target:"Array",proto:!0,forced:o||!e("indexOf")},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return o?i(this,r,t)||0:n(this,r,t)}})}(),yu();var mu,bu={};!function(){if(mu)return bu;mu=1;var r=$n(),t=He().map;r({target:"Array",proto:!0,forced:!lo()("map")},{map:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var wu,Eu,Su,Ou={};function xu(){if(Eu)return wu;Eu=1;var r=d(),t=Be(),n=TypeError,e=Object.getOwnPropertyDescriptor,i=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}();return wu=i?function(r,i){if(t(r)&&!e(r,"length").writable)throw new n("Cannot set read only .length");return r.length=i}:function(r,t){return r.length=t}}!function(){if(Su)return Ou;Su=1;var r=$n(),t=nt(),n=dn(),e=xu(),i=ao();r({target:"Array",proto:!0,arity:1,forced:p()((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(r){return r instanceof TypeError}}()},{push:function(r){var o=t(this),u=n(o),f=arguments.length;i(u+f);for(var c=0;c0;)e[f]=e[--f];f!==c++&&(e[f]=u)}else for(var a=t(o/2),s=n(r(e,0,a),i),l=n(r(e,a),i),v=s.length,h=l.length,p=0,d=0;p3)){if(l)return!0;if(h)return h<603;var r,t,n,e,i="";for(r=65;r<76;r++){switch(t=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(e=0;e<47;e++)d.push({k:t+e,v:n})}for(d.sort((function(r,t){return t.v-r.v})),e=0;eu(n)?1:-1}}(r)),f=i(s),a=0;aw-p+h;g--)a(b,g-1)}else if(h>p)for(g=w-p;g>E;g--)m=g+h-1,(y=g+p-1)in b?b[m]=b[y]:a(b,m);for(g=0;g2)if(a=w(a),43===(t=T(a,0))||45===t){if(88===(n=T(a,2))||120===n)return NaN}else if(48===t){switch(T(a,1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+a}for(u=(o=I(a,2)).length,f=0;fi)return NaN;return parseInt(o,e)}return+a},P=f(E,!S(" 0o1")||!S("0b1")||S("+0x1")),A=function(r){var t,n=arguments.length<1?0:S(function(r){var t=v(r,"number");return"bigint"==typeof t?t:R(t)}(r));return s(x,t=this)&&h((function(){b(t)}))?a(Object(n),this,A):n};A.prototype=x,P&&!t&&(x.constructor=A),r({global:!0,constructor:!0,wrap:!0,forced:P},{Number:A});var k=function(r,t){for(var e,i=n?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;i.length>o;o++)c(t,e=i[o])&&!c(r,e)&&m(r,e,y(t,e))};t&&O&&k(o[E],O),(P||t)&&k(o[E],S)}();var sf,lf,vf,hf={};!function(){if(vf)return hf;vf=1;var r=$n(),t=function(){if(lf)return sf;lf=1;var r=d(),t=cr(),n=y(),e=p(),i=Qn(),o=Dn(),u=ur(),f=nt(),c=sr(),a=Object.assign,s=Object.defineProperty,l=t([].concat);return sf=!a||e((function(){if(r&&1!==a({b:1},a(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[e]=7,o.split("").forEach((function(r){n[r]=r})),7!==a({},t)[e]||i(a({},n)).join("")!==o}))?function(t,e){for(var a=f(t),s=arguments.length,v=1,h=o.f,p=u.f;s>v;)for(var d,g=c(arguments[v++]),y=h?l(i(g),h(g)):i(g),m=y.length,b=0;m>b;)d=y[b++],r&&!n(p,g,d)||(a[d]=g[d]);return a}:a,sf}();r({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t})}();var pf,df={};!function(){if(pf)return df;pf=1;var r=$n(),t=p(),n=hr(),e=st().f,i=d();r({target:"Object",stat:!0,forced:!i||t((function(){e(1)})),sham:!i},{getOwnPropertyDescriptor:function(r,t){return e(n(r),t)}})}();var gf,yf={};!function(){if(gf)return yf;gf=1;var r=$n(),t=p(),n=nt(),e=hu(),i=vu();r({target:"Object",stat:!0,forced:t((function(){e(1)})),sham:!i},{getPrototypeOf:function(r){return e(n(r))}})}();var mf,bf={};!function(){if(mf)return bf;mf=1;var r=$n(),t=nt(),n=Qn();r({target:"Object",stat:!0,forced:p()((function(){n(1)}))},{keys:function(r){return n(t(r))}})}();var wf,Ef,Sf,Of={};!function(){if(Sf)return Of;Sf=1;var r=zn(),t=Jt(),n=function(){if(Ef)return wf;Ef=1;var r=zn(),t=Wn();return wf=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var xf,jf,If,Tf,Rf,Pf,Af,kf,Cf,Nf,Mf,Lf,Df,Ff,_f,Uf,$f,zf,Wf,Bf,Gf,Vf,Jf,Hf,Yf,qf,Kf,Xf,Qf,Zf,rc,tc,nc,ec,ic,oc,uc={};function fc(){if(jf)return xf;jf=1;var r=i(),t=mr(),n=ar(),e=function(r){return t.slice(0,r.length)===r};return xf=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}function cc(){if(Tf)return If;Tf=1;var r=fc();return If="NODE"===r}function ac(){if(Pf)return Rf;Pf=1;var r=gr(),t=se(),n=ot(),e=d(),i=n("species");return Rf=function(n){var o=r(n);e&&o&&!o[i]&&t(o,i,{configurable:!0,get:function(){return this}})}}function sc(){if(kf)return Af;kf=1;var r=yr(),t=TypeError;return Af=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function lc(){if(Nf)return Cf;Nf=1;var r=Ge(),t=Or(),n=TypeError;return Cf=function(e){if(r(e))return e;throw new n(t(e)+" is not a constructor")}}function vc(){if(Lf)return Mf;Lf=1;var r=wt(),t=lc(),n=lr(),e=ot()("species");return Mf=function(i,o){var u,f=r(i).constructor;return void 0===f||n(u=r(f)[e])?o:t(u)}}function hc(){if(Ff)return Df;Ff=1;var r=TypeError;return Df=function(t,n){if(tm;m++)if((w=A(h[m]))&&u(v,w))return w;return new l(!1)}g=f(h,y)}for(E=j?h.next:g.next;!(S=t(E,g)).done;){try{w=A(S.value)}catch(k){a(g,"throw",k)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function Mc(){if(Ac)return Pc;Ac=1;var r=Ec(),t=Go(),n=Sc().CONSTRUCTOR;return Pc=n||!t((function(t){r.all(t).then(void 0,(function(){}))}))}var Lc,Dc={};var Fc,_c={};var Uc,$c={};var zc,Wc,Bc,Gc,Vc={};function Jc(){if(Wc)return zc;Wc=1;var r=wt(),t=dr(),n=Ic();return zc=function(e,i){if(r(e),t(i)&&i.constructor===e)return i;var o=n.f(e);return(0,o.resolve)(i),o.promise}}Gc||(Gc=1,function(){if(xc)return uc;xc=1;var r,t,n,e=$n(),o=Qr(),u=cc(),f=i(),c=y(),a=Jt(),s=Yi(),l=$e(),v=ac(),h=xr(),p=pr(),d=dr(),g=sc(),m=vc(),b=dc().set,w=mc(),E=bc(),S=wc(),O=yc(),x=Gt(),j=Ec(),I=Sc(),T=Ic(),R="Promise",P=I.CONSTRUCTOR,A=I.REJECTION_EVENT,k=I.SUBCLASSING,C=x.getterFor(R),N=x.set,M=j&&j.prototype,L=j,D=M,F=f.TypeError,_=f.document,U=f.process,$=T.f,z=$,W=!!(_&&_.createEvent&&f.dispatchEvent),B="unhandledrejection",G=function(r){var t;return!(!d(r)||!p(t=r.then))&&t},V=function(r,t){var n,e,i,o=t.value,u=1===t.state,f=u?r.ok:r.fail,a=r.resolve,s=r.reject,l=r.domain;try{f?(u||(2===t.rejection&&K(t),t.rejection=1),!0===f?n=o:(l&&l.enter(),n=f(o),l&&(l.exit(),i=!0)),n===r.promise?s(new F("Promise-chain cycle")):(e=G(n))?c(e,n,a,s):a(n)):s(o)}catch(v){l&&!i&&l.exit(),s(v)}},J=function(r,t){r.notified||(r.notified=!0,w((function(){for(var n,e=r.reactions;n=e.get();)V(n,r);r.notified=!1,t&&!r.rejection&&Y(r)})))},H=function(r,t,n){var e,i;W?((e=_.createEvent("Event")).promise=t,e.reason=n,e.initEvent(r,!1,!0),f.dispatchEvent(e)):e={promise:t,reason:n},!A&&(i=f["on"+r])?i(e):r===B&&E("Unhandled promise rejection",n)},Y=function(r){c(b,f,(function(){var t,n=r.facade,e=r.value;if(q(r)&&(t=S((function(){u?U.emit("unhandledRejection",e,n):H(B,n,e)})),r.rejection=u||q(r)?2:1,t.error))throw t.value}))},q=function(r){return 1!==r.rejection&&!r.parent},K=function(r){c(b,f,(function(){var t=r.facade;u?U.emit("rejectionHandled",t):H("rejectionhandled",t,r.value)}))},X=function(r,t,n){return function(e){r(t,e,n)}},Q=function(r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=2,J(r,!0))},Z=function(r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(r.facade===t)throw new F("Promise can't be resolved itself");var e=G(t);e?w((function(){var n={done:!1};try{c(e,t,X(Z,n,r),X(Q,n,r))}catch(i){Q(n,i,r)}})):(r.value=t,r.state=1,J(r,!1))}catch(i){Q({done:!1},i,r)}}};if(P&&(D=(L=function(t){g(this,D),h(t),c(r,this);var n=C(this);try{t(X(Z,n),X(Q,n))}catch(e){Q(n,e)}}).prototype,(r=function(r){N(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=a(D,"then",(function(r,t){var n=C(this),e=$(m(this,L));return n.parent=!0,e.ok=!p(r)||r,e.fail=p(t)&&t,e.domain=u?U.domain:void 0,0===n.state?n.reactions.add(e):w((function(){V(e,n)})),e.promise})),t=function(){var t=new r,n=C(t);this.promise=t,this.resolve=X(Z,n),this.reject=X(Q,n)},T.f=$=function(r){return r===L||void 0===r?new t(r):z(r)},!o&&p(j)&&M!==Object.prototype)){n=M.then,k||a(M,"then",(function(r,t){var e=this;return new L((function(r,t){c(n,e,r,t)})).then(r,t)}),{unsafe:!0});try{delete M.constructor}catch(rr){}s&&s(M,D)}e({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:L}),l(L,R,!1,!0),v(R)}(),function(){if(kc)return Cc;kc=1;var r=$n(),t=y(),n=xr(),e=Ic(),i=wc(),o=Nc();r({target:"Promise",stat:!0,forced:Mc()},{all:function(r){var u=this,f=e.f(u),c=f.resolve,a=f.reject,s=i((function(){var e=n(u.resolve),i=[],f=0,s=1;o(r,(function(r){var n=f++,o=!1;s++,t(e,u,r).then((function(r){o||(o=!0,i[n]=r,--s||c(i))}),a)})),--s||c(i)}));return s.error&&a(s.value),f.promise}})}(),function(){if(Lc)return Dc;Lc=1;var r=$n(),t=Qr(),n=Sc().CONSTRUCTOR,e=Ec(),i=gr(),o=pr(),u=Jt(),f=e&&e.prototype;if(r({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(r){return this.then(void 0,r)}}),!t&&o(e)){var c=i("Promise").prototype.catch;f.catch!==c&&u(f,"catch",c,{unsafe:!0})}}(),function(){if(Fc)return _c;Fc=1;var r=$n(),t=y(),n=xr(),e=Ic(),i=wc(),o=Nc();r({target:"Promise",stat:!0,forced:Mc()},{race:function(r){var u=this,f=e.f(u),c=f.reject,a=i((function(){var e=n(u.resolve);o(r,(function(r){t(e,u,r).then(f.resolve,c)}))}));return a.error&&c(a.value),f.promise}})}(),function(){if(Uc)return $c;Uc=1;var r=$n(),t=Ic();r({target:"Promise",stat:!0,forced:Sc().CONSTRUCTOR},{reject:function(r){var n=t.f(this);return(0,n.reject)(r),n.promise}})}(),function(){if(Bc)return Vc;Bc=1;var r=$n(),t=gr(),n=Qr(),e=Ec(),i=Sc().CONSTRUCTOR,o=Jc(),u=t("Promise"),f=n&&!i;r({target:"Promise",stat:!0,forced:n||i},{resolve:function(r){return o(f&&this===u?e:this,r)}})}());var Hc,Yc={};!function(){if(Hc)return Yc;Hc=1;var r=$n(),t=Qr(),n=Ec(),e=p(),i=gr(),o=pr(),u=vc(),f=Jc(),c=Jt(),a=n&&n.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!n&&e((function(){a.finally.call({then:function(){}},(function(){}))}))},{finally:function(r){var t=u(this,i("Promise")),n=o(r);return this.then(n?function(n){return f(t,r()).then((function(){return n}))}:r,n?function(n){return f(t,r()).then((function(){throw n}))}:r)}}),!t&&o(n)){var s=i("Promise").prototype.finally;a.finally!==s&&c(a,"finally",s,{unsafe:!0})}}();var qc,Kc,Xc,Qc,Zc,ra,ta,na,ea,ia,oa,ua,fa,ca={};function aa(){if(Kc)return qc;Kc=1;var r=dr(),t=ar(),n=ot()("match");return qc=function(e){var i;return r(e)&&(void 0!==(i=e[n])?!!i:"RegExp"===t(e))}}function sa(){if(Qc)return Xc;Qc=1;var r=wt();return Xc=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function la(){if(ra)return Zc;ra=1;var r=y(),t=et(),n=yr(),e=sa(),i=RegExp.prototype;return Zc=function(o){var u=o.flags;return void 0!==u||"flags"in i||t(o,"flags")||!n(i,o)?u:r(e,o)}}function va(){if(na)return ta;na=1;var r=p(),t=i().RegExp,n=r((function(){var r=t("a","y");return r.lastIndex=2,null!==r.exec("abcd")})),e=n||r((function(){return!t("a","y").sticky})),o=n||r((function(){var r=t("^r","gy");return r.lastIndex=2,null!==r.exec("str")}));return ta={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}function ha(){if(ia)return ea;ia=1;var r=p(),t=i().RegExp;return ea=r((function(){var r=t(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)}))}function pa(){if(ua)return oa;ua=1;var r=p(),t=i().RegExp;return oa=r((function(){var r=t("(?b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$c")}))}!function(){if(fa)return ca;fa=1;var r=d(),t=i(),n=cr(),e=Un(),o=Ki(),u=St(),f=te(),c=bn().f,a=yr(),s=aa(),l=Bn(),v=la(),h=va(),g=qi(),y=Jt(),m=p(),b=et(),w=Gt().enforce,E=ac(),S=ot(),O=ha(),x=pa(),j=S("match"),I=t.RegExp,T=I.prototype,R=t.SyntaxError,P=n(T.exec),A=n("".charAt),k=n("".replace),C=n("".indexOf),N=n("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,D=/a/g,F=new I(L)!==L,_=h.MISSED_STICKY,U=h.UNSUPPORTED_Y,$=r&&(!F||_||O||x||m((function(){return D[j]=!1,I(L)!==L||I(D)===D||"/a/i"!==String(I(L,"i"))})));if(e("RegExp",$)){for(var z=function(r,t){var n,e,i,c,h,p,d=a(T,this),g=s(r),y=void 0===t,m=[],E=r;if(!d&&g&&y&&r.constructor===z)return r;if((g||a(T,r))&&(r=r.source,y&&(t=v(E))),r=void 0===r?"":l(r),t=void 0===t?"":l(t),E=r,O&&"dotAll"in L&&(e=!!t&&C(t,"s")>-1)&&(t=k(t,/s/g,"")),n=t,_&&"sticky"in L&&(i=!!t&&C(t,"y")>-1)&&U&&(t=k(t,/y/g,"")),x&&(c=function(r){for(var t,n=r.length,e=0,i="",o=[],u=f(null),c=!1,a=!1,s=0,l="";e<=n;e++){if("\\"===(t=A(r,e)))t+=A(r,++e);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:if(i+=t,"?:"===N(r,e+1,e+3))continue;P(M,N(r,e+1))&&(e+=2,a=!0),s++;continue;case">"===t&&a:if(""===l||b(u,l))throw new R("Invalid capture group name");u[l]=!0,o[o.length]=[l,s],a=!1,l="";continue}a?l+=t:i+=t}return[i,o]}(r),r=c[0],m=c[1]),h=o(I(r,t),d?this:T,z),(e||i||m.length)&&(p=w(h),e&&(p.dotAll=!0,p.raw=z(function(r){for(var t,n=r.length,e=0,i="",o=!1;e<=n;e++)"\\"!==(t=A(r,e))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+A(r,++e);return i}(r),n)),i&&(p.sticky=!0),m.length&&(p.groups=m)),r!==E)try{u(h,"source",""===E?"(?:)":E)}catch(S){}return h},W=c(I),B=0;W.length>B;)g(z,I,W[B++]);T.constructor=z,z.prototype=T,y(t,"RegExp",z,{constructor:!0})}E("RegExp")}();var da,ga={};!function(){if(da)return ga;da=1;var r=d(),t=ha(),n=ar(),e=se(),i=Gt().get,o=RegExp.prototype,u=TypeError;r&&t&&e(o,"dotAll",{configurable:!0,get:function(){if(this!==o){if("RegExp"===n(this))return!!i(this).dotAll;throw new u("Incompatible receiver, RegExp required")}}})}();var ya,ma,ba,wa={};function Ea(){if(ma)return ya;ma=1;var r,t,n=y(),e=cr(),i=Bn(),o=sa(),u=va(),f=tt(),c=te(),a=Gt().get,s=ha(),l=pa(),v=f("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,p=h,d=e("".charAt),g=e("".indexOf),m=e("".replace),b=e("".slice),w=(t=/b*/g,n(h,r=/a/,"a"),n(h,t,"a"),0!==r.lastIndex||0!==t.lastIndex),E=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];return(w||S||E||s||l)&&(p=function(r){var t,e,u,f,s,l,y,O=this,x=a(O),j=i(r),I=x.raw;if(I)return I.lastIndex=O.lastIndex,t=n(p,I,j),O.lastIndex=I.lastIndex,t;var T=x.groups,R=E&&O.sticky,P=n(o,O),A=O.source,k=0,C=j;if(R&&(P=m(P,"y",""),-1===g(P,"g")&&(P+="g"),C=b(j,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&"\n"!==d(j,O.lastIndex-1))&&(A="(?: "+A+")",C=" "+C,k++),e=new RegExp("^(?:"+A+")",P)),S&&(e=new RegExp("^"+A+"$(?!\\s)",P)),w&&(u=O.lastIndex),f=n(h,R?e:O,C),R?f?(f.input=b(f.input,k),f[0]=b(f[0],k),f.index=O.lastIndex,O.lastIndex+=f[0].length):O.lastIndex=0:w&&f&&(O.lastIndex=O.global?f.index+f[0].length:u),S&&f&&f.length>1&&n(v,f[0],e,(function(){for(s=1;s1?arguments[1]:void 0,e=t.length,c=void 0===n?e:l(i(n),e),a=o(r);return s(t,c-a.length,c)===a}})}();var Ua,$a={};!function(){if(Ua)return $a;Ua=1;var r=$n(),t=cr(),n=Fa(),e=vr(),i=Bn(),o=_a(),u=t("".indexOf);r({target:"String",proto:!0,forced:!o("includes")},{includes:function(r){return!!~u(i(e(this)),i(n(r)),arguments.length>1?arguments[1]:void 0)}})}();var za,Wa,Ba,Ga={};function Va(){if(Wa)return za;Wa=1;var r=cr(),t=vn(),n=Bn(),e=vr(),i=r("".charAt),o=r("".charCodeAt),u=r("".slice),f=function(r){return function(f,c){var a,s,l=n(e(f)),v=t(c),h=l.length;return v<0||v>=h?r?"":void 0:(a=o(l,v))<55296||a>56319||v+1===h||(s=o(l,v+1))<56320||s>57343?r?i(l,v):a:r?u(l,v,v+2):s-56320+(a-55296<<10)+65536}};return za={codeAt:f(!1),charAt:f(!0)}}!function(){if(Ba)return Ga;Ba=1;var r=Va().charAt,t=Bn(),n=Gt(),e=du(),i=gu(),o="String Iterator",u=n.set,f=n.getterFor(o);e(String,"String",(function(r){u(this,{type:o,string:t(r),index:0})}),(function(){var t,n=f(this),e=n.string,o=n.index;return o>=e.length?i(void 0,!0):(t=r(e,o),n.index+=t.length,i(t,!1))}))}();var Ja,Ha,Ya,qa,Ka,Xa,Qa,Za={};function rs(){if(Ha)return Ja;Ha=1,Sa();var r=y(),t=Jt(),n=Ea(),e=p(),i=ot(),o=St(),u=i("species"),f=RegExp.prototype;return Ja=function(c,a,s,l){var v=i(c),h=!e((function(){var r={};return r[v]=function(){return 7},7!==""[c](r)})),p=h&&!e((function(){var r=!1,t=/a/;return"split"===c&&((t={}).constructor={},t.constructor[u]=function(){return t},t.flags="",t[v]=/./[v]),t.exec=function(){return r=!0,null},t[v](""),!r}));if(!h||!p||s){var d=/./[v],g=a(v,""[c],(function(t,e,i,o,u){var c=e.exec;return c===n||c===f.exec?h&&!u?{done:!0,value:r(d,e,i,o)}:{done:!0,value:r(t,i,e,o)}:{done:!1}}));t(String.prototype,c,g[0]),t(f,v,g[1])}l&&o(f[v],"sham",!0)}}function ts(){if(qa)return Ya;qa=1;var r=Va().charAt;return Ya=function(t,n,e){return n+(e?r(t,n).length:1)}}function ns(){if(Xa)return Ka;Xa=1;var r=y(),t=wt(),n=pr(),e=ar(),i=Ea(),o=TypeError;return Ka=function(u,f){var c=u.exec;if(n(c)){var a=r(c,u,f);return null!==a&&t(a),a}if("RegExp"===e(u))return r(i,u,f);throw new o("RegExp#exec called on incompatible receiver")}}!function(){if(Qa)return Za;Qa=1;var r=y(),t=rs(),n=wt(),e=lr(),i=pn(),o=Bn(),u=vr(),f=jr(),c=ts(),a=ns();t("match",(function(t,s,l){return[function(n){var i=u(this),c=e(n)?void 0:f(n,t);return c?r(c,n,i):new RegExp(n)[t](o(i))},function(r){var t=n(this),e=o(r),u=l(s,t,e);if(u.done)return u.value;if(!t.global)return a(t,e);var f=t.unicode;t.lastIndex=0;for(var v,h=[],p=0;null!==(v=a(t,e));){var d=o(v[0]);h[p]=d,""===d&&(t.lastIndex=c(e,i(t.lastIndex),f)),p++}return 0===p?null:h}]}))}();var es,is,os,us={};function fs(){if(is)return es;is=1;var r=cr(),t=nt(),n=Math.floor,e=r("".charAt),i=r("".replace),o=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;return es=function(r,c,a,s,l,v){var h=a+r.length,p=s.length,d=f;return void 0!==l&&(l=t(l),d=u),i(v,d,(function(t,i){var u;switch(e(i,0)){case"$":return"$";case"&":return r;case"`":return o(c,0,a);case"'":return o(c,h);case"<":u=l[o(i,1,-1)];break;default:var f=+i;if(0===f)return t;if(f>p){var v=n(f/10);return 0===v?t:v<=p?void 0===s[v-1]?e(i,1):s[v-1]+e(i,1):t}u=s[f-1]}return void 0===u?"":u}))}}!function(){if(os)return us;os=1;var r=fi(),t=y(),n=cr(),e=rs(),i=p(),o=wt(),u=pr(),f=lr(),c=vn(),a=pn(),s=Bn(),l=vr(),v=ts(),h=jr(),d=fs(),g=ns(),m=ot()("replace"),b=Math.max,w=Math.min,E=n([].concat),S=n([].push),O=n("".indexOf),x=n("".slice),j="$0"==="a".replace(/./,"$0"),I=!!/./[m]&&""===/./[m]("a","$0");e("replace",(function(n,e,i){var p=I?"$":"$0";return[function(r,n){var i=l(this),o=f(r)?void 0:h(r,m);return o?t(o,r,i,n):t(e,s(i),r,n)},function(t,n){var f=o(this),l=s(t);if("string"==typeof n&&-1===O(n,p)&&-1===O(n,"$<")){var h=i(e,f,l,n);if(h.done)return h.value}var y=u(n);y||(n=s(n));var m,j=f.global;j&&(m=f.unicode,f.lastIndex=0);for(var I,T=[];null!==(I=g(f,l))&&(S(T,I),j);){""===s(I[0])&&(f.lastIndex=v(l,a(f.lastIndex),m))}for(var R,P="",A=0,k=0;k=A&&(P+=x(l,A,M)+C,A=M+N.length)}return P+x(l,A)}]}),!!i((function(){var r=/./;return r.exec=function(){var r=[];return r.groups={a:"7"},r},"7"!=="".replace(r,"$")}))||!j||I)}();var cs,as,ss,ls={};function vs(){return as?cs:(as=1,cs=Object.is||function(r,t){return r===t?0!==r||1/r==1/t:r!=r&&t!=t})}!function(){if(ss)return ls;ss=1;var r=y(),t=rs(),n=wt(),e=lr(),i=vr(),o=vs(),u=Bn(),f=jr(),c=ns();t("search",(function(t,a,s){return[function(n){var o=i(this),c=e(n)?void 0:f(n,t);return c?r(c,n,o):new RegExp(n)[t](u(o))},function(r){var t=n(this),e=u(r),i=s(a,t,e);if(i.done)return i.value;var f=t.lastIndex;o(f,0)||(t.lastIndex=0);var l=c(t,e);return o(t.lastIndex,f)||(t.lastIndex=f),null===l?-1:l.index}]}))}();var hs,ps={};!function(){if(hs)return ps;hs=1;var r=y(),t=cr(),n=rs(),e=wt(),i=lr(),o=vr(),u=vc(),f=ts(),c=pn(),a=Bn(),s=jr(),l=ns(),v=va(),h=p(),d=v.UNSUPPORTED_Y,g=Math.min,m=t([].push),b=t("".slice),w=!h((function(){var r=/(?:)/,t=r.exec;r.exec=function(){return t.apply(this,arguments)};var n="ab".split(r);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),E="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;n("split",(function(t,n,v){var h="0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:r(n,this,t,e)}:n;return[function(n,e){var u=o(this),f=i(n)?void 0:s(n,t);return f?r(f,n,u,e):r(h,a(u),n,e)},function(r,t){var i=e(this),o=a(r);if(!E){var s=v(h,i,o,t,h!==n);if(s.done)return s.value}var p=u(i,RegExp),y=i.unicode,w=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(d?"g":"y"),S=new p(d?"^(?:"+i.source+")":i,w),O=void 0===t?4294967295:t>>>0;if(0===O)return[];if(0===o.length)return null===l(S,o)?[o]:[];for(var x=0,j=0,I=[];j1?arguments[1]:void 0,t.length)),e=o(r);return s(t,n,n+e.length)===e}})}();var ys,ms,bs,ws={};!function(){if(bs)return ws;bs=1;var r=$n(),t=af().trim,n=function(){if(ms)return ys;ms=1;var r=Ut().PROPER,t=p(),n=cf();return ys=function(e){return t((function(){return!!n[e]()||"​…᠎"!=="​…᠎"[e]()||r&&n[e].name!==e}))}}();r({target:"String",proto:!0,forced:n("trim")},{trim:function(){return t(this)}})}();var Es,Ss,Os,xs,js={};function Is(){if(Ss)return Es;Ss=1;var r=p();return Es=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))}function Ts(){if(xs)return Os;xs=1;var r=Jt();return Os=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}}var Rs,Ps,As,ks,Cs,Ns,Ms,Ls,Ds,Fs,_s,Us={exports:{}};function $s(){if(ks)return As;ks=1;var r=p(),t=dr(),n=ar(),e=function(){if(Ps)return Rs;Ps=1;var r=p();return Rs=r((function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}}))}(),i=Object.isExtensible,o=r((function(){}));return As=o||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!i||i(r)))}:i}function zs(){if(Cs)return Us.exports;Cs=1;var r=$n(),t=cr(),n=Bt(),e=dr(),i=et(),o=Et().f,u=bn(),f=ae(),c=$s(),a=it(),s=Is(),l=!1,v=a("meta"),h=0,p=function(r){o(r,v,{value:{objectID:"O"+h++,weakData:{}}})},d=Us.exports={enable:function(){d.enable=function(){},l=!0;var n=u.f,e=t([].splice),i={};i[v]=1,n(i).length&&(u.f=function(r){for(var t=n(r),i=0,o=t.length;i1?arguments[1]:void 0)},Il}(),o=St(),u=function(r){if(r&&r.forEach!==e)try{o(r,"forEach",e)}catch(t){r.forEach=e}};for(var f in t)t[f]&&u(r[f]&&r[f].prototype);u(n)}();var Cl,Nl={};!function(){if(Cl)return Nl;Cl=1;var r=i(),t=Al(),n=kl(),e=yu(),o=St(),u=$e(),f=ot()("iterator"),c=e.values,a=function(r,n){if(r){if(r[f]!==c)try{o(r,f,c)}catch(a){r[f]=c}if(u(r,n,!0),t[n])for(var i in e)if(r[i]!==e[i])try{o(r,i,e[i])}catch(a){r[i]=e[i]}}};for(var s in t)a(r[s]&&r[s].prototype,s);a(n,"DOMTokenList")}();var Ml; +/*! + * SJS 6.15.1 + */Ml||(Ml=1,function(){function r(r,t){return(t||"")+" (SystemJS https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+r+")"}function t(r,t){if(-1!==r.indexOf("\\")&&(r=r.replace(x,"/")),"/"===r[0]&&"/"===r[1])return t.slice(0,t.indexOf(":")+1)+r;if("."===r[0]&&("/"===r[1]||"."===r[1]&&("/"===r[2]||2===r.length&&(r+="/"))||1===r.length&&(r+="/"))||"/"===r[0]){var n,e=t.slice(0,t.indexOf(":")+1);if(n="/"===t[e.length+1]?"file:"!==e?(n=t.slice(e.length+2)).slice(n.indexOf("/")+1):t.slice(8):t.slice(e.length+("/"===t[e.length])),"/"===r[0])return t.slice(0,t.length-n.length-1)+r;for(var i=n.slice(0,n.lastIndexOf("/")+1)+r,o=[],u=-1,f=0;fn.length&&"/"!==e[e.length-1]))return e+r.slice(n.length);c("W2",n,e)}}function c(t,n,e){console.warn(r(t,[e,n].join(", ")))}function a(r,t,n){for(var e=r.scopes,i=n&&u(n,e);i;){var o=f(t,e[i]);if(o)return o;i=u(i.slice(0,i.lastIndexOf("/")),e)}return f(t,r.imports)||-1!==t.indexOf(":")&&t}function s(){this[I]={}}function l(t,n,e,i){var o=t[I][n];if(o)return o;var u=[],f=Object.create(null);j&&Object.defineProperty(f,j,{value:"Module"});var c=Promise.resolve().then((function(){return t.instantiate(n,e,i)})).then((function(e){if(!e)throw Error(r(2,n));var i=e[1]((function(r,t){o.h=!0;var n=!1;if("string"==typeof r)r in f&&f[r]===t||(f[r]=t,n=!0);else{for(var e in r)t=r[e],e in f&&f[e]===t||(f[e]=t,n=!0);r&&r.__esModule&&(f.__esModule=r.__esModule)}if(n)for(var i=0;i-1){var n=document.createEvent("Event");n.initEvent("error",!1,!1),t.dispatchEvent(n)}return Promise.reject(r)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var n=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,priority:t.fetchPriority,passThrough:!0}).then((function(r){if(!r.ok)throw Error(r.status);return r.text()})).catch((function(n){return n.message=r("W4",t.src)+"\n"+n.message,console.warn(n),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;k=k.then((function(){return n})).then((function(n){!function(t,n,e){var i={};try{i=JSON.parse(n)}catch(f){console.warn(Error(r("W5")))}o(i,e,t)}(C,n,t.src||g)}))}}))}var g,y="undefined"!=typeof Symbol,m="undefined"!=typeof self,b="undefined"!=typeof document,w=m?self:n;if(b){var E=document.querySelector("base[href]");E&&(g=E.href)}if(!g&&"undefined"!=typeof location){var S=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==S&&(g=g.slice(0,S+1))}var O,x=/\\/g,j=y&&Symbol.toStringTag,I=y?Symbol():"@",T=s.prototype;T.import=function(r,t,n){var e=this;return t&&"object"==typeof t&&(n=t,t=void 0),Promise.resolve(e.prepareImport()).then((function(){return e.resolve(r,t,n)})).then((function(r){var t=l(e,r,void 0,n);return t.C||h(e,t)}))},T.createContext=function(r){var t=this;return{url:r,resolve:function(n,e){return Promise.resolve(t.resolve(n,e||r))}}},T.register=function(r,t,n){O=[r,t,n]},T.getRegister=function(){var r=O;return O=void 0,r};var R=Object.freeze(Object.create(null));w.System=new s;var P,A,k=Promise.resolve(),C={imports:{},scopes:{},depcache:{},integrity:{}},N=b;if(T.prepareImport=function(r){return(N||r)&&(d(),N=!1),k},T.getImportMap=function(){return JSON.parse(JSON.stringify(C))},b&&(d(),window.addEventListener("DOMContentLoaded",d)),T.addImportMap=function(r,t){o(r,t||g,C)},b){window.addEventListener("error",(function(r){L=r.filename,D=r.error}));var M=location.origin}T.createScript=function(r){var t=document.createElement("script");t.async=!0,r.indexOf(M+"/")&&(t.crossOrigin="anonymous");var n=C.integrity[r];return n&&(t.integrity=n),t.src=r,t};var L,D,F={},_=T.register;T.register=function(r,t){if(b&&"loading"===document.readyState&&"string"!=typeof r){var n=document.querySelectorAll("script[src]"),e=n[n.length-1];if(e){P=r;var i=this;A=setTimeout((function(){F[e.src]=[r,t],i.import(e.src)}))}}else P=void 0;return _.call(this,r,t)},T.instantiate=function(t,n){var e=F[t];if(e)return delete F[t],e;var i=this;return Promise.resolve(T.createScript(t)).then((function(e){return new Promise((function(o,u){e.addEventListener("error",(function(){u(Error(r(3,[t,n].join(", "))))})),e.addEventListener("load",(function(){if(document.head.removeChild(e),L===t)u(D);else{var r=i.getRegister(t);r&&r[0]===P&&clearTimeout(A),o(r)}})),document.head.appendChild(e)}))}))},T.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(T.fetch=fetch);var U=T.instantiate,$=/^(text|application)\/(x-)?javascript(;|$)/;T.instantiate=function(t,n,e){var i=this;return this.shouldFetch(t,n,e)?this.fetch(t,{credentials:"same-origin",integrity:C.integrity[t],meta:e}).then((function(e){if(!e.ok)throw Error(r(7,[e.status,e.statusText,t,n].join(", ")));var o=e.headers.get("content-type");if(!o||!$.test(o))throw Error(r(4,o));return e.text().then((function(r){return r.indexOf("//# sourceURL=")<0&&(r+="\n//# sourceURL="+t),(0,eval)(r),i.getRegister(t)}))})):U.apply(this,arguments)},T.resolve=function(n,e){return a(C,t(n,e=e||g)||n,e)||function(t,n){throw Error(r(8,[t,n].join(", ")))}(n,e)};var z=T.instantiate;T.instantiate=function(r,t,n){var e=C.depcache[r];if(e)for(var i=0;i + + + + + + + + + + + diff --git a/www/webxdc/img/bK.svg b/www/webxdc/img/bK.svg new file mode 100644 index 000000000..ba2ac9fbc --- /dev/null +++ b/www/webxdc/img/bK.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/www/webxdc/img/bN.svg b/www/webxdc/img/bN.svg new file mode 100644 index 000000000..203c6fea8 --- /dev/null +++ b/www/webxdc/img/bN.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + diff --git a/www/webxdc/img/bP.svg b/www/webxdc/img/bP.svg new file mode 100644 index 000000000..b534de8f7 --- /dev/null +++ b/www/webxdc/img/bP.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/www/webxdc/img/bQ.svg b/www/webxdc/img/bQ.svg new file mode 100644 index 000000000..e55773452 --- /dev/null +++ b/www/webxdc/img/bQ.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/webxdc/img/bR.svg b/www/webxdc/img/bR.svg new file mode 100644 index 000000000..4eec43c42 --- /dev/null +++ b/www/webxdc/img/bR.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + diff --git a/www/webxdc/img/board-background.png b/www/webxdc/img/board-background.png new file mode 100644 index 000000000..c85894520 Binary files /dev/null and b/www/webxdc/img/board-background.png differ diff --git a/www/webxdc/img/wB.svg b/www/webxdc/img/wB.svg new file mode 100644 index 000000000..1fcc90b0b --- /dev/null +++ b/www/webxdc/img/wB.svg @@ -0,0 +1,12 @@ + + + + > + + + + + + + + diff --git a/www/webxdc/img/wK.svg b/www/webxdc/img/wK.svg new file mode 100644 index 000000000..16f96e49e --- /dev/null +++ b/www/webxdc/img/wK.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/www/webxdc/img/wN.svg b/www/webxdc/img/wN.svg new file mode 100644 index 000000000..92feeee00 --- /dev/null +++ b/www/webxdc/img/wN.svg @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/www/webxdc/img/wP.svg b/www/webxdc/img/wP.svg new file mode 100644 index 000000000..b265fe1b4 --- /dev/null +++ b/www/webxdc/img/wP.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/www/webxdc/img/wQ.svg b/www/webxdc/img/wQ.svg new file mode 100644 index 000000000..8df7c8f92 --- /dev/null +++ b/www/webxdc/img/wQ.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/www/webxdc/img/wR.svg b/www/webxdc/img/wR.svg new file mode 100644 index 000000000..ac03578ec --- /dev/null +++ b/www/webxdc/img/wR.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + diff --git a/www/webxdc/index.html b/www/webxdc/index.html index 93b2d794b..ea35f9bc2 100644 --- a/www/webxdc/index.html +++ b/www/webxdc/index.html @@ -8,12 +8,15 @@ SPDX-License-Identifier: AGPL-3.0-or-later CryptPad + + + + +
+ + + + + + diff --git a/www/webxdc/lib/jquery.min.js b/www/webxdc/lib/jquery.min.js new file mode 100644 index 000000000..c4c6022f2 --- /dev/null +++ b/www/webxdc/lib/jquery.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="
",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0