(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{"+2DN":function(e,t,n){"use strict";n.r(t);var r=n("3tWz"),o=n.n(r),i=n("mwIZ"),a=n.n(i),c=n("bNQv"),u=n.n(c),s=n("E+oP"),l=n.n(s),p=n("q1tI"),f=n.n(p),d=n("Vg22"),h=(n("i8i4"),n("Hoga"),n("N58Y")),y=n("xeH2"),m=n.n(y);function v(e){"@babel/helpers - typeof";return(v="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 b(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Object(i.isValidElement)(t)){var r=t;return function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a
, or turn it into a ")+"drag source or a drop target itself.")}}(r),function(e,t){var n=e.ref;return n?Object(i.cloneElement)(e,{ref:function(e){t(e),n&&n(e)}}):Object(i.cloneElement)(e,{ref:t})}(r,n?function(t){return e(t,n)}:e)}e(t,n)}}function R(e){var t,n,r,o;function i(){o&&(o(),o=null),t&&n&&(o=e.connectChooseSource(t,n,r))}return{receiveHandlerId:function(e){e!==t&&(t=e,i())},hooks:function(e){var t={};return Object.keys(e).forEach(function(n){var r=C(e[n]);t[n]=function(){return r}}),t}({connectSource:function(e,t){e!==n&&(n=e,r=t,i())}})}}function I(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(o=function(){return e});var i=T(t);return function(e){return x({connectBackend:function(e,t){return e.connectDragSource(t)},containerDisplayName:"ChooseSource",createHandler:i,registerHandler:E,createMonitor:k,createConnector:R,DecoratedComponent:e,getType:o,collect:n,options:r})}}var D=n("wP27"),N=n.n(D),z=(n("dfIm"),n("MTU0")),M=n.n(z);function B(e){"@babel/helpers - typeof";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 A(){return(A=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Object(i.isValidElement)(t)){var r=t;return function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a
, or turn it into a ")+"drag source or a drop target itself.")}}(r),function(e,t){var n=e.ref;return n?Object(i.cloneElement)(e,{ref:function(e){t(e),n&&n(e)}}):Object(i.cloneElement)(e,{ref:t})}(r,n?function(t){return e(t,n)}:e)}e(t,n)}}function Wn(e){var t={};return Object.keys(e).forEach(function(n){var r=Gn(e[n]);t[n]=function(){return r}}),t}function Yn(e){var t,n,r,o;function i(){o&&(o(),o=null),t&&n&&(o=e.connectChooseSource(t,n,r))}return{receiveHandlerId:function(e){e!==t&&(t=e,i())},hooks:Wn({connectSource:function(e,t){e!==n&&(n=e,r=t,i())}})}}function Jn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(o=function(){return e});var i=Hn(t);return function(e){return An({connectBackend:function(e,t){return e.connectChooseSource(t)},containerDisplayName:"ChoiceSource",createHandler:i,registerHandler:Ln,createMonitor:Qn,createConnector:Yn,DecoratedComponent:e,getType:o,collect:n,options:r})}}function Xn(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return{handlerId:o,unregister:function(){r.removeSource(o)}}}function Zn(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(o=function(){return e});var i=Kn(t);return function(e){return An({connectBackend:function(e,t){return e.connectChooseTarget(t)},containerDisplayName:"ChoiceTarget",createHandler:i,registerHandler:Xn,createMonitor:tr,createConnector:nr,DecoratedComponent:e,getType:o,collect:n,options:r})}}var or={choiceTarget:function(e,t,n){if(!t.didChoiceTarget())return e}};function ir(e,t){return{connectDropTarget:e.connectTarget(),isOver:!!t.isOver(),canDrop:!!t.canDrop(),didDrop:t.didChoiceTarget(),dropResult:t.getTargetResult(),evtCounter:ae.a.inc()}}var ar={choiceSource:function(e,t,n){return log.info("start ----------------------- : ",e.id," ",e),e._beginDragHandler&&e._beginDragHandler(e),e},canChoice:function(e,t,n){return!e.replicate},endChoice:function(e,t,n){return log.info("end ----------------------- : ",e.id," ",e),e._endDragHandler&&e._endDragHandler(ie()({},{dropResult:t.getTargetResult(),evtCounter:ae.a.inc()})),e}};function cr(e,t){return{connectDrapSource:e.connectSource(),isDragging:t.isChoosing()}}var ur={IS_DRAGGING:"IS_DRAGGING",DROP_IN:"DROP_IN",DROP_OUT:"DROP_OUT"},sr={IS_DRAGGING:"IS_DRAGGING",IN_OVER:"IN_OVER",OUT_OVER:"OUT_OVER",DROP_OUT:"DROP_OUT",DROP_IN:"DROP_IN",RESET:"RESET"},lr=function(e){return void 0!==e&&null!==e};var pr={dragSource:{originStateArr:[{status:["init","dragEnd"],nextAction:ur.IS_DRAGGING,getNextProps:function(e){return{status:"isDragging",shouldUpdate:!0,isChange:!1}}},{status:["isDragging"],nextAction:ur.DROP_IN,getNextProps:function(e){return{status:"dragEnd",shouldUpdate:!0}}},{status:["isDragging"],nextAction:ur.DROP_OUT,getNextProps:function(e){return{status:"dragEnd",shouldUpdate:!0}}}],actionHandler:function(e,t){switch(e){case ur.IS_DRAGGING:return{hasPass:function(){return t.isDragging}};case ur.DROP_IN:return{hasPass:function(){return!t.isDragging&&lr(t.dropResult)}};case ur.DROP_OUT:return{hasPass:function(){return!t.isDragging&&!lr(t.dropResult)}};default:return{hasPass:function(){return!1}}}return{hasPass:function(){return!1}}}},dropTarget:{originStateArr:[{status:["init","dropIn"],nextAction:sr.IS_DRAGGING,getNextProps:function(e){return{status:"isDragging",srcItem:e.srcItem,shouldUpdate:!0}}},{status:["isDragging"],nextAction:sr.IN_OVER,getNextProps:function(e){return{status:"canDrop",shouldUpdate:!0}}},{status:["canDrop"],nextAction:sr.DROP_IN,getNextProps:function(e){return{status:"init",shouldUpdate:!0}}},{status:["dropIn"],action:sr.RESET,getNextProps:function(e){return{shouldUpdate:!1,status:"init"}}}],actionHandler:function(e,t){switch(e){case sr.IS_DRAGGING:return{hasPass:function(){return t.canDrop}};case sr.IN_OVER:return{hasPass:function(){return t.isOver}};case sr.DROP_IN:return{hasPass:function(){return!t.isOver&&t.dropResult&&t.didDrop}};case sr.DROP_OUT:return{hasPass:function(){return!t.canDrop}};case sr.RESET:return{hasPass:function(){return!t.isOver&&t.dropResult&&!t.didDrop}};default:return{hasPass:function(){return!1}}}return{hasPass:function(){return!1}}}}},fr=[{status:["isDragging"],nextAction:ur.DROP_OUT,getNextProps:function(e,t,n){return n._onSourceDropOut?n._onSourceDropOut(e):t}},{status:["isDragging"],nextAction:ur.DROP_IN,getNextProps:function(e,t,n){return e.replicate?{status:"init",shouldUpdate:!0}:n._onSourceDropIn?n._onSourceDropIn(e):t}}],dr=[{status:["canDrop"],nextAction:sr.DROP_IN,getNextProps:function(e,t,n){return n._onTargetDropIn?n._onTargetDropIn(e):t}},{status:["isDragging"],nextAction:sr.DROP_OUT,getNextProps:function(e,t,n){return n._onTargetDropOut?n._onTargetDropOut(e):t}}],hr=[{status:["canDrop"],nextAction:sr.DROP_IN,getNextProps:function(e,t,n){t.getComponentCoorStore().getSrcItem();return n&&n._onSourceDropIn?ie()({},n._onSourceDropIn(e),{status:"init"}):{status:"init"}}},{status:["isDragging"],nextAction:sr.DROP_OUT,getNextProps:function(e,t,n){return n&&n._onSourceDropOut?ie()({},n._onSourceDropOut(e),{status:"init"}):{status:"init"}}},{status:["isDragging"],nextAction:sr.IN_OVER,getNextProps:function(e,t,n){return n&&n._onSourceOver?ie()({},n._onSourceOver(e),{status:"canDrop"}):{status:"canDrop"}}}],yr={front:{dragMachine:st("dragSource",fr,pr),dropMachine:st("dropTarget",dr,pr)},back:{dropMachine:st("dropTarget",hr,pr)}},mr=function(e,t){return"dragSource"===e.obj_evt.dnd_type?Qe(0,Jn("item",ar,cr)(rt(De()(t,yr)))):"dropTarget"===e.obj_evt.dnd_type?Qe(0,rr("item",or,ir)(rt(De()(t,yr)))):rt(De()(t,yr))},vr={dropMachine:st("dropTarget",[{status:["init"],nextAction:sr.IS_DRAGGING,getNextProps:function(e,t){var n=t.subItems,r=t.getComponentCoorStore().getSrcItem();return-1!==Je()(n,function(e){return e.id===r.id})?(t.getAnswerStore().answer(r.id,{index:e.index}),{status:"isDragging",srcItem:r,shouldUpdate:!1}):{status:"isDragging",srcItem:r,shouldUpdate:!0}}},{status:["isDragging"],nextAction:sr.DROP_OUT,getNextProps:function(e,t){var n=t.subItems,r=t.getComponentCoorStore().getSrcItem(),o=Je()(n,function(e){return e.id===r.id});return-1===o?{status:"init",shouldUpdate:!0}:(n.splice(o,1),{shouldUpdate:!0,subItems:n,status:"init"})}},{status:["canDrop"],nextAction:sr.DROP_IN,getNextProps:function(e,t){var n=t.subItems,r=t.getComponentCoorStore().getSrcItem();return-1===Je()(n,function(e){return e.id===r.id})?(n=t.subItems.concat([ie()({},r,{replicate:!0})]),t.getAnswerStore().answer(r.id,{index:e.index}),{shouldUpdate:!0,subItems:n,status:"init"}):{shouldUpdate:!0,subItems:n,status:"init"}}}],pr)},br=function(e,t){return Qe(0,rr("item",or,ir)(Jn("item",ar,cr)(rt(jt()(t,vr)))))},gr=[{status:["canDrop"],nextAction:sr.DROP_IN,getNextProps:function(e,t,n){return n&&n._onTargetDropIn?ie()({},n._onTargetDropIn(),{status:"init"}):{status:"init"}}},{status:["isDragging"],nextAction:sr.DROP_OUT,getNextProps:function(e,t,n){return n&&n._onTargetDropOut?ie()({},n._onTargetDropOut(t.srcItem),{status:"init"}):{status:"init"}}},{status:["isDragging"],nextAction:sr.IN_OVER,getNextProps:function(e,t,n){return n&&n._onTargetOver?ie()({},n._onTargetOver(e),{status:"canDrop"}):{status:"canDrop"}}}],_r={source:{dragMachine:st("dragSource",[],pr),dropMachine:st("dropTarget",[],pr)},target:{dropMachine:st("dropTarget",gr,pr)}},wr=function(e,t){return"dragSource"===e.obj_evt.dnd_type?Qe(0,Jn("item",ar,cr)(rt(Kt()(t,_r)))):"dropTarget"===e.obj_evt.dnd_type?Qe(0,rr("item",or,ir)(rt(Kt()(t,_r)))):rt(Kt()(t,_r))};function Or(e){"@babel/helpers - typeof";return(Or="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 Sr(){return(Sr=Object.assign||function(e){for(var t=1;t0?t:1/0}},{key:"reset",value:function(){this.setState({status:b,pos:0})}},{key:"release",value:function(e){this.setState({status:1,pos:e-this.state.y})}},{key:"fix",value:function(e){this.setState({status:2,pos:e})}},{key:"updateInitialDimension",value:function(e){e=e||{};var t=this.outerElement.getBoundingClientRect(),n=this.innerElement.getBoundingClientRect(),r=t.width||t.right-t.left,o=n.height||n.bottom-n.top,i=t.top+this.scrollTop;this.setState({top:this.getTopPosition(e.top),bottom:Math.min(this.state.top+o,O),width:r,height:o,x:t.left,y:i,bottomBoundary:this.getBottomBoundary(e.bottomBoundary),topBoundary:i})}},{key:"handleResize",value:function(e,t){this.props.shouldFreeze()||(O=t.resize.height,this.updateInitialDimension(),this.update())}},{key:"handleScrollStart",value:function(e,t){this.frozen=this.props.shouldFreeze(),this.frozen||(this.scrollTop===t.scroll.top?this.skipNextScrollEvent=!0:(this.scrollTop=t.scroll.top,this.updateInitialDimension()))}},{key:"handleScroll",value:function(e,t){this.skipNextScrollEvent?this.skipNextScrollEvent=!1:(w=t.scroll.delta,this.scrollTop=t.scroll.top,this.update())}},{key:"update",value:function(){if(!this.props.enabled||this.state.bottomBoundary-this.state.topBoundary<=this.state.height||0===this.state.width&&0===this.state.height)this.state.status!==b&&this.reset();else{var e=w,t=this.scrollTop+this.state.top,n=this.scrollTop+this.state.bottom;if(t<=this.state.topBoundary)this.reset();else if(n>=this.state.bottomBoundary)this.stickyBottom=this.state.bottomBoundary,this.stickyTop=this.stickyBottom-this.state.height,this.release(this.stickyTop);else if(this.state.height>O-this.state.top)switch(this.state.status){case b:this.release(this.state.y),this.stickyTop=this.state.y,this.stickyBottom=this.stickyTop+this.state.height;case 1:this.stickyBottom=this.stickyTop+this.state.height,e>0&&n>this.stickyBottom?this.fix(this.state.bottom-this.state.height):e<0&&t0&&o===this.state.top)this.stickyTop=t-e,this.stickyBottom=this.stickyTop+i;else if(e<0&&o===this.state.bottom-i)this.stickyBottom=n-e,this.stickyTop=this.stickyBottom-i;else if(o!==this.state.bottom-i&&o!==this.state.top){var a=o+i-this.state.bottom;this.stickyBottom=n-e+a,this.stickyTop=this.stickyBottom-i}else r=!1;r&&this.release(this.stickyTop)}else this.fix(this.state.top);this.delta=e}}},{key:"componentWillReceiveProps",value:function(e){this.updateInitialDimension(e),this.update()}},{key:"componentDidUpdate",value:function(e,t){var n=this;t.status!==this.state.status&&this.props.onStateChange&&this.props.onStateChange({status:this.state.status}),e.enabled!==this.props.enabled&&(this.props.enabled?this.setState({activated:!0},function(){n.updateInitialDimension(),n.update()}):this.setState({activated:!1},function(){n.reset()}))}},{key:"componentWillUnmount",value:function(){for(var e=(this.subscribers||[]).length-1;e>=0;e--)this.subscribers[e].unsubscribe()}},{key:"componentDidMount",value:function(){p||(p=window,c=document,s=c.documentElement,u=c.body,O=p.innerHeight||s.clientHeight,(l=window.Modernizr)&&l.prefixed&&(_=l.csstransforms3d,g=l.prefixed("transform"))),this.scrollTop=u.scrollTop+s.scrollTop,this.props.enabled&&(this.setState({activated:!0}),this.updateInitialDimension(),this.update()),this.subscribers=[(0,y.subscribe)("scrollStart",this.handleScrollStart.bind(this),{useRAF:!0}),(0,y.subscribe)("scroll",this.handleScroll.bind(this),{useRAF:!0,enableScrollInfo:!0}),(0,y.subscribe)("resize",this.handleResize.bind(this),{enableResizeInfo:!0})]}},{key:"translate",value:function(e,t){_&&this.props.enableTransforms&&this.state.activated?e[g]="translate3d(0,"+Math.round(t)+"px,0)":e.top=t+"px"}},{key:"shouldComponentUpdate",value:function(e,t){return!(this.props.shouldFreeze()||(0,v.default)(this.props,e)&&(0,v.default)(this.state,t))}},{key:"render",value:function(){var e,t=this,n={position:2===this.state.status?"fixed":"relative",top:2===this.state.status?"0px":"",zIndex:this.props.innerZ},r={};this.translate(n,this.state.pos),this.state.status!==b&&(n.width=this.state.width+"px",r.height=this.state.height+"px");var o=(0,m.default)("sticky-outer-wrapper",this.props.className,(a(e={},this.props.activeClass,2===this.state.status),a(e,this.props.releasedClass,1===this.state.status),e)),i=this.props.children;return d.default.createElement("div",{ref:function(e){t.outerElement=e},className:o,style:r},d.default.createElement("div",{ref:function(e){t.innerElement=e},className:"sticky-inner-wrapper",style:n},"function"==typeof i?i({status:this.state.status}):i))}}]),t}();S.displayName="Sticky",S.defaultProps={shouldFreeze:function(){return!1},enabled:!0,top:0,bottomBoundary:0,enableTransforms:!0,activeClass:"active",releasedClass:"released",onStateChange:null},S.propTypes={enabled:h.default.bool,top:h.default.oneOfType([h.default.string,h.default.number]),bottomBoundary:h.default.oneOfType([h.default.object,h.default.string,h.default.number]),enableTransforms:h.default.bool,activeClass:h.default.string,releasedClass:h.default.string,onStateChange:h.default.func,shouldFreeze:h.default.func,innerZ:h.default.oneOfType([h.default.string,h.default.number])},S.STATUS_ORIGINAL=b,S.STATUS_RELEASED=1,S.STATUS_FIXED=2,e.exports=S},"0/Q5":function(e,t,n){var r=n("o814");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},"04Yj":function(e,t,n){var r=n("GJxA");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},"0Zj6":function(e,t,n){var r=n("Giku");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},"0iRS":function(e,t){function n(e){"@babel/helpers - typeof";return(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)}!function(){function e(){}function t(e){var t=e.length-1;return function(){var n=d.call(arguments,0,t),r=d.call(arguments,t);return e.apply(this,n.concat([r]))}}function r(e){return t(function(t,n){"function"!=typeof t&&(t=h(t));return e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function o(e){var t=d.call(arguments,1);return function(){return e.apply(this,t)}}function i(e,t){if(!t)throw new Error("prayer failed: "+e)}function a(e){i("a direction was passed",e===m||e===v)}function c(e,t,n){i("a parent is always present",e),i("leftward is properly set up",t?t[v]===n&&t.parent===e:e.ends[m]===n),i("rightward is properly set up",n?n[m]===t&&n.parent===e:e.ends[v]===t)}function u(e){return insistOnInterVer(),he(e)}function s(e){function t(e){var t,n;return e&&e.nodeType?(n=(t=b(e).children(".mq-root-block").attr(ve))&&_.byId[t].controller)?r[n.KIND_OF_MQ](n):null:null}function n(e,t){var n,o,i;for(n in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:r}),t)t.hasOwnProperty(n)&&(o=t[n],i=T[n],e[n]=i?i(o):o)}var r,o,i;if(!(k<=e&&e<=C))throw"Only interface versions between "+k+" and "+C+" supported. You specified: "+e;for(i in r={},t.L=m,t.R=v,t.config=function(e){return n(j.p,e),this},t.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw"Embed name must start with letter and be only letters and digits";q[e]=t},o=r.AbstractMathQuill=y(P,function(e){e.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},e.__mathquillify=function(e){var t=this.__controller,n=t.root,r=t.container,o=r.addClass(e).contents().detach();n.jQ=b('').attr(ve,n.id).appendTo(r),this.latex(o.text()),this.revert=function(){return r.empty().unbind(".mathquill").removeClass("mq-editable-field mq-math-mode mq-text-mode").append(o)}},e.config=function(e){return n(this.__options,e),this},e.el=function(){return this.__controller.container[0]},e.text=function(){return this.__controller.exportText()},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},e.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,"").replace(/.?<\/span>/i,"").replace(/ mq-hasCursor|mq-hasCursor ?/,"").replace(/ class=(""|(?= |>))/g,"")},e.reflow=function(){return this.__controller.root.postOrder("reflow"),this}}),t.prototype=o.prototype,E)!function(n,o){var i=r[n]=o(r);t[n]=function(r,o){var a,c=t(r);return c instanceof i||!r||!r.nodeType?c:((a=x(i.RootBlock(),b(r),j())).KIND_OF_MQ=n,i(a).__mathquillify(o,e))},t[n].prototype=i.prototype}(i,E[i]);return t}function l(e){var t=this.parent,n=e;do{if(n[v])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}function p(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(":first").add(this.jQ.children(":last")),this.contentjQ=this.jQ.children(":eq(1)")},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css("fontSize"));te(this.delimjQs,be(1+.2*(e-1),1.2),1.2*e)}}function f(e,t){t=t||e;var n=de[e],r=de[t];S[e]=o(fe,m,e,n,t,r),S[n]=o(fe,v,e,n,t,r)}var d,h,y,m,v,b,g,_,w,O,S,x,E,j,T,P,q,k,C,R,I,D,N,z,M,B,A,L,U,H,V,F,Q,G,W,Y,J,X,Z,K,$,ee,te,ne,re,oe,ie,ae,ce,ue,se,le,pe,fe,de,he,ye,me=window.jQuery,ve="mathquill-block-id",be=Math.min,ge=Math.max;if(!me)throw"MathQuill requires jQuery 1.5.2+ to be loaded first";for(W in d=[].slice,h=t(function(e,n){return t(function(t,r){if(e in t)return t[e].apply(t,n.concat(r))})}),y=function(e,t,r){function o(e){return"object"==n(e)}function i(e){return"function"==typeof e}function a(){}return function e(n,r){function c(){var e=new u;return i(e.init)&&e.init.apply(e,arguments),e}function u(){}var s,l,p;return void 0===r&&(r=n,n=Object),c.Bare=u,s=a.prototype=n.prototype,(l=u.prototype=c.prototype=c.p=new a).constructor=c,c.extend=function(t){return e(c,t)},(c.open=function(e){if(p={},i(e)?p=e.call(c,l,s,c,n):o(e)&&(p=e),o(p))for(var r in p)t.call(p,r)&&(l[r]=p[r]);return i(l.init)||(l.init=n),c})(r)}}(0,{}.hasOwnProperty),m=-1,v=1,b=y(me,function(e){e.insDirOf=function(e,t){return e===m?this.insertBefore(t.first()):this.insertAfter(t.last())},e.insAtDirEnd=function(e,t){return e===m?this.prependTo(t):this.appendTo(t)}}),g=y(function(e){e.parent=0,e[m]=0,e[v]=0,e.init=function(e,t,n){this.parent=e,this[m]=t,this[v]=n},this.copy=function(e){return g(e.parent,e[m],e[v])}}),_=y(function(e){e[m]=0,e[v]=0,e.parent=0;var t=0;this.byId={},e.init=function(){this.id=t+=1,_.byId[this.id]=this,this.ends={},this.ends[m]=0,this.ends[v]=0},e.dispose=function(){delete _.byId[this.id]},e.toString=function(){return"{{ MathQuill Node #"+this.id+" }}"},e.jQ=b(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){function t(e){var n,r;for(e.getAttribute&&(n=e.getAttribute("mathquill-command-id"),r=e.getAttribute("mathquill-block-id"),n&&_.byId[n].jQadd(e),r&&_.byId[r].jQadd(e)),e=e.firstChild;e;e=e.nextSibling)t(e)}var n;for(e=b(e||this.html()),n=0;n"===t.slice(-2))c[e]=t.slice(0,-2)+a+"/>";else if("<"===t.charAt(0)){i("not an unmatched top-level close tag","/"!==t.charAt(1)),c[e]=t.slice(0,-1)+a+">",n=1;do{i("no missing close tags",t=c[e+=1]),""!==t.slice(-2)&&(n+=1)}while(n>0)}return c.join("").replace(/>&(\d+)/g,function(e,t){return" mathquill-block-id="+o[t].id+">"+o[t].join("html")})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+"{"+(t.latex()||" ")+"}"})},e.textTemplate=[""],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var o=r.text();return n&&"("===e.textTemplate[t]&&"("===o[0]&&")"===o.slice(-1)?n+o.slice(1,-1)+e.textTemplate[t]:n+r.text()+(e.textTemplate[t]||"")})}}),B=y(M,function(t,n){t.init=function(e,t,r){r||(r=e&&e.length>1?e.slice(1):e),n.init.call(this,e,t,[r])},t.parser=function(){return I.succeed(this)},t.numBlocks=function(){return 0},t.replaces=function(e){e.remove()},t.createBlocks=e,t.latex=function(){return this.ctrlSeq},t.text=function(){return this.textTemplate},t.isEmpty=function(){return!0}}),A=y(B,function(e,t){e.init=function(e,n){t.init.call(this,e,""+(n||e)+"")}}),L=y(B,function(e,t){e.init=function(e,n,r){t.init.call(this,e,''+n+"",r)}}),U=y(z,function(e,t){e.join=function(e){return this.foldChildren("",function(t,n){return t+n[e]()})},e.html=function(){return this.join("html")},e.latex=function(){return this.join("latex")},e.text=function(){return this.ends[m]===this.ends[v]&&0!==this.ends[m]?this.ends[m].text():this.join("text")}}),E.StaticMath=function(e){return y(e.AbstractMathQuill,function(t,n){this.RootBlock=U,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,"mq-math-mode"),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField),t},t.renderHtmlMath=function(e){return this.__controller.renderHtmlMath(e)},t.renderLatex=function(e){return this.__controller.renderLatex(e)}})},y(U,function(e){var t,n="moveOutOf deleteOutOf selectOutOf upOutOf downOutOf".split(" ");for(t=0;t"+(n||e)+"")},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?"\\"==e[0]?e=e.slice(1,e.length):" "==e[e.length-1]&&(e=e.slice(0,-1)):(!this[m]||this[m]instanceof H||this[m]instanceof L||"\\ "===this[m].ctrlSeq||(e="*"+e),!this[v]||this[v]instanceof L||this[v]instanceof ae||(e+="*")),e}}),V=y(H,function(e,t){e.init=function(e){return t.init.call(this,this.letter=e)},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==m&&this[v]instanceof V||this.autoUnItalicize(e)}}),F={},Q=j.p.autoOperatorNames={_maxLength:9},function(){var e,t,n,r,o="arg deg det dim exp gcd hom inf ker lg lim ln log max min sup limsup liminf injlim projlim Pr".split(" ");for(e=0;ef')}}),O[" "]=O.space=o(A,"\\ "," "),O["'"]=O.prime=o(A,"'","′"),O["″"]=O.dprime=o(A,"″","″"),O.backslash=o(A,"\\backslash ","\\"),S["\\"]||(S["\\"]=O.backslash),O.$=o(A,"\\$","$"),Y=y(B,function(e,t){e.init=function(e,n){t.init.call(this,e,''+(n||e)+"")}}),O["@"]=Y,O["&"]=o(Y,"\\&","&"),O["%"]=o(Y,"\\%","%"),O.alpha=O.beta=O.gamma=O.delta=O.zeta=O.eta=O.theta=O.iota=O.kappa=O.mu=O.nu=O.xi=O.rho=O.sigma=O.tau=O.chi=O.psi=O.omega=y(H,function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}),O.phi=o(H,"\\phi ","ϕ"),O.phiv=O.varphi=o(H,"\\varphi ","φ"),O.epsilon=o(H,"\\epsilon ","ϵ"),O.epsiv=O.varepsilon=o(H,"\\varepsilon ","ε"),O.piv=O.varpi=o(H,"\\varpi ","ϖ"),O.sigmaf=O.sigmav=O.varsigma=o(H,"\\varsigma ","ς"),O.thetav=O.vartheta=O.thetasym=o(H,"\\vartheta ","ϑ"),O.upsilon=O.upsi=o(H,"\\upsilon ","υ"),O.gammad=O.Gammad=O.digamma=o(H,"\\digamma ","ϝ"),O.kappav=O.varkappa=o(H,"\\varkappa ","ϰ"),O.rhov=O.varrho=o(H,"\\varrho ","ϱ"),O.pi=O["π"]=o(Y,"\\pi ","π"),O.lambda=o(Y,"\\lambda ","λ"),O.Upsilon=O.Upsi=O.upsih=O.Upsih=o(B,"\\Upsilon ",'ϒ'),O.Gamma=O.Delta=O.Theta=O.Lambda=O.Xi=O.Pi=O.Sigma=O.Phi=O.Psi=O.Omega=O.forall=y(A,function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}),J=y(M,function(e){e.init=function(e){this.latex=e},e.parser=function(){var e=D.parse(this.latex).children();return I.succeed(e)}}),O["¹"]=o(J,"^1"),O["²"]=o(J,"^2"),O["³"]=o(J,"^3"),O["¼"]=o(J,"\\frac14"),O["½"]=o(J,"\\frac12"),O["¾"]=o(J,"\\frac34"),X=y(L,function(e){e.init=A.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){if(t!==v)return this.jQ[0].className=function e(t){return t[m]?t[m]instanceof L||/^[,;:\(\[]$/.test(t[m].ctrlSeq)?"":"mq-binary-operator":t.parent&&t.parent.parent&&t.parent.parent.isStyleBlock()?e(t.parent.parent):""}(this),this}}),O["+"]=o(X,"+","+"),O["–"]=O["-"]=o(X,"-","−"),O["±"]=O.pm=O.plusmn=O.plusminus=o(X,"\\pm ","±"),O.mp=O.mnplus=O.minusplus=o(X,"\\mp ","∓"),S["*"]=O.sdot=O.cdot=o(L,"\\cdot ","·","*"),Z=y(L,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?"Strict":"";t.init.call(this,e["ctrlSeq"+r],e["html"+r],e["text"+r])},e.swap=function(e){this.strict=e;var t=e?"Strict":"";this.ctrlSeq=this.data["ctrlSeq"+t],this.jQ.html(this.data["html"+t]),this.textTemplate=[this.data["text"+t]]}}),K={ctrlSeq:"\\le ",html:"≤",text:"≤",ctrlSeqStrict:"<",htmlStrict:"<",textStrict:"<"},$={ctrlSeq:"\\ge ",html:"≥",text:"≥",ctrlSeqStrict:">",htmlStrict:">",textStrict:">"},O["<"]=O.lt=o(Z,K,!0),O[">"]=O.gt=o(Z,$,!0),O["≤"]=O.le=O.leq=o(Z,K,!1),O["≥"]=O.ge=O.geq=o(Z,$,!1),ee=y(L,function(e,t){e.init=function(){t.init.call(this,"=","=")}}),O["="]=ee,O["×"]=O.times=o(L,"\\times ","×","[x]"),O["÷"]=O.div=O.divide=O.divides=o(L,"\\div ","÷","[/]"),S["~"]=O.sim=o(L,"\\sim ","~","~"),ne=document.createElement("div").style,{transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1})if(oe in ne){re=oe;break}for(ye in te=re?function(e,t,n){e.css(re,"scale("+t+","+n+")")}:"filter"in ne?function(e,t,n){function r(){e.css("marginRight",(o.width()-1)*(t-1)/t+"px")}var o,i;t/=1+(n-1)/2,e.css("fontSize",n+"em"),e.hasClass("mq-matrixed-container")||e.addClass("mq-matrixed-container").wrapInner(''),o=e.children().css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+t+",SizingMethod='auto expand')"),r(),i=setInterval(r),b(window).load(function(){clearTimeout(i),r()})}:function(e,t,n){e.css("fontSize",n+"em")},ie=y(M,function(e,t){e.init=function(e,n,r){t.init.call(this,e,"<"+n+" "+r+">&0")}}),O.mathrm=o(ie,"\\mathrm","span",'class="mq-roman mq-font"'),O.mathit=o(ie,"\\mathit","i",'class="mq-font"'),O.mathbf=o(ie,"\\mathbf","b",'class="mq-font"'),O.mathsf=o(ie,"\\mathsf","span",'class="mq-sans-serif mq-font"'),O.mathtt=o(ie,"\\mathtt","span",'class="mq-monospace mq-font"'),O.underline=o(ie,"\\underline","span",'class="mq-non-leaf mq-underline"'),O.overline=O.bar=o(ie,"\\overline","span",'class="mq-non-leaf mq-overline"'),O.overrightarrow=o(ie,"\\overrightarrow","span",'class="mq-non-leaf mq-overarrow mq-arrow-right"'),O.overleftarrow=o(ie,"\\overleftarrow","span",'class="mq-non-leaf mq-overarrow mq-arrow-left"'),O.overleftrightarrow=o(ie,"\\overleftrightarrow","span",'class="mq-non-leaf mq-overarrow mq-arrow-both"'),O.overarc=o(ie,"\\overarc","span",'class="mq-non-leaf mq-overarc"'),O.dot=y(M,function(e,t){e.init=function(){t.init.call(this,"\\dot",'˙&0')}}),ae=y(M,function(e,t){e.ctrlSeq="_{...}^{...}",e.createLeftOf=function(e){if(this.replacedFragment||e[m]||!e.options.supSubsRequireOperand)return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){var t,n,r,o,i,a;for(t=m;t;t=t===m&&v)if(this[t]instanceof ae){for(n="sub";n;n="sub"===n&&"sup")r=this[n],o=this[t][n],r&&(o?r.isEmpty()?a=g(o,0,o.ends[m]):(r.jQ.children().insAtDirEnd(-t,o.jQ),i=r.children().disown(),a=g(o,i.ends[v],o.ends[m]),t===m?i.adopt(o,o.ends[v],0):i.adopt(o,0,o.ends[m])):this[t].addBlock(r.disown()),this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(o,r));this.remove(),e&&e[m]===this&&(t===v&&a?a[m]?e.insRightOf(a[m]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},j.p.charsThatBreakOutOfSupSub="",e.finalizeTree=function(){this.ends[m].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if("_"===t)return;var n=this.chToCmd(t,e.options);return n instanceof B?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[m]&&!e[v]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),U.p.write.apply(this,arguments)}},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(1===n.length?n:"{"+(n||" ")+"}"):""}return e("_",this.sub)+e("^",this.sup)},e.addBlock=function(e){"sub"===this.supsub?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=b('').append(e.jQ.children()).attr(ve,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=b('').append(e.jQ.children()).attr(ve,e.id).appendTo(this.jQ.removeClass("mq-sup-only")),this.jQ.append(''));for(var t=0;t<2;t+=1)!function(e,t,n,r){e[t].deleteOutOf=function(o,i){if(i.insDirOf(this[o]?-o:o,this.parent),!this.isEmpty()){var a=this.ends[o];this.children().disown().withDirAdopt(o,i.parent,i[o],i[-o]).jQ.insDirOf(-o,i.jQ),i[-o]=a}e.supsub=n,delete e[t],delete e[r+"Into"],e[n][r+"OutOf"]=l,delete e[n].deleteOutOf,"sub"===t&&b(e.jQ.addClass("mq-sup-only")[0].lastChild).remove(),this.remove()}}(this,"sub sup".split(" ")[t],"sup sub".split(" ")[t],"down up".split(" ")[t])}}),O.subscript=O._=y(ae,function(e,t){e.supsub="sub",e.htmlTemplate='&0',e.textTemplate=["_"],e.finalizeTree=function(){this.downInto=this.sub=this.ends[m],this.sub.upOutOf=l,t.finalizeTree.call(this)}}),O.superscript=O.supscript=O["^"]=y(ae,function(e,t){e.supsub="sup",e.htmlTemplate='&0',e.textTemplate=["^"],e.finalizeTree=function(){this.upInto=this.sup=this.ends[v],this.sup.downOutOf=l,t.finalizeTree.call(this)},e.reflow=function(){var e=this.jQ,t=e.prev().innerHeight();t*=.6,e.css("vertical-align",t+"px")}}),ce=y(M,function(e,t){e.init=function(e,t){var n='&1'+t+'&0';B.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return this.ctrlSeq+"_"+e(this.ends[m].latex())+"^"+e(this.ends[v].latex())},e.parser=function(){var e,t=I.string,n=I.optWhitespace,r=I.succeed,o=D.block,i=this,a=i.blocks=[U(),U()];for(e=0;e&1&0')},e.createLeftOf=M.p.createLeftOf}),ue=O.frac=O.dfrac=O.cfrac=O.fraction=y(M,function(e,t){e.ctrlSeq="\\frac",e.htmlTemplate='&0&1',e.textTemplate=["(",")/(",")"],e.finalizeTree=function(){this.upInto=this.ends[v].upOutOf=this.ends[m],this.downInto=this.ends[m].downOutOf=this.ends[v]}}),O.over=S["/"]=y(ue,function(e,t){}),se=O.sqrt=O["√"]=y(M,function(e,t){e.ctrlSeq="\\sqrt",e.htmlTemplate='&0',e.textTemplate=["sqrt(",")"],e.parser=function(){return D.optBlock.then(function(e){return D.block.map(function(t){var n=le();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[v].jQ;te(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}}),O.hat=y(M,function(e,t){e.ctrlSeq="\\hat",e.htmlTemplate='^&0',e.textTemplate=["hat(",")"]}),le=O.nthroot=y(se,function(e,t){e.htmlTemplate='&0&1',e.textTemplate=["sqrt[","](",")"],e.latex=function(){return"\\sqrt["+this.ends[m].latex()+"]{"+this.ends[v].latex()+"}"}}),pe=y(M,function(e,t){e.init=function(e,n,r){var o=''+n+'&0';t.init.call(this,e,o,r)}}),O.vec=o(pe,"\\vec","→",["vec(",")"]),O.tilde=o(pe,"\\tilde","~",["tilde(",")"]),fe=y(y(M,p),function(e,t){e.init=function(e,n,r,o,i){t.init.call(this,"\\left"+o,void 0,[n,r]),this.side=e,this.sides={},this.sides[m]={ch:n,ctrlSeq:o},this.sides[v]={ch:r,ctrlSeq:i}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate=''+this.sides[m].ch+'&0'+this.sides[v].ch+"",t.html.call(this)},e.latex=function(){return"\\left"+this.sides[m].ctrlSeq+this.ends[m].latex()+"\\right"+this.sides[v].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof fe&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||de[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":"]","[":")"}[this.sides[m].ch]===n.sides[v].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===m?0:1).removeClass("mq-ghost").html(this.sides[this.side].ch)},e.finalizeTree=function(){this.ends[m].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(this.side===m?1:0).removeClass("mq-ghost"),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),de={"(":")",")":"(","[":"]","]":"[","{":"}","}":"{","\\{":"\\}","\\}":"\\{","⟨":"⟩","⟩":"⟨","\\langle ":"\\rangle ","\\rangle ":"\\langle ","|":"|","\\lVert ":"\\rVert ","\\rVert ":"\\lVert "},f("("),f("["),f("{","\\{"),O.langle=o(fe,m,"⟨","⟩","\\langle ","\\rangle "),O.rangle=o(fe,v,"⟨","⟩","\\langle ","\\rangle "),S["|"]=o(fe,m,"|","|","|","|"),O.lVert=o(fe,m,"∥","∥","\\lVert ","\\rVert "),O.rVert=o(fe,v,"∥","∥","\\lVert ","\\rVert "),O.left=y(M,function(e){e.parser=function(){var e=I.regex,t=I.string,n=(I.succeed,I.optWhitespace);return n.then(e(/^(?:[([|]|\\\{|\\langle\b|\\lVert\b)/)).then(function(r){var o="\\"===r.charAt(0)?r.slice(1):r;return"\\langle"==r&&(o="⟨",r+=" "),"\\lVert"==r&&(o="∥",r+=" "),D.then(function(i){return t("\\right").skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle\b|\\rVert\b)/)).map(function(e){var t,n="\\"===e.charAt(0)?e.slice(1):e;return"\\rangle"==e&&(n="⟩",e+=" "),"\\rVert"==e&&(n="∥",e+=" "),(t=fe(0,o,n,r,e)).blocks=[i],i.adopt(t,0,0),t})})})}}),O.right=y(M,function(e){e.parser=function(){return I.fail("unmatched \\right")}}),O.binom=O.binomial=y(y(M,p),function(e,t){e.ctrlSeq="\\binom",e.htmlTemplate='(&0&1)',e.textTemplate=["choose(",",",")"]}),O.inputText=y(M,function(e,t){e.ctrlSeq="\\inputText",e.htmlTemplate='
&0 &1
',e.latex=function(){return"\\inputText{"+this.blocks[0].latex()+"}{}"},e.jsxHtml=function(){var e=N.getIdFromSuffix("inputText",this.blocks[0].latex()),t='
';return N.storeProps("inputText",e,this.blocks[1].latex()),t},e.textTemplate=["(",")/(",")"],e.finalizeTree=function(){this.upInto=this.ends[v].upOutOf=this.ends[m],this.downInto=this.ends[m].downOutOf=this.ends[v]}}),O.mInputText=y(M,function(e,t){e.ctrlSeq="\\mInputText",e.htmlTemplate='
&0 &1
',e.latex=function(){return"\\mInputText{"+this.blocks[0].latex()+"}{}"},e.jsxHtml=function(){var e=N.getIdFromSuffix("mInputText",this.blocks[0].latex()),t='
';return N.storeProps("mInputText",e,this.blocks[1].latex()),t},e.textTemplate=["(",")/(",")"],e.finalizeTree=function(){this.upInto=this.ends[v].upOutOf=this.ends[m],this.downInto=this.ends[m].downOutOf=this.ends[v]}}),O.ntimes=y(M,function(e,t){e.ctrlSeq="\\ntimes",e.htmlTemplate='
&0
×
&1
',e.textTemplate=["custime(",")"],e.parser=function(){return D.optBlock.then(function(e){return D.block.map(function(t){var n=le();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[v].jQ;te(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}}),O.atimes=y(M,function(e,t){e.ctrlSeq="\\atimes",e.htmlTemplate='
&0
+
&1
',e.textTemplate=["custime(",")"],e.parser=function(){return D.optBlock.then(function(e){return D.block.map(function(t){var n=le();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[v].jQ;te(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}}),O.stimes=y(M,function(e,t){e.ctrlSeq="\\stimes",e.htmlTemplate='
&0
-
&1
',e.textTemplate=["custime(",")"],e.parser=function(){return D.optBlock.then(function(e){return D.block.map(function(t){var n=le();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[v].jQ;te(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}}),he=s(1))!function(e,t){"function"==typeof t?(u[e]=function(){return insistOnInterVer(),t.apply(this,arguments)},u[e].prototype=t.prototype):u[e]=t}(ye,he[ye])}()},"1+Gg":function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("I+pd"),a=(n("OO9F"),n("25vq")),c=n("g8p1");function u(e){"@babel/helpers - typeof";return(u="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 s(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:null,r=a()(this.results,function(t){return t.id===e});-1===r?this.results.push({id:e,answer:t}):"delete"===n?o()(this.results,function(t){return t.id==e}):this.results[r].answer=t,this.actionDispatch&&this.actionDispatch.answer&&this.actionDispatch.answer(this.results,this.dispatchProps,n)}},{key:"answerBatch",value:function(e){this.results=e,this.actionDispatch.answer(this.results,this.dispatchProps)}},{key:"getResults",value:function(){return this.results}},{key:"reset",value:function(){this.results=[]}}]),e}()},"2qFS":function(e,t,n){},"3l72":function(e,t,n){var r=n("2qFS");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},"3qhi":function(e,t,n){},"3tWz":function(e,t){var n=Array.prototype.join;e.exports=function(e,t){return null==e?"":n.call(e,t)}},"5Y9s":function(e,t,n){var r=n("qfp5");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},"5p8w":function(e,t,n){var r=n("NQgF");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},"7MZ4":function(e,t,n){var r=n("FNMs");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},"8+4P":function(e,t,n){var r=n("kG2s");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},"8RDs":function(e){e.exports={none:{class:""},"chapter-page-bt":{class:"template_tieuhoc page-BT"},"chapter-page-lt":{class:"template_tieuhoc"},"quiz-page":{class:"template_tieuhoc page-BT body_question_TH hidden-footer"},"summary-page":{class:"template_tieuhoc page-BT body_question_TH"},"hidden-footer":{class:"hidden-footer"}}},"8vAd":function(e,t,n){"use strict";function r(e){var t=e;return t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.toLowerCase()).replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a")).replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e")).replace(/ì|í|ị|ỉ|ĩ/g,"i")).replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o")).replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u")).replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y")).replace(/đ/g,"d")).replace(/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\.|\:|\;|\'|\"|\&|\#|\[|\]|~|\$|_|`|-|{|}|\||\\/g," ")).replace(/ + /g," ")).trim().split(" ").join("-")}n.d(t,"a",function(){return r})},"99BB":function(e,t,n){"use strict";n.r(t);var r=n("xweI"),o=n.n(r),i=n("Puqe"),a=n.n(i),c=n("6qam"),u=n.n(c),s=n("bNQv"),l=n.n(s),p=n("JZM8"),f=n.n(p),d=n("3WF5"),h=n.n(d),y=n("k4Da"),m=n.n(y),v=n("UfWW"),b=n.n(v),g=n("GoyQ"),_=n.n(g),w=n("TP7S"),O=n.n(w),S=n("mwIZ"),x=n.n(S),E=n("E+oP"),j=n.n(E),T=n("Z0cm"),P=n.n(T),q=n("q1tI"),k=n.n(q),C=n("Vg22"),R=(n("i8i4"),n("HFOa")),I=n("fr9w"),D=n("6XnD"),N=(n("Hoga"),n("pc26")),z=n.n(N),M=n("Suow"),B=n("f5r7"),A=n("dbib"),L=n("25vq"),U=n("YECT"),H=n("DydZ"),V=n("xlXI"),F=n("OO9F"),Q=n("jY6F"),G=n("8vAd"),W=n("dtw8"),Y=n("IBTu"),J=n("t8Fj"),X=n.n(J),Z=(n("bxw6"),n("TJpk")),K=n.n(Z),$=n("OriO"),ee=n("N58Y"),te=(n("eB4G"),n("xeH2")),ne=n.n(te),re=n("p/U9"),oe=(n("emDs"),n("obyI"));function ie(e){"@babel/helpers - typeof";return(ie="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 ae(e,t){for(var n=0;n=r.props.list_quiz.length?r.doneAnswer():r.setState({indexQuestion:e},function(){ne()("html,body").animate({scrollTop:ne()("#single-quizes").offset().top},"slow")})}),pe(se(r),"handleChangeQuestion",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=r.state.indexQuestion,o=r.props.list_quiz.length,i=!1;if(u()(r.currentPart))i=!0;else{var a=x()(r.currentPart,"questions").length;if(r.props.list_quiz[n].idx==r.currentPart.questions[a-1]){if(!confirm("Bạn có muốn chuyển sang phần thi tiếp theo ? Bạn sẽ không thể quay lại để sửa các câu hỏi ở phần ".concat(r.currentPart.title,".")))return!1;i=!0}else i=!0}if(!0===i){var c=function(e){return"next"===e&&n===o-1?(confirm("Bạn có muốn nộp bài không ?")&&r.doneAnswer(),!1):("back"!==e||0!==n)&&("next"===e&&r.setState({indexQuestion:n+1},function(){ne()("html,body").animate({scrollTop:ne()("#single-quizes").offset().top},"slow")}),void("back"===e&&r.setState({indexQuestion:n-1},function(){ne()("html,body").animate({scrollTop:ne()("#single-quizes").offset().top},"slow")})))};null!==t?c(t):"Left"===e.dir?c("next"):"Right"===e.dir&&c("back")}}),r.state={turnOff:!1,scrollRightBlock:!1,ListQuestion:[],quiz_array_change:[],activeExam:"",not_sure:!1,indexQuestion:0,disabledDoneButton:!1},r.parentIdArr=[],r.answerStore=[],r.captureSecond=0,r}return function(e,t,n){t&&ae(e.prototype,t),n&&ae(e,n)}(n,[{key:"componentDidMount",value:function(){var e,t;if(Object($.a)("hidden-footer"),this.props.dispatch(Object(D.n)("exam")),console.log("this.props :",this.props),this.props.params){e=this.props.params.typeExam,t=this.props.params.examID;var n=this.props.params.exam,r=this.props.params.lop,o=Q.a.getURLExerciseExam({gradeType:13-+r,title:n,examID:t,typeExam:e});return this.props.router.replace(o),!1}e=this.props.examInfomation.typeExam,t=this.props.examInfomation.examID,"new"===this.props.fetchState?this.props.dispatch(Object(M.r)(t)):this.props.dispatch(Object(M.p)(t))}},{key:"componentWillReceiveProps",value:function(e){var t=this;if(e.list_quiz&&!this.props.list_quiz&&e.list_quiz.length>0&&e.list_quiz.forEach(function(e,n){t.answerStore[n]=new L.a({answer:function(e,t){t.dispatch({choice_answer:e})}},{dispatch:function(e){t.handset_answer(e,n+1)}}),e.answer&&(t.answerStore[n].results=e.answer.choice)}),this.currentPart=null,P()(e.multipartTimer)&&!j()(e.multipartTimer)){var n=[],r=0;e.multipartTimer.forEach(function(e,t){var o=e.question.split(",");r+=o.length,e.countLength=r,e.questions=o,n.push(e)}),console.log(n),n.forEach(function(e,n){null===t.currentPart&&t.state.indexQuestion0&&e.elapedTimer-this.captureSecond>=parseInt(60*x()(this.currentPart,"time"))&&(this.captureSecond=e.elapedTimer,this.autoNextQuestion(this.currentPart.countLength)),e.elapedTimer>e.beginningTimer&&this.doneAnswer()}},{key:"componentWillUnmount",value:function(){this.props.dispatch(Object(M.k)("out"))}},{key:"componentDidUpdate",value:function(){this.props.list_quiz&&3==this.props.list_quiz[this.state.indexQuestion].question_type&&4!==this.props.list_quiz[this.state.indexQuestion].question.type&&re.a.renderMathjax("#single-quiz")}},{key:"render",value:function(){var e=this,t=this.props.list_quiz,n=this.state.quiz_array_change,r=this.props.items;if(j()(t))return k.a.createElement("div",{className:"loader"});j()(n)&&(n=t);var i={};l()(t,function(e,t){""==e.parent.id||i[e.parent.id]?""!=e.parent.id&&i[e.parent.id]&&(i[e.parent.id].push(e),i[e.parent.id].total=t+1,i[e.parent.id].text_quiz.push(t+1)):(i[e.parent.id]=[e],e.render_first_view=!0,i[e.parent.id].total=t+1,i[e.parent.id].text_quiz=[t+1])});var c=k.a.createElement("div",{className:this.state.turnOff?"col-sm-1 turn-on-activess":"col-sm-1"},k.a.createElement(R.a,{statusLight:this.state.turnOff,changeLight:this.changeLight})),s=this.state.indexQuestion,p=t[s],f=k.a.createElement("div",{className:"row",id:"single-quizes"},c,k.a.createElement("div",{className:"col-sm-11"},k.a.createElement("div",{className:"quiz-page bg-white mg-bottom-20 mg-top-20 border-r-6 padding-15"},k.a.createElement("div",{className:this.state.turnOff?"mg-bottom-15 turn-on-active multi-quiz":"mg-bottom-15 multi-quiz"},k.a.createElement("div",{key:s},p.parent.content&&k.a.createElement("div",null,k.a.createElement("span",{style:{color:"red"}}," Sử dụng đề bài trong khung dưới để trả lời câu hỏi"),k.a.createElement("div",{dangerouslySetInnerHTML:{__html:Object(ee.a)(p.parent.content)},className:"main-quiz-content"})),function(t,n){if(x()(t,"quiz.solution_detail")&&(t.quiz=a()(t.quiz,"solution_detail"),t.quiz.question=a()(t.quiz.question,"answer_key","editor","solution")),x()(t,"quiz.answer.choice")&&3==t.quiz.question_type)switch(x()(t,"quiz.question.type")){case 2:l()(t.quiz.answer.choice,function(e,n){var r=b()(x()(t.quiz,"question.quiz.targets.items"),["id",e.id]);t.quiz.question.quiz.targets.items[r].answer=e.answer});break;case 3:l()(t.quiz.answer.choice,function(e,n){var r=b()(x()(t.quiz,"question.quiz.secondParagraph.items"),["id",e.id]);t.quiz.question.quiz.secondParagraph.items[r].content=e.answer});break;case 4:l()(t.quiz.answer.choice,function(e,n){var r=b()(x()(t.quiz,"question.quiz.paragraph.items"),["id",e.id]);t.quiz.question.quiz.paragraph.items[r].answer=e.answer}),t.quiz.question.quiz.paragraph.items=o()(t.quiz.question.quiz.paragraph.items,"answer.index");break;case 19:l()(t.quiz.answer.choice,function(e,n){var r=b()(x()(t.quiz,"question.quiz.option.items"),["id",e.id]);t.quiz.question.quiz.option.items[r].answer=e.answer});break;case 20:l()(t.quiz.answer.choice,function(e,n){var r=b()(x()(t.quiz,"question.quiz.option.items"),["id",e.id]);l()(t.quiz.question.quiz.option.items[r].answer,function(e){e.selected=!1}),t.quiz.question.quiz.option.items[r].answer[+e.answer-1].selected=!0});break;default:x()(t.quiz,"question.quiz.option.items")&&l()(t.quiz.answer.choice,function(e,n){var r=b()(x()(t.quiz,"question.quiz.option.items"),["id",e.id]);t.quiz.question.quiz.option.items[r].correct=e.answer})}return k.a.createElement("div",pe({id:"package",className:"item-question active",key:n},"id","questionId-"+t.quiz._id),3===t.quiz.question_type&&k.a.createElement("b",null,"Câu ",n+1),k.a.createElement(V.a,{loadComponent:Object(F.a)("web",fe),answerStore:e.answerStore[n],device:"web",componentCoorStore:de},k.a.createElement(B.a,{items:t,set_answer:e.handset_answer,activeSelect:!0,question_index:n+1})))}({quiz:p},s),k.a.createElement("div",{className:"text-center mg-top-25"},s===this.props.list_quiz.length-1?k.a.createElement("div",null,!u()(this.currentPart)&&s>0&&this.props.list_quiz[s].idx!=this.currentPart.questions[0]&&k.a.createElement("a",{className:"cursor-pointer text-white btn-green btn-action text-center",onClick:function(){return e.handleChangeQuestion(null,"back")}},k.a.createElement("i",{className:"fa fa-angle-double-left","aria-hidden":"true"}),"Câu hỏi phía trước"),k.a.createElement("a",{className:"cursor-pointer text-white btn-green btn-action text-center ".concat(this.state.disabledDoneButton?"disabled":""),onClick:function(){e.state.disabledDoneButton?console.log("Running"):e.doneAnswer()}},"Nộp bài")):k.a.createElement("div",null,!u()(this.currentPart)&&s>0&&this.props.list_quiz[s].idx!=this.currentPart.questions[0]&&k.a.createElement("a",{className:"cursor-pointer text-white btn-green btn-action text-center",onClick:function(){return e.handleChangeQuestion(null,"back")}},k.a.createElement("i",{className:"fa fa-angle-double-left","aria-hidden":"true"}),"Câu hỏi phía trước"),k.a.createElement("a",{className:"cursor-pointer text-white btn-green btn-action text-center",onClick:function(){return e.handleChangeQuestion(null,"next")}},"Câu hỏi tiếp theo",k.a.createElement("i",{className:"fa fa-angle-double-right","aria-hidden":"true"})))),u()(this.currentPart)&&function(t,n){return k.a.createElement("p",{className:"text-center mg-top-20",style:{display:"block",overflow:"hidden"},onClick:function(){return e.handleNotSure(n)}},k.a.createElement("a",{className:"pending-quiz color-grey font-size-14 ".concat(t.not_sure?"not-sure":"")},"Lát kiểm tra lại ",k.a.createElement("span",null,t.not_sure?k.a.createElement("i",{className:"fa fa-check","aria-hidden":"true"}):"")))}(p,s))),k.a.createElement("div",{className:"turn-light-on"}))));return k.a.createElement("div",null,r.exam&&r.exam.title&&k.a.createElement(K.a,{title:"".concat(r.exam.title),meta:[{property:"og:title",content:"".concat(r.exam.title)}]}),k.a.createElement("div",{className:"bg-grey"},k.a.createElement("div",{className:"container"},k.a.createElement("div",{className:"row"},k.a.createElement("div",{className:"col-sm-9"},f),k.a.createElement("div",{className:"col-sm-3"},k.a.createElement(X.a,{top:5,bottomBoundary:"#Sticky-footer"},k.a.createElement("div",{className:"box-right-exam"},k.a.createElement(I.a,{ListQuestion:n,scrollToExam:this._scrollToExam,_stopAnswer:this.stopAnswer,_doneAnswer:this.doneAnswer,currentPart:this.currentPart,limit_time:this.props.time,limit_parttime:x()(this.currentPart,"time")}))))))))}}]),n}();t.default=Object(C.connect)(function(e){return{list_quiz:e.exams.items.list_quiz,items:e.exams.items,elapedTimer:e.countTimer.elapedTimer,beginningTimer:e.countTimer.beginningTimer,multipartTimer:x()(e.countTimer,"multipartTimer"),fetchState:e.exams.fetchState,time:e.exams.items.time}})(he)},At8f:function(e,t,n){},"Cd+2":function(e,t,n){},D0HL:function(e,t,n){"use strict";n("TP7S"),n("mwIZ");var r=n("E+oP"),o=n.n(r),i=n("q1tI"),a=n.n(i),c=(n("dtw8"),n("u2mz")),u=n("cuY2"),s=n.n(u),l=(n("VpSC"),n("GKHL"),n("h6cg"));function p(e){"@babel/helpers - typeof";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 f(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=[];if(t>0){for(var o=0;o|\?|\/|,|\.|\:|\;|\'|\"|\&|\#|\[|\]|~|\$|_|`|-|{|}|\||\\/g," ")).replace(/ + /g," ")).trim().split(" ").join("-")}n.d(t,"a",function(){return r})},Gfal:function(e,t,n){},Giku:function(e,t,n){},"H+PL":function(e,t,n){},HAuv:function(e,t,n){var r=n("nP6P");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},HFOa:function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r);function i(e){"@babel/helpers - typeof";return(i="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 a(e,t){for(var n=0;n"===(n+=e.content).substr(n.length-6)&&(n+="
"),t+=n;else if("image"===e.type){var r="",o=e.width?e.width:"";if(+e.quantity>0){for(var i=0;i'.concat(r,"
"),t+=n}else n+='
\n ').concat(e.caption,'\n
'),t+=n}else if("notice"===e.type){var a="";a=1==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375113123_icon_chuy.png":2==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375210964_icon_chuy2.png":"https://cdn.vungoi.vn/vungoi/2021/0507/1620375233555_icon_chuy3.png",n+='
'),n+='
'),n+='
'.concat(e.content,"
"),t+=n+="
"}else if("simple_notice"===e.type)n+='
'),n+='
'.concat(e.content,"
"),t+=n+="
";else if("icon_notice"===e.type){var c="";c=1==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375113123_icon_chuy.png":2==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375210964_icon_chuy2.png":"https://cdn.vungoi.vn/vungoi/2021/0507/1620375233555_icon_chuy3.png",n+='
'),n+='
'),n+='
'.concat(e.content,"
"),t+=n+="
"}}),t}},IHKf:function(e,t,n){var r=n("dl7v");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},IIw4:function(e,t,n){var r=n("i6Mk");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},J4Xm:function(e,t,n){var r=n("n9hd");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},JZM8:function(e,t,n){var r=n("FfPP"),o=n("xs/l")(function(e,t){return null==e?{}:r(e,t)});e.exports=o},Jls6:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n.n(r),i=n("17x9"),a=n.n(i),c=n("3WF5"),u=n.n(c),s=n("bNQv"),l=n.n(s),p=n("u2mz"),f=(n("YCeY"),n("R7+6")),d=n("xyTa"),h=n("h6cg"),y=(n("qCb6"),n("D0HL"));n("F7wJ"),n("kSTI");function m(e){"@babel/helpers - typeof";return(m="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(e,t){for(var n=0;n0?"bg-hightlight selected":""})}),d(p(r),"renderSolution",function(){var e=r.props,t=e.correct,n=e.answer;e.id;return o.a.createElement("div",{className:"select-area"},o.a.createElement("div",{className:"input-value"},t),o.a.createElement("span",{className:t.length>0?"wrap-input-line":"",dangerouslySetInnerHTML:{__html:Object(i.a)(n)}}))}),d(p(r),"renderQuiz",function(){var e,t=r.props,n=t.correct,a=t.answer,c=t.id,u=r.state,s=u.className,l=u.value,p=u.showInputText;return e=o.a.createElement("span",{className:"wrap-input "+s,dangerouslySetInnerHTML:{__html:Object(i.a)(a)}}),o.a.createElement("div",{className:"select-area",id:c,onClick:r.handleClick,ref:r.setWrapperRef},o.a.createElement("div",{className:"input-value"},r.state.valueTmp),o.a.createElement("span",{className:p?"input-text":"visibility input-text"},o.a.createElement("a",{className:"close-box",onClick:r.handleRemoveInput}),o.a.createElement("span",{className:"input-box"},o.a.createElement("input",{id:c,onChange:r.hanleChange,onKeyPress:r._handleKeyPress,defaultValue:n,value:l}))),e)}),r.state={className:"",showInputText:!1,value:"",valueTmp:""},r.handleClick=r.handleClick.bind(p(r)),r.setWrapperRef=r.setWrapperRef.bind(p(r)),r.handleOutsideClick=r.handleOutsideClick.bind(p(r)),r.hanleChange=r.hanleChange.bind(p(r)),r}return function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(n,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleOutsideClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleOutsideClick)}},{key:"handleOutsideClick",value:function(e){this.node&&this.node.contains(e.target)||this.setState({showInputText:!1,valueTmp:this.state.value,className:this.state.value.length>0?"bg-hightlight selected":""})}},{key:"handleClick",value:function(){this.setState({className:"bg-hightlight selected",showInputText:!0})}},{key:"setWrapperRef",value:function(e){this.node=e}},{key:"hanleChange",value:function(e){this.setState({value:e.target.value},this.props.storeAnswer(this.props.id,e.target.value))}},{key:"render",value:function(){return"quiz"===this.props.mode?this.renderQuiz():this.renderSolution()}}]),n}();h.contextTypes={answerStore:a.PropTypes.object.isRequired},t.a=h},MTB2:function(e,t,n){"use strict";n.r(t);var r=n("3OWR"),o=n.n(r),i=n("uhBA"),a=n.n(i),c=!1;if("undefined"!=typeof window)try{var u=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("test",null,u),window.removeEventListener("test",null,u)}catch(e){}var s=c,l={connections:{},EE:new a.a,enableResizeInfo:!1,enableScrollInfo:!1,listeners:{},removers:[],supportPassiveEvent:s},p=l.supportPassiveEvent,f={capture:!1,passive:!1};var d=function(e,t,n,r){var i="addEventListener",a="removeEventListener",c=t,u=!!p&&o()({},f,r);return!e.addEventListener&&e.attachEvent&&(i="attachEvent",a="detachEvent",c="on"+t),e[i](c,n,u),{remove:function(){e[a](t,n)}}},h=!1;if("undefined"!=typeof navigator){var y=navigator.userAgent.match(/MSIE (\d+\.\d+)/);y&&(h=parseFloat(y[1],10)<9)}var m=h,v=n("uM7l"),b=n.n(v),g=n("DzJC"),_=n.n(g),w=n("vN+2"),O=n.n(w),S=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=(t.mainType||"").toLowerCase(),r=(t.subType||"").toLowerCase();this.mainType=n,this.subType=r,this.type=n+r.charAt(0).toUpperCase()+r.slice(1)||"",this.scroll=E,this.resize=x,this.touch=j}return S(e,[{key:"update",value:function(e){var t=this.mainType,n=this.subType,r=document.documentElement;if(l.enableScrollInfo&&("scroll"===t||"touchmove"===t)){var o=r.scrollTop+document.body.scrollTop;o!==this.scroll.top&&(this.scroll.delta=o-this.scroll.top,this.scroll.top=o)}if(l.enableResizeInfo&&"resize"===t&&(this.resize.width=window.innerWidth||r.clientWidth,this.resize.height=window.innerHeight||r.clientHeight),l.enableTouchInfo&&e.touches&&("touchstart"===t||"touchmove"===t||"touchend"===t)){var i=void 0,a=void 0,c=void 0;"touchstart"===t||"start"===n?(i=T(e.touches[0]),this.touch.axisIntention="",this.touch.startX=i.x,this.touch.startY=i.y,this.touch.deltaX=0,this.touch.deltaY=0):"touchmove"===t&&(i=T(e.touches[0]),this.touch.deltaX=i.x-this.touch.startX,this.touch.deltaY=i.y-this.touch.startY,""===this.touch.axisIntention&&(a=Math.abs(this.touch.deltaX),c=Math.abs(this.touch.deltaY),a>5&&a>=c?this.touch.axisIntention="x":c>5&&c>a&&(this.touch.axisIntention="y")))}}}]),e}(),q=n("xEkU"),k=n.n(q),C=Date.now||function(){return(new Date).getTime()};var R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=void 0,r=void 0,o=0,i=0,a=function a(){var c=C();t-(c-o)<=0?(o=c,i=0,e.apply(n,r)):i=k()(a)};return function(){n=this,r=arguments,i||(i=k()(a))}},I=100,D=50,N=l.connections,z=l.EE,M=l.listeners,B=l.removers,A=void 0,L=void 0,U=void 0,H=0;function V(e){return e.id||"target-id-"+H++}function F(e,t,n,r){return z.on(e,t||O.a,n),N[r=r||e]=(N[r]||0)+1,{_type:e,_cb:t,_ctx:n,unsubscribe:function(){if(this._type){z.removeListener(e,t,n),N[r]--,0===N[r]&&(M[r].remove(),M[r]=void 0),this._type=void 0,this._cb=void 0,this._ctx=void 0;for(var o=B.length-1;o>=0;o--){if(B[o]===this){B.splice(o,1);break}}}}}}function Q(e,t,n){return function(r,o,i,a){var c=i.context,u=i.target,s=u&&V(u),l=s?":"+s:"",p=t+"Start:"+r+l,f=t+"End:"+r+l,h=t+":"+r+l,y=F(n+":"+r+l,o,c,h);if(B.push(y),M[h])return y;var v={start:new P({mainType:t,subType:"start"}),main:new P({mainType:t}),end:new P({mainType:t,subType:"end"})};"raf"===r?(r=16,O=R(O)):r>0&&(O=_()(O,r));var g=void 0;function w(e){v.end.update(e),z.emit(f,e,v.end),g=null}function O(e){g||(v.start.update(e),z.emit(p,e,v.start)),clearTimeout(g),v.main.update(e),z.emit(h,e,v.main),g=m?setTimeout(function(){w(b()(e))},r+I):setTimeout(w.bind(null,e),r+I)}return M[h]=d(u||e,t,O,a),y}}function G(e,t){return function(n,r,o,i){var a=o.context,c=o.target,u=c&&V(c),s=t+":0"+(u?":"+u:""),l=F(s,r,a);if(B.push(l),M[s])return l;var p=new P({mainType:t});return M[s]=d(c||e,t,function(e){p.update(e),z.emit(s,e,p)},i),l}}"undefined"!=typeof window&&(U=(A=(L=window).document||document).body);var W={scrollStart:Q(L,"scroll","scrollStart"),scrollEnd:Q(L,"scroll","scrollEnd"),scroll:Q(L,"scroll","scroll"),resizeStart:Q(L,"resize","resizeStart"),resizeEnd:Q(L,"resize","resizeEnd"),resize:Q(L,"resize","resize"),visibilitychange:G(A,"visibilitychange"),touchmoveStart:Q(U,"touchmove","touchmoveStart"),touchmoveEnd:Q(U,"touchmove","touchmoveEnd"),touchmove:Q(U,"touchmove","touchmove"),touchstart:G(U,"touchstart"),touchend:G(U,"touchend")};var Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.useRAF||!1,o=parseInt(n.throttleRate,10),i=n.eventOptions;return isNaN(o)&&(o=D),r&&(o="raf"),m&&(o=0),l.enableScrollInfo=l.enableScrollInfo||n.enableScrollInfo||!1,l.enableResizeInfo=l.enableResizeInfo||n.enableResizeInfo||!1,l.enableTouchInfo=l.enableTouchInfo||n.enableTouchInfo||!1,W[e](o,t,n,i)},J=l.removers;var X=function(e,t){for(var n=void 0,r=J.length-1;r>=0;r-=1)(n=J[r])._cb===t&&n._type.indexOf(e)>=0&&(n.unsubscribe(),J.splice(r,1))};n.d(t,"listen",function(){return $}),n.d(t,"subscribe",function(){return ee}),n.d(t,"unsubscribe",function(){return te});var Z="undefined"!=typeof window;function K(){0}var $=Z?d:K,ee=Z?Y:K,te=Z?X:K},N58Y:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n("q1tI");var r=function(e){if(void 0===e)return null;var t="";return e.forEach(function(e){var n="";if(null===e)t+="";else if("html"===e.type)n+=e.content,t+=n;else if("image"===e.type)n+='
').concat(e.caption,'
'),t+=n;else if("notice"===e.type){var r="";r=1==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375113123_icon_chuy.png":2==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375210964_icon_chuy2.png":"https://cdn.vungoi.vn/vungoi/2021/0507/1620375233555_icon_chuy3.png",n+='
'),n+='
'),n+='
'.concat(e.content,"
"),t+=n+="
"}else if("simple_notice"===e.type)n+='
'),n+='
'.concat(e.content,"
"),t+=n+="
";else if("icon_notice"===e.type){var o="";o=1==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375113123_icon_chuy.png":2==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375210964_icon_chuy2.png":"https://cdn.vungoi.vn/vungoi/2021/0507/1620375233555_icon_chuy3.png",n+='
'),n+='
'),n+='
'.concat(e.content,"
"),t+=n+="
"}}),t}},NQgF:function(e,t,n){},OO9F:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n("q1tI"),o=n.n(r),i=(n("wP27"),n("dfIm"),n("MTU0"),n("+7VV"));function a(e){"@babel/helpers - typeof";return(a="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 c(){return(c=Object.assign||function(e){for(var t=1;te.length)&&-1!==e.indexOf(t)}function u(e){for(var t="";e;)t+="0",e-=1;return t}function s(e,t){var n=e+"+"+v(x(t).sort(),function(e){return e+":"+t[e]}).join(",");return s.cache[n]||(s.cache[n]=Intl.NumberFormat(e,t)),s.cache[n]}function l(e,t,i){var a,c,p,f=t.useToLocaleString,d=t.useGrouping,h=d&&t.grouping.slice(),y=t.maximumSignificantDigits,m=t.minimumIntegerDigits||1,v=t.fractionDigits||0,b=t.groupingSeparator,g=t.decimalSeparator;if(f&&i){var _={minimumIntegerDigits:m,useGrouping:d};if(v&&(_.maximumFractionDigits=v,_.minimumFractionDigits=v),y&&e>0&&(_.maximumSignificantDigits=y),r){var w;if(!o)(w=S({},t)).useGrouping=!1,w.decimalSeparator=".",e=parseFloat(l(e,w),10);return s(i,_).format(e)}return n||((w=S({},t)).useGrouping=!1,w.decimalSeparator=".",e=parseFloat(l(e,w),10)),e.toLocaleString(i,_)}var O=(y?e.toPrecision(y+1):e.toFixed(v+1)).split("e");p=O[1]||"",c=(O=O[0].split("."))[1]||"";var x=(a=O[0]||"").length,E=c.length,j=x+E,T=a+c;(y&&j===y+1||!y&&E===v+1)&&((T=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n0?c.length<=P?(a+=c+=u(P-c.length),c=""):(a+=c.slice(0,P),c=c.slice(P)):P<0&&(c=u(Math.abs(P)-a.length)+a+c,a="0"),y||((c=c.slice(0,v)).lengtht.label.length?-1:e.label.length0,W=G?o.precision:0,Y=W,J=o.minValue,X=!1,Z=o.maxValue,K=!1,$=o.useToLocaleString,ee=o.groupingSeparator,te=o.decimalSeparator,ne=o.grouping;$=$&&(t||r);var re=o.trim;d(re)&&(re=re.join(" ")),null===re&&(z||Z||G)&&(re="all"),null!==re&&!0!==re&&"left"!==re&&"right"!==re||(re="large"),!1===re&&(re="");var oe=function(e){return e.test(re)},ie=/both/,ae=/^all|[^sm]all/,ce=z>0||E([/large/,ie,ae],oe),ue=E([/small/,ie,ae],oe),se=E([/mid/,ae],oe),le=E([/final/,ae],oe),pe=v(I.match(R),function(e,t){var n=C(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&M.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(k.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}}),fe={index:0,length:0,token:"",text:"",type:null},de=[];L&&pe.reverse(),m(pe,function(e){if(e.type)return(fe.type||fe.text)&&de.push(fe),void(fe=e);L?fe.text=e.token+fe.text:fe.text+=e.token}),(fe.type||fe.text)&&de.push(fe),L&&de.reverse();var he=w(i,_(g(b(de,"type"))));if(!he.length)return b(de,"text").join("");he=v(he,function(e,t){var n,r=t+1===he.length,i=!t;n="years"===e||"months"===e?P.as(e):T.as(e);var a=Math.floor(n),c=n-a,u=y(de,function(t){return e===t.type});return i&&Z&&n>Z&&(K=!0),r&&J&&Math.abs(o.duration.as(e))1&&(V=!0),T.subtract(a,e),P.subtract(a,e),{rawValue:n,wholeValue:a,decimalValue:r?c:0,isSmallest:r,isLargest:i,type:e,tokenLength:u.length}});var ye=Q?Math.floor:Math.round,me=function(e,t){var n=Math.pow(10,t);return ye(e*n)/n},ve=!1,be=!1,ge=function(e,t){var n={useGrouping:F,groupingSeparator:ee,decimalSeparator:te,grouping:ne,useToLocaleString:$};return G&&(W<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=W,e.significantDigits=W)),K&&!be&&(e.isLargest?(e.wholeValue=Z,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),X&&!be&&(e.isSmallest?(e.wholeValue=J,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?H<0?e.value=me(e.wholeValue,H):0===H?e.value=ye(e.wholeValue+e.decimalValue):G?(e.value=Q?me(e.rawValue,W-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(W-=e.wholeValue.toString().length)):(n.fractionDigits=H,e.value=Q?e.wholeValue+me(e.decimalValue,H):e.wholeValue+e.decimalValue):G&&e.wholeValue?(e.value=Math.round(me(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),W-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(V||ve)&&(n.minimumIntegerDigits=e.tokenLength,be&&n.maximumSignificantDigits0||""===re||y(M,e.type)||y(D,e.type))&&(ve=!0),e.formattedValue=l(e.value,n,A),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=l(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=l(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((he=g(he=v(he,ge))).length>1){var _e=function(e){return y(he,function(t){return t.type===e})};m(a,function(e){var t=_e(e.type);t&&m(e.targets,function(e){var n=_e(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),be=!0)})})}return be&&(ve=!1,W=Y,he=g(he=v(he,ge))),!D||K&&!o.trim?(ce&&(he=O(he,function(e){return!e.isSmallest&&!e.wholeValue&&!y(M,e.type)})),z&&he.length&&(he=he.slice(0,z)),ue&&he.length>1&&(he=function(e,t){return O(e.slice().reverse(),t).reverse()}(he,function(e){return!e.wholeValue&&!y(M,e.type)&&!e.isLargest})),se&&(he=g(he=v(he,function(e,t){return t>0&&t ",K=!1,X=!1),j&&(t.value>0||""===re||y(M,t.type)||y(D,t.type))&&(n+="-",j=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,L||(n+=e.text),n})).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function k(){var e=this.duration,t=function(t){return e._data[t]},n=y(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function C(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=P,e.duration.fn.format=q,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:k,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",f)}var R=function(e,t,n){return e.toLocaleString(t,n)};t=function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()&&T(R),n=t&&j(R);var I=function(e,t,n){if("undefined"!=typeof window&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(t,n).format(e)};return r=T(I),o=r&&j(I),C(e),C})},SFtt:function(e){e.exports={}},TWDj:function(e,t,n){var r=n("v1DJ");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},UAcW:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var r=n("q1tI"),o=n.n(r).a.createContext({}),i=o.Provider,a=o.Consumer},UYr5:function(e,t,n){},UoGI:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return c});var r=n("3OWR"),o=n.n(r),i="DRAG_OPERATION",a="RESET";function c(e){return o()({},{type:i},{target:e})}},"V/K6":function(e,t,n){"use strict";var r=n("mwIZ"),o=n.n(r),i=n("bNQv"),a=n.n(i),c=n("q1tI"),u=n.n(c),s=n("u2mz"),l=(n("YCeY"),n("R7+6")),p=n("xyTa"),f=n("h6cg");n("qCb6");function d(e){"@babel/helpers - typeof";return(d="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;n0&&o()(d,"quiz.order_subquiz")>=0&&(v=o()(d,"quiz.start_blank")+o()(d,"quiz.order_subquiz")),u.a.createElement("div",{id:"quiz-single"},u.a.createElement("div",null,u.a.createElement("div",{className:"vn-tit-question"},u.a.createElement("strong",{className:"cl5 fl"},"Câu ",n||"hỏi:"," "),u.a.createElement("span",{className:"clf pull-right ".concat(m.color)},m.text_level)),u.a.createElement("div",{className:"question-content",id:"question-content"},u.a.createElement("div",{className:"content-quiz mg-top-10"},v>0&&!y&&u.a.createElement("div",{style:{fontWeight:"bold"}},"Please choose an answer for blank number (",v,")"),u.a.createElement("p",{dangerouslySetInnerHTML:{__html:y}})),u.a.createElement("br",null),u.a.createElement(l.a,{question_state:i,answers:h,handleChooseAnswer:this.handleChooseAnswer,activeSelect:a,question_style:c}))))}}]),n}();t.a=g},V4u1:function(e,t,n){"use strict";var r=n("4qC0"),o=n.n(r),i=n("6qam"),a=n.n(i),c=n("BkRI"),u=n.n(c),s=n("OFL0"),l=n.n(s),p=n("mwIZ"),f=n.n(p),d=n("TP7S"),h=n.n(d),y=n("q1tI"),m=n.n(y),v=n("u2mz"),b=n("xyTa"),g=n("h6cg"),_=(n("D0HL"),n("F7wJ"),n("kSTI"),n("04Yj"),n("D9/2"));function w(e){"@babel/helpers - typeof";return(w="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 O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=x(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function S(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||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.")}()}function x(e,t){if(e){if("string"==typeof e)return E(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)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&n.push(e),r.setState({question:i}),r.setState({options_dnd:n}),r.draggedItem=null,r.dropItem=null,r.dragContainer=null;var a={dndAnswer:i};r.props.set_answer({choice_answer:a},r.props.question_index,a),r.setState({answer:r.props.items.quiz.answer})}),I(C(r),"onDragOver",function(e){r.dragContainer!==e?r.dropItem=e:r.dropItem=null}),I(C(r),"matchItem",function(e){e.trim()&&(r.setState({activeDragValue:e.trim()}),r.setState({activeContainerValue:void 0}))}),I(C(r),"matchContainer",function(){var e=T(regeneratorRuntime.mark(function e(t){var n,o,i,a,c,s,l,p,f,d,y,m,v,b,g,_,w;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u()(r.state.question),alert(r.state.activeDragValue),""==r.state.activeDragValue){e.next=13;break}n.coordinates[t].answer=r.state.activeDragValue.trim(),r.setState({question:n}),r.setState({activeDragValue:""}),o=S(r.state.question.options_dnd),i=[],a=O(n.coordinates);try{for(a.s();!(c=a.n()).done;)s=c.value,h()(s.answer)||i.push(s.answer.trim())}catch(e){a.e(e)}finally{a.f()}return l=o.filter(function(e){return!i.includes(e.trim())}),e.next=13,r.setState({options_dnd:l});case 13:if(""!==r.state.activeDragValue.trim()){e.next=43;break}if(h()(r.state.activeContainerValue)){e.next=40;break}if((p=r.state.activeContainerValue)!==(f=t)){e.next=31;break}n.coordinates[t].answer="",r.setState({question:n}),r.setState({activeDragValue:""}),d=S(r.state.question.options_dnd),y=[],m=O(n.coordinates);try{for(m.s();!(v=m.n()).done;)b=v.value,h()(b.answer)||y.push(b.answer.trim())}catch(e){m.e(e)}finally{m.f()}return g=d.filter(function(e){return!y.includes(e.trim())}),r.setState({options_dnd:g}),e.next=29,r.setState({activeContainerValue:void 0});case 29:e.next=38;break;case 31:if(_=n.coordinates[f].answer,h()(n.coordinates[p].answer)){e.next=38;break}return n.coordinates[f].answer=n.coordinates[p].answer,n.coordinates[p].answer=_,r.setState({question:n}),e.next=38,r.setState({activeContainerValue:void 0});case 38:e.next=43;break;case 40:if(h()(n.coordinates[t].answer)){e.next=43;break}return e.next=43,r.setState({activeContainerValue:t});case 43:return w={dndAnswer:n},e.next=46,r.props.set_answer({choice_answer:w},r.props.question_index,w);case 46:return e.next=48,r.setState({answer:r.props.items.quiz.answer});case 48:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),r.state={question:[],text_fill:"",answer:[],userchoose:"",hide:!0,renderNow:!0,height:0,typingTimeout:0,activeDragValue:"",activeContainerValue:void 0},r}return function(e,t,n){t&&P(e.prototype,t),n&&P(e,n)}(n,[{key:"componentDidMount",value:function(){var e=T(regeneratorRuntime.mark(function e(){var t,n,r,o,i,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.props.items){e.next=10;break}return e.next=3,this.setState({question:h()(this.props.items.quiz.answer)?this.props.items.quiz.question:this.props.items.quiz.answer.choice.dndAnswer,options_dnd:this.props.items.quiz.question.options_dnd,answer:f()(this.props.items,"quiz.answer.choice.dndAnswer")});case 3:t=[],n=O(this.state.question.coordinates);try{for(n.s();!(r=n.n()).done;)o=r.value,h()(o.answer)||t.push(o.answer.trim())}catch(e){n.e(e)}finally{n.f()}return i=S(this.state.question.options_dnd),a=i.filter(function(e){return!t.includes(e.trim())}),e.next=10,this.setState({options_dnd:a});case 10:if(h()(this.props.userAnswer)){e.next=13;break}return e.next=13,this.setState({answer:h()(this.props.userAnswer.answer_key.dndAnswer)?this.props.items.quiz.answer.choice.dndAnswer:this.props.userAnswer.answer_key.dndAnswer});case 13:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentWillReceiveProps",value:function(){var e=T(regeneratorRuntime.mark(function e(t){var n,r,o,i,a,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t._id==this.props._id){e.next=10;break}return e.next=3,this.setState({question:h()(t.items.quiz.answer)?t.items.quiz.question:t.items.quiz.answer.choice.dndAnswer,options_dnd:t.items.quiz.question.options_dnd,answer:f()(t.items,"quiz.answer.choice.dndAnswer")});case 3:n=[],r=O(this.state.question.coordinates);try{for(r.s();!(o=r.n()).done;)i=o.value,h()(i.answer)||n.push(i.answer.trim())}catch(e){r.e(e)}finally{r.f()}return a=S(this.state.question.options_dnd),c=a.filter(function(e){return!n.includes(e.trim())}),e.next=10,this.setState({options_dnd:c});case 10:if(h()(t.userAnswer)){e.next=13;break}return e.next=13,this.setState({answer:h()(t.userAnswer.answer_key.dndAnswer)?t.items.quiz.answer.choice.dndAnswer:t.userAnswer.answer_key.dndAnswer});case 13:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(){g.a.renderMathjax(document.getElementsByClassName("quiz-single"))}},{key:"render",value:function(){var e=this,t=this.props,n=t.question_index,r=t.diff_level,o=(t.dataPreview,t.question_state,t.activeSelect),i=(t.question_style,t.teacherOverView,t.items),a=this.state,c=a.question,u=a.options_dnd,s=a.activeContainerValue,l=a.activeDragValue,p=a.answer;if(void 0===c)return null;var d=Object(b.a)(r),y="url(".concat(c.picture_dnd,")"),g=c.width,w=c.height,O=360*w/g,S=320*w/g;O=parseInt(O),S=parseInt(S);var x=u&&u.map(function(t,n){return m.a.createElement("div",{className:t.trim()==l?"boxDrag boxDragActive":"boxDrag",key:"dnd"+n,draggable:!0,onDragStart:function(t){return e.onDragStart(t,n)},onDragEnd:e.onDragEnd},t)}),E="";return E=o?c.coordinates&&c.coordinates.map(function(t,n){return m.a.createElement("div",{className:n==parseInt(s)?"boxSmart boxSmartActive":"boxSmart",key:"cor"+n,style:{left:t.x_percent+"%",top:t.y_percent+"%",minWidth:"60px",minHeight:"30px",textAlign:"center"},onDragOver:function(){return e.onDragOver(n)}},f()(t,"answer")?m.a.createElement("div",{className:"subItemContainer",draggable:!0,onDragStart:function(t){return e.onDragStartInner(t,n)},onDragEnd:e.onDragEndInner}," ",f()(t,"answer")," "):"")}):c.coordinates&&c.coordinates.map(function(t,n){return m.a.createElement("div",{className:n==parseInt(s)?"boxSmart boxSmartActive":"boxSmart",key:"cor"+n,style:{left:t.x_percent+"%",top:t.y_percent+"%",minWidth:"120px",minHeight:"30px",textAlign:"center"},onDragOver:function(){return e.onDragOver(n)}},m.a.createElement("span",null,f()(p,"coordinates[".concat(n,"].answer"))?f()(p,"coordinates[".concat(n,"].answer")):""),m.a.createElement("div",{style:{backgroundColor:"#1270e3",position:"absolute",top:"-40px",left:"10px",padding:"10px",borderRadius:"50px"}},!h()(f()(p,"coordinates[".concat(n,"].answer")))&&f()(t,"correct_text").trim()===f()(p,"coordinates[".concat(n,"].answer")).trim()&&m.a.createElement("img",{src:"images/s-check.png"}),f()(t,"correct_text")?f()(t,"correct_text"):""))}),m.a.createElement("div",{id:"quiz-dnd-english-21"},m.a.createElement("div",null,m.a.createElement("div",{className:"vn-tit-question"},m.a.createElement("strong",{className:"cl5 fl"},"Câu ",n||"hỏi:"," "),m.a.createElement("span",{className:"clf pull-right ".concat(d.color)},d.text_level)),m.a.createElement("div",{className:"question-content",id:"question-content"},m.a.createElement("div",{className:"content-quiz mg-top-10"},m.a.createElement(_.a,{__html:Object(v.a)(c.content)})),m.a.createElement("div",null,i.quiz.attachment.audioFile&&m.a.createElement("p",null,m.a.createElement("audio",{controls:!0},m.a.createElement("source",{src:i.quiz.attachment.audioFile,type:"audio/mpeg"}))))),m.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},x),m.a.createElement("div",{className:"demo",style:{backgroundImage:y,backgroundRepeat:"no-repeat",backgroundSize:"contain",height:O+"px",width:"360px",display:"flex",position:"relative",overflow:"visible",padding:"0",boxSizing:"border-box"}},E)))}}]),n}();t.a=D},VpSC:function(e,t,n){"use strict";var r=n("nbsC"),o=n.n(r),i=n("pM09"),a={getURLExerciseChapter:function(e){return o.a.render("/{{lop}}/bai-tap-muc-{{chapter}}-c{{chapterID}}.html",{lop:"lop-"+i[e.gradeType].lop,chapter:e.chapterName,chapterID:e.chapterID})},getURLQuestion:function(e){return o.a.render("/{{lop}}/luyen-bai-tap-muc-{{chapter}}-{{chapterID}}.html",{lop:"lop-"+i[e.gradeType].lop,chapter:e.chapterName,chapterID:e.chapterID})},getURLLyThuyetSubject:function(e){return o.a.render("/{{lop}}/ly-thuyet-{{subject}}-{{subjectID}}.html",{lop:"lop-"+i[e.gradeType].lop,subject:e.subjectName,subjectID:e.subjectID})},getURLBaitapSubject:function(e){return o.a.render("/{{lop}}/bai-tap-{{subject}}-s{{subjectID}}.html",{lop:"lop-"+i[e.gradeType].lop,subject:e.subjectName,subjectID:e.subjectID})},getURLExam:function(e){return o.a.render("/{{lop}}/de-thi-de-kiem-tra-{{subject}}-s{{subjectID}}.html",{lop:"lop-"+i[e.gradeType].lop,subject:e.subjectName,subjectID:e.subjectID})},getURLTagExam:function(e){return o.a.render("/{{lop}}/de-thi-{{tag}}-t{{tagID}}.html",{lop:"lop-"+i[e.gradeType].lop,tag:e.tagName,tagID:e.tagID})},getURLExerciseExam:function(e){return e.typeExam?o.a.render("/{{lop}}/chi-tiet-{{exam}}-x{{examID}}.html?typeExam={{typeExam}}",{lop:"lop-"+i[e.gradeType].lop,exam:e.title,examID:e.examID,typeExam:e.typeExam}):o.a.render("/{{lop}}/chi-tiet-{{exam}}-x{{examID}}.html",{lop:"lop-"+i[e.gradeType].lop,exam:e.title,examID:e.examID})},getURLQuestionExam:function(e){return o.a.render("/{{lop}}/luyen-de-thi-muc-{{exam}}-x{{examID}}-t{{typeExam}}.html",{lop:"lop-"+i[e.gradeType].lop,exam:e.title,examID:e.examID,typeExam:e.typeExam})},getURLLyThuyetChapter:function(e){return e.related_id?o.a.render("/{{lop}}/chi-tiet-ly-thuyet-{{chapter}}-{{chapterID}}.html#{{related_id}}",{lop:"lop-"+i[e.gradeType].lop,chapter:e.chapterName,chapterID:e.chapterID,related_id:e.related_id}):o.a.render("/{{lop}}/chi-tiet-ly-thuyet-{{chapter}}-{{chapterID}}.html",{lop:"lop-"+i[e.gradeType].lop,chapter:e.chapterName,chapterID:e.chapterID})},getURLConcept:function(e){return o.a.render("ly-thuyet/{{alias}}-{{idx}}.html"+"".concat(e.related_id?"#"+e.related_id:""),e)},getURLThongbao:function(e){return o.a.render("/thong-bao-{{newsName}}-{{newsId}}.html",{newsName:e.newsName,newsId:e.newsId})},getURLHome:function(e){return o.a.render("/{{lop}}.html",{lop:"lop-"+i[e.gradeType].lop})},getURLHomeLyThuyet:function(e){return o.a.render("/{{lop}}/ly-thuyet.html",{lop:"lop-"+i[e.gradeType].lop})},getURLHomeDeThi:function(e){return o.a.render("/{{lop}}/de-thi-de-kiem-tra.html",{lop:"lop-"+i[e.gradeType].lop})},getURLListTheoryFollowingChapter:function(e){return o.a.render("/{{lop}}/ly-thuyet-{{chapterName}}-ct{{chapterId}}.html",{lop:"lop-"+i[e.gradeType].lop,chapterName:e.chapterName,chapterId:e.chapterId,subjectId:e.subjectId,subject:e.subject})},getURLListExFollowingChapter:function(e){return o.a.render("/{{lop}}/bai-tap-{{chapterName}}-ct{{chapterId}}.html",{lop:"lop-"+i[e.gradeType].lop,chapterName:e.chapterName,chapterId:e.chapterId,subjectId:e.subjectId,subject:e.subject})},getUrlPersonal:function(e){return o.a.render("/thong-ke/{{statusmenu}}/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID,statusmenu:e.statusmenu})},getURLUserExercise:function(e){return o.a.render("/thong-ke/ket_qua/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID})},getUrlSaveExercise:function(e){return o.a.render("/thong-ke/luu_bai/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID})},getUrlWrongExercise:function(e){return o.a.render("/thong-ke/bai_sai/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID})},getNoteExersise:function(e){return o.a.render("/thong-ke/ghi_chu/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID})},getURLEditExam:function(e){var t=e.examId;return o.a.render("/giao-vien/sua-bai-tap-{{examId}}",{examId:t})}};t.a=a},WTOR:function(e,t,n){var r=n("fXez");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},X7jl:function(e,t,n){"use strict";var r=0,o={inc:function(){return r++},get:function(){return r}};t.a=o},YCeY:function(e,t,n){var r=n("At8f");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},YECT:function(e,t,n){"use strict";n.d(t,"a",function(){return O});var r=n("k4Da"),o=n.n(r),i=n("mUg4"),a=n.n(i),c=n("bNQv"),u=n.n(c),s=n("UrOp"),l=n.n(s),p=n("3WF5"),f=n.n(p),d=n("UfWW"),h=n.n(d),y=n("nEsn"),m=n.n(y),v=n("E+oP"),b=n.n(v),g=n("3OWR"),_=n.n(g);n("X7jl");function w(e,t){for(var n=0;n=2){log.getLogger("dnd_core").debug("container_event: newIntersectCompLst ",o," ",this.crossHoverComp),this.intersectCompLst=o;var s=m()(o,this.hoverCompLst,function(e,t){return e.props.id===t.props.id});if(!b()(s))if(c)-1===h()(this.hoverCompLst,function(e){return n.crossHoverComp.props&&e.props.id===n.crossHoverComp.props.id})&&(i.push(n.packOverEvt("outhover",this.crossHoverComp.props.id,this.crossHoverComp.props)),i.push(n.packOverEvt("hover",this.hoverCompLst[0].props.id,this.hoverCompLst[0].props)),a=this.hoverCompLst[0]);else i.push(n.packOverEvt("hover",this.hoverCompLst[0].props.id,this.hoverCompLst[0].props)),a=this.hoverCompLst[0];else f()(this.hoverCompLst,function(e){i.push(n.packOverEvt("outhover",e.props.id,e.props))}),-1===h()(o,function(e){return n.crossHoverComp.props&&e.props.id===n.crossHoverComp.props.id})&&(c&&i.push(n.packOverEvt("outhover",this.crossHoverComp.props.id,this.crossHoverComp.props)),i.push(n.packOverEvt("hover",o[0].props.id,o[0].props)),a=o[0]);return a.props&&this.crossHoverComp.props&&a.props.id!==this.crossHoverComp.props.id&&!b()(i)||b()(this.crossHoverComp)?(this.crossHoverComp=a,log.getLogger("dnd_core").debug("container_event: before_fire outhover ",i),{status:"over_outover",shouldChildUpdate:!0,refs:i}):{shouldChildUpdate:!1}}if(0===o.length&&(n.crossHoverComp={}),this.intersectCompLst.length>=2){var p=m()(o,this.intersectCompLst,function(e,t){return t.props.id===e.props.id}),d=l()(this.intersectCompLst,o,function(e,t){return e.props.id===t.props.id}),y={status:"over_outover",srcItem:e,shouldChildUpdate:!0,refs:[]};return u()(p,function(e){n.crossHoverComp=e,y.refs.push(n.packOverEvt("hover",e.props.id,e.props))}),u()(d,function(e){y.refs.push(n.packOverEvt("outhover",e.props.id,e.props))}),this.intersectCompLst=o,y}var v=l()(o,this.intersectCompLst,function(e,t){return e.props.id===t.props.id}),g=l()(this.intersectCompLst,o,function(e,t){return e.props.id===t.props.id});this.intersectCompLst=o;var _={status:"over_outover",srcItem:e,shouldChildUpdate:!0,refs:[]};return u()(v,function(e){n.crossHoverComp=e,_.refs.push(n.packOverEvt("hover",e.props.id,e.props))}),u()(g,function(e){_.refs.push(n.packOverEvt("outhover",e.props.id,e.props))}),b()(v)&&b()(g)?{shouldChildUpdate:!1}:(log.getLogger("dnd_core").debug("container_event: updatedProps",_),_)}},{key:"drop",value:function(e,t,n,r){if(n){this.resetSession();var o={shouldChildUpdate:!0,refs:[],status:"drop"};return b()(this.crossHoverComp)||r.id===this.crossHoverComp.props.id||o.refs.push(_()({},this.crossHoverComp.props,{id:this.crossHoverComp.props.id,isOver:!1,didDrop:!0,dropResult:this.crossHoverComp.props,canDrop:!1})),o}if(b()(this.intersectCompLst))return this.resetSession(),{shouldChildUpdate:!0,refs:[],status:"drop"};var i={shouldChildUpdate:!0,status:"drop",refs:[],srcItem:e};return b()(this.crossHoverComp)||i.refs.push(_()({},this.crossHoverComp.props,{id:this.crossHoverComp.props.id,isOver:!1,didDrop:!0,dropResult:this.crossHoverComp.props,canDrop:!1})),this.resetSession(),i}},{key:"resetSrc",value:function(e,t){var n=this.generateCompId(e,t);delete this.components[n]}},{key:"resetSession",value:function(){this.hoverCompLst=[],this.startDragSession=!1,this.intersectCompLst=[],this.crossHoverComp={}}},{key:"reset",value:function(){this.resetSession(),this.startedSession=!1,this.srcItem={},this.swappableSrcItem={},this.components={}}},{key:"triggerStartSession",value:function(){this.startedSession=!0}},{key:"hasStartSession",value:function(){return this.startedSession}},{key:"calIntersectionComps",value:function(e,t){var n=this.components[e];if(!n)return[];var r={left:t.x,top:t.y,right:n.boundbox.width+t.x,bottom:n.boundbox.height+t.y},i=[];return a()(this.components,function(e,t){"dropTarget"===e.srcEvtType&&i.push(e)}),o()(i,function(e){return function(e,t){return!(t.left>e.right||t.righte.bottom||t.bottom20?o()(s):20,i=o()(s)>20?"
":""}if(!0===c)return"richText"===t.obj_type?m.a.createElement(_.a,{__html:Object(v.a)(t.content)}):"inputText"===t.obj_type?m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:i}}),m.a.createElement("input",{style:{margin:"0 5px",width:i?"90%":"auto"},key:t.id,name:t.id,type:"text",size:n,autoComplete:"off",value:l()(e.state.inputValue,[t.id]),onChange:function(n){return e.handleFillAnswer(n,t.id,t.question_child)}}),m.a.createElement("div",{dangerouslySetInnerHTML:{__html:i}})):"breakLine"===t.obj_type?m.a.createElement("br",null):"";var p="",f=l()(r,"question_child.option_items");return u()(f)&&!a()(f)&&f.forEach(function(e){e.id===t.id&&(p=e.selected)}),"richText"===t.obj_type?m.a.createElement(_.a,{__html:Object(v.a)(t.content)}):"inputText"===t.obj_type?m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:i}}),m.a.createElement("input",{key:t.id,style:{width:i?"90%":"auto"},name:t.id,type:"text",size:n,autoComplete:"off",value:p}),m.a.createElement("div",{dangerouslySetInnerHTML:{__html:i}})):"breakLine"===t.obj_type?"
":""})))})))))}}]),n}();t.a=B},a57E:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"CHOOSE_SOURCE",function(){return h}),n.d(r,"END_CHOICE",function(){return y}),n.d(r,"chooseSource",function(){return m}),n.d(r,"endChoice",function(){return v});var o=n("q1tI"),i=n.n(o),a=n("Xaro"),c=n.n(a),u=n("N35l"),s=n.n(u),l=n("2JNG"),p=n.n(l),f=n("3OWR"),d=n.n(f),h="CHOOSE_SOURCE",y="END_CHOICE";function m(e){var t=this.getRegistry(),n=t.getSource(e),r=n.chooseSource(n.props);return t.pinSource(e),{type:h,itemType:t.getSourceType(e),item:r,sourceId:e}}function v(e){var t=this.getMonitor(),n=this.getRegistry(),r=n.getSource(e);r.chooseSource(r.props);return r.endChoice(t,e),n.unpinSource(),{type:y,sourceId:e}}function b(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 g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{chooseOperation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case h:var n=e.counter+1;return d()({},e,{sourceId:t.sourceId,item:t.item,itemType:t.itemType,counter:n});case y:return g(g({},e),{},{itemType:null,item:null,sourceId:null,targetResult:null,didChoiceTarget:!1,isSourcePublic:null,targetIds:[]});default:return e}}(e.chooseOperation,t),stateId:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}(e.stateId)}}var S=n("mdVC"),x=n.n(S),E=(n("Z0cm"),n("I9jU")),j=n.n(E),T="ADD_SOURCE",P="REMOVE_SOURCE";var q=0;function k(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).handlerIds,this.store.getState().stateId;return this.store.subscribe(function(){var n=t.store.getState().stateId;try{e()}finally{n}})}},{key:"canDragSource",value:function(e){var t=this.registry.getSource(e);return x()(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"isChoosing",value:function(){return Boolean(this.getItemType())}},{key:"isChooseSource",value:function(e){var t=this.registry.getSource(e,!0);return!!this.isChoosing()&&(this.registry.getSourceType(e)===this.getItemType()&&t.isChoosing(this,e))}},{key:"getSourceId",value:function(){return this.store.getState().chooseOperation.sourceId}},{key:"getItem",value:function(){return this.store.getState().chooseOperation.item}},{key:"getItemType",value:function(){return this.store.getState().chooseOperation.itemType}},{key:"getCounter",value:function(){return this.store.getState().chooseOperation.counter}}]),e}(),z=n("bdvY");function M(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=p()(O);this.context=n,this.store=r,this.monitor=new N(r),this.registry=this.monitor.registry,this.backend=new z.a(this)}return function(e,t,n){t&&M(e.prototype,t),n&&M(e,n)}(e,[{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch;return Object.keys(r).filter(function(e){return"function"==typeof r[e]}).reduce(function(n,o){var i=r[o];return n[o]=function(n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset,n=void 0===t?null:t,r=e.slice(0),o=this.getMonitor(),i=this.getRegistry(),a=o.getItemType(),c=r.length-1;c>=0;c--){var u=r[c];w(i.getTargetType(u),a)||r.splice(c,1)}for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{choiceOperation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x:var n=e.counter+1;return b()({},e,{sourceId:t.sourceId,counter:n,itemType:t.itemType,item:t.item});case T:return I(I({},e),{},{targetIds:t.targetIds});case E:return I(I({},e),{},{targetResult:t.targetResult,didChoiceTarget:!0,targetIds:[]});case j:return I(I({},e),{},{itemType:null,item:null,sourceId:null,targetResult:null,didChoiceTarget:!1,isSourcePublic:null,targetIds:[]});default:return e}}(e.choiceOperation,t),stateId:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}(e.stateId)}}var M=n("jiGI"),B=n.n(M),A=n("A1CB"),L=n.n(A),U="ADD_SOURCE",H="REMOVE_SOURCE";var V=0;function F(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).handlerIds,this.store.getState().stateId;return this.store.subscribe(function(){var n=t.store.getState().stateId;try{e()}finally{n}})}},{key:"isChoosing",value:function(){return Boolean(this.getItemType())}},{key:"isChooseSource",value:function(e){var t=this.registry.getSource(e,!0);return!!this.isChoosing()&&(this.registry.getSourceType(e)===this.getItemType()&&t.isChoosing(this,e))}},{key:"canDropOnTarget",value:function(e){var t=this.registry.getTarget(e);return!(!this.isChoosing()||this.didChoiceTarget())&&(w(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}},{key:"getTargetResult",value:function(){return this.store.getState().choiceOperation.targetResult}},{key:"didChoiceTarget",value:function(){return this.store.getState().choiceOperation.didChoiceTarget}},{key:"canChoiceOnTarget",value:function(e){var t=this.registry.getTarget(e);return!!this.isChoosing()&&(w(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}},{key:"isOverTarget",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isChoosing())return!1;if(!w(this.registry.getTargetType(e),this.getItemType()))return!1;var n=this.getTargetIds();if(!n.length)return!1;var r=n.indexOf(e);return t?r===n.length-1:r>-1}},{key:"getItemType",value:function(){return this.store.getState().choiceOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().choiceOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().choiceOperation.sourceId}},{key:"getCounter",value:function(){return this.store.getState().choiceOperation.counter}},{key:"getTargetIds",value:function(){return this.store.getState().choiceOperation.targetIds}}]),e}();function X(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=m()(z);this.context=n,this.store=r,this.monitor=new J(r),this.registry=this.monitor.registry,this.backend=new Z(this)}return function(e,t,n){t&&K(e.prototype,t),n&&K(e,n)}(e,[{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch;return Object.keys(r).filter(function(e){return"function"==typeof r[e]}).reduce(function(n,o){var i=r[o];return n[o]=function(n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i7?a.a.createElement("div",{className:"text-center font-roboto-b font-size-22 color-green"},t):null,e)}}]),n}();n("eNPF");function V(e){"@babel/helpers - typeof";return(V="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 F(){return(F=Object.assign||function(e){for(var t=1;t> ",t),"breakDown"===t.obj_type?a.a.createElement("br",null):a.a.createElement(Xo.a,Ko({},t,{mode:e.props.showMode,storeAnswer:e.storeAnswer}))})))}}]),n}();oi.contextTypes={loadComponent:p.PropTypes.func.isRequired,answerStore:p.PropTypes.object.isRequired};var ii=oi;n("OQIr");function ai(e){"@babel/helpers - typeof";return(ai="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 ci(){return(ci=Object.assign||function(e){for(var t=1;te.offsetWidth?r():(console.log("el.offsetWidth ",e.offsetWidth),e.style.width="unset")}},{key:"render",value:function(){var e=this.state.value;return void 0===this.props.edit&&e&&(e=e.split("||")[0]),o.a.createElement("span",{className:"InputText-input-text"},o.a.createElement("a",{className:"Input_text ".concat(this.props.className)}),o.a.createElement("input",{type:"text",className:"inline-block txt ",value:e,onChange:this.handleChange,id:this.domId,size:this.props.width?this.props.width:"3"}))}}]),n}();f.contextTypes={answerStore:i.PropTypes.object.isRequired},t.a=f},eNPF:function(e,t,n){var r=n("QGou");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},ecek:function(e,t,n){var r=n("z+rg");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},eh63:function(e,t,n){},emDs:function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),i=(n("Vg22"),n("1gjd"));function a(e){"@babel/helpers - typeof";return(a="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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&o.a.createElement("div",{className:"alert alert-secondary mt-2",role:"alert"},o.a.createElement("ul",null,i.map(function(e,t){return o.a.createElement("li",{key:t},e)}))),o.a.createElement("div",{className:"card mt-3"},o.a.createElement("ul",{className:"list-group list-group-flush"},a&&a.map(function(e,t){return o.a.createElement("li",{className:"list-group-item",key:t},o.a.createElement("p",null,o.a.createElement("a",{href:e.url},e.name)),o.a.createElement("img",{src:e.url,alt:e.name,height:"80px"}))}))),o.a.createElement("div",null,o.a.createElement("input",{type:"file",className:"custom-file-input",multiple:!0,accept:"image/*",onChange:this.selectFiles})))}}]),n}();n("ecek");function w(e){"@babel/helpers - typeof";return(w="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 O(e,t){for(var n=0;nThis is the initial content of the editor

",init:{height:500,plugins:"link image code",toolbar:"undo redo | bold italic | alignleft aligncenter alignright | code"},onChange:this.onChangeEditor}),o.a.createElement("button",{className:"send-essay-btn",onClick:function(){return e.handleChooseAnswer()}},"Gửi bài"))}},{key:"renderUploadMobile",value:function(){return o.a.createElement("div",{style:{color:"red"}},"Upload Mobile")}},{key:"render",value:function(){var e=this.props,t=e.question,n=e.question_index,r=e.diff_level,c=(e.dataPreview,e.question_state,e.activeSelect,e.question_style,e.teacherOverView,e.items);if(void 0===t)return null;this.state.answer;var u=Object(i.a)(t.content),s="";try{s=c.quiz.request_question?Object(i.a)(c.quiz.request_question):""}catch(e){}var l=Object(a.a)(r);return o.a.createElement("div",{id:"quiz-essay"},o.a.createElement("div",null,o.a.createElement("div",{className:"vn-tit-question"},o.a.createElement("strong",{className:"cl5 fl"},"Câu ",n||"hỏi:"," "),o.a.createElement("span",{className:"clf pull-right ".concat(l.color)},l.text_level)),o.a.createElement("div",{className:"question-content",id:"question-content"},o.a.createElement("p",{style:{color:"red"}},"Đọc đề bài trong khung và thực hiện các yêu cầu "),o.a.createElement("div",{className:"content-quiz mg-top-10"},o.a.createElement("p",{dangerouslySetInnerHTML:{__html:u}})),s&&o.a.createElement("p",{style:{color:"red"}},"Yêu cầu"),s&&o.a.createElement("div",{className:"content-quiz mg-top-10"},o.a.createElement("p",{dangerouslySetInnerHTML:{__html:s}})))))}}]),n}();t.a=P},jY6F:function(e,t,n){"use strict";n("xeH2");var r=n("nbsC"),o=n.n(r),i=n("DDKi"),a=n("obyI");t.a={getURLExerciseChapter:function(e){return o.a.render(a.m+"/tu-luyen-{{lop}}-muc-{{chapter}}-c{{chapterID}}.html",{lop:"lop-"+i[e.gradeType].lop,chapter:e.chapterName,chapterID:e.chapterID})},getURLQuestion:function(e){return o.a.render(a.m+"/{{lop}}/luyen-bai-tap-muc-{{chapter}}-{{chapterID}}.html",{lop:"lop-"+i[e.gradeType].lop,chapter:e.chapterName,chapterID:e.chapterID})},getURLLyThuyetSubject:function(e){return o.a.render(a.m+"/{{lop}}/ly-thuyet-{{subject}}-{{subjectID}}.html",{lop:"lop-"+i[e.gradeType].lop,subject:e.subjectName,subjectID:e.subjectID})},getURLBaitapSubject:function(e){return""!=e.subjectID&&0!=e.subjectID&&e.subjectID?o.a.render(a.m+"/tu-luyen-{{subject}}-c{{subjectID}}.html",{subject:e.subjectName,subjectID:e.subjectID}):""},getURLExam:function(e){return o.a.render(a.m+"/de-thi-{{lop}}-s-{{subject}}-c{{subjectID}}.html",{lop:"lop-"+i[e.gradeType].lop,subject:e.subjectName,subjectID:e.subjectID})},getURLTagExam:function(e){return o.a.render(a.m+"/de-thi-{{lop}}-loai-{{tag}}-t{{tagID}}.html",{lop:"lop-"+i[e.gradeType].lop,tag:e.tagName,tagID:e.tagID})},getURLExerciseExam:function(e){return e.typeExam?o.a.render(a.m+"/de-thi-{{lop}}-chi-tiet-{{exam}}-x{{examID}}.html?typeExam={{typeExam}}",{lop:"lop-"+i[e.gradeType].lop,exam:e.title,examID:e.examID,typeExam:e.typeExam}):o.a.render(a.m+"/de-thi-{{lop}}-chi-tiet-{{exam}}-x{{examID}}.html",{lop:"lop-"+i[e.gradeType].lop,exam:e.title,examID:e.examID})},getURLQuestionExam:function(e){return o.a.render(a.m+"/{{lop}}/luyen-de-thi-muc-{{exam}}-x{{examID}}-t{{typeExam}}.html",{lop:"lop-"+i[e.gradeType].lop,exam:e.title,examID:e.examID,typeExam:e.typeExam})},getURLLyThuyetChapter:function(e){return e.related_id?o.a.render(a.m+"/{{lop}}/chi-tiet-ly-thuyet-{{chapter}}-{{chapterID}}.html#{{related_id}}",{lop:"lop-"+i[e.gradeType].lop,chapter:e.chapterName,chapterID:e.chapterID,related_id:e.related_id}):o.a.render(a.m+"/{{lop}}/chi-tiet-ly-thuyet-{{chapter}}-{{chapterID}}.html",{lop:"lop-"+i[e.gradeType].lop,chapter:e.chapterName,chapterID:e.chapterID})},getURLConcept:function(e){return o.a.render(a.m+"ly-thuyet/{{alias}}-{{idx}}.html",e)},getURLThongbao:function(e){return o.a.render(a.m+"/thong-bao-{{newsName}}-{{newsId}}.html",{newsName:e.newsName,newsId:e.newsId})},getURLHome:function(e){return o.a.render(a.m+"/{{lop}}.html",{lop:"lop-"+i[e.gradeType].lop})},getURLHomeLyThuyet:function(e){return o.a.render(a.m+"/{{lop}}/ly-thuyet.html",{lop:"lop-"+i[e.gradeType].lop})},getURLHomeDeThi:function(e){return o.a.render(a.m+"/{{lop}}/de-thi-de-kiem-tra.html",{lop:"lop-"+i[e.gradeType].lop})},getURLListTheoryFollowingChapter:function(e){return o.a.render(a.m+"/{{lop}}/ly-thuyet-{{chapterName}}-ct{{chapterId}}.html",{lop:"lop-"+i[e.gradeType].lop,chapterName:e.chapterName,chapterId:e.chapterId,subjectId:e.subjectId,subject:e.subject})},getURLListExFollowingChapter:function(e){return o.a.render(a.m+"/{{lop}}/bai-tap-{{chapterName}}-ct{{chapterId}}.html",{lop:"lop-"+i[e.gradeType].lop,chapterName:e.chapterName,chapterId:e.chapterId,subjectId:e.subjectId,subject:e.subject})},getUrlPersonal:function(e){return o.a.render(a.m+"/thong-ke/{{statusmenu}}/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID,statusmenu:e.statusmenu})},getURLUserExercise:function(e){return o.a.render(a.m+"/thong-ke/ket_qua/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID})},getUrlSaveExercise:function(e){return o.a.render(a.m+"/thong-ke/luu_bai/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID})},getUrlWrongExercise:function(e){return o.a.render(a.m+"/thong-ke/bai_sai/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID})},getNoteExersise:function(e){return o.a.render(a.m+"/thong-ke/ghi_chu/{{subjectName}}/{{subjectID}}",{subjectName:e.subjectName,subjectID:e.subjectID})}}},jeIU:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n.n(r),i=n("17x9"),a=n.n(i),c=n("bNQv"),u=n.n(c),s=n("u2mz"),l=(n("YCeY"),n("R7+6")),p=n("xyTa");function f(e){"@babel/helpers - typeof";return(f="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 d(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o+" Ngày":null," ",s," giờ ",f," phút ",y," giây")});function X(e){"@babel/helpers - typeof";return(X="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 Z(e,t){for(var n=0;n> ",this.props.dataTimeAction);var e=this.props.dataTimeAction,t=e.begin,n=e.end;t&&G()().isBefore(t)?this.setState({active:!0,textNotifi:"Chưa đến giờ bắt đầu làm bài hãy quay lại sau ",showCountDownTime:!0}):n&&G()().isAfter(n)&&this.setState({active:!0,textNotifi:"Đã hết giờ được làm bài vào lúc "+G()(n).format("hh:mm DD/MM/YYYY")})}},{key:"handleModal",value:function(){this.setState({active:!this.state.active})}},{key:"render",value:function(){var e=this.props.dataTimeAction.begin;return u.a.createElement(F.a,{show:this.state.active,className:"popupConfirm bgPopup active"},u.a.createElement(F.a.Body,{bsClass:"wrapContentPopup"},u.a.createElement("p",{className:"title"},"Thông báo"),u.a.createElement("p",{className:"textConfim"},this.state.textNotifi," ",this.state.showCountDownTime&&u.a.createElement(J,{countdownDate:G()(e).format("x"),handleModal:this.handleModal.bind(this)})),u.a.createElement("div",{className:"groupBtn"},u.a.createElement(U,{handleClick:function(){p.d.push("/")},text:"Thoát",style:{border:"1px solid #e1e1e1",color:"#262626",padding:"6px 26px"}}))))}}]),n}();ne(re,"propTypes",{dataTimeAction:V.a.object.isRequired});var oe=n("obyI");function ie(e){"@babel/helpers - typeof";return(ie="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 ae(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dragOperation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case E.a:return u()({},e,t.target);case E.b:return{srcItem:null,evtCounter:0,dropTargets:[]};default:return e}}(e.dragOperation,t)}}function P(e){"@babel/helpers - typeof";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 q(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t&&window.scrollY<=i.offsetHeight?(n.style.position="fixed",n.style.top="3px",n.style.bottom="unset"):n.style.position="static",window.scrollY>=i.offsetHeight-(n.offsetHeight-20)?(r.style.height=(i.offsetHeight+10).toString()+"px",n.style.position="absolute",n.style.bottom="0",n.style.top="unset"):r.style.height="auto"}}),o.state={positionAds:1e3},o}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(n,[{key:"componentDidMount",value:function(){document.getElementById("google-ads-right-sticky");try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch(e){console.log("error :",e)}}},{key:"render",value:function(){return o.a.createElement("div",{id:"google-ads-right-sticky",style:{background:"red3"}},"Mobile"==this.props.device&&o.a.createElement("div",{className:"ads_txt"},o.a.createElement("span",null,"Quảng Cáo")),o.a.createElement("ins",{className:"adsbygoogle bn300x600 hd-ads-pc lgh-detail-right-pos-2","data-ad-client":"ca-pub-8730483863942113","data-ad-slot":"3797422607","data-ad-format":"auto",style:{display:"inline-block",height:"600px",width:"300px"}}))}}]),n}()},qDOb:function(e,t,n){var r=n("gfFt");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},qfp5:function(e,t,n){},sEfC:function(e,t,n){var r=n("GoyQ"),o=n("QIyF"),i=n("tLB3"),a="Expected a function",c=Math.max,u=Math.min;e.exports=function(e,t,n){var s,l,p,f,d,h,y=0,m=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError(a);function g(t){var n=s,r=l;return s=l=void 0,y=t,f=e.apply(r,n)}function _(e){var n=e-h;return void 0===h||n>=t||n<0||v&&e-y>=p}function w(){var e=o();if(_(e))return O(e);d=setTimeout(w,function(e){var n=t-(e-h);return v?u(n,p-(e-y)):n}(e))}function O(e){return d=void 0,b&&s?g(e):(s=l=void 0,f)}function S(){var e=o(),n=_(e);if(s=arguments,l=this,h=e,n){if(void 0===d)return function(e){return y=e,d=setTimeout(w,t),m?g(e):f}(h);if(v)return clearTimeout(d),d=setTimeout(w,t),g(h)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,p=(v="maxWait"in n)?c(i(n.maxWait)||0,t):p,b="trailing"in n?!!n.trailing:b),S.cancel=function(){void 0!==d&&clearTimeout(d),y=0,s=h=l=d=void 0},S.flush=function(){return void 0===d?f:O(o())},S}},t8Fj:function(e,t,n){e.exports=n("+VcZ")},tLB3:function(e,t){e.exports=function(e){return e}},tiOK:function(e,t,n){var r=n("Cd+2");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},u2mz:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n("q1tI");var r=function(e){if(void 0===e)return null;var t="";return e.forEach(function(e){var n="";if(null===e)t+="";else if("html"===e.type)n+=e.content,t+=n;else if("image"===e.type)n+='
').concat(e.caption,'
'),t+=n;else if("notice"===e.type){var r="";r=1==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375113123_icon_chuy.png":2==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375210964_icon_chuy2.png":"https://cdn.vungoi.vn/vungoi/2021/0507/1620375233555_icon_chuy3.png",n+='
'),n+='
'),n+='
'.concat(e.content,"
"),t+=n+="
"}else if("simple_notice"===e.type)n+='
'),n+='
'.concat(e.content,"
"),t+=n+="
";else if("icon_notice"===e.type){var o="";o=1==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375113123_icon_chuy.png":2==e.notice_type?"https://cdn.vungoi.vn/vungoi/2021/0507/1620375210964_icon_chuy2.png":"https://cdn.vungoi.vn/vungoi/2021/0507/1620375233555_icon_chuy3.png",n+='
'),n+='
'),n+='
'.concat(e.content,"
"),t+=n+="
"}}),t}},v1DJ:function(e,t,n){},wvXI:function(e,t,n){var r=n("Kr/G");"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,o);r.locals&&(e.exports=r.locals)},xEkU:function(e,t,n){(function(t){for(var r=n("bQgK"),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",c=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],s=0;!c&&s1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=c},xyTa:function(e,t,n){"use strict";function r(e){var t={color:"bgblue1",text_level:"Nhận biết"};switch(e){case 1:t.color="bgblue1",t.text_level="Nhận biết";break;case 2:t.color="bggreen1",t.text_level="Thông hiểu";break;case 3:t.color="bglogo2",t.text_level="Vận dụng";break;case 4:t.color="bgred1",t.text_level="Vận dụng cao"}return t}n.d(t,"a",function(){return r})},"z+rg":function(e,t,n){},z7Jm:function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r);function i(e){"@babel/helpers - typeof";return(i="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 a(e,t){for(var n=0;n