perfect-gui 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -40,6 +40,10 @@ const gui = new perfectGUI({
40
40
  name: 'My GUI',
41
41
  // Name of the panel.
42
42
  // Default is null.
43
+
44
+ container: '#container',
45
+ // Element containing the GUI
46
+ // Default is document.body
43
47
 
44
48
  width: 250,
45
49
  // Width of the panel (in pixels).
@@ -97,7 +101,7 @@ gui.addSlider('Slide this', { min: 0, max: 10, value: 5, step: .1 }, function(va
97
101
  <tr><td>addSwitch</td><td>
98
102
 
99
103
  ```javascript
100
- gui.addSwitch('Switch me!', true, function(state) {
104
+ gui.addSwitch('Switch me!', true, state => {
101
105
  console.log('Switched boolean value: ' + state);
102
106
  });
103
107
  ```
@@ -113,8 +117,9 @@ gui.addList('Select one', ['apple', 'lime', 'peach'], function(item) {
113
117
  <tr><td>addFolder</td><td>
114
118
 
115
119
  ```javascript
116
- let open = true; // default is true
117
- let folder = gui.addFolder('folder name', open);
120
+ let folder = gui.addFolder('folder name', {
121
+ closed: false // default is false
122
+ });
118
123
  folder.addButton('click me!', callback);
119
124
  ```
120
125
  </td></tr>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perfect-gui",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Nice and simple GUI for JavaScript.",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/index.js CHANGED
@@ -1,10 +1,16 @@
1
1
  import styles from './styles';
2
2
 
3
3
  export default class GUI {
4
- constructor(options) {
5
- if (options == undefined) options = {};
4
+ constructor(options = {}) {
5
+ if ( options.container ) {
6
+ this.container = typeof options.container == "string" ? document.querySelector(options.container) : options.container;
7
+ this.position_type = 'absolute';
8
+ } else {
9
+ this.container = document.body;
10
+ this.position_type = 'fixed';
11
+ }
6
12
 
7
- if (options.isFolder) {
13
+ if ( options.isFolder ) {
8
14
  this._folderConstructor(options.folderOptions);
9
15
  return;
10
16
  }
@@ -24,13 +30,13 @@ export default class GUI {
24
30
  document.head.append(this.stylesheet);
25
31
 
26
32
  // Common styles
27
- if (this.instanceId == 0) this._addStyles(`${styles}`);
33
+ if (this.instanceId == 0) this._addStyles(`${styles(this.position_type)}`);
28
34
 
29
35
  // Instance styles
30
36
  this.screenCorner = this._parseScreenCorner(options.position);
31
- this.xOffset = this.screenCorner.x == 'left' ? 0 : document.documentElement.clientWidth - this.wrapperWidth;
37
+ this.xOffset = this.screenCorner.x == 'left' ? 0 : this.container.clientWidth - this.wrapperWidth;
32
38
  if (this.instanceId > 0) {
33
- let existingDomInstances = document.getElementsByClassName('p-gui');
39
+ let existingDomInstances = this.container.querySelectorAll('.p-gui');
34
40
  for (let i = 0; i < existingDomInstances.length; i++) {
35
41
  if (this.screenCorner.y == existingDomInstances[i].dataset.cornerY) {
36
42
  if (this.screenCorner.x == 'left' && existingDomInstances[i].dataset.cornerX == 'left') {
@@ -62,7 +68,7 @@ export default class GUI {
62
68
  if (options.draggable == true) this._makeDraggable();
63
69
 
64
70
  this.closed = false;
65
- if (options != undefined && options.closed) this.toggleClose();
71
+ if (options.closed) this.toggleClose();
66
72
 
67
73
  this.folders = [];
68
74
  }
@@ -86,9 +92,9 @@ export default class GUI {
86
92
  _handleResize() {
87
93
  if (this.hasBeenDragged) return;
88
94
 
89
- this.xOffset = this.screenCorner.x == 'left' ? 0 : document.documentElement.clientWidth - this.wrapperWidth;
95
+ this.xOffset = this.screenCorner.x == 'left' ? 0 : this.container.clientWidth - this.wrapperWidth;
90
96
  if (this.instanceId > 0) {
91
- let existingDomInstances = document.querySelectorAll(`.p-gui:not(#${this.wrapper.id}):not([data-dragged])`);
97
+ let existingDomInstances = this.container.querySelectorAll(`.p-gui:not(#${this.wrapper.id}):not([data-dragged])`);
92
98
  for (let i = 0; i < existingDomInstances.length; i++) {
93
99
  let instanceId = parseInt(existingDomInstances[i].id.replace('p-gui-', ''));
94
100
  if (instanceId > this.instanceId) break;
@@ -134,7 +140,7 @@ export default class GUI {
134
140
 
135
141
  _addWrapper() {
136
142
  this.wrapper = this._createElement({
137
- parent: document.body,
143
+ parent: this.container,
138
144
  id: 'p-gui-'+this.instanceId,
139
145
  class: 'p-gui'
140
146
  });
@@ -192,7 +198,7 @@ export default class GUI {
192
198
  // Image
193
199
  var image = this._createElement({
194
200
  class: 'p-gui__image',
195
- onclick: params.callback,
201
+ onclick: () => params.callback(params.path),
196
202
  inline: `background-image: url(${params.path})`,
197
203
  parent: this.imageContainer
198
204
  })
@@ -321,22 +327,23 @@ export default class GUI {
321
327
  });
322
328
  }
323
329
 
324
- addFolder(name, open = true) {
330
+ addFolder(name, options = {}) {
331
+ let closed = typeof options.closed == 'boolean' ? options.closed : false;
332
+
325
333
  let params = {
326
- name: name,
327
- open: open
334
+ name,
335
+ closed
328
336
  };
329
337
  this._checkMandatoryParams({
330
338
  name: 'string',
331
- open: 'boolean'
339
+ closed: 'boolean'
332
340
  }, params);
333
341
 
334
342
  this.imageContainer = null;
335
343
 
336
344
  let className = 'p-gui__folder';
337
345
  if (this.folders.length == 0) className += ' p-gui__folder--first';
338
- if (!open) className += ' p-gui__folder--closed';
339
- console.log(className);
346
+ if (closed) className += ' p-gui__folder--closed';
340
347
  let container = this._createElement({
341
348
  class: className
342
349
  });
package/src/styles.js CHANGED
@@ -3,14 +3,15 @@
3
3
  * depending on a css loader
4
4
  */
5
5
 
6
- export default `
6
+ export default function( position_type ) {
7
+ return /* css */`
7
8
  .p-gui {
8
- position: fixed;
9
+ position: ${ position_type };
9
10
  top: 0;
10
11
  left: 0;
11
12
  transform: translate3d(0,0,0);
12
13
  padding: 20px 0px 4px 0px;
13
- background: rgba(51,51,51,.9);
14
+ background: #2e2e2e;
14
15
  display: flex;
15
16
  justify-content: center;
16
17
  flex-wrap: wrap;
@@ -66,13 +67,14 @@ export default `
66
67
  padding: 0 10px;
67
68
  display: flex;
68
69
  flex-wrap: wrap;
70
+ margin-bottom: 5px;
69
71
  }
70
72
 
71
73
  .p-gui__image {
72
- width: 80px;
74
+ width: 30.33%;
73
75
  height: 80px;
74
76
  background-size: cover;
75
- margin: 5px 5px 21px 5px;
77
+ margin: 5px 1.5% 17px 1.5%;
76
78
  cursor: pointer;
77
79
  position: relative;
78
80
  }
@@ -243,4 +245,5 @@ export default `
243
245
  .p-gui__folder .p-gui__list {
244
246
  margin-left: 6px;
245
247
  }
246
- `;
248
+ `
249
+ };
@@ -1 +1 @@
1
- !function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=283)}([function(t,n,e){var r=e(3),i=e(9),o=e(14),u=e(10),c=e(21),a=function(t,n,e){var s,f,l,h,p=t&a.F,v=t&a.G,d=t&a.S,g=t&a.P,y=t&a.B,b=v?r:d?r[n]||(r[n]={}):(r[n]||{}).prototype,m=v?i:i[n]||(i[n]={}),x=m.prototype||(m.prototype={});for(s in v&&(e=n),e)l=((f=!p&&b&&void 0!==b[s])?b:e)[s],h=y&&f?c(l,r):g&&"function"==typeof l?c(Function.call,l):l,b&&u(b,s,l,t&a.U),m[s]!=l&&o(m,s,h),g&&x[s]!=l&&(x[s]=l)};r.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(59)("wks"),i=e(29),o=e(3).Symbol,u="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=r},function(t,n,e){var r=e(17),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(2),i=e(85),o=e(26),u=Object.defineProperty;n.f=e(8)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(1)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n){var e=t.exports={version:"2.6.1"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(3),i=e(14),o=e(13),u=e(29)("src"),c=Function.toString,a=(""+c).split("toString");e(9).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,c){var s="function"==typeof e;s&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(s&&(o(e,u)||i(e,u,t[n]?""+t[n]:a.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[u]||c.call(this)}))},function(t,n,e){var r=e(24);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(0),i=e(1),o=e(24),u=/"/g,c=function(t,n,e,r){var i=String(o(t)),c="<"+n;return""!==e&&(c+=" "+e+'="'+String(r).replace(u,"&quot;")+'"'),c+">"+i+"</"+n+">"};t.exports=function(t,n){var e={};e[t]=n(c),r(r.P+r.F*i((function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3})),"String",e)}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(7),i=e(28);t.exports=e(8)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(43),i=e(24);t.exports=function(t){return r(i(t))}},function(t,n,e){"use strict";var r=e(1);t.exports=function(t,n){return!!t&&r((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(44),i=e(28),o=e(15),u=e(26),c=e(13),a=e(85),s=Object.getOwnPropertyDescriptor;n.f=e(8)?s:function(t,n){if(t=o(t),n=u(n,!0),a)try{return s(t,n)}catch(t){}if(c(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(0),i=e(9),o=e(1);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o((function(){e(1)})),"Object",u)}},function(t,n,e){var r=e(21),i=e(43),o=e(11),u=e(6),c=e(208);t.exports=function(t,n){var e=1==t,a=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l,p=n||c;return function(n,c,v){for(var d,g,y=o(n),b=i(y),m=r(c,v,3),x=u(b.length),w=0,_=e?p(n,x):a?p(n,0):void 0;x>w;w++)if((h||w in b)&&(g=m(d=b[w],w,y),t))if(e)_[w]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return w;case 2:_.push(d)}else if(f)return!1;return l?-1:s||f?f:_}}},function(t,n,e){var r=e(22);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){"use strict";if(e(8)){var r=e(30),i=e(3),o=e(1),u=e(0),c=e(57),a=e(84),s=e(21),f=e(40),l=e(28),h=e(14),p=e(41),v=e(17),d=e(6),g=e(111),y=e(32),b=e(26),m=e(13),x=e(45),w=e(4),_=e(11),S=e(76),E=e(33),A=e(35),O=e(34).f,k=e(78),M=e(29),F=e(5),P=e(20),I=e(47),j=e(46),N=e(80),C=e(37),T=e(50),L=e(39),R=e(79),B=e(102),D=e(7),W=e(18),U=D.f,V=W.f,G=i.RangeError,z=i.TypeError,Y=i.Uint8Array,J=Array.prototype,X=a.ArrayBuffer,Q=a.DataView,q=P(0),H=P(2),K=P(3),$=P(4),Z=P(5),tt=P(6),nt=I(!0),et=I(!1),rt=N.values,it=N.keys,ot=N.entries,ut=J.lastIndexOf,ct=J.reduce,at=J.reduceRight,st=J.join,ft=J.sort,lt=J.slice,ht=J.toString,pt=J.toLocaleString,vt=F("iterator"),dt=F("toStringTag"),gt=M("typed_constructor"),yt=M("def_constructor"),bt=c.CONSTR,mt=c.TYPED,xt=c.VIEW,wt=P(1,(function(t,n){return Ot(j(t,t[yt]),n)})),_t=o((function(){return 1===new Y(new Uint16Array([1]).buffer)[0]})),St=!!Y&&!!Y.prototype.set&&o((function(){new Y(1).set({})})),Et=function(t,n){var e=v(t);if(e<0||e%n)throw G("Wrong offset!");return e},At=function(t){if(w(t)&&mt in t)return t;throw z(t+" is not a typed array!")},Ot=function(t,n){if(!w(t)||!(gt in t))throw z("It is not a typed array constructor!");return new t(n)},kt=function(t,n){return Mt(j(t,t[yt]),n)},Mt=function(t,n){for(var e=0,r=n.length,i=Ot(t,r);r>e;)i[e]=n[e++];return i},Ft=function(t,n,e){U(t,n,{get:function(){return this._d[e]}})},Pt=function(t){var n,e,r,i,o,u,c=_(t),a=arguments.length,f=a>1?arguments[1]:void 0,l=void 0!==f,h=k(c);if(null!=h&&!S(h)){for(u=h.call(c),r=[],n=0;!(o=u.next()).done;n++)r.push(o.value);c=r}for(l&&a>2&&(f=s(f,arguments[2],2)),n=0,e=d(c.length),i=Ot(this,e);e>n;n++)i[n]=l?f(c[n],n):c[n];return i},It=function(){for(var t=0,n=arguments.length,e=Ot(this,n);n>t;)e[t]=arguments[t++];return e},jt=!!Y&&o((function(){pt.call(new Y(1))})),Nt=function(){return pt.apply(jt?lt.call(At(this)):At(this),arguments)},Ct={copyWithin:function(t,n){return B.call(At(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return $(At(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(At(this),arguments)},filter:function(t){return kt(this,H(At(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(At(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(At(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){q(At(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return et(At(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(At(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return st.apply(At(this),arguments)},lastIndexOf:function(t){return ut.apply(At(this),arguments)},map:function(t){return wt(At(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(At(this),arguments)},reduceRight:function(t){return at.apply(At(this),arguments)},reverse:function(){for(var t,n=At(this).length,e=Math.floor(n/2),r=0;r<e;)t=this[r],this[r++]=this[--n],this[n]=t;return this},some:function(t){return K(At(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ft.call(At(this),t)},subarray:function(t,n){var e=At(this),r=e.length,i=y(t,r);return new(j(e,e[yt]))(e.buffer,e.byteOffset+i*e.BYTES_PER_ELEMENT,d((void 0===n?r:y(n,r))-i))}},Tt=function(t,n){return kt(this,lt.call(At(this),t,n))},Lt=function(t){At(this);var n=Et(arguments[1],1),e=this.length,r=_(t),i=d(r.length),o=0;if(i+n>e)throw G("Wrong length!");for(;o<i;)this[n+o]=r[o++]},Rt={entries:function(){return ot.call(At(this))},keys:function(){return it.call(At(this))},values:function(){return rt.call(At(this))}},Bt=function(t,n){return w(t)&&t[mt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Dt=function(t,n){return Bt(t,n=b(n,!0))?l(2,t[n]):V(t,n)},Wt=function(t,n,e){return!(Bt(t,n=b(n,!0))&&w(e)&&m(e,"value"))||m(e,"get")||m(e,"set")||e.configurable||m(e,"writable")&&!e.writable||m(e,"enumerable")&&!e.enumerable?U(t,n,e):(t[n]=e.value,t)};bt||(W.f=Dt,D.f=Wt),u(u.S+u.F*!bt,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:Wt}),o((function(){ht.call({})}))&&(ht=pt=function(){return st.call(this)});var Ut=p({},Ct);p(Ut,Rt),h(Ut,vt,Rt.values),p(Ut,{slice:Tt,set:Lt,constructor:function(){},toString:ht,toLocaleString:Nt}),Ft(Ut,"buffer","b"),Ft(Ut,"byteOffset","o"),Ft(Ut,"byteLength","l"),Ft(Ut,"length","e"),U(Ut,dt,{get:function(){return this[mt]}}),t.exports=function(t,n,e,a){var s=t+((a=!!a)?"Clamped":"")+"Array",l="get"+t,p="set"+t,v=i[s],y=v||{},b=v&&A(v),m=!v||!c.ABV,_={},S=v&&v.prototype,k=function(t,e){U(t,e,{get:function(){return function(t,e){var r=t._d;return r.v[l](e*n+r.o,_t)}(this,e)},set:function(t){return function(t,e,r){var i=t._d;a&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[p](e*n+i.o,r,_t)}(this,e,t)},enumerable:!0})};m?(v=e((function(t,e,r,i){f(t,v,s,"_d");var o,u,c,a,l=0,p=0;if(w(e)){if(!(e instanceof X||"ArrayBuffer"==(a=x(e))||"SharedArrayBuffer"==a))return mt in e?Mt(v,e):Pt.call(v,e);o=e,p=Et(r,n);var y=e.byteLength;if(void 0===i){if(y%n)throw G("Wrong length!");if((u=y-p)<0)throw G("Wrong length!")}else if((u=d(i)*n)+p>y)throw G("Wrong length!");c=u/n}else c=g(e),o=new X(u=c*n);for(h(t,"_d",{b:o,o:p,l:u,e:c,v:new Q(o)});l<c;)k(t,l++)})),S=v.prototype=E(Ut),h(S,"constructor",v)):o((function(){v(1)}))&&o((function(){new v(-1)}))&&T((function(t){new v,new v(null),new v(1.5),new v(t)}),!0)||(v=e((function(t,e,r,i){var o;return f(t,v,s),w(e)?e instanceof X||"ArrayBuffer"==(o=x(e))||"SharedArrayBuffer"==o?void 0!==i?new y(e,Et(r,n),i):void 0!==r?new y(e,Et(r,n)):new y(e):mt in e?Mt(v,e):Pt.call(v,e):new y(g(e))})),q(b!==Function.prototype?O(y).concat(O(b)):O(y),(function(t){t in v||h(v,t,y[t])})),v.prototype=S,r||(S.constructor=v));var M=S[vt],F=!!M&&("values"==M.name||null==M.name),P=Rt.values;h(v,gt,!0),h(S,mt,s),h(S,xt,!0),h(S,yt,v),(a?new v(1)[dt]==s:dt in S)||U(S,dt,{get:function(){return s}}),_[s]=v,u(u.G+u.W+u.F*(v!=y),_),u(u.S,s,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*o((function(){y.of.call(v,1)})),s,{from:Pt,of:It}),"BYTES_PER_ELEMENT"in S||h(S,"BYTES_PER_ELEMENT",n),u(u.P,s,Ct),L(s),u(u.P+u.F*St,s,{set:Lt}),u(u.P+u.F*!F,s,Rt),r||S.toString==ht||(S.toString=ht),u(u.P+u.F*o((function(){new v(1).slice()})),s,{slice:Tt}),u(u.P+u.F*(o((function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()}))||!o((function(){S.toLocaleString.call([1,2])}))),s,{toLocaleString:Nt}),C[s]=F?M:P,r||F||h(S,vt,P)}}else t.exports=function(){}},function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(29)("meta"),i=e(4),o=e(13),u=e(7).f,c=0,a=Object.isExtensible||function(){return!0},s=!e(1)((function(){return a(Object.preventExtensions({}))})),f=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!a(t))return"F";if(!n)return"E";f(t)}return t[r].i},getWeak:function(t,n){if(!o(t,r)){if(!a(t))return!0;if(!n)return!1;f(t)}return t[r].w},onFreeze:function(t){return s&&l.NEED&&a(t)&&!o(t,r)&&f(t),t}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports=!1},function(t,n,e){var r=e(87),i=e(62);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(17),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=r(t))<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(2),i=e(88),o=e(62),u=e(61)("IE_PROTO"),c=function(){},a=function(){var t,n=e(58)("iframe"),r=o.length;for(n.style.display="none",e(64).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[o[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(c.prototype=r(t),e=new c,c.prototype=null,e[u]=t):e=a(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(87),i=e(62).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(13),i=e(11),o=e(61)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(7).f,i=e(13),o=e(5)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n){t.exports={}},function(t,n,e){var r=e(5)("unscopables"),i=Array.prototype;null==i[r]&&e(14)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,n,e){"use strict";var r=e(3),i=e(7),o=e(8),u=e(5)("species");t.exports=function(t){var n=r[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(10);t.exports=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}},function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,e){var r=e(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(23),i=e(5)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?e:o?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(2),i=e(22),o=e(5)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||null==(e=r(u)[o])?n:i(e)}},function(t,n,e){var r=e(15),i=e(6),o=e(32);t.exports=function(t){return function(n,e,u){var c,a=r(n),s=i(a.length),f=o(u,s);if(t&&e!=e){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(0),i=e(24),o=e(1),u=e(66),c="["+u+"]",a=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),f=function(t,n,e){var i={},c=o((function(){return!!u[t]()||"​…"!="​…"[t]()})),a=i[t]=c?n(l):u[t];e&&(i[e]=a),r(r.P+r.F*c,"String",i)},l=f.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(a,"")),2&n&&(t=t.replace(s,"")),t};t.exports=f},function(t,n,e){var r=e(5)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(2);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";var r=e(45),i=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"==typeof e){var o=e.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,e){"use strict";e(104);var r=e(10),i=e(14),o=e(1),u=e(24),c=e(5),a=e(81),s=c("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var h=c(t),p=!o((function(){var n={};return n[h]=function(){return 7},7!=""[t](n)})),v=p?!o((function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[s]=function(){return e}),e[h](""),!n})):void 0;if(!p||!v||"replace"===t&&!f||"split"===t&&!l){var d=/./[h],g=e(u,h,""[t],(function(t,n,e,r,i){return n.exec===a?p&&!i?{done:!0,value:d.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}})),y=g[0],b=g[1];r(String.prototype,t,y),i(RegExp.prototype,h,2==n?function(t,n){return b.call(t,this,n)}:function(t){return b.call(t,this)})}}},function(t,n,e){var r=e(21),i=e(100),o=e(76),u=e(2),c=e(6),a=e(78),s={},f={};(n=t.exports=function(t,n,e,l,h){var p,v,d,g,y=h?function(){return t}:a(t),b=r(e,l,n?2:1),m=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(p=c(t.length);p>m;m++)if((g=n?b(u(v=t[m])[0],v[1]):b(t[m]))===s||g===f)return g}else for(d=y.call(t);!(v=d.next()).done;)if((g=i(d,b,v.value,n))===s||g===f)return g}).BREAK=s,n.RETURN=f},function(t,n,e){var r=e(3).navigator;t.exports=r&&r.userAgent||""},function(t,n,e){"use strict";var r=e(3),i=e(0),o=e(10),u=e(41),c=e(27),a=e(54),s=e(40),f=e(4),l=e(1),h=e(50),p=e(36),v=e(67);t.exports=function(t,n,e,d,g,y){var b=r[t],m=b,x=g?"set":"add",w=m&&m.prototype,_={},S=function(t){var n=w[t];o(w,t,"delete"==t||"has"==t?function(t){return!(y&&!f(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof m&&(y||w.forEach&&!l((function(){(new m).entries().next()})))){var E=new m,A=E[x](y?{}:-0,1)!=E,O=l((function(){E.has(1)})),k=h((function(t){new m(t)})),M=!y&&l((function(){for(var t=new m,n=5;n--;)t[x](n,n);return!t.has(-0)}));k||((m=n((function(n,e){s(n,m,t);var r=v(new b,n,m);return null!=e&&a(e,g,r[x],r),r}))).prototype=w,w.constructor=m),(O||M)&&(S("delete"),S("has"),g&&S("get")),(M||A)&&S(x),y&&w.clear&&delete w.clear}else m=d.getConstructor(n,t,g,x),u(m.prototype,e),c.NEED=!0;return p(m,t),_[t]=m,i(i.G+i.W+i.F*(m!=b),_),y||d.setStrong(m,t,g),m}},function(t,n,e){for(var r,i=e(3),o=e(14),u=e(29),c=u("typed_array"),a=u("view"),s=!(!i.ArrayBuffer||!i.DataView),f=s,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=i[h[l++]])?(o(r.prototype,c,!0),o(r.prototype,a,!0)):f=!1;t.exports={ABV:s,CONSTR:f,TYPED:c,VIEW:a}},function(t,n,e){var r=e(4),i=e(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){var r=e(9),i=e(3),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(30)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){n.f=e(5)},function(t,n,e){var r=e(59)("keys"),i=e(29);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(23);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(3).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(4),i=e(2),o=function(t,n){if(i(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=e(21)(Function.call,e(18).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,e){var r=e(4),i=e(65).set;t.exports=function(t,n,e){var o,u=n.constructor;return u!==e&&"function"==typeof u&&(o=u.prototype)!==e.prototype&&r(o)&&i&&i(t,o),t}},function(t,n,e){"use strict";var r=e(17),i=e(24);t.exports=function(t){var n=String(i(this)),e="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(e+=n);return e}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},function(t,n,e){var r=e(17),i=e(24);t.exports=function(t){return function(n,e){var o,u,c=String(i(n)),a=r(e),s=c.length;return a<0||a>=s?t?"":void 0:(o=c.charCodeAt(a))<55296||o>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):o:t?c.slice(a,a+2):u-56320+(o-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(30),i=e(0),o=e(10),u=e(14),c=e(37),a=e(99),s=e(36),f=e(35),l=e(5)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,n,e,v,d,g,y){a(e,n,v);var b,m,x,w=function(t){if(!h&&t in A)return A[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},_=n+" Iterator",S="values"==d,E=!1,A=t.prototype,O=A[l]||A["@@iterator"]||d&&A[d],k=O||w(d),M=d?S?w("entries"):k:void 0,F="Array"==n&&A.entries||O;if(F&&(x=f(F.call(new t)))!==Object.prototype&&x.next&&(s(x,_,!0),r||"function"==typeof x[l]||u(x,l,p)),S&&O&&"values"!==O.name&&(E=!0,k=function(){return O.call(this)}),r&&!y||!h&&!E&&A[l]||u(A,l,k),c[n]=k,c[_]=p,d)if(b={values:S?k:w("values"),keys:g?k:w("keys"),entries:M},y)for(m in b)m in A||o(A,m,b[m]);else i(i.P+i.F*(h||E),n,b);return b}},function(t,n,e){var r=e(74),i=e(24);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(i(t))}},function(t,n,e){var r=e(4),i=e(23),o=e(5)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,e){var r=e(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){var r=e(37),i=e(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){"use strict";var r=e(7),i=e(28);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(45),i=e(5)("iterator"),o=e(37);t.exports=e(9).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){"use strict";var r=e(11),i=e(32),o=e(6);t.exports=function(t){for(var n=r(this),e=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,e),a=u>2?arguments[2]:void 0,s=void 0===a?e:i(a,e);s>c;)n[c++]=t;return n}},function(t,n,e){"use strict";var r=e(38),i=e(103),o=e(37),u=e(15);t.exports=e(72)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){"use strict";var r,i,o=e(51),u=RegExp.prototype.exec,c=String.prototype.replace,a=u,s=(r=/a/,i=/b*/g,u.call(r,"a"),u.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=void 0!==/()??/.exec("")[1];(s||f)&&(a=function(t){var n,e,r,i,a=this;return f&&(e=new RegExp("^"+a.source+"$(?!\\s)",o.call(a))),s&&(n=a.lastIndex),r=u.call(a,t),s&&r&&(a.lastIndex=a.global?r.index+r[0].length:n),f&&r&&r.length>1&&c.call(r[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),t.exports=a},function(t,n,e){"use strict";var r=e(71)(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){var r,i,o,u=e(21),c=e(93),a=e(64),s=e(58),f=e(3),l=f.process,h=f.setImmediate,p=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,g=0,y={},b=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},m=function(t){b.call(t.data)};h&&p||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return y[++g]=function(){c("function"==typeof t?t:Function(t),n)},r(g),g},p=function(t){delete y[t]},"process"==e(23)(l)?r=function(t){l.nextTick(u(b,t,1))}:d&&d.now?r=function(t){d.now(u(b,t,1))}:v?(o=(i=new v).port2,i.port1.onmessage=m,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in s("script")?function(t){a.appendChild(s("script")).onreadystatechange=function(){a.removeChild(this),b.call(t)}}:function(t){setTimeout(u(b,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,e){"use strict";var r=e(3),i=e(8),o=e(30),u=e(57),c=e(14),a=e(41),s=e(1),f=e(40),l=e(17),h=e(6),p=e(111),v=e(34).f,d=e(7).f,g=e(79),y=e(36),b=r.ArrayBuffer,m=r.DataView,x=r.Math,w=r.RangeError,_=r.Infinity,S=b,E=x.abs,A=x.pow,O=x.floor,k=x.log,M=x.LN2,F=i?"_b":"buffer",P=i?"_l":"byteLength",I=i?"_o":"byteOffset";function j(t,n,e){var r,i,o,u=new Array(e),c=8*e-n-1,a=(1<<c)-1,s=a>>1,f=23===n?A(2,-24)-A(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===_?(i=t!=t?1:0,r=a):(r=O(k(t)/M),t*(o=A(2,-r))<1&&(r--,o*=2),(t+=r+s>=1?f/o:f*A(2,1-s))*o>=2&&(r++,o/=2),r+s>=a?(i=0,r=a):r+s>=1?(i=(t*o-1)*A(2,n),r+=s):(i=t*A(2,s-1)*A(2,n),r=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(r=r<<n|i,c+=n;c>0;u[l++]=255&r,r/=256,c-=8);return u[--l]|=128*h,u}function N(t,n,e){var r,i=8*e-n-1,o=(1<<i)-1,u=o>>1,c=i-7,a=e-1,s=t[a--],f=127&s;for(s>>=7;c>0;f=256*f+t[a],a--,c-=8);for(r=f&(1<<-c)-1,f>>=-c,c+=n;c>0;r=256*r+t[a],a--,c-=8);if(0===f)f=1-u;else{if(f===o)return r?NaN:s?-_:_;r+=A(2,n),f-=u}return(s?-1:1)*r*A(2,f-n)}function C(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function T(t){return[255&t]}function L(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function B(t){return j(t,52,8)}function D(t){return j(t,23,4)}function W(t,n,e){d(t.prototype,n,{get:function(){return this[e]}})}function U(t,n,e,r){var i=p(+e);if(i+n>t[P])throw w("Wrong index!");var o=t[F]._b,u=i+t[I],c=o.slice(u,u+n);return r?c:c.reverse()}function V(t,n,e,r,i,o){var u=p(+e);if(u+n>t[P])throw w("Wrong index!");for(var c=t[F]._b,a=u+t[I],s=r(+i),f=0;f<n;f++)c[a+f]=s[o?f:n-f-1]}if(u.ABV){if(!s((function(){b(1)}))||!s((function(){new b(-1)}))||s((function(){return new b,new b(1.5),new b(NaN),"ArrayBuffer"!=b.name}))){for(var G,z=(b=function(t){return f(this,b),new S(p(t))}).prototype=S.prototype,Y=v(S),J=0;Y.length>J;)(G=Y[J++])in b||c(b,G,S[G]);o||(z.constructor=b)}var X=new m(new b(2)),Q=m.prototype.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||a(m.prototype,{setInt8:function(t,n){Q.call(this,t,n<<24>>24)},setUint8:function(t,n){Q.call(this,t,n<<24>>24)}},!0)}else b=function(t){f(this,b,"ArrayBuffer");var n=p(t);this._b=g.call(new Array(n),0),this[P]=n},m=function(t,n,e){f(this,m,"DataView"),f(t,b,"DataView");var r=t[P],i=l(n);if(i<0||i>r)throw w("Wrong offset!");if(i+(e=void 0===e?r-i:h(e))>r)throw w("Wrong length!");this[F]=t,this[I]=i,this[P]=e},i&&(W(b,"byteLength","_l"),W(m,"buffer","_b"),W(m,"byteLength","_l"),W(m,"byteOffset","_o")),a(m.prototype,{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var n=U(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=U(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return C(U(this,4,t,arguments[1]))},getUint32:function(t){return C(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return N(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return N(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){V(this,1,t,T,n)},setUint8:function(t,n){V(this,1,t,T,n)},setInt16:function(t,n){V(this,2,t,L,n,arguments[2])},setUint16:function(t,n){V(this,2,t,L,n,arguments[2])},setInt32:function(t,n){V(this,4,t,R,n,arguments[2])},setUint32:function(t,n){V(this,4,t,R,n,arguments[2])},setFloat32:function(t,n){V(this,4,t,D,n,arguments[2])},setFloat64:function(t,n){V(this,8,t,B,n,arguments[2])}});y(b,"ArrayBuffer"),y(m,"DataView"),c(m.prototype,u.VIEW,!0),n.ArrayBuffer=b,n.DataView=m},function(t,n,e){t.exports=!e(8)&&!e(1)((function(){return 7!=Object.defineProperty(e(58)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(3),i=e(9),o=e(30),u=e(60),c=e(7).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(13),i=e(15),o=e(47)(!1),u=e(61)("IE_PROTO");t.exports=function(t,n){var e,c=i(t),a=0,s=[];for(e in c)e!=u&&r(c,e)&&s.push(e);for(;n.length>a;)r(c,e=n[a++])&&(~o(s,e)||s.push(e));return s}},function(t,n,e){var r=e(7),i=e(2),o=e(31);t.exports=e(8)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),c=u.length,a=0;c>a;)r.f(t,e=u[a++],n[e]);return t}},function(t,n,e){var r=e(15),i=e(34).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(r(t))}},function(t,n,e){"use strict";var r=e(31),i=e(48),o=e(44),u=e(11),c=e(43),a=Object.assign;t.exports=!a||e(1)((function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=a({},t)[e]||Object.keys(a({},n)).join("")!=r}))?function(t,n){for(var e=u(t),a=arguments.length,s=1,f=i.f,l=o.f;a>s;)for(var h,p=c(arguments[s++]),v=f?r(p).concat(f(p)):r(p),d=v.length,g=0;d>g;)l.call(p,h=v[g++])&&(e[h]=p[h]);return e}:a},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,e){"use strict";var r=e(22),i=e(4),o=e(93),u=[].slice,c={},a=function(t,n,e){if(!(n in c)){for(var r=[],i=0;i<n;i++)r[i]="a["+i+"]";c[n]=Function("F,a","return new F("+r.join(",")+")")}return c[n](t,e)};t.exports=Function.bind||function(t){var n=r(this),e=u.call(arguments,1),c=function(){var r=e.concat(u.call(arguments));return this instanceof c?a(n,r.length,r):o(n,r,t)};return i(n.prototype)&&(c.prototype=n.prototype),c}},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(3).parseInt,i=e(49).trim,o=e(66),u=/^[-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,n){var e=i(String(t),3);return r(e,n>>>0||(u.test(e)?16:10))}:r},function(t,n,e){var r=e(3).parseFloat,i=e(49).trim;t.exports=1/r(e(66)+"-0")!=-1/0?function(t){var n=i(String(t),3),e=r(n);return 0===e&&"-"==n.charAt(0)?-0:e}:r},function(t,n,e){var r=e(23);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(n);return+t}},function(t,n,e){var r=e(4),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,e){"use strict";var r=e(33),i=e(28),o=e(36),u={};e(14)(u,e(5)("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(2);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){var r=e(22),i=e(11),o=e(43),u=e(6);t.exports=function(t,n,e,c,a){r(n);var s=i(t),f=o(s),l=u(s.length),h=a?l-1:0,p=a?-1:1;if(e<2)for(;;){if(h in f){c=f[h],h+=p;break}if(h+=p,a?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;a?h>=0:l>h;h+=p)h in f&&(c=n(c,f[h],h,s));return c}},function(t,n,e){"use strict";var r=e(11),i=e(32),o=e(6);t.exports=[].copyWithin||function(t,n){var e=r(this),u=o(e.length),c=i(t,u),a=i(n,u),s=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===s?u:i(s,u))-a,u-c),l=1;for(a<c&&c<a+f&&(l=-1,a+=f-1,c+=f-1);f-- >0;)a in e?e[c]=e[a]:delete e[c],c+=l,a+=l;return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(81);e(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,n,e){e(8)&&"g"!=/./g.flags&&e(7).f(RegExp.prototype,"flags",{configurable:!0,get:e(51)})},function(t,n,e){"use strict";var r,i,o,u,c=e(30),a=e(3),s=e(21),f=e(45),l=e(0),h=e(4),p=e(22),v=e(40),d=e(54),g=e(46),y=e(83).set,b=e(229)(),m=e(107),x=e(230),w=e(55),_=e(108),S=a.TypeError,E=a.process,A=E&&E.versions,O=A&&A.v8||"",k=a.Promise,M="process"==f(E),F=function(){},P=i=m.f,I=!!function(){try{var t=k.resolve(1),n=(t.constructor={})[e(5)("species")]=function(t){t(F,F)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(F)instanceof n&&0!==O.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),j=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},N=function(t,n){if(!t._n){t._n=!0;var e=t._c;b((function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u,c=i?n.ok:n.fail,a=n.resolve,s=n.reject,f=n.domain;try{c?(i||(2==t._h&&L(t),t._h=1),!0===c?e=r:(f&&f.enter(),e=c(r),f&&(f.exit(),u=!0)),e===n.promise?s(S("Promise-chain cycle")):(o=j(e))?o.call(e,a,s):a(e)):s(r)}catch(t){f&&!u&&f.exit(),s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&C(t)}))}},C=function(t){y.call(a,(function(){var n,e,r,i=t._v,o=T(t);if(o&&(n=x((function(){M?E.emit("unhandledRejection",i,t):(e=a.onunhandledrejection)?e({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=M||T(t)?2:1),t._a=void 0,o&&n.e)throw n.v}))},T=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){y.call(a,(function(){var n;M?E.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})}))},R=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),N(n,!0))},B=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw S("Promise can't be resolved itself");(n=j(t))?b((function(){var r={_w:e,_d:!1};try{n.call(t,s(B,r,1),s(R,r,1))}catch(t){R.call(r,t)}})):(e._v=t,e._s=1,N(e,!1))}catch(t){R.call({_w:e,_d:!1},t)}}};I||(k=function(t){v(this,k,"Promise","_h"),p(t),r.call(this);try{t(s(B,this,1),s(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(41)(k.prototype,{then:function(t,n){var e=P(g(this,k));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=M?E.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&N(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=s(B,t,1),this.reject=s(R,t,1)},m.f=P=function(t){return t===k||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!I,{Promise:k}),e(36)(k,"Promise"),e(39)("Promise"),u=e(9).Promise,l(l.S+l.F*!I,"Promise",{reject:function(t){var n=P(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!I),"Promise",{resolve:function(t){return _(c&&this===u?k:this,t)}}),l(l.S+l.F*!(I&&e(50)((function(t){k.all(t).catch(F)}))),"Promise",{all:function(t){var n=this,e=P(n),r=e.resolve,i=e.reject,o=x((function(){var e=[],o=0,u=1;d(t,!1,(function(t){var c=o++,a=!1;e.push(void 0),u++,n.resolve(t).then((function(t){a||(a=!0,e[c]=t,--u||r(e))}),i)})),--u||r(e)}));return o.e&&i(o.v),e.promise},race:function(t){var n=this,e=P(n),r=e.reject,i=x((function(){d(t,!1,(function(t){n.resolve(t).then(e.resolve,r)}))}));return i.e&&r(i.v),e.promise}})},function(t,n,e){"use strict";var r=e(22);function i(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r})),this.resolve=r(n),this.reject=r(e)}t.exports.f=function(t){return new i(t)}},function(t,n,e){var r=e(2),i=e(4),o=e(107);t.exports=function(t,n){if(r(t),i(n)&&n.constructor===t)return n;var e=o.f(t);return(0,e.resolve)(n),e.promise}},function(t,n,e){"use strict";var r=e(7).f,i=e(33),o=e(41),u=e(21),c=e(40),a=e(54),s=e(72),f=e(103),l=e(39),h=e(8),p=e(27).fastKey,v=e(42),d=h?"_s":"size",g=function(t,n){var e,r=p(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,e,s){var f=t((function(t,r){c(t,f,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[d]=0,null!=r&&a(r,e,t[s],t)}));return o(f.prototype,{clear:function(){for(var t=v(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var e=v(this,n),r=g(e,t);if(r){var i=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),e._f==r&&(e._f=i),e._l==r&&(e._l=o),e[d]--}return!!r},forEach:function(t){v(this,n);for(var e,r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!g(v(this,n),t)}}),h&&r(f.prototype,"size",{get:function(){return v(this,n)[d]}}),f},def:function(t,n,e){var r,i,o=g(t,n);return o?o.v=e:(t._l=o={i:i=p(n,!0),k:n,v:e,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[d]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,n,e){s(t,n,(function(t,e){this._t=v(t,n),this._k=e,this._l=void 0}),(function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?f(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,f(1))}),e?"entries":"values",!e,!0),l(n)}}},function(t,n,e){"use strict";var r=e(41),i=e(27).getWeak,o=e(2),u=e(4),c=e(40),a=e(54),s=e(20),f=e(13),l=e(42),h=s(5),p=s(6),v=0,d=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},y=function(t,n){return h(t.a,(function(t){return t[0]===n}))};g.prototype={get:function(t){var n=y(this,t);if(n)return n[1]},has:function(t){return!!y(this,t)},set:function(t,n){var e=y(this,t);e?e[1]=n:this.a.push([t,n])},delete:function(t){var n=p(this.a,(function(n){return n[0]===t}));return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,e,o){var s=t((function(t,r){c(t,s,n,"_i"),t._t=n,t._i=v++,t._l=void 0,null!=r&&a(r,e,t[o],t)}));return r(s.prototype,{delete:function(t){if(!u(t))return!1;var e=i(t);return!0===e?d(l(this,n)).delete(t):e&&f(e,this._i)&&delete e[this._i]},has:function(t){if(!u(t))return!1;var e=i(t);return!0===e?d(l(this,n)).has(t):e&&f(e,this._i)}}),s},def:function(t,n,e){var r=i(o(n),!0);return!0===r?d(t).set(n,e):r[t._i]=e,t},ufstore:d}},function(t,n,e){var r=e(17),i=e(6);t.exports=function(t){if(void 0===t)return 0;var n=r(t),e=i(n);if(n!==e)throw RangeError("Wrong length!");return e}},function(t,n,e){var r=e(34),i=e(48),o=e(2),u=e(3).Reflect;t.exports=u&&u.ownKeys||function(t){var n=r.f(o(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(6),i=e(68),o=e(24);t.exports=function(t,n,e,u){var c=String(o(t)),a=c.length,s=void 0===e?" ":String(e),f=r(n);if(f<=a||""==s)return c;var l=f-a,h=i.call(s,Math.ceil(l/s.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,e){var r=e(31),i=e(15),o=e(44).f;t.exports=function(t){return function(n){for(var e,u=i(n),c=r(u),a=c.length,s=0,f=[];a>s;)o.call(u,e=c[s++])&&f.push(t?[e,u[e]]:u[e]);return f}}},function(t,n,e){"use strict";(function(t){e(117),e(260),e(262),e(264),e(266),e(268),e(270),e(272),e(274),e(276),e(280),t._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),t._babelPolyfill=!0}).call(this,e(116))},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){e(118),e(120),e(121),e(122),e(123),e(124),e(125),e(126),e(127),e(128),e(129),e(130),e(131),e(132),e(133),e(134),e(135),e(136),e(137),e(138),e(139),e(140),e(141),e(142),e(143),e(144),e(145),e(146),e(147),e(148),e(149),e(150),e(151),e(152),e(153),e(154),e(155),e(156),e(157),e(158),e(159),e(160),e(161),e(163),e(164),e(165),e(166),e(167),e(168),e(169),e(170),e(171),e(172),e(173),e(174),e(175),e(176),e(177),e(178),e(179),e(180),e(181),e(182),e(183),e(184),e(185),e(186),e(187),e(188),e(189),e(190),e(191),e(192),e(193),e(194),e(195),e(196),e(198),e(199),e(201),e(202),e(203),e(204),e(205),e(206),e(207),e(210),e(211),e(212),e(213),e(214),e(215),e(216),e(217),e(218),e(219),e(220),e(221),e(222),e(80),e(223),e(104),e(224),e(105),e(225),e(226),e(227),e(228),e(106),e(231),e(232),e(233),e(234),e(235),e(236),e(237),e(238),e(239),e(240),e(241),e(242),e(243),e(244),e(245),e(246),e(247),e(248),e(249),e(250),e(251),e(252),e(253),e(254),e(255),e(256),e(257),e(258),e(259),t.exports=e(9)},function(t,n,e){"use strict";var r=e(3),i=e(13),o=e(8),u=e(0),c=e(10),a=e(27).KEY,s=e(1),f=e(59),l=e(36),h=e(29),p=e(5),v=e(60),d=e(86),g=e(119),y=e(63),b=e(2),m=e(4),x=e(15),w=e(26),_=e(28),S=e(33),E=e(89),A=e(18),O=e(7),k=e(31),M=A.f,F=O.f,P=E.f,I=r.Symbol,j=r.JSON,N=j&&j.stringify,C=p("_hidden"),T=p("toPrimitive"),L={}.propertyIsEnumerable,R=f("symbol-registry"),B=f("symbols"),D=f("op-symbols"),W=Object.prototype,U="function"==typeof I,V=r.QObject,G=!V||!V.prototype||!V.prototype.findChild,z=o&&s((function(){return 7!=S(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=M(W,n);r&&delete W[n],F(t,n,e),r&&t!==W&&F(W,n,r)}:F,Y=function(t){var n=B[t]=S(I.prototype);return n._k=t,n},J=U&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},X=function(t,n,e){return t===W&&X(D,n,e),b(t),n=w(n,!0),b(e),i(B,n)?(e.enumerable?(i(t,C)&&t[C][n]&&(t[C][n]=!1),e=S(e,{enumerable:_(0,!1)})):(i(t,C)||F(t,C,_(1,{})),t[C][n]=!0),z(t,n,e)):F(t,n,e)},Q=function(t,n){b(t);for(var e,r=g(n=x(n)),i=0,o=r.length;o>i;)X(t,e=r[i++],n[e]);return t},q=function(t){var n=L.call(this,t=w(t,!0));return!(this===W&&i(B,t)&&!i(D,t))&&(!(n||!i(this,t)||!i(B,t)||i(this,C)&&this[C][t])||n)},H=function(t,n){if(t=x(t),n=w(n,!0),t!==W||!i(B,n)||i(D,n)){var e=M(t,n);return!e||!i(B,n)||i(t,C)&&t[C][n]||(e.enumerable=!0),e}},K=function(t){for(var n,e=P(x(t)),r=[],o=0;e.length>o;)i(B,n=e[o++])||n==C||n==a||r.push(n);return r},$=function(t){for(var n,e=t===W,r=P(e?D:x(t)),o=[],u=0;r.length>u;)!i(B,n=r[u++])||e&&!i(W,n)||o.push(B[n]);return o};U||(c((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===W&&n.call(D,e),i(this,C)&&i(this[C],t)&&(this[C][t]=!1),z(this,t,_(1,e))};return o&&G&&z(W,t,{configurable:!0,set:n}),Y(t)}).prototype,"toString",(function(){return this._k})),A.f=H,O.f=X,e(34).f=E.f=K,e(44).f=q,e(48).f=$,o&&!e(30)&&c(W,"propertyIsEnumerable",q,!0),v.f=function(t){return Y(p(t))}),u(u.G+u.W+u.F*!U,{Symbol:I});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)p(Z[tt++]);for(var nt=k(p.store),et=0;nt.length>et;)d(nt[et++]);u(u.S+u.F*!U,"Symbol",{for:function(t){return i(R,t+="")?R[t]:R[t]=I(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var n in R)if(R[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!U,"Object",{create:function(t,n){return void 0===n?S(t):Q(S(t),n)},defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:H,getOwnPropertyNames:K,getOwnPropertySymbols:$}),j&&u(u.S+u.F*(!U||s((function(){var t=I();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(e=n=r[1],(m(n)||void 0!==t)&&!J(t))return y(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!J(n))return n}),r[1]=n,N.apply(j,r)}}),I.prototype[T]||e(14)(I.prototype,T,I.prototype.valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(31),i=e(48),o=e(44);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,c=e(t),a=o.f,s=0;c.length>s;)a.call(t,u=c[s++])&&n.push(u);return n}},function(t,n,e){var r=e(0);r(r.S,"Object",{create:e(33)})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(8),"Object",{defineProperty:e(7).f})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(8),"Object",{defineProperties:e(88)})},function(t,n,e){var r=e(15),i=e(18).f;e(19)("getOwnPropertyDescriptor",(function(){return function(t,n){return i(r(t),n)}}))},function(t,n,e){var r=e(11),i=e(35);e(19)("getPrototypeOf",(function(){return function(t){return i(r(t))}}))},function(t,n,e){var r=e(11),i=e(31);e(19)("keys",(function(){return function(t){return i(r(t))}}))},function(t,n,e){e(19)("getOwnPropertyNames",(function(){return e(89).f}))},function(t,n,e){var r=e(4),i=e(27).onFreeze;e(19)("freeze",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(4),i=e(27).onFreeze;e(19)("seal",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(4),i=e(27).onFreeze;e(19)("preventExtensions",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(4);e(19)("isFrozen",(function(t){return function(n){return!r(n)||!!t&&t(n)}}))},function(t,n,e){var r=e(4);e(19)("isSealed",(function(t){return function(n){return!r(n)||!!t&&t(n)}}))},function(t,n,e){var r=e(4);e(19)("isExtensible",(function(t){return function(n){return!!r(n)&&(!t||t(n))}}))},function(t,n,e){var r=e(0);r(r.S+r.F,"Object",{assign:e(90)})},function(t,n,e){var r=e(0);r(r.S,"Object",{is:e(91)})},function(t,n,e){var r=e(0);r(r.S,"Object",{setPrototypeOf:e(65).set})},function(t,n,e){"use strict";var r=e(45),i={};i[e(5)("toStringTag")]="z",i+""!="[object z]"&&e(10)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,n,e){var r=e(0);r(r.P,"Function",{bind:e(92)})},function(t,n,e){var r=e(7).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||e(8)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,e){"use strict";var r=e(4),i=e(35),o=e(5)("hasInstance"),u=Function.prototype;o in u||e(7).f(u,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,e){var r=e(0),i=e(94);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,n,e){var r=e(0),i=e(95);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,n,e){"use strict";var r=e(3),i=e(13),o=e(23),u=e(67),c=e(26),a=e(1),s=e(34).f,f=e(18).f,l=e(7).f,h=e(49).trim,p=r.Number,v=p,d=p.prototype,g="Number"==o(e(33)(d)),y="trim"in String.prototype,b=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){var e,r,i,o=(n=y?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(e=n.charCodeAt(2))||120===e)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+n}for(var u,a=n.slice(2),s=0,f=a.length;s<f;s++)if((u=a.charCodeAt(s))<48||u>i)return NaN;return parseInt(a,r)}}return+n};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof p&&(g?a((function(){d.valueOf.call(e)})):"Number"!=o(e))?u(new v(b(n)),e,p):b(n)};for(var m,x=e(8)?s(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;x.length>w;w++)i(v,m=x[w])&&!i(p,m)&&l(p,m,f(v,m));p.prototype=d,d.constructor=p,e(10)(r,"Number",p)}},function(t,n,e){"use strict";var r=e(0),i=e(17),o=e(96),u=e(68),c=1..toFixed,a=Math.floor,s=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,n){for(var e=-1,r=n;++e<6;)r+=t*s[e],s[e]=r%1e7,r=a(r/1e7)},h=function(t){for(var n=6,e=0;--n>=0;)e+=s[n],s[n]=a(e/t),e=e%t*1e7},p=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==s[t]){var e=String(s[t]);n=""===n?e:n+u.call("0",7-e.length)+e}return n},v=function(t,n,e){return 0===n?e:n%2==1?v(t,n-1,e*t):v(t*t,n/2,e)};r(r.P+r.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e(1)((function(){c.call({})}))),"Number",{toFixed:function(t){var n,e,r,c,a=o(this,f),s=i(t),d="",g="0";if(s<0||s>20)throw RangeError(f);if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(d="-",a=-a),a>1e-21)if(e=(n=function(t){for(var n=0,e=t;e>=4096;)n+=12,e/=4096;for(;e>=2;)n+=1,e/=2;return n}(a*v(2,69,1))-69)<0?a*v(2,-n,1):a/v(2,n,1),e*=4503599627370496,(n=52-n)>0){for(l(0,e),r=s;r>=7;)l(1e7,0),r-=7;for(l(v(10,r,1),0),r=n-1;r>=23;)h(1<<23),r-=23;h(1<<r),l(1,1),h(2),g=p()}else l(0,e),l(1<<-n,0),g=p()+u.call("0",s);return g=s>0?d+((c=g.length)<=s?"0."+u.call("0",s-c)+g:g.slice(0,c-s)+"."+g.slice(c-s)):d+g}})},function(t,n,e){"use strict";var r=e(0),i=e(1),o=e(96),u=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==u.call(1,void 0)}))||!i((function(){u.call({})}))),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,e){var r=e(0),i=e(3).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{isInteger:e(97)})},function(t,n,e){var r=e(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,e){var r=e(0),i=e(97),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,e){var r=e(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){var r=e(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,e){var r=e(0),i=e(95);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,e){var r=e(0),i=e(94);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,e){var r=e(0),i=e(98),o=Math.sqrt,u=Math.acosh;r(r.S+r.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,e){var r=e(0),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,e){var r=e(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,e){var r=e(0),i=e(69);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,e){var r=e(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,e){var r=e(0),i=e(70);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,e){var r=e(0);r(r.S,"Math",{fround:e(162)})},function(t,n,e){var r=e(69),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),a=i(2,-126);t.exports=Math.fround||function(t){var n,e,i=Math.abs(t),s=r(t);return i<a?s*(i/a/u+1/o-1/o)*a*u:(e=(n=(1+u/o)*i)-(n-i))>c||e!=e?s*(1/0):s*e}},function(t,n,e){var r=e(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,n){for(var e,r,o=0,u=0,c=arguments.length,a=0;u<c;)a<(e=i(arguments[u++]))?(o=o*(r=a/e)*r+1,a=e):o+=e>0?(r=e/a)*r:e;return a===1/0?1/0:a*Math.sqrt(o)}})},function(t,n,e){var r=e(0),i=Math.imul;r(r.S+r.F*e(1)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,n){var e=+t,r=+n,i=65535&e,o=65535&r;return 0|i*o+((65535&e>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log1p:e(98)})},function(t,n,e){var r=e(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,e){var r=e(0);r(r.S,"Math",{sign:e(69)})},function(t,n,e){var r=e(0),i=e(70),o=Math.exp;r(r.S+r.F*e(1)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,e){var r=e(0),i=e(70),o=Math.exp;r(r.S,"Math",{tanh:function(t){var n=i(t=+t),e=i(-t);return n==1/0?1:e==1/0?-1:(n-e)/(o(t)+o(-t))}})},function(t,n,e){var r=e(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,e){var r=e(0),i=e(32),o=String.fromCharCode,u=String.fromCodePoint;r(r.S+r.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,e=[],r=arguments.length,u=0;r>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");e.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return e.join("")}})},function(t,n,e){var r=e(0),i=e(15),o=e(6);r(r.S,"String",{raw:function(t){for(var n=i(t.raw),e=o(n.length),r=arguments.length,u=[],c=0;e>c;)u.push(String(n[c++])),c<r&&u.push(String(arguments[c]));return u.join("")}})},function(t,n,e){"use strict";e(49)("trim",(function(t){return function(){return t(this,3)}}))},function(t,n,e){"use strict";var r=e(71)(!0);e(72)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})}))},function(t,n,e){"use strict";var r=e(0),i=e(71)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,e){"use strict";var r=e(0),i=e(6),o=e(73),u="".endsWith;r(r.P+r.F*e(75)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),e=arguments.length>1?arguments[1]:void 0,r=i(n.length),c=void 0===e?r:Math.min(i(e),r),a=String(t);return u?u.call(n,a,c):n.slice(c-a.length,c)===a}})},function(t,n,e){"use strict";var r=e(0),i=e(73);r(r.P+r.F*e(75)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(0);r(r.P,"String",{repeat:e(68)})},function(t,n,e){"use strict";var r=e(0),i=e(6),o=e(73),u="".startsWith;r(r.P+r.F*e(75)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),e=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return u?u.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){"use strict";e(12)("anchor",(function(t){return function(n){return t(this,"a","name",n)}}))},function(t,n,e){"use strict";e(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,n,e){"use strict";e(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,n,e){"use strict";e(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,n,e){"use strict";e(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,n,e){"use strict";e(12)("fontcolor",(function(t){return function(n){return t(this,"font","color",n)}}))},function(t,n,e){"use strict";e(12)("fontsize",(function(t){return function(n){return t(this,"font","size",n)}}))},function(t,n,e){"use strict";e(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,n,e){"use strict";e(12)("link",(function(t){return function(n){return t(this,"a","href",n)}}))},function(t,n,e){"use strict";e(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,n,e){"use strict";e(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,n,e){"use strict";e(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,e){"use strict";e(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,n,e){var r=e(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,e){"use strict";var r=e(0),i=e(11),o=e(26);r(r.P+r.F*e(1)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var n=i(this),e=o(n);return"number"!=typeof e||isFinite(e)?n.toISOString():null}})},function(t,n,e){var r=e(0),i=e(197);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,e){"use strict";var r=e(1),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),e=t.getUTCMilliseconds(),r=n<0?"-":n>9999?"+":"";return r+("00000"+Math.abs(n)).slice(r?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(e>99?e:"0"+u(e))+"Z"}:o},function(t,n,e){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&e(10)(r,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,n,e){var r=e(5)("toPrimitive"),i=Date.prototype;r in i||e(14)(i,r,e(200))},function(t,n,e){"use strict";var r=e(2),i=e(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,n,e){var r=e(0);r(r.S,"Array",{isArray:e(63)})},function(t,n,e){"use strict";var r=e(21),i=e(0),o=e(11),u=e(100),c=e(76),a=e(6),s=e(77),f=e(78);i(i.S+i.F*!e(50)((function(t){Array.from(t)})),"Array",{from:function(t){var n,e,i,l,h=o(t),p="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,g=void 0!==d,y=0,b=f(h);if(g&&(d=r(d,v>2?arguments[2]:void 0,2)),null==b||p==Array&&c(b))for(e=new p(n=a(h.length));n>y;y++)s(e,y,g?d(h[y],y):h[y]);else for(l=b.call(h),e=new p;!(i=l.next()).done;y++)s(e,y,g?u(l,d,[i.value,y],!0):i.value);return e.length=y,e}})},function(t,n,e){"use strict";var r=e(0),i=e(77);r(r.S+r.F*e(1)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);n>t;)i(e,t,arguments[t++]);return e.length=n,e}})},function(t,n,e){"use strict";var r=e(0),i=e(15),o=[].join;r(r.P+r.F*(e(43)!=Object||!e(16)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,e){"use strict";var r=e(0),i=e(64),o=e(23),u=e(32),c=e(6),a=[].slice;r(r.P+r.F*e(1)((function(){i&&a.call(i)})),"Array",{slice:function(t,n){var e=c(this.length),r=o(this);if(n=void 0===n?e:n,"Array"==r)return a.call(this,t,n);for(var i=u(t,e),s=u(n,e),f=c(s-i),l=new Array(f),h=0;h<f;h++)l[h]="String"==r?this.charAt(i+h):this[i+h];return l}})},function(t,n,e){"use strict";var r=e(0),i=e(22),o=e(11),u=e(1),c=[].sort,a=[1,2,3];r(r.P+r.F*(u((function(){a.sort(void 0)}))||!u((function(){a.sort(null)}))||!e(16)(c)),"Array",{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},function(t,n,e){"use strict";var r=e(0),i=e(20)(0),o=e(16)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(209);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(4),i=e(63),o=e(5)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){"use strict";var r=e(0),i=e(20)(1);r(r.P+r.F*!e(16)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),i=e(20)(2);r(r.P+r.F*!e(16)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),i=e(20)(3);r(r.P+r.F*!e(16)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),i=e(20)(4);r(r.P+r.F*!e(16)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),i=e(101);r(r.P+r.F*!e(16)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,e){"use strict";var r=e(0),i=e(101);r(r.P+r.F*!e(16)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,e){"use strict";var r=e(0),i=e(47)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!e(16)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),i=e(15),o=e(17),u=e(6),c=[].lastIndexOf,a=!!c&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(a||!e(16)(c)),"Array",{lastIndexOf:function(t){if(a)return c.apply(this,arguments)||0;var n=i(this),e=u(n.length),r=e-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=e+r);r>=0;r--)if(r in n&&n[r]===t)return r||0;return-1}})},function(t,n,e){var r=e(0);r(r.P,"Array",{copyWithin:e(102)}),e(38)("copyWithin")},function(t,n,e){var r=e(0);r(r.P,"Array",{fill:e(79)}),e(38)("fill")},function(t,n,e){"use strict";var r=e(0),i=e(20)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(38)("find")},function(t,n,e){"use strict";var r=e(0),i=e(20)(6),o="findIndex",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),r(r.P+r.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(38)(o)},function(t,n,e){e(39)("Array")},function(t,n,e){var r=e(3),i=e(67),o=e(7).f,u=e(34).f,c=e(74),a=e(51),s=r.RegExp,f=s,l=s.prototype,h=/a/g,p=/a/g,v=new s(h)!==h;if(e(8)&&(!v||e(1)((function(){return p[e(5)("match")]=!1,s(h)!=h||s(p)==p||"/a/i"!=s(h,"i")})))){s=function(t,n){var e=this instanceof s,r=c(t),o=void 0===n;return!e&&r&&t.constructor===s&&o?t:i(v?new f(r&&!o?t.source:t,n):f((r=t instanceof s)?t.source:t,r&&o?a.call(t):n),e?this:l,s)};for(var d=function(t){t in s||o(s,t,{configurable:!0,get:function(){return f[t]},set:function(n){f[t]=n}})},g=u(f),y=0;g.length>y;)d(g[y++]);l.constructor=s,s.prototype=l,e(10)(r,"RegExp",s)}e(39)("RegExp")},function(t,n,e){"use strict";e(105);var r=e(2),i=e(51),o=e(8),u=/./.toString,c=function(t){e(10)(RegExp.prototype,"toString",t,!0)};e(1)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?c((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=u.name&&c((function(){return u.call(this)}))},function(t,n,e){"use strict";var r=e(2),i=e(6),o=e(82),u=e(52);e(53)("match",1,(function(t,n,e,c){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=c(e,t,this);if(n.done)return n.value;var a=r(t),s=String(this);if(!a.global)return u(a,s);var f=a.unicode;a.lastIndex=0;for(var l,h=[],p=0;null!==(l=u(a,s));){var v=String(l[0]);h[p]=v,""===v&&(a.lastIndex=o(s,i(a.lastIndex),f)),p++}return 0===p?null:h}]}))},function(t,n,e){"use strict";var r=e(2),i=e(11),o=e(6),u=e(17),c=e(82),a=e(52),s=Math.max,f=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;e(53)("replace",2,(function(t,n,e,v){return[function(r,i){var o=t(this),u=null==r?void 0:r[n];return void 0!==u?u.call(r,o,i):e.call(String(o),r,i)},function(t,n){var i=v(e,t,this,n);if(i.done)return i.value;var l=r(t),h=String(this),p="function"==typeof n;p||(n=String(n));var g=l.global;if(g){var y=l.unicode;l.lastIndex=0}for(var b=[];;){var m=a(l,h);if(null===m)break;if(b.push(m),!g)break;""===String(m[0])&&(l.lastIndex=c(h,o(l.lastIndex),y))}for(var x,w="",_=0,S=0;S<b.length;S++){m=b[S];for(var E=String(m[0]),A=s(f(u(m.index),h.length),0),O=[],k=1;k<m.length;k++)O.push(void 0===(x=m[k])?x:String(x));var M=m.groups;if(p){var F=[E].concat(O,A,h);void 0!==M&&F.push(M);var P=String(n.apply(void 0,F))}else P=d(E,h,A,O,M,n);A>=_&&(w+=h.slice(_,A)+P,_=A+E.length)}return w+h.slice(_)}];function d(t,n,r,o,u,c){var a=r+t.length,s=o.length,f=p;return void 0!==u&&(u=i(u),f=h),e.call(c,f,(function(e,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(a);case"<":c=u[i.slice(1,-1)];break;default:var f=+i;if(0===f)return i;if(f>s){var h=l(f/10);return 0===h?i:h<=s?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):i}c=o[f-1]}return void 0===c?"":c}))}}))},function(t,n,e){"use strict";var r=e(2),i=e(91),o=e(52);e(53)("search",1,(function(t,n,e,u){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=u(e,t,this);if(n.done)return n.value;var c=r(t),a=String(this),s=c.lastIndex;i(s,0)||(c.lastIndex=0);var f=o(c,a);return i(c.lastIndex,s)||(c.lastIndex=s),null===f?-1:f.index}]}))},function(t,n,e){"use strict";var r=e(74),i=e(2),o=e(46),u=e(82),c=e(6),a=e(52),s=e(81),f=Math.min,l=[].push,h="length",p=!!function(){try{return new RegExp("x","y")}catch(t){}}();e(53)("split",2,(function(t,n,e,v){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(i,t,n);for(var o,u,c,a=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,v=void 0===n?4294967295:n>>>0,d=new RegExp(t.source,f+"g");(o=s.call(d,i))&&!((u=d.lastIndex)>p&&(a.push(i.slice(p,o.index)),o[h]>1&&o.index<i[h]&&l.apply(a,o.slice(1)),c=o[0][h],p=u,a[h]>=v));)d.lastIndex===o.index&&d.lastIndex++;return p===i[h]?!c&&d.test("")||a.push(""):a.push(i.slice(p)),a[h]>v?a.slice(0,v):a}:"0".split(void 0,0)[h]?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,r){var i=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,i,r):d.call(String(i),e,r)},function(t,n){var r=v(d,t,this,n,d!==e);if(r.done)return r.value;var s=i(t),l=String(this),h=o(s,RegExp),g=s.unicode,y=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(p?"y":"g"),b=new h(p?s:"^(?:"+s.source+")",y),m=void 0===n?4294967295:n>>>0;if(0===m)return[];if(0===l.length)return null===a(b,l)?[l]:[];for(var x=0,w=0,_=[];w<l.length;){b.lastIndex=p?w:0;var S,E=a(b,p?l:l.slice(w));if(null===E||(S=f(c(b.lastIndex+(p?0:w)),l.length))===x)w=u(l,w,g);else{if(_.push(l.slice(x,w)),_.length===m)return _;for(var A=1;A<=E.length-1;A++)if(_.push(E[A]),_.length===m)return _;w=x=S}}return _.push(l.slice(x)),_}]}))},function(t,n,e){var r=e(3),i=e(83).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,a="process"==e(23)(u);t.exports=function(){var t,n,e,s=function(){var r,i;for(a&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(a)e=function(){u.nextTick(s)};else if(!o||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var f=c.resolve(void 0);e=function(){f.then(s)}}else e=function(){i.call(r,s)};else{var l=!0,h=document.createTextNode("");new o(s).observe(h,{characterData:!0}),e=function(){h.data=l=!l}}return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){"use strict";var r=e(109),i=e(42);t.exports=e(56)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var n=r.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return r.def(i(this,"Map"),0===t?0:t,n)}},r,!0)},function(t,n,e){"use strict";var r=e(109),i=e(42);t.exports=e(56)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,n,e){"use strict";var r,i=e(20)(0),o=e(10),u=e(27),c=e(90),a=e(110),s=e(4),f=e(1),l=e(42),h=u.getWeak,p=Object.isExtensible,v=a.ufstore,d={},g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(s(t)){var n=h(t);return!0===n?v(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(l(this,"WeakMap"),t,n)}},b=t.exports=e(56)("WeakMap",g,y,a,!0,!0);f((function(){return 7!=(new b).set((Object.freeze||Object)(d),7).get(d)}))&&(c((r=a.getConstructor(g,"WeakMap")).prototype,y),u.NEED=!0,i(["delete","has","get","set"],(function(t){var n=b.prototype,e=n[t];o(n,t,(function(n,i){if(s(n)&&!p(n)){this._f||(this._f=new r);var o=this._f[t](n,i);return"set"==t?this:o}return e.call(this,n,i)}))})))},function(t,n,e){"use strict";var r=e(110),i=e(42);e(56)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,n,e){"use strict";var r=e(0),i=e(57),o=e(84),u=e(2),c=e(32),a=e(6),s=e(4),f=e(3).ArrayBuffer,l=e(46),h=o.ArrayBuffer,p=o.DataView,v=i.ABV&&f.isView,d=h.prototype.slice,g=i.VIEW;r(r.G+r.W+r.F*(f!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||s(t)&&g in t}}),r(r.P+r.U+r.F*e(1)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,n){if(void 0!==d&&void 0===n)return d.call(u(this),t);for(var e=u(this).byteLength,r=c(t,e),i=c(void 0===n?e:n,e),o=new(l(this,h))(a(i-r)),s=new p(this),f=new p(o),v=0;r<i;)f.setUint8(v++,s.getUint8(r++));return o}}),e(39)("ArrayBuffer")},function(t,n,e){var r=e(0);r(r.G+r.W+r.F*!e(57).ABV,{DataView:e(84).DataView})},function(t,n,e){e(25)("Int8",1,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(25)("Uint8",1,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(25)("Uint8",1,(function(t){return function(n,e,r){return t(this,n,e,r)}}),!0)},function(t,n,e){e(25)("Int16",2,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(25)("Uint16",2,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(25)("Int32",4,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(25)("Uint32",4,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(25)("Float32",4,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(25)("Float64",8,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){var r=e(0),i=e(22),o=e(2),u=(e(3).Reflect||{}).apply,c=Function.apply;r(r.S+r.F*!e(1)((function(){u((function(){}))})),"Reflect",{apply:function(t,n,e){var r=i(t),a=o(e);return u?u(r,n,a):c.call(r,n,a)}})},function(t,n,e){var r=e(0),i=e(33),o=e(22),u=e(2),c=e(4),a=e(1),s=e(92),f=(e(3).Reflect||{}).construct,l=a((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),h=!a((function(){f((function(){}))}));r(r.S+r.F*(l||h),"Reflect",{construct:function(t,n){o(t),u(n);var e=arguments.length<3?t:o(arguments[2]);if(h&&!l)return f(t,n,e);if(t==e){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var r=[null];return r.push.apply(r,n),new(s.apply(t,r))}var a=e.prototype,p=i(c(a)?a:Object.prototype),v=Function.apply.call(t,p,n);return c(v)?v:p}})},function(t,n,e){var r=e(7),i=e(0),o=e(2),u=e(26);i(i.S+i.F*e(1)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,n,e){o(t),n=u(n,!0),o(e);try{return r.f(t,n,e),!0}catch(t){return!1}}})},function(t,n,e){var r=e(0),i=e(18).f,o=e(2);r(r.S,"Reflect",{deleteProperty:function(t,n){var e=i(o(t),n);return!(e&&!e.configurable)&&delete t[n]}})},function(t,n,e){"use strict";var r=e(0),i=e(2),o=function(t){this._t=i(t),this._i=0;var n,e=this._k=[];for(n in t)e.push(n)};e(99)(o,"Object",(function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,e){var r=e(18),i=e(35),o=e(13),u=e(0),c=e(4),a=e(2);u(u.S,"Reflect",{get:function t(n,e){var u,s,f=arguments.length<3?n:arguments[2];return a(n)===f?n[e]:(u=r.f(n,e))?o(u,"value")?u.value:void 0!==u.get?u.get.call(f):void 0:c(s=i(n))?t(s,e,f):void 0}})},function(t,n,e){var r=e(18),i=e(0),o=e(2);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return r.f(o(t),n)}})},function(t,n,e){var r=e(0),i=e(35),o=e(2);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,e){var r=e(0),i=e(2),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{ownKeys:e(112)})},function(t,n,e){var r=e(0),i=e(2),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,e){var r=e(7),i=e(18),o=e(35),u=e(13),c=e(0),a=e(28),s=e(2),f=e(4);c(c.S,"Reflect",{set:function t(n,e,c){var l,h,p=arguments.length<4?n:arguments[3],v=i.f(s(n),e);if(!v){if(f(h=o(n)))return t(h,e,c,p);v=a(0)}if(u(v,"value")){if(!1===v.writable||!f(p))return!1;if(l=i.f(p,e)){if(l.get||l.set||!1===l.writable)return!1;l.value=c,r.f(p,e,l)}else r.f(p,e,a(0,c));return!0}return void 0!==v.set&&(v.set.call(p,c),!0)}})},function(t,n,e){var r=e(0),i=e(65);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,e){e(261),t.exports=e(9).Array.includes},function(t,n,e){"use strict";var r=e(0),i=e(47)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(38)("includes")},function(t,n,e){e(263),t.exports=e(9).String.padStart},function(t,n,e){"use strict";var r=e(0),i=e(113),o=e(55);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,e){e(265),t.exports=e(9).String.padEnd},function(t,n,e){"use strict";var r=e(0),i=e(113),o=e(55);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,e){e(267),t.exports=e(60).f("asyncIterator")},function(t,n,e){e(86)("asyncIterator")},function(t,n,e){e(269),t.exports=e(9).Object.getOwnPropertyDescriptors},function(t,n,e){var r=e(0),i=e(112),o=e(15),u=e(18),c=e(77);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,e,r=o(t),a=u.f,s=i(r),f={},l=0;s.length>l;)void 0!==(e=a(r,n=s[l++]))&&c(f,n,e);return f}})},function(t,n,e){e(271),t.exports=e(9).Object.values},function(t,n,e){var r=e(0),i=e(114)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,n,e){e(273),t.exports=e(9).Object.entries},function(t,n,e){var r=e(0),i=e(114)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,n,e){"use strict";e(106),e(275),t.exports=e(9).Promise.finally},function(t,n,e){"use strict";var r=e(0),i=e(9),o=e(3),u=e(46),c=e(108);r(r.P+r.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),e="function"==typeof t;return this.then(e?function(e){return c(n,t()).then((function(){return e}))}:t,e?function(e){return c(n,t()).then((function(){throw e}))}:t)}})},function(t,n,e){e(277),e(278),e(279),t.exports=e(9)},function(t,n,e){var r=e(3),i=e(0),o=e(55),u=[].slice,c=/MSIE .\./.test(o),a=function(t){return function(n,e){var r=arguments.length>2,i=!!r&&u.call(arguments,2);return t(r?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,e)}};i(i.G+i.B+i.F*c,{setTimeout:a(r.setTimeout),setInterval:a(r.setInterval)})},function(t,n,e){var r=e(0),i=e(83);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,e){for(var r=e(80),i=e(31),o=e(10),u=e(3),c=e(14),a=e(37),s=e(5),f=s("iterator"),l=s("toStringTag"),h=a.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(p),d=0;d<v.length;d++){var g,y=v[d],b=p[y],m=u[y],x=m&&m.prototype;if(x&&(x[f]||c(x,f,h),x[l]||c(x,l,y),a[y]=h,b))for(g in r)x[g]||o(x,g,r[g],!0)}},function(t,n){!function(n){"use strict";var e=Object.prototype,r=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",a="object"==typeof t,s=n.regeneratorRuntime;if(s)a&&(t.exports=s);else{(s=n.regeneratorRuntime=a?t.exports:{}).wrap=d;var f={},l={};l[o]=function(){return this};var h=Object.getPrototypeOf,p=h&&h(h(O([])));p&&p!==e&&r.call(p,o)&&(l=p);var v=m.prototype=y.prototype=Object.create(l);b.prototype=v.constructor=m,m.constructor=b,m[c]=b.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===b||"GeneratorFunction"===(n.displayName||n.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(v),t},s.awrap=function(t){return{__await:t}},x(w.prototype),w.prototype[u]=function(){return this},s.AsyncIterator=w,s.async=function(t,n,e,r){var i=new w(d(t,n,e,r));return s.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(v),v[c]="Generator",v[o]=function(){return this},v.toString=function(){return"[object Generator]"},s.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},s.values=O,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(e,r){return u.type="throw",u.arg=t,n.next=e,r&&(n.method="next",n.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),a=r.call(o,"finallyLoc");if(c&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),f},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),f}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var i=r.arg;E(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:O(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),f}}}function d(t,n,e,r){var i=n&&n.prototype instanceof y?n:y,o=Object.create(i.prototype),u=new A(r||[]);return o._invoke=function(t,n,e){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(e.method=i,e.arg=o;;){var u=e.delegate;if(u){var c=_(u,e);if(c){if(c===f)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var a=g(t,n,e);if("normal"===a.type){if(r=e.done?"completed":"suspendedYield",a.arg===f)continue;return{value:a.arg,done:e.done}}"throw"===a.type&&(r="completed",e.method="throw",e.arg=a.arg)}}}(t,e,u),o}function g(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}function y(){}function b(){}function m(){}function x(t){["next","throw","return"].forEach((function(n){t[n]=function(t){return this._invoke(n,t)}}))}function w(t){var n;this._invoke=function(e,i){function o(){return new Promise((function(n,o){!function n(e,i,o,u){var c=g(t[e],t,i);if("throw"!==c.type){var a=c.arg,s=a.value;return s&&"object"==typeof s&&r.call(s,"__await")?Promise.resolve(s.__await).then((function(t){n("next",t,o,u)}),(function(t){n("throw",t,o,u)})):Promise.resolve(s).then((function(t){a.value=t,o(a)}),(function(t){return n("throw",t,o,u)}))}u(c.arg)}(e,i,n,o)}))}return n=n?n.then(o,o):o()}}function _(t,n){var e=t.iterator[n.method];if(void 0===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,_(t,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=g(e,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;var i=r.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function E(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,i=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(t,n,e){},function(t,n,e){},function(t,n,e){"use strict";e.r(n);e(115),e(281),e(282);function r(t){return(r="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)}function i(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function t(n){if(function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),null==n&&(n={}),n.isFolder)this._folderConstructor(n.folderOptions);else{if(this.name=null!=n&&"string"==typeof n.name?n.name:"",this instanceof t&&("number"!=typeof t[t.instanceCounter]?t[t.instanceCounter]=0:t[t.instanceCounter]++),this.instanceId=t[t.instanceCounter],this.wrapperWidth=null!=n&&n.width?n.width:290,this.stylesheet=document.createElement("style"),this.stylesheet.setAttribute("type","text/css"),this.stylesheet.setAttribute("id","lm-gui-stylesheet"),document.head.append(this.stylesheet),0==this.instanceId&&this._addStyles("".concat("\n.p-gui {\n position: fixed;\n top: 0;\n left: 0;\n transform: translate3d(0,0,0);\n padding: 25px 10px 10px 10px;\n background: rgba(51,51,51,.9);\n display: flex;\n flex-wrap: wrap;\n font-family: Verdana, Arial, sans-serif;\n width: 290px;\n overflow: hidden;\n box-shadow: 0 0 10px black;\n box-sizing: border-box;\n z-index: 99999;\n user-select: none;\n}\n\n.p-gui--collapsed {\n height: 0;\n padding: 21px 10px 0 10px;\n}\n\n.p-gui__header {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 20px;\n background-color: #111111;\n border-bottom: 1px solid #484848;\n cursor: grab;\n color: grey;\n font-size: 10px;\n line-height: 20px;\n padding-left: 8px;\n box-sizing: border-box;\n}\n\n.p-gui__header-close {\n width: 20px;\n height: 20px;\n position: absolute;\n top: 0;\n right: 0;\n cursor: pointer;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUAQMAAAC3R49OAAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAABFJREFUCNdjIAb8//8BjIkAAOrOBd3TR0jRAAAAAElFTkSuQmCC);\n background-size: 50% 50%;\n background-position: center;\n background-repeat: no-repeat; \n}\n\n.p-gui--collapsed .p-gui__header-close {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUAQMAAAC3R49OAAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAABVJREFUCNdjYEhgIIj///8AwsSoBQD43QydY5mb0QAAAABJRU5ErkJggg==);\n}\n\n.p-gui__item {\n width: 80px;\n height: 80px;\n background-size: cover;\n margin: 5px 5px 21px 5px;\n cursor: pointer;\n position: relative;\n}\n\n.p-gui__item-text {\n position: absolute;\n bottom: -15px;\n color: #eee;\n font-size: 11px;\n text-shadow: 0 -1px 0 #111;\n}\n\n.p-gui__button, \n.p-gui__switch,\n.p-gui__list {\n width: 100%;\n margin: 5px;\n padding: 7px;\n background: #1b1b1b;\n font-size: 11px;\n color: white;\n border-bottom: 1px solid #00ff89;\n cursor: pointer;\n position: relative;\n box-sizing: border-box;\n}\n\n.p-gui__list {\n cursor: default;\n}\n\n.p-gui__button:hover,\n.p-gui__switch:hover {\n background: #101010;\n}\n\n.p-gui__switch-checkbox {\n width: 5px;\n height: 5px;\n background-color: #343434;\n position: absolute;\n top: 0;\n right: 8px;\n bottom: 0;\n margin: auto;\n border-radius: 50%;\n pointer-events: none;\n}\n\n.p-gui__switch-checkbox--active {\n background-color: #00ff89;\n box-shadow: 0 0 5px #00ff89;\n}\n\n.p-gui__list-dropdown {\n position: absolute;\n right: 5px;\n top: 0;\n bottom: 0;\n margin: auto;\n height: 18px;\n cursor: pointer;\n}\n\n.p-gui__slider {\n width: 100%;\n margin: 5px 5px 10px 5px;\n padding: 7px;\n background: #1b1b1b;\n font-size: 11px;\n color: white;\n position: relative;\n}\n\n.p-gui__slider-ctrl {\n -webkit-appearance: none;\n padding: 0;\n font: inherit;\n outline: none;\n opacity: .8;\n background: #00a1ff;\n box-sizing: border-box;\n cursor: pointer;\n position: absolute;\n bottom: -5px;\n right: 0;\n height: 5px;\n width: 100%;\n margin: 0;\n}\n\n/* la zone de déplacement */\n.p-gui__slider-ctrl::-webkit-slider-runnable-track {\n height: 12px;\n border: none;\n border-radius: 0;\n background-color: transparent; /* supprimé définie sur l'input */\n}\n\n/* le curseur */\n.p-gui__slider-ctrl::-webkit-slider-thumb {\n -webkit-appearance: none; /* également nécessaire sur le curseur */\n width: 12px;\n height: inherit; /* s'adapte à la hauteur de l'input */\n border: none;\n border-radius: 50%; /* pris en compte sur Webkit et Edge */\n background: white; /* pris en compte sur Webkit only */\n border: 2px solid #00a1ff;\n}\n\n.p-gui__slider-value {\n display: inline-block;\n position: absolute;\n right: 7px;\n}\n\n.p-gui__folder {\n width: 290px;\n position: relative;\n left: -10px;\n background: red;\n}\n\n.p-gui__folder-header {\n font-size: 13px;\n background-color: black;\n}\n")),this.screenCorner=this._parseScreenCorner(n.position),this.xOffset="left"==this.screenCorner.x?0:document.documentElement.clientWidth-this.wrapperWidth,this.instanceId>0)for(var e=document.getElementsByClassName("p-gui"),r=0;r<e.length;r++)this.screenCorner.y==e[r].dataset.cornerY&&("left"==this.screenCorner.x&&"left"==e[r].dataset.cornerX?this.xOffset+=e[r].offsetWidth:"right"==this.screenCorner.x&&"right"==e[r].dataset.cornerX&&(this.xOffset-=e[r].offsetWidth));this.yOffset=0,this.position={prevX:this.xOffset,prevY:this.yOffset,x:this.xOffset,y:this.yOffset};var i="top"==this.screenCorner.y?"":"top: auto; bottom: 0;";this._addStyles("#p-gui-".concat(this.instanceId," {\n width: ").concat(this.wrapperWidth,"px;\n transform: translate3d(").concat(this.xOffset,"px,").concat(this.yOffset,"px,0);\n ").concat(i,"\n }")),0!=n.autoRepositioning&&window.addEventListener("resize",this._handleResize.bind(this)),this._addWrapper(),this.wrapper.setAttribute("data-corner-x",this.screenCorner.x),this.wrapper.setAttribute("data-corner-y",this.screenCorner.y),this.hasBeenDragged=!1,1==n.draggable&&this._makeDraggable(),this.closed=!1,null!=n&&n.closed&&this.toggleClose(),this.folders=[]}}var n,e,o;return n=t,(e=[{key:"_folderConstructor",value:function(t){this.wrapper=t.wrapper}},{key:"_parseScreenCorner",value:function(t){var n={x:"left",y:"top"};return null==t||("string"!=typeof t&&console.error("[perfect-gui] The position option must be a string."),t.includes("right")&&(n.x="right"),t.includes("bottom")&&(n.y="bottom")),n}},{key:"_handleResize",value:function(){if(!this.hasBeenDragged){if(this.xOffset="left"==this.screenCorner.x?0:document.documentElement.clientWidth-this.wrapperWidth,this.instanceId>0)for(var t=document.querySelectorAll(".p-gui:not(#".concat(this.wrapper.id,"):not([data-dragged])")),n=0;n<t.length&&!(parseInt(t[n].id.replace("p-gui-",""))>this.instanceId);n++)this.screenCorner.y==t[n].dataset.cornerY&&("left"==this.screenCorner.x&&"left"==t[n].dataset.cornerX?this.xOffset+=t[n].offsetWidth:"right"==this.screenCorner.x&&"right"==t[n].dataset.cornerX&&(this.xOffset-=t[n].offsetWidth));this.position={prevX:this.xOffset,prevY:this.yOffset,x:this.xOffset,y:this.yOffset},this.wrapper.style.transform="translate3d(".concat(this.position.x,"px, ").concat(this.position.y,"px, 0)")}}},{key:"_createElement",value:function(t){t.el=t.el?t.el:"div";var n=document.createElement(t.el);if(t.id&&(n.id=t.id),t.class&&(n.className=t.class),t.inline&&(n.style=t.inline),t.href&&(n.href=t.href),t.onclick&&(n.onclick=t.onclick),t.onchange&&(n.onchange=t.onchange),t.textContent&&(n.textContent=t.textContent),t.customAttributes)for(var e in t.customAttributes)n.setAttribute(e,t.customAttributes[e]);return t.parent=t.parent?t.parent:this.wrapper,t.parent.append(n),n}},{key:"_addStyles",value:function(t){this.stylesheet.innerHTML+=t}},{key:"_addWrapper",value:function(){this.wrapper=this._createElement({parent:document.body,id:"p-gui-"+this.instanceId,class:"p-gui"}),this.header=this._createElement({parent:this.wrapper,class:"p-gui__header",textContent:this.name}),this._createElement({parent:this.header,class:"p-gui__header-close",onclick:this.toggleClose.bind(this)})}},{key:"addButton",value:function(t,n){var e={text:t,callback:n};this._checkMandatoryParams({text:"string",callback:"function"},e),this._createElement({class:"p-gui__button",onclick:e.callback,textContent:e.text})}},{key:"addImage",value:function(t,n,e){var r={text:t,path:n,callback:e};this._checkMandatoryParams({text:"string",path:"string",callback:"function"},r);var i=this._createElement({class:"p-gui__item",onclick:r.callback,inline:"background-image: url(".concat(r.path,")")});this._createElement({parent:i,class:"p-gui__item-text",textContent:r.text})}},{key:"addSlider",value:function(t,n,e){this._checkMandatoryParams({min:"number",max:"number",value:"number",step:"number"},n);var r=this._createElement({class:"p-gui__slider",textContent:t}),i=this._createElement({parent:r,el:"input",class:"p-gui__slider-ctrl",customAttributes:{type:"range",min:n.min,max:n.max,step:n.step,value:n.value}}),o=this._createElement({parent:r,class:"p-gui__slider-value",textContent:n.value});i.addEventListener("input",(function(){o.textContent=i.value,"function"==typeof e&&e(i.value)}))}},{key:"addSwitch",value:function(t,n,e){var r={text:t,state:n,callback:e};this._checkMandatoryParams({text:"string",state:"boolean",callback:"function"},r);var i=this._createElement({class:"p-gui__switch",onclick:function(t){var n=t.target.childNodes[1],e=!0;n.classList.contains("p-gui__switch-checkbox--active")&&(e=!1),n.classList.toggle("p-gui__switch-checkbox--active"),r.callback(e)},textContent:r.text}),o=n?" p-gui__switch-checkbox--active":"";this._createElement({parent:i,class:"p-gui__switch-checkbox"+o})}},{key:"addList",value:function(t,n,e){var r=this,i={text:t,list:n,callback:e};this._checkMandatoryParams({text:"string",list:"object",callback:"function"},i);var o=this._createElement({class:"p-gui__list",textContent:i.text}),u=this._createElement({parent:o,el:"select",class:"p-gui__list-dropdown",onchange:function(t){i.callback(t.target.value)}});n.forEach((function(t){r._createElement({parent:u,el:"option",customAttributes:{value:t},textContent:t})}))}},{key:"addFolder",value:function(n){this._checkMandatoryParams({name:"string"},n);var e=this._createElement({class:"p-gui__folder"}),r=(this._createElement({textContent:n.name,class:"p-gui__folder-header",parent:e}),new t({isFolder:!0,folderOptions:{wrapper:e}}));return this.folders.push(r),r}},{key:"_checkMandatoryParams",value:function(t,n){var e=[];for(var i in t)r(n[i])==t[i]||e.push(i);e.length>0&&e.forEach((function(t){throw Error("[GUI] Missing '".concat(t,"' parameter"))}))}},{key:"_makeDraggable",value:function(){var t=this;function n(n){n.preventDefault(),t.hasBeenDragged||(t.hasBeenDragged=!0,t.wrapper.setAttribute("data-dragged","true")),t.position.x=t.position.initX+n.clientX-t.position.prevX,t.position.y=t.position.initY+n.clientY-t.position.prevY,t.wrapper.style.transform="translate3d("+t.position.x+"px,"+t.position.y+"px,0)"}this.header.addEventListener("mousedown",(function(e){e.preventDefault(),t.position.initX=t.position.x,t.position.initY=t.position.y,t.position.prevX=e.clientX,t.position.prevY=e.clientY,document.addEventListener("mousemove",n)})),this.header.addEventListener("mouseup",(function(t){document.removeEventListener("mousemove",n)}))}},{key:"toggleClose",value:function(){this.closed=!this.closed,this.wrapper.classList.toggle("p-gui--collapsed")}}])&&i(n.prototype,e),o&&i(n,o),t}(),u=document.getElementById("element"),c=new o({name:"This is a basic panel",draggable:!0});function a(){for(var t="0123456789ABCDEF".split(""),n="#",e=0;e<6;e++)n+=t[Math.round(15*Math.random())];return n}c.addImage("Background 1","https://images.unsplash.com/photo-1485254767195-60704c46702e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1502&q=80",(function(){document.body.style.backgroundImage="url(https://images.unsplash.com/photo-1485254767195-60704c46702e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1502&q=80)",document.body.style.backgroundColor="none",document.getElementById("note").textContent="Photo by Joel Filipe on Unsplash"})),c.addImage("Background 2","https://images.unsplash.com/photo-1535370976884-f4376736ab06?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=564&q=80",(function(){document.body.style.backgroundImage="url(https://images.unsplash.com/photo-1535370976884-f4376736ab06?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=564&q=80)",document.body.style.backgroundColor="none",document.getElementById("note").textContent="Photo by Richard M. on Unsplash"})),c.addImage("Background 3","https://images.unsplash.com/photo-1524721696987-b9527df9e512?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1490&q=80",(function(){document.body.style.backgroundImage="url(https://images.unsplash.com/photo-1524721696987-b9527df9e512?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1490&q=80)",document.body.style.backgroundColor="none",document.getElementById("note").textContent="Photo by Cassi Josh on Unsplash"})),c.addFolder({name:"folder xb"}).addButton("Random element color",(function(){u.style.backgroundColor=a()})),c.addButton("Random element color",(function(){u.style.backgroundColor=a()})),c.addSlider("Scale",{min:.1,max:2,value:1,step:.01},(function(t){u.style.transform="scale(".concat(t,")")})),c.addSlider("3-step border-radius",{min:0,max:50,value:0,step:25},(function(t){u.style.borderRadius="".concat(t,"%")})),c.addSwitch("Opacity switch",!0,(function(t){u.style.opacity=t?1:.5})),c.addList("Select a color",["red","pink","yellow","blue"],(function(t){u.style.backgroundColor=t}));var s=new o({name:"This is one is closed",width:175,closed:!0,draggable:!0});s.addButton("Toggle the first GUI",(function(){c.toggleClose()})),s.addButton("You can put a lot of text in a button if you want to.",(function(){u.style.backgroundColor=a()})),new o({name:"You can drag panels around...",draggable:!0}).addButton("...with the 'draggable' option.",(function(){u.style.backgroundColor=a()})),new o({name:"This panel is not draggable.",position:"top right",draggable:!1}).addButton("It's up to you.",(function(){u.style.backgroundColor=a()})),new o({name:"You can place the panels wherever you want",position:"right bottom",width:450}).addButton("And you can set their width, with the 'width' option.",(function(){}))}]);
1
+ (()=>{"use strict";class e{constructor(t={}){if(t.container?(this.container="string"==typeof t.container?document.querySelector(t.container):t.container,this.position_type="absolute"):(this.container=document.body,this.position_type="fixed"),t.isFolder)return void this._folderConstructor(t.folderOptions);if(this.name=null!=t&&"string"==typeof t.name?t.name:"",this instanceof e&&("number"!=typeof e[e.instanceCounter]?e[e.instanceCounter]=0:e[e.instanceCounter]++),this.instanceId=e[e.instanceCounter],this.wrapperWidth=null!=t&&t.width?t.width:290,this.stylesheet=document.createElement("style"),this.stylesheet.setAttribute("type","text/css"),this.stylesheet.setAttribute("id","lm-gui-stylesheet"),document.head.append(this.stylesheet),0==this.instanceId&&this._addStyles(`\n.p-gui {\n position: ${this.position_type};\n top: 0;\n left: 0;\n transform: translate3d(0,0,0);\n padding: 20px 0px 4px 0px;\n background: #2e2e2e;\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n font-family: Verdana, Arial, sans-serif;\n width: 290px;\n overflow: hidden;\n box-shadow: 0 0 10px black;\n box-sizing: border-box;\n z-index: 99999;\n user-select: none;\n}\n\n.p-gui--collapsed {\n height: 0;\n padding: 21px 10px 0 10px;\n}\n\n.p-gui__header {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 20px;\n background-color: #111111;\n border-bottom: 1px solid #484848;\n cursor: grab;\n color: grey;\n font-size: 10px;\n line-height: 20px;\n padding-left: 8px;\n box-sizing: border-box;\n}\n\n.p-gui__header-close {\n width: 20px;\n height: 20px;\n position: absolute;\n top: 0;\n right: 0;\n cursor: pointer;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUAQMAAAC3R49OAAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAABFJREFUCNdjIAb8//8BjIkAAOrOBd3TR0jRAAAAAElFTkSuQmCC);\n background-size: 50% 50%;\n background-position: center;\n background-repeat: no-repeat; \n}\n\n.p-gui--collapsed .p-gui__header-close {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUAQMAAAC3R49OAAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAABVJREFUCNdjYEhgIIj///8AwsSoBQD43QydY5mb0QAAAABJRU5ErkJggg==);\n}\n\n.p-gui__image-container {\n width: 100%;\n padding: 0 10px;\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 5px;\n}\n\n.p-gui__image {\n width: 30.33%;\n height: 80px;\n background-size: cover;\n margin: 5px 1.5% 17px 1.5%;\n cursor: pointer;\n position: relative;\n}\n\n.p-gui__image-text {\n position: absolute;\n bottom: -15px;\n color: #eee;\n font-size: 11px;\n text-shadow: 0 -1px 0 #111;\n}\n\n.p-gui__button, \n.p-gui__switch,\n.p-gui__list {\n width: 100%;\n margin: 3px;\n padding: 7px;\n background: #1b1b1b;\n font-size: 11px;\n color: white;\n border-bottom: 1px solid #00ff89;\n cursor: pointer;\n position: relative;\n box-sizing: border-box;\n}\n\n.p-gui__list {\n cursor: default;\n}\n\n.p-gui__button:hover,\n.p-gui__switch:hover {\n background: #101010;\n}\n\n.p-gui__switch-checkbox {\n width: 5px;\n height: 5px;\n background-color: #343434;\n position: absolute;\n top: 0;\n right: 8px;\n bottom: 0;\n margin: auto;\n border-radius: 50%;\n pointer-events: none;\n}\n\n.p-gui__switch-checkbox--active {\n background-color: #00ff89;\n box-shadow: 0 0 5px #00ff89;\n}\n\n.p-gui__list-dropdown {\n position: absolute;\n right: 5px;\n top: 0;\n bottom: 0;\n margin: auto;\n height: 18px;\n cursor: pointer;\n}\n\n.p-gui__slider {\n width: 100%;\n margin: 3px 3px 9px 3px;\n padding: 7px;\n background: #1b1b1b;\n font-size: 11px;\n color: white;\n position: relative;\n}\n\n.p-gui__slider-ctrl {\n -webkit-appearance: none;\n padding: 0;\n font: inherit;\n outline: none;\n opacity: .8;\n background: #00a1ff;\n box-sizing: border-box;\n cursor: pointer;\n position: absolute;\n bottom: -5px;\n right: 0;\n height: 5px;\n width: 100%;\n margin: 0;\n}\n\n/* la zone de déplacement */\n.p-gui__slider-ctrl::-webkit-slider-runnable-track {\n height: 12px;\n border: none;\n border-radius: 0;\n background-color: transparent; /* supprimé définie sur l'input */\n}\n\n/* le curseur */\n.p-gui__slider-ctrl::-webkit-slider-thumb {\n -webkit-appearance: none; /* également nécessaire sur le curseur */\n width: 12px;\n height: inherit; /* s'adapte à la hauteur de l'input */\n border: none;\n border-radius: 50%; /* pris en compte sur Webkit et Edge */\n background: white; /* pris en compte sur Webkit only */\n border: 2px solid #00a1ff;\n}\n\n.p-gui__slider-value {\n display: inline-block;\n position: absolute;\n right: 7px;\n}\n\n.p-gui__folder {\n width: 100%;\n position: relative;\n background: #434343;\n overflow: hidden;\n margin-bottom: 3px;\n padding-bottom: 1px;\n display: flex;\n flex-wrap: wrap;\n border-left: 2px solid grey;\n margin-top: 5px;\n}\n\n.p-gui__folder--first {\n margin-top: 0;\n}\n\n.p-gui__folder--closed {\n height: 22px;\n}\n\n.p-gui__folder-header {\n padding: 5px;\n font-size: 11px;\n background-color: #222222;\n color: white;\n cursor: pointer;\n width: 100%;\n}\n\n.p-gui__folder-header:hover {\n background-color: #111111;\n}\n\n.p-gui__folder-arrow {\n width: 8px;\n height: 8px;\n display: inline-block;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAHlBMVEUAAAD///////////////////////////////////8kfJuVAAAACXRSTlMA9Z1fCdMo1yxEJnA0AAAAK0lEQVQI12PABlRgjKkJUMZMYRhjpgqMAZSEMICSaIzpDWiKhdENhEhgAgATSg5jyWnYewAAAABJRU5ErkJggg==);\n background-size: contain;\n margin-right: 5px;\n transform: rotate(90deg)\n}\n\n.p-gui__folder--closed .p-gui__folder-arrow {\n transform: rotate(0deg);\n}\n\n.p-gui__folder .p-gui__button, \n.p-gui__folder .p-gui__switch,\n.p-gui__folder .p-gui__slider,\n.p-gui__folder .p-gui__list {\n margin-left: 6px;\n}\n`),this.screenCorner=this._parseScreenCorner(t.position),this.xOffset="left"==this.screenCorner.x?0:this.container.clientWidth-this.wrapperWidth,this.instanceId>0){let e=this.container.querySelectorAll(".p-gui");for(let t=0;t<e.length;t++)this.screenCorner.y==e[t].dataset.cornerY&&("left"==this.screenCorner.x&&"left"==e[t].dataset.cornerX?this.xOffset+=e[t].offsetWidth:"right"==this.screenCorner.x&&"right"==e[t].dataset.cornerX&&(this.xOffset-=e[t].offsetWidth))}this.yOffset=0,this.position={prevX:this.xOffset,prevY:this.yOffset,x:this.xOffset,y:this.yOffset};let n="top"==this.screenCorner.y?"":"top: auto; bottom: 0;";this._addStyles(`#p-gui-${this.instanceId} {\n width: ${this.wrapperWidth}px;\n transform: translate3d(${this.xOffset}px,${this.yOffset}px,0);\n ${n}\n }`),0!=t.autoRepositioning&&window.addEventListener("resize",this._handleResize.bind(this)),this._addWrapper(),this.wrapper.setAttribute("data-corner-x",this.screenCorner.x),this.wrapper.setAttribute("data-corner-y",this.screenCorner.y),this.hasBeenDragged=!1,1==t.draggable&&this._makeDraggable(),this.closed=!1,t.closed&&this.toggleClose(),this.folders=[]}_folderConstructor(e){this.wrapper=e.wrapper}_parseScreenCorner(e){let t={x:"left",y:"top"};return null==e||("string"!=typeof e&&console.error("[perfect-gui] The position option must be a string."),e.includes("right")&&(t.x="right"),e.includes("bottom")&&(t.y="bottom")),t}_handleResize(){if(!this.hasBeenDragged){if(this.xOffset="left"==this.screenCorner.x?0:this.container.clientWidth-this.wrapperWidth,this.instanceId>0){let e=this.container.querySelectorAll(`.p-gui:not(#${this.wrapper.id}):not([data-dragged])`);for(let t=0;t<e.length&&!(parseInt(e[t].id.replace("p-gui-",""))>this.instanceId);t++)this.screenCorner.y==e[t].dataset.cornerY&&("left"==this.screenCorner.x&&"left"==e[t].dataset.cornerX?this.xOffset+=e[t].offsetWidth:"right"==this.screenCorner.x&&"right"==e[t].dataset.cornerX&&(this.xOffset-=e[t].offsetWidth))}this.position={prevX:this.xOffset,prevY:this.yOffset,x:this.xOffset,y:this.yOffset},this.wrapper.style.transform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}}_createElement(e){e.el=e.el?e.el:"div";var t=document.createElement(e.el);if(e.id&&(t.id=e.id),e.class&&(t.className=e.class),e.inline&&(t.style=e.inline),e.href&&(t.href=e.href),e.onclick&&(t.onclick=e.onclick),e.onchange&&(t.onchange=e.onchange),e.textContent&&(t.textContent=e.textContent),e.innerHTML&&(t.innerHTML=e.innerHTML),e.customAttributes)for(var n in e.customAttributes)t.setAttribute(n,e.customAttributes[n]);return e.parent=e.parent?e.parent:this.wrapper,e.parent.append(t),t}_addStyles(e){this.stylesheet.innerHTML+=e}_addWrapper(){this.wrapper=this._createElement({parent:this.container,id:"p-gui-"+this.instanceId,class:"p-gui"}),this.header=this._createElement({parent:this.wrapper,class:"p-gui__header",textContent:this.name}),this._createElement({parent:this.header,class:"p-gui__header-close",onclick:this.toggleClose.bind(this)})}addButton(e,t){let n={text:e,callback:t};this._checkMandatoryParams({text:"string",callback:"function"},n),this.imageContainer=null,this._createElement({class:"p-gui__button",onclick:n.callback,textContent:n.text})}addImage(e,t,n){let i={text:e,path:t,callback:n};this._checkMandatoryParams({text:"string",path:"string",callback:"function"},i),this.imageContainer||(this.imageContainer=this._createElement({class:"p-gui__image-container"}));var o=this._createElement({class:"p-gui__image",onclick:()=>i.callback(i.path),inline:`background-image: url(${i.path})`,parent:this.imageContainer});this._createElement({parent:o,class:"p-gui__image-text",textContent:i.text})}addSlider(e,t,n){this._checkMandatoryParams({min:"number",max:"number",value:"number",step:"number"},t),this.imageContainer=null;var i=this._createElement({class:"p-gui__slider",textContent:e}),o=this._createElement({parent:i,el:"input",class:"p-gui__slider-ctrl",customAttributes:{type:"range",min:t.min,max:t.max,step:t.step,value:t.value}}),r=this._createElement({parent:i,class:"p-gui__slider-value",textContent:t.value});o.addEventListener("input",(function(){r.textContent=o.value,"function"==typeof n&&n(o.value)}))}addSwitch(e,t,n){let i={text:e,state:t,callback:n};this._checkMandatoryParams({text:"string",state:"boolean",callback:"function"},i),this.imageContainer=null;let o=this._createElement({class:"p-gui__switch",onclick:e=>{let t=e.target.childNodes[1],n=!0;t.classList.contains("p-gui__switch-checkbox--active")&&(n=!1),t.classList.toggle("p-gui__switch-checkbox--active"),i.callback(n)},textContent:i.text}),r=t?" p-gui__switch-checkbox--active":"";this._createElement({parent:o,class:"p-gui__switch-checkbox"+r})}addList(e,t,n){let i={text:e,list:t,callback:n};this._checkMandatoryParams({text:"string",list:"object",callback:"function"},i),this.imageContainer=null;let o=this._createElement({class:"p-gui__list",textContent:i.text}),r=this._createElement({parent:o,el:"select",class:"p-gui__list-dropdown",onchange:e=>{i.callback(e.target.value)}});t.forEach((e=>{this._createElement({parent:r,el:"option",customAttributes:{value:e},textContent:e})}))}addFolder(t,n={}){let i="boolean"==typeof n.closed&&n.closed,o={name:t,closed:i};this._checkMandatoryParams({name:"string",closed:"boolean"},o),this.imageContainer=null;let r="p-gui__folder";0==this.folders.length&&(r+=" p-gui__folder--first"),i&&(r+=" p-gui__folder--closed");let a=this._createElement({class:r}),s=(this._createElement({innerHTML:`<span class="p-gui__folder-arrow"></span>${o.name}`,class:"p-gui__folder-header",onclick:function(){this.parentNode.classList.toggle("p-gui__folder--closed")},parent:a}),new e({isFolder:!0,folderOptions:{wrapper:a}}));return this.folders.push(s),s}_checkMandatoryParams(e,t){var n=[];for(var i in e)typeof t[i]==e[i]||n.push(i);n.length>0&&n.forEach((e=>{throw Error(`[GUI] Missing '${e}' parameter`)}))}_makeDraggable(){var e=this;function t(t){t.preventDefault(),e.hasBeenDragged||(e.hasBeenDragged=!0,e.wrapper.setAttribute("data-dragged","true")),e.position.x=e.position.initX+t.clientX-e.position.prevX,e.position.y=e.position.initY+t.clientY-e.position.prevY,e.wrapper.style.transform="translate3d("+e.position.x+"px,"+e.position.y+"px,0)"}this.header.addEventListener("mousedown",(function(n){n.preventDefault(),e.position.initX=e.position.x,e.position.initY=e.position.y,e.position.prevX=n.clientX,e.position.prevY=n.clientY,document.addEventListener("mousemove",t)})),this.header.addEventListener("mouseup",(function(e){document.removeEventListener("mousemove",t)}))}toggleClose(){this.closed=!this.closed,this.wrapper.classList.toggle("p-gui--collapsed")}}function t(){for(var e="0123456789ABCDEF".split(""),t="#",n=0;n<6;n++)t+=e[Math.round(15*Math.random())];return t}!function(){const n=document.querySelector("#container-1 .element"),i=new e({name:"Basics",container:"#container-1"});i.addButton("Button",(()=>{n.style.backgroundColor=t(),n.style.backgroundImage="none"})),i.addSlider("Slider",{min:0,max:2,value:1,step:.01},(e=>n.style.transform=`scale(${e})`)),i.addSwitch("Switch",!0,(e=>{e?n.classList.remove("round"):n.classList.add("round")})),i.addList("List",["red","pink","yellow","blue"],(e=>{n.style.backgroundColor=e,n.style.backgroundImage="none"})),i.addImage("Image 1","https://images.unsplash.com/photo-1485254767195-60704c46702e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=512&q=80",(e=>{n.style.backgroundImage=`url(${e})`,document.querySelector("#container-1 .note").textContent="Photo by Joel Filipe on Unsplash"})),i.addImage("Image 2","https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=512&q=80",(e=>{n.style.backgroundImage=`url(${e})`,document.querySelector("#container-1 .note").textContent="Photo by Milad Fakurian on Unsplash"}))}(),function(){const n=document.querySelector("#container-2 .element");new e({name:"GUI 1",width:200,container:"#container-2"}).addButton("By the way, buttons can handle multiple lines of text.",(()=>{n.style.backgroundColor=t()})),new e({name:"GUI 2",width:200,container:"#container-2"}).addButton("Button",(()=>n.style.backgroundColor=t())),new e({name:"GUI 3",position:"top right",container:"#container-2"}).addButton("Button",(()=>n.style.backgroundColor=t())),new e({name:"GUI 4",position:"right bottom",container:"#container-2"}).addButton("Button",(()=>n.style.backgroundColor=t()))}(),function(){const n=document.querySelector("#container-3 .element"),i=new e({name:"Folders",container:"#container-3"});i.addFolder("Folder 1 (open)").addButton("Random color",(()=>{n.style.backgroundColor=t()})),i.addFolder("Folder 2 (closed)",{closed:!0}).addButton("Random color",(()=>{n.style.backgroundColor=t()}))}(),function(){const t=new e({container:"#container-4",name:"GUI 1 (drag me!)",width:500,draggable:!0});t.addButton("Custom width using the `width` option",(()=>{}));const n=new e({container:"#container-4",name:"GUI 2 (drag me!)",close:!0,draggable:!0,position:"bottom left"});n.addButton("gui_1.toggleClose();",(()=>{t.toggleClose()})),new e({container:"#container-4",name:"GUI 3 (closed)",closed:!0}).addButton("gui_2.toggleClose();",(()=>{n.toggleClose()}))}()})();