simple-keyboard/build/index.js

12 lines
101 KiB
JavaScript
Raw Normal View History

2018-09-10 10:47:01 +08:00
/*!
*
2023-11-09 17:49:39 +08:00
* simple-keyboard v3.7.26
2018-09-10 10:47:01 +08:00
* https://github.com/hodgef/simple-keyboard
2021-03-07 15:52:17 +08:00
*
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
*
2019-02-24 03:44:13 +08:00
* This source code is licensed under the MIT license found in the
2018-09-10 10:47:01 +08:00
* LICENSE file in the root directory of this source tree.
2021-03-07 15:52:17 +08:00
*
2018-09-10 10:47:01 +08:00
*/
2023-10-31 16:07:59 +08:00
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SimpleKeyboard=e():t.SimpleKeyboard=e()}(this,(function(){return function(){"use strict";var t={509:function(t,e,n){var o=n(9985),r=n(3691),i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(r(t)+" is not a function")}},2655:function(t,e,n){var o=n(9429),r=n(3691),i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(r(t)+" is not a constructor")}},3550:function(t,e,n){var o=n(9985),r=String,i=TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw new i("Can't set "+r(t)+" as a prototype")}},7370:function(t,e,n){var o=n(4201),r=n(5391),i=n(2560).f,a=o("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},1514:function(t,e,n){var o=n(730).charAt;t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},5027:function(t,e,n){var o=n(8999),r=String,i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(r(t)+" is not an object")}},7612:function(t,e,n){var o=n(2960).forEach,r=n(6834)("forEach");t.exports=r?[].forEach:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}},1055:function(t,e,n){var o=n(4071),r=n(2615),i=n(690),a=n(1228),s=n(3292),u=n(9429),c=n(6310),l=n(6522),f=n(5185),d=n(1664),p=Array;t.exports=function(t){var e=i(t),n=u(this),h=arguments.length,v=h>1?arguments[1]:void 0,y=void 0!==v;y&&(v=o(v,h>2?arguments[2]:void 0));var g,m,b,x,w,E,S=d(e),O=0;if(!S||this===p&&s(S))for(g=c(e),m=n?new this(g):p(g);g>O;O++)E=y?v(e[O],O):e[O],l(m,O,E);else for(w=(x=f(e,S)).next,m=n?new this:[];!(b=r(w,x)).done;O++)E=y?a(x,v,[b.value,O],!0):b.value,l(m,O,E);return m.length=O,m}},4328:function(t,e,n){var o=n(5290),r=n(7578),i=n(6310),a=function(t){return function(e,n,a){var s,u=o(e),c=i(u),l=r(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2960:function(t,e,n){var o=n(4071),r=n(8844),i=n(4413),a=n(690),s=n(6310),u=n(7120),c=r([].push),l=function(t){var e=1===t,n=2===t,r=3===t,l=4===t,f=6===t,d=7===t,p=5===t||f;return function(h,v,y,g){for(var m,b,x=a(h),w=i(x),E=o(v,y),S=s(w),O=0,k=g||u,P=e?k(h,S):n||d?k(h,0):void 0;S>O;O++)if((p||O in w)&&(b=E(m=w[O],O,x),t))if(e)P[O]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:c(P,m)}else switch(t){case 4:return!1;case 7:c(P,m)}return f?-1:r||l?l:P}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},9042:function(t,e,n){var o=n(3689),r=n(4201),i=n(3615),a=r("species");t.exports=function(t){return i>=51||!o((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},6834:function(t,e,n){var o=n(3689);t.exports=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){return 1},1)}))}},8820:function(t,e,n){var o=n(509),r=n(690),i=n(4413),a=n(6310),s=TypeError,u=function(t){return function(e,n,u,c){o(n);var l=r(e),f=i(l),d=a(l),p=t?d-1:0,h=t?-1:1;if(u<2)for(;;){if(p in f){c=f[p],p+=h;break}if(p+=h,t?p<0:d<=p)throw new s("Reduce of empty array with no initial value")}for(;t?p>=0:d>p;p+=h)p in f&&(c=n(c,f[p],p,l));return c}};t.exports={left:u(!1),right:u(!0)}},5649:function(t,e,n){var o=n(7697),r=n(2297),i=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},9015:function(t,e,n){var o=n(7578),r=n(6310),i=n(6522),a=Array,s=Math.max;t.exports=function(t,e,n){for(var u=r(t),c=o(e,u),l=o(void 0===n?u:n,u),f=a(s(l-c,0)),d=0;c<l;c++,d++)i(f,d,t[c]);return f.length=d,f}},6004:function(t,e,n){var o=n(8844);t.exports=o([].slice)},382:function(t,e,n){var o