simple-keyboard/build/index.js

12 lines
84 KiB
JavaScript
Raw Normal View History

2018-09-10 10:47:01 +08:00
/*!
*
2021-07-13 16:37:39 +08:00
* simple-keyboard v3.2.13
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
*/
2021-06-30 16:33:53 +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(){var t={3099:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:function(t,e,n){var o=n(111);t.exports=function(t){if(!o(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},1223:function(t,e,n){var o=n(5112),r=n(30),i=n(3070),a=o("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},1530:function(t,e,n){"use strict";var o=n(8710).charAt;t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},9670:function(t,e,n){var o=n(111);t.exports=function(t){if(!o(t))throw TypeError(String(t)+" is not an object");return t}},8533:function(t,e,n){"use strict";var o=n(2092).forEach,r=n(9341)("forEach");t.exports=r?[].forEach:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var o=n(9974),r=n(7908),i=n(3411),a=n(7659),s=n(7466),u=n(6135),c=n(1246);t.exports=function(t){var e,n,l,f,d,p,h=r(t),v="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,m=void 0!==y,b=c(h),x=0;if(m&&(y=o(y,g>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(h.length));e>x;x++)p=m?y(h[x],x):h[x],u(n,x,p);else for(d=(f=b.call(h)).next,n=new v;!(l=d.call(f)).done;x++)p=m?i(f,y,[l.value,x],!0):l.value,u(n,x,p);return n.length=x,n}},1318:function(t,e,n){var o=n(5656),r=n(7466),i=n(1400),a=function(t){return function(e,n,a){var s,u=o(e),c=r(u.length),l=i(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)}},2092:function(t,e,n){var o=n(9974),r=n(8361),i=n(7908),a=n(7466),s=n(5417),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,f=6==t,d=7==t,p=5==t||f;return function(h,v,g,y){for(var m,b,x=i(h),w=r(x),E=o(v,g,3),O=a(w.length),S=0,k=y||s,I=e?k(h,O):n||d?k(h,0):void 0;O>S;S++)if((p||S in w)&&(b=E(m=w[S],S,x),t))if(e)I[S]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:u.call(I,m)}else switch(t){case 4:return!1;case 7:u.call(I,m)}return f?-1:c||l?l:I}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},1194:function(t,e,n){var o=n(7293),r=n(5112),i=n(7392),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}))}},9341:function(t,e,n){"use strict";var o=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))}},3671:function(t,e,n){var o=n(3099),r=n(7908),i=n(8361),a=n(7466),s=function(t){return function(e,n,s,u){o(n);var c=r(e),l=i(c),f=a(c.length),d=t?f-1:0,p=t?-1:1;if(s<2)for(;;){if(d in l){u=l[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in l&&(u=n(u,l[d],d,c));return u}};t.exports={left:s(!1),right:s(!0)}},4362:function(t){var e=Math.floor,n=function(t,i){var a=t.length,s=e(a/2);return a<8?o(t,i):r(n(t.slice(0,s),i),n(t.slice(s),i),i)},o=function(t,e){for(var n,o,r=t.length,i=1;i<r;){for(o=i,n=t[i];o&&e(t[o-1],n)>0;)t[o]=t[--o];o!==i++&&(t[o]=n)}return t},r=function(t,e,n){for(var o=t.length,r=e.length,i=0,a=0,s=[];i<o||a<r;)i<o&&a<r?s.push(n(t[i],e[a])<=0?t[i++]:e[a++]):s.push(i<o?t[i++]:e[a++]);return s};t.exports=n},5417:function(t,e,n){var o=n(111),r=n(3157),i=n(5112)("species");t.exports=function(t,e){var n;return r(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},3411:function(t,e,n){var o=n(9670),r=n(9212);t.exports=function(t,e,n,i){try{return i?e(o(n)[0],n[1]):e(n)}catch(e){throw r(t),e}}},7072:function(t,e,n){var o=n(5112)("iterator