Greasy Fork is available in English.

switch520-auto-secret

让switch520变得丝滑无比:自动填写密码、下载按钮直达下载地址页、百度网盘自动填写密码 , 2.0版本连夜肝出了去Steam查看游戏评价功能

// ==UserScript==
// @name switch520-auto-secret
// @description 让switch520变得丝滑无比:自动填写密码、下载按钮直达下载地址页、百度网盘自动填写密码 , 2.0版本连夜肝出了去Steam查看游戏评价功能
// @version 2.10.2
// @author Kane
// @match *://*.gamers520.com/*
// @match *://*.gamer520.com/*
// @match *://download.gamer520.com/*
// @match *://download.espartasr.com/*
// @match *://download.freer.blog/*
// @match *://www.freer.blog/*
// @match *://*.xxxxx528.com/*
// @match *://www.efemovies.com/*
// @match *://www.espartasr.com/*
// @match *://www.piclabo.xyz/*
// @match *://like.gamer520.com/*
// @match *://pan.baidu.com/*
// @icon https://img.piclabo.xyz/2023/10/25/d67adcffb89dd.jpg
// @license MIT
// @namespace http://tampermonkey.net/
// @require https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js
// @require https://unpkg.com/mobx@6.13.5/dist/mobx.umd.production.min.js
// @require https://unpkg.com/preact@10.24.3/dist/preact.min.umd.js
// @require https://unpkg.com/preact@10.24.3/hooks/dist/hooks.umd.js
// @require https://unpkg.com/preact@10.24.3/jsx-runtime/dist/jsxRuntime.umd.js
// @require https://unpkg.com/preact@10.24.3/compat/dist/compat.umd.js
// ==/UserScript==

/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ 543:
/***/ ((module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   A: () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
// Imports


var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
// Module
___CSS_LOADER_EXPORT___.push([module.id, `.app {
  color: red;
}
`, ""]);
// Exports
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);


/***/ }),

/***/ 314:
/***/ ((module) => {



/*
  MIT License http://www.opensource.org/licenses/mit-license.php
  Author Tobias Koppers @sokra
*/
module.exports = function (cssWithMappingToString) {
  var list = [];

  // return the list of modules as css string
  list.toString = function toString() {
    return this.map(function (item) {
      var content = "";
      var needLayer = typeof item[5] !== "undefined";
      if (item[4]) {
        content += "@supports (".concat(item[4], ") {");
      }
      if (item[2]) {
        content += "@media ".concat(item[2], " {");
      }
      if (needLayer) {
        content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
      }
      content += cssWithMappingToString(item);
      if (needLayer) {
        content += "}";
      }
      if (item[2]) {
        content += "}";
      }
      if (item[4]) {
        content += "}";
      }
      return content;
    }).join("");
  };

  // import a list of modules into the list
  list.i = function i(modules, media, dedupe, supports, layer) {
    if (typeof modules === "string") {
      modules = [[null, modules, undefined]];
    }
    var alreadyImportedModules = {};
    if (dedupe) {
      for (var k = 0; k < this.length; k++) {
        var id = this[k][0];
        if (id != null) {
          alreadyImportedModules[id] = true;
        }
      }
    }
    for (var _k = 0; _k < modules.length; _k++) {
      var item = [].concat(modules[_k]);
      if (dedupe && alreadyImportedModules[item[0]]) {
        continue;
      }
      if (typeof layer !== "undefined") {
        if (typeof item[5] === "undefined") {
          item[5] = layer;
        } else {
          item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
          item[5] = layer;
        }
      }
      if (media) {
        if (!item[2]) {
          item[2] = media;
        } else {
          item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
          item[2] = media;
        }
      }
      if (supports) {
        if (!item[4]) {
          item[4] = "".concat(supports);
        } else {
          item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
          item[4] = supports;
        }
      }
      list.push(item);
    }
  };
  return list;
};

/***/ }),

/***/ 601:
/***/ ((module) => {



module.exports = function (i) {
  return i[1];
};

/***/ }),

/***/ 72:
/***/ ((module) => {



var stylesInDOM = [];
function getIndexByIdentifier(identifier) {
  var result = -1;
  for (var i = 0; i < stylesInDOM.length; i++) {
    if (stylesInDOM[i].identifier === identifier) {
      result = i;
      break;
    }
  }
  return result;
}
function modulesToDom(list, options) {
  var idCountMap = {};
  var identifiers = [];
  for (var i = 0; i < list.length; i++) {
    var item = list[i];
    var id = options.base ? item[0] + options.base : item[0];
    var count = idCountMap[id] || 0;
    var identifier = "".concat(id, " ").concat(count);
    idCountMap[id] = count + 1;
    var indexByIdentifier = getIndexByIdentifier(identifier);
    var obj = {
      css: item[1],
      media: item[2],
      sourceMap: item[3],
      supports: item[4],
      layer: item[5]
    };
    if (indexByIdentifier !== -1) {
      stylesInDOM[indexByIdentifier].references++;
      stylesInDOM[indexByIdentifier].updater(obj);
    } else {
      var updater = addElementStyle(obj, options);
      options.byIndex = i;
      stylesInDOM.splice(i, 0, {
        identifier: identifier,
        updater: updater,
        references: 1
      });
    }
    identifiers.push(identifier);
  }
  return identifiers;
}
function addElementStyle(obj, options) {
  var api = options.domAPI(options);
  api.update(obj);
  var updater = function updater(newObj) {
    if (newObj) {
      if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
        return;
      }
      api.update(obj = newObj);
    } else {
      api.remove();
    }
  };
  return updater;
}
module.exports = function (list, options) {
  options = options || {};
  list = list || [];
  var lastIdentifiers = modulesToDom(list, options);
  return function update(newList) {
    newList = newList || [];
    for (var i = 0; i < lastIdentifiers.length; i++) {
      var identifier = lastIdentifiers[i];
      var index = getIndexByIdentifier(identifier);
      stylesInDOM[index].references--;
    }
    var newLastIdentifiers = modulesToDom(newList, options);
    for (var _i = 0; _i < lastIdentifiers.length; _i++) {
      var _identifier = lastIdentifiers[_i];
      var _index = getIndexByIdentifier(_identifier);
      if (stylesInDOM[_index].references === 0) {
        stylesInDOM[_index].updater();
        stylesInDOM.splice(_index, 1);
      }
    }
    lastIdentifiers = newLastIdentifiers;
  };
};

/***/ }),

/***/ 659:
/***/ ((module) => {



var memo = {};

/* istanbul ignore next  */
function getTarget(target) {
  if (typeof memo[target] === "undefined") {
    var styleTarget = document.querySelector(target);

    // Special case to return head of iframe instead of iframe itself
    if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
      try {
        // This will throw an exception if access to iframe is blocked
        // due to cross-origin restrictions
        styleTarget = styleTarget.contentDocument.head;
      } catch (e) {
        // istanbul ignore next
        styleTarget = null;
      }
    }
    memo[target] = styleTarget;
  }
  return memo[target];
}

/* istanbul ignore next  */
function insertBySelector(insert, style) {
  var target = getTarget(insert);
  if (!target) {
    throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  }
  target.appendChild(style);
}
module.exports = insertBySelector;

/***/ }),

/***/ 540:
/***/ ((module) => {



/* istanbul ignore next  */
function insertStyleElement(options) {
  var element = document.createElement("style");
  options.setAttributes(element, options.attributes);
  options.insert(element, options.options);
  return element;
}
module.exports = insertStyleElement;

/***/ }),

/***/ 56:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {



/* istanbul ignore next  */
function setAttributesWithoutAttributes(styleElement) {
  var nonce =  true ? __webpack_require__.nc : 0;
  if (nonce) {
    styleElement.setAttribute("nonce", nonce);
  }
}
module.exports = setAttributesWithoutAttributes;

/***/ }),

/***/ 825:
/***/ ((module) => {



/* istanbul ignore next  */
function apply(styleElement, options, obj) {
  var css = "";
  if (obj.supports) {
    css += "@supports (".concat(obj.supports, ") {");
  }
  if (obj.media) {
    css += "@media ".concat(obj.media, " {");
  }
  var needLayer = typeof obj.layer !== "undefined";
  if (needLayer) {
    css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
  }
  css += obj.css;
  if (needLayer) {
    css += "}";
  }
  if (obj.media) {
    css += "}";
  }
  if (obj.supports) {
    css += "}";
  }
  var sourceMap = obj.sourceMap;
  if (sourceMap && typeof btoa !== "undefined") {
    css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  }

  // For old IE
  /* istanbul ignore if  */
  options.styleTagTransform(css, styleElement, options.options);
}
function removeStyleElement(styleElement) {
  // istanbul ignore if
  if (styleElement.parentNode === null) {
    return false;
  }
  styleElement.parentNode.removeChild(styleElement);
}

/* istanbul ignore next  */
function domAPI(options) {
  if (typeof document === "undefined") {
    return {
      update: function update() {},
      remove: function remove() {}
    };
  }
  var styleElement = options.insertStyleElement(options);
  return {
    update: function update(obj) {
      apply(styleElement, options, obj);
    },
    remove: function remove() {
      removeStyleElement(styleElement);
    }
  };
}
module.exports = domAPI;

/***/ }),

/***/ 113:
/***/ ((module) => {



/* istanbul ignore next  */
function styleTagTransform(css, styleElement) {
  if (styleElement.styleSheet) {
    styleElement.styleSheet.cssText = css;
  } else {
    while (styleElement.firstChild) {
      styleElement.removeChild(styleElement.firstChild);
    }
    styleElement.appendChild(document.createTextNode(css));
  }
}
module.exports = styleTagTransform;

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			id: moduleId,
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/nonce */
/******/ 	(() => {
/******/ 		__webpack_require__.nc = undefined;
/******/ 	})();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};

// NAMESPACE OBJECT: ./node_modules/preact/compat/dist/compat.module.js
var compat_module_namespaceObject = {};
__webpack_require__.r(compat_module_namespaceObject);
__webpack_require__.d(compat_module_namespaceObject, {
  Children: () => (compat_module_I),
  Component: () => (preact_module_k),
  Fragment: () => (preact_module_b),
  PureComponent: () => (compat_module_E),
  StrictMode: () => (mn),
  Suspense: () => (compat_module_D),
  SuspenseList: () => (compat_module_F),
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (un),
  cloneElement: () => (sn),
  createContext: () => (G),
  createElement: () => (preact_module_),
  createFactory: () => (cn),
  createPortal: () => (compat_module_P),
  createRef: () => (preact_module_m),
  "default": () => (xn),
  findDOMNode: () => (vn),
  flushSync: () => (pn),
  forwardRef: () => (compat_module_w),
  hydrate: () => (compat_module_q),
  isElement: () => (gn),
  isFragment: () => (ln),
  isMemo: () => (an),
  isValidElement: () => (fn),
  lazy: () => (compat_module_O),
  memo: () => (compat_module_C),
  render: () => (compat_module_$),
  startTransition: () => (yn),
  unmountComponentAtNode: () => (hn),
  unstable_batchedUpdates: () => (dn),
  useCallback: () => (hooks_module_q),
  useContext: () => (hooks_module_x),
  useDebugValue: () => (hooks_module_P),
  useDeferredValue: () => (_n),
  useEffect: () => (hooks_module_y),
  useErrorBoundary: () => (hooks_module_b),
  useId: () => (hooks_module_g),
  useImperativeHandle: () => (hooks_module_F),
  useInsertionEffect: () => (Sn),
  useLayoutEffect: () => (hooks_module_),
  useMemo: () => (hooks_module_T),
  useReducer: () => (hooks_module_p),
  useRef: () => (hooks_module_A),
  useState: () => (hooks_module_h),
  useSyncExternalStore: () => (En),
  useTransition: () => (bn),
  version: () => (on)
});

;// external "_"
const external_namespaceObject = _;
;// ./node_modules/reaxes-utils/index.js
var r={243:r=>{r.exports=external_namespaceObject}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}};return r[t](i,i.exports,n),i.exports}n.d=(t,r)=>{for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);var o={};(()=>{function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(r,e,n,o){var i=n?n.call(o,r,e):void 0;if(void 0!==i)return!!i;if(r===e)return!0;if("object"!==t(r)||!r||"object"!==t(e)||!e)return!1;var u=Object.keys(r),c=Object.keys(e);if(u.length!==c.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),l=0;l<u.length;l++){var f=u[l];if(!a(f))return!1;var s=r[f],y=e[f];if(!1===(i=n?n.call(o,s,y,f):void 0)||void 0===i&&s!==y)return!1}return!0}n.d(o,{Vj:()=>bt,kk:()=>gt,B7:()=>W,hu:()=>K,nJ:()=>rt,aj:()=>nt,CO:()=>et,DI:()=>tt,Ni:()=>Y,l$:()=>jt,Zk:()=>e,A3:()=>A,$1:()=>vt,lH:()=>O,Ds:()=>c,Nk:()=>Z,t1:()=>B,zW:()=>ft,qw:()=>ht,tI:()=>u,dl:()=>yt,s6:()=>C,Lh:()=>H,bn:()=>_,rN:()=>P,wU:()=>r,Pz:()=>m,P2:()=>wt});var e=function(t){var r;switch(!0){case"function"==typeof queueMicrotask:r=queueMicrotask;break;case!("function"!=typeof Promise||!Promise.resolve):r=function(t){return Promise.resolve().then(t)};break;default:r=setTimeout}r(t)},i=n(243),u=function(t){return!!(i.isObject(t)&&t instanceof Promise)},c=function(t){var r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=0;return function(){for(var i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];if(n)return Date.now()-o>e?(t(...u),void(o=Date.now())):(o=Date.now(),clearTimeout(r),void(r=setTimeout((function(){return t(...u)}),e)));clearTimeout(r),r=setTimeout((function(){return t(...u)}),e)}};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}m.stable=function(t,r,e,n){void 0===n&&(n=p());var o,i=d(t,"",0,[],void 0,0,n)||t;try{o=0===y.length?JSON.stringify(i,r,e):JSON.stringify(i,g(r),e)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==s.length;){var u=s.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return o};var l="[...]",f="[Circular]",s=[],y=[];function p(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function m(t,r,e,n){var o;void 0===n&&(n=p()),v(t,"",0,[],void 0,0,n);try{o=0===y.length?JSON.stringify(t,r,e):JSON.stringify(t,g(r),e)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==s.length;){var i=s.pop();4===i.length?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function b(t,r,e,n){var o=Object.getOwnPropertyDescriptor(n,e);void 0!==o.get?o.configurable?(Object.defineProperty(n,e,{value:t}),s.push([n,e,r,o])):y.push([r,e,t]):(n[e]=t,s.push([n,e,r]))}function v(t,r,e,n,o,i,u){var c;if(i+=1,"object"===a(t)&&null!==t){for(c=0;c<n.length;c++)if(n[c]===t)return void b(f,t,r,o);if(void 0!==u.depthLimit&&i>u.depthLimit)return void b(l,t,r,o);if(void 0!==u.edgesLimit&&e+1>u.edgesLimit)return void b(l,t,r,o);if(n.push(t),Array.isArray(t))for(c=0;c<t.length;c++)v(t[c],c,c,n,t,i,u);else{var s=Object.keys(t);for(c=0;c<s.length;c++){var y=s[c];v(t[y],y,c,n,t,i,u)}}n.pop()}}function h(t,r){return t<r?-1:t>r?1:0}function d(t,r,e,n,o,i,u){var c;if(i+=1,"object"===a(t)&&null!==t){for(c=0;c<n.length;c++)if(n[c]===t)return void b(f,t,r,o);try{if("function"==typeof t.toJSON)return}catch(t){return}if(void 0!==u.depthLimit&&i>u.depthLimit)return void b(l,t,r,o);if(void 0!==u.edgesLimit&&e+1>u.edgesLimit)return void b(l,t,r,o);if(n.push(t),Array.isArray(t))for(c=0;c<t.length;c++)d(t[c],c,c,n,t,i,u);else{var y={},p=Object.keys(t).sort(h);for(c=0;c<p.length;c++){var m=p[c];d(t[m],m,c,n,t,i,u),y[m]=t[m]}if(void 0===o)return y;s.push([o,r,t]),o[r]=y}n.pop()}}function g(t){return t=void 0!==t?t:function(t,r){return r},function(r,e){if(y.length>0)for(var n=0;n<y.length;n++){var o=y[n];if(o[1]===r&&o[0]===e){e=o[2],y.splice(n,1);break}}return t.call(this,r,e)}}var w=function(t){return t.toString().split("").reduce((function(t,r){return/[A-Z]/.test(r)?t.concat("-".concat(r.toLowerCase())):t.concat(r)}),"")},S=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return e.reduce((function(t,r,e){return t[0]+="string"==typeof r?r:(t.push(r),"%o"),t}),["%c",t])},O=new Proxy((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var r=Object.keys(t).reduce((function(r,e){return"".concat(r).concat(String(w(e)),":").concat(t[e],";")}),"");r.includes("font-weight")||(r+="font-weight:normal;");for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];console.groupCollapsed(...S(r,...n)),console.trace("%c","font-weight:normal;"),console.groupEnd()}}),{get:function(t,r,e){if(["prototype","hasOwnProperty","toString","prototype","length","name","arguments","constructor","isPrototypeOf","apply","call","bind"].includes(r))return t[r];var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"trace";return new Proxy((function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return"trace"===t?(console.groupCollapsed(...S("color:".concat(r,";font-weight:normal;"),...n)),console.trace("%c","font-weight:normal;"),void console.groupEnd()):console[t](...S("color:".concat(r),...n))}),{get:function(e,n,o){return function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];if("trace"===t)return console.groupCollapsed(...S("color:".concat(n,";font-weight:normal;"),...o)),console.trace("%c","font-weight:normal;"),void console.groupEnd();if("apply"===n){var u=o[1];return"trace"===t?(console.groupCollapsed(...S("color:".concat(r),...u)),console.trace("%c","font-weight:normal;"),void console.groupEnd()):console[t](...S("color:".concat(r),...u))}return console[t](...S("color:".concat(n.toString()),...o))}}})};switch(r){case"trace":case"warn":case"log":case"info":case"error":case"debug":return n(r)}return n("trace")}});function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}var A=function(t){switch(t){case null:case"":case void 0:return!0}return"object"===j(t)&&(Array.isArray(t)?0===t.length:0===Object.keys(t).length)},P=function(t){var r=!0;return function(){r&&(t(...arguments),r=!1)}};function k(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var T,E,x,N,I,C=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return[t,...e.map((function(r){if("function"==typeof r)return r(t)}))]},M=C({a:1,b:2},(function(t){return[t.a,"sdad"]})),L=function(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,c=[],a=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;a=!1}else for(;!(a=(n=i.call(e)).done)&&(c.push(n.value),c.length!==r);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return k(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return k(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(M,2);L[0],L[1];function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function J(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==D(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===D(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function U(t,r,e){!function(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r),r.set(t,e)}function z(t,r){return function(t,r){if(r.get)return r.get.call(t);return r.value}(t,R(t,r,"get"))}function $(t,r,e){return function(t,r,e){if(r.set)r.set.call(t,e);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=e}}(t,R(t,r,"set"),e),e}function R(t,r,e){if(!r.has(t))throw new TypeError("attempted to "+e+" private field on non-instance");return r.get(t)}var W=(T=new WeakMap,E=new WeakMap,x=new WeakMap,N=new WeakMap,I=new WeakMap,class{constructor(){var t=this;U(this,T,{writable:!0,value:[]}),U(this,E,{writable:!0,value:0}),U(this,x,{writable:!0,value:void 0}),U(this,N,{writable:!0,value:void 0}),U(this,I,{writable:!0,value:!1}),J(this,"start",(function(r){return r<=0?console.error("timer.start值是负数! :>",r):!0!==z(t,I)?($(t,E,r),z(t,x).call(t),t):void 0}));$(this,x,(function r(){$(t,I,!0),z(t,E)>=1e3?$(t,N,setTimeout((function(){$(t,E,z(t,E)-1e3),r(),z(t,T).forEach((function(r){try{r(z(t,E))}catch(t){console.error(t,"Timer 订阅运行时错误: 当前执行函数名>".concat(r.name))}}))}),1e3)):($(t,N,setTimeout((function(){$(t,E,0),z(t,T).forEach((function(r){try{r(z(t,E))}catch(t){console.error(t,"Timer 订阅运行时错误: 当前执行函数名>".concat(r.name))}}))}),z(t,E))),$(t,I,!1)),z(t,T).forEach((function(r){try{r(z(t,E))}catch(t){console.error(t,"Timer 订阅运行时错误: 当前执行函数名>".concat(r.name))}}))}))}subscribe(t){return!z(this,T).includes(t)&&z(this,T).push(t),this}unsubscribe(t){return z(this,T).splice(z(this,T).indexOf(t),1),this}destroy(){}stop(){return clearTimeout(z(this,N)),$(this,E,0),$(this,I,!1),this}});function F(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,c=[],a=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;a=!1}else for(;!(a=(n=i.call(e)).done)&&(c.push(n.value),c.length!==r);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return q(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return q(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var _=function(t,r,e){var n=F(r,2),o=n[0],i=n[1],u=t.slice(0,o),c=t.slice(i);return u.concat(e,c)};function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function Q(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,c=[],a=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;a=!1}else for(;!(a=(n=i.call(e)).done)&&(c.push(n.value),c.length!==r);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return V(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return V(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.href;try{if(t.includes("?")){var r=Q(t.split("?"),2);t=r[1]}if(t.includes("/")){var e=Q(t.split("/"),1);t=e[0]}if(!t.includes("="))return{};if(t.includes("&"))return t.split("&").reduce((function(t,r){var e=Q(r.split("="),2),n=e[0],o=e[1];return t[n]=o,t}),{});var n={},o=Q(t.split("="),2),i=o[0],u=o[1];return n[i]=u,n}catch(r){throw console.error("decodeQueryString -> 转换失败 , 原始字符串为 : ".concat(t)),console.error(r),""}},B=function(t){var r="";for(var e in t){var n=t[e];if("object"===G(n)&&null!==n)throw"暂不支持嵌套对象";if("symbol"===G(e))throw"不支持key为Symbol";r="".concat(r).concat(r&&"&").concat(e,"=").concat(n)}return r},H=function(t){var r,e,n=new Promise((function(n,o){r=n,e=o,"function"==typeof t&&t(n,o)}));return Object.assign(n,{resolve:r,reject:e}),n},X=function(t){return"string"==typeof t?'"'.concat(t,'"'):t},K=function(t,r){for(var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<r.length;n++){var o=r[n];if(o!==t)return e&&O.coral("断言组第 ",n," 个表达式不符合预期为 ",X(t)," 的结果, expressionList[",n,"]: ",X(o)),!1}return!0},Y=function(t){return K(!0,t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])},tt=function(t){return K(!1,t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])},rt=function(t,r){for(var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<r.length;n++){var o=r[n];if(o===t)return e&&O["#81cc00"]("断言组第 ",n," 个表达式符合预期为 ",X(t)," 的结果, expressionList[",n,"]: ",X(o)),!0}return e&&O.coral("断言组每个值都不符合预期为 ",X(t)," 的结果, expressionList: ",X(r)),!1},et=function(t){return rt(!0,t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])},nt=function(t){return rt(!1,t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])};function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function ut(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?it(Object(e),!0).forEach((function(r){lt(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):it(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function ct(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return at(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return at(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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,u=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==e.return||e.return()}finally{if(c)throw i}}}}function at(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function lt(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==ot(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===ot(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var ft=new class{constructor(){lt(this,"addKey",(function(t){if(Array.isArray(t)){var r,e=!0,n=ct(t);try{for(n.s();!(r=n.n()).done;){if(!r.value.hasOwnProperty("key")){e=!1;break}}}catch(t){n.e(t)}finally{n.f()}return!0===e?t:t.map((function(t){return ut(ut({},t),{},{key:Math.random()})}))}throw"必须传入数组"}))}},st=n(243),yt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return JSON.parse(m(st.cloneDeep(t)))};function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}var mt={get:function(t){var r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:decodeURIComponent;if(t&&document.cookie&&""!==document.cookie)for(var n=document.cookie.split("; "),o=0;o<n.length;o++){var i=n[o].split("="),u=i.slice(1).join("="),c=e(i[0]);if(0===u.indexOf('"')&&(u=u.slice(1,-1)),t===c){r=e(u);break}}return r},set:function(t,r,e){var n=(e=Object.assign({},{encode:encodeURIComponent,expires:365,path:"/",secure:"https:"===window.location.protocol},e)).expires;if("number"==typeof n&&0!==n&&isFinite(n)&&(n=new Date((new Date).getTime()+864e5*n)),"object"===pt(r))try{r=JSON.stringify(r)}catch(t){}return t=e.encode(t),r=e.encode(r),document.cookie=[t+"="+r,n?"; expires="+n.toUTCString():"",e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.secure?"; secure":""].join("")},remove:function(t){return this.set(t,"",{expires:-1}),!this.get(t)},hasItem:function(t){return new RegExp("(?:|;s*)"+encodeURIComponent(t).replace(/[-.+]/g,"$&")+"s=").test(document.cookie)}};const bt=mt;const vt=function(t,r){if(0!==arguments.length){var e=Object.prototype.toString.call(t).split(" ")[1],n=e.slice(0,e.length-1).toLowerCase();if(1===arguments.length)return n;if(arguments.length>=2)return n===r.toLowerCase()}else console.error("Js类型检测方法参数不建议为空。")};const ht=function t(r,e){if(r&&vt(r,"object")){vt(e,"array")||(e=Array.prototype.slice.call(arguments,1));var n=e.shift();return 0===e.length?r[n]:t.call(this,r[n],e)}console.error("调用的对象不能为空,并必须为【Object】数据类型。")};var dt=n(243);const gt={color:function(){return"#"+Math.floor(16777215*Math.random()).toString(16)},number:function(t,r,e){if(void 0===t)return Math.random();if(void 0===r&&(r=t,t=0),r<t){var n=r;r=t,t=n}if(e){var o=Math.random()*(r-t)+t;if(!0===e)return o;if("number"==typeof e){var i=o.toString(),u=i.indexOf(".");return"0"===(i=i.substr(0,u+1+e))[i.length-1]&&(i=i.substr(0,i.length-1)+dt.random(1,9)),parseFloat(i)}}return Math.floor(Math.random()*(r-t+1)+t)}};function wt(t,r,e){var n,o,i,u=0;e||(e={});var c=function(){u=!1===e.leading?0:(new Date).getTime(),n=null,t.apply(o,i),n||(o=i=null)};return function(){var a=(new Date).getTime();u||!1!==e.leading||(u=a);var l=r-(a-u);o=this,i=arguments,l<=0||l>r?(n&&(clearTimeout(n),n=null),u=a,t.apply(o,i),n||(o=i=null)):n||!1===e.trailing||(n=setTimeout(c,l))}}function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function Ot(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==St(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===St(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var jt=(new class{constructor(){Ot(this,"assignPick",(function(t,r){return Object.keys(t).forEach((function(e){r.includes(e)||delete t[e]})),t}))}}).assignPick})();var i=o.Vj,u=o.kk,c=o.B7,a=o.hu,l=o.nJ,f=o.aj,s=o.CO,y=o.DI,p=o.Ni,m=o.l$,b=o.Zk,v=o.A3,h=o.$1,d=o.lH,g=o.Ds,w=o.Nk,S=o.t1,O=o.zW,j=o.qw,A=o.tI,P=o.dl,k=o.s6,T=o.Lh,E=o.bn,x=o.rN,N=o.wU,I=o.Pz,C=o.P2;
//# sourceMappingURL=index.js.map
;// ./projects/switch520-auto-secret/DOM-finder/index.ts
var articleContainer = function articleContainer() {
  return document.querySelector('div.entry-content.u-text-format.u-clearfix');
};
var titleElement = function titleElement() {
  return document.querySelector('h1.entry-title');
};

/**
 * 根据标题解析出中文名和英文名
 */
var analyzeGameNameInTitle = function analyzeGameNameInTitle() {
  var _titleElement;
  var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_titleElement = titleElement()) === null || _titleElement === void 0 ? void 0 : _titleElement.innerText;
  var chineseGameName;
  var englishGameName;
  var _titleText = title.split(/\/|\|/)[0];

  //<Liberated: Enhanced Edition>
  if (/^[a-zA-Z0-9\s:]+/.test(_titleText)) {
    chineseGameName = null;
    englishGameName = _titleText.replaceAll(/[\u4e00-\u9fa5]/g, '').replaceAll(/^:|:$/g, '').trim();
  }

  //<商店模拟器 超市 Shop Simulator Supermarket>
  if (/^\s*[\u4e00-\u9fa5™…?《][\w\W]*[\u4e00-\u9fa5\s™…?》-](?=(\s|$))/.test(_titleText)) {
    var _titleText$match;
    chineseGameName = (_titleText$match = _titleText.match(/^\s*[\u4e00-\u9fa5™…?《-]+[\w\W]*[\u4e00-\u9fa5™…?-]+(?=\s?)/)) === null || _titleText$match === void 0 ? void 0 : _titleText$match[0];
    englishGameName = _titleText.replace(chineseGameName, '').replaceAll(/^:|:$/g, '').trim();
  }

  //<零号奴隶X Slave Zero X>
  if (/^\s*[\u4e00-\u9fa5™…?《]+[a-zA-Z0-9](\s+|\b)/.test(_titleText)) {
    var _titleText$match2;
    chineseGameName = (_titleText$match2 = _titleText.match(/\s*[\u4e00-\u9fa5《]+[a-zA-Z0-9](?=\s*)/)) === null || _titleText$match2 === void 0 ? void 0 : _titleText$match2[0];
    englishGameName = _titleText.replace(chineseGameName, '').replaceAll(/^:|:$/g, '').trim();
  }

  //<我的世界:传奇:minecraft:legends>
  if (_titleText.split(':').length - 1 > 2 && /^[\u4e00-\u9fa5]+[\w\W]*:[\w\W]*$/i.test(_titleText)) {
    var _titleText$match3;
    chineseGameName = (_titleText$match3 = _titleText.match(/^[\u4e00-\u9fa5]+:[\u4e00-\u9fa5]+/g)) === null || _titleText$match3 === void 0 ? void 0 : _titleText$match3[0];
    englishGameName = _titleText.replace(chineseGameName, '').replaceAll(/^:|:$/g, '').trim();
  }
  //<超级竞技场:Hyper Jam>
  if (/^[\u4e00-\u9fa5]+:[a-zA-Z\s]+$/.test(_titleText)) {
    var _titleText$match4;
    chineseGameName = (_titleText$match4 = _titleText.match(/^\s*[\u4e00-\u9fa5]+:?[\u4e00-\u9fa5]*(?=:)/i)) === null || _titleText$match4 === void 0 ? void 0 : _titleText$match4[0];
    englishGameName = _titleText.replace(chineseGameName, '').replaceAll(/^:|:$/g, '').trim();
  }
  var res = {
    chinese: chineseGameName,
    english: englishGameName
  };
  return res;
};

/**
 * 根据文章内容解析出游戏名
 */
var analyzeGameNameInArticle = function analyzeGameNameInArticle(rowText, el) {
  var _el$childNodes$;
  if (/^《[\w\W]+》$/.test(rowText)) {
    var _rowText$match;
     false && 0;
    return analyzeGameNameInTitle((_rowText$match = rowText.match(/(?<=《)[\w\W]+(?=》)/)) === null || _rowText$match === void 0 ? void 0 : _rowText$match[0]);
  } else if (/^《[\w\W]+》\s*[\u4e00-\u9fa5]+\s*[a-zA-Z]+\s*$/.test(rowText)) {
    var _rowText$match2;
     false && 0;
    return analyzeGameNameInTitle(rowText.replaceAll(/[\u4e00-\u9fa5《》][a-zA-Z0-9]+/g, '').replaceAll(/[\u4e00-\u9fa5《》]/g, ''));
  } else if (el !== null && el !== void 0 && (_el$childNodes$ = el.childNodes[0]) !== null && _el$childNodes$ !== void 0 && _el$childNodes$.textContent.startsWith('名称:')) {
    var _el$childNodes$2, _el$childNodes$3;
     false && 0;
    return analyzeGameNameInTitle((_el$childNodes$3 = el.childNodes[0]) === null || _el$childNodes$3 === void 0 ? void 0 : _el$childNodes$3.textContent.replace('名称:', '').trim());
  } else if ((el === null || el === void 0 ? void 0 : el.tagName.toLowerCase()) === 'p') {
     false && 0;
    return analyzeGameNameInTitle(rowText);
  }
  return analyzeGameNameInTitle(rowText);
};
var nameInTitle = function nameInTitle() {
  var el = titleElement();
  return analyzeGameNameInTitle(el.innerText);
};
var nameInArticle = function nameInArticle() {
  var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : articleContainer();
  return Array.from(container.querySelectorAll('*')).reduce(function (accu, el) {
    if (accu) return accu;
    if (el.innerText.includes('解压密码') || el.innerText.includes('去Steam') || !el.innerText.trim()) return null;
    return accu = analyzeGameNameInArticle(el.innerText, el);
  }, null);
};
var tester = function tester() {
  var testCases = [{
    type: 'title',
    input: '地平线 零之曙光™ 重制版',
    expectENG: null,
    expectCHN: '地平线 零之曙光™ 重制版'
  }, {
    type: 'title',
    input: '超级竞技场:Hyper Jam/官方中文/本体+1.1.0升补/[NSZ]',
    expectENG: 'Hyper Jam',
    expectCHN: '超级竞技场'
  }, {
    type: 'title',
    input: '超级竞技场:弯道:Hyper Jam:Apex/官方中文/本体+1.1.0升补/[NSZ]',
    expectENG: 'Hyper Jam:Apex',
    expectCHN: '超级竞技场:弯道'
  }, {
    type: 'title',
    input: '零号奴隶X Slave Zero X',
    expectENG: 'Slave Zero X',
    expectCHN: '零号奴隶X'
  }, {
    type: 'title',
    input: '商店模拟器 超市 Shop Simulator Supermarket',
    expectENG: 'Shop Simulator Supermarket',
    expectCHN: '商店模拟器 超市'
  }, {
    type: 'title',
    input: 'Liberated: Enhanced Edition',
    expectENG: 'Liberated: Enhanced Edition',
    expectCHN: undefined
  }, {
    type: 'title',
    input: '蒸汽朋克塔2',
    expectENG: null,
    expectCHN: '蒸汽朋克塔2'
  }, {
    type: 'title',
    input: '格兰蒂亚秘闻 Secrets of Grindea',
    expectENG: 'Secrets of Grindea',
    expectCHN: '格兰蒂亚秘闻'
  }, {
    type: 'title',
    input: ' 英雄传说 黎之轨迹Ⅱ -绯红原罪-',
    expectENG: null,
    expectCHN: '英雄传说 黎之轨迹Ⅱ -绯红原罪-'
  }, {
    type: 'article',
    input: '《地平线 零之曙光™》重制版 Horizon Zero Dawn Remastered',
    expectENG: 'Horizon Zero Dawn Remastered',
    expectCHN: '《地平线 零之曙光™》重制版'
  }];
  testCases.forEach(function (_ref) {
    var _analyzeGameNameInArt, _chinese, _english, _chinese2, _english2;
    var type = _ref.type,
      expectENG = _ref.expectENG,
      expectCHN = _ref.expectCHN,
      input = _ref.input;
    var _ref2 = type === 'title' ? analyzeGameNameInTitle(input) : (_analyzeGameNameInArt = analyzeGameNameInArticle(input)) !== null && _analyzeGameNameInArt !== void 0 ? _analyzeGameNameInArt : {},
      chinese = _ref2.chinese,
      english = _ref2.english;
    if (!chinese) chinese = null;
    if (!english) english = null;
    var chinesePass = ((_chinese = chinese) === null || _chinese === void 0 ? void 0 : _chinese.trim()) == (expectCHN === null || expectCHN === void 0 ? void 0 : expectCHN.trim());
    var englishPass = ((_english = english) === null || _english === void 0 ? void 0 : _english.trim()) == (expectENG === null || expectENG === void 0 ? void 0 : expectENG.trim());
    if (chinesePass && englishPass) {
      crayon.group.lightGreen(input);
    } else {
      crayon.group.blue(input);
    }
    if (((_chinese2 = chinese) === null || _chinese2 === void 0 ? void 0 : _chinese2.trim()) != (expectCHN === null || expectCHN === void 0 ? void 0 : expectCHN.trim())) {
      console.warn("\u6D4B\u8BD5\u4E0D\u901A\u8FC7Chinese | match:<".concat(chinese || null, "> | expect:<").concat(expectCHN || null, "> "));
    }
    if (((_english2 = english) === null || _english2 === void 0 ? void 0 : _english2.trim()) != (expectENG === null || expectENG === void 0 ? void 0 : expectENG.trim())) {
      console.warn("\u6D4B\u8BD5\u4E0D\u901A\u8FC7English | match:<".concat(english || null, "> | expect:<").concat(expectENG || null, "> "));
    }
    console.groupEnd();
  });
};
 false && 0;

;// ./node_modules/preact/dist/preact.module.js
var preact_module_n,preact_module_l,preact_module_u,t,preact_module_i,preact_module_o,preact_module_r,preact_module_f,preact_module_e,preact_module_c,preact_module_s,preact_module_a,preact_module_h={},preact_module_v=[],preact_module_p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,preact_module_y=Array.isArray;function preact_module_d(n,l){for(var u in l)n[u]=l[u];return n}function preact_module_w(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function preact_module_(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?preact_module_n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return preact_module_g(l,f,i,o,null)}function preact_module_g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++preact_module_u:r,__i:-1,__u:0};return null==r&&null!=preact_module_l.vnode&&preact_module_l.vnode(f),f}function preact_module_m(){return{current:null}}function preact_module_b(n){return n.children}function preact_module_k(n,l){this.props=n,this.context=l}function preact_module_x(n,l){if(null==l)return n.__?preact_module_x(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?preact_module_x(n):null}function preact_module_C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return preact_module_C(n)}}function preact_module_S(n){(!n.__d&&(n.__d=!0)&&preact_module_i.push(n)&&!M.__r++||preact_module_o!==preact_module_l.debounceRendering)&&((preact_module_o=preact_module_l.debounceRendering)||preact_module_r)(M)}function M(){var n,u,t,o,r,e,c,s;for(preact_module_i.sort(preact_module_f);n=preact_module_i.shift();)n.__d&&(u=preact_module_i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=preact_module_d({},r)).__v=r.__v+1,preact_module_l.vnode&&preact_module_l.vnode(o),preact_module_O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?preact_module_x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,preact_module_j(c,o,s),o.__e!=e&&preact_module_C(o)),preact_module_i.length>u&&preact_module_i.sort(preact_module_f));M.__r=0}function preact_module_P(n,l,u,t,i,o,r,f,e,c,s){var a,p,y,d,w,_=t&&t.__k||preact_module_v,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&(p=-1===y.__i?preact_module_h:_[y.__i]||preact_module_h,y.__i=a,preact_module_O(n,y,p,i,o,r,f,e,c,s),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&preact_module_N(p.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||p.__k===y.__k?e=preact_module_I(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=l[t])&&"boolean"!=typeof i&&"function"!=typeof i?(r=t+a,(i=n.__k[t]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?preact_module_g(null,i,null,null,null):preact_module_y(i)?preact_module_g(preact_module_b,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?preact_module_g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=n,i.__b=n.__b+1,o=null,-1!==(f=i.__i=L(i,u,r,s))&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a--:f==r+1?a++:(f>r?a--:a++,i.__u|=65536))):i=n.__k[t]=null;if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=preact_module_x(o)),V(o,o))}function preact_module_I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=preact_module_I(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=preact_module_x(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(preact_module_y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function preact_module_T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||preact_module_p.test(l)?u:u+"px"}function preact_module_A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||preact_module_T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||preact_module_T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=preact_module_e,n.addEventListener(l,o?preact_module_s:preact_module_c,o)):n.removeEventListener(l,o?preact_module_s:preact_module_c,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=preact_module_e++;else if(u.t<t.u)return;return t(preact_module_l.event?preact_module_l.event(u):u)}}}function preact_module_O(n,u,t,i,o,r,f,e,c,s){var a,h,v,p,w,_,g,m,x,C,S,M,$,I,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=preact_module_l.__b)&&a(u);n:if("function"==typeof T)try{if(m=u.props,x="prototype"in T&&T.prototype.render,C=(a=T.contextType)&&i[a.__c],S=a?C?C.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(m,S):(u.__c=h=new preact_module_k(m,S),h.constructor=T,h.render=q),C&&C.sub(h),h.props=m,h.state||(h.state={}),h.context=S,h.__n=i,v=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=preact_module_d({},h.__s)),preact_module_d(h.__s,T.getDerivedStateFromProps(m,h.__s))),p=h.props,w=h.state,h.__v=u,v)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==T.getDerivedStateFromProps&&m!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,S),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,S)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,S),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,w,_)})}if(h.context=S,h.props=m,h.__P=n,h.__e=!1,$=preact_module_l.__r,I=0,x){for(h.state=h.__s,h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=preact_module_d(preact_module_d({},i),h.getChildContext())),x&&!v&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(p,w)),preact_module_P(n,preact_module_y(L=null!=a&&a.type===preact_module_b&&null==a.key?a.props.children:a)?L:[L],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r){for(u.__u|=c?160:128;e&&8===e.nodeType&&e.nextSibling;)e=e.nextSibling;r[r.indexOf(e)]=null,u.__e=e}else u.__e=t.__e,u.__k=t.__k;preact_module_l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=preact_module_l.diffed)&&a(u)}function preact_module_j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)preact_module_N(t[i],t[++i],t[++i]);preact_module_l.__c&&preact_module_l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){preact_module_l.__e(n,u.__v)}})}function z(u,t,i,o,r,f,e,c,s){var a,v,p,d,_,g,m,b=i.props,k=t.props,C=t.type;if("svg"===C?r="http://www.w3.org/2000/svg":"math"===C?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=f)for(a=0;a<f.length;a++)if((_=f[a])&&"setAttribute"in _==!!C&&(C?_.localName===C:3===_.nodeType)){u=_,f[a]=null;break}if(null==u){if(null===C)return document.createTextNode(k);u=document.createElementNS(r,C,k.is&&k),c&&(preact_module_l.__m&&preact_module_l.__m(t,f),c=!1),f=null}if(null===C)b===k||c&&u.data===k||(u.data=k);else{if(f=f&&preact_module_n.call(u.childNodes),b=i.props||preact_module_h,!c&&null!=f)for(b={},a=0;a<u.attributes.length;a++)b[(_=u.attributes[a]).name]=_.value;for(a in b)if(_=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=_;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;preact_module_A(u,a,null,_,r)}for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?m=_:c&&"function"!=typeof _||b[a]===_||preact_module_A(u,a,_,b[a],r);if(v)c||p&&(v.__html===p.__html||v.__html===u.innerHTML)||(u.innerHTML=v.__html),t.__k=[];else if(p&&(u.innerHTML=""),preact_module_P(u,preact_module_y(d)?d:[d],t,i,o,"foreignObject"===C?"http://www.w3.org/1999/xhtml":r,f,e,f?f[0]:i.__k&&preact_module_x(i,0),c,s),null!=f)for(a=f.length;a--;)preact_module_w(f[a]);c||(a="value","progress"===C&&null==g?u.removeAttribute("value"):void 0!==g&&(g!==u[a]||"progress"===C&&!g||"option"===C&&g!==b[a])&&preact_module_A(u,a,g,b[a],r),a="checked",void 0!==m&&m!==u[a]&&preact_module_A(u,a,m,b[a],r))}return u}function preact_module_N(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){preact_module_l.__e(n,t)}}function V(n,u,t){var i,o;if(preact_module_l.unmount&&preact_module_l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||preact_module_N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){preact_module_l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||preact_module_w(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;preact_module_l.__&&preact_module_l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],preact_module_O(t,u=(!o&&i||t).__k=preact_module_(preact_module_b,null,[u]),r||preact_module_h,preact_module_h,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?preact_module_n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),preact_module_j(f,u,e)}function D(n,l){B(n,l,D)}function preact_module_E(l,u,t){var i,o,r,f,e=preact_module_d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?preact_module_n.call(arguments,2):t),preact_module_g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+preact_module_a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.forEach(function(n){n.__e=!0,preact_module_S(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}preact_module_n=preact_module_v.slice,preact_module_l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},preact_module_u=0,t=function(n){return null!=n&&null==n.constructor},preact_module_k.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=preact_module_d({},this.state),"function"==typeof n&&(n=n(preact_module_d({},u),this.props)),n&&preact_module_d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),preact_module_S(this))},preact_module_k.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),preact_module_S(this))},preact_module_k.prototype.render=preact_module_b,preact_module_i=[],preact_module_r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,preact_module_f=function(n,l){return n.__v.__b-l.__v.__b},M.__r=0,preact_module_e=0,preact_module_c=F(!1),preact_module_s=F(!0),preact_module_a=0;
//# sourceMappingURL=preact.module.js.map

;// ./node_modules/preact/hooks/dist/hooks.module.js
var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=preact_module_l,hooks_module_e=hooks_module_c.__b,hooks_module_a=hooks_module_c.__r,hooks_module_v=hooks_module_c.diffed,hooks_module_l=hooks_module_c.__c,hooks_module_m=hooks_module_c.unmount,hooks_module_s=hooks_module_c.__;function hooks_module_d(n,t){hooks_module_c.__h&&hooks_module_c.__h(hooks_module_r,n,hooks_module_o||t),hooks_module_o=0;var u=hooks_module_r.__H||(hooks_module_r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function hooks_module_h(n){return hooks_module_o=1,hooks_module_p(hooks_module_D,n)}function hooks_module_p(n,u,i){var o=hooks_module_d(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):hooks_module_D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=hooks_module_r,!hooks_module_r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};hooks_module_r.u=!0;var c=hooks_module_r.shouldComponentUpdate,e=hooks_module_r.componentWillUpdate;hooks_module_r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},hooks_module_r.shouldComponentUpdate=f}return o.__N||o.__}function hooks_module_y(n,u){var i=hooks_module_d(hooks_module_t++,3);!hooks_module_c.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__H.__h.push(i))}function hooks_module_(n,u){var i=hooks_module_d(hooks_module_t++,4);!hooks_module_c.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__h.push(i))}function hooks_module_A(n){return hooks_module_o=5,hooks_module_T(function(){return{current:n}},[])}function hooks_module_F(n,t,r){hooks_module_o=6,hooks_module_(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function hooks_module_T(n,r){var u=hooks_module_d(hooks_module_t++,7);return hooks_module_C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function hooks_module_q(n,t){return hooks_module_o=8,hooks_module_T(function(){return n},t)}function hooks_module_x(n){var u=hooks_module_r.context[n.__c],i=hooks_module_d(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(hooks_module_r)),u.props.value):n.__}function hooks_module_P(n,t){hooks_module_c.useDebugValue&&hooks_module_c.useDebugValue(t?t(n):n)}function hooks_module_b(n){var u=hooks_module_d(hooks_module_t++,10),i=hooks_module_h();return u.__=n,hooks_module_r.componentDidCatch||(hooks_module_r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function hooks_module_g(){var n=hooks_module_d(hooks_module_t++,11);if(!n.__){for(var u=hooks_module_r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function hooks_module_j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(hooks_module_z),n.__H.__h.forEach(hooks_module_B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_c.__e(t,n.__v)}}hooks_module_c.__b=function(n){hooks_module_r=null,hooks_module_e&&hooks_module_e(n)},hooks_module_c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),hooks_module_s&&hooks_module_s(n,t)},hooks_module_c.__r=function(n){hooks_module_a&&hooks_module_a(n),hooks_module_t=0;var i=(hooks_module_r=n.__c).__H;i&&(hooks_module_u===hooks_module_r?(i.__h=[],hooks_module_r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(i.__h.forEach(hooks_module_z),i.__h.forEach(hooks_module_B),i.__h=[],hooks_module_t=0)),hooks_module_u=hooks_module_r},hooks_module_c.diffed=function(n){hooks_module_v&&hooks_module_v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&hooks_module_i===hooks_module_c.requestAnimationFrame||((hooks_module_i=hooks_module_c.requestAnimationFrame)||hooks_module_w)(hooks_module_j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),hooks_module_u=hooks_module_r=null},hooks_module_c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(hooks_module_z),n.__h=n.__h.filter(function(n){return!n.__||hooks_module_B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_c.__e(r,n.__v)}}),hooks_module_l&&hooks_module_l(n,t)},hooks_module_c.unmount=function(n){hooks_module_m&&hooks_module_m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{hooks_module_z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_c.__e(t,r.__v))};var hooks_module_k="function"==typeof requestAnimationFrame;function hooks_module_w(n){var t,r=function(){clearTimeout(u),hooks_module_k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);hooks_module_k&&(t=requestAnimationFrame(r))}function hooks_module_z(n){var t=hooks_module_r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),hooks_module_r=t}function hooks_module_B(n){var t=hooks_module_r;n.__c=n.__(),hooks_module_r=t}function hooks_module_C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function hooks_module_D(n,t){return"function"==typeof t?t(n):t}
//# sourceMappingURL=hooks.module.js.map

;// ./node_modules/preact/compat/dist/compat.module.js
function compat_module_g(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function compat_module_E(n,t){this.props=n,this.context=t}function compat_module_C(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:compat_module_g(this.props,n)}function u(e){return this.shouldComponentUpdate=r,preact_module_(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(compat_module_E.prototype=new preact_module_k).isPureReactComponent=!0,compat_module_E.prototype.shouldComponentUpdate=function(n,t){return compat_module_g(this.props,n)||compat_module_g(this.state,t)};var compat_module_x=preact_module_l.__b;preact_module_l.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),compat_module_x&&compat_module_x(n)};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function compat_module_w(n){function t(t){if(!("ref"in t))return n(t,null);var e=t.ref;delete t.ref;var r=n(t,e);return t.ref=e,r}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var compat_module_k=function(n,t){return null==n?null:H(H(n).map(t))},compat_module_I={map:compat_module_k,forEach:compat_module_k,count:function(n){return n?H(n).length:0},only:function(n){var t=H(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:H},compat_module_N=preact_module_l.__e;preact_module_l.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);compat_module_N(n,t,e,r)};var compat_module_M=preact_module_l.unmount;function compat_module_T(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=function(n,t){for(var e in t)n[e]=t[e];return n}({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return compat_module_T(n,t,e)})),n}function compat_module_A(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return compat_module_A(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function compat_module_D(){this.__u=0,this.t=null,this.__b=null}function compat_module_L(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function compat_module_O(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return preact_module_(r,o)}return o.displayName="Lazy",o.__f=!0,o}function compat_module_F(){this.u=null,this.o=null}preact_module_l.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),compat_module_M&&compat_module_M(n)},(compat_module_D.prototype=new preact_module_k).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=compat_module_L(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=compat_module_A(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},compat_module_D.prototype.componentWillUnmount=function(){this.t=[]},compat_module_D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=compat_module_T(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&preact_module_(preact_module_b,null,n.fallback);return i&&(i.__u&=-33),[preact_module_(preact_module_b,null,e.__a?null:n.children),i]};var U=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function compat_module_V(n){return this.getChildContext=function(){return n.context},n.children}function W(n){var e=this,r=n.i;e.componentWillUnmount=function(){B(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),B(preact_module_(compat_module_V,{context:e.context},n.__v),e.l)}function compat_module_P(n,e){var r=preact_module_(W,{__v:n,i:e});return r.containerInfo=e,r}(compat_module_F.prototype=new preact_module_k).__a=function(n){var t=this,e=compat_module_L(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),U(t,n,r)):u()};e?e(o):o()}},compat_module_F.prototype.render=function(n){this.u=null,this.o=new Map;var t=H(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},compat_module_F.prototype.componentDidUpdate=compat_module_F.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){U(n,e,t)})};var compat_module_j="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,compat_module_z=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,compat_module_B=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,compat_module_H=/[A-Z0-9]/g,Z="undefined"!=typeof document,Y=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function compat_module_$(n,t,e){return null==t.__k&&(t.textContent=""),B(n,t),"function"==typeof e&&e(),n?n.__c:null}function compat_module_q(n,t,e){return D(n,t),"function"==typeof e&&e(),n?n.__c:null}preact_module_k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact_module_k.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var compat_module_G=preact_module_l.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}preact_module_l.event=function(n){return compat_module_G&&(n=compat_module_G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={enumerable:!1,configurable:!0,get:function(){return this.class}},tn=preact_module_l.vnode;preact_module_l.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1===e.indexOf("-");for(var i in t){var c=t[i];if(!("value"===i&&"defaultValue"in t&&null==c||Z&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var f=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===c?c="":"translate"===f&&"no"===c?c=!1:"o"===f[0]&&"n"===f[1]?"ondoubleclick"===f?i="ondblclick":"onchange"!==f||"input"!==e&&"textarea"!==e||Y(t.type)?"onfocus"===f?i="onfocusin":"onblur"===f?i="onfocusout":compat_module_B.test(i)&&(i=f):f=i="oninput":o&&compat_module_z.test(i)?i=i.replace(compat_module_H,"-$&").toLowerCase():null===c&&(c=void 0),"oninput"===f&&u[i=f]&&(i="oninputCapture"),u[i]=c}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=H(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=H(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",nn)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=compat_module_j,tn&&tn(n)};var en=preact_module_l.__r;preact_module_l.__r=function(n){en&&en(n),X=n.__c};var rn=preact_module_l.diffed;preact_module_l.diffed=function(n){rn&&rn(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),X=null};var un={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value},useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,useDeferredValue:_n,useEffect:hooks_module_y,useId:hooks_module_g,useImperativeHandle:hooks_module_F,useInsertionEffect:Sn,useLayoutEffect:hooks_module_,useMemo:hooks_module_T,useReducer:hooks_module_p,useRef:hooks_module_A,useState:hooks_module_h,useSyncExternalStore:En,useTransition:bn}}},on="18.3.1";function cn(n){return preact_module_.bind(null,n)}function fn(n){return!!n&&n.$$typeof===compat_module_j}function ln(n){return fn(n)&&n.type===preact_module_b}function an(n){return!!n&&!!n.displayName&&("string"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith("Memo(")}function sn(n){return fn(n)?preact_module_E.apply(null,arguments):n}function hn(n){return!!n.__k&&(B(null,n),!0)}function vn(n){return n&&(n.base||1===n.nodeType&&n)||null}var dn=function(n,t){return n(t)},pn=function(n,t){return n(t)},mn=preact_module_b;function yn(n){n()}function _n(n){return n}function bn(){return[!1,yn]}var Sn=hooks_module_,gn=fn;function En(n,t){var e=t(),r=hooks_module_h({h:{__:e,v:t}}),u=r[0].h,o=r[1];return hooks_module_(function(){u.__=e,u.v=t,Cn(u)&&o({h:u})},[n,e,t]),hooks_module_y(function(){return Cn(u)&&o({h:u}),n(function(){Cn(u)&&o({h:u})})},[n]),e}function Cn(n){var t,e,r=n.v,u=n.__;try{var o=r();return!((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}}var xn={useState:hooks_module_h,useId:hooks_module_g,useReducer:hooks_module_p,useEffect:hooks_module_y,useLayoutEffect:hooks_module_,useInsertionEffect:Sn,useTransition:bn,useDeferredValue:_n,useSyncExternalStore:En,startTransition:yn,useRef:hooks_module_A,useImperativeHandle:hooks_module_F,useMemo:hooks_module_T,useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,version:"18.3.1",Children:compat_module_I,render:compat_module_$,hydrate:compat_module_q,unmountComponentAtNode:hn,createPortal:compat_module_P,createElement:preact_module_,createContext:G,createFactory:cn,cloneElement:sn,createRef:preact_module_m,Fragment:preact_module_b,isValidElement:fn,isElement:gn,isFragment:ln,isMemo:an,findDOMNode:vn,Component:preact_module_k,PureComponent:compat_module_E,memo:compat_module_C,forwardRef:compat_module_w,flushSync:pn,unstable_batchedUpdates:dn,StrictMode:mn,Suspense:compat_module_D,SuspenseList:compat_module_F,lazy:compat_module_O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:un};
//# sourceMappingURL=compat.module.js.map

;// external "mobx"
const external_mobx_namespaceObject = mobx;
;// ./node_modules/reaxes/index.js
var reaxes_o={243:n=>{n.exports=external_namespaceObject}},reaxes_e={};function reaxes_i(t){var n=reaxes_e[t];if(void 0!==n)return n.exports;var r=reaxes_e[t]={exports:{}};return reaxes_o[t](r,r.exports,reaxes_i),r.exports}reaxes_i.d=(t,n)=>{for(var r in n)reaxes_i.o(n,r)&&!reaxes_i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},reaxes_i.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n);var reaxes_u={};(()=>{reaxes_i.d(reaxes_u,{u1:()=>m,QB:()=>a,MR:()=>l});const t=(t=>{var n={};return reaxes_i.d(n,t),n})({action:()=>external_mobx_namespaceObject.action,observable:()=>external_mobx_namespaceObject.observable,reaction:()=>external_mobx_namespaceObject.reaction});var o=reaxes_i(243);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var a=function(n){var r=(0,t.observable)(n),e=(0,t.action)((function(t,n){return Object.assign(t,n)}));return{store:r,mutate:function(n){(0,t.action)((function(){return n(r)}))()},setState:function(t){return e(r,t)},mutatePartialState:function n(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,u=function(r){var u=e[r];o.isPlainObject(u)?o.isPlainObject(i[r])&&n(u,i[r]):c(u)&&(0,t.action)((function(){i[r]=u}))()};for(var a in e)u(a)}}},c=function(t){return!!["boolean","string","undefined","number","symbol","bigint"].includes(e(t))||null===t},l=function(t){return t()};const f=(t=>{var n={};return reaxes_i.d(n,t),n})({shallowEqual:()=>N});var s=reaxes_i(243);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function v(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,p(o.key),o)}}function y(t,n,r){return(n=p(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function p(t){var n=function(t,n){if("object"!==b(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===b(n)?n:String(n)}var m=new(function(){function n(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),y(this,"_UNSTABLE_EXPIMENTAL_consistentCallback",(function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]},o=r();return[function(r){var e=r(o);return function(){return f.shallowEqual(o,e)?n:(o=e,n=t.apply(void 0,arguments))}},function(){o=r()}]})),y(this,"collectDeps",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!s.isObject(t))throw"the store argument must be a mobx observed object";n.length?n.forEach((function(n){t[n]})):Object.getOwnPropertyNames(t).forEach((function(n){t[n]}))}))}var r,o,e;return r=n,o=[{key:"obsReaction",value:function(n,r){var o=r(),e=(0,t.reaction)(r,(function(t,r){!f.shallowEqual(t,o)&&(n(!1,e),o=t)}));return n(!0,e)}},{key:"contrastedCallback",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]},o=r();return[function(r){var e=r(o);return function(){if(!f.shallowEqual(o,e))return n=t.apply(void 0,arguments),o=e,{next:function(t){return t(n)}}}},function(){o=r()}]}}],o&&v(r.prototype,o),e&&v(r,e),Object.defineProperty(r,"prototype",{writable:!1}),n}())})();var reaxes_a=reaxes_u.u1,reaxes_c=reaxes_u.QB,reaxes_l=reaxes_u.MR;
//# sourceMappingURL=index.js.map
;// ./node_modules/reaxes-react/index.js
var reaxes_react_o={810:r=>{r.exports=compat_module_namespaceObject}},reaxes_react_a={};function reaxes_react_i(e){var r=reaxes_react_a[e];if(void 0!==r)return r.exports;var t=reaxes_react_a[e]={exports:{}};return reaxes_react_o[e](t,t.exports,reaxes_react_i),t.exports}reaxes_react_i.d=(e,r)=>{for(var t in r)reaxes_react_i.o(r,t)&&!reaxes_react_i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},reaxes_react_i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var reaxes_react_c={};(()=>{reaxes_react_i.d(reaxes_react_c,{u1:()=>Fe.Reaxes,TQ:()=>ze,QB:()=>Fe.orzMobx,MR:()=>Fe.reaxel,Bb:()=>Ce});const e=(e=>{var r={};return reaxes_react_i.d(r,e),r})({$mobx:()=>external_mobx_namespaceObject.$mobx,Reaction:()=>external_mobx_namespaceObject.Reaction,_allowStateChanges:()=>external_mobx_namespaceObject._allowStateChanges,_allowStateReadsEnd:()=>external_mobx_namespaceObject._allowStateReadsEnd,_allowStateReadsStart:()=>external_mobx_namespaceObject._allowStateReadsStart,configure:()=>external_mobx_namespaceObject.configure,createAtom:()=>external_mobx_namespaceObject.createAtom,getDependencyTree:()=>external_mobx_namespaceObject.getDependencyTree,isObservableArray:()=>external_mobx_namespaceObject.isObservableArray,isObservableMap:()=>external_mobx_namespaceObject.isObservableMap,isObservableObject:()=>external_mobx_namespaceObject.isObservableObject,makeObservable:()=>external_mobx_namespaceObject.makeObservable,observable:()=>external_mobx_namespaceObject.observable,untracked:()=>external_mobx_namespaceObject.untracked});var o=reaxes_react_i(810);if(!o.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!e.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");const a=(e=>{var r={};return reaxes_react_i.d(r,e),r})({unstable_batchedUpdates:()=>dn});function u(e){e()}function l(r){return(0,e.getDependencyTree)(r)}var f="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function s(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+p}}var p=1e4;function y(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return d(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=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 a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var b=f?function(e){var r=new Map,t=1,n=new e((function(e){var t=r.get(e);t&&(t.reaction.dispose(),r.delete(e))}));return{addReactionToTrack:function(e,o,a){var i=t++;return n.register(a,i,e),e.current=s(o),e.current.finalizationRegistryCleanupToken=i,r.set(i,e.current),e.current},recordReactionAsCommitted:function(e){n.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&r.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(f):function(){var e,r=new Set;function t(){void 0===e&&(e=setTimeout(n,1e4))}function n(){e=void 0;var n=Date.now();r.forEach((function(e){var t=e.current;t&&n>=t.cleanAt&&(t.reaction.dispose(),e.current=null,r.delete(e))})),r.size>0&&t()}return{addReactionToTrack:function(e,n,o){var a;return e.current=s(n),a=e,r.add(a),t(),e.current},recordReactionAsCommitted:function(e){r.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),n())},resetCleanupScheduleForTests:function(){if(r.size>0){var t,n=y(r);try{for(n.s();!(t=n.n()).done;){var o=t.value,a=o.current;a&&(a.reaction.dispose(),o.current=null)}}catch(e){n.e(e)}finally{n.f()}r.clear()}e&&(clearTimeout(e),e=void 0)}}}(),m=b.addReactionToTrack,v=b.recordReactionAsCommitted,h=(b.resetCleanupScheduleForTests,b.forceCleanupTimerToRunNowForTests,!1);function w(){return h}var g=reaxes_react_i(810);function S(e){return S="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},S(e)}function O(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return R(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return R(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function j(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,a=void 0,a=function(e,r){if("object"!==S(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(o,"string"),"symbol"===S(a)?a:String(a)),n)}var o,a}function x(e,r,t){return r&&j(e.prototype,r),t&&j(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function T(e){return"observer".concat(e)}var P=x((function e(){!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e)}));function k(){return new P}function E(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"observed";if(w())return r();var n=O(g.useState(k),1)[0],o=O(g.useState(),2)[1],a=function(){return o([])},i=g.useRef(null);if(!i.current)var c=new e.Reaction(T(t),(function(){u.mounted?a():u.changedBeforeMount=!0})),u=m(i,c,n);var f,s,p=i.current.reaction;if(g.useDebugValue(p,l),g.useEffect((function(){return v(i),i.current?(i.current.mounted=!0,i.current.changedBeforeMount&&(i.current.changedBeforeMount=!1,a())):(i.current={reaction:new e.Reaction(T(t),(function(){a()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},a()),function(){i.current.reaction.dispose(),i.current=null}}),[]),p.track((function(){try{f=r()}catch(e){s=e}})),s)throw s;return f}var A="function"==typeof Symbol&&Symbol.for,C=A?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&(0,o.forwardRef)((function(e){return null})).$$typeof,_=A?Symbol.for("react.memo"):"function"==typeof o.memo&&(0,o.memo)((function(e){return null})).$$typeof;function M(e,r){var t;if(_&&e.$$typeof===_)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(w())return e;var n=null!==(t=null==r?void 0:r.forwardRef)&&void 0!==t&&t,a=e,i=e.displayName||e.name;if(C&&e.$$typeof===C&&(n=!0,"function"!=typeof(a=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c,u,l=function(e,r){return E((function(){return a(e,r)}),i)};return""!==i&&(l.displayName=i),e.contextTypes&&(l.contextTypes=e.contextTypes),n&&(l=(0,o.forwardRef)(l)),c=e,u=l=(0,o.memo)(l),Object.keys(c).forEach((function(e){$[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(c,e))})),l}var $={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};var D=reaxes_react_i(810);function U(e){return U="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},U(e)}function N(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return B(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return B(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function I(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,a=void 0,a=function(e,r){if("object"!==U(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(o,"string"),"symbol"===U(a)?a:String(a)),n)}var o,a}function z(e,r,t){return r&&I(e.prototype,r),t&&I(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function F(e){return"observer".concat(e)}var q=z((function e(){!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e)}));function W(){return new q}function H(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"observed",n=arguments.length>2?arguments[2]:void 0;if(w())return r();var o=N(D.useState(W),1)[0],a=N(D.useState(),2)[1],i=function(){return n.forceUpdate()},c=D.useRef(null);if(!c.current)var u=new e.Reaction(F(t),(function(){f.mounted?(i(),a([])):f.changedBeforeMount=!0})),f=m(c,u,o);var s,p,y=c.current.reaction;if(D.useDebugValue(y,l),D.useEffect((function(){return v(c),c.current?(c.current.mounted=!0,c.current.changedBeforeMount&&(c.current.changedBeforeMount=!1,i())):(c.current={reaction:new e.Reaction(F(t),(function(){i()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},i()),function(){c.current.reaction.dispose(),c.current=null}}),[]),y.track((function(){try{s=r()}catch(e){p=e}})),p)throw p;return s}var Q="function"==typeof Symbol&&Symbol.for,X=Q?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&(0,o.forwardRef)((function(e){return null})).$$typeof,Y=Q?Symbol.for("react.memo"):"function"==typeof o.memo&&(0,o.memo)((function(e){return null})).$$typeof;function L(e,r){var t;if(Y&&e.$$typeof===Y)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(w())return e;var n=null!==(t=null==r?void 0:r.forwardRef)&&void 0!==t&&t,a=e,i=e.displayName||e.name;if(X&&e.$$typeof===X&&(n=!0,"function"!=typeof(a=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c,u,l=function(e,r){return H((function(){return a(e,r)}),i,e.instance)};return""!==i&&(l.displayName=i),e.contextTypes&&(l.contextTypes=e.contextTypes),n&&(l=(0,o.forwardRef)(l)),c=e,u=l,Object.keys(c).forEach((function(e){G[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(c,e))})),l}var V,G={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function J(e,r,t){return(r=function(e){var r=function(e,r){if("object"!==K(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===K(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function K(e){return K="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},K(e)}(V=a.unstable_batchedUpdates)||(V=u),(0,e.configure)({reactionScheduler:V});var Z=0;var ee={};function re(e){return ee[e]||(ee[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var r="__$mobx-react ".concat(e," (").concat(Z,")");return Z++,r}(e)),ee[e]}function te(e,r){if(ne(e,r))return!0;if("object"!==K(e)||null===e||"object"!==K(r)||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++)if(!Object.hasOwnProperty.call(r,t[o])||!ne(e[t[o]],r[t[o]]))return!1;return!0}function ne(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r}function oe(e,r,t){Object.hasOwnProperty.call(e,r)?e[r]=t:Object.defineProperty(e,r,{enumerable:!1,configurable:!0,writable:!0,value:t})}var ae=re("patchMixins"),ie=re("patchedDefinition");function ce(e,r){for(var t=this,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];r.locks++;try{var i;return null!=e&&(i=e.apply(this,o)),i}finally{r.locks--,0===r.locks&&r.methods.forEach((function(e){e.apply(t,o)}))}}function ue(e,r){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];ce.call.apply(ce,[this,e,r].concat(n))}}function le(e,r,t){var n=function(e,r){var t=e[ae]=e[ae]||{},n=t[r]=t[r]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}(e,r);n.methods.indexOf(t)<0&&n.methods.push(t);var o=Object.getOwnPropertyDescriptor(e,r);if(!o||!o[ie]){var a=e[r],i=fe(e,r,o?o.enumerable:void 0,n,a);Object.defineProperty(e,r,i)}}function fe(e,r,t,n,o){var a,i=ue(o,n);return J(a={},ie,!0),J(a,"get",(function(){return i})),J(a,"set",(function(o){if(this===e)i=ue(o,n);else{var a=fe(this,r,t,n,o);Object.defineProperty(this,r,a)}})),J(a,"configurable",!0),J(a,"enumerable",t),a}var se=e.$mobx||"$mobx",pe=re("isMobXReactObserver"),ye=re("isUnmounted"),de=re("skipRender"),be=re("isForcingUpdate");function me(e){var r=e.prototype;if(e[pe]){var t=ve(r);console.warn("The provided component class (".concat(t,")\n                has already been declared as an observer component."))}else e[pe]=!0;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==o.PureComponent)if(r.shouldComponentUpdate){if(r.shouldComponentUpdate!==we)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else r.shouldComponentUpdate=we;ge(r,"props"),ge(r,"state"),e.contextType&&ge(r,"context");var n=r.render;if("function"!=typeof n){var a=ve(r);throw new Error("[mobx-react] class component (".concat(a,") is missing `render` method.")+"\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}return r.render=function(){return he.call(this,n)},le(r,"componentWillUnmount",(function(){var e;if(!0!==w()&&(null===(e=this.render[se])||void 0===e||e.dispose(),this[ye]=!0,!this.render[se])){var r=ve(this);console.warn("The reactive render of an observer class component (".concat(r,")\n                was overriden after MobX attached. This may result in a memory leak if the\n                overriden reactive render was not properly disposed."))}})),e}function ve(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function he(r){var t=this;if(!0===w())return r.call(this);oe(this,de,!1),oe(this,be,!1);var n=ve(this),a=r.bind(this),i=!1,c=new e.Reaction("".concat(n,".render()"),(function(){if(!i&&(i=!0,!0!==t[ye])){var e=!0;try{oe(t,be,!0),t[de]||o.Component.prototype.forceUpdate.call(t),e=!1}finally{oe(t,be,!1),e&&c.dispose()}}}));function u(){i=!1;var r=void 0,t=void 0;if(c.track((function(){try{t=(0,e._allowStateChanges)(!1,a)}catch(e){r=e}})),r)throw r;return t}return c.reactComponent=this,u[se]=c,this.render=u,u.call(this)}function we(e,r){return w()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r||!te(this.props,e)}function ge(r,t){var n=re("reactProp_".concat(t,"_valueHolder")),o=re("reactProp_".concat(t,"_atomHolder"));function a(){return this[o]||oe(this,o,(0,e.createAtom)("reactive "+t)),this[o]}Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var r=!1;return e._allowStateReadsStart&&e._allowStateReadsEnd&&(r=(0,e._allowStateReadsStart)(!0)),a.call(this).reportObserved(),e._allowStateReadsStart&&e._allowStateReadsEnd&&(0,e._allowStateReadsEnd)(r),this[n]},set:function(e){this[be]||te(this[n],e)?oe(this,n,e):(oe(this,n,e),oe(this,de,!0),a.call(this).reportChanged(),oe(this,de,!1))}})}var Se=reaxes_react_i(810);Se.createContext({});re("disposeOnUnmountProto"),re("disposeOnUnmountInst");function Oe(e){return Oe="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},Oe(e)}function Re(r){function t(t,n,o,a,i,c){for(var u=arguments.length,l=new Array(u>6?u-6:0),f=6;f<u;f++)l[f-6]=arguments[f];return(0,e.untracked)((function(){if(a=a||"<<anonymous>>",c=c||o,null==n[o]){if(t){var e=null===n[o]?"null":"undefined";return new Error("The "+i+" `"+c+"` is marked as required in `"+a+"`, but its value is `"+e+"`.")}return null}return r.apply(void 0,[n,o,a,i,c].concat(l))}))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function je(e){var r=Oe(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,r){return"symbol"===e||"Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol}(r,e)?"symbol":r}function xe(r,t){return Re((function(n,o,a,i,c){return(0,e.untracked)((function(){if(r&&je(n[o])===t.toLowerCase())return null;var i;switch(t){case"Array":i=e.isObservableArray;break;case"Object":i=e.isObservableObject;break;case"Map":i=e.isObservableMap;break;default:throw new Error("Unexpected mobxType: ".concat(t))}var u=n[o];if(!i(u)){var l=function(e){var r=je(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}(u),f=r?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+c+"` of type `"+l+"` supplied to `"+a+"`, expected `mobx.Observable"+t+"`"+f+".")}return null}))}))}function Te(r,t){return Re((function(n,o,a,i,c){for(var u=arguments.length,l=new Array(u>5?u-5:0),f=5;f<u;f++)l[f-5]=arguments[f];return(0,e.untracked)((function(){if("function"!=typeof t)return new Error("Property `"+c+"` of component `"+a+"` has invalid PropType notation.");var e=xe(r,"Array")(n,o,a,i,c);if(e instanceof Error)return e;for(var u=n[o],f=0;f<u.length;f++)if((e=t.apply(void 0,[u,f,a,i,c+"["+f+"]"].concat(l)))instanceof Error)return e;return null}))}))}xe(!1,"Array"),Te.bind(null,!1),xe(!1,"Map"),xe(!1,"Object"),xe(!0,"Array"),Te.bind(null,!0),xe(!0,"Object");if(!o.Component)throw new Error("mobx-react requires React to be available");if(!e.observable)throw new Error("mobx-react requires mobx to be available");var Pe=reaxes_react_i(810);function ke(e){var r;if(null===(r=e.prototype)||void 0===r||!r.render)return M(e);if(Object.getOwnPropertySymbols(e).find((function(e){return"isMobXReactObserver"===e.description})))return e;var t=e.prototype.render;function n(e,r){var n=e.instance;e.random;return t.call(n)}var a=e.displayName||e.name||"Component";n.displayName=a+"Hooks";var i,c=L(n);return e.prototype.render=function(){return Pe.createElement(c,{instance:this})},!0===(i=e).isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(o.Component,i)||Object.prototype.isPrototypeOf.call(o.PureComponent,i)?me(i):M(i)}var Ee=function(e){var r;if(null===(r=e.prototype)||void 0===r||!r.render)return e;var t=e.prototype.componentDidMount,n=e.prototype.componentDidUpdate,o=e.prototype.componentWillUnmount,a=e.prototype.componentDidRender;return e.hasOwnProperty("componentDidMount")&&delete e.prototype.componentDidMount,e.hasOwnProperty("componentDidUpdate")&&delete e.prototype.componentDidUpdate,e.prototype.componentDidMount=function(){for(var r,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];null==t||t.call.apply(t,[this].concat(o)),null===(r=e.prototype.componentDidRender)||void 0===r||r.call.apply(r,[this,"mount"].concat(o)),this.mountedStack.forEach((function(e){return(0,e.callback)()}))},e.prototype.componentDidUpdate=function(){for(var r,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];null==n||n.call.apply(n,[this].concat(o)),null===(r=e.prototype.componentDidRender)||void 0===r||r.call.apply(r,[this,"update"].concat(o)),this.updatedStack.forEach((function(e){return(0,e.callback)()}))},e.prototype.componentDidRender=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];null==a||a.call.apply(a,[this].concat(r)),this.renderedStack.forEach((function(e){return(0,e.callback)()}))},e.prototype.componentWillUnmount=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];o.call.apply(o,[this].concat(r)),this.unmountStack.forEach((function(e){return(0,e.callback)()}))},e},Ae=Symbol(""),Ce=function(e){if(e.hasOwnProperty(Ae))return e;var r,t=((r=[Ee,ke]).length,1===r.length?r[0]:r.reduce((function(e,r){return function(){return e(r.apply(void 0,arguments))}})))(e);return t[Ae]=!0,t};function _e(e){return _e="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},_e(e)}function Me(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ie(n.key),n)}}function $e(e,r){return $e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},$e(e,r)}function De(e){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=Ne(e);if(r){var o=Ne(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(e,r){if(r&&("object"===_e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return Ue(e)}(this,t)}}function Ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e){return Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ne(e)}function Be(e,r,t){return(r=Ie(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ie(e){var r=function(e,r){if("object"!==_e(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===_e(r)?r:String(r)}var ze=function(e){!function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&$e(e,r)}(a,e);var r,t,n,o=De(a);function a(){var e;!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,a);for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Be(Ue(e=o.call.apply(o,[this].concat(t))),"mountedStack",[]),Be(Ue(e),"unmountStack",[]),Be(Ue(e),"updatedStack",[]),Be(Ue(e),"renderedStack",[]),e}return r=a,t&&Me(r.prototype,t),n&&Me(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(o.Component);const Fe=(e=>{var r={};return reaxes_react_i.d(r,e),r})({Reaxes:()=>reaxes_a,orzMobx:()=>reaxes_c,reaxel:()=>reaxes_l})})();var reaxes_react_u=reaxes_react_c.u1,reaxes_react_l=reaxes_react_c.TQ,reaxes_react_f=reaxes_react_c.QB,reaxes_react_s=reaxes_react_c.MR,reaxes_react_p=reaxes_react_c.Bb;
//# sourceMappingURL=index.js.map
;// ./projects/switch520-auto-secret/Components/Search-In-Steam/index.tsx
var _orzMobx = reaxes_react_f({
    modalVisible: false,
    searchingText: ''
  }),
  store = _orzMobx.store,
  setState = _orzMobx.setState,
  mutate = _orzMobx.mutate;
var SearchInSteam = reaxes_react_p(function () {
  return /*#__PURE__*/xn.createElement("div", null, /*#__PURE__*/xn.createElement("button", {
    style: {
      backgroundColor: '#20a0ff',
      color: '#eee',
      width: '100%',
      padding: '12px 18px',
      borderRadius: '4px',
      border: 'none',
      cursor: 'pointer',
      fontSize: '16px',
      letterSpacing: '2px',
      margin: '0 0 24px 0'
    },
    onClick: function onClick() {
      {
        var result = nameInArticle();
        if (result !== null && result !== void 0 && result.english) {
           false && 0;
          window.open("https://store.steampowered.com/search/?sort_by=_ASC&term=".concat(result.english, "&supportedlang=schinese%2Cenglish"));
          return;
        }
      }
      {
        var _ref = nameInTitle() || {},
          chinese = _ref.chinese,
          english = _ref.english;
        if (english) {
           false && 0;
          window.open("https://store.steampowered.com/search/?sort_by=_ASC&term=".concat(english, "&supportedlang=schinese%2Cenglish"));
        } else if (chinese) {
           false && 0;
          window.open("https://store.steampowered.com/search/?sort_by=_ASC&term=".concat(chinese, "&supportedlang=schinese%2Cenglish"));
        }
      }
    }
  }, "\u53BBSteam\u641C\u7D22\u6B64\u6E38\u620F"));
});



// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(72);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(56);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./projects/switch520-auto-secret/style.less
var style = __webpack_require__(543);
;// ./projects/switch520-auto-secret/style.less

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());
options.insert = insertBySelector_default().bind(null, "head");
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()(style/* default */.A, options);




       /* harmony default export */ const switch520_auto_secret_style = (style/* default */.A && style/* default */.A.locals ? style/* default */.A.locals : undefined);

;// ./projects/switch520-auto-secret/index.tsx
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
(function () {
  'use strict';

  var el_input = function () {
    return document.querySelector('input#password') || document.querySelector("input[type='password']") || document.querySelector("input[name='post_password']");
  }();
  var el_submit = function () {
    return document.querySelector("input[type='submit']") || document.querySelector("input[name='Submit']") || document.querySelector("input[value='\u63D0\u4EA4']");
  }();
  document.querySelectorAll('*').forEach(function (node) {
    var innerText = node.innerText;
    if (innerText !== null && innerText !== void 0 && innerText.startsWith('密码保护:') && !(innerText !== null && innerText !== void 0 && innerText.includes('上一篇')) && !(innerText !== null && innerText !== void 0 && innerText.includes('牛夫人')) && !(innerText !== null && innerText !== void 0 && innerText.includes('当前位置')) && !(innerText !== null && innerText !== void 0 && innerText.includes('此内容受密码保护')) && !(innerText !== null && innerText !== void 0 && innerText.includes('永久防迷路'))) {
      // const [result] = innerText.match(/[0-9]{3,6}/) ?? [null];
      var secret = innerText.replace('密码保护:', '');
      if (secret && el_input) {
        el_input.value = secret;
        el_submit.click();
      }
    }
  });

  //以下代码将百度网盘的链接+提取码融合为一个按钮,点击之后直接跳转并填充密码
  (function () {
    /**
     * 拿到链接文本所在的P标签
     * @type {HTMLElement}
     */
    var containerDiv = function () {
      return Array.from(document.querySelectorAll('div.entry-content.u-text-format.u-clearfix')).find(function (el) {
        var _el$innerText, _el$innerText$include, _el$innerText2, _el$innerText2$includ, _el$innerText3, _el$innerText3$includ;
        return ((_el$innerText = el.innerText) === null || _el$innerText === void 0 || (_el$innerText$include = _el$innerText.includes) === null || _el$innerText$include === void 0 ? void 0 : _el$innerText$include.call(_el$innerText, '提取码')) && ((_el$innerText2 = el.innerText) === null || _el$innerText2 === void 0 || (_el$innerText2$includ = _el$innerText2.includes) === null || _el$innerText2$includ === void 0 ? void 0 : _el$innerText2$includ.call(_el$innerText2, '链接:')) && ((_el$innerText3 = el.innerText) === null || _el$innerText3 === void 0 || (_el$innerText3$includ = _el$innerText3.includes) === null || _el$innerText3$includ === void 0 ? void 0 : _el$innerText3$includ.call(_el$innerText3, 'https://pan.baidu.com'));
      });
    }();
    if (containerDiv) {
      var _ref = function () {
          //兼容不是<a/>标签的情况,将其转换为a标签
          var aElement = Array.from(containerDiv.querySelectorAll('*')).reduce(function (accu, el) {
            var _el$href, _el$href$startsWith;
            if (accu) return accu;
            if (el.tagName.toLowerCase() === 'a' && (_el$href = el.href) !== null && _el$href !== void 0 && (_el$href$startsWith = _el$href.startsWith) !== null && _el$href$startsWith !== void 0 && _el$href$startsWith.call(_el$href, 'https://pan.baidu.com')) {
              return accu = el;
            } else {
              //如果网盘链接是个普通text,则将其转换为a标签
              if ([el.innerText.includes('链接'), el.innerText.includes('https://pan.baidu.com'), el.children.length === 0 || Array.from(el.childNodes).find(function (e) {
                return e.nodeName === '#text' && e.nodeValue.includes('https://pan.baidu.com');
              })].every(function (bool) {
                return bool;
              })) {
                var url = el.innerText.match(/https?:\/\/pan\.baidu\.com\/[\/a-zA-Z0-9?=&]+/)[0];
                el.innerHTML = el.innerText.replace(url, "<a href='".concat(url, "'>").concat(url, "</a>"));
                return accu = el.querySelector('a');
              }
            }
          }, null);
          return [aElement.href, aElement];
        }(),
        _ref2 = _slicedToArray(_ref, 2),
        baiduLink = _ref2[0],
        baiduLinkAElement = _ref2[1];
      var _ref3 = function () {
          var pwdElement = Array.from(containerDiv.querySelectorAll('*')).find(function (el) {
            var _el$innerText4, _el$innerText4$starts;
            return el === null || el === void 0 || (_el$innerText4 = el.innerText) === null || _el$innerText4 === void 0 || (_el$innerText4$starts = _el$innerText4.startsWith) === null || _el$innerText4$starts === void 0 ? void 0 : _el$innerText4$starts.call(_el$innerText4, '提取码:');
          });
          return [pwdElement === null || pwdElement === void 0 ? void 0 : pwdElement.innerText.replace('提取码: ', '').replaceAll(' ', ''), pwdElement];
        }(),
        _ref4 = _slicedToArray(_ref3, 2),
        pwdText = _ref4[0],
        pwdElement = _ref4[1];
      if (!baiduLink.includes('pwd=') && pwdText) {
        var href = baiduLink + (baiduLink.includes('?') ? "&pwd=".concat(pwdText) : "?pwd=".concat(pwdText));
        baiduLinkAElement.href = href;
        baiduLinkAElement.innerText = baiduLinkAElement.innerText.replace(baiduLink, href);
      }
      containerDiv.removeChild(pwdElement);
    }
  })();

  //以下代码跳过获取下载地址的过程 , 不需要点两次立即下载
  (function () {
    var downloadButton = new Promise(function (resolve) {
      var interval = setInterval(function () {
        var button = Array.from(document.querySelectorAll('a')).find(function (el) {
          return el.innerText === ' 立即下载';
        });
        if (button) {
          clearInterval(interval);
          resolve(button);
        }
      }, 100);
    });
    downloadButton.then(function (button) {
      var interval, invokedCount, startTime;
      if (button) {
        button.addEventListener('click', function () {
          invokedCount = 0;
          startTime = Date.now();
          interval = setInterval(function () {
            if (invokedCount >= 40 || Date.now() - startTime > 5 * 1000) {
              clearInterval(interval);
              interval = null;
              invokedCount = 0;
            } else {
              invokedCount++;
              var secondDownloadButton = function () {
                return Array.from(document.querySelectorAll('*')).find(function (el) {
                  return el.innerText === '立即下载';
                });
              }();
              if (secondDownloadButton) {
                secondDownloadButton.click();
                clearInterval(interval);
                interval = null;
                invokedCount = 0;
              }
            }
          }, 100);
        });
      } else {
        console.warn('downloadButton not founddddddddddddddddddddddddddddddd');
      }
    });
  })();

  //如果有密码,则自动点击网盘按钮
  (function () {
    if (location.href.startsWith('https://pan.baidu.com') && location.href.includes('pwd=')) {
      var submitBtn = document.getElementById('submitBtn');
      if (submitBtn.innerText === '提取文件') {
        submitBtn.click();
      }
    }
  })();
  if (!document.body.innerText.includes('牛夫人') && location.pathname !== '/' && articleContainer()) {
    B(/*#__PURE__*/xn.createElement(SearchInSteam, null), articleContainer());
  }
})();





/******/ })()
;