1(self.webpackChunknimo_web_frontend=self.webpackChunknimo_web_frontend||[]).push([[11235,33282,74554],{7819:function(e,t,n){"use strict";n.d(t,{P:function(){return g},M:function(){return b}});var r,o,a=n(60301),i=n(95895);n(10197);var s=n(79028),c=n(10719),u=n(49508),l=(r=(0,i.A)(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((0,u.z)()){e.next=3;break}return e.next=3,n.e(28766).then(n.bind(n,38859));case 3:return e.abrupt("return",c.A.getInstance());case 4:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),f=n(72047);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){(0,a.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h=c.A.getInstance(),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClick,n=void 0===t?h.closeActivityModal:t;return f.createElement(s.A,{onClick:n,className:"nimo-open-act-modal_close-icon"})},b=(o=(0,i.A)(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:e.sent.openActivityModal(p({target:"_modal",width:540,maskClosable:!0,footer:null,className:"nimo-open-act-modal",iframeStyle:p({width:540,height:740,borderRadius:16},(null==t?void 0:t.iframeStyle)||{}),maskStyle:{background:"transparent"},iframeProps:p({extraChildNode:g(),draggable:!0},null==t?void 0:t.extraIframeProps)},t));case 4:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},23031:function(e,t,n){"use strict";n.d(t,{HE:function(){return X},qf:function(){return j.qf},vx:function(){return D.A}}),n(71670);var r=n(38930),o=n(50513),a=n(67871),i=n(13007),s=n(61684),c=n(64348),u=n(45091),l=n(88342),f=n(60301),d=n(72047),p=n(38931),h=n.n(p),g=n(72357),b=n.n(g),v=n(65239),m=n(43326),y=n.n(m),O=n(70236),_=n.n(O),S=n(85061),w=n(52206),E=n(84315),P=n(62570),j=n(81152),k=n(51006),D=n(3024),C=n(18075),T=n(93970),M=n(60713),A=n(11478),R=n(57360),x=n(2986),N=n(74554),I=n(58299),L=n(7819),U=n(4292),B=["sData"],q=["platformCallback"],W=["prefixCls","className","wrapClassName","title","onMessage","onLoad","style","src","draggable","disableDraggable","roomInfo","lang","theme","extraChildNode","afterChildNode","getPopupContainer","dispatch","iframeAttrs","suspense","updateHeightOnResize","disableArticleShim","closeModal","iframeRef","muteStyle"];function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach(function(t){(0,f.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(V=function(){return!!e})()}var X=C.A.EUriJServerPacket,Y=function(e){function t(e){var r,o,a;return(0,i.default)(this,t),o=t,a=[e],o=(0,u.default)(o),r=(0,c.default)(this,V()?Reflect.construct(o,a||[],(0,u.default)(this).constructor):o.apply(this,a)),(0,f.default)(r,"_wrapperRef",d.createRef()),(0,f.default)(r,"_uriQueue",[]),(0,f.default)(r,"_protocolQueue",[]),(0,f.default)(r,"_eventListenerCount",0),(0,f.default)(r,"_bizQueue",[]),(0,f.default)(r,"_businessMsgCallback",void 0),(0,f.default)(r,"getUrl",(0,v.A)(function(e,t,n){var o={_uuid:r._uuid};return t&&(o._theme="number"==typeof t?t:(0,w.O4)()),n&&(o._lang="number"==typeof n?n:(0,w.Xo)()),(0,S.A)(e,o)})),(0,f.default)(r,"handleWndMessage",function(e){var t=r.props,n=t.onMessage,o=t.disableArticleShim,a=e.data,i=e.source,s=a||{},c=s.messageId,u=s._uuid,l=s.data,f=s.callbackType;if(c&&((0,w.oJ)(e.origin)||(0,w.DE)(e.origin)||(0,w.$c)(e.origin))){if(u!==r._uuid)return;switch(c){case j.qf.REGISTER_SOCKET_MSG:r.addReceiveTafMsgListener(l);break;case j.qf.UNREGISTER_SOCKET_MSG:r.removeReceiveTafMsgListener(l);break;case j.qf.OPEN_ACTIVITY_MODAL:case j.qf.OPEN_INNER_BROWSER:r.openActivityModal(l);break;case j.qf.RESIZE_WEB_VIEW:r.resizeWebView(l);break;case j.qf.SHOW_TOAST:r.showToast(l);break;case j.qf.JUMP_TO_LIVE_ROOM:r.jumpToLiveRoom(l);break;case j.qf.POPUP_LOGIN:r.popupLogin(l);break;
1case j.qf.POPUP_SHARE:r.popopShare(l,i,f);break;case j.qf.JUMP_OUTER_BROWSER:window.open(l.url);break;case j.qf.GET_LIVE_ROOM_INFO:r.getLiveRoomInfo(l).then(function(e){var t=(l||{}).successCallback;r._getCallback({callbackType:f,callbackId:t,source:i})(e)});break;case j.qf.SHOW_USER_INFO_DIALOG:r.showUserInfoDialog(l);break;case j.qf.POPUP_JOIN_FANS_MODAL:P.R.emit(P.q.POPUP_JOIN_FANS_MODAL,{onClickJoin:function(){r._getCallback({callbackType:f,callbackId:null==l?void 0:l.clickJoinCallback,source:i})()}});break;case j.qf.POPUP_FANS_CLUB_PANEL:P.R.emit(P.q.POPUP_FANS_PRIVILEGE_POPOVER);break;case j.qf.FOLLOW_EVENT:P.R.emit(P.q.FOLLOW,{anchorID:l,sta:1,type:"subscribe"});break;case j.qf.POPUP_PAID_SUBSCRIPTION_MODAL:P.R.emit(P.q.POPUP_PAID_SUBSCRIPTION_MODAL);break;case j.qf.OPEN_WEEK_STAR_ACTIVITY_MODAL:P.R.emit(P.q.OPEN_WEEK_STAR_ACTIVITY_MODAL,l);break;case j.qf.REGISTER_BUSINESS_MSG:r.registerBusinessMsg(l);break;case j.qf.UNREGISTER_BUSINESS_MSG:r.unregisterBusinessMsg(l);break;case j.qf.SET_BUSINESS_MSG_CALLBACK:r.setBusinessMsgCallback(i,l,f);break;case j.qf.SUBSCRIBE_TOPIC:r._logger.info("[SUBSCRIBE_TOPIC]",l),r.getChannel().then(function(e){e.subTopicList(l)});break;case j.qf.UNSUBSCRIBE_TOPIC:r._logger.info("[UNSUBSCRIBE_TOPIC]",l),r.getChannel().then(function(e){e.unsubTopicList(l)});break;case j.qf.UPDATE_ACCOUNT_BALANCE:P.R.emit(P.q.UPDATE_ACCOUNT_BALANCE);break;case j.qf.OPEN_FINAL_BOX:P.R.emit(P.q.OPEN_FINAL_BOX,l);break;case j.qf.OPEN_FANS_BOX:P.R.emit(P.q.OPEN_FANS_BOX,l);break;case j.qf.OPEN_RAMADAN_BOX:P.R.emit(P.q.OPEN_RAMADAN_BOX,l);break;case j.qf.OPEN_RAMADAN23_BOX:P.R.emit(P.q.OPEN_RAMADAN_23_BOX,l);break;case j.qf.CLOSE_SELF:case j.qf.REVERT_ACCOUNT_SUCCESS:r.closeSelf();break;case j.qf.OPEN_WORLD_CUP_MODAL:P.R.emit(P.q.OPEN_WORLD_CUP_MODAL,l);break;case j.qf.OPEN_ROOM_GIFT_PANEL:P.R.emit(P.q.OPEN_ROOM_GIFT_PANEL,l);break;case j.qf.OPEN_TOP_CP:P.R.emit(P.q.OPEN_TOP_CP,l);break;case j.qf.FOCUS_CHAT_INPUT:null!=l&&l.closeWebview?(r.closeSelf(),setTimeout(function(){P.R.emit(P.q.FOCUS_CHAT_INPUT)},400)):P.R.emit(P.q.FOCUS_CHAT_INPUT)}"function"==typeof n&&n(a)}else(0,w.DE)(e.origin)&&!o&&("number"==typeof a&&r._changeHeight(a),(null==l?void 0:l.height)!==void 0&&r._changeHeight(l.height))}),(0,f.default)(r,"getChannel",function(){return r.channel?Promise.resolve(r.channel):Promise.all([n.e(49911),n.e(28188)]).then(n.bind(n,61862)).then(function(e){var t=e.channel;return r.channel=t,t})}),(0,f.default)(r,"handleLoad",function(e){var t=e.isDidMount,n=r.props.onLoad;void 0!==t&&t||r.setState({isIframeLoad:!0}),r.sendBizMsgToChild("height"),"function"==typeof n&&n(r.iframeRef.current)}),(0,f.default)(r,"handleReceiveTafMsg",function(e){var t=(0,E.zg)(e.uri);r._uriQueue.indexOf(t)>-1&&(t===X?r.sendJavaMsg(z(z({},e),{},{uri:t})):r.sendTafMsg(z(z({},e),{},{uri:t})))}),(0,f.default)(r,"debouncedUpdateHeight",_()(function(){r.sendBizMsgToChild("height")},300)),(0,f.default)(r,"triggerVisibleChange",function(e){r._bizQueue.indexOf(j.c3.SYNC_MODAL_VISIBILITY)>-1&&"function"==typeof r._businessMsgCallback&&r._businessMsgCallback([j.c3.SYNC_MODAL_VISIBILITY,{visible:e}])}),(0,f.default)(r,"_handleWindowResize",function(){if(r.props.draggable){var e,t=r.iframeRef.current.getBoundingClientRect().x,n=r.state.cposition;t<0&&r.setState({cposition:{x:n.x-t,y:n.y}}),t>=(null==(e=document.body)?void 0:e.scrollWidth)&&r.setState({cposition:{x:0,y:n.y}})}}),(0,f.default)(r,"onControlledDragStop",function(e,t){var n=t.x,o=t.y;r.setState({cposition:{x:n,y:o}}),document.body.classList.remove("n-as-no-evt")}),(0,f.default)(r,"handleStart",function(){var e=document.body;e.classList.contains("n-as-no-evt")||e.classList.add("n-as-no-evt")}),(0,f.default)(r,"saveIframeRef",function(e){r.iframeRef.current=e;var t=r.props.iframeRef;"function"==typeof t?t(e):t&&(t.current=t)}),r.state={customStyle:{},cposition:{x:0,y:0},isIframeLoad:!1},r.iframeRef=d.createRef(),r._uuid=b()(),r._logger=new I.Vy({prefix:"iframe ".concat(r._uuid)}),r}
1return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){var e=this;window.addEventListener("message",this.handleWndMessage),this.handleLoad({isDidMount:!0}),window.addEventListener("resize",this._handleWindowResize);var t=this.props,n=t.getPopupContainer,r=t.draggable;if("function"==typeof n){var o=n();r&&!o.classList.contains("n-as-of-hidden")&&o.classList.add("n-as-of-hidden")}if(this.props.updateHeightOnResize){this.ro=new N.default(function(){e.debouncedUpdateHeight()});var a=this._wrapperRef.current;a&&this.ro.observe(a)}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.handleWndMessage),window.removeEventListener("resize",this._handleWindowResize),this.ro&&this.ro.disconnect(),this.ro=null,P.R.off(P.q.TAF_MESSAGE_RECEIVE,this.handleReceiveTafMsg),this._uriQueue=null,this._protocolQueue=null,this._eventListenerCount=null,this.unsetBusinessMsgCallback()}},{key:"closeSelf",value:function(){var e=this.props.closeModal;"function"==typeof e&&e()}},{key:"_getCallback",value:function(e){var t=this,n=e.callbackType,r=e.callbackId,o=e.source;return function(){if(r){for(var e=arguments.length,a=Array(e),i=0;i<e;i++)a[i]=arguments[i];"postMessage"===n?t.sendBizMsgToChild("biz_func",{callbackId:r,args:a.length>0?a:void 0}):o&&"function"==typeof o[r]&&o[r].apply(o,a)}}}},{key:"addReceiveTafMsgListener",value:function(e){var t,n,r=e||{},o=r.ids,i=void 0===o?[]:o,s=r.protocols,c=void 0===s?[]:s;(t=this._uriQueue).push.apply(t,(0,a.A)(i)),(n=this._protocolQueue).push.apply(n,(0,a.A)(c)),this._logger.info("[subscribe]",i,c),!this._eventListenerCount&&(this._uriQueue.length>0||this._protocolQueue.length>0)&&(P.R.on(P.q.TAF_MESSAGE_RECEIVE,this.handleReceiveTafMsg),this._eventListenerCount+=1)}},{key:"removeReceiveTafMsgListener",value:function(e){var t=e||{},n=t.ids,r=void 0===n?[]:n,o=t.protocols,a=void 0===o?[]:o;if(this._logger.info("[unsubscribe]",r,a),Array.isArray(r)&&r.length>0){for(var i=[],s=this._uriQueue.length,c=0;c<s;c+=1){var u=this._uriQueue[c];-1===r.indexOf(u)&&i.push(u)}this._uriQueue=i}Array.isArray(a)&&a.length>0&&(this._protocolQueue=this._protocolQueue.filter(function(e){return -1===a.indexOf(e)}))}},{key:"sendTafMsg",value:function(e){var t=e||{},n=t.uri,r=t.data;this._uriQueue.indexOf(n)>-1&&this.sendBizMsgToChild("taf_msg",{uri:n,data:r})}},{key:"sendJavaMsg",value:function(e){var t=this,n=e||{},r=n.uri,a=n.data;(0,k.BD)(a,D.A,r).then(function(e){var n,r=e||{},a=r.sData,i=(0,o.A)(r,B),s=i.sProtocolName;try{n=JSON.parse(a),t._protocolQueue.indexOf(s)>-1&&t.sendBizMsgToChild("java_msg",z(z({},i),{},{data:n}))}catch(e){console.log(e)}})}},{key:"sendBizMsgToChild",value:function(e,t){var n,r=null==(n=this.iframeRef)||null==(n=n.current)?void 0:n.contentWindow;r&&"function"==typeof r.postMessage&&r.postMessage(z(z({},t),{},{type:e,_uuid:this._uuid}),"*")}},{key:"openActivityModal",value:function(e){var t=e||{},n=t.url,r=t.iframe,o=t.iframeStyle,a=t.iframeProps;(0,T.gU)(n)&&(r?(0,L.M)({url:n,iframeStyle:o,extraIframeProps:a}):window.open(n,"_blank"))}},{key:"resizeWebView",value:function(e){var t=e||{},n=t.width,r=t.height;this._setCustomStyle({width:n,height:r})}},{key:"showToast",value:function(e){var t=e||{},n=t.content,r=t.time_length,o=t.onClose;M.A.info(n,r,o)}},{key:"jumpToLiveRoom",value:function(e){(0,w.gf)(e)}},{key:"popupLogin",value:function(e){A.A.showLogin(e)}},{key:"popopShare",value:function(e,t,n){var r=this,a=e.platformCallback,i=(0,o.A)(e,q);a&&(i.platformCallback=function(e){r._getCallback({source:t,callbackType:n,callbackId:a})(e)}),(0,R.A)(i)}},{key:"getLiveRoomInfo",value:function(){return Promise.resolve(this.props.roomInfo||(0,U.t)()||void 0)}},{key:"showUserInfoDialog",value:function(e){P.R.emit(P.q.SHOW_USER_INFO_DIALOG,e)}},{key:"registerBusinessMsg",value:function(e){var t=this,n=(e||{}).ids;(void 0===n?[]:n).forEach(function(e){-1===t._bizQueue.indexOf(e)&&t._bizQueue.push(e)})}},{key:"unregisterBusinessMsg",value:function(e){var t=this,n=(e||{}).ids;(void 0===n?[]:n).forEach(function(e){var n=t._bizQueue.indexOf(e);n>-1&&t._bizQueue.splice(n,1)})}},{key:"setBusinessMsgCallback",value:function(e,t,n){var r=this,o=(t||{}).msgCallback;this._businessMsgCallback=function(t){r._getCallback({callbackId:o,callbackType:n,source:e})(t)}}},{key:"unsetBusinessMsgCallback",value:function(){this._businessMsgCallback=null}},{key:"_changeHeight",value:function(e){this._setCustomStyle({height:e})}},{key:"_setCustomStyle",value:function(e){this.setState({customStyle:e})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,a=e.wrapClassName,i=e.title,s=(e.onMessage,e.onLoad,e.style),c=e.src,u=e.draggable,l=e.disableDraggable,f=(e.roomInfo,e.lang),p=e.theme,g
1=e.extraChildNode,b=e.afterChildNode,v=(e.getPopupContainer,e.dispatch,e.iframeAttrs),m=e.suspense,O=(e.updateHeightOnResize,e.disableArticleShim,e.closeModal,e.iframeRef,e.muteStyle),_=(0,o.A)(e,W),S=this.state,w=S.customStyle,E=S.cposition,P=S.isIframeLoad,j=h()(t,n),k=O?O(w):w,D=z(z({},s),w),C=d.createElement("div",(0,r.default)({},_,{className:h()("".concat(t,"__wrap"),a),style:k,ref:this._wrapperRef}),void 0===g?"":g,d.createElement("iframe",(0,r.default)({},v,{ref:this.saveIframeRef,src:this.getUrl(c,p,f),style:O?O(D):D,className:j,title:i,onLoad:this.handleLoad})),b,u&&P&&(null!=w&&w.width&&null!=w&&w.height||null!=s&&s.width&&null!=s&&s.height)?d.createElement("div",{className:"".concat(t,"__drag-trigger")}):null,m&&!P?d.createElement("div",{className:"n-as-abs n-as-full n-fx-cc"},d.createElement(x.Ay,null)):null);return l&&!u?C:d.createElement(y(),{handle:".".concat(t,"__drag-trigger"),position:E,onStop:this.onControlledDragStop,onStart:this.handleStart},C)}}])}(d.Component);(0,f.default)(Y,"defaultProps",{prefixCls:"nimo-iframe",className:"",draggable:!1,disableDraggable:!1,updateHeightOnResize:!1,onLoad:function(){}}),t.Ay=Y},43326:function(e,t,n){var r;window,e.exports=function(e,t){var n=[function(e,t,n){e.exports=n(11)()},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function o(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}function a(e){return"number"==typeof e&&!isNaN(e)}function i(e){return parseInt(e,10)}function s(e,t,n){if(e[t])return Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}n.d(t,"b",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"a",function(){return s})},function(e,t,n){"use strict";var r=n(1),o=["Moz","Webkit","O","ms"];function a(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n<o.length;n++)if(a(e,o[n])in t)return o[n];return""}();function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}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}n.d(t,"i",function(){return l}),n.d(t,"a",function(){return f}),n.d(t,"m",function(){return d}),n.d(t,"k",function(){return p}),n.d(t,"l",function(){return h}),n.d(t,"g",function(){return g}),n.d(t,"h",function(){return b}),n.d(t,"j",function(){return v}),n.d(t,"c",function(){return m}),n.d(t,"d",function(){return y}),n.d(t,"e",function(){return _}),n.d(t,"f",function(){return S}),n.d(t,"b",function(){return w}),n.d(t,"n",function(){return E}),n.d(t,"o",function(){return P});var u="";function l(e,t,n){var o=e;do{if(function(e,t){return u||(u=Object(r.b)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return Object(r.d)(e[t])})),!!Object(r.d)(e[u])&&e[u](t)}(o,t))return!0;if(o===n)break;o=o.parentNode}while(o);return!1}function f(e,t,n){e&&(e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener?e.addEventListener(t,n,!0):e["on"+t]=n)}function d(e,t,n){e&&(e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener?e.removeEventListener(t,n,!0):e["on"+t]=null)}function p(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Object(r.c)(n.borderTopWidth),t+=Object(r.c)(n.borderBottomWidth)}function h(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Object(r.c)(n.borderLeftWidth),t+=Object(r.c)(n.borderRightWidth)}function g(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Object(r.c)(n.paddingTop),t-=Object(r.c)(n.paddingBottom)}function b(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Object(r.c)(n.paddingLeft),t-=Object(r.c)(n.paddingRight)}function v(e,t){var n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:e.clientX+t.scrollLeft-n.left,y:e.clientY+t.scrollTop-n.top}}function m(e,t){var n=O(e,t,"px");return c({},a("transform",i),n)}function y(e,t){return O(e,t,"")}function O(e,t,n){var r=e.x,o=e.y,a="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var i="".concat("string"==typeof t.x?t.x:t.x+n),s="".concat("string"==typeof t.y?t.y:t.y+n);a="translate(".concat(i,", ").concat(s,")")+a}return a}function _(e,t){return e.targetTouches&&Object(r.b)(e.targetTouches,function(e){return t===e.identifier})||e.changedTouches&&Object(r.b)(e.changedTouches,function(e){return t===e.identifier})}function S(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0}function w(e){if(e){var t,n,r=e.getElementById("react-draggable-style-el");r||((r=e.createElement("style")).type="text/css",r.id="react-draggable-style-el",r.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",r.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(r)),e.body&&(t=e.body,n="react-draggable-transparent-selection",t.classList?t.classList.add(n):t.className.match(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)")))||(t.className+=" ".concat(n)))}}function E(e){var t,n;try{e&&e.body&&(t=e.body,n="react-draggable-transparent-selection",t.classList?t.classList.remove(n):t.className=t.className.replace(RegExp("(?:^|\\s)".concat(n,"(?!\\S)"),"g"),"")),e.selection?e.selection.empty():window.getSelection().removeAllRanges()}catch(e){}}function P(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?s(n,!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({touchAction:"none"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},function(e,t,n){"use strict";n.d(t,"e",function(){return s}),n.d(t,"g",function(){return c}),n.d(t,"a",function(){return u}),n.d(t,"b",function(){return l}),n.d(t,"f",function(){return f}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return p});var r=n(1),o=n(6),a=n.n(o),i=n(2);function s(e,t,n){if(!e.props.bounds)return[t,n];var o=e.props.bounds;o="string"==typeof o?o:{left:(s=o).left,top:s.top,right:s.right,bottom:s.bottom};var a=h(e);if("string"==typeof o){var s,c,u=a.ownerDocument,l=u.defaultView;if(!((c="parent"===o?a.parentNode:u.querySelector(o))instanceof l.HTMLElement))throw Error('Bounds selector "'+o+'" could not find an element.');var f=l.getComputedStyle(a),d=l.getComputedStyle(c);o={left:-a.offsetLeft+Object(r.c)(d.paddingLeft)+Object(r.c)(f.marginLeft),top:-a.offsetTop+Object(r.c)(d.paddingTop)+Object(r.c)(f.marginTop),right:Object(i.h)(c)-Object(i.l)(a)-a.offsetLeft+Object(r.c)(d.paddingRight)-Object(r.c)(f.marginRight),bottom:Object(i.g)(c)-Object(i.k)(a)-a.offsetTop+Object(r.c)(d.paddingBottom)-Object(r.c)(f.marginBottom)}}return Object(r.e)(o.right)&&(t=Math.min(t,o.right)),Object(r.e)(o.bottom)&&(n=Math.min(n,o.bottom)),Object(r.e)(o.left)&&(t=Math.max(t,o.left)),Object(r.e)(o.top)&&(n=Math.max(n,o.top)),[t,n]}function c(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function u(e){return"both"===e.props.axis||"x"===e.props.axis}function l(e){return"both"===e.props.axis||"y"===e.props.axis}function f(e,t,n){var r="number"==typeof t?Object(i.e)(e,t):null;if("number"==typeof t&&!r)return null;var o=h(n),a=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return Object(i.j)(r||e,a)}function d(e,t,n){var o=e.state,a=!Object(r.e)(o.lastX),i=h(e);return a?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}}function p(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function h(e){var t=a.a.findDOMNode(e);if(!t)throw Error("<DraggableCore>: Unmounted during event!");return t}},function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return _});var r=n(5),o=n.n(r),a=n(0),i=n.n(a),s=n(6),c=n.n(s),u=n(2),l=n(3),f=n(1),d=n(4);function p(e){return(p="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)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},O=y.mouse,_=function(e){var t,n;function r(){var e,t,n;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=(n=(e=g(r)).call.apply(e,[this].concat(a)))&&("object"===p(n)||"function"==typeof n)?n:b(this),m(b(t),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),m(b(t),"handleDragStart",function(e){if(t.props.onMouseDown(e),!t.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;var n=c.a.findDOMNode(b(t));if(!n||!n.ownerDocument||!n.ownerDocument.body)throw Error("<DraggableCore>
1 not mounted on DragStart!");var r=n.ownerDocument;if(!(t.props.disabled||!(e.target instanceof r.defaultView.Node)||t.props.handle&&!Object(u.i)(e.target,t.props.handle,n)||t.props.cancel&&Object(u.i)(e.target,t.props.cancel,n))){var o=Object(u.f)(e);t.setState({touchIdentifier:o});var a=Object(l.f)(e,o,b(t));if(null!=a){var i=a.x,s=a.y,f=Object(l.c)(b(t),i,s);Object(d.a)("DraggableCore: handleDragStart: %j",f),Object(d.a)("calling",t.props.onStart),!1!==t.props.onStart(e,f)&&(t.props.enableUserSelectHack&&Object(u.b)(r),t.setState({dragging:!0,lastX:i,lastY:s}),Object(u.a)(r,O.move,t.handleDrag),Object(u.a)(r,O.stop,t.handleDragStop))}}}),m(b(t),"handleDrag",function(e){"touchmove"===e.type&&e.preventDefault();var n=Object(l.f)(e,t.state.touchIdentifier,b(t));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(t.props.grid)){var a,i=r-t.state.lastX,s=o-t.state.lastY,c=(a=Object(l.g)(t.props.grid,i,s),function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(a,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}());if(i=c[0],s=c[1],!i&&!s)return;r=t.state.lastX+i,o=t.state.lastY+s}var u=Object(l.c)(b(t),r,o);if(Object(d.a)("DraggableCore: handleDrag: %j",u),!1!==t.props.onDrag(e,u))t.setState({lastX:r,lastY:o});else try{t.handleDragStop(new MouseEvent("mouseup"))}catch(e){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(f)}}}),m(b(t),"handleDragStop",function(e){if(t.state.dragging){var n=Object(l.f)(e,t.state.touchIdentifier,b(t));if(null!=n){var r=n.x,o=n.y,a=Object(l.c)(b(t),r,o),i=c.a.findDOMNode(b(t));i&&t.props.enableUserSelectHack&&Object(u.n)(i.ownerDocument),Object(d.a)("DraggableCore: handleDragStop: %j",a),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),t.props.onStop(e,a),i&&(Object(d.a)("DraggableCore: Removing handlers"),Object(u.m)(i.ownerDocument,O.move,t.handleDrag),Object(u.m)(i.ownerDocument,O.stop,t.handleDragStop))}}}),m(b(t),"onMouseDown",function(e){return O=y.mouse,t.handleDragStart(e)}),m(b(t),"onMouseUp",function(e){return O=y.mouse,t.handleDragStop(e)}),m(b(t),"onTouchStart",function(e){return O=y.touch,t.handleDragStart(e)}),m(b(t),"onTouchEnd",function(e){return O=y.touch,t.handleDragStop(e)}),t}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(r,o.a.Component),t=[{key:"componentWillUnmount",value:function(){var e=c.a.findDOMNode(this);if(e){var t=e.ownerDocument;Object(u.m)(t,y.mouse.move,this.handleDrag),Object(u.m)(t,y.touch.move,this.handleDrag),Object(u.m)(t,y.mouse.stop,this.handleDragStop),Object(u.m)(t,y.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&Object(u.n)(t)}}},{key:"render",value:function(){return o.a.cloneElement(o.a.Children.only(this.props.children),{style:Object(u.o)(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}],h(r.prototype,t),n&&h(r,n),r}();m(_,"displayName","DraggableCore"),m(_,"propTypes",{allowAnyClick:i.a.bool,disabled:i.a.bool,enableUserSelectHack:i.a.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:i.a.arrayOf(i.a.number),handle:i.a.string,cancel:i.a.string,onStart:i.a.func,onDrag:i.a.func,onStop:i.a.func,onMouseDown:i.a.func,className:f.a,style:f.a,transform:f.a}),m(_,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){}})},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=(function(){return o}
1).apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(10).default;e.exports=r,e.exports.default=r,e.exports.DraggableCore=n(7).default},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return j});var r=n(5),o=n.n(r),a=n(0),i=n.n(a),s=n(6),c=n.n(s),u=n(8),l=n.n(u),f=n(2),d=n(3),p=n(1),h=n(7),g=n(4);function b(e){return(b="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)}function v(){return(v=Object.assign||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}).apply(this,arguments)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(n,!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),e}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),n=(r=O(t).call(this,e))&&("object"===b(r)||"function"==typeof r)?r:_(this),P(_(n),"onDragStart",function(e,t){if(Object(g.a)("Draggable: onDragStart: %j",t),!1===n.props.onStart(e,Object(d.d)(_(n),t)))return!1;n.setState({dragging:!0,dragged:!0})}),P(_(n),"onDrag",function(e,t){if(!n.state.dragging)return!1;Object(g.a)("Draggable: onDrag: %j",t);var r=Object(d.d)(_(n),t),o={x:r.x,y:r.y};if(n.props.bounds){var a,i=o.x,s=o.y;o.x+=n.state.slackX,o.y+=n.state.slackY;var c=(a=Object(d.e)(_(n),o.x,o.y),function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(a,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()),u=c[0],l=c[1];o.x=u,o.y=l,o.slackX=n.state.slackX+(i-o.x),o.slackY=n.state.slackY+(s-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-n.state.x,r.deltaY=o.y-n.state.y}if(!1===n.props.onDrag(e,r))return!1;n.setState(o)}),P(_(n),"onDragStop",function(e,t){if(!n.state.dragging||!1===n.props.onStop(e,Object(d.d)(_(n),t)))return!1;Object(g.a)("Draggable: onDragStop: %j",t);var r={dragging:!1,slackX:0,slackY:0};if(n.props.position){var o=n.props.position,a=o.x,i=o.y;r.x=a,r.y=i}n.setState(r)}),n.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:y({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),n}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(t,o.a.Component),w(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:(Object(g.a)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:y({},n)})}}
1]),w(t,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&c.a.findDOMNode(this)instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),r=t.defaultPosition,a=t.defaultClassName,i=t.defaultClassNameDragging,s=t.defaultClassNameDragged,c=t.position,u=t.positionOffset,p=(t.scale,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),g={},b=null,m=!c||this.state.dragging,O=c||r,_={x:Object(d.a)(this)&&m?this.state.x:O.x,y:Object(d.b)(this)&&m?this.state.y:O.y};this.state.isElementSVG?b=Object(f.d)(_,u):g=Object(f.c)(_,u);var S=l()(n.props.className||"",a,(P(e={},i,this.state.dragging),P(e,s,this.state.dragged),e));return o.a.createElement(h.default,v({},p,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.a.cloneElement(o.a.Children.only(n),{className:S,style:y({},n.props.style,{},g),transform:b}))}}]),t}();P(j,"displayName","Draggable"),P(j,"propTypes",y({},h.default.propTypes,{axis:i.a.oneOf(["both","x","y","none"]),bounds:i.a.oneOfType([i.a.shape({left:i.a.number,right:i.a.number,top:i.a.number,bottom:i.a.number}),i.a.string,i.a.oneOf([!1])]),defaultClassName:i.a.string,defaultClassNameDragging:i.a.string,defaultClassNameDragged:i.a.string,defaultPosition:i.a.shape({x:i.a.number,y:i.a.number}),positionOffset:i.a.shape({x:i.a.oneOfType([i.a.number,i.a.string]),y:i.a.oneOfType([i.a.number,i.a.string])}),position:i.a.shape({x:i.a.number,y:i.a.number}),className:p.a,style:p.a,transform:p.a})),P(j,"defaultProps",y({},h.default.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},function(e,t,n){"use strict";var r=n(12);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}],r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,(function(t){return e[t]}).bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=9)}(n(72047),n(94685))},44022:function(e,t,n){"use strict";n.r(t),n(71670);var r,o=n(46520),a=n(13007),i=n(61684),s=n(64348),c=n(45091),u=n(88342),l=n(60301),f=n(72047),d=n(52842),p=n(85904),h=n(80415),g=n(62570),b=n(52206),v=n(94275);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?m(Object(n),!0).forEach(function(t){(0,l.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(O=function(){return!!e})()}t.default=(0,p.Ng)(function(e){return{roomInfo:e.home.room.roomInfo}})(r=function(e){function t(){(0,a.default)(this,t);for(var e,n,r,o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=t,r=[].concat(i),n=(0,c.default)(n),e=(0,s.default)(this,O()?Reflect.construct(n,r||[],(0,c.default)(this).constructor):n.apply(this,r)),(0,l.default)(e,"handlers",{}),(0,l.default)(e,"state",{height:"378",mediaUrl:e.withTheme((0,b.O4)()),isArticle:e.checkIsArticle()}),(0,l.default)(e,"handleThemeChange",function(t){var n=t.theme;n&&e.setState({mediaUrl:e.withTheme(n)})}),(0,l.default)(e,"handleIframeOnload",function(t){if(e.state.isArticle){var n=Math.random();e.addHandler(n,function(t){var n=t.data;e.setState({height:n.height})}),t.contentWindow.postMessage({uid:n,type:"height"},"*")}}),(0,l.default)(e,"muteStyle",function(e){if(!e)return e;var t=e.height;if(!t)return e;var n="number"==typeof t?t:/^\d+(?:px)?$/.test(t)?parseInt(t,10):t;return"number"!=typeof n?e:y(y({},e),{},{height:"min(calc(100vh - 100px), ".concat(n,"px)")})}),e}
1return(0,u.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=function(t){if((0,b.DE)(t.origin)){var n=t.data;if("object"===(0,o.A)(n)&&n.uid&&e.handlers[n.uid]){var r=e.handlers[n.uid];delete e.handlers[n.uid],r(t)}}};window.addEventListener("message",t,!1),this._receiveMessage=t,h.A.getProfileLangById().then(function(t){e.setState({lang:t})}),g.R.on(g.q.THEME_CHANGE,this.handleThemeChange)}},{key:"componentWillUnmount",value:function(){this._receiveMessage&&window.removeEventListener("message",this._receiveMessage),g.R.off(g.q.THEME_CHANGE,this.handleThemeChange),this.handlers={}}},{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"withTheme",value:function(e){var t=this.props.roomInfo.starLiveRoomView.mediaContent;return t&&e?"".concat(t).concat(t.includes("?")?"&":"?","_theme=").concat(e,"&_popup_login=1"):t}},{key:"checkIsArticle",value:function(){var e=!1;try{e=(0,b.DE)(new URL(this.withTheme()).origin)}catch(e){}return e}},{key:"render",value:function(){var e,t=this.state,n=t.mediaUrl,r=t.height,o=t.lang;return f.createElement("div",{className:"nimo-room-iframe-container n-as-w100"},n?f.createElement(v.default,{onLoad:this.handleIframeOnload,disableArticleShim:!0,src:n,key:n,disableDraggable:!0,muteStyle:this.muteStyle,style:{height:r}}):null,n?null:f.createElement(d.A,{text:null==o||null==(e=o.cmsg)?void 0:e.nodata}))}}])}(f.Component))||r},49508:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(10719),o=function(){var e=r.A.getInstance();return!!(e&&e.messenger&&("web"!==e.messenger.clientType||e.messenger._messengerPhone))}},74554:function(e,t,n){"use strict";n.r(t);var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&c()}function s(){i(a)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,20);o=e}return c}(this.refresh.bind(this),0)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
1w e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},d=b(0,0,0,0);function p(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+p(e["border-"+n+"-width"])},0)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!o)return d;if(g(e)){var t;return b(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t,n=e.clientWidth,r=e.clientHeight;if(!n&&!r)return d;var o=f(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=p(a)}return t}(o),i=a.left+a.right,s=a.top+a.bottom,c=p(o.width),u=p(o.height);if("border-box"===o.boxSizing&&(Math.round(c+i)!==n&&(c-=h(o,"left","right")+i),Math.round(u+s)!==r&&(u-=h(o,"top","bottom")+s)),(t=e)!==f(t).document.documentElement){var l=Math.round(c+i)-n,g=Math.round(u+s)-r;1!==Math.abs(l)&&(c-=l),1!==Math.abs(g)&&(u-=g)}return b(a.left,a.top,c,u)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),m=function(e,t){var n,r,o,a,i,s=(n=t.x,r=t.y,o=t.width,a=t.height,l(i=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:r,width:o,height:a,top:r,right:n+o,bottom:a+r,left:n}),i);l(this,{target:e,contentRect:s})},y=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new m(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),O="undefined"!=typeof WeakMap?new WeakMap:new r,_=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new y(t,u.getInstance(),this);O.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){_.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}}),t.default=void 0!==a.ResizeObserver?a.ResizeObserver:_},79028:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(72047),o=n(52822),a=function(e){var t=e.className,n=e.onClick;return r.createElement("div",{className:"n-as-pointer n-fx-cc IframeModalCloseButton ".concat(void 0===t?"":t),onClick:n},r.createElement(o.A,{type:"close"}))}},94275:function(e,t,n){"use strict";n.r(t),n.d(t,{EMessageId:function(){return r.qf},EUriJServerPacket:function(){return r.HE},WS_JServerPacket:function(){return r.vx}});var r=n(23031);t.default=r.Ay}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.