@zoom/meetingsdk 3.0.0-rc

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.
Files changed (112) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/LICENSE.pdf +0 -0
  3. package/README.md +182 -0
  4. package/dist/css/bootstrap.css +5 -0
  5. package/dist/css/react-select.css +434 -0
  6. package/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  7. package/dist/fonts/glyphicons-halflings-regular.svg +229 -0
  8. package/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  9. package/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  10. package/dist/lib/audio/archival.mp3 +0 -0
  11. package/dist/lib/audio/incoming-msg-chime.mp3 +0 -0
  12. package/dist/lib/audio/m-entry.mp3 +0 -0
  13. package/dist/lib/audio/m-exit.mp3 +0 -0
  14. package/dist/lib/audio/m-wr.mp3 +0 -0
  15. package/dist/lib/audio/meeting_is_now_recorded.mp3 +0 -0
  16. package/dist/lib/audio/raise-hand-chime.mp3 +0 -0
  17. package/dist/lib/audio/recording_is_now_stopped.mp3 +0 -0
  18. package/dist/lib/audio/ring.mp3 +0 -0
  19. package/dist/lib/av/audio.encode.wasm +0 -0
  20. package/dist/lib/av/audio.simd.wasm +0 -0
  21. package/dist/lib/av/audio_simd.min.js +10 -0
  22. package/dist/lib/av/js_audio_process.min.js +10 -0
  23. package/dist/lib/av/js_audio_worklet.min.js +2 -0
  24. package/dist/lib/av/js_audio_worklet_process.min.js +25 -0
  25. package/dist/lib/av/js_audio_worklet_simd.min.js +25 -0
  26. package/dist/lib/av/js_media.min.js +2 -0
  27. package/dist/lib/av/js_sharing_audio_worklet.min.js +2 -0
  28. package/dist/lib/av/sharing_m.min.js +31 -0
  29. package/dist/lib/av/sharing_mtsimd.min.js +31 -0
  30. package/dist/lib/av/sharing_s.min.js +10 -0
  31. package/dist/lib/av/sharing_simd.min.js +10 -0
  32. package/dist/lib/av/vb-resource/dualModel.bin +0 -0
  33. package/dist/lib/av/vb-resource/tf.min.js +18 -0
  34. package/dist/lib/av/vb-resource/vbPreload.js +1 -0
  35. package/dist/lib/av/vb-resource/vbPreloadWorker.js +1 -0
  36. package/dist/lib/av/video.decode.wasm +0 -0
  37. package/dist/lib/av/video.mt.wasm +0 -0
  38. package/dist/lib/av/video.mtsimd.wasm +0 -0
  39. package/dist/lib/av/video.simd.wasm +0 -0
  40. package/dist/lib/av/video_m.min.js +31 -0
  41. package/dist/lib/av/video_mtsimd.min.js +31 -0
  42. package/dist/lib/av/video_s.min.js +10 -0
  43. package/dist/lib/av/video_share_mtsimd.min.js +31 -0
  44. package/dist/lib/av/video_simd.min.js +10 -0
  45. package/dist/lib/av/websipclient.min.js +1 -0
  46. package/dist/lib/image/SanFrancisco.jpg +0 -0
  47. package/dist/lib/image/animation-sprite.png +0 -0
  48. package/dist/lib/image/blur.png +0 -0
  49. package/dist/lib/image/earth.jpg +0 -0
  50. package/dist/lib/image/grass.jpg +0 -0
  51. package/dist/lib/image/mask-circle.png +0 -0
  52. package/dist/lib/image/mask-heart.png +0 -0
  53. package/dist/lib/image/mask-rectangle.png +0 -0
  54. package/dist/lib/image/notification.png +0 -0
  55. package/dist/lib/lang/de-DE.json +1727 -0
  56. package/dist/lib/lang/en-US.json +1727 -0
  57. package/dist/lib/lang/es-ES.json +1727 -0
  58. package/dist/lib/lang/fr-FR.json +1727 -0
  59. package/dist/lib/lang/id-ID.json +1727 -0
  60. package/dist/lib/lang/it-IT.json +1727 -0
  61. package/dist/lib/lang/jp-JP.json +1727 -0
  62. package/dist/lib/lang/ko-KO.json +1727 -0
  63. package/dist/lib/lang/nl-NL.json +1727 -0
  64. package/dist/lib/lang/pl-PL.json +1727 -0
  65. package/dist/lib/lang/pt-PT.json +1727 -0
  66. package/dist/lib/lang/ru-RU.json +1727 -0
  67. package/dist/lib/lang/tr-TR.json +1727 -0
  68. package/dist/lib/lang/vi-VN.json +1727 -0
  69. package/dist/lib/lang/zh-CN.json +1727 -0
  70. package/dist/lib/lang/zh-TW.json +1727 -0
  71. package/dist/lib/vendor/lodash.min.js +140 -0
  72. package/dist/lib/vendor/react-dom.min.js +239 -0
  73. package/dist/lib/vendor/react.min.js +32 -0
  74. package/dist/lib/vendor/redux-thunk.min.js +1 -0
  75. package/dist/lib/vendor/redux.min.js +1 -0
  76. package/dist/lib/webim.min.js +23 -0
  77. package/dist/ui/33f06.svg +647 -0
  78. package/dist/ui/zoomus-websdk-806.umd.min.js +1 -0
  79. package/dist/ui/zoomus-websdk-MobileReportProblemContent.umd.min.js +2 -0
  80. package/dist/ui/zoomus-websdk-ReportProblemContent.umd.min.js +2 -0
  81. package/dist/ui/zoomus-websdk-editor_de-DE.umd.min.js +1 -0
  82. package/dist/ui/zoomus-websdk-editor_es-ES.umd.min.js +1 -0
  83. package/dist/ui/zoomus-websdk-editor_fr-FR.umd.min.js +1 -0
  84. package/dist/ui/zoomus-websdk-editor_id-ID.umd.min.js +1 -0
  85. package/dist/ui/zoomus-websdk-editor_it-IT.umd.min.js +1 -0
  86. package/dist/ui/zoomus-websdk-editor_ja-JP.umd.min.js +1 -0
  87. package/dist/ui/zoomus-websdk-editor_ko-KR.umd.min.js +1 -0
  88. package/dist/ui/zoomus-websdk-editor_nl-NL.umd.min.js +1 -0
  89. package/dist/ui/zoomus-websdk-editor_pl-PL.umd.min.js +1 -0
  90. package/dist/ui/zoomus-websdk-editor_pt-PT.umd.min.js +1 -0
  91. package/dist/ui/zoomus-websdk-editor_ru-RU.umd.min.js +1 -0
  92. package/dist/ui/zoomus-websdk-editor_tr-TR.umd.min.js +1 -0
  93. package/dist/ui/zoomus-websdk-editor_vi-VN.umd.min.js +1 -0
  94. package/dist/ui/zoomus-websdk-editor_zh-CN.umd.min.js +1 -0
  95. package/dist/ui/zoomus-websdk-editor_zh-TW.umd.min.js +1 -0
  96. package/dist/ui/zoomus-websdk-icons.umd.min.js +1 -0
  97. package/dist/ui/zoomus-websdk-loginview.umd.min.js +1 -0
  98. package/dist/ui/zoomus-websdk-lottie-web.umd.min.js +1 -0
  99. package/dist/ui/zoomus-websdk-lottie.umd.min.js +1 -0
  100. package/dist/ui/zoomus-websdk-main-client.umd.min.js +2 -0
  101. package/dist/ui/zoomus-websdk-preview.umd.min.js +2 -0
  102. package/dist/ui/zoomus-websdk-zoommtgMain.umd.min.js +2 -0
  103. package/dist/zoom-meeting-3.0.0.min.js +2 -0
  104. package/dist/zoom-meeting-embedded-ES5.min.js +2 -0
  105. package/dist/zoomus-websdk-embedded.umd.min.js +2 -0
  106. package/dist/zoomus-websdk.umd.min.js +2 -0
  107. package/embedded.d.ts +1567 -0
  108. package/embedded.js +3 -0
  109. package/index.d.ts +2101 -0
  110. package/index.js +4 -0
  111. package/oss_attribution.txt +6432 -0
  112. package/package.json +53 -0
@@ -0,0 +1,23 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.webIM=t():e.webIM=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WEBINAR_QA_COMMAND=t.MEMBER_CHANGE_ACTION=t.POLLING_USER_ACTION=t.POLLING_USER_ACTION_ERROR=t.POLLING_UI_STATUS_INDICATION=t.XMPP_EVENTS=t.XMPP_STATUS=t.NORMAL_EVENTS=t.UI_CALLBACK_EVENT_NAMES=t.WebimStatus=t.WEBINAR_MESSAGE_TYPE=t.USER_ROLE=void 0;!function(e){e.host="10",e.pannelist="20",e.attendee="30"}(t.USER_ROLE||(t.USER_ROLE={})),function(e){e[e.ChatMsgType_to_All=0]="ChatMsgType_to_All",e[e.ChatMsgType_to_Panelist=1]="ChatMsgType_to_Panelist",e[e.ChatMsgType_to_Individual_ccPanelist=2]="ChatMsgType_to_Individual_ccPanelist",e[e.ChatMsgType_to_Individual=3]="ChatMsgType_to_Individual"}(t.WEBINAR_MESSAGE_TYPE||(t.WEBINAR_MESSAGE_TYPE={})),t.WebimStatus={INIT:0,CONNECTING:1,CONNECTED:2,DISCONNECTED:3,RECONNECTING:4,FAIL:5,status:-1,canReopen:!1},function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.POOL="POOL",e.CONNFAIL="CONNFAIL",e.OnlineMembers="OnlineMembers",e.GroupChange="GroupChange",e.RosterChange="RosterChange",e.WebinarQA="WebinarQA",e.Message="Message",e.XMPPStatusResponse="XMPPStatusResponse",e.ON_WS_MESSAGE="ON_WS_MESSAGE",e.ON_WELCOME_MESSAGE="ON_WELCOME_MESSAGE",e.ON_WEBSOCKET_CONNECTED="ON_WEBSOCKET_CONNECTED",e.DELETE_QUESTION_RESPONSE="DELETE_QUESTION_RESPONSE",e.DELETE_COMMENT_RESPONSE="DELETE_COMMENT_RESPONSE",e.POLLING_DOC_UPDATE="POLLING_DOC_UPDATE",e.POLLING_UI_STATUS_UPDATE="POLLING_UI_STATUS_UPDATE",e.POLLING_UI_ACTION_FAIL="POLLING_UI_ACTION_FAIL",e.POLLING_DOWNLOAD_LINK="POLLING_DOWNLOAD_LINK",e.POLLING_DOCS_INFO="POLLING_DOCS_INFO"}(t.UI_CALLBACK_EVENT_NAMES||(t.UI_CALLBACK_EVENT_NAMES={})),function(e){e.SEND_THIS_MESSAGE="SEND_THIS_MESSAGE",e.CLOSE_SOCKET="CLOSE_SOCKET",e.JUST_CLOSE_SOCKET="JUST_CLOSE_SOCKET",e.DISABLE_RECONNECT="DISABLE_RECONNECT"}(t.NORMAL_EVENTS||(t.NORMAL_EVENTS={})),function(e){e.fail="fail",e.success="success"}(t.XMPP_STATUS||(t.XMPP_STATUS={})),function(e){e[e.WS_XMPP_JOIN_REQUEST=24576]="WS_XMPP_JOIN_REQUEST",e[e.WS_XMPP_STATUS_RESPONSE=24577]="WS_XMPP_STATUS_RESPONSE",e[e.WS_XMPP_LOWHAND_FROM_CLIENT=24578]="WS_XMPP_LOWHAND_FROM_CLIENT",e[e.WS_XMPP_LOWHAND_FROM_SERVER=24579]="WS_XMPP_LOWHAND_FROM_SERVER",e[e.WS_XMPP_RAISEHAND_FROM_CLIENT=24580]="WS_XMPP_RAISEHAND_FROM_CLIENT",e[e.WS_XMPP_RAISEHAND_FROM_SERVER=24581]="WS_XMPP_RAISEHAND_FROM_SERVER",e[e.WS_XMPP_WEBINAR_MESSAGE_FROM_CLIENT=24582]="WS_XMPP_WEBINAR_MESSAGE_FROM_CLIENT",e[e.WS_XMPP_WEBINAR_MESSAGE_FROM_SERVER=24583]="WS_XMPP_WEBINAR_MESSAGE_FROM_SERVER",e[e.WS_XMPP_WEBINAR_ANSWER_FROM_CLIENT=24584]="WS_XMPP_WEBINAR_ANSWER_FROM_CLIENT",e[e.WS_XMPP_WEBINAR_ANSWER_FROM_SERVER=24585]="WS_XMPP_WEBINAR_ANSWER_FROM_SERVER",e[e.WS_XMPP_WEBINAR_ANSWERONLINE_FROM_CLIENT=24586]="WS_XMPP_WEBINAR_ANSWERONLINE_FROM_CLIENT",e[e.WS_XMPP_WEBINAR_ANSWERONLINE_FROM_SERVER=24587]="WS_XMPP_WEBINAR_ANSWERONLINE_FROM_SERVER",e[e.WS_XMPP_REOPEN_QUESTION_FROM_CLIENT=24588]="WS_XMPP_REOPEN_QUESTION_FROM_CLIENT",e[e.WS_XMPP_REOPEN_QUESTION_FROM_SERVER=24589]="WS_XMPP_REOPEN_QUESTION_FROM_SERVER",e[e.WS_XMPP_CHANGE_QUESTION_OPEN_STATE_FROM_CLIENT=24590]="WS_XMPP_CHANGE_QUESTION_OPEN_STATE_FROM_CLIENT",e[e.WS_XMPP_CHANGE_QUESTION_OPEN_STATE_FROM_SERVER=24591]="WS_XMPP_CHANGE_QUESTION_OPEN_STATE_FROM_SERVER",e[e.WS_XMPP_ASK_FROM_CLIENT=24592]="WS_XMPP_ASK_FROM_CLIENT",e[e.WS_XMPP_ASK_FROM_SERVER=24593]="WS_XMPP_ASK_FROM_SERVER",e[e.WS_XMPP_BUDDY_FROM_SERVER=24595]="WS_XMPP_BUDDY_FROM_SERVER",e[e.WS_XMPP_PROMOTE_OR_NOT_FROM_CLIENT=24596]="WS_XMPP_PROMOTE_OR_NOT_FROM_CLIENT",e[e.WS_XMPP_PROMOTE_OR_NOT_FROM_SERVER=24597]="WS_XMPP_PROMOTE_OR_NOT_FROM_SERVER",e[e.WS_XMPP_VOTE_FROM_CLIENT=24598]="WS_XMPP_VOTE_FROM_CLIENT",e[e.WS_XMPP_VOTE_FROM_SERVER=24599]="WS_XMPP_VOTE_FROM_SERVER",e[e.WS_XMPP_RENAME_FROM_CLIENT=24600]="WS_XMPP_RENAME_FROM_CLIENT",e[e.WS_XMPP_RENAME_FROM_SERVER=24601]="WS_XMPP_RENAME_FROM_SERVER",e[e.WS_XMPP_USERREMOVE_FROM_CLIENT=24602]="WS_XMPP_USERREMOVE_FROM_CLIENT",e[e.WS_XMPP_USERREMOVE_FROM_SERVER=24603]="WS_XMPP_USERREMOVE_FROM_SERVER",e[e.WS_POLLING_USER_ACTION=24604]="WS_POLLING_USER_ACTION",e[e.WS_POLLING_DOC_UPDATE_INDICATION=24605]="WS_POLLING_DOC_UPDATE_INDICATION",e[e.WS_POLLING_UI_STATUS_INDICATION=24606]="WS_POLLING_UI_STATUS_INDICATION",e[e.WS_POLLING_USER_ACTION_ERROR=24607]="WS_POLLING_USER_ACTION_ERROR",e[e.WS_POLLING_REPORT_DOWNLOAD_LINK_INDICATION=24608]="WS_POLLING_REPORT_DOWNLOAD_LINK_INDICATION",e[e.WS_EXPEL_ATTENDEE=24609]="WS_EXPEL_ATTENDEE",e[e.WS_PRACTICE_SESSION=24610]="WS_PRACTICE_SESSION",e[e.WS_ROLE_CHANGE_REQUEST_SENT=24611]="WS_ROLE_CHANGE_REQUEST_SENT",e[e.WS_EXPEL_ATTENDEE_REQUEST_SENT=24612]="WS_EXPEL_ATTENDEE_REQUEST_SENT",e[e.WS_PRACTICE_SESSION_REQUEST_SENT=24613]="WS_PRACTICE_SESSION_REQUEST_SENT",e[e.WS_XMPP_DELETE_QUESTION_FROM_CLIENT=24614]="WS_XMPP_DELETE_QUESTION_FROM_CLIENT",e[e.WS_XMPP_DELETE_QUESTION_FROM_SERVER=24615]="WS_XMPP_DELETE_QUESTION_FROM_SERVER",e[e.WS_XMPP_DELETE_COMMENT_FROM_CLIENT=24616]="WS_XMPP_DELETE_COMMENT_FROM_CLIENT",e[e.WS_XMPP_DELETE_COMMENT_FROM_SERVER=24617]="WS_XMPP_DELETE_COMMENT_FROM_SERVER",e[e.WS_XMPP_SET_SKIN_TONE=24618]="WS_XMPP_SET_SKIN_TONE",e[e.WS_CONF_POLLING_DOCS_INFO=24619]="WS_CONF_POLLING_DOCS_INFO"}(t.XMPP_EVENTS||(t.XMPP_EVENTS={})),function(e){e[e.ZMPollUIStatus_No_Poll=0]="ZMPollUIStatus_No_Poll",e[e.ZMPollUIStatus_Not_Start=1]="ZMPollUIStatus_Not_Start",e[e.ZMPollUIStatus_Starting_Poll=2]="ZMPollUIStatus_Starting_Poll",e[e.ZMPollUIStatus_In_Progress=3]="ZMPollUIStatus_In_Progress",e[e.ZMPollUIStatus_Doing_Poll=4]="ZMPollUIStatus_Doing_Poll",e[e.ZMPollUIStatus_Submitting_Poll=5]="ZMPollUIStatus_Submitting_Poll",e[e.ZMPollUIStatus_Submitted_Poll=6]="ZMPollUIStatus_Submitted_Poll",e[e.ZMPollUIStatus_Starting_Share=7]="ZMPollUIStatus_Starting_Share",e[e.ZMPollUIStatus_Sharing_Results=8]="ZMPollUIStatus_Sharing_Results",e[e.ZMPollUIStatus_Viewing_Results=9]="ZMPollUIStatus_Viewing_Results",e[e.ZMPollUIStatus_Stopping_Poll=10]="ZMPollUIStatus_Stopping_Poll",e[e.ZMPollUIStatus_Stopping_Share=11]="ZMPollUIStatus_Stopping_Share",e[e.ZMPollUIStatus_Closed=12]="ZMPollUIStatus_Closed",e[e.ZMPollUIStatus_Relaunching_Poll=13]="ZMPollUIStatus_Relaunching_Poll"}(t.POLLING_UI_STATUS_INDICATION||(t.POLLING_UI_STATUS_INDICATION={})),function(e){e[e.ERROR_POLL_CLOSED=1]="ERROR_POLL_CLOSED",e[e.ERROR_INVALID_PARAMS=2]="ERROR_INVALID_PARAMS",e[e.ERROR_WRONG_ACTION=3]="ERROR_WRONG_ACTION",e[e.ERROR_NO_PERMISSION=4]="ERROR_NO_PERMISSION",e[e.ERROR_DUPLICATE_ACTION=5]="ERROR_DUPLICATE_ACTION",e[e.ERROR_RET_WEB_CONNECTION_FAILED=1e3]="ERROR_RET_WEB_CONNECTION_FAILED",e[e.ERROR_RET_RESPOND_DATA_TO_STREAM_FAILED=1001]="ERROR_RET_RESPOND_DATA_TO_STREAM_FAILED",e[e.ERROR_RET_NO_MEETING_ITEM=1002]="ERROR_RET_NO_MEETING_ITEM",e[e.ERROR_RET_NEW_OBJ_FAILED=1003]="ERROR_RET_NEW_OBJ_FAILED",e[e.ERROR_RET_RESPOND_RET_WRONG=1004]="ERROR_RET_RESPOND_RET_WRONG",e[e.ERROR_RET_READ_FROM_PROTO_FAILED=1005]="ERROR_RET_READ_FROM_PROTO_FAILED",e[e.ERROR_RET_TOKEN_EXPIRED=1006]="ERROR_RET_TOKEN_EXPIRED",e[e.ERROR_RET_OVER_TIME=1007]="ERROR_RET_OVER_TIME",e[e.ERROR_POLLING=4400]="ERROR_POLLING",e[e.ERROR_OPEN_POLLING=4401]="ERROR_OPEN_POLLING",e[e.ERROR_SHARE_POLLING=4402]="ERROR_SHARE_POLLING"}(t.POLLING_USER_ACTION_ERROR||(t.POLLING_USER_ACTION_ERROR={})),function(e){e.start="start",e.close="close",e.reopen="reopen",e.startShareResult="share",e.stopShareResult="stopshare",e.submit="submit"}(t.POLLING_USER_ACTION||(t.POLLING_USER_ACTION={})),function(e){e.add="add",e.list="list",e.remove="memberremove",e.rename="rename",e.update="UPDATE"}(t.MEMBER_CHANGE_ACTION||(t.MEMBER_CHANGE_ACTION={})),function(e){e.upvote="upvote",e.downvote="downvote",e.dismiss="dismiss",e.reopen="reopen",e.private="private",e.publicview="publicview",e.publicviewFromServer="make_question_public_view",e.livestart="livestart",e.liveend="liveend",e.livecancel="livecancel",e.deleteQuestion="deletequestion",e.deleteComment="deletecomment"}(t.WEBINAR_QA_COMMAND||(t.WEBINAR_QA_COMMAND={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.POOL_ACTION=void 0,function(e){e.expel="expel",e.promote="promote",e.depromote="depromote",e.memberChange="memberChange",e.putdownhands="putdownhands",e.raisehand="raisehand",e.lowerhand="lowerhand"}(t.POOL_ACTION||(t.POOL_ACTION={}))},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(17);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return Je}),n.d(t,"b",function(){return Ze}),n.d(t,"c",function(){return ne});
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
+ this file except in compliance with the License. You may obtain a copy of the
6
+ License at http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11
+ MERCHANTABLITY OR NON-INFRINGEMENT.
12
+
13
+ See the Apache Version 2.0 License for specific language governing permissions
14
+ and limitations under the License.
15
+ ***************************************************************************** */
16
+ var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}var c="An invariant failed, however the error is obfuscated because this is an production build.",l=[];Object.freeze(l);var _={};function p(){return"undefined"!=typeof window?window:e}function f(){return++Pe.mobxGuid}function h(e){throw d(!1,e),"X"}function d(e,t){if(!e)throw new Error("[mobx] "+(t||c))}Object.freeze(_);function E(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var v=function(){};function S(e){return null!==e&&"object"==typeof e}function O(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function m(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function N(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return S(e)&&!0===e[n]}}function b(e){return void 0!==p().Map&&e instanceof p().Map}function g(e){return e instanceof Set}function A(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function R(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function M(e){return null===e?null:"object"==typeof e?""+e:e}function P(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function T(e,t){m(e,P(),t)}function I(e){return e[P()]=C,e}function L(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function C(){return this}var w=function(){function e(e){void 0===e&&(e="Atom@"+f()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=pe.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return xe(this)},e.prototype.reportChanged=function(){Ce(),function(e){if(e.lowestObserverState===pe.STALE)return;e.lowestObserverState=pe.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===pe.UP_TO_DATE&&(r.isTracing!==fe.NONE&&De(r,e),r.onBecomeStale()),r.dependenciesState=pe.STALE}}(this),we()},e.prototype.toString=function(){return this.name},e}(),x=N("Atom",w);function D(e,t,n){void 0===t&&(t=v),void 0===n&&(n=v);var r,i=new w(e);return nt("onBecomeObserved",i,t,r),tt(i,n),i}function W(e,t){return e===t}var V={identity:W,structural:function(e,t){return Qt(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||W(e,t)}},U={},j={};function k(e,t){var n=t?U:j;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return B(this),this[e]},set:function(t){B(this),this[e]=t}})}function B(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var n in y(e,"__mobxDidRunLazyInitializers",!0),t){var r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function X(e,t){return function(){var n,r=function(r,i,o,a){if(!0===a)return t(r,i,o,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,"__mobxDecorators")){var u=r.__mobxDecorators;y(r,"__mobxDecorators",s({},u))}return r.__mobxDecorators[i]={prop:i,propertyCreator:t,descriptor:o,decoratorTarget:r,decoratorArguments:n},k(i,e)};return G(arguments)?(n=l,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r)}}function G(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function F(e,t,n){return st(e)?e:Array.isArray(e)?ne.array(e,{name:n}):O(e)?ne.object(e,void 0,{name:n}):b(e)?ne.map(e,{name:n}):g(e)?ne.set(e,{name:n}):e}function q(e){return e}function H(e){var t=X(!0,function(t,n,r,i,o){Ut(t,n,r?r.initializer?r.initializer.call(t):r.value:void 0,e)}),n=(void 0!==r&&r.env,t);return n.enhancer=e,n}var Q={deep:!0,name:void 0,defaultDecorator:void 0},K={deep:!1,name:void 0,defaultDecorator:void 0};function $(e){return null==e?Q:"string"==typeof e?{name:e,deep:!0}:e}function J(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?q:F}Object.freeze(Q),Object.freeze(K);var z=H(F),Z=H(function(e,t,n){return null==e?e:Gt(e)||Pt(e)||Ct(e)||Dt(e)?e:Array.isArray(e)?ne.array(e,{name:n,deep:!1}):O(e)?ne.object(e,void 0,{name:n,deep:!1}):b(e)?ne.map(e,{name:n,deep:!1}):g(e)?ne.set(e,{name:n,deep:!1}):h(!1)}),Y=H(q),ee=H(function(e,t,n){return Qt(e,t)?t:e});var te={box:function(e,t){arguments.length>2&&re("box");var n=$(t);return new le(e,J(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&re("shallowBox"),ne.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&re("array");var n=$(t);return new Nt(e,J(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&re("shallowArray"),ne.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&re("map");var n=$(t);return new It(e,J(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&re("shallowMap"),ne.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&re("set");var n=$(t);return new xt(e,J(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&re("object");var r=$(n);return rt({},e,t,r)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&re("shallowObject"),ne.object(e,{},{name:t,deep:!1})},ref:Y,shallow:Z,deep:z,struct:ee},ne=function(e,t,n){if("string"==typeof arguments[1])return z.apply(null,arguments);if(st(e))return e;var r=O(e)?ne.object(e,t,n):Array.isArray(e)?ne.array(e,t):b(e)?ne.map(e,t):g(e)?ne.set(e,t):e;if(r!==e)return r;h(!1)};function re(e){h("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(te).forEach(function(e){return ne[e]=te[e]});var ie=X(!1,function(e,t,n,r,i){var o=n.get,a=n.set,u=i[0]||{};!function(e,t,n){var r=Vt(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new _e(n),Object.defineProperty(e,t,function(e){return kt[e]||(kt[e]={configurable:Pe.computedConfigurable,enumerable:!1,get:function(){return Bt(this).read(this,e)},set:function(t){Bt(this).write(this,e,t)}})}(t))}(e,t,s({get:o,set:a},u))});ie({equals:V.structural});function oe(e,t){var n=function(){return se(e,t,this,arguments)};return n.isMobxAction=!0,n}function se(e,t,n,r){var i=function(e,t,n,r){var i=Xe()&&!!e,o=0;if(i){o=Date.now();var s=r&&r.length||0,a=new Array(s);if(s>0)for(var u=0;u<s;u++)a[u]=r[u];Fe({type:"action",name:e,object:n,arguments:a})}var c=Ne();Ce();var l=ue(!0);return{prevDerivation:c,prevAllowStateChanges:l,notifySpy:i,startTime:o}}(e,0,n,r),o=!0;try{var s=t.apply(n,r);return o=!1,s}finally{o?(Pe.suppressReactionErrors=o,ae(i),Pe.suppressReactionErrors=!1):ae(i)}}function ae(e){ce(e.prevAllowStateChanges),we(),be(e.prevDerivation),e.notifySpy&&He({time:Date.now()-e.startTime})}function ue(e){var t=Pe.allowStateChanges;return Pe.allowStateChanges=e,t}function ce(e){Pe.allowStateChanges=e}var le=function(e){function t(t,n,r,i,o){void 0===r&&(r="ObservableValue@"+f()),void 0===i&&(i=!0),void 0===o&&(o=V.default);var s=e.call(this,r)||this;return s.enhancer=n,s.name=r,s.equals=o,s.hasUnreportedChange=!1,s.value=n(t,void 0,r),i&&Xe()&&Ge({type:"create",name:s.name,newValue:""+s.value}),s}return o(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==Pe.UNCHANGED){var n=Xe();n&&Fe({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&He()}},t.prototype.prepareNewValue=function(e){if(Se(this),ut(this)){var t=lt(this,{object:this,type:"update",newValue:e});if(!t)return Pe.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Pe.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),_t(this)&&ft(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return ct(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),pt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return M(this.get())},t}(w);le.prototype[R()]=le.prototype.valueOf;N("ObservableValue",le);var _e=function(){function e(e){this.dependenciesState=pe.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=pe.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+f(),this.value=new de(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=fe.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+f(),e.set&&(this.setter=oe(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?V.structural:V.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==pe.UP_TO_DATE)return;e.lowestObserverState=pe.POSSIBLY_STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===pe.UP_TO_DATE&&(r.dependenciesState=pe.POSSIBLY_STALE,r.isTracing!==fe.NONE&&De(r,e),r.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&h("Cycle detected in computation "+this.name+": "+this.derivation),0!==Pe.inBatch||0!==this.observers.length||this.keepAlive?(xe(this),ve(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===pe.STALE)return;e.lowestObserverState=pe.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===pe.POSSIBLY_STALE?r.dependenciesState=pe.STALE:r.dependenciesState===pe.UP_TO_DATE&&(e.lowestObserverState=pe.UP_TO_DATE)}}(this)):ve(this)&&(this.warnAboutUntrackedRead(),Ce(),this.value=this.computeValue(!1),we());var e=this.value;if(Ee(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(Ee(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){d(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else d(!1,!1)},e.prototype.trackAndCompute=function(){Xe()&&Ge({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===pe.NOT_TRACKING,n=this.computeValue(!0),r=t||Ee(e)||Ee(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Pe.computationDepth++,e)t=Oe(this,this.derivation,this.scope);else if(!0===Pe.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new de(e)}return Pe.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(ye(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return Ze(function(){var o=n.get();if(!r||t){var s=Ne();e({type:"update",object:n,newValue:o,oldValue:i}),be(s)}r=!1,i=o})},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return M(this.get())},e}();_e.prototype[R()]=_e.prototype.valueOf;var pe,fe,he=N("ComputedValue",_e);!function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(pe||(pe={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(fe||(fe={}));var de=function(e){this.cause=e};function Ee(e){return e instanceof de}function ve(e){switch(e.dependenciesState){case pe.UP_TO_DATE:return!1;case pe.NOT_TRACKING:case pe.STALE:return!0;case pe.POSSIBLY_STALE:for(var t=Ne(),n=e.observing,r=n.length,i=0;i<r;i++){var o=n[i];if(he(o)){if(Pe.disableErrorBoundaries)o.get();else try{o.get()}catch(e){return be(t),!0}if(e.dependenciesState===pe.STALE)return be(t),!0}}return ge(e),be(t),!1}}function Se(e){var t=e.observers.length>0;Pe.computationDepth>0&&t&&h(!1),Pe.allowStateChanges||!t&&"strict"!==Pe.enforceActions||h(!1)}function Oe(e,t,n){ge(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Pe.runId;var r,i=Pe.trackingDerivation;if(Pe.trackingDerivation=e,!0===Pe.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(e){r=new de(e)}return Pe.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=pe.UP_TO_DATE,i=0,o=e.unboundDepsCount,s=0;s<o;s++){var a=n[s];0===a.diffValue&&(a.diffValue=1,i!==s&&(n[i]=a),i++),a.dependenciesState>r&&(r=a.dependenciesState)}n.length=i,e.newObserving=null,o=t.length;for(;o--;){var a=t[o];0===a.diffValue&&Ie(a,e),a.diffValue=0}for(;i--;){var a=n[i];1===a.diffValue&&(a.diffValue=0,Te(a,e))}r!==pe.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),r}function ye(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ie(t[n],e);e.dependenciesState=pe.NOT_TRACKING}function me(e){var t=Ne(),n=e();return be(t),n}function Ne(){var e=Pe.trackingDerivation;return Pe.trackingDerivation=null,e}function be(e){Pe.trackingDerivation=e}function ge(e){if(e.dependenciesState!==pe.UP_TO_DATE){e.dependenciesState=pe.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=pe.UP_TO_DATE}}var Ae=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Re=!0,Me=!1,Pe=function(){var e=p();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Re=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ae).version&&(Re=!1),Re?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ae):(setTimeout(function(){Me||h("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Ae)}();function Te(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ie(e,t){if(1===e.observers.length)e.observers.length=0,Le(e);else{var n=e.observers,r=e.observersIndexes,i=n.pop();if(i!==t){var o=r[t.__mapid]||0;o?r[i.__mapid]=o:delete r[i.__mapid],n[o]=i}delete r[t.__mapid]}}function Le(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Pe.pendingUnobservations.push(e))}function Ce(){Pe.inBatch++}function we(){if(0==--Pe.inBatch){je();for(var e=Pe.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof _e&&n.suspend())}Pe.pendingUnobservations=[]}}function xe(e){var t=Pe.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Pe.inBatch>0&&Le(e),!1)}function De(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===fe.BREAK){var n=[];!function e(t,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+t.name);t.dependencies&&t.dependencies.forEach(function(t){return e(t,n,r+1)})}((r=e,it(Ft(r,i))),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof _e?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}var r,i}var We=function(){function e(e,t,n){void 0===e&&(e="Reaction@"+f()),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.observing=[],this.newObserving=[],this.dependenciesState=pe.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+f(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=fe.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Pe.pendingReactions.push(this),je())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Ce(),this._isScheduled=!1,ve(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Xe()&&Ge({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}we()}},e.prototype.track=function(e){Ce();var t,n=Xe();n&&(t=Date.now(),Fe({name:this.name,type:"reaction"})),this._isRunning=!0;var r=Oe(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ye(this),Ee(r)&&this.reportExceptionInDerivation(r.cause),n&&He({time:Date.now()-t}),we()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Pe.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Pe.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Xe()&&Ge({type:"error",name:this.name,message:n,error:""+e}),Pe.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Ce(),ye(this),we()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var r=function(e){switch(e.length){case 0:return Pe.trackingDerivation;case 1:return Ft(e[0]);case 2:return Ft(e[0],e[1])}}(e);if(!r)return h(!1);r.isTracing===fe.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled");r.isTracing=n?fe.BREAK:fe.LOG}(this,e)},e}();var Ve=100,Ue=function(e){return e()};function je(){Pe.inBatch>0||Pe.isRunningReactions||Ue(ke)}function ke(){Pe.isRunningReactions=!0;for(var e=Pe.pendingReactions,t=0;e.length>0;){++t===Ve&&(console.error("Reaction doesn't converge to a stable state after "+Ve+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction()}Pe.isRunningReactions=!1}var Be=N("Reaction",We);function Xe(){return!!Pe.spyListeners.length}function Ge(e){if(Pe.spyListeners.length)for(var t=Pe.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function Fe(e){Ge(s({},e,{spyReportStart:!0}))}var qe={spyReportEnd:!0};function He(e){Ge(e?s({},e,{spyReportEnd:!0}):qe)}function Qe(){h(!1)}function Ke(e){return function(t,n,r){if(r){if(r.value)return{value:oe(e,r.value),enumerable:!1,configurable:!0,writable:!0};var i=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return oe(e,i.call(this))}}}return $e(e).apply(this,arguments)}}function $e(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){y(this,n,Je(e,t))}})}}var Je=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?oe(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?oe(e,t):1===arguments.length&&"string"==typeof e?Ke(e):!0!==r?Ke(t).apply(null,arguments):void(e[t]=oe(e.name||t,n.value))};function ze(e,t,n){y(e,t,oe(t,n.bind(e)))}function Ze(e,t){void 0===t&&(t=_);var n,r=t&&t.name||e.name||"Autorun@"+f();if(!t.scheduler&&!t.delay)n=new We(r,function(){this.track(s)},t.onError);else{var i=et(t),o=!1;n=new We(r,function(){o||(o=!0,i(function(){o=!1,n.isDisposed||n.track(s)}))},t.onError)}function s(){e(n)}return n.schedule(),n.getDisposer()}Je.bound=function(e,t,n,r){return!0===r?(ze(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return ze(this,t,n.value||n.initializer.call(this)),this[t]},set:Qe}:{enumerable:!1,configurable:!0,set:function(e){ze(this,t,e)},get:function(){}}};var Ye=function(e){return e()};function et(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Ye}function tt(e,t,n){return nt("onBecomeUnobserved",e,t,n)}function nt(e,t,n,r){var i="string"==typeof n?Ft(t,n):Ft(t),o="string"==typeof n?r:n,s=i[e];return"function"!=typeof s?h(!1):(i[e]=function(){s.call(this),o.call(this)},function(){i[e]=s})}function rt(e,t,n,r){var i=(r=$(r)).defaultDecorator||(!1===r.deep?Y:z);B(e),Vt(e,r.name,i.enhancer),Ce();try{for(var o in t){var s=Object.getOwnPropertyDescriptor(t,o);0;var a=(n&&o in n?n[o]:s.get?ie:i)(e,o,s,!0);a&&Object.defineProperty(e,o,a)}}finally{we()}return e}function it(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n).map(it)),r}function ot(e,t){if(null==e)return!1;if(void 0!==t){if(Gt(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return Gt(e)||!!e.$mobx||x(e)||Be(e)||he(e)}function st(e){return 1!==arguments.length&&h(!1),ot(e)}function at(e,t){void 0===t&&(t=void 0),Ce();try{return e.apply(t)}finally{we()}}function ut(e){return void 0!==e.interceptors&&e.interceptors.length>0}function ct(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),E(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function lt(e,t){var n=Ne();try{var r=e.interceptors;if(r)for(var i=0,o=r.length;i<o&&(d(!(t=r[i](t))||t.type,"Intercept handlers should return nothing or a change object"),t);i++);return t}finally{be(n)}}function _t(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function pt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),E(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function ft(e,t){var n=Ne(),r=e.changeListeners;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);be(n)}}var ht,dt,Et,vt,St=(ht=!1,dt={},Object.defineProperty(dt,"0",{set:function(){ht=!0}}),Object.create(dt)[0]=1,!1===ht),Ot=0,yt=function(){};Et=yt,vt=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(Et.prototype,vt):void 0!==Et.prototype.__proto__?Et.prototype.__proto__=vt:Et.prototype=vt,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(e){Object.defineProperty(yt.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})});var mt=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new w(e||"ObservableArray@"+f()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return ct(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),pt(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Ot&&Rt(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;Se(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=l),ut(this)){var o=lt(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return l;t=o.removedCount,n=o.added}var s=(n=0===n.length?n:n.map(function(e){return r.enhancer(e,void 0)})).length-t;this.updateArrayLength(i,s);var a=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),this.dehanceValues(a)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,u([e,t],n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&Xe(),i=_t(this),o=i||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&Fe(s({},o,{name:this.atom.name})),this.atom.reportChanged(),i&&ft(this,o),r&&He()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Xe(),i=_t(this),o=i||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&Fe(s({},o,{name:this.atom.name})),this.atom.reportChanged(),i&&ft(this,o),r&&He()},e}(),Nt=function(e){function t(t,n,r,i){void 0===r&&(r="ObservableArray@"+f()),void 0===i&&(i=!1);var o=e.call(this)||this,s=new mt(r,n,o,i);if(m(o,"$mobx",s),t&&t.length){var a=ue(!0);o.spliceWithArray(0,0,t),ce(a)}return St&&Object.defineProperty(s.array,"0",bt),o}return o(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map(function(e){return Pt(e)?e.peek():e}))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0),arguments.length;var r=this.findIndex.apply(this,arguments);return-1===r?void 0:this.get(r)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0),arguments.length;for(var r=this.peek(),i=r.length,o=n;o<i;o++)if(e.call(t,r[o],o,this))return o;return-1},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,i=this.$mobx.values;r=e<t?u(i.slice(0,e),i.slice(e+1,t+1),[i[e]],i.slice(t+1)):u(i.slice(0,t),[i[e]],i.slice(t,e),i.slice(e+1)),this.replace(r)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var n=this.$mobx,r=n.values;if(e<r.length){Se(n.atom);var i=r[e];if(ut(n)){var o=lt(n,{type:"update",object:this,index:e,newValue:t});if(!o)return;t=o.newValue}(t=n.enhancer(t,i))!==i&&(r[e]=t,n.notifyArrayChildUpdate(e,t,i))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}},t}(yt);T(Nt.prototype,function(){this.$mobx.atom.reportObserved();var e=this,t=0;return I({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})}),Object.defineProperty(Nt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),y(Nt.prototype,L(),"Array"),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach(function(e){var t=Array.prototype[e];d("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),y(Nt.prototype,e,function(){return t.apply(this.peek(),arguments)})}),function(e,t){for(var n=0;n<t.length;n++)y(e,t[n],e[t[n]])}(Nt.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var bt=gt(0);function gt(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function At(e){Object.defineProperty(Nt.prototype,""+e,gt(e))}function Rt(e){for(var t=Ot;t<e;t++)At(t);Ot=e}Rt(1e3);var Mt=N("ObservableArrayAdministration",mt);function Pt(e){return S(e)&&Mt(e.$mobx)}var Tt={},It=function(){function e(e,t,n){if(void 0===t&&(t=F),void 0===n&&(n="ObservableMap@"+f()),this.enhancer=t,this.name=n,this.$mobx=Tt,this._keys=new Nt(void 0,q,this.name+".keys()",!0),"function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Pe.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var r=n=new le(this._has(e),q,this.name+"."+Lt(e)+"?",!1);this._hasMap.set(e,r),tt(r,function(){return t._hasMap.delete(e)})}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(ut(this)){var r=lt(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(ut(this)&&!(i=lt(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=Xe(),r=_t(this),i=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&Fe(s({},i,{name:this.name,key:e})),at(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)}),r&&ft(this,i),n&&He(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==Pe.UNCHANGED){var r=Xe(),i=_t(this),o=i||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&Fe(s({},o,{name:this.name,key:e})),n.setNewValue(t),i&&ft(this,o),r&&He()}},e.prototype._addValue=function(e,t){var n=this;at(function(){var r=new le(t,n.enhancer,n.name+"."+Lt(e),!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var r=Xe(),i=_t(this),o=i||r?{type:"add",object:this,name:e,newValue:t}:null;r&&Fe(s({},o,{name:this.name,key:e})),i&&ft(this,o),r&&He()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keys[P()]()},e.prototype.values=function(){var e=this,t=0;return I({next:function(){return t<e._keys.length?{value:e.get(e._keys[t++]),done:!1}:{value:void 0,done:!0}}})},e.prototype.entries=function(){var e=this,t=0;return I({next:function(){if(t<e._keys.length){var n=e._keys[t++];return{value:[n,e.get(n)],done:!1}}return{done:!0}}})},e.prototype.forEach=function(e,t){var n=this;this._keys.forEach(function(r){return e.call(t,n.get(r),r,n)})},e.prototype.merge=function(e){var t=this;return Ct(e)&&(e=e.toJS()),at(function(){O(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=a(e,2),r=n[0],i=n[1];return t.set(r,i)}):b(e)?e.constructor!==Map?h("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach(function(e,n){return t.set(n,e)}):null!=e&&h("Cannot initialize map from "+e)}),this},e.prototype.clear=function(){var e=this;at(function(){me(function(){e._keys.slice().forEach(function(t){return e.delete(t)})})})},e.prototype.replace=function(e){var t=this;return at(function(){var n,r=O(n=e)?Object.keys(n):Array.isArray(n)?n.map(function(e){return a(e,1)[0]}):b(n)||Ct(n)?A(n.keys()):h("Cannot get keys from '"+n+"'");t._keys.filter(function(e){return-1===r.indexOf(e)}).forEach(function(e){return t.delete(e)}),t.merge(e)}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this._keys.forEach(function(n){return t["symbol"==typeof n?n:Lt(n)]=e.get(n)}),t},e.prototype.toJS=function(){var e=this,t=new Map;return this._keys.forEach(function(n){return t.set(n,e.get(n))}),t},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this._keys.map(function(t){return Lt(t)+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return pt(this,e)},e.prototype.intercept=function(e){return ct(this,e)},e}();function Lt(e){return e&&e.toString?e.toString():new String(e).toString()}T(It.prototype,function(){return this.entries()}),m(It.prototype,L(),"Map");var Ct=N("ObservableMap",It),wt={},xt=function(){function e(e,t,n){if(void 0===t&&(t=F),void 0===n&&(n="ObservableSet@"+f()),this.name=n,this.$mobx=wt,this._data=new Set,this._atom=D(this.name),"function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,r){return t(e,r,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;at(function(){me(function(){e._data.forEach(function(t){e.delete(t)})})})},e.prototype.forEach=function(e,t){var n=this;this._data.forEach(function(r){e.call(t,r,r,n)})},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((Se(this._atom),ut(this))&&!(i=lt(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){at(function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()});var n=Xe(),r=_t(this),i=r||n?{type:"add",object:this,newValue:e}:null;0,r&&ft(this,i)}return this},e.prototype.delete=function(e){var t=this;if(ut(this)&&!(i=lt(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=Xe(),r=_t(this),i=r||n?{type:"delete",object:this,oldValue:e}:null;return at(function(){t._atom.reportChanged(),t._data.delete(e)}),r&&ft(this,i),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=A(this.keys()),n=A(this.values());return I({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,n=0;return void 0!==this._data.values?e=A(this._data.values()):(e=[],this._data.forEach(function(t){return e.push(t)})),I({next:function(){return n<e.length?{value:t.dehanceValue(e[n++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return Dt(e)&&(e=e.toJS()),at(function(){Array.isArray(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):g(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&h("Cannot initialize set from "+e)}),this},e.prototype.observe=function(e,t){return pt(this,e)},e.prototype.intercept=function(e){return ct(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+A(this.keys()).join(", ")+" ]"},e}();T(xt.prototype,function(){return this.values()}),m(xt.prototype,L(),"Set");var Dt=N("ObservableSet",xt),Wt=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,n){var r=this.target;r!==e&&this.illegalAccess(e,t);var i=this.values[t];if(i instanceof _e)i.set(n);else{if(ut(this)){if(!(u=lt(this,{type:"update",object:r,name:t,newValue:n})))return;n=u.newValue}if((n=i.prepareNewValue(n))!==Pe.UNCHANGED){var o=_t(this),a=Xe(),u=o||a?{type:"update",object:r,oldValue:i.value,name:t,newValue:n}:null;a&&Fe(s({},u,{name:this.name,key:t})),i.setNewValue(n),o&&ft(this,u),a&&He()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(ut(this))if(!(o=lt(this,{object:t,name:e,type:"remove"})))return;try{Ce();var n=_t(this),r=Xe(),i=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var o=n||r?{type:"remove",object:t,oldValue:i,name:e}:null;r&&Fe(s({},o,{name:this.name,key:e})),n&&ft(this,o),r&&He()}finally{we()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return pt(this,e)},e.prototype.intercept=function(e){return ct(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new Nt(Object.keys(this.values).filter(function(t){return e.values[t]instanceof le}),q,"keys("+this.name+")",!0)),this.keys.slice()},e}();function Vt(e,t,n){void 0===t&&(t=""),void 0===n&&(n=F);var r=e.$mobx;return r||(O(e)||(t=(e.constructor.name||"ObservableObject")+"@"+f()),t||(t="ObservableObject@"+f()),m(e,"$mobx",r=new Wt(e,t,n)),r)}function Ut(e,t,n,r){var i=Vt(e);if(ut(i)){var o=lt(i,{object:e,name:t,type:"add",newValue:n});if(!o)return;n=o.newValue}n=(i.values[t]=new le(n,r,i.name+"."+t,!1)).value,Object.defineProperty(e,t,function(e){return jt[e]||(jt[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}(t)),i.keys&&i.keys.push(t),function(e,t,n,r){var i=_t(e),o=Xe(),a=i||o?{type:"add",object:t,name:n,newValue:r}:null;o&&Fe(s({},a,{name:e.name,key:n}));i&&ft(e,a);o&&He()}(i,e,t,n)}var jt=Object.create(null),kt=Object.create(null);function Bt(e){var t=e.$mobx;return t||(B(e),e.$mobx)}var Xt=N("ObservableObjectAdministration",Wt);function Gt(e){return!!S(e)&&(B(e),Xt(e.$mobx))}function Ft(e,t){if("object"==typeof e&&null!==e){if(Pt(e))return void 0!==t&&h(!1),e.$mobx.atom;if(Dt(e))return e.$mobx;if(Ct(e)){var n=e;return void 0===t?Ft(n._keys):((r=n._data.get(t)||n._hasMap.get(t))||h(!1),r)}var r;if(B(e),t&&!e.$mobx&&e[t],Gt(e))return t?((r=e.$mobx.values[t])||h(!1),r):h(!1);if(x(e)||he(e)||Be(e))return e}else if("function"==typeof e&&Be(e.$mobx))return e.$mobx;return h(!1)}function qt(e,t){return e||h("Expecting some object"),void 0!==t?qt(Ft(e,t)):x(e)||he(e)||Be(e)?e:Ct(e)||Dt(e)?e:(B(e),e.$mobx?e.$mobx:void h(!1))}var Ht=Object.prototype.toString;function Qt(e,t){return Kt(e,t)}function Kt(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&function(e,t,n,r){e=$t(e),t=$t(t);var i=Ht.call(e);if(i!==Ht.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,a=t.constructor;if(s!==a&&!("function"==typeof s&&s instanceof s&&"function"==typeof a&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];var u=(n=n||[]).length;for(;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!Kt(e[u],t[u],n,r))return!1}else{var c=Object.keys(e),l=void 0;if(u=c.length,Object.keys(t).length!==u)return!1;for(;u--;)if(l=c[u],!Jt(t,l)||!Kt(e[l],t[l],n,r))return!1}return n.pop(),r.pop(),!0}(e,t,n,r)}function $t(e){return Pt(e)?e.peek():b(e)||Ct(e)?A(e.entries()):g(e)||Dt(e)?A(e.entries()):e}function Jt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return Pe.spyListeners.push(e),E(function(){Pe.spyListeners=Pe.spyListeners.filter(function(t){return t!==e})})},extras:{getDebugName:function(e,t){return(void 0!==t?Ft(e,t):Gt(e)||Ct(e)||Dt(e)?qt(e):Ft(e)).name}},$mobx:"$mobx"})}).call(this,n(21),n(22))},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r;
17
+ /*!
18
+ * EventEmitter v5.2.6 - git.io/ee
19
+ * Unlicense - http://unlicense.org/
20
+ * Oliver Caldwell - https://oli.me.uk/
21
+ * @preserve
22
+ */!function(t){"use strict";function i(){}var o=i.prototype,s=t.EventEmitter;function a(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function u(e){return function(){return this[e].apply(this,arguments)}}o.getListeners=function(e){var t,n,r=this._getEvents();if(e instanceof RegExp)for(n in t={},r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n]);else t=r[e]||(r[e]=[]);return t},o.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},o.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},o.addListener=function(e,t){if(!function e(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!=typeof t)&&e(t.listener)}(t))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(e),i="object"==typeof t;for(n in r)r.hasOwnProperty(n)&&-1===a(r[n],t)&&r[n].push(i?t:{listener:t,once:!1});return this},o.on=u("addListener"),o.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},o.once=u("addOnceListener"),o.defineEvent=function(e){return this.getListeners(e),this},o.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},o.removeListener=function(e,t){var n,r,i=this.getListenersAsObject(e);for(r in i)i.hasOwnProperty(r)&&-1!==(n=a(i[r],t))&&i[r].splice(n,1);return this},o.off=u("removeListener"),o.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},o.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},o.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)o.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},o.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if(e instanceof RegExp)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},o.removeAllListeners=u("removeEvent"),o.emitEvent=function(e,t){var n,r,i,o,s=this.getListenersAsObject(e);for(o in s)if(s.hasOwnProperty(o))for(n=s[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(e,r.listener),r.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,r.listener);return this},o.trigger=u("emitEvent"),o.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},o.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return t.EventEmitter=s,i},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof window?window:this||{})},function(e,t,n){var r=n(23),i=n(24),o=n(25),s=n(26);e.exports=function(e){return r(e)||i(e)||o(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2).default,i=n(6);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(16);function i(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(19);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(7);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2).default,i=n(18);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,_=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):_=-1,c.length&&f())}function f(){if(!l){var e=a(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++_<t;)u&&u[_].run();_=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function d(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=n(12);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(12);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r),o=n(9),s=n.n(o),a=n(13),u=n.n(a),c=n(6),l=n.n(c),_=n(7),p=n.n(_),f=n(14),h=n.n(f),d=n(4),E=n.n(d),v=n(15),S=n.n(v),O=n(8),y=n.n(O),m=(n(20),n(5)),N=n(10),b=n.n(N),g=n(0);function A(e){var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)});return"string"==typeof e||"number"==typeof e?t+":"+e:t+""}var R=n(1),M=65,P=0,T=n(11),I=n.n(T),L=n(2),C=n.n(L),w={},x=[],D=1e3,W=1,V="object"===("undefined"==typeof localStorage?"undefined":C()(localStorage))&&localStorage.__islogdebugwebim,U="object"===("undefined"==typeof localStorage?"undefined":C()(localStorage))&&localStorage.__islogdebugwebim;function j(e){return function(){return w[e]}}var k=function(e,t){function n(){var t=[],n="log-".concat(e,"-").concat(W);return t.push.apply(t,arguments),t.push({fn:j(n)}),function(e,t){if(V&&(x.push(e),w[e]=t,x.length>D)){var n=x.shift();delete w[n]}}(n,(new Error).stack),W++,t}!0===t&&(V=!0,U=!0);var r=function(){var t;U&&(t=console).log.apply(t,[e].concat(I()(n(arguments))))};return["log","info","warn","error"].forEach(function(t){r[t]=function(){var r;U&&(r=console)[t].apply(r,[e].concat(I()(n(arguments))))}}),r.isEnable=function(){return U},r};k.isEnable=function(){return U};var B,X,G,F=k,q=F("webim.socket"),H=function(){function e(){i()(this,e),this.eventemitter=null,this.url="",this.monitorInterval=null,this.reconnectTimes=0,this.maxReconnectTimesSinceSuccess=10,this.isForbidenSocketReconnect=!1,this.ws=null}return E()(e,[{key:"connect",value:function(e,t){var n=this;this.url=e,this.eventemitter=t,this.createSocketConnection(),this.eventemitter.on(g.NORMAL_EVENTS.SEND_THIS_MESSAGE,function(e){n.ws&&n.ws.send(e)}),this.eventemitter.on(g.NORMAL_EVENTS.CLOSE_SOCKET,function(){n.close()}),this.eventemitter.on(g.NORMAL_EVENTS.JUST_CLOSE_SOCKET,function(){n.justClose()}),this.eventemitter.on(g.NORMAL_EVENTS.DISABLE_RECONNECT,function(){n.disableReconnect()})}},{key:"createSocketConnection",value:function(){this.ws=new WebSocket(this.url),this.ws.binaryType="arraybuffer",this.addListenersForWS(this.ws),this.monitorConnectionStatus(this.ws)}},{key:"disableReconnect",value:function(){this.isForbidenSocketReconnect=!0}},{key:"justClose",value:function(){try{this.ws&&this.ws.close()}catch(e){q(e)}}},{key:"close",value:function(){try{this.ws&&this.ws.close()}catch(e){q("xmpp socket close error",e)}finally{this.ws=null,this.isForbidenSocketReconnect=!0,clearInterval(this.monitorInterval)}}},{key:"monitorConnectionStatus",value:function(e){var t=null,n=M,r=1,i=null,o="webim socket network is not available!Timeout:".concat(n),s=this;e.addEventListener("message",function(e){t=(new Date).getTime()}),e.addEventListener("open",function(a){t=(new Date).getTime(),function(){if(i)return;i=setInterval(function(){(new Date).getTime()-t>=1e3*n&&(clearInterval(i),i=null,console.error(o),e.close())},1e3*r),s.monitorInterval=i}()}),e.addEventListener("close",function(e){try{clearInterval(i)}catch(e){console.error("ins.onclose",e)}})}},{key:"addListenersForWS",value:function(e){var t=this;e.addEventListener("open",function(e){t.reconnectTimes=0,t.eventemitter.trigger(g.UI_CALLBACK_EVENT_NAMES.ON_WEBSOCKET_CONNECTED,[e])}),e.addEventListener("close",function(e){var n;q("xmpp socket close"),t.reconnectTimes<t.maxReconnectTimesSinceSuccess?t.isForbidenSocketReconnect?t.eventemitter.trigger(g.UI_CALLBACK_EVENT_NAMES.DISCONNECTED,[e]):(t.reconnectTimes+=1,(n=Math.pow(2,t.reconnectTimes),new Promise(function(e,t){setTimeout(function(){e()},1e3*n)})).then(function(){t.createSocketConnection()})):t.eventemitter.trigger(g.UI_CALLBACK_EVENT_NAMES.DISCONNECTED,[e])}),e.addEventListener("error",function(e){q("XMPP socket error",e)}),e.addEventListener("message",function(n){var r=n.data;if(r instanceof ArrayBuffer){new Uint8Array(r)[0]===P&&e.send(r)}else{var i=JSON.parse(r);t.eventemitter.trigger(g.UI_CALLBACK_EVENT_NAMES.ON_WS_MESSAGE,[i])}})}}]),e}(),Q=F("xmpp"),K=(B=function(e){function t(){var e;return i()(this,t),(e=u()(this,p()(t).call(this))).jid=null,e.displayName="",e.url=null,e.meetingNumber=null,e.seq=1,e.isSendedCONNECTEDEvent=!1,e.clientCap=null,e.registerHandlerMap=new Map,e.websocketMessageEventEmitter=new b.a,e.xmppSocket=null,s()(e,"userList",X,l()(e)),e.userHandStatusChangeJIDS=[],s()(e,"qaQidMapQuestionMap",G,l()(e)),e.answerIDMapQuestionID=new Map,e}return S()(t,e),E()(t,[{key:"connect",value:function(e){Q("connect options",e),this.url=e.url,this.jid=e.jid,this.meetingNumber=e.meetingNumber,this.seq=1,this.clientCap=e.clientCap,this.displayName=e.displayName,this.createXMPPSocket(),this.onUserListChange(),this.onQaQidMapQuestionMapChange(),this.registerMessageHandlersForDifferentXMPPEvents(),this.addCustomListenersOnWebsocketMessageEventEmitter()}}]),E()(t,[{key:"emit",value:function(e){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];Q("emit",e,i),(n=h()(p()(t.prototype),"emit",this)).call.apply(n,[this,e].concat(i))}},{key:"createXMPPSocket",value:function(){this.xmppSocket||(this.xmppSocket=new H,this.xmppSocket.connect(this.url,this.websocketMessageEventEmitter))}},{key:"addCustomListenersOnWebsocketMessageEventEmitter",value:function(){var e=this;this.websocketMessageEventEmitter.on(g.UI_CALLBACK_EVENT_NAMES.ON_WEBSOCKET_CONNECTED,function(){e.sendStartCommandOnConnected()}),this.websocketMessageEventEmitter.on(g.UI_CALLBACK_EVENT_NAMES.ON_WS_MESSAGE,function(t){0===t.evt&&(e.isSendedCONNECTEDEvent||(e.isSendedCONNECTEDEvent=!0,e.emit(g.UI_CALLBACK_EVENT_NAMES.CONNECTED,t)))}),this.websocketMessageEventEmitter.on(g.UI_CALLBACK_EVENT_NAMES.ON_WS_MESSAGE,function(t){t.evt===g.XMPP_EVENTS.WS_XMPP_STATUS_RESPONSE&&t.body&&(Q("WS_XMPP_STATUS_RESPONSE",t),e.emit(g.UI_CALLBACK_EVENT_NAMES.XMPPStatusResponse,t.body),t.body.status===g.XMPP_STATUS.fail?e.justCloseSocket():t.body.status===g.XMPP_STATUS.success?e.disableReconnect():console.warn("invalid status"))}),this.websocketMessageEventEmitter.on(g.UI_CALLBACK_EVENT_NAMES.ON_WS_MESSAGE,this.processWebinarMessage.bind(this)),this.websocketMessageEventEmitter.on(g.UI_CALLBACK_EVENT_NAMES.DISCONNECTED,function(t){e.emit(g.UI_CALLBACK_EVENT_NAMES.DISCONNECTED)}),this.websocketMessageEventEmitter.on(g.UI_CALLBACK_EVENT_NAMES.CONNFAIL,function(e){})}},{key:"onQaQidMapQuestionMapChange",value:function(){}},{key:"onUserListChange",value:function(){var e=this;Object(m.b)(function(){Q("userList change",e.userList),e.userList.forEach(function(t){t.jid&&null!=t.bRaiseHand&&-1!==e.userHandStatusChangeJIDS.indexOf(t.jid)&&e.emit(g.UI_CALLBACK_EVENT_NAMES.POOL,{action:t.bRaiseHand?R.POOL_ACTION.raisehand:R.POOL_ACTION.lowerhand,data:t})}),e.emit(g.UI_CALLBACK_EVENT_NAMES.POOL,{data:JSON.parse(JSON.stringify(e.userList)),action:R.POOL_ACTION.memberChange}),e.userList.forEach(function(t){t.jid===e.jid&&""!==t.name&&t.name!==e.displayName&&(e.displayName=t.name)})})}},{key:"registerMessageHandlersForDifferentXMPPEvents",value:function(){this._register(g.XMPP_EVENTS.WS_XMPP_WEBINAR_MESSAGE_FROM_SERVER,this._webinarMessageHandler),this._register(g.XMPP_EVENTS.WS_XMPP_LOWHAND_FROM_SERVER,this._lowHandMessageHandler),this._register(g.XMPP_EVENTS.WS_XMPP_BUDDY_FROM_SERVER,this._buddyMessageHandler),this._register(g.XMPP_EVENTS.WS_XMPP_ASK_FROM_SERVER,this._askMessageHandler),this._register(g.XMPP_EVENTS.WS_XMPP_ASK_FROM_SERVER,this._voteResponseHandler),this._register(g.XMPP_EVENTS.WS_XMPP_ASK_FROM_SERVER,this._deleteQAHandler),this._register(g.XMPP_EVENTS.WS_XMPP_PROMOTE_OR_NOT_FROM_SERVER,this._promoteMessageHandler),this._register(g.XMPP_EVENTS.WS_XMPP_WEBINAR_ANSWERONLINE_FROM_SERVER,this._answerOnlineMessageHandler),this._register(g.XMPP_EVENTS.WS_XMPP_USERREMOVE_FROM_SERVER,this._ws_xmpp_userremove_from_server),this._register(g.XMPP_EVENTS.WS_POLLING_UI_STATUS_INDICATION,this._userActionResponseMessageHandler),this._register(g.XMPP_EVENTS.WS_POLLING_DOC_UPDATE_INDICATION,this._pollingDocUpdateHandler),this._register(g.XMPP_EVENTS.WS_POLLING_USER_ACTION_ERROR,this._pollingUserActionFail),this._register(g.XMPP_EVENTS.WS_POLLING_REPORT_DOWNLOAD_LINK_INDICATION,this._getPollingDownloadLinkFromServer),this._register(g.XMPP_EVENTS.WS_CONF_POLLING_DOCS_INFO,this._getPollingDocMaxSize)}},{key:"_register",value:function(e,t){this.registerHandlerMap.get(e)||this.registerHandlerMap.set(e,[]),-1===this.registerHandlerMap.get(e).indexOf(t)&&this.registerHandlerMap.get(e).push(t)}},{key:"_promoteMessageHandler",value:function(e,t){this.emit(g.UI_CALLBACK_EVENT_NAMES.POOL,{action:t.bPromote?R.POOL_ACTION.promote:R.POOL_ACTION.depromote,data:t})}},{key:"_voteResponseHandler",value:function(e,t){-1!==["upvote","revokeupvote"].indexOf(t.answer.command)&&("revokeupvote"===t.answer.command&&(t.answer.command="downvote"),t.question.command=t.answer.command,t.target=t.question,this.emit(g.UI_CALLBACK_EVENT_NAMES.WebinarQA,{questions:[t.question],target:t.target,senderJid:t.answer.jid,body:t}))}},{key:"_answerOnlineMessageHandler",value:function(e,t){var n,r=this.qaQidMapQuestionMap.get(t.question_id);r?n=JSON.parse(JSON.stringify(r.question)):(n={id:t.question_id,anony:t.question_anonymous,jid:t.question_attendeejid,name:t.question_attendeename,text:t.question_text,time:t.question_time},this.qaQidMapQuestionMap.set(n.id,{answer:{},question:n}));var i={command:t.isLiveStart?g.WEBINAR_QA_COMMAND.livestart:g.WEBINAR_QA_COMMAND.liveend},o={questions:[Object.assign({},n,i)],target:Object.assign({},n,i),body:t};this.emit(g.UI_CALLBACK_EVENT_NAMES.WebinarQA,o)}},{key:"_ws_xmpp_userremove_from_server",value:function(e,t){this.emit(g.UI_CALLBACK_EVENT_NAMES.POOL,{action:R.POOL_ACTION.expel,data:t.id})}},{key:"isInValidAskMessageData",value:function(e){return!!(e.answer&&e.question&&e.answer.id&&""===e.question.id)}},{key:"_deleteQAHandler",value:function(e,t){var n=[g.WEBINAR_QA_COMMAND.deleteQuestion,g.WEBINAR_QA_COMMAND.deleteComment];if(t.answer&&-1!==n.indexOf(t.answer.command))switch(t.answer.command){case g.WEBINAR_QA_COMMAND.deleteQuestion:this.emit(g.UI_CALLBACK_EVENT_NAMES.DELETE_QUESTION_RESPONSE,{id:t.question.id});break;case g.WEBINAR_QA_COMMAND.deleteComment:this.emit(g.UI_CALLBACK_EVENT_NAMES.DELETE_COMMENT_RESPONSE,{cid:t.answer.id,qid:this.answerIDMapQuestionID.get(t.answer.id)})}}},{key:"_askMessageHandler",value:function(e,t){try{var n=[g.WEBINAR_QA_COMMAND.deleteComment,g.WEBINAR_QA_COMMAND.deleteQuestion];if(t.answer&&-1!==n.indexOf(t.answer.command))return Q("blocked commands for _askMessageHandler",t)}catch(e){Q(e)}try{if(this.isInValidAskMessageData(t))return console.log("invalid message",e)}catch(e){Q(e)}try{""!==t.question.name&&void 0!==t.question.name||(t.question.name=this.getUserNameByJID(t.question.jid))}catch(e){Q(e)}try{var r=this.getUserByJID(this.jid);if(r&&r.role!==g.USER_ROLE.attendee){var i=t.answer.jid,o=this.getUserByJID(i);o?t.answer.isFromHostPanelist=o.role!==g.USER_ROLE.attendee:console.warn("warn: pannelist can not find this user, jid : ".concat(i),this.userList)}}catch(e){Q(e)}t.question.jid!==this.jid||t.answer.id||t.answer.text||(t.question.command=g.WEBINAR_QA_COMMAND.publicview,t.answer.command=g.WEBINAR_QA_COMMAND.publicview),t.answer&&t.answer.command===g.WEBINAR_QA_COMMAND.publicviewFromServer&&t.answer.jid===t.question.jid&&(t.question.command=g.WEBINAR_QA_COMMAND.publicview,t.answer={}),t.question.id&&(this.qaQidMapQuestionMap.set(t.question.id,t),t.answer&&t.answer.id&&this.answerIDMapQuestionID.set(t.answer.id,t.question.id)),t.target=JSON.parse(JSON.stringify(t.question));t.answer&&t.answer.id&&""!==t.answer.text&&-1===[].indexOf(t.answer.command)&&(t.answer.command===g.WEBINAR_QA_COMMAND.private&&(t.answer.private=!0),delete t.answer.command,t.question.answer=t.question.answer||[],t.question.answer.push(t.answer),t.target.answer=t.target.answer||[],t.target.answer.push(t.answer),t.target.command="",t.question.command="");var s=[g.WEBINAR_QA_COMMAND.dismiss,g.WEBINAR_QA_COMMAND.reopen,g.WEBINAR_QA_COMMAND.private];t.answer&&t.answer.command&&-1!==s.indexOf(t.answer.command)&&(t.question.command=t.answer.command,t.target.command=t.answer.command),t.target.answer||(t.target.answer=[]),t.question.answer||(t.question.answer=[]),this.emit(g.UI_CALLBACK_EVENT_NAMES.WebinarQA,{questions:[t.question],target:t.target,body:t})}},{key:"_buddyMessageHandler",value:function(e,t){-1!==[g.MEMBER_CHANGE_ACTION.add,g.MEMBER_CHANGE_ACTION.list].indexOf(t.action)?this.mergeUserList(t.data):t.action===g.MEMBER_CHANGE_ACTION.remove?this.removeUserFromList(t.data):t.action===g.MEMBER_CHANGE_ACTION.rename?this.mergeUserList(t.data):t.action===g.MEMBER_CHANGE_ACTION.update?this.mergeUserList(t.data):Q("_buddyMessageHandler not found MEMBER_CHANGE_ACTION",e)}},{key:"_lowHandMessageHandler",value:function(e,t){t.action===R.POOL_ACTION.putdownhands&&this.emit(g.UI_CALLBACK_EVENT_NAMES.POOL,{action:R.POOL_ACTION.putdownhands,data:[t.data.jid]}),t.action===R.POOL_ACTION.lowerhand&&this.emit(g.UI_CALLBACK_EVENT_NAMES.POOL,{action:R.POOL_ACTION.lowerhand,data:t.data})}},{key:"_webinarMessageHandler",value:function(e,t){this.emit(g.UI_CALLBACK_EVENT_NAMES.Message,{senderName:t.senderName,senderJid:t.senderJid,receiver:t.receiver,text:t.text,sn:t.sn,type:t.type,data:{body:t.text,zmext:{webinarchat:{_senderjid:t.senderJid,_to:t.receiver}}}})}},{key:"processWebinarMessage",value:function(e){var t=this,n=(e.body,e.evt);this.registerHandlerMap.get(n)&&this.registerHandlerMap.get(n).forEach(function(n){try{var r=JSON.parse(JSON.stringify(e));n.call(t,r,r.body)}catch(e){console.error(e)}})}},{key:"mergeWebinarQAQuestion",value:function(e){}},{key:"mergeUserList",value:function(e){var t=this,n={},r=[];this.userList.forEach(function(e){n[e.jid]=e}),e.forEach(function(e){var i={};if(e.jid&&e.jid===t.jid&&""===e.name&&(e.name=t.displayName),n[e.jid]){var o=JSON.parse(JSON.stringify(e));Object.keys(o).forEach(function(e){""===o[e]&&delete o[e]}),!!n[e.jid].bRaiseHand^!!e.bRaiseHand&&r.push(e.jid),i=Object.assign(n[e.jid],o)}else r.push(e.jid),i=Object.assign({},e);n[e.jid]=i}),this.userHandStatusChangeJIDS=r,this.userList=Object.keys(n).map(function(e){return n[e]})}},{key:"removeUserFromList",value:function(e){var t=e.map(function(e){return e.jid});this.userList=this.userList.filter(function(e){return-1===t.indexOf(e.jid)})}},{key:"sendStartCommandOnConnected",value:function(){this.sendWS({evt:g.XMPP_EVENTS.WS_XMPP_JOIN_REQUEST,body:{clientCap:this.clientCap}})}},{key:"raiseHand",value:function(){this.sendWS({evt:g.XMPP_EVENTS.WS_XMPP_RAISEHAND_FROM_CLIENT})}},{key:"sendWS",value:function(e){this.websocketMessageEventEmitter.emit(g.NORMAL_EVENTS.SEND_THIS_MESSAGE,JSON.stringify(Object.assign(e,{seq:this.seq++})))}},{key:"lowerHand",value:function(e){this.sendWS({evt:g.XMPP_EVENTS.WS_XMPP_LOWHAND_FROM_CLIENT,jids:e||[]})}},{key:"sendWebinarMsg",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Q("sendWebinarMsg",e,t,n),void 0===n&&(n=g.WEBINAR_MESSAGE_TYPE.ChatMsgType_to_Individual);var i={evt:g.XMPP_EVENTS.WS_XMPP_WEBINAR_MESSAGE_FROM_CLIENT,body:{msg:e,type:n}};i.body.jid=t?[].concat(t):[],i.body.bcm=r,this.sendWS(i)}},{key:"sendAnswer",value:function(e,t,n){var r=this.qaQidMapQuestionMap.get(t).question;this.sendWS({body:{question_attendeejid:r.jid,question_attendeename:r.name,question_text:r.text,question_id:r.id,question_anonymous:r.anony,question_time:r.time,text:e,isPrivate:!n},evt:g.XMPP_EVENTS.WS_XMPP_WEBINAR_ANSWER_FROM_CLIENT})}},{key:"answerOnline",value:function(e,t){var n=this.qaQidMapQuestionMap.get(e).question;this.sendWS({body:{question_attendeejid:n.jid,question_attendeename:n.name,question_text:n.text,question_id:n.id,question_anonymous:n.anony,question_time:n.time,isLiveStart:t},evt:g.XMPP_EVENTS.WS_XMPP_WEBINAR_ANSWERONLINE_FROM_CLIENT})}},{key:"cancelAnswerOnline",value:function(e){}},{key:"sendDismiss",value:function(e){var t=this.qaQidMapQuestionMap.get(e).question;this.sendWS({body:{question_attendeejid:t.jid,question_attendeename:t.name,question_text:t.text,question_id:t.id,question_anonymous:t.anony,question_time:t.time,bOpen:!1},evt:g.XMPP_EVENTS.WS_XMPP_CHANGE_QUESTION_OPEN_STATE_FROM_CLIENT})}},{key:"deleteQuestion",value:function(e){this.sendWS({body:{question_id:e,bDelete:!0},evt:g.XMPP_EVENTS.WS_XMPP_DELETE_QUESTION_FROM_CLIENT})}},{key:"deleteComment",value:function(e){this.sendWS({body:{comment_id:e,bDelete:!0},evt:g.XMPP_EVENTS.WS_XMPP_DELETE_COMMENT_FROM_CLIENT})}},{key:"sendReOpen",value:function(e){var t=this.qaQidMapQuestionMap.get(e).question;this.sendWS({body:{question_attendeejid:t.jid,question_attendeename:t.name,question_text:t.text,question_id:t.id,question_anonymous:t.anony,question_time:t.time,bOpen:!0},evt:g.XMPP_EVENTS.WS_XMPP_CHANGE_QUESTION_OPEN_STATE_FROM_CLIENT})}},{key:"getUserNameByJID",value:function(e){try{return e===this.jid?this.displayName:this.userList.find(function(t){return t.jid===e}).name}catch(e){return Q(e),""}}},{key:"getUserByJID",value:function(e){return this.userList.find(function(t){return t.jid===e})}},{key:"sendAsk",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=A();return r="{".concat(r,"}"),this.sendWS({body:{id:r,text:e,isAnonymous:t,bAllowAttendeeViewAllQuestion:n,name:this.displayName},evt:g.XMPP_EVENTS.WS_XMPP_ASK_FROM_CLIENT}),r}},{key:"sendUpVote",value:function(e){var t=this.qaQidMapQuestionMap.get(e).question;this.sendWS({body:{question_attendeejid:t.jid,question_attendeename:t.name,question_text:t.text,question_id:t.id,question_anonymous:t.anony,question_time:t.time,bUpVote:!0},evt:g.XMPP_EVENTS.WS_XMPP_VOTE_FROM_CLIENT})}},{key:"sendDownVote",value:function(e){var t=this.qaQidMapQuestionMap.get(e).question;this.sendWS({body:{question_attendeejid:t.jid,question_attendeename:t.name,question_text:t.text,question_id:e,question_anonymous:t.anony,question_time:t.time,bUpVote:!1},evt:g.XMPP_EVENTS.WS_XMPP_VOTE_FROM_CLIENT})}},{key:"rename",value:function(e,t){this.sendWS({body:{jid:e,displayName:t},evt:g.XMPP_EVENTS.WS_XMPP_RENAME_FROM_CLIENT})}},{key:"sendSkinTone",value:function(e){this.sendWS({evt:g.XMPP_EVENTS.WS_XMPP_SET_SKIN_TONE,body:{skinTone:e}})}},{key:"disconnect",value:function(e,t){try{this.websocketMessageEventEmitter.emit(g.NORMAL_EVENTS.CLOSE_SOCKET)}catch(e){Q(e)}}},{key:"justCloseSocket",value:function(){this.websocketMessageEventEmitter.emit(g.NORMAL_EVENTS.JUST_CLOSE_SOCKET)}},{key:"disableReconnect",value:function(){this.websocketMessageEventEmitter.emit(g.NORMAL_EVENTS.DISABLE_RECONNECT)}},{key:"_pollingDocUpdateHandler",value:function(e,t){this.emit(g.UI_CALLBACK_EVENT_NAMES.POLLING_DOC_UPDATE,t)}},{key:"_userActionResponseMessageHandler",value:function(e,t){this.emit(g.UI_CALLBACK_EVENT_NAMES.POLLING_UI_STATUS_UPDATE,t)}},{key:"_pollingUserActionFail",value:function(e,t){this.emit(g.UI_CALLBACK_EVENT_NAMES.POLLING_UI_ACTION_FAIL,t)}},{key:"_getPollingDownloadLinkFromServer",value:function(e,t){this.emit(g.UI_CALLBACK_EVENT_NAMES.POLLING_DOWNLOAD_LINK,t)}},{key:"_getPollingDocMaxSize",value:function(e,t){this.emit(g.UI_CALLBACK_EVENT_NAMES.POLLING_DOCS_INFO,t)}}]),t}(b.a),X=y()(B.prototype,"userList",[m.c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),G=y()(B.prototype,"qaQidMapQuestionMap",[m.c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),y()(B.prototype,"mergeUserList",[m.a],Object.getOwnPropertyDescriptor(B.prototype,"mergeUserList"),B.prototype),B);n.d(t,"WebimInstance",function(){return J}),n.d(t,"QA_QUESTION_LIST",function(){return $});var $=[],J=function e(){i()(this,e),this.server=new K,this.WebimStatus=g.WebimStatus};J.version="9.0.2958"}])});
23
+ //# sourceMappingURL=webim.min.js.map