aldehyde 0.2.255 → 0.2.258
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/dist/bundle.04a76d4f726f7257b62e.js +2 -0
- package/dist/bundle.04a76d4f726f7257b62e.js.LICENSE.txt +5 -0
- package/dist/bundle.04a76d4f726f7257b62e.js.gz +0 -0
- package/dist/bundle.0ba97fb9aed3256959a1.js +75 -0
- package/dist/bundle.0ba97fb9aed3256959a1.js.LICENSE.txt +8 -0
- package/dist/bundle.0ba97fb9aed3256959a1.js.gz +0 -0
- package/dist/bundle.0cdb895a99048cda0139.js +1 -0
- package/dist/bundle.0cdb895a99048cda0139.js.gz +0 -0
- package/dist/bundle.118048608e8ab47050ab.js +1 -0
- package/dist/bundle.118048608e8ab47050ab.js.gz +0 -0
- package/dist/bundle.22564bca4d0f6fbabf69.js +1 -0
- package/dist/bundle.22564bca4d0f6fbabf69.js.gz +0 -0
- package/dist/bundle.27227d2415dfad58bab4.js +1 -0
- package/dist/bundle.27227d2415dfad58bab4.js.gz +0 -0
- package/dist/bundle.334162ac2c2d6bf397cb.js +2 -0
- package/dist/bundle.334162ac2c2d6bf397cb.js.LICENSE.txt +20 -0
- package/dist/bundle.334162ac2c2d6bf397cb.js.gz +0 -0
- package/dist/bundle.3b6c5fe034cbb723c7f3.js +1 -0
- package/dist/bundle.3b6c5fe034cbb723c7f3.js.gz +0 -0
- package/dist/bundle.3f109b3f90f09c23e8d2.js +2 -0
- package/dist/bundle.3f109b3f90f09c23e8d2.js.LICENSE.txt +1 -0
- package/dist/bundle.3f109b3f90f09c23e8d2.js.gz +0 -0
- package/dist/bundle.420a3c4b880bec7c9395.js +2 -0
- package/dist/bundle.420a3c4b880bec7c9395.js.LICENSE.txt +25 -0
- package/dist/bundle.420a3c4b880bec7c9395.js.gz +0 -0
- package/dist/bundle.4b96ffe1f62e4f94c131.js +1 -0
- package/dist/bundle.4b96ffe1f62e4f94c131.js.gz +0 -0
- package/dist/bundle.4c54741832df8c763776.js +1 -0
- package/dist/bundle.4c54741832df8c763776.js.gz +0 -0
- package/dist/bundle.4e74b367562f2fcc557e.js +2 -0
- package/dist/bundle.4e74b367562f2fcc557e.js.LICENSE.txt +1 -0
- package/dist/bundle.4e74b367562f2fcc557e.js.gz +0 -0
- package/dist/bundle.51b107a74d3e9e38daaa.js +2 -0
- package/dist/bundle.51b107a74d3e9e38daaa.js.LICENSE.txt +10 -0
- package/dist/bundle.51b107a74d3e9e38daaa.js.gz +0 -0
- package/dist/bundle.548e656e773307824959.js +1 -0
- package/dist/bundle.548e656e773307824959.js.gz +0 -0
- package/dist/bundle.54b2a31d011f6c769e7c.js +1 -0
- package/dist/bundle.54b2a31d011f6c769e7c.js.gz +0 -0
- package/dist/bundle.593c12023e54a91e8a0b.js +1 -0
- package/dist/bundle.593c12023e54a91e8a0b.js.gz +0 -0
- package/dist/bundle.5ae6eceb7934e46e6d45.js +13 -0
- package/dist/bundle.5ae6eceb7934e46e6d45.js.gz +0 -0
- package/dist/bundle.5d22c4c1586e95424e26.js +1 -0
- package/dist/bundle.5d22c4c1586e95424e26.js.gz +0 -0
- package/dist/bundle.61f9eb72cb7b4666013c.js +2 -0
- package/dist/bundle.61f9eb72cb7b4666013c.js.LICENSE.txt +16 -0
- package/dist/bundle.61f9eb72cb7b4666013c.js.gz +0 -0
- package/dist/bundle.699d5561bf119bdb97fc.js +1 -0
- package/dist/bundle.699d5561bf119bdb97fc.js.gz +0 -0
- package/dist/bundle.6a7337d14083532e943d.js +2 -0
- package/dist/bundle.6a7337d14083532e943d.js.LICENSE.txt +9 -0
- package/dist/bundle.6a7337d14083532e943d.js.gz +0 -0
- package/dist/bundle.79831dc7a84e75f07975.js +2 -0
- package/dist/bundle.79831dc7a84e75f07975.js.LICENSE.txt +14 -0
- package/dist/bundle.79831dc7a84e75f07975.js.gz +0 -0
- package/dist/bundle.7dda8c43f58b4e01000d.js +1 -0
- package/dist/bundle.7dda8c43f58b4e01000d.js.gz +0 -0
- package/dist/bundle.84924d3443cdf0ef3a08.js +2 -0
- package/dist/bundle.84924d3443cdf0ef3a08.js.LICENSE.txt +5 -0
- package/dist/bundle.84924d3443cdf0ef3a08.js.gz +0 -0
- package/dist/bundle.866fb447979af51deaf0.js +2 -0
- package/dist/bundle.866fb447979af51deaf0.js.LICENSE.txt +17 -0
- package/dist/bundle.866fb447979af51deaf0.js.gz +0 -0
- package/dist/bundle.874b3f088098a51fe779.js +1 -0
- package/dist/bundle.874b3f088098a51fe779.js.gz +0 -0
- package/dist/bundle.8f008042855b35daf44f.js +1 -0
- package/dist/bundle.8f008042855b35daf44f.js.gz +0 -0
- package/dist/bundle.8fba396651ab9131e760.js +2 -0
- package/dist/bundle.8fba396651ab9131e760.js.LICENSE.txt +22 -0
- package/dist/bundle.8fba396651ab9131e760.js.gz +0 -0
- package/dist/bundle.a22410e1dd80ca8e1dad.js +1 -0
- package/dist/bundle.a22410e1dd80ca8e1dad.js.gz +0 -0
- package/dist/bundle.a26a56462550fc7dcb76.js +2 -0
- package/dist/bundle.a26a56462550fc7dcb76.js.LICENSE.txt +5 -0
- package/dist/bundle.a26a56462550fc7dcb76.js.gz +0 -0
- package/dist/bundle.b28c0f5f2d452df6637a.js +1 -0
- package/dist/bundle.b28c0f5f2d452df6637a.js.gz +0 -0
- package/dist/bundle.b59913b5eca7fc9cf658.js +2 -0
- package/dist/bundle.b59913b5eca7fc9cf658.js.LICENSE.txt +50 -0
- package/dist/bundle.b59913b5eca7fc9cf658.js.gz +0 -0
- package/dist/bundle.b5d9f43fb90d9c6b39a9.js +2 -0
- package/dist/bundle.b5d9f43fb90d9c6b39a9.js.LICENSE.txt +8 -0
- package/dist/bundle.b5d9f43fb90d9c6b39a9.js.gz +0 -0
- package/dist/bundle.c987651cbacb95e92e9a.js +1 -0
- package/dist/bundle.c987651cbacb95e92e9a.js.gz +0 -0
- package/dist/bundle.d67ab9f0b5662beefec1.js +2 -0
- package/dist/bundle.d67ab9f0b5662beefec1.js.LICENSE.txt +9 -0
- package/dist/bundle.d67ab9f0b5662beefec1.js.gz +0 -0
- package/dist/bundle.df15389f0df80bb5c1f8.js +2 -0
- package/dist/bundle.df15389f0df80bb5c1f8.js.LICENSE.txt +8 -0
- package/dist/bundle.df15389f0df80bb5c1f8.js.gz +0 -0
- package/dist/bundle.e9df92a889fa6911eb3a.js +1 -0
- package/dist/bundle.ebe7ebdb4845f80a5dd4.js +2 -0
- package/dist/bundle.ebe7ebdb4845f80a5dd4.js.LICENSE.txt +7 -0
- package/dist/bundle.ebe7ebdb4845f80a5dd4.js.gz +0 -0
- package/dist/bundle.f4c743816a267bced7bb.js +1 -0
- package/dist/bundle.f4c743816a267bced7bb.js.gz +0 -0
- package/dist/bundle.f6fe12d30504559f5f27.js +2 -0
- package/dist/bundle.f6fe12d30504559f5f27.js.LICENSE.txt +6 -0
- package/dist/bundle.f6fe12d30504559f5f27.js.gz +0 -0
- package/dist/css/chemstruc-graph-3996ceb0836a84cd2d4f.css +12 -0
- package/dist/css/chemstruc-graph-3996ceb0836a84cd2d4f.css.gz +0 -0
- package/dist/css/common-4fdc190a7145b69314ce.css +56 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css +886 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css.gz +0 -0
- package/dist/css/main-d4de6792432b484dddeb.css +1169 -0
- package/dist/css/main-d4de6792432b484dddeb.css.gz +0 -0
- package/dist/images/login-bg-027de94b.png +0 -0
- package/dist/images/welcome-8bf57aea.png +0 -0
- package/dist/index.html +4 -0
- package/lib/detail/view/dtmpl-view.d.ts +1 -0
- package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/dtmpl-view.js +5 -4
- package/lib/detail/view/dtmpl-view.js.map +1 -1
- package/lib/detail/view/field-view-group.d.ts +4 -0
- package/lib/detail/view/field-view-group.d.ts.map +1 -1
- package/lib/detail/view/field-view-group.js +5 -1
- package/lib/detail/view/field-view-group.js.map +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts +12 -5
- package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
- package/lib/detail/view/snapshot-timeline.js +53 -14
- package/lib/detail/view/snapshot-timeline.js.map +1 -1
- package/lib/detail/view/view-compare-panel.d.ts +17 -0
- package/lib/detail/view/view-compare-panel.d.ts.map +1 -0
- package/lib/detail/view/view-compare-panel.js +21 -0
- package/lib/detail/view/view-compare-panel.js.map +1 -0
- package/lib/form/criteria-form.js +1 -1
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/layout/footer/index.js +1 -1
- package/lib/layout/footer/index.js.map +1 -1
- package/lib/layout2/header.d.ts +1 -2
- package/lib/layout2/header.d.ts.map +1 -1
- package/lib/layout2/header.js.map +1 -1
- package/lib/layout2/main.d.ts +1 -2
- package/lib/layout2/main.d.ts.map +1 -1
- package/lib/layout2/page.d.ts.map +1 -1
- package/lib/layout2/page.js +1 -1
- package/lib/layout2/page.js.map +1 -1
- package/lib/module/ltmpl-table.js +2 -1
- package/lib/module/ltmpl-table.js.map +1 -1
- package/lib/table/column/column-builder.d.ts.map +1 -1
- package/lib/table/column/column-builder.js +3 -0
- package/lib/table/column/column-builder.js.map +1 -1
- package/lib/table/index.css +14 -0
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +15 -14
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/resizable-table.d.ts +5 -0
- package/lib/table/resizable-table.d.ts.map +1 -0
- package/lib/table/resizable-table.js +85 -0
- package/lib/table/resizable-table.js.map +1 -0
- package/lib/tmpl/interface.d.ts +1 -1
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/aldehyde/detail/view/dtmpl-view.tsx +5 -4
- package/src/aldehyde/detail/view/field-view-group.tsx +6 -1
- package/src/aldehyde/detail/view/snapshot-timeline.tsx +81 -26
- package/src/aldehyde/detail/view/view-compare-panel.tsx +57 -0
- package/src/aldehyde/form/criteria-form.tsx +1 -1
- package/src/aldehyde/layout/footer/index.js +1 -1
- package/src/aldehyde/layout2/header.tsx +2 -3
- package/src/aldehyde/layout2/main.tsx +1 -1
- package/src/aldehyde/layout2/page.tsx +2 -1
- package/src/aldehyde/module/ltmpl-table.tsx +1 -1
- package/src/aldehyde/table/column/column-builder.tsx +3 -2
- package/src/aldehyde/table/index.css +14 -0
- package/src/aldehyde/table/query-table.tsx +74 -50
- package/src/aldehyde/table/resizable-table.tsx +96 -0
- package/src/aldehyde/tmpl/interface.tsx +2 -2
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-dom.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @license React
|
|
13
|
+
* react.production.min.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* React Router DOM v6.30.0
|
|
23
|
+
*
|
|
24
|
+
* Copyright (c) Remix Software Inc.
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the MIT license found in the
|
|
27
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
28
|
+
*
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* React Router v6.30.0
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Remix Software Inc.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
39
|
+
*
|
|
40
|
+
* @license MIT
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/** @license React v16.13.1
|
|
44
|
+
* react-is.production.min.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see bundle.b5d9f43fb90d9c6b39a9.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[768],{241:function(t,e,r){"use strict";var n=r(41917).A.Symbol;e.A=n},659:function(t,e,r){var n=r(51873),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[u]=r:delete t[u]),i}},1801:function(t,e,r){"use strict";var n=r(90565);e.A=function(t,e){var r=e?(0,n.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},1882:function(t,e,r){var n=r(72552),i=r(23805);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},2383:function(t,e,r){"use strict";r.d(e,{A:function(){return h}});var n=r(241),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,u=n.A?n.A.toStringTag:void 0,a=Object.prototype.toString,c=n.A?n.A.toStringTag:void 0,h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?function(t){var e=o.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[u]=r:delete t[u]),i}(t):function(t){return a.call(t)}(t)}},2505:function(t,e,r){"use strict";r.d(e,{A:function(){return c}});var n=r(25175),i=r(92049),o=r(41200),s=r(25353),u=r(54749),a=Object.prototype.hasOwnProperty,c=function(t,e){var r=(0,i.A)(t),c=!r&&(0,n.A)(t),h=!r&&!c&&(0,o.A)(t),f=!r&&!c&&!h&&(0,u.A)(t),l=r||c||h||f,p=l?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],d=p.length;for(var v in t)!e&&!a.call(t,v)||l&&("length"==v||h&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,s.A)(v,d))||p.push(v);return p}},3650:function(t,e,r){var n=r(74335)(Object.keys,Object);t.exports=n},3656:function(t,e,r){t=r.nmd(t);var n=r(9325),i=r(89935),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,u=s&&s.exports===o?n.Buffer:void 0,a=(u?u.isBuffer:void 0)||i;t.exports=a},4509:function(t,e,r){var n=r(12651);t.exports=function(t){return n(this,t).has(t)}},4664:function(t,e,r){var n=r(79770),i=r(63345),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=u},4901:function(t,e,r){var n=r(72552),i=r(30294),o=r(40346),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[n(t)]}},5254:function(t,e){"use strict";e.A=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5861:function(t,e,r){var n=r(55580),i=r(68223),o=r(32804),s=r(76545),u=r(28303),a=r(72552),c=r(47473),h="[object Map]",f="[object Promise]",l="[object Set]",p="[object WeakMap]",d="[object DataView]",v=c(n),g=c(i),y=c(o),b=c(s),m=c(u),A=a;(n&&A(new n(new ArrayBuffer(1)))!=d||i&&A(new i)!=h||o&&A(o.resolve())!=f||s&&A(new s)!=l||u&&A(new u)!=p)&&(A=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return d;case g:return h;case y:return f;case b:return l;case m:return p}return e}),t.exports=A},9325:function(t,e,r){var n=r(34840),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},9999:function(t,e,r){var n=r(37217),i=r(83729),o=r(16547),s=r(74733),u=r(43838),a=r(93290),c=r(23007),h=r(92271),f=r(48948),l=r(50002),p=r(83349),d=r(5861),v=r(76189),g=r(77199),y=r(35529),b=r(56449),m=r(3656),A=r(87730),w=r(23805),S=r(38440),x=r(95950),T=r(37241),j="[object Arguments]",E="[object Function]",_="[object Object]",O={};O[j]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[_]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[E]=O["[object WeakMap]"]=!1,t.exports=function t(e,r,D,R,B,I){var V,N=1&r,P=2&r,M=4&r;if(D&&(V=B?D(e,R,B,I):D(e)),void 0!==V)return V;if(!w(e))return e;var C=b(e);if(C){if(V=v(e),!N)return c(e,V)}else{var L=d(e),q=L==E||"[object GeneratorFunction]"==L;if(m(e))return a(e,N);if(L==_||L==j||q&&!B){if(V=P||q?{}:y(e),!N)return P?f(e,u(V,e)):h(e,s(V,e))}else{if(!O[L])return B?e:{};V=g(e,L,N)}}I||(I=new n);var k=I.get(e);if(k)return k;I.set(e,V),S(e)?e.forEach((function(n){V.add(t(n,r,D,n,e,I))})):A(e)&&e.forEach((function(n,i){V.set(i,t(n,r,D,i,e,I))}));var U=C?void 0:(M?P?p:l:P?T:x)(e);return i(U||e,(function(n,i){U&&(n=e[i=n]),o(V,i,t(n,r,D,i,e,I))})),V}},10124:function(t,e,r){var n=r(9325);t.exports=function(){return n.Date.now()}},10392:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},12434:function(t,e,r){"use strict";r.d(e,{A:function(){return x}});var n=r(28562),i=r(41917),o=(0,n.A)(i.A,"DataView"),s=r(68335),u=(0,n.A)(i.A,"Promise"),a=(0,n.A)(i.A,"Set"),c=(0,n.A)(i.A,"WeakMap"),h=r(2383),f=r(81121),l="[object Map]",p="[object Promise]",d="[object Set]",v="[object WeakMap]",g="[object DataView]",y=(0,f.A)(o),b=(0,f.A)(s.A),m=(0,f.A)(u),A=(0,f.A)(a),w=(0,f.A)(c),S=h.A;(o&&S(new o(new ArrayBuffer(1)))!=g||s.A&&S(new s.A)!=l||u&&S(u.resolve())!=p||a&&S(new a)!=d||c&&S(new c)!=v)&&(S=function(t){var e=(0,h.A)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,f.A)(r):"";if(n)switch(n){case y:return g;case b:return l;case m:return p;case A:return d;case w:return v}return e});var x=S},12651:function(t,e,r){var n=r(74218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},12749:function(t,e,r){var n=r(81042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},13153:function(t,e){"use strict";e.A=function(){return[]}},14528:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},15647:function(t,e,r){"use strict";var n=(0,r(40367).A)(Object.getPrototypeOf,Object);e.A=n},16038:function(t,e,r){var n=r(5861),i=r(40346);t.exports=function(t){return i(t)&&"[object Set]"==n(t)}},16489:function(t,e,r){"use strict";r.d(e,{A:function(){return s}});var n=r(13153),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}(o(t),(function(e){return i.call(t,e)})))}:n.A},16547:function(t,e,r){var n=r(43360),i=r(75288),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var s=t[e];o.call(t,e)&&i(s,r)&&(void 0!==r||e in t)||n(t,e,r)}},17670:function(t,e,r){var n=r(12651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},19042:function(t,e,r){"use strict";var n=r(33831),i=r(16489),o=r(37405);e.A=function(t){return(0,n.A)(t,o.A,i.A)}},20311:function(t){"use strict";t.exports=function(t,e,r,n,i,o,s,u){if(!t){var a;if(void 0===e)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,s,u],h=0;(a=new Error(e.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},21549:function(t,e,r){var n=r(22032),i=r(63862),o=r(66721),s=r(12749),u=r(35749);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=s,a.prototype.set=u,t.exports=a},21791:function(t,e,r){var n=r(16547),i=r(43360);t.exports=function(t,e,r,o){var s=!r;r||(r={});for(var u=-1,a=e.length;++u<a;){var c=e[u],h=o?o(r[c],t[c],c,r,t):void 0;void 0===h&&(h=t[c]),s?i(r,c,h):n(r,c,h)}return r}},22031:function(t,e,r){"use strict";var n=r(52851),i=r(52528);e.A=function(t,e,r,o){var s=!r;r||(r={});for(var u=-1,a=e.length;++u<a;){var c=e[u],h=o?o(r[c],t[c],c,r,t):void 0;void 0===h&&(h=t[c]),s?(0,i.A)(r,c,h):(0,n.A)(r,c,h)}return r}},22032:function(t,e,r){var n=r(81042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},22080:function(t,e,r){"use strict";r.d(e,{A:function(){return u}});var n=r(89469),i=r(68335),o=r(62050);function s(t){var e=this.__data__=new n.A(t);this.size=e.size}s.prototype.clear=function(){this.__data__=new n.A,this.size=0},s.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},s.prototype.get=function(t){return this.__data__.get(t)},s.prototype.has=function(t){return this.__data__.has(t)},s.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.A){var s=r.__data__;if(!i.A||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new o.A(s)}return r.set(t,e),this.size=r.size,this};var u=s},23007:function(t){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},23149:function(t,e){"use strict";e.A=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},23805:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},24739:function(t,e,r){var n=r(26025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},25175:function(t,e,r){"use strict";r.d(e,{A:function(){return h}});var n=r(2383),i=r(53098),o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,n.A)(t)},s=Object.prototype,u=s.hasOwnProperty,a=s.propertyIsEnumerable,c=o(function(){return arguments}())?o:function(t){return(0,i.A)(t)&&u.call(t,"callee")&&!a.call(t,"callee")},h=c},25353:function(t,e){"use strict";var r=/^(?:0|[1-9]\d*)$/;e.A=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},26025:function(t,e,r){var n=r(75288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},27301:function(t){t.exports=function(t){return function(e){return t(e)}}},27534:function(t,e,r){var n=r(72552),i=r(40346);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},28303:function(t,e,r){var n=r(56110)(r(9325),"WeakMap");t.exports=n},28562:function(t,e,r){"use strict";r.d(e,{A:function(){return g}});var n,i=r(89610),o=r(41917).A["__core-js_shared__"],s=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",u=r(23149),a=r(81121),c=/^\[object .+?Constructor\]$/,h=Function.prototype,f=Object.prototype,l=h.toString,p=f.hasOwnProperty,d=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=function(t){return!(!(0,u.A)(t)||(e=t,s&&s in e))&&((0,i.A)(t)?d:c).test((0,a.A)(t));var e},g=function(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return v(r)?r:void 0}},28879:function(t,e,r){var n=r(74335)(Object.getPrototypeOf,Object);t.exports=n},29008:function(t,e){"use strict";e.A=function(t){return t}},29172:function(t,e,r){var n=r(5861),i=r(40346);t.exports=function(t){return i(t)&&"[object Map]"==n(t)}},29817:function(t){t.exports=function(t){return this.__data__.has(t)}},30294:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},30361:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},30901:function(t,e,r){"use strict";var n=r(61882);e.A=function(t){if("string"==typeof t||(0,n.A)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},31175:function(t,e,r){var n=r(26025);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},31800:function(t){var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},32804:function(t,e,r){var n=r(56110)(r(9325),"Promise");t.exports=n},33831:function(t,e,r){"use strict";var n=r(76912),i=r(92049);e.A=function(t,e,r){var o=e(t);return(0,i.A)(t)?o:(0,n.A)(o,r(t))}},34572:function(t,e,r){"use strict";function n(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function i(t,e){return t&e}function o(t,e){return t|e}function s(t,e){return t^e}function u(t,e){return t&~e}function a(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function c(t){for(var e=0;0!=t;)t&=t-1,++e;return e}r.d(e,{A:function(){return st}});var h,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function l(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=f.charAt(r>>6)+f.charAt(63&r);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=f.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=f.charAt(r>>2)+f.charAt((3&r)<<4));(3&n.length)>0;)n+="=";return n}function p(t){var e,r="",i=0,o=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var s=f.indexOf(t.charAt(e));s<0||(0==i?(r+=n(s>>2),o=3&s,i=1):1==i?(r+=n(o<<2|s>>4),o=15&s,i=2):2==i?(r+=n(o),r+=n(s>>2),o=3&s,i=3):(r+=n(o<<2|s>>4),r+=n(15&s),i=0))}return 1==i&&(r+=n(o<<2)),r}var d,v={decode:function(t){var e;if(void 0===d){for(d=Object.create(null),e=0;e<64;++e)d["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(d["-"]=62,d._=63,e=0;e<9;++e)d["= \f\n\r\t \u2028\u2029".charAt(e)]=-1}var r=[],n=0,i=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=d[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);n|=o,++i>=4?(r[r.length]=n>>16,r[r.length]=n>>8&255,r[r.length]=255&n,n=0,i=0):n<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=n>>10;break;case 3:r[r.length]=n>>16,r[r.length]=n>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=v.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return v.decode(t)}},g=1e13,y=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var r,n,i=this.buf,o=i.length;for(r=0;r<o;++r)(n=i[r]*t+e)<g?e=0:n-=(e=0|n/g)*g,i[r]=n;e>0&&(i[r]=e)},t.prototype.sub=function(t){var e,r,n=this.buf,i=n.length;for(e=0;e<i;++e)(r=n[e]-t)<0?(r+=g,t=1):t=0,n[e]=r;for(;0===n[n.length-1];)n.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,r=e[e.length-1].toString(),n=e.length-2;n>=0;--n)r+=(g+e[n]).toString().substring(1);return r},t.prototype.valueOf=function(){for(var t=this.buf,e=0,r=t.length-1;r>=0;--r)e=e*g+t[r];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),b=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,m=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function A(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var w,S=function(){function t(e,r){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=r)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,r){for(var n="",i=t;i<e;++i)if(n+=this.hexByte(this.get(i)),!0!==r)switch(15&i){case 7:n+=" ";break;case 15:n+="\n";break;default:n+=" "}return n},t.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var n=this.get(r);if(n<32||n>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var r="",n=t;n<e;++n)r+=String.fromCharCode(this.get(n));return r},t.prototype.parseStringUTF=function(t,e){for(var r="",n=t;n<e;){var i=this.get(n++);r+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(n++)):String.fromCharCode((15&i)<<12|(63&this.get(n++))<<6|63&this.get(n++))}return r},t.prototype.parseStringBMP=function(t,e){for(var r,n,i="",o=t;o<e;)r=this.get(o++),n=this.get(o++),i+=String.fromCharCode(r<<8|n);return i},t.prototype.parseTime=function(t,e,r){var n=this.parseStringISO(t,e),i=(r?b:m).exec(n);return i?(r&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),n=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(n+=":"+i[5],i[6]&&(n+=":"+i[6],i[7]&&(n+="."+i[7]))),i[8]&&(n+=" UTC","Z"!=i[8]&&(n+=i[8],i[9]&&(n+=":"+i[9]))),n):"Unrecognized time: "+n},t.prototype.parseInteger=function(t,e){for(var r,n=this.get(t),i=n>127,o=i?255:0,s="";n==o&&++t<e;)n=this.get(t);if(0==(r=e-t))return i?-1:0;if(r>4){for(s=n,r<<=3;!(128&(+s^o));)s=+s<<1,--r;s="("+r+" bit)\n"}i&&(n-=256);for(var u=new y(n),a=t+1;a<e;++a)u.mulAdd(256,this.get(a));return s+u.toString()},t.prototype.parseBitString=function(t,e,r){for(var n=this.get(t),i="("+((e-t-1<<3)-n)+" bit)\n",o="",s=t+1;s<e;++s){for(var u=this.get(s),a=s==e-1?n:0,c=7;c>=a;--c)o+=u>>c&1?"1":"0";if(o.length>r)return i+A(o,r)}return i+o},t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return A(this.parseStringISO(t,e),r);var n=e-t,i="("+n+" byte)\n";n>(r/=2)&&(e=t+r);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return n>r&&(i+="…"),i},t.prototype.parseOID=function(t,e,r){for(var n="",i=new y,o=0,s=t;s<e;++s){var u=this.get(s);if(i.mulAdd(128,127&u),o+=7,!(128&u)){if(""===n)if((i=i.simplify())instanceof y)i.sub(80),n="2."+i.toString();else{var a=i<80?i<40?0:1:2;n=a+"."+(i-40*a)}else n+="."+i.toString();if(n.length>r)return A(n,r);i=new y,o=0}}return o>0&&(n+=".incomplete"),n},t}(),x=function(){function t(t,e,r,n,i){if(!(n instanceof T))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=r,this.tag=n,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return A(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return A(this.stream.parseStringISO(e,e+r),t);case 30:return A(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var r=0,n=this.sub.length;r<n;++r)e+=this.sub[r].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var n=0;n<r;++n)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,r=2*this.length;return t.substr(e,r)},t.decode=function(e){var r;r=e instanceof S?e:new S(e,0);var n=new S(r),i=new T(r),o=t.decodeLength(r),s=r.pos,u=s-n.pos,a=null,c=function(){var e=[];if(null!==o){for(var n=s+o;r.pos<n;)e[e.length]=t.decode(r);if(r.pos!=n)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var i=t.decode(r);if(i.tag.isEOC())break;e[e.length]=i}o=s-r.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)a=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");a=c();for(var h=0;h<a.length;++h)if(a[h].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){a=null}if(null===a){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(o)}return new t(n,u,o,i,a)},t}(),T=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=!!(32&e),this.tagNumber=31&e,31==this.tagNumber){var r=new y;do{e=t.get(),r.mulAdd(128,127&e)}while(128&e);this.tagNumber=r.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),j=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],E=(1<<26)/j[j.length-1],_=function(){function t(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var r,i=(1<<e)-1,o=!1,s="",u=this.t,a=this.DB-u*this.DB%e;if(u-- >0)for(a<this.DB&&(r=this[u]>>a)>0&&(o=!0,s=n(r));u>=0;)a<e?(r=(this[u]&(1<<a)-1)<<e-a,r|=this[--u]>>(a+=this.DB-e)):(r=this[u]>>(a-=e)&i,a<=0&&(a+=this.DB,--u)),r>0&&(o=!0),o&&(s+=n(r));return o?s:"0"},t.prototype.negate=function(){var e=I();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=I();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new D(e):new R(e),this.exp(t,r)},t.prototype.clone=function(){var t=I();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),128&r&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=I();return this.bitwiseTo(t,i,e),e},t.prototype.or=function(t){var e=I();return this.bitwiseTo(t,o,e),e},t.prototype.xor=function(t){var e=I();return this.bitwiseTo(t,s,e),e},t.prototype.andNot=function(t){var e=I();return this.bitwiseTo(t,u,e),e},t.prototype.not=function(){for(var t=I(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=I();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=I();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+a(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=c(this[r]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,o)},t.prototype.clearBit=function(t){return this.changeBit(t,u)},t.prototype.flipBit=function(t){return this.changeBit(t,s)},t.prototype.add=function(t){var e=I();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=I();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=I();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=I();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=I();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=I(),r=I();return this.divRemTo(t,e,r),[e,r]},t.prototype.modPow=function(t,e){var r,n,i=t.bitLength(),o=q(1);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new D(e):e.isEven()?new B(e):new R(e);var s=[],u=3,a=r-1,c=(1<<r)-1;if(s[1]=n.convert(this),r>1){var h=I();for(n.sqrTo(s[1],h);u<=c;)s[u]=I(),n.mulTo(h,s[u-2],s[u]),u+=2}var f,l,p=t.t-1,d=!0,v=I();for(i=k(t[p])-1;p>=0;){for(i>=a?f=t[p]>>i-a&c:(f=(t[p]&(1<<i+1)-1)<<a-i,p>0&&(f|=t[p-1]>>this.DB+i-a)),u=r;!(1&f);)f>>=1,--u;if((i-=u)<0&&(i+=this.DB,--p),d)s[f].copyTo(o),d=!1;else{for(;u>1;)n.sqrTo(o,v),n.sqrTo(v,o),u-=2;u>0?n.sqrTo(o,v):(l=o,o=v,v=l),n.mulTo(v,s[f],o)}for(;p>=0&&!(t[p]&1<<i);)n.sqrTo(o,v),l=o,o=v,v=l,--i<0&&(i=this.DB-1,--p)}return n.revert(o)},t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||0==e.signum())return t.ZERO;for(var n=e.clone(),i=this.clone(),o=q(1),s=q(0),u=q(0),a=q(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),r?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(e,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),r?(u.isEven()&&a.isEven()||(u.addTo(this,u),a.subTo(e,a)),u.rShiftTo(1,u)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);n.compareTo(i)>=0?(n.subTo(i,n),r&&o.subTo(u,o),s.subTo(a,s)):(i.subTo(n,i),r&&u.subTo(o,u),a.subTo(s,a))}return 0!=i.compareTo(t.ONE)?t.ZERO:a.compareTo(e)>=0?a.subtract(e):a.signum()<0?(a.addTo(e,a),a.signum()<0?a.add(e):a):a},t.prototype.pow=function(t){return this.exp(t,new O)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},t.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=j[j.length-1]){for(e=0;e<j.length;++e)if(r[0]==j[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<j.length;){for(var n=j[e],i=e+1;i<j.length&&n<E;)n*=j[i++];for(n=r.modInt(n);e<i;)if(n%j[e++]==0)return!1}return r.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,r){var n;if(16==r)n=4;else if(8==r)n=3;else if(256==r)n=8;else if(2==r)n=1;else if(32==r)n=5;else{if(4!=r)return void this.fromRadix(e,r);n=2}this.t=0,this.s=0;for(var i=e.length,o=!1,s=0;--i>=0;){var u=8==n?255&+e[i]:L(e,i);u<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=u:s+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-s)-1)<<s,this[this.t++]=u>>this.DB-s):this[this.t-1]|=u<<s,(s+=n)>=this.DB&&(s-=this.DB))}8==n&&128&+e[0]&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,n=this.DB-r,i=(1<<n)-1,o=Math.floor(t/this.DB),s=this.s<<r&this.DM,u=this.t-1;u>=0;--u)e[u+o+1]=this[u]>>n|s,s=(this[u]&i)<<r;for(u=o-1;u>=0;--u)e[u]=0;e[o]=s,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&o)<<i,e[s-r]=this[s]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},t.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},t.prototype.multiplyTo=function(e,r){var n=this.abs(),i=e.abs(),o=n.t;for(r.t=o+i.t;--o>=0;)r[o]=0;for(o=0;o<i.t;++o)r[o+n.t]=n.am(0,i[o],r,o,0,n.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,r,n){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=r&&r.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=I());var s=I(),u=this.s,a=e.s,c=this.DB-k(i[i.t-1]);c>0?(i.lShiftTo(c,s),o.lShiftTo(c,n)):(i.copyTo(s),o.copyTo(n));var h=s.t,f=s[h-1];if(0!=f){var l=f*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),p=this.FV/l,d=(1<<this.F1)/l,v=1<<this.F2,g=n.t,y=g-h,b=null==r?I():r;for(s.dlShiftTo(y,b),n.compareTo(b)>=0&&(n[n.t++]=1,n.subTo(b,n)),t.ONE.dlShiftTo(h,b),b.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--y>=0;){var m=n[--g]==f?this.DM:Math.floor(n[g]*p+(n[g-1]+v)*d);if((n[g]+=s.am(0,m,n,y,0,h))<m)for(s.dlShiftTo(y,b),n.subTo(b,n);n[g]<--m;)n.subTo(b,n)}null!=r&&(n.drShiftTo(h,r),u!=a&&t.ZERO.subTo(r,r)),n.t=h,n.clamp(),c>0&&n.rShiftTo(c,n),u<0&&t.ZERO.subTo(n,n)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var n=I(),i=I(),o=r.convert(this),s=k(e)-1;for(o.copyTo(n);--s>=0;)if(r.sqrTo(n,i),(e&1<<s)>0)r.mulTo(i,o,n);else{var u=n;n=i,i=u}return r.revert(n)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),n=q(r),i=I(),o=I(),s="";for(this.divRemTo(n,i,o);i.signum()>0;)s=(r+o.intValue()).toString(t).substr(1)+s,i.divRemTo(n,i,o);return o.intValue().toString(t)+s},t.prototype.fromRadix=function(e,r){this.fromInt(0),null==r&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),o=!1,s=0,u=0,a=0;a<e.length;++a){var c=L(e,a);c<0?"-"==e.charAt(a)&&0==this.signum()&&(o=!0):(u=r*u+c,++s>=n&&(this.dMultiply(i),this.dAddOffset(u,0),s=0,u=0))}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(u,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,r,n){if("number"==typeof r)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),o,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],s=7&e;i.length=1+(e>>3),r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},t.prototype.changeBit=function(e,r){var n=t.ONE.shiftLeft(e);return this.bitwiseTo(n,r,n),n},t.prototype.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,r){var n=Math.min(this.t+t.t,e);for(r.s=0,r.t=n;n>0;)r[--n]=0;for(var i=r.t-this.t;n<i;++n)r[n+this.t]=this.am(0,t[n],r,n,0,this.t);for(i=Math.min(t.t,e);n<i;++n)this.am(0,t[n],r,n,0,e-n);r.clamp()},t.prototype.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);(e=e+1>>1)>j.length&&(e=j.length);for(var o=I(),s=0;s<e;++s){o.fromInt(j[Math.floor(Math.random()*j.length)]);var u=o.modPow(i,this);if(0!=u.compareTo(t.ONE)&&0!=u.compareTo(r)){for(var a=1;a++<n&&0!=u.compareTo(r);)if(0==(u=u.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=u.compareTo(r))return!1}}return!0},t.prototype.square=function(){var t=I();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var o=r.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)e(r);else{o<s&&(s=o),s>0&&(r.rShiftTo(s,r),n.rShiftTo(s,n));var u=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n)),r.signum()>0?setTimeout(u,0):(s>0&&n.lShiftTo(s,n),setTimeout((function(){e(n)}),0))};setTimeout(u,10)}},t.prototype.fromNumberAsync=function(e,r,n,i){if("number"==typeof r)if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),o,this),this.isEven()&&this.dAddOffset(1,0);var s=this,u=function(){s.dAddOffset(2,0),s.bitLength()>e&&s.subTo(t.ONE.shiftLeft(e-1),s),s.isProbablePrime(r)?setTimeout((function(){i()}),0):setTimeout(u,0)};setTimeout(u,0)}else{var a=[],c=7&e;a.length=1+(e>>3),r.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},t}(),O=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),D=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),R=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=I();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(_.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=I();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),B=function(){function t(t){this.m=t,this.r2=I(),this.q3=I(),_.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=I();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function I(){return new _(null)}function V(t,e){return new _(t,e)}var N="undefined"!=typeof navigator;N&&"Microsoft Internet Explorer"==navigator.appName?(_.prototype.am=function(t,e,r,n,i,o){for(var s=32767&e,u=e>>15;--o>=0;){var a=32767&this[t],c=this[t++]>>15,h=u*a+c*s;i=((a=s*a+((32767&h)<<15)+r[n]+(1073741823&i))>>>30)+(h>>>15)+u*c+(i>>>30),r[n++]=1073741823&a}return i},w=30):N&&"Netscape"!=navigator.appName?(_.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i},w=26):(_.prototype.am=function(t,e,r,n,i,o){for(var s=16383&e,u=e>>14;--o>=0;){var a=16383&this[t],c=this[t++]>>14,h=u*a+c*s;i=((a=s*a+((16383&h)<<14)+r[n]+i)>>28)+(h>>14)+u*c,r[n++]=268435455&a}return i},w=28),_.prototype.DB=w,_.prototype.DM=(1<<w)-1,_.prototype.DV=1<<w,_.prototype.FV=Math.pow(2,52),_.prototype.F1=52-w,_.prototype.F2=2*w-52;var P,M,C=[];for(P="0".charCodeAt(0),M=0;M<=9;++M)C[P++]=M;for(P="a".charCodeAt(0),M=10;M<36;++M)C[P++]=M;for(P="A".charCodeAt(0),M=10;M<36;++M)C[P++]=M;function L(t,e){var r=C[t.charCodeAt(e)];return null==r?-1:r}function q(t){var e=I();return e.fromInt(t),e}function k(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}_.ZERO=q(0),_.ONE=q(1);var U,F,H=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[r],this.S[r]=n;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),z=null;if(null==z){z=[],F=0;var K=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var $=new Uint32Array(256);for(window.crypto.getRandomValues($),K=0;K<$.length;++K)z[F++]=255&$[K]}var G=0,Z=function(t){if((G=G||0)>=256||F>=256)window.removeEventListener?window.removeEventListener("mousemove",Z,!1):window.detachEvent&&window.detachEvent("onmousemove",Z);else try{var e=t.x+t.y;z[F++]=255&e,G+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Z,!1):window.attachEvent&&window.attachEvent("onmousemove",Z))}function W(){if(null==U){for(U=new H;F<256;){var t=Math.floor(65536*Math.random());z[F++]=255&t}for(U.init(z),F=0;F<z.length;++F)z[F]=0;F=0}return U.next()}var Y=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=W()},t}(),J=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(r)<0;)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=V(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,r=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=t.length-1;n>=0&&e>0;){var i=t.charCodeAt(n--);i<128?r[--e]=i:i>127&&i<2048?(r[--e]=63&i|128,r[--e]=i>>6|192):(r[--e]=63&i|128,r[--e]=i>>6&63|128,r[--e]=i>>12|224)}r[--e]=0;for(var o=new Y,s=[];e>2;){for(s[0]=0;0==s[0];)o.nextBytes(s);r[--e]=s[0]}return r[--e]=2,r[--e]=0,new _(r)}(t,e);if(null==r)return null;var n=this.doPublic(r);if(null==n)return null;for(var i=n.toString(16),o=i.length,s=0;s<2*e-o;s++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,r){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=V(t,16),this.e=parseInt(e,16),this.d=V(r,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,r,n,i,o,s,u){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=V(t,16),this.e=parseInt(e,16),this.d=V(r,16),this.p=V(n,16),this.q=V(i,16),this.dmp1=V(o,16),this.dmq1=V(s,16),this.coeff=V(u,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var r=new Y,n=t>>1;this.e=parseInt(e,16);for(var i=new _(e,16);;){for(;this.p=new _(t-n,1,r),0!=this.p.subtract(_.ONE).gcd(i).compareTo(_.ONE)||!this.p.isProbablePrime(10););for(;this.q=new _(n,1,r),0!=this.q.subtract(_.ONE).gcd(i).compareTo(_.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(_.ONE),u=this.q.subtract(_.ONE),a=s.multiply(u);if(0==a.gcd(i).compareTo(_.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(a),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=V(t,16),r=this.doPrivate(e);return null==r?null:function(t,e){for(var r=t.toByteArray(),n=0;n<r.length&&0==r[n];)++n;if(r.length-n!=e-1||2!=r[n])return null;for(++n;0!=r[n];)if(++n>=r.length)return null;for(var i="";++n<r.length;){var o=255&r[n];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&r[n+1]),++n):(i+=String.fromCharCode((15&o)<<12|(63&r[n+1])<<6|63&r[n+2]),n+=2)}return i}(r,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,r){var n=new Y,i=t>>1;this.e=parseInt(e,16);var o=new _(e,16),s=this,u=function(){var e=function(){if(s.p.compareTo(s.q)<=0){var t=s.p;s.p=s.q,s.q=t}var e=s.p.subtract(_.ONE),n=s.q.subtract(_.ONE),i=e.multiply(n);0==i.gcd(o).compareTo(_.ONE)?(s.n=s.p.multiply(s.q),s.d=o.modInverse(i),s.dmp1=s.d.mod(e),s.dmq1=s.d.mod(n),s.coeff=s.q.modInverse(s.p),setTimeout((function(){r()}),0)):setTimeout(u,0)},a=function(){s.q=I(),s.q.fromNumberAsync(i,1,n,(function(){s.q.subtract(_.ONE).gcda(o,(function(t){0==t.compareTo(_.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(a,0)}))}))},c=function(){s.p=I(),s.p.fromNumberAsync(t-i,1,n,(function(){s.p.subtract(_.ONE).gcda(o,(function(t){0==t.compareTo(_.ONE)&&s.p.isProbablePrime(10)?setTimeout(a,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(u,0)},t.prototype.sign=function(t,e,r){var n=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var r=e-t.length-6,n="",i=0;i<r;i+=2)n+="ff";return V("0001"+n+"00"+t,16)}((Q[r]||"")+e(t).toString(),this.n.bitLength()/4);if(null==n)return null;var i=this.doPrivate(n);if(null==i)return null;var o=i.toString(16);return 1&o.length?"0"+o:o},t.prototype.verify=function(t,e,r){var n=V(e,16),i=this.doPublic(n);return null==i?null:function(t){for(var e in Q)if(Q.hasOwnProperty(e)){var r=Q[e],n=r.length;if(t.substr(0,n)==r)return t.substr(n)}return t}(i.toString(16).replace(/^1f+00/,""))==r(t).toString()},t}(),Q={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},X={};X.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),r){var i;for(i in r)t.prototype[i]=r[i];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<s.length;i+=1){var r=s[i],n=e[r];"function"==typeof n&&n!=Object.prototype[r]&&(t[r]=n)}})}catch(t){}o(t.prototype,r)}}};var tt={};void 0!==tt.asn1&&tt.asn1||(tt.asn1={}),tt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substr(1).length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var n="",i=0;i<r;i++)n+="f";e=new _(n,16).xor(t).add(_.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=tt.asn1,r=e.DERBoolean,n=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,s=e.DERNull,u=e.DERObjectIdentifier,a=e.DEREnumerated,c=e.DERUTF8String,h=e.DERNumericString,f=e.DERPrintableString,l=e.DERTeletexString,p=e.DERIA5String,d=e.DERUTCTime,v=e.DERGeneralizedTime,g=e.DERSequence,y=e.DERSet,b=e.DERTaggedObject,m=e.ASN1Util.newObject,A=Object.keys(t);if(1!=A.length)throw"key of param shall be only one.";var w=A[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":"))throw"undefined key: "+w;if("bool"==w)return new r(t[w]);if("int"==w)return new n(t[w]);if("bitstr"==w)return new i(t[w]);if("octstr"==w)return new o(t[w]);if("null"==w)return new s(t[w]);if("oid"==w)return new u(t[w]);if("enum"==w)return new a(t[w]);if("utf8str"==w)return new c(t[w]);if("numstr"==w)return new h(t[w]);if("prnstr"==w)return new f(t[w]);if("telstr"==w)return new l(t[w]);if("ia5str"==w)return new p(t[w]);if("utctime"==w)return new d(t[w]);if("gentime"==w)return new v(t[w]);if("seq"==w){for(var S=t[w],x=[],T=0;T<S.length;T++){var j=m(S[T]);x.push(j)}return new g({array:x})}if("set"==w){for(S=t[w],x=[],T=0;T<S.length;T++)j=m(S[T]),x.push(j);return new y({array:x})}if("tag"==w){var E=t[w];if("[object Array]"===Object.prototype.toString.call(E)&&3==E.length){var _=m(E[2]);return new b({tag:E[0],explicit:E[1],obj:_})}var O={};if(void 0!==E.explicit&&(O.explicit=E.explicit),void 0!==E.tag&&(O.tag=E.tag),void 0===E.obj)throw"obj shall be specified for 'tag'.";return O.obj=m(E.obj),new b(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},tt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",r=parseInt(t.substr(0,2),16),n=(e=Math.floor(r/40)+"."+r%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);n+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new _(n,2).toString(10),n="")}return e},tt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new _(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";for(n=o+n,s=0;s<n.length-1;s+=7){var u=n.substr(s,7);s!=n.length-7&&(u="1"+u),r+=e(parseInt(u,2))}return r};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)n+=r(i[s]);return n},tt.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var r=e.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+r).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},tt.asn1.DERAbstractString=function(t){tt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},X.lang.extend(tt.asn1.DERAbstractString,tt.asn1.ASN1Object),tt.asn1.DERAbstractTime=function(t){tt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,r){var n=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var s=o+n(String(i.getMonth()+1),2)+n(String(i.getDate()),2)+n(String(i.getHours()),2)+n(String(i.getMinutes()),2)+n(String(i.getSeconds()),2);if(!0===r){var u=i.getMilliseconds();if(0!=u){var a=n(String(u),3);s=s+"."+(a=a.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,r,n,i,o){var s=new Date(Date.UTC(t,e-1,r,n,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},X.lang.extend(tt.asn1.DERAbstractTime,tt.asn1.ASN1Object),tt.asn1.DERAbstractStructured=function(t){tt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},X.lang.extend(tt.asn1.DERAbstractStructured,tt.asn1.ASN1Object),tt.asn1.DERBoolean=function(){tt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},X.lang.extend(tt.asn1.DERBoolean,tt.asn1.ASN1Object),tt.asn1.DERInteger=function(t){tt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=tt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new _(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},X.lang.extend(tt.asn1.DERInteger,tt.asn1.ASN1Object),tt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=tt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}tt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var r=0;r<=e;r++)t+="0";var n="";for(r=0;r<t.length-1;r+=8){var i=t.substr(r,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),n+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+n},this.setByBooleanArray=function(t){for(var e="",r=0;r<t.length;r++)1==t[r]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},X.lang.extend(tt.asn1.DERBitString,tt.asn1.ASN1Object),tt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=tt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}tt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},X.lang.extend(tt.asn1.DEROctetString,tt.asn1.DERAbstractString),tt.asn1.DERNull=function(){tt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},X.lang.extend(tt.asn1.DERNull,tt.asn1.ASN1Object),tt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new _(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";for(n=o+n,s=0;s<n.length-1;s+=7){var u=n.substr(s,7);s!=n.length-7&&(u="1"+u),r+=e(parseInt(u,2))}return r};tt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)n+=r(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueName=function(t){var e=tt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},X.lang.extend(tt.asn1.DERObjectIdentifier,tt.asn1.ASN1Object),tt.asn1.DEREnumerated=function(t){tt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=tt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new _(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},X.lang.extend(tt.asn1.DEREnumerated,tt.asn1.ASN1Object),tt.asn1.DERUTF8String=function(t){tt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},X.lang.extend(tt.asn1.DERUTF8String,tt.asn1.DERAbstractString),tt.asn1.DERNumericString=function(t){tt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},X.lang.extend(tt.asn1.DERNumericString,tt.asn1.DERAbstractString),tt.asn1.DERPrintableString=function(t){tt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},X.lang.extend(tt.asn1.DERPrintableString,tt.asn1.DERAbstractString),tt.asn1.DERTeletexString=function(t){tt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},X.lang.extend(tt.asn1.DERTeletexString,tt.asn1.DERAbstractString),tt.asn1.DERIA5String=function(t){tt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},X.lang.extend(tt.asn1.DERIA5String,tt.asn1.DERAbstractString),tt.asn1.DERUTCTime=function(t){tt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},X.lang.extend(tt.asn1.DERUTCTime,tt.asn1.DERAbstractTime),tt.asn1.DERGeneralizedTime=function(t){tt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},X.lang.extend(tt.asn1.DERGeneralizedTime,tt.asn1.DERAbstractTime),tt.asn1.DERSequence=function(t){tt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},X.lang.extend(tt.asn1.DERSequence,tt.asn1.DERAbstractStructured),tt.asn1.DERSet=function(t){tt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},X.lang.extend(tt.asn1.DERSet,tt.asn1.DERAbstractStructured),tt.asn1.DERTaggedObject=function(t){tt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},X.lang.extend(tt.asn1.DERTaggedObject,tt.asn1.ASN1Object);var et,rt,nt=(et=function(t,e){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},et(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}et(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),it=function(t){function e(r){var n=t.call(this)||this;return r&&("string"==typeof r?n.parseKey(r):(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return nt(e,t),e.prototype.parseKey=function(t){try{var e=0,r=0,n=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(t){var e;if(void 0===h){var r="0123456789ABCDEF";for(h={},e=0;e<16;++e)h[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)h[r.charAt(e)]=e;for(e=0;e<8;++e)h[" \f\n\r\t \u2028\u2029".charAt(e)]=-1}var n=[],i=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=h[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);i|=s,++o>=2?(n[n.length]=i,i=0,o=0):i<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return n}(t):v.unarmor(t),i=x.decode(n);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=V(e,16),r=i.sub[2].getHexStringValue(),this.e=parseInt(r,16);var o=i.sub[3].getHexStringValue();this.d=V(o,16);var s=i.sub[4].getHexStringValue();this.p=V(s,16);var u=i.sub[5].getHexStringValue();this.q=V(u,16);var a=i.sub[6].getHexStringValue();this.dmp1=V(a,16);var c=i.sub[7].getHexStringValue();this.dmq1=V(c,16);var f=i.sub[8].getHexStringValue();this.coeff=V(f,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=V(e,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else e=i.sub[0].getHexStringValue(),this.n=V(e,16),r=i.sub[1].getHexStringValue(),this.e=parseInt(r,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new tt.asn1.DERInteger({int:0}),new tt.asn1.DERInteger({bigint:this.n}),new tt.asn1.DERInteger({int:this.e}),new tt.asn1.DERInteger({bigint:this.d}),new tt.asn1.DERInteger({bigint:this.p}),new tt.asn1.DERInteger({bigint:this.q}),new tt.asn1.DERInteger({bigint:this.dmp1}),new tt.asn1.DERInteger({bigint:this.dmq1}),new tt.asn1.DERInteger({bigint:this.coeff})]};return new tt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return l(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new tt.asn1.DERSequence({array:[new tt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new tt.asn1.DERNull]}),e=new tt.asn1.DERSequence({array:[new tt.asn1.DERInteger({bigint:this.n}),new tt.asn1.DERInteger({int:this.e})]}),r=new tt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new tt.asn1.DERSequence({array:[t,r]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return l(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var r="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(J),ot=null===(rt={})||void 0===rt?void 0:rt.npm_package_version,st=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new it(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(p(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return l(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,r){try{return l(this.getKey().sign(t,e,r))}catch(t){return!1}},t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,p(e),r)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new it,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=ot,t}()},34840:function(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},34963:function(t,e,r){"use strict";var n=r(2383),i=r(15647),o=r(53098),s=Function.prototype,u=Object.prototype,a=s.toString,c=u.hasOwnProperty,h=a.call(Object);e.A=function(t){if(!(0,o.A)(t)||"[object Object]"!=(0,n.A)(t))return!1;var e=(0,i.A)(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&a.call(r)==h}},35529:function(t,e,r){var n=r(39344),i=r(28879),o=r(55527);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:n(i(t))}},35749:function(t,e,r){var n=r(81042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},36152:function(t,e,r){"use strict";r.d(e,{A:function(){return m}});var n=r(92049),i=r(86586),o=r(62050);function s(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(s.Cache||o.A),r}s.Cache=o.A;var u,a,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,f=(u=s((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,(function(t,r,n,i){e.push(n?i.replace(h,"$1"):r||t)})),e}),(function(t){return 500===a.size&&a.clear(),t})),a=u.cache,u),l=r(241),p=r(45572),d=r(61882),v=l.A?l.A.prototype:void 0,g=v?v.toString:void 0,y=function t(e){if("string"==typeof e)return e;if((0,n.A)(e))return(0,p.A)(e,t)+"";if((0,d.A)(e))return g?g.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},b=function(t){return null==t?"":y(t)},m=function(t,e){return(0,n.A)(t)?t:(0,i.A)(t,e)?[t]:f(b(t))}},37167:function(t,e,r){var n=r(4901),i=r(27301),o=r(86009),s=o&&o.isTypedArray,u=s?i(s):n;t.exports=u},37217:function(t,e,r){var n=r(80079),i=r(51420),o=r(90938),s=r(63605),u=r(29817),a=r(80945);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=u,c.prototype.set=a,t.exports=c},37241:function(t,e,r){var n=r(70695),i=r(72903),o=r(64894);t.exports=function(t){return o(t)?n(t,!0):i(t)}},37405:function(t,e,r){"use strict";r.d(e,{A:function(){return a}});var n=r(2505),i=r(97271),o=(0,r(40367).A)(Object.keys,Object),s=Object.prototype.hasOwnProperty,u=r(38446),a=function(t){return(0,u.A)(t)?(0,n.A)(t):function(t){if(!(0,i.A)(t))return o(t);var e=[];for(var r in Object(t))s.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}},37828:function(t,e,r){var n=r(9325).Uint8Array;t.exports=n},38221:function(t,e,r){var n=r(23805),i=r(10124),o=r(99374),s=Math.max,u=Math.min;t.exports=function(t,e,r){var a,c,h,f,l,p,d=0,v=!1,g=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var r=a,n=c;return a=c=void 0,d=e,f=t.apply(n,r)}function m(t){var r=t-p;return void 0===p||r>=e||r<0||g&&t-d>=h}function A(){var t=i();if(m(t))return w(t);l=setTimeout(A,function(t){var r=e-(t-p);return g?u(r,h-(t-d)):r}(t))}function w(t){return l=void 0,y&&a?b(t):(a=c=void 0,f)}function S(){var t=i(),r=m(t);if(a=arguments,c=this,p=t,r){if(void 0===l)return function(t){return d=t,l=setTimeout(A,e),v?b(t):f}(p);if(g)return clearTimeout(l),l=setTimeout(A,e),b(p)}return void 0===l&&(l=setTimeout(A,e)),f}return e=o(e)||0,n(r)&&(v=!!r.leading,h=(g="maxWait"in r)?s(o(r.maxWait)||0,e):h,y="trailing"in r?!!r.trailing:y),S.cancel=function(){void 0!==l&&clearTimeout(l),d=0,a=p=c=l=void 0},S.flush=function(){return void 0===l?f:w(i())},S}},38440:function(t,e,r){var n=r(16038),i=r(27301),o=r(86009),s=o&&o.isSet,u=s?i(s):n;t.exports=u},38446:function(t,e,r){"use strict";var n=r(89610),i=r(5254);e.A=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,n.A)(t)}},39344:function(t,e,r){var n=r(23805),i=Object.create,o=function(){function t(){}return function(e){if(!n(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=o},39759:function(t,e){"use strict";e.A=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},40346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},40367:function(t,e){"use strict";e.A=function(t,e){return function(r){return t(e(r))}}},41200:function(t,e,r){"use strict";r.d(e,{A:function(){return u}});var n=r(41917),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i?n.A.Buffer:void 0,u=(s?s.isBuffer:void 0)||function(){return!1}},41917:function(t,e,r){"use strict";var n=r(72136),i="object"==typeof self&&self&&self.Object===Object&&self,o=n.A||i||Function("return this")();e.A=o},43360:function(t,e,r){var n=r(93243);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},43838:function(t,e,r){var n=r(21791),i=r(37241);t.exports=function(t,e){return t&&n(e,i(e),t)}},43988:function(t,e,r){"use strict";var n=r(41917).A.Uint8Array;e.A=n},44394:function(t,e,r){var n=r(72552),i=r(40346);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},45083:function(t,e,r){var n=r(1882),i=r(87296),o=r(23805),s=r(47473),u=/^\[object .+?Constructor\]$/,a=Function.prototype,c=Object.prototype,h=a.toString,f=c.hasOwnProperty,l=RegExp("^"+h.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?l:u).test(s(t))}},45572:function(t,e){"use strict";e.A=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},46778:function(t,e,r){"use strict";r.d(e,{A:function(){return h}});var n,i,o,s=r(84171),u=r(29008),a=s.A?function(t,e){return(0,s.A)(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:u.A,c=Date.now,h=(n=a,i=0,o=0,function(){var t=c(),e=16-(t-o);if(o=t,e>0){if(++i>=800)return arguments[0]}else i=0;return n.apply(void 0,arguments)})},47473:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},48655:function(t,e,r){var n=r(26025);t.exports=function(t){return n(this.__data__,t)>-1}},48948:function(t,e,r){var n=r(21791),i=r(86375);t.exports=function(t,e){return n(t,i(t),e)}},49653:function(t,e,r){var n=r(37828);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},50002:function(t,e,r){var n=r(82199),i=r(4664),o=r(95950);t.exports=function(t){return n(t,o,i)}},50104:function(t,e,r){var n=r(53661);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},50407:function(t,e,r){"use strict";r.d(e,{A:function(){return a}});var n=r(23149),i=Object.create,o=function(){function t(){}return function(e){if(!(0,n.A)(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),s=r(15647),u=r(97271),a=function(t){return"function"!=typeof t.constructor||(0,u.A)(t)?{}:o((0,s.A)(t))}},50849:function(t,e,r){t.exports=r(81925)},51420:function(t,e,r){var n=r(80079);t.exports=function(){this.__data__=new n,this.size=0}},51873:function(t,e,r){var n=r(9325).Symbol;t.exports=n},52528:function(t,e,r){"use strict";var n=r(84171);e.A=function(t,e,r){"__proto__"==e&&n.A?(0,n.A)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},52789:function(t,e){"use strict";e.A=function(t){return function(e){return t(e)}}},52851:function(t,e,r){"use strict";var n=r(52528),i=r(66984),o=Object.prototype.hasOwnProperty;e.A=function(t,e,r){var s=t[e];o.call(t,e)&&(0,i.A)(s,r)&&(void 0!==r||e in t)||(0,n.A)(t,e,r)}},53098:function(t,e){"use strict";e.A=function(t){return null!=t&&"object"==typeof t}},53661:function(t,e,r){var n=r(63040),i=r(17670),o=r(90289),s=r(4509),u=r(72949);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=s,a.prototype.set=u,t.exports=a},54128:function(t,e,r){var n=r(31800),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},54749:function(t,e,r){"use strict";r.d(e,{A:function(){return h}});var n=r(2383),i=r(5254),o=r(53098),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var u=r(52789),a=r(87222),c=a.A&&a.A.isTypedArray,h=c?(0,u.A)(c):function(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!s[(0,n.A)(t)]}},55481:function(t,e,r){var n=r(9325)["__core-js_shared__"];t.exports=n},55527:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},55580:function(t,e,r){var n=r(56110)(r(9325),"DataView");t.exports=n},56110:function(t,e,r){var n=r(45083),i=r(10392);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},56449:function(t){var e=Array.isArray;t.exports=e},59350:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},61882:function(t,e,r){"use strict";var n=r(2383),i=r(53098);e.A=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},62050:function(t,e,r){"use strict";r.d(e,{A:function(){return l}});var n=(0,r(28562).A)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=function(){this.__data__=n?n(null):{},this.size=0},s.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},s.prototype.get=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0},s.prototype.has=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)},s.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};var u=s,a=r(89469),c=r(68335),h=function(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map};function f(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new u,map:new(c.A||a.A),string:new u}},f.prototype.delete=function(t){var e=h(this,t).delete(t);return this.size-=e?1:0,e},f.prototype.get=function(t){return h(this,t).get(t)},f.prototype.has=function(t){return h(this,t).has(t)},f.prototype.set=function(t,e){var r=h(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var l=f},63040:function(t,e,r){var n=r(21549),i=r(80079),o=r(68223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},63345:function(t){t.exports=function(){return[]}},63605:function(t){t.exports=function(t){return this.__data__.get(t)}},63702:function(t){t.exports=function(){this.__data__=[],this.size=0}},63862:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},63950:function(t){t.exports=function(){}},64894:function(t,e,r){var n=r(1882),i=r(30294);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},65255:function(t,e,r){"use strict";r.d(e,{A:function(){return i}});var n=Math.max,i=function(t,e,r){return e=n(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=n(i.length-e,0),u=Array(s);++o<s;)u[o]=i[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=i[o];return a[e]=r(u),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,a)}}},66318:function(t,e,r){"use strict";var n=r(36152),i=r(30901);e.A=function(t,e){for(var r=0,o=(e=(0,n.A)(e,t)).length;null!=t&&r<o;)t=t[(0,i.A)(e[r++])];return r&&r==o?t:void 0}},66721:function(t,e,r){var n=r(81042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},66984:function(t,e){"use strict";e.A=function(t,e){return t===e||t!=t&&e!=e}},68223:function(t,e,r){var n=r(56110)(r(9325),"Map");t.exports=n},68335:function(t,e,r){"use strict";var n=r(28562),i=r(41917),o=(0,n.A)(i.A,"Map");e.A=o},70080:function(t,e,r){var n=r(26025),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():i.call(e,r,1),--this.size,0))}},70695:function(t,e,r){var n=r(78096),i=r(72428),o=r(56449),s=r(3656),u=r(30361),a=r(37167),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),h=!r&&i(t),f=!r&&!h&&s(t),l=!r&&!h&&!f&&a(t),p=r||h||f||l,d=p?n(t.length,String):[],v=d.length;for(var g in t)!e&&!c.call(t,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||l&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,v))||d.push(g);return d}},71961:function(t,e,r){var n=r(49653);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},72136:function(t,e){"use strict";var r="object"==typeof global&&global&&global.Object===Object&&global;e.A=r},72428:function(t,e,r){var n=r(27534),i=r(40346),o=Object.prototype,s=o.hasOwnProperty,u=o.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(t){return i(t)&&s.call(t,"callee")&&!u.call(t,"callee")};t.exports=a},72552:function(t,e,r){var n=r(51873),i=r(659),o=r(59350),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},72641:function(t,e){"use strict";e.A=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},72903:function(t,e,r){var n=r(23805),i=r(55527),o=r(90181),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=i(t),r=[];for(var u in t)("constructor"!=u||!e&&s.call(t,u))&&r.push(u);return r}},72949:function(t,e,r){var n=r(12651);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},73201:function(t){var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},74218:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},74335:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},74733:function(t,e,r){var n=r(21791),i=r(95950);t.exports=function(t,e){return t&&n(e,i(e),t)}},75288:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},75787:function(t,e,r){"use strict";r.d(e,{A:function(){return st}});var n=r(45572),i=r(22080),o=r(72641),s=r(52851),u=r(22031),a=r(37405),c=r(79999),h=r(80154),f=r(39759),l=r(16489),p=r(76912),d=r(15647),v=r(13153),g=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,p.A)(e,(0,l.A)(t)),t=(0,d.A)(t);return e}:v.A,y=r(19042),b=r(33831),m=function(t){return(0,b.A)(t,c.A,g)},A=r(12434),w=Object.prototype.hasOwnProperty,S=r(90565),x=/\w*$/,T=r(241),j=T.A?T.A.prototype:void 0,E=j?j.valueOf:void 0,_=r(1801),O=function(t,e,r){var n,i,o,s=t.constructor;switch(e){case"[object ArrayBuffer]":return(0,S.A)(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return function(t,e){var r=e?(0,S.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,_.A)(t,r);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return(o=new(i=t).constructor(i.source,x.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return n=t,E?Object(E.call(n)):{}}},D=r(50407),R=r(92049),B=r(41200),I=r(53098),V=r(52789),N=r(87222),P=N.A&&N.A.isMap,M=P?(0,V.A)(P):function(t){return(0,I.A)(t)&&"[object Map]"==(0,A.A)(t)},C=r(23149),L=N.A&&N.A.isSet,q=L?(0,V.A)(L):function(t){return(0,I.A)(t)&&"[object Set]"==(0,A.A)(t)},k="[object Arguments]",U="[object Function]",F="[object Object]",H={};H[k]=H["[object Array]"]=H["[object ArrayBuffer]"]=H["[object DataView]"]=H["[object Boolean]"]=H["[object Date]"]=H["[object Float32Array]"]=H["[object Float64Array]"]=H["[object Int8Array]"]=H["[object Int16Array]"]=H["[object Int32Array]"]=H["[object Map]"]=H["[object Number]"]=H[F]=H["[object RegExp]"]=H["[object Set]"]=H["[object String]"]=H["[object Symbol]"]=H["[object Uint8Array]"]=H["[object Uint8ClampedArray]"]=H["[object Uint16Array]"]=H["[object Uint32Array]"]=!0,H["[object Error]"]=H[U]=H["[object WeakMap]"]=!1;var z,K=function t(e,r,n,p,d,v){var b,S=1&r,x=2&r,T=4&r;if(n&&(b=d?n(e,p,d,v):n(e)),void 0!==b)return b;if(!(0,C.A)(e))return e;var j=(0,R.A)(e);if(j){if(b=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&w.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(e),!S)return(0,f.A)(e,b)}else{var E=(0,A.A)(e),_=E==U||"[object GeneratorFunction]"==E;if((0,B.A)(e))return(0,h.A)(e,S);if(E==F||E==k||_&&!d){if(b=x||_?{}:(0,D.A)(e),!S)return x?function(t,e){return(0,u.A)(t,g(t),e)}(e,function(t,e){return t&&(0,u.A)(e,(0,c.A)(e),t)}(b,e)):function(t,e){return(0,u.A)(t,(0,l.A)(t),e)}(e,function(t,e){return t&&(0,u.A)(e,(0,a.A)(e),t)}(b,e))}else{if(!H[E])return d?e:{};b=O(e,E,S)}}v||(v=new i.A);var I=v.get(e);if(I)return I;v.set(e,b),q(e)?e.forEach((function(i){b.add(t(i,r,n,i,e,v))})):M(e)&&e.forEach((function(i,o){b.set(o,t(i,r,n,o,e,v))}));var V=T?x?m:y.A:x?c.A:a.A,N=j?void 0:V(e);return(0,o.A)(N||e,(function(i,o){N&&(i=e[o=i]),(0,s.A)(b,o,t(i,r,n,o,e,v))})),b},$=r(36152),G=r(66318),Z=function(t,e){return e.length<2?t:(0,G.A)(t,function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}(e,0,-1))},W=r(30901),Y=function(t,e){return e=(0,$.A)(e,t),null==(t=Z(t,e))||delete t[(0,W.A)((r=e,n=null==r?0:r.length,n?r[n-1]:void 0))];var r,n},J=r(34963),Q=function(t){return(0,J.A)(t)?void 0:t},X=r(25175),tt=T.A?T.A.isConcatSpreadable:void 0,et=function(t){return(0,R.A)(t)||(0,X.A)(t)||!!(tt&&t&&t[tt])},rt=function t(e,r,n,i,o){var s=-1,u=e.length;for(n||(n=et),o||(o=[]);++s<u;){var a=e[s];r>0&&n(a)?r>1?t(a,r-1,n,i,o):(0,p.A)(o,a):i||(o[o.length]=a)}return o},nt=function(t){return null!=t&&t.length?rt(t,1):[]},it=r(65255),ot=r(46778),st=(z=function(t,e){var r={};if(null==t)return r;var i=!1;e=(0,n.A)(e,(function(e){return e=(0,$.A)(e,t),i||(i=e.length>1),e})),(0,u.A)(t,m(t),r),i&&(r=K(r,7,Q));for(var o=e.length;o--;)Y(r,e[o]);return r},(0,ot.A)((0,it.A)(z,void 0,nt),z+""))},76169:function(t,e,r){var n=r(49653);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},76189:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},76545:function(t,e,r){var n=r(56110)(r(9325),"Set");t.exports=n},76912:function(t,e){"use strict";e.A=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},77199:function(t,e,r){var n=r(49653),i=r(76169),o=r(73201),s=r(93736),u=r(71961);t.exports=function(t,e,r){var a=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new a(+t);case"[object DataView]":return i(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(t,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(t);case"[object RegExp]":return o(t);case"[object Symbol]":return s(t)}}},78096:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},78659:function(t,e,r){var n=r(87133),i=r(99374);t.exports=function(t,e,r){return void 0===r&&(r=e,e=void 0),void 0!==r&&(r=(r=i(r))==r?r:0),void 0!==e&&(e=(e=i(e))==e?e:0),n(i(t),e,r)}},79770:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}},79999:function(t,e,r){"use strict";r.d(e,{A:function(){return c}});var n=r(2505),i=r(23149),o=r(97271),s=Object.prototype.hasOwnProperty,u=function(t){if(!(0,i.A)(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=(0,o.A)(t),r=[];for(var n in t)("constructor"!=n||!e&&s.call(t,n))&&r.push(n);return r},a=r(38446),c=function(t){return(0,a.A)(t)?(0,n.A)(t,!0):u(t)}},80079:function(t,e,r){var n=r(63702),i=r(70080),o=r(24739),s=r(48655),u=r(31175);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=s,a.prototype.set=u,t.exports=a},80154:function(t,e,r){"use strict";var n=r(41917),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i?n.A.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.A=function(t,e){if(e)return t.slice();var r=t.length,n=u?u(r):new t.constructor(r);return t.copy(n),n}},80243:function(t,e,r){"use strict";r.d(e,{ai:function(){return T}});var n=r(96540),i=r(98587),o=r(58168),s=r(9417),u=r(77387),a=r(4146);function c(t){console.warn("loadable: "+t)}var h=n.createContext(),f="__LOADABLE_REQUIRED_CHUNKS__";var l={initialChunks:{}},p="PENDING",d="REJECTED",v=function(t){return t};function g(t){var e=t.defaultResolveComponent,r=void 0===e?v:e,c=t.render,f=t.onLoad;function g(t,e){void 0===e&&(e={});var v=function(t){return"function"==typeof t?{requireAsync:t,resolve:function(){},chunkName:function(){}}:t}(t),g={};function y(t){return e.cacheKey?e.cacheKey(t):v.resolve?v.resolve(t):"static"}function b(t,n,i){var o=e.resolveComponent?e.resolveComponent(t,n):r(t);return a(i,o,{preload:!0}),o}var m,A,w=function(t){var e=y(t),r=g[e];return r&&r.status!==d||((r=v.requireAsync(t)).status=p,g[e]=r,r.then((function(){r.status="RESOLVED"}),(function(e){console.error("loadable-components: failed to asynchronously load component",{fileName:v.resolve(t),chunkName:v.chunkName(t),error:e?e.message:e}),r.status=d}))),r},S=function(t){function r(r){var n;return(n=t.call(this,r)||this).state={result:null,error:null,loading:!0,cacheKey:y(r)},function(t,e){if(!t){var r=new Error("loadable: "+e);throw r.framesToPop=1,r.name="Invariant Violation",r}}(!r.__chunkExtractor||v.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),r.__chunkExtractor?(!1===e.ssr||(v.requireAsync(r).catch((function(){return null})),n.loadSync(),r.__chunkExtractor.addChunk(v.chunkName(r))),(0,s.A)(n)):(!1!==e.ssr&&(v.isReady&&v.isReady(r)||v.chunkName&&l.initialChunks[v.chunkName(r)])&&n.loadSync(),n)}(0,u.A)(r,t),r.getDerivedStateFromProps=function(t,e){var r=y(t);return(0,o.A)({},e,{cacheKey:r,loading:e.loading||e.cacheKey!==r})};var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0;var t=this.getCache();t&&t.status===d&&this.setCache(),this.state.loading&&this.loadAsync()},n.componentDidUpdate=function(t,e){e.cacheKey!==this.state.cacheKey&&this.loadAsync()},n.componentWillUnmount=function(){this.mounted=!1},n.safeSetState=function(t,e){this.mounted&&this.setState(t,e)},n.getCacheKey=function(){return y(this.props)},n.getCache=function(){return g[this.getCacheKey()]},n.setCache=function(t){void 0===t&&(t=void 0),g[this.getCacheKey()]=t},n.triggerOnLoad=function(){var t=this;f&&setTimeout((function(){f(t.state.result,t.props)}))},n.loadSync=function(){if(this.state.loading)try{var t=b(v.requireSync(this.props),this.props,T);this.state.result=t,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:v.resolve(this.props),chunkName:v.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},n.loadAsync=function(){var t=this,e=this.resolveAsync();return e.then((function(e){var r=b(e,t.props,T);t.safeSetState({result:r,loading:!1},(function(){return t.triggerOnLoad()}))})).catch((function(e){return t.safeSetState({error:e,loading:!1})})),e},n.resolveAsync=function(){var t=this.props,e=(t.__chunkExtractor,t.forwardedRef,(0,i.A)(t,["__chunkExtractor","forwardedRef"]));return w(e)},n.render=function(){var t=this.props,r=t.forwardedRef,n=t.fallback,s=(t.__chunkExtractor,(0,i.A)(t,["forwardedRef","fallback","__chunkExtractor"])),u=this.state,a=u.error,h=u.loading,f=u.result;if(e.suspense&&(this.getCache()||this.loadAsync()).status===p)throw this.loadAsync();if(a)throw a;var l=n||e.fallback||null;return h?l:c({fallback:l,result:f,options:e,props:(0,o.A)({},s,{ref:r})})},r}(n.Component),x=(A=function(t){return n.createElement(h.Consumer,null,(function(e){return n.createElement(m,Object.assign({__chunkExtractor:e},t))}))},(m=S).displayName&&(A.displayName=m.displayName+"WithChunkExtractor"),A),T=n.forwardRef((function(t,e){return n.createElement(x,Object.assign({forwardedRef:e},t))}));return T.displayName="Loadable",T.preload=function(t){T.load(t)},T.load=function(t){return w(t)},T}return{loadable:g,lazy:function(t,e){return g(t,(0,o.A)({},e,{suspense:!0}))}}}var y=g({defaultResolveComponent:function(t){return t.__esModule?t.default:t.default||t},render:function(t){var e=t.result,r=t.props;return n.createElement(e,r)}}),b=y.loadable,m=y.lazy,A=g({onLoad:function(t,e){t&&e.forwardedRef&&("function"==typeof e.forwardedRef?e.forwardedRef(t):e.forwardedRef.current=t)},render:function(t){var e=t.result,r=t.props;return r.children?r.children(e):null}}),w=A.loadable,S=A.lazy,x="undefined"!=typeof window;function T(t,e){void 0===t&&(t=function(){});var r=void 0===e?{}:e,n=r.namespace,i=void 0===n?"":n,o=r.chunkLoadingGlobal,s=void 0===o?"__LOADABLE_LOADED_CHUNKS__":o;if(!x)return c("`loadableReady()` must be called in browser only"),t(),Promise.resolve();var u=null;if(x){var a=function(t){return""+t+f}(i),h=document.getElementById(a);if(h){u=JSON.parse(h.textContent);var p=document.getElementById(a+"_ext");if(!p)throw new Error("loadable-component: @loadable/server does not match @loadable/component");JSON.parse(p.textContent).namedChunks.forEach((function(t){l.initialChunks[t]=!0}))}}if(!u)return c("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),t(),Promise.resolve();var d=!1;return new Promise((function(t){window[s]=window[s]||[];var e=window[s],r=e.push.bind(e);function n(){u.every((function(t){return e.some((function(e){return e[0].indexOf(t)>-1}))}))&&(d||(d=!0,t()))}e.push=function(){r.apply(void 0,arguments),n()},n()})).then(t)}var j=b;j.lib=w,m.lib=S,e.Ay=j},80945:function(t,e,r){var n=r(80079),i=r(68223),o=r(53661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(t,e),this.size=r.size,this}},81042:function(t,e,r){var n=r(56110)(Object,"create");t.exports=n},81121:function(t,e){"use strict";var r=Function.prototype.toString;e.A=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},82199:function(t,e,r){var n=r(14528),i=r(56449);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},83349:function(t,e,r){var n=r(82199),i=r(86375),o=r(37241);t.exports=function(t){return n(t,o,i)}},83729:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},84171:function(t,e,r){"use strict";var n=r(28562),i=function(){try{var t=(0,n.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.A=i},86009:function(t,e,r){t=r.nmd(t);var n=r(34840),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&n.process,u=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=u},86375:function(t,e,r){var n=r(14528),i=r(28879),o=r(4664),s=r(63345),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,o(t)),t=i(t);return e}:s;t.exports=u},86586:function(t,e,r){"use strict";var n=r(92049),i=r(61882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.A=function(t,e){if((0,n.A)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,i.A)(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},87133:function(t){t.exports=function(t,e,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==e&&(t=t>=e?t:e)),t}},87222:function(t,e,r){"use strict";var n=r(72136),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i&&n.A.process,u=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();e.A=u},87296:function(t,e,r){var n,i=r(55481),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},87730:function(t,e,r){var n=r(29172),i=r(27301),o=r(86009),s=o&&o.isMap,u=s?i(s):n;t.exports=u},88055:function(t,e,r){var n=r(9999);t.exports=function(t){return n(t,5)}},88984:function(t,e,r){var n=r(55527),i=r(3650),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},89469:function(t,e,r){"use strict";r.d(e,{A:function(){return u}});var n=r(66984),i=function(t,e){for(var r=t.length;r--;)if((0,n.A)(t[r][0],e))return r;return-1},o=Array.prototype.splice;function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(t){var e=this.__data__,r=i(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))},s.prototype.get=function(t){var e=this.__data__,r=i(e,t);return r<0?void 0:e[r][1]},s.prototype.has=function(t){return i(this.__data__,t)>-1},s.prototype.set=function(t,e){var r=this.__data__,n=i(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var u=s},89610:function(t,e,r){"use strict";var n=r(2383),i=r(23149);e.A=function(t){if(!(0,i.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},89935:function(t){t.exports=function(){return!1}},90181:function(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},90289:function(t,e,r){var n=r(12651);t.exports=function(t){return n(this,t).get(t)}},90565:function(t,e,r){"use strict";var n=r(43988);e.A=function(t){var e=new t.constructor(t.byteLength);return new n.A(e).set(new n.A(t)),e}},90938:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},92049:function(t,e){"use strict";var r=Array.isArray;e.A=r},92271:function(t,e,r){var n=r(21791),i=r(4664);t.exports=function(t,e){return n(t,i(t),e)}},93243:function(t,e,r){var n=r(56110),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},93290:function(t,e,r){t=r.nmd(t);var n=r(9325),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=u?u(r):new t.constructor(r);return t.copy(n),n}},93736:function(t,e,r){var n=r(51873),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},95950:function(t,e,r){var n=r(70695),i=r(88984),o=r(64894);t.exports=function(t){return o(t)?n(t):i(t)}},97271:function(t,e){"use strict";var r=Object.prototype;e.A=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},99374:function(t,e,r){var n=r(54128),i=r(23805),o=r(44394),s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,a=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=u.test(t);return r||a.test(t)?c(t.slice(2),r?2:8):s.test(t)?NaN:+t}}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[689],{679:function(e){e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},723:function(e,t,n){var r=n(90646),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,c=[];e.forEach((function(l){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void t(a)}var c=new FileReader;c.onload=function(){var e=c.result;"string"!=typeof e&&r(!1),t(e)},c.onerror=function(){t("")},c.readAsText(e)}}(l,(function(n){a++,n&&c.push(n.slice(0,5e3)),a==e.length&&t(c.join("\r"))}))}))}},953:function(e){e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},3694:function(e,t,n){var r=n(31296);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},3885:function(e){var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=n},3914:function(e,t,n){var r,o=n(61708),i=n(9404),a=n(56408),c=i.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),l=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),u=c(n.keySeq().zip(l));return null!=t&&i.is(t,u)?t:u}};e.exports=l},5091:function(e,t,n){var r=n(49938),o=n(3885),i=n(12242),a=n(14134),c=n(51103).notEmptyKey,l=n(88372),u=n(47381),s=n(56408),f=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,p=n.isCollapsed,d=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!d){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var g=a.parentNode;if(null==g)return;a.nodeValue=g.textContent;for(var h=g.firstChild;null!=h;h=h.nextSibling)h!==a&&g.removeChild(h)}var y=a.textContent,v=e._latestEditorState,m=s(l(a)),S=o.decode(m),b=S.blockKey,k=S.decoratorKey,C=S.leafKey,_=v.getBlockTree(b).getIn([k,"leaves",C]),E=_.start,O=_.end,D=v.getCurrentContent(),x=D.getBlockForKey(b),w=x.getText().slice(E,O);if(y.endsWith("\n\n")&&(y=y.slice(0,-1)),y!==w){var K,T,M,B,A=v.getSelection(),F=A.merge({anchorOffset:E,focusOffset:O,isBackward:!1}),R=x.getEntityAt(E),L=c(R)?D.getEntity(R):null,I="MUTABLE"===(null!=L?L.getMutability():null),P=I?"spellcheck-change":"apply-entity",N=r.replaceText(D,F,y,x.getInlineStyleAt(E),I?x.getEntityAt(E):null);if(f)K=n.anchorOffset,T=n.focusOffset,B=(M=E+Math.min(K,T))+Math.abs(K-T),K=M,T=B;else{var j=y.length-w.length;M=A.getStartOffset(),B=A.getEndOffset(),K=p?B+j:M,T=B+j}var U=N.merge({selectionBefore:D.getSelectionAfter(),selectionAfter:A.merge({anchorOffset:K,focusOffset:T})});e.update(i.push(v,U,P))}else{var H=t.nativeEvent.inputType;if(H){var W=function(e,t){return"deleteContentBackward"===e?u(t):t}(H,v);if(W!==v)return e.restoreEditorDOM(),void e.update(W)}}}}},5407:function(e,t,n){var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,n(9404).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},6991:function(e){var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},7018:function(e,t,n){var r=n(49938),o=n(12242),i=n(60286),a=n(56408),c={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return c.toggleInlineStyle(e,"BOLD");case"italic":return c.toggleInlineStyle(e,"ITALIC");case"underline":return c.toggleInlineStyle(e,"UNDERLINE");case"code":return c.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return c.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return c.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),l=n.merge({blockMap:a,selectionAfter:t});if(l!==n)return o.push(e,l,"remove-range")}var u=c.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var c=n.getBlockAfter(i);if(!c||"atomic"!==c.getType())return null;var l=t.merge({focusKey:c.getKey(),focusOffset:c.getLength()}),u=r.removeRange(n,l,"forward");return u!==n?o.push(e,u,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var c=t.getCurrentContent(),l=c.getBlockForKey(a),u=l.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var s=l.getDepth();if(!e.shiftKey&&s===n)return t;var f=i(c,r,e.shiftKey?-1:1,n);return o.push(t,f,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),c=n.getEndKey(),l=e.getCurrentContent(),u=n;if(i!==c&&0===n.getEndOffset()){var s=a(l.getBlockBefore(c));c=s.getKey(),u=u.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:c,focusOffset:s.getLength(),isBackward:!1})}if(l.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==c})).some((function(e){return"atomic"===e.getType()})))return e;var f=l.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(l,u,f),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?c.toggleBlockType(e,"code-block"):c.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,c=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(c,n,t):r.applyInlineStyle(c,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o).getType(),c=i.getBlockBefore(o);if("code-block"===a&&c&&"code-block"===c.getType()&&0!==c.getLength())return null;if("unstyled"!==a)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=c},7376:function(e,t,n){var r=n(65224);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},7470:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(56840),i=n(65224),a=n(91439),c=n(77862),l=n(20702),u=n(90646),s=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l(e),entityRanges:c(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,c=[],l={},f={},p=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);f[o]||(f[o]=r,n[o]="".concat(p),p++)})),function(e,t,n,a){if(e instanceof o)n.push(s(e,t));else{e instanceof i||u(!1);var c=e.getParentKey(),l=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},s(e,t),{children:[]});c?a[c].children.push(l):n.push(l)}}(e,n,c,l)})),{blocks:c,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t}},9927:function(e,t,n){var r=n(51103).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:o(e.getEntityMap(),n):null}var a=t.getStartKey(),c=t.getStartOffset(),l=e.getBlockForKey(a);return n=c===l.getLength()?null:l.getEntityAt(c),o(e.getEntityMap(),n)}},11608:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(5407),i=n(9404),a=n(90646),c=n(24809),l=(0,i.Map)(),u=c();function s(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var f={getLastCreatedEntityKey:function(){return s("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(e,t,n){return s("DraftEntity.create","contentState.createEntity"),f.__create(e,t,n)},add:function(e){return s("DraftEntity.add","contentState.addEntity"),f.__add(e)},get:function(e){return s("DraftEntity.get","contentState.getEntity"),f.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,u=c()},mergeData:function(e,t){return s("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(e,t)},replaceData:function(e,t){return s("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,n){return f.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return u=c(),l=l.set(u,e),u},__get:function(e){var t=l.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=f.__get(e),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n.getData(),t),i=n.set("data",o);return l=l.set(e,i),i},__replaceData:function(e,t){var n=f.__get(e).set("data",t);return l=l.set(e,n),n}};e.exports=f},12242:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(19981),a=n(97656),c=n(3914),l=n(91381),u=n(9404),s=u.OrderedSet,f=u.Record,p=u.Stack,d=u.OrderedMap,g=u.List,h=f({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),y=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(a.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:p(),redoStack:p(),decorator:n||null,selection:l.createEmpty(r)})},t.create=function(e){var n=e.currentContent,o=r({},e,{treeMap:m(n,e.decorator),directionMap:c.getDirectionMap(n)});return new t(new h(o))},t.fromJS=function(e){return new t(new h(r({},e,{directionMap:null!=e.directionMap?d(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?s(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?a.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?p(e.redoStack.map((function(e){return a.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new l(e.selection):e.selection,treeMap:null!=e.treeMap?d(e.treeMap).map((function(e){return g(e).map((function(e){return i.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?p(e.undoStack.map((function(e){return a.fromJS(e)}))):e.undoStack,currentContent:a.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var a=n.currentContent||e.getCurrentContent();if(o!==r){var c,l=t.get("treeMap");return c=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return i.generate(e,t,r)})))}(a,a.getBlockMap(),l,o,r):m(a,o),void t.merge({decorator:o,treeMap:c,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),a=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return i.generate(o,e,r)})))}(e,a.getBlockMap(),a.getEntityMap(),o)),t.merge(n)})))};var e=t.prototype;function t(e){o(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):S(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):S(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return v(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),v(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new l({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=c.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),u=e.getUndoStack(),s=n;a!==l.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(u=u.push(l),s=s.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(s=s.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var d={currentContent:s,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function v(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(e,t){return e.getBlockMap().map((function(n){return i.generate(e,n,t)})).toOrderedMap()}function S(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):s()}e.exports=y},13136:function(e,t,n){var r=n(47378),o=n(49938),i=n(3885),a=n(12242),c=n(45852),l=n(14134),u=n(16207),s=n(63564),f=n(80120),p=n(9927),d=n(56408),g=l.isBrowser("IE"),h=!1,y=!1,v=null,m={onCompositionStart:function(e){y=!0,function(e){v||(v=new r(s(e))).start()}(e)},onCompositionEnd:function(e){h=!1,y=!1,setTimeout((function(){h||m.resolveComposition(e)}),20)},onSelect:u,onKeyDown:function(e,t){if(!y)return m.resolveComposition(e),void e._onKeyDown(t);t.which!==c.RIGHT&&t.which!==c.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===c.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!y){var t=d(v).stopAndFlushMutations();v=null,h=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var c=i.decode(t),l=c.blockKey,u=c.decoratorKey,s=c.leafKey,f=n.getBlockTree(l).getIn([u,"leaves",s]),d=f.start,g=f.end,h=n.getSelection().merge({anchorKey:l,focusKey:l,anchorOffset:d,focusOffset:g,isBackward:!1}),y=p(r,h),v=r.getBlockForKey(l).getInlineStyleAt(d);r=o.replaceText(r,h,e,v,y),n=a.set(n,{currentContent:r})}));var c=f(n,s(e)).selectionState;e.restoreEditorDOM();var l=g?a.forceSelection(n,c):a.acceptSelection(n,c);e.update(a.push(l,r,"insert-characters"))}else e.update(n)}}};e.exports=m},13387:function(e,t,n){var r=n(96540),o=n(98003),i=(0,n(9404).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},16127:function(e){e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},16207:function(e,t,n){var r=n(67204),o=n(12242),i=n(63564),a=n(80120);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,c=a(n,i(e)),l=c.selectionState;l!==n.getSelection()&&(n=c.needsRecovery?o.forceSelection(n,l):o.acceptSelection(n,l),e.update(n))}}},16268:function(e,t,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(96540),a=n(14134),c=n(90646),l=n(93816),u=a.isBrowser("IE <= 11"),s=function(e){var t,n;function a(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;l(t)||c(!1);var r=t;return n?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},s.componentDidMount=function(){this._forceFlag=!this._forceFlag},s.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},s.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return u?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.Component);e.exports=s},16416:function(e,t,n){var r=n(41952),o=n(9404);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),c=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),s=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===l})).toOrderedMap().merge(o.OrderedMap([[l,i.get(l)]])).map((function(e,t){var o=t===a?c:0,i=t===l?u:e.getLength();return r(e,o,i,n)}));return e.merge({blockMap:i.merge(s),selectionBefore:t,selectionAfter:t})}},18058:function(e,t,n){var r=n(12242),o=n(4909),i=n(69758);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),c=e.editor;1===a.rangeCount&&o(c,a.anchorNode)&&o(c,a.focusNode)&&a.removeAllRanges()}var l=e._latestEditorState,u=l.getSelection();if(u.getHasFocus()){var s=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(l,s))}}},18227:function(e){e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},19248:function(e,t,n){var r=n(14134),o=n(90646),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},19677:function(e){e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},19981:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(18227),i=n(679),a=n(9404),c=a.List,l=a.Repeat,u=a.Record,s=function(){return!0},f=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,n){var r=t.getLength();if(!r)return c.of(new p({start:0,end:0,decoratorKey:null,leaves:c.of(new f({start:0,end:0}))}));var i=[],a=n?n.getDecorations(t,e):c(l(null,r)),u=t.getCharacterList();return o(a,g,s,(function(e,t){var n,r,l,d;i.push(new p({start:e,end:t,decoratorKey:a.get(e),leaves:(n=u.slice(e,t).toList(),r=e,l=[],d=n.map((function(e){return e.getStyle()})).toList(),o(d,g,s,(function(e,t){l.push(new f({start:e+r,end:t+r}))})),c(l))}))})),c(i)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new p(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n,{leaves:null!=t?c(Array.isArray(t)?t:i(t)).map((function(e){return f(e)})):null}))}};function g(e,t){return e===t}e.exports=d},20702:function(e,t,n){var r=n(50580),o=n(18227),i=function(e,t){return e===t},a=function(e){return!!e},c=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var c=[],l=t.map((function(e){return e.has(n)})).toList();return o(l,i,a,(function(t,o){var i=e.getText();c.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),c}(e,t,n)}));return Array.prototype.concat.apply(c,n.toJS())}},22784:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(84379),l=n(3885),u=n(96540),s=n(93529),f=n(2935),p=n(78527),d=n(97392),g=n(41401),h=n(9404),y=n(90646),v=n(55291),m=(h.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),S=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},b=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},k=function(e,t,n,r,o,a){var c={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},l=r(e);return l&&(c.className=l),void 0!==o.customEditable&&(c=i({},c,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),c},C=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",u.createRef()),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var h=r.prototype;return h.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||m(e.selection,e.block.getKey())&&e.forceSelection;return i||a},h.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=f.getScrollParent(n),i=d(o);if(o===window){var a=p(n);(r=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{v(n)||y(!1);var c=n;(r=c.offsetHeight+c.offsetTop-(o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}},h.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,s=t.blockRendererFn,f=t.blockStyleFn,p=t.contentState,d=t.decorator,g=t.editorKey,h=t.editorState,y=t.customStyleFn,v=t.customStyleMap,C=t.direction,_=t.forceSelection,E=t.selection,O=t.tree,D=null;n.children.size&&(D=n.children.reduce((function(t,n){var o=l.encode(n,0,0),c=p.getBlockForKey(n),d=b(c,s),y=d.CustomComponent||r,v=S(c,a),m=v.Element,C=v.wrapperTemplate,_=k(c,g,o,f,d,null),E=i({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:c});return t.push(u.createElement(m,_,u.createElement(y,E))),!C||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(c,p)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var c,s=n.reverse()[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){var f=c.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(u.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":l.encode(d,0,0)},p))}(C,m,t),t}),[]));var x=n.getKey(),w=l.encode(x,0,0),K=b(n,s),T=K.CustomComponent,M=null!=T?u.createElement(T,o({},this.props,{tree:h.getBlockTree(x),blockProps:K.customProps,offsetKey:w,block:n})):u.createElement(c,{block:n,children:D,contentState:p,customStyleFn:y,customStyleMap:v,decorator:d,direction:C,forceSelection:_,hasSelection:m(E,x),selection:E,tree:O});if(n.getParentKey())return M;var B=S(n,a).Element,A=k(n,g,w,f,K,this.wrapperRef);return u.createElement(B,A,M)},r}(u.Component);e.exports=C},23018:function(e,t,n){var r=n(9404),o=r.Map,i=r.OrderedSet,a=r.Record,c=i(),l={style:c,entity:null},u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return s;var t=o({style:c,entity:null}).merge(e),n=f.get(t);if(n)return n;var i=new r(t);return f=f.set(t,i),i},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?i(t):t,entity:Array.isArray(n)?i(n):n})},r}(a(l)),s=new u,f=o([[o(l),s]]);u.EMPTY=s,e.exports=u},24712:function(e,t,n){var r;function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(23018),c=n(56840),l=n(65224),u=n(13387),s=n(11608),f=n(25324),p=n(98003),d=n(6991),g=n(19248),h=n(47282),y=n(9404),v=y.List,m=y.Map,S=y.OrderedSet,b=n(20316),k=n(12623),C=n(55291),_=n(7296),E=h("draft_tree_data_support"),O=new RegExp("\r","g"),D=new RegExp("\n","g"),x=new RegExp("^\n","g"),w=new RegExp(" ","g"),K=new RegExp(" ?","g"),T=new RegExp("​?","g"),M=["bold","bolder","500","600","700","800","900"],B=["light","lighter","normal","100","200","300","400"],A=["className","href","rel","target","title"],F=["alt","className","height","src","width"],R=(i(r={},p("public/DraftStyleDefault/depth0"),0),i(r,p("public/DraftStyleDefault/depth1"),1),i(r,p("public/DraftStyleDefault/depth2"),2),i(r,p("public/DraftStyleDefault/depth3"),3),i(r,p("public/DraftStyleDefault/depth4"),4),r),L=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),I=function(e){return C(e)&&e.style.fontFamily.includes("monospace")?"CODE":null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some((function(n){e.classList.contains(n)&&(t=R[n])})),t},N=function(e){if(!b(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new f(t.href),!0}catch(e){return!1}},j=function(e){if(!_(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!C(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){M.indexOf(r)>=0?e.add("BOLD"):B.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},H=function(e){return"ul"===e||"ol"===e},W=function(){function e(e,t){i(this,"characterList",v()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",s),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=v(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=s,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],S())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(E?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=v(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||H(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,c=this.wrapper;H(i)&&(this.wrapper=i,H(c)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=c}else{var l=this.blockTypeMap.get(i);if(void 0===l)if("#text"!==i)if("br"!==i)if(j(o))this._addImgNode(o,t);else if(N(o))this._addAnchorNode(o,n,t);else{var u=t;L.has(i)&&(u=u.add(L.get(i))),u=U(o,u);var s=I(o);null!=s&&(u=u.add(s)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof l&&(l=this.disambiguate(i,this.wrapper)||l[0]||"unstyled"),!E&&C(o)&&("unordered-list-item"===l||"ordered-list-item"===l)){var g=o;this.currentDepth=P(g,this.currentDepth)}var h=d(),y=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:y,type:l})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=a.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=v()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(x,"")).replace(D," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){k(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(_(e)){var n=e,r={};F.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),h("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(b(e)){var r=e,o={};A.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new f(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r<n?e[r+1].key:null,i.children=v(i.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new l(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return v(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,i=n.characterList;t.contentBlocks.push(new c(o({},e,{text:e.text+r,characterList:e.characterList.concat(i)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=v(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}();e.exports=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:g)(e=e.trim().replace(O,"").replace(w," ").replace(K,"").replace(T,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),m(t)}(t);return new W(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},25377:function(e,t,n){var r=n(14134),o=n(90646),i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,c=Array.from(t.getClientRects());if(n.push(c),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},29215:function(e,t,n){var r=n(88372),o=n(74453),i=n(79450),a=n(90646),c=n(93816),l=n(56408);function u(e,t,n){var i=t,u=r(i);if(null!=u||e&&(e===i||e.firstChild===i)||a(!1),e===i&&(i=i.firstChild,c(i)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length)),0===n){var f=null;if(null!=u)f=u;else{var p=function(e){for(;e.firstChild&&(c(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);f=l(o(p))}return{key:f,offset:0}}var d=i.childNodes[n-1],g=null,h=null;if(o(d)){var y=function(e){for(;e.lastChild&&(c(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(d);g=l(o(y)),h=s(y)}else g=l(u),h=s(d);return{key:g,offset:h}}function s(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,c){var s=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(s&&f)return{selectionState:i(e,l(r(n)),o,l(r(a)),c),needsRecovery:!1};var p=null,d=null,g=!0;return s?(p={key:l(r(n)),offset:o},d=u(t,a,c)):f?(d={key:l(r(a)),offset:c},p=u(t,n,o)):(p=u(t,n,o),d=u(t,a,c),n===a&&o===c&&(g=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,p.key,p.offset,d.key,d.offset),needsRecovery:g}}},30866:function(e,t,n){var r=n(53310),o=n(86044);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),c=t.getEndOffset(),l=o(e,t).getBlockMap(),u=l.keySeq(),s=u.indexOf(n),f=u.indexOf(a)+1;return r(l.slice(s,f).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,c),characterList:o.slice(i,c)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,c),characterList:o.slice(0,c)}):e})))}},30894:function(e,t,n){var r=n(64658);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,c=o.bottom,l=o.left;return 0===i&&0===a&&0===c&&0===l?null:o}},31296:function(e,t,n){var r=n(30866);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},33830:function(e,t,n){var r=n(50580),o=n(9404).OrderedSet,i=r.substr,a=o();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=i(e,0,t.offset).length,o=r+i(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n}},35143:function(e,t,n){var r=n(85889),o=n(95748),i=n(23018),a=n(69083),c=n(56840),l=n(97656),u=n(13387),s=n(87918),f=n(63299),p=n(81124),d=n(11608),g=n(49938),h=n(5407),y=n(12242),v=n(59414),m=n(66429),S=n(7018),b=n(91381),k=n(7470),C=n(50428),_=n(6991),E=n(57811),O=n(30894),D={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:h,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:l,RawDraftContentState:m,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:v,Modifier:g,RichUtils:S,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:s,convertFromHTML:n(24712),convertFromRaw:C,convertToRaw:k,genKey:_,getDefaultKeyBinding:E,getVisibleSelectionRect:O};e.exports=D},35389:function(e){e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},40803:function(e,t,n){var r=n(23018),o=n(9404).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},41952:function(e,t,n){var r=n(23018);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},42474:function(e,t,n){var r=n(92395),o=n(49938),i=n(12242),a=n(88372),c=n(19677),l=n(723),u=n(79450),s=n(35389),f=n(73680),p=n(56408),d={onDragEnd:function(e){e.exitCurrentMode(),g(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),s=e._latestEditorState,d=function(e,t){var n=null,r=null,o=c(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=p(n),r=p(r);var l=p(a(n));return u(t,l,r,l,r)}(t.nativeEvent,s);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=d){var y=n.getFiles();if(y.length>0){if(e.props.handleDroppedFiles&&f(e.props.handleDroppedFiles(d,y)))return;l(y,(function(t){t&&e.update(h(s,d,t))}))}else{var v=e._internalDrag?"internal":"external";e.props.handleDrop&&f(e.props.handleDrop(d,n,v))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(s,d)):e.update(h(s,d,n.getText()))),g(e)}}}};function g(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:s(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function h(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=d},44447:function(e,t,n){var r=n(12242),o=n(14134);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},45170:function(e,t,n){var r=n(49938),o=n(12242),i=n(30866),a=n(56408),c=null,l={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),l=null;if(n.isCollapsed()){var u=n.getAnchorKey(),s=t.getBlockForKey(u).getLength();if(s===n.getAnchorOffset()){var f=t.getKeyAfter(u);if(null==f)return e;l=n.set("focusKey",f).set("focusOffset",0)}else l=n.set("focusOffset",s)}else l=n;l=a(l),c=i(t,l);var p=r.removeRange(t,l,"forward");return p===t?e:o.push(e,p,"remove-range")},paste:function(e){if(!c)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),c);return o.push(e,t,"insert-fragment")}};e.exports=l},47282:function(e){e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},47378:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(14134),i=n(88372),a=n(35389),c=n(9404),l=n(90646),u=n(56408),s=c.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),d=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=s();var n=a(e);n.MutationObserver&&!p?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||l(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=s(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=u(i(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=d},48136:function(e,t,n){var r=n(49938),o=n(12242),i=n(59414),a=n(45852),c=n(45170),l=n(14134),u=n(73680),s=n(88771),f=n(94143),p=n(70525),d=n(64071),g=n(15169),h=n(20070),y=n(47381),v=n(24764),m=n(25935),S=n(8976),b=i.isOptionKeyCommand,k=l.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),l("onEscape"))return;break;case a.TAB:if(l("onTab"))return;break;case a.UP:if(l("onUpArrow"))return;break;case a.RIGHT:if(l("onRightArrow"))return;break;case a.DOWN:if(l("onDownArrow"))return;break;case a.LEFT:if(l("onLeftArrow"))return;break;case a.SPACE:k&&b(t)&&t.preventDefault()}var C=e.props.keyBindingFn(t);if(null!=C&&""!==C)if("undo"!==C){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(C,i,t.timeStamp))){var _=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return v(t);case"delete-word":return p(t);case"backspace":return y(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return s(t,n);case"split-block":return d(t);case"transpose-characters":return m(t);case"move-selection-to-start-of-block":return h(t);case"move-selection-to-end-of-block":return g(t);case"secondary-cut":return c.cut(t);case"secondary-paste":return c.paste(t);default:return t}}(C,i,t);_!==i&&e.update(_)}}else S(t,i,e.update);else if(n===a.SPACE&&k&&b(t)){var E=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,E,"insert-characters"))}}},49884:function(e,t,n){var r=n(96540),o=n(98003),i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);e.exports=i},49938:function(e,t,n){var r=n(23018),o=n(94092),i=n(16416),a=n(80508),c=n(30866),l=n(9404),u=n(19127),s=n(3136),f=n(90646),p=n(5462),d=n(86044),g=n(54435),h=n(53222),y=l.OrderedSet,v={replaceText:function(e,t,n,o,i){var a=d(e,t),c=g(a,t),l=r.create({style:o||y(),entity:i||null});return s(c,c.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||f(!1),v.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=c(e,t),o=v.removeRange(e,t,"backward");return v.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=d(e,t),i=g(o,t);return u(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,c;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),c=e.getBlockForKey(o);var l=t.getStartOffset(),u=t.getEndOffset(),s=i.getEntityAt(l),f=c.getEntityAt(u-1);if(r===o&&s&&s===f){var p=a(e.getEntityMap(),i,c,t,n);return g(e,p)}var h=d(e,t);return g(h,t)},splitBlock:function(e,t){var n=d(e,t),r=g(n,t);return h(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=d(e,t);return i(r,t,n)}};e.exports=v},50046:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(56840),i=n(65224),a=n(24712),c=n(6991),l=n(19248),u=n(47282),s=n(9404),f=n(91721),p=s.List,d=s.Repeat,g=u("draft_tree_data_support"),h=g?i:o,y={processHTML:function(e,t){return a(e,l,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=f(o);var a=c(),l={key:a,type:n,text:o,characterList:p(d(t,o.length))};if(g&&0!==i){var u=i-1;l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},l,{prevSibling:(e[u]=e[u].merge({nextSibling:a})).getKey()})}return e.push(new h(l)),e}),[])}};e.exports=y},50428:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(56840),a=n(65224),c=n(97656),l=n(11608),u=n(62396),s=(n(72490),n(91381)),f=n(40803),p=n(52401),d=n(33830),g=n(6991),h=n(47282),y=n(9404),v=n(90646),m=h("draft_tree_data_support"),S=y.List,b=y.Map,k=y.OrderedMap,C=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||g(),data:b(o),characterList:_(e,t)}},_=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return f(d(n,i||[]),p(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},E=function(e){return r({},e,{key:e.key||g()})},O=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||v(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=l.__create(o,i,a||{})})),n}(e),n=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),o=m&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!m)return function(e,t){return k(e.map((function(e){var n=new i(C(e,t));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(e).blocks:o,t);var c=function(e,t){return e.map(E).reduce((function(n,o,i){Array.isArray(o.children)||v(!1);var c=o.children.map(E),l=new a(r({},C(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:S(c.map((function(e){return e.key})))}));n=n.set(l.getKey(),l);for(var u=O([],c,l);u.length>0;){var s=u.pop(),f=s.parentRef,p=f.getChildKeys(),d=p.indexOf(s.key),g=Array.isArray(s.children);if(!g){g||v(!1);break}var h=s.children.map(E),y=new a(r({},C(s,t),{parent:f.getKey(),children:S(h.map((function(e){return e.key}))),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));n=n.set(y.getKey(),y),u=O(u,h,y)}return n}),k())}(o,t);return c}(e,t),o=n.isEmpty()?new s:s.createEmpty(n.first().getKey());return new c({blockMap:n,entityMap:t,selectionBefore:o,selectionAfter:o})}},51103:function(e){e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},52401:function(e,t,n){var r=n(50580).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},55203:function(e,t,n){var r=n(45228),o=n(16268),i=n(96540),a=n(90646),c=n(12623),l=n(94660).setDraftEditorSelection,u=function(e){var t,n;function u(){for(var t,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return o=void 0,(r="leaf")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=u.prototype;return s._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),u=r+o.length;if(e.hasEdgeWithin(i,r,u)){var s=this.leaf;s||a(!1);var f,p=s.firstChild;p||a(!1),p.nodeType===Node.TEXT_NODE?f=p:c(p)?f=s:(f=p.firstChild)||a(!1),l(e,f,i,r,u)}}},s.shouldComponentUpdate=function(e){var t=this.leaf;return t||a(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},s.componentDidUpdate=function(){this._setSelection()},s.componentDidMount=function(){this._setSelection()},s.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,c=a.customStyleMap,l=a.customStyleFn,u=a.offsetKey,s=a.styleSet,f=s.reduce((function(e,t){var n={},o=c[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(l){var p=l(s,t);f=r(f,p)}return i.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:f},i.createElement(o,null,n))},u}(i.Component);e.exports=u},56840:function(e,t,n){var r=n(23018),o=n(18227),i=n(9404),a=i.List,c=i.Map,l=i.OrderedSet,u=i.Record,s=i.Repeat,f=l(),p=function(e){var t,n;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(s(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},c.findEntityRanges=function(e,t){o(this.getCharacterList(),g,e,t)},i}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:c()}));function d(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=p},57811:function(e,t,n){var r=n(59414),o=n(45852),i=n(14134),a=i.isPlatform("Mac OS X"),c=a&&i.isBrowser("Firefox < 29"),l=r.hasCommandModifier,u=r.isCtrlKeyCommand;function s(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return a&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:s(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&a?"backspace-to-start-of-line":s(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},59414:function(e,t,n){var r=n(14134),o=n(83174),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},60286:function(e){e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),c=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(c),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},62396:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(6991),a=n(90646),c=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},l={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e){for(var t=[].concat(e).reverse();t.length;){var o=t.pop();u=void 0,u=r({},l=o),c(l)&&(u.depth=u.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(l),null!=l.children&&l.children.length>0)||(delete u.children,n.push(u));var i=o.children;Array.isArray(i)||a(!1),t=t.concat([].concat(i.reverse()))}var l,u}(t),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=c(e),a=e.depth||0,l=r({},e,{children:[]});if(o){var u=n[0];if(null==u&&0===a)t.push(l);else if(null==u||u.depth<a-1){var s={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===a?t.push(s):null!=u&&u.children.push(s),s.children.push(l)}else if(u.depth===a-1)u.children.push(l);else{for(;null!=u&&u.depth>=a;)n.shift(),u=n[0];a>0?u.children.push(l):t.push(l)}}else t.push(l)})),r({},e,{blocks:t})}};e.exports=l},63299:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=n(13387),s=n(87918),f=n(13136),p=n(79777),d=n(42474),g=n(97784),h=n(74576),y=n(49884),v=n(953),m=n(12242),S=n(96540),b=n(93529),k=n(2935),C=n(14134),_=n(98003),E=n(6991),O=n(57811),D=n(97392),x=n(47282),w=n(90646),K=n(55291),T=n(56408),M=C.isBrowser("IE"),B=!M,A={edit:g,composite:f,drag:d,cut:null,render:null},F=!1,R=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(S.Component),L=function(e){function t(t){var n;return c(a(n=e.call(this,t)||this),"_blockSelectEvents",void 0),c(a(n),"_clipboard",void 0),c(a(n),"_handler",void 0),c(a(n),"_dragCount",void 0),c(a(n),"_internalDrag",void 0),c(a(n),"_editorKey",void 0),c(a(n),"_placeholderAccessibilityID",void 0),c(a(n),"_latestEditorState",void 0),c(a(n),"_latestCommittedEditorState",void 0),c(a(n),"_pendingStateFromBeforeInput",void 0),c(a(n),"_onBeforeInput",void 0),c(a(n),"_onBlur",void 0),c(a(n),"_onCharacterData",void 0),c(a(n),"_onCompositionEnd",void 0),c(a(n),"_onCompositionStart",void 0),c(a(n),"_onCopy",void 0),c(a(n),"_onCut",void 0),c(a(n),"_onDragEnd",void 0),c(a(n),"_onDragOver",void 0),c(a(n),"_onDragStart",void 0),c(a(n),"_onDrop",void 0),c(a(n),"_onInput",void 0),c(a(n),"_onFocus",void 0),c(a(n),"_onKeyDown",void 0),c(a(n),"_onKeyPress",void 0),c(a(n),"_onKeyUp",void 0),c(a(n),"_onMouseDown",void 0),c(a(n),"_onMouseUp",void 0),c(a(n),"_onPaste",void 0),c(a(n),"_onSelect",void 0),c(a(n),"editor",void 0),c(a(n),"editorContainer",void 0),c(a(n),"focus",void 0),c(a(n),"blur",void 0),c(a(n),"setMode",void 0),c(a(n),"exitCurrentMode",void 0),c(a(n),"restoreEditorDOM",void 0),c(a(n),"setClipboard",void 0),c(a(n),"getClipboard",void 0),c(a(n),"getEditorKey",void 0),c(a(n),"update",void 0),c(a(n),"onDragEnter",void 0),c(a(n),"onDragLeave",void 0),c(a(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),c(a(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=k.getScrollParent(o),a=e||D(i),c=a.x,l=a.y;K(o)||w(!1),o.focus(),i===window?window.scrollTo(c,l):b.setTop(i,l),r||n.update(m.forceSelection(t,t.getSelection()))}})),c(a(n),"blur",(function(){var e=n.editor;e&&(K(e)||w(!1),e.blur())})),c(a(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,a=t.onCopy,c=i({},A.edit);r&&(c.onPaste=r),o&&(c.onCut=o),a&&(c.onCopy=a);var l=i({},A,{edit:c});n._handler=l[e]})),c(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),c(a(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),c(a(n),"setClipboard",(function(e){n._clipboard=e})),c(a(n),"getClipboard",(function(){return n._clipboard})),c(a(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),c(a(n),"onDragEnter",(function(){n._dragCount++})),c(a(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||E(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}l(t,e);var r=t.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(h?h((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:T(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return S.createElement(y,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleFn,c=e.customStyleMap,l=e.editorState,u=e.preventScroll,f=e.readOnly,d=e.textAlignment,g=e.textDirectionality,h=_({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),y=this.props.role||"textbox",v="combobox"===y?!!this.props.ariaExpanded:null,m={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},s,c),customStyleFn:a,editorKey:this._editorKey,editorState:l,preventScroll:u,textDirectionality:g};return S.createElement("div",{className:h},this._renderPlaceholder(),S.createElement("div",{className:_("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},S.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:_({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:f?null:y,spellCheck:B&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},S.createElement(R,{editor:this,editorState:l}),S.createElement(p,o({},m,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!F&&x("draft_ods_enabled")&&(F=!0,v.initODS()),this.setMode("edit"),M&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):n.g.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(S.Component);c(L,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:O,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=L},63564:function(e,t,n){var r=n(90646),o=n(55291);e.exports=function(e){var t=e.editorContainer;return t||r(!1),o(t.firstChild)||r(!1),t.firstChild}},64658:function(e,t,n){var r=n(25377);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var c=t[1];n=c.top,o=c.right,i=c.bottom,a=c.left}else{var l=t[0];n=l.top,o=l.right,i=l.bottom,a=l.left}for(var u=1;u<t.length;u++){var s=t[u];0!==s.height&&0!==s.width&&(n=Math.min(n,s.top),o=Math.max(o,s.right),i=Math.max(i,s.bottom),a=Math.min(a,s.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},65224:function(e,t,n){var r=n(23018),o=n(18227),i=n(9404),a=i.List,c=i.Map,l=i.OrderedSet,u=i.Record,s=i.Repeat,f=l(),p={parent:null,characterList:a(),data:c(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},g=function(e,t){return e.getEntity()===t.getEntity()},h=function(e){var t,n;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(s(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.getChildKeys=function(){return this.get("children")},c.getParentKey=function(){return this.get("parent")},c.getPrevSiblingKey=function(){return this.get("prevSibling")},c.getNextSiblingKey=function(){return this.get("nextSibling")},c.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},c.findEntityRanges=function(e,t){o(this.getCharacterList(),g,e,t)},i}(u(p));e.exports=h},66429:function(){},67204:function(e){e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},68382:function(e){e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,c=r,l=null,u=null,s=0;s<i.length;s++){if(e<(a=c+i[s].length)&&c<t)null!==l||(l=c),u=a;else if(null!==l)break;c=a}var f=r+n.length,p=l===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:l!==r&&l--),{start:l,end:u}}}},69083:function(e,t,n){var r=n(9404).List,o=function(){function e(e){var t,n;n=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},69311:function(e,t,n){var r=n(90646);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},71803:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(22784),a=n(3885),c=n(96540),l=n(56408),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),c=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return o!==i||a!==c||l!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,u=e.customStyleMap,s=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,g=f.getCurrentContent(),h=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=l(f.getDirectionMap()),S=[],b=g.getBlocksAsArray()[0];b;){var k=b.getKey(),C={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:g,customStyleFn:s,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:h,block:b,direction:d||m.get(k),tree:f.getBlockTree(k)},_=(t.get(b.getType())||t.get("unstyled")).wrapper;S.push({block:c.createElement(i,o({key:k},C)),wrapperTemplate:_,key:k,offsetKey:a.encode(k,0,0)});var E=b.getNextSiblingKey();b=E?g.getBlockForKey(E):null}for(var O=[],D=0;D<S.length;){var x=S[D];if(x.wrapperTemplate){var w=[];do{w.push(S[D].block),D++}while(D<S.length&&S[D].wrapperTemplate===x.wrapperTemplate);var K=c.cloneElement(x.wrapperTemplate,{key:x.key+"-wrap","data-offset-key":x.offsetKey},w);O.push(K)}else O.push(x.block),D++}return c.createElement("div",{"data-contents":"true"},O)},r}(c.Component);e.exports=u},71988:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(3885),a=n(96540),c=n(68307),l=n(55822),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,u=e.decorator,s=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,g=t.getKey(),h=p.get("leaves"),y=u.getComponentForKey(s),v=u.getPropsForKey(s),m=i.encode(g,parseInt(s,10),0),S=d.slice(h.first().get("start"),h.last().get("end")),b=l.getHTMLDirIfDifferent(c.getDirection(S),f);return a.createElement(y,o({},v,{contentState:r,decoratedText:S,dir:b,key:m,entityKey:t.getEntityAt(p.get("start")),offsetKey:m}),n)},r}(a.Component);e.exports=u},72208:function(e,t,n){var r=n(95748),o=n(23018),i=n(92395),a=n(49938),c=n(50046),l=n(12242),u=n(7018),s=n(9927),f=n(723),p=n(73680),d=n(73676);function g(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var h=n.getFiles(),y=n.getText();if(h.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(h)))return;return void f(h,(function(t){if(t=t||y){var n=e._latestEditorState,i=d(t),f=o.create({style:n.getCurrentInlineStyle(),entity:s(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),g=c.processText(i,f,p),h=r.createFromArray(g),v=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);e.update(l.push(n,v,"insert-fragment"))}}))}}var v=[],m=n.getText(),S=n.getHTML(),b=e._latestEditorState;if(e.props.formatPastedText){var k=e.props.formatPastedText(m,S);m=k.text,S=k.html}if(!e.props.handlePastedText||!p(e.props.handlePastedText(m,S,b))){if(m&&(v=d(m)),!e.props.stripPastedStyles){var C,_=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&_){if(-1!==(null===(C=S)||void 0===C?void 0:C.indexOf(e.getEditorKey()))||1===v.length&&1===_.size&&_.first().getText()===m)return void e.update(g(e._latestEditorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(v,_))return void e.update(g(e._latestEditorState,_));if(S){var E=c.processHTML(S,e.props.blockRenderMap);if(E){var O=E.contentBlocks,D=E.entityMap;if(O){var x=r.createFromArray(O);return void e.update(g(e._latestEditorState,x,D))}}}e.setClipboard(null)}if(v.length){var w=o.create({style:b.getCurrentInlineStyle(),entity:s(b.getCurrentContent(),b.getSelection())}),K=u.getCurrentBlockType(b),T=c.processText(v,w,K),M=r.createFromArray(T);e.update(g(e._latestEditorState,M))}}}},72490:function(e,t,n){n(14594),e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();return(null==i||t.get(i).getPrevSiblingKey()===n)&&!(null!==i&&null!==o&&o===i||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),c=i.getNextSiblingKey();if(a.size>0){null!=c&&o.unshift(c);var l=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return!1;r=l.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},73722:function(e,t,n){var r=n(49938),o=n(12242),i=n(14134),a=n(9927),c=n(73680),l=n(17759),u=n(56408),s=n(19765),f=i.isBrowser("Firefox");function p(e,t,n,i,a){var c=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return o.push(e,c,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&c(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),g=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var h,y=p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),v=!1;if(v||(v=l(e._latestCommittedEditorState)),!v){var m=n.getBlockTree(g),S=y.getBlockTree(g);v=m.size!==S.size||m.zip(S).some((function(e){var t=e[0],n=e[1],o=t.get("start"),i=o+(o>=d?r.length:0),a=t.get("end"),c=a+(a>=d?r.length:0),l=n.get("start"),u=n.get("end"),s=n.get("decoratorKey");return t.get("decoratorKey")!==s||t.get("leaves").size!==n.get("leaves").size||i!==l||c!==u||null!=s&&u-l!=a-o}))}if(v||(h=r,v=f&&("'"==h||"/"==h)),v||(v=u(y.getDirectionMap()).get(g)!==u(n.getDirectionMap()).get(g)),v)return t.preventDefault(),y=o.set(y,{forceSelection:!0}),void e.update(y);y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),e._pendingStateFromBeforeInput=y,s((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},73919:function(e,t,n){var r=n(49938),o=n(12242),i=n(2935),a=n(31296),c=n(97392),l=n(64316);e.exports=function(e,t){var n,u=e._latestEditorState,s=u.getSelection(),f=t.target;if(s.isCollapsed())t.preventDefault();else{if(l(f)){var p=f;n=c(i.getScrollParent(p))}var d=a(u);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(u))}),0)}}},73998:function(e,t,n){var r="['‘’]",o="\\s|(?![_])"+n(77405).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function c(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var l={getBackward:function(e){return c(e,!0)},getForward:function(e){return c(e,!1)}};e.exports=l},74453:function(e,t,n){var r=n(93816);e.exports=function e(t){if(r(t)){var n=t,o=n.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<n.childNodes.length;i++){var a=e(n.childNodes[i]);if(a)return a}}return null}},74576:function(e,t,n){var r=n(40961).unstable_flushControlled;e.exports=r},74861:function(e){e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},77862:function(e,t,n){var r=n(91439),o=n(50580).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var c=e.getText(),l=e.getEntityAt(i);n.push({offset:o(c.slice(0,i)),length:o(c.slice(i,a)),key:Number(t[r.stringify(l)])})})),n}},79450:function(e,t,n){var r=n(3885),o=n(56408);e.exports=function(e,t,n,i,a){var c=o(e.getSelection());if(!t||!i)return c;var l=r.decode(t),u=l.blockKey,s=e.getBlockTree(u),f=s&&s.getIn([l.decoratorKey,"leaves",l.leafKey]),p=r.decode(i),d=p.blockKey,g=e.getBlockTree(d),h=g&&g.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!h)return c;var y=f.get("start"),v=h.get("start"),m=f?y+n:null,S=h?v+a:null;if(c.getAnchorKey()===u&&c.getAnchorOffset()===m&&c.getFocusKey()===d&&c.getFocusOffset()===S)return c;var b=!1;if(u===d){var k=f.get("end"),C=h.get("end");b=v===y&&C===k?a<n:v<y}else b=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===u||e===d})).first()===d;return c.merge({anchorKey:u,anchorOffset:m,focusKey:d,focusOffset:S,isBackward:b})}},79777:function(e,t,n){var r=n(47282)("draft_tree_data_support");e.exports=n(r?71803:93659)},80120:function(e,t,n){var r=n(29215);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,c=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,i,a,c)}},80508:function(e,t,n){var r=n(68382),o=n(69311),i=n(90646);function a(e,t,n,a,c,l,u){var s=n.getStartOffset(),f=n.getEndOffset(),p=e.__get(c).getMutability(),d=u?s:f;if("MUTABLE"===p)return n;var g=o(t,c).filter((function(e){return d<=e.end&&d>=e.start}));1!=g.length&&i(!1);var h=g[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1});l||(u?f=h.end:s=h.start);var y=r.getRemovalRange(s,f,t.getText().slice(h.start,h.end),h.start,a);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),c=r.getEndOffset(),l=t.getEntityAt(i),u=n.getEntityAt(c-1);if(!l&&!u)return r;var s=r;if(l&&l===u)s=a(e,t,s,o,l,!0,!0);else if(l&&u){var f=a(e,t,s,o,l,!1,!0),p=a(e,n,s,o,u,!1,!1);s=s.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(l){var d=a(e,t,s,o,l,!1,!0);s=s.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var g=a(e,n,s,o,u,!1,!1);s=s.merge({focusOffset:g.getEndOffset(),isBackward:!1})}return s}},81124:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(55203),a=n(3885),c=n(96540),l=n(93529),u=n(2935),s=n(68307),f=n(55822),p=n(98003),d=n(78527),g=n(97392),h=n(41401),y=n(90646),v=n(55291),m=n(56408),S=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},b=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return o=void 0,(r="_node")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var b=r.prototype;return b.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||S(e.selection,e.block.getKey())&&e.forceSelection},b.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=u.getScrollParent(n),i=g(o);if(o===window){var a=d(n);(r=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+r+10)}else v(n)||y(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},b._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),l=this.props.tree.size-1,u=S(this.props.selection,n);return this.props.tree.map((function(p,d){var g=p.get("leaves");if(0===g.size)return null;var h=g.size-1,y=g.map((function(o,s){var f=a.encode(n,d,s),p=o.get("start"),g=o.get("end");return c.createElement(i,{key:f,offsetKey:f,block:t,start:p,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(p,g),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===l&&s===h})})).toArray(),v=p.get("decoratorKey");if(null==v)return y;if(!e.props.decorator)return y;var S=m(e.props.decorator),b=S.getComponentForKey(v);if(!b)return y;var k=S.getPropsForKey(v),C=a.encode(n,d,0),_=g.first().get("start"),E=g.last().get("end"),O=r.slice(_,E),D=t.getEntityAt(p.get("start")),x=f.getHTMLDirIfDifferent(s.getDirection(O),e.props.direction),w={contentState:e.props.contentState,decoratedText:O,dir:x,start:_,end:E,blockKey:n,entityKey:D,offsetKey:C};return c.createElement(b,o({},k,w,{key:C}),y)})).toArray()},b.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return c.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(c.Component);e.exports=b},84379:function(e,t,n){var r=n(71988),o=n(55203),i=n(3885),a=n(9404),c=n(96540),l=n(98003),u=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,u=e.customStyleMap,s=e.decorator,f=e.direction,p=e.forceSelection,d=e.hasSelection,g=e.selection,h=e.tree,y=t.getKey(),v=t.getText(),m=h.size-1,S=this.props.children||h.map((function(e,l){var h=e.get("decoratorKey"),S=e.get("leaves"),b=S.size-1,k=S.map((function(e,n){var r=i.encode(y,l,n),s=e.get("start"),f=e.get("end");return c.createElement(o,{key:r,offsetKey:r,block:t,start:s,selection:d?g:null,forceSelection:p,text:v.slice(s,f),styleSet:t.getInlineStyleAt(s),customStyleMap:u,customStyleFn:a,isLast:h===m&&n===b})})).toArray();return h&&s?c.createElement(r,{block:t,children:k,contentState:n,decorator:s,decoratorKey:h,direction:f,leafSet:e,text:v,key:l}):k})).toArray();return c.createElement("div",{"data-offset-key":i.encode(y,0,0),className:l({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},S)},a}(c.Component));e.exports=u},85889:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(95748),a=n(23018),c=n(56840),l=n(65224),u=n(49938),s=n(12242),f=n(6991),p=n(47282),d=n(9404),g=n(46059),h=p("draft_tree_data_support"),y=h?l:c,v=d.List,m=d.Repeat,S={insertAtomicBlock:function(e,t,n){var o=e.getCurrentContent(),c=e.getSelection(),l=u.removeRange(o,c,"backward"),p=l.getSelectionAfter(),d=u.splitBlock(l,p),g=d.getSelectionAfter(),S=u.setBlockType(d,g,"atomic"),b=a.create({entity:t}),k={key:f(),type:"atomic",text:n,characterList:v(m(b,n.length))},C={key:f(),type:"unstyled"};h&&(k=r({},k,{nextSibling:C.key}),C=r({},C,{prevSibling:k.key}));var _=[new y(k),new y(C)],E=i.createFromArray(_),O=u.replaceWithFragment(S,g,E),D=O.merge({selectionBefore:c,selectionAfter:O.getSelectionAfter().set("hasFocus",!0)});return s.push(e,D,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var c=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=g(i,t,c,r)}else{var l=u.removeRange(i,n,"backward"),f=l.getSelectionAfter(),p=l.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())o=g(l,t,p,"before");else if(f.getEndOffset()===p.getLength())o=g(l,t,p,"after");else{var d=u.splitBlock(l,f),h=d.getSelectionAfter(),y=d.getBlockForKey(h.getFocusKey());o=g(d,t,y,"before")}}var v=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return s.push(e,v,"move-block")}};e.exports=S},85989:function(e,t,n){var r=n(50580),o=n(19677),i=n(25377),a=n(90646);function c(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var c=e[a];0!==c.width&&1!==c.width&&(n=Math.min(n,c.top),r=Math.min(r,c.bottom),o=Math.max(o,c.top),i=Math.max(i,c.bottom))}return o<=r&&o-n<t&&i-r<t}function l(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=o(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||a(!1),i.appendChild(r);var c=r.getBoundingClientRect();return i.removeChild(r),c.height}(t),u=e.endContainer,s=e.endOffset;for(e.setStart(e.startContainer,0);c(i(e),n)&&(u=e.startContainer,s=e.startOffset,u.parentNode||a(!1),e.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var f=u,p=s-1;;){for(var d=f.nodeValue,g=p;g>=0;g--)if(!(null!=d&&g>0&&r.isSurrogatePair(d,g-1))){if(e.setStart(f,g),!c(i(e),n))break;u=f,s=g}if(-1===g||0===f.childNodes.length)break;p=l(f=f.childNodes[g])}return e.setStart(u,s),e}},87141:function(e,t,n){var r=n(12242);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},87918:function(e){e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},88372:function(e,t,n){var r=n(19677),o=n(74453);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},91381:function(e,t,n){var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var c=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=c&&n>=c},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(9404).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},91439:function(e){var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},93659:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(81124),l=n(3885),u=n(96540),s=n(98003),f=n(50798),p=n(56408),d=function(e,t,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},g=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),c=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return o!==i||a!==c||l!==u||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,s=e.customStyleFn,g=e.editorState,h=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=g.getCurrentContent(),S=g.getSelection(),b=g.mustForceSelection(),k=g.getDecorator(),C=p(g.getDirectionMap()),_=m.getBlocksAsArray(),E=[],O=null,D=null,x=0;x<_.length;x++){var w=_[x],K=w.getKey(),T=w.getType(),M=n(w),B=void 0,A=void 0,F=void 0;M&&(B=M.component,A=M.props,F=M.editable);var R=v||C.get(K),L=l.encode(K,0,0),I={contentState:m,block:w,blockProps:A,blockStyleFn:r,customStyleMap:a,customStyleFn:s,decorator:k,direction:R,forceSelection:b,offsetKey:L,preventScroll:y,selection:S,tree:g.getBlockTree(K)},P=t.get(T)||t.get("unstyled"),N=P.wrapper,j=P.element||t.get("unstyled").element,U=w.getDepth(),H="";r&&(H=r(w)),"li"===j&&(H=f(H,d(T,U,D!==N||null===O||U>O,R)));var W=B||c,z={className:H,"data-block":!0,"data-editor":h,"data-offset-key":L,key:K};void 0!==F&&(z=i({},z,{contentEditable:F,suppressContentEditableWarning:!0}));var J=u.createElement(j,z,u.createElement(W,o({},I,{key:K})));E.push({block:J,wrapperTemplate:N,key:K,offsetKey:L}),O=N?w.getDepth():null,D=N}for(var G=[],q=0;q<E.length;){var V=E[q];if(V.wrapperTemplate){var X=[];do{X.push(E[q].block),q++}while(q<E.length&&E[q].wrapperTemplate===V.wrapperTemplate);var Y=u.cloneElement(V.wrapperTemplate,{key:V.key+"-wrap","data-offset-key":V.offsetKey},X);G.push(Y)}else G.push(V.block),q++}return u.createElement("div",{"data-contents":"true"},G)},r}(u.Component);e.exports=g},94092:function(e,t,n){var r=n(23018),o=n(9404).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),c=t.getStartKey(),l=t.getStartOffset(),u=t.getEndKey(),s=t.getEndOffset(),f=a.skipUntil((function(e,t){return t===c})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){var o,a;c===u?(o=l,a=s):(o=t===c?l:0,a=t===u?s:e.getLength());for(var f,p=e.getCharacterList();o<a;)f=p.get(o),p=p.set(o,i?r.applyStyle(f,n):r.removeStyle(f,n)),o++;return e.set("characterList",p)}));return e.merge({blockMap:a.merge(f),selectionBefore:t,selectionAfter:t})}e.exports=i},95748:function(e,t,n){var r=n(9404).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},97656:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(95748),a=n(23018),c=n(56840),l=n(65224),u=n(11608),s=n(91381),f=n(6991),p=n(679),d=n(47282),g=n(9404),h=n(91721),y=g.List,v=g.Record,m=g.Repeat,S=g.Map,b=g.OrderedMap,k=v({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),C=d("draft_tree_data_support")?l:c,_=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=o.prototype;return c.getEntityMap=function(){return u},c.getBlockMap=function(){return this.get("blockMap")},c.getSelectionBefore=function(){return this.get("selectionBefore")},c.getSelectionAfter=function(){return this.get("selectionAfter")},c.getBlockForKey=function(e){return this.getBlockMap().get(e)},c.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},c.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},c.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},c.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},c.getBlocksAsArray=function(){return this.getBlockMap().toArray()},c.getFirstBlock=function(){return this.getBlockMap().first()},c.getLastBlock=function(){return this.getBlockMap().last()},c.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},c.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},c.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},c.createEntity=function(e,t,n){return u.__create(e,t,n),this},c.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},c.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},c.addEntity=function(e){return u.__add(e),this},c.getEntity=function(e){return u.__get(e)},c.getAllEntities=function(){return u.__getAll()},c.loadWithEntities=function(e){return u.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=i.createFromArray(n),a=r.isEmpty()?new s:s.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:t||u,selectionBefore:a,selectionAfter:a})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=h(e),new C({key:f(),text:e,type:"unstyled",characterList:y(m(a.EMPTY,e.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(e){return new o(r({},e,{blockMap:b(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new s(e.selectionBefore),selectionAfter:new s(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new C(r({},e,{data:S(e.data),characterList:null!=t?y((Array.isArray(t)?t:p(t)).map((function(e){return a.fromJS(e)}))):void 0}))},o}(k);e.exports=_},97784:function(e,t,n){var r=n(14134),o=n(73722),i=n(18058),a=n(87141),c=n(3694),l=n(73919),u=n(16127),s=n(74861),f=n(44447),p=n(5091),d=n(48136),g=n(72208),h=n(16207),y=r.isBrowser("Chrome"),v=r.isBrowser("Firefox"),m=y||v?h:function(e){},S={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:c,onCut:l,onDragOver:u,onDragStart:s,onFocus:f,onInput:p,onKeyDown:d,onPaste:g,onSelect:h,onMouseUp:m,onKeyUp:m};e.exports=S}}]);
|
|
Binary file
|