2
0
Fork 0
wordle/main.e65ce0a5.js

17 lines
173 KiB
JavaScript
Raw Normal View History

2022-02-04 21:08:11 +00:00
this.wordle=this.wordle||{},this.wordle.bundle=function(e){"use strict";function a(e){return(a="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)}function s(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function t(e,a){for(var s=0;s<a.length;s++){var t=a[s];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function o(e,a,s){return a&&t(e.prototype,a),s&&t(e,s),e}function n(e,a,s){return a in e?Object.defineProperty(e,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[a]=s,e}function r(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),a&&l(e,a)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,a){return(l=Object.setPrototypeOf||function(e,a){return e.__proto__=a,e})(e,a)}function d(){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}}function u(e,a,s){return(u=d()?Reflect.construct:function(e,a,s){var t=[null];t.push.apply(t,a);var o=new(Function.bind.apply(e,t));return s&&l(o,s.prototype),o}).apply(null,arguments)}function c(e){var a="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(s=e,-1===Function.toString.call(s).indexOf("[native code]")))return e;var s;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==a){if(a.has(e))return a.get(e);a.set(e,t)}function t(){return u(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l(t,e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,a){return!a||"object"!=typeof a&&"function"!=typeof a?p(e):a}function h(e){var a=d();return function(){var s,t=i(e);if(a){var o=i(this).constructor;s=Reflect.construct(t,arguments,o)}else s=t.apply(this,arguments);return m(this,s)}}function y(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var s=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==s)return;var t,o,n=[],r=!0,i=!1;try{for(s=s.call(e);!(r=(t=s.next()).done)&&(n.push(t.value),!a||n.length!==a);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,a)||b(e,a)||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 g(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,a){if(e){if("string"==typeof e)return f(e,a);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?f(e,a):void 0}}function f(e,a){(null==a||a>e.length)&&(a=e.length);for(var s=0,t=new Array(a);s<a;s++)t[s]=e[s];return t}var k=document.createElement("template");k.innerHTML="\n<style>\n :host {\n display: inline-block;\n }\n .tile {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n line-height: 2rem;\n
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function cs(e,a,s,t){return new(s||(s=Promise))((function(o,n){function r(e){try{l(t.next(e))}catch(e){n(e)}}function i(e){try{l(t.throw(e))}catch(e){n(e)}}function l(e){var a;e.done?o(e.value):(a=e.value,a instanceof s?a:new s((function(e){e(a)}))).then(r,i)}l((t=t.apply(e,a||[])).next())}))}function ps(e,a){var s,t,o,n,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function i(n){return function(i){return function(n){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,t&&(o=2&n[0]?t.return:n[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,n[1])).done)return o;switch(t=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return r.label++,{value:n[1],done:!1};case 5:r.label++,t=n[1],n=[0];continue;case 7:n=r.ops.pop(),r.trys.pop();continue;default:if(!((o=(o=r.trys).length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){r=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){r.label=n[1];break}if(6===n[0]&&r.label<o[1]){r.label=o[1],o=n;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(n);break}o[2]&&r.ops.pop(),r.trys.pop();continue}n=a.call(e,r)}catch(e){n=[6,e],t=0}finally{s=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,i])}}}customElements.define("game-keyboard",us),function(){(console.warn||console.log).apply(console,arguments)}.bind("[clipboard-polyfill]");var ms,hs,ys,gs,bs="undefined"==typeof navigator?void 0:navigator,fs=null==bs?void 0:bs.clipboard;null===(ms=null==fs?void 0:fs.read)||void 0===ms||ms.bind(fs),null===(hs=null==fs?void 0:fs.readText)||void 0===hs||hs.bind(fs);var ks=(null===(ys=null==fs?void 0:fs.write)||void 0===ys||ys.bind(fs),null===(gs=null==fs?void 0:fs.writeText)||void 0===gs?void 0:gs.bind(fs)),vs="undefined"==typeof window?void 0:window,ws=(null==vs||vs.ClipboardItem,vs);var xs=function(){this.success=!1};function zs(e,a,s){for(var t in e.success=!0,a){var o=a[t],n=s.clipboardData;n.setData(t,o),"text/plain"===t&&n.getData(t)!==o&&(e.success=!1)}s.preventDefault()}function js(e){var a=new xs,s=zs.bind(this,a,e);document.addEventListener("copy",s);try{document.execCommand("copy")}finally{document.removeEventListener("copy",s)}return a.success}function Ss(e,a){_s(e);var s=js(a);return qs(),s}function _s(e){var a=document.getSelection();if(a){var s=document.createRange();s.selectNodeContents(e),a.removeAllRanges(),a.addRange(s)}}function qs(){var e=document.getSelection();e&&e.removeAllRanges()}function Es(e){return cs(this,void 0,void 0,(function(){var a;return ps(this,(function(s){if(a="text/plain"in e,"undefined"==typeof ClipboardEvent&&void 0!==ws.clipboardData&&void 0!==ws.clipboardData.setData){if(!a)throw new Error("No `text/plain` value was specified.");if(t=e["text/plain"],ws.clipboardData.setData("Text",t))return[2,!0];throw new Error("Copying failed, possibly because the user rejected it.")}var t;return js(e)||navigator.userAgent.indexOf("Edge")>-1||Ss(document.body,e)||function(e){var a=document.createElement("div");a.setAttribute("style","-webkit-user-select: text !important"),a.textContent="temporary element",document.body.appendChild(a);var s=Ss(a,e);return document.body.removeChild(a),s}(e)||function(e){var a=document.createElement("div");a.setAttribute("style","-webkit-user-select: text !important");var s=a;a.attachShadow&&(s=a.attachShadow({mode:"open"}));var t=document.createElement("span");t.innerText=e,s.appendChild(t),document.body.appendChild(a),_s(t);var o=document.execCommand("copy");return qs(),document.body.removeChild(a),o}(e["text/plain"])?[2,!0]:[2,!1]}))}))}function As(e,a,s){try{t=navigator.userAgent||navigator.vendor||window.opera,!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/