(window.webpackJsonp=window.webpackJsonp||[]).push([[220,5,7,8,9,16],{"+ua5":function(Ge,be,U){},"+vTd":function(Ge,be,U){Ge.exports={flex_box_center:"flex_box_center___37CPQ",flex_space_between:"flex_space_between___1yzV5",flex_box_vertical_center:"flex_box_vertical_center___2QH_C",flex_box_center_end:"flex_box_center_end___22kLi",flex_box_column:"flex_box_column___1Y3On",line:"line___-rzSr",b1:"b1___1zz_c",b2:"b2___1dAOW",list:"list___1gpez",title:"title___21uOv",tr:"tr___3kTJL",itemDetail:"itemDetail___8QmqJ",answerWrapper:"answerWrapper___3guKO",decoration:"decoration___1rcYW",row:"row___3uQSh",typeRow:"typeRow___ADZSj",type:"type___2pfNZ",typeName:"typeName___8ZhPv",typeIcon:"typeIcon___1Xniv",unpublished:"unpublished___dTXTI",private:"private___XQiDx",public:"public___iIFou",reviewFlag:"reviewFlag___YP4vk",typeRightAction:"typeRightAction___1PQjp",actionLink:"actionLink___2E5q_",actionIcon:"actionIcon___GCvNK",topicTitle:"topicTitle___3fJds",topicTitleContent:"topicTitleContent___35cf9",judgmentContent:"judgmentContent___SU5rV",programContent:"programContent___3G6-D",otherContent:"otherContent___1JHnX",combinationContent:"combinationContent___6ZXO-",con:"con___1_qCl",otherContentItem:"otherContentItem___18WrV",otehrContentHtml:"otehrContentHtml___LW3nV",difficultyRow:"difficultyRow___3HvT0",updateTimeRow:"updateTimeRow___1dNd0",updateTimeWrap:"updateTimeWrap___2PKks",updateTimeContent:"updateTimeContent___1mNBy",programLanguage:"programLanguage___3CnaJ",updateTimeRowAction:"updateTimeRowAction___1DaMt",bottomAction:"bottomAction___Y-BNC",borderColorBlue:"borderColorBlue___2Xd-0",borderColorRed:"borderColorRed___2zA_q",borderColorFFF:"borderColorFFF___2R5-5",borderColorGray:"borderColorGray___nZnDe",selectIcon:"selectIcon___2byLd",colorGreen:"colorGreen___1iOKR",parseAnswerBorder:"parseAnswerBorder___1LTYn",answer:"answer___2L9lv",answerHtml:"answerHtml___3zrOk",parse:"parse___3d3dm",parseText:"parseText___1C_VL",parseAnswer:"parseAnswer___QMVPC",parseAnswerHtml:"parseAnswerHtml___2TCVz",actionBar:"actionBar___2ItMN",know:"know___y8QKK",menu:"menu___SYdg7",bottom:"bottom___2dFIa",textBtn:"textBtn___1y00f"}},"+z73":function(Ge,be,U){Ge.exports={flex_box_center:"flex_box_center___3WSrc",flex_space_between:"flex_space_between___1fpCp",flex_box_vertical_center:"flex_box_vertical_center___3Wy8W",flex_box_center_end:"flex_box_center_end___3YIs2",flex_box_column:"flex_box_column___3CNwR",pWrap:"pWrap___2jVbQ",few:"few___3Eebn"}},"/cxE":function(Ge,be,U){"use strict";U.d(be,"f",function(){return R}),U.d(be,"g",function(){return N}),U.d(be,"h",function(){return S}),U.d(be,"e",function(){return F}),U.d(be,"b",function(){return j}),U.d(be,"c",function(){return e}),U.d(be,"d",function(){return w}),U.d(be,"a",function(){return g});class ue{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(()=>{throw c.stack?new Error(c.message+`
`+c.stack):c},0)}}emit(c){this.listeners.forEach(u=>{u(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}const W=new ue;function R(c){F(c)||W.onUnexpectedError(c);return}function N(c){F(c)||W.onUnexpectedExternalError(c);return}function S(c){if(c instanceof Error){let{name:u,message:a}=c;const i=c.stacktrace||c.stack;return{$isError:!0,name:u,message:a,stack:i}}return c}const O="Canceled";function F(c){return c instanceof Error&&c.name===O&&c.message===O}function j(){const c=new Error(O);return c.name=c.message,c}function e(c){return c?new Error(`Illegal argument: ${c}`):new Error("Illegal argument")}function w(c){return c?new Error(`Illegal state: ${c}`):new Error("Illegal state")}class g extends Error{constructor(c){super("NotSupported");c&&(this.message=c)}}},"1vnw":function(Ge,be,U){Ge.exports={list:"list___1dAFk",btns:"btns___1YCLO",name:"name___2XX_F",folderWrapper:"folderWrapper___3sKHr",folderIcon:"folderIcon___Rov4k"}},"24hK":function(Ge,be,U){"use strict";U.d(be,"a",function(){return W});class ue{constructor(R){this.element=R,this.next=ue.Undefined,this.prev=ue.Undefined}}ue.Undefined=new ue(void 0);class W{constructor(){this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ue.Undefined}clear(){let R=this._first;for(;R!==ue.Undefined;){const N=R.next;R.prev=ue.Undefined,R.next=ue.Undefined,R=N}this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}unshift(R){return this._insert(R,!1)}push(R){return this._insert(R,!0)}_insert(R,N){const S=new ue(R);if(this._first===ue.Undefined)this._first=S,this._last=S;else if(N){const F=this._last;this._last=S,S.prev=F,F.next=S}else{const F=this._first;this._first=S,S.next=F,F.prev=S}this._size+=1;let O=!1;return()=>{O||(O=!0,this._remove(S))}}shift(){if(this._first===ue.Undefined)return;{const R=this._first.element;return this._remove(this._first),R}}pop(){if(this._last===ue.Undefined)return;{const R=this._last.element;return this._remove(this._last),R}}_remove(R){if(R.prev!==ue.Undefined&&R.next!==ue.Undefined){const N=R.prev;N.next=R.next,R.next.prev=N}else R.prev===ue.Undefined&&R.next===ue.Undefined?(this._first=ue.Undefined,this._last=ue.Undefined):R.next===ue.Undefined?(this._last=this._last.prev,this._last.next=ue.Undefined):R.prev===ue.Undefined&&(this._first=this._first.next,this._first.prev=ue.Undefined);this._size-=1}*[Symbol.iterator](){let R=this._first;for(;R!==ue.Undefined;)yield R.element,R=R.next}}},"3/fG":function(Ge,be,U){"use strict";U.d(be,"a",function(){return W});function ue(R,N){let S;return N.length===0?S=R:S=R.replace(/\{(\d+)\}/g,function(O,F){const j=F[0];return typeof N[j]!="undefined"?N[j]:O}),S}function W(R,N,...S){return ue(N,S)}},"5VLF":function(Ge,be,U){"use strict";var ue,W;function R(N,S,O){var F=function(j,e){return N.js_beautify(j,e)};return F.js=N.js_beautify,F.css=S.css_beautify,F.html=O.html_beautify,F.js_beautify=N.js_beautify,F.css_beautify=S.css_beautify,F.html_beautify=O.html_beautify,F}!(ue=[U("6UM0"),U("TXwP"),U("psGv")],W=function(N,S,O){return R(N,S,O)}.apply(be,ue),W!==void 0&&(Ge.exports=W))},"5Y4S":function(Ge,be,U){"use strict";U.d(be,"a",function(){return R});var ue=U("MNsG");const W=ue.b.performance&&typeof ue.b.performance.now=="function";class R{constructor(N){this._highResolution=W&&N,this._startTime=this._now(),this._stopTime=-1}static create(N=!0){return new R(N)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?ue.b.performance.now():Date.now()}}},"6+eU":function(Ge,be,U){"use strict";U.d(be,"a",function(){return m});var ue=U("wx14"),W=U("rePB"),R=U("VTBJ"),N=U("1OyB"),S=U("vuIU"),O=U("Ji7U"),F=U("LK+K"),j=U("q1tI"),e=U.n(j),w=U("TSYQ"),g=U.n(w),c=function(_){var o,f="".concat(_.rootPrefixCls,"-item"),l=g()(f,"".concat(f,"-").concat(_.page),(o={},Object(W.a)(o,"".concat(f,"-active"),_.active),Object(W.a)(o,_.className,!!_.className),Object(W.a)(o,"".concat(f,"-disabled"),!_.page),o)),h=function(){_.onClick(_.page)},E=function(T){_.onKeyPress(T,_.onClick,_.page)};return e.a.createElement("li",{title:_.showTitle?_.page:null,className:l,onClick:h,onKeyPress:E,tabIndex:"0"},_.itemRender(_.page,"page",e.a.createElement("a",{rel:"nofollow"},_.page)))},u=c,a={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},i=function(b){Object(O.a)(o,b);var _=Object(F.a)(o);function o(){var f;Object(N.a)(this,o);for(var l=arguments.length,h=new Array(l),E=0;E=0||y.relatedTarget.className.indexOf("".concat(x,"-next"))>=0))return;f.setState({goInputText:""}),D(f.getValidValue())},f.go=function(y){var T=f.state.goInputText;if(T==="")return;(y.keyCode===a.ENTER||y.type==="click")&&(f.setState({goInputText:""}),f.props.quickGo(f.getValidValue()))},f}return Object(S.a)(o,[{key:"getValidValue",value:function(){var l=this.state,h=l.goInputText,E=l.current;return!h||isNaN(h)?E:Number(h)}},{key:"getPageSizeOptions",value:function(){var l=this.props,h=l.pageSize,E=l.pageSizeOptions;return E.some(function(y){return y.toString()===h.toString()})?E:E.concat([h.toString()]).sort(function(y,T){var L=isNaN(Number(y))?0:Number(y),D=isNaN(Number(T))?0:Number(T);return L-D})}},{key:"render",value:function(){var l=this,h=this.props,E=h.pageSize,y=h.locale,T=h.rootPrefixCls,L=h.changeSize,D=h.quickGo,x=h.goButton,P=h.selectComponentClass,H=h.buildOptionText,I=h.selectPrefixCls,z=h.disabled,$=this.state.goInputText,fe="".concat(T,"-options"),ee=P,ye=null,pe=null,ae=null;if(!L&&!D)return null;var se=this.getPageSizeOptions();if(L&&ee){var _e=se.map(function(te,k){return e.a.createElement(ee.Option,{key:k,value:te.toString()},(H||l.buildOptionText)(te))});ye=e.a.createElement(ee,{disabled:z,prefixCls:I,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(E||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(k){return k.parentNode}},_e)}return D&&(x&&(ae=typeof x=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:z,className:"".concat(fe,"-quick-jumper-button")},y.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},x)),pe=e.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},y.jump_to,e.a.createElement("input",{disabled:z,type:"text",value:$,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),y.page,ae)),e.a.createElement("li",{className:"".concat(fe)},ye,pe)}}]),o}(e.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=i,s=U("N2Kk");function r(){}function n(b){return typeof b=="number"&&isFinite(b)&&Math.floor(b)===b}function t(b,_,o){return o}function v(b,_,o){var f=typeof b=="undefined"?_.pageSize:b;return Math.floor((o.total-1)/f)+1}var p=function(b){Object(O.a)(o,b);var _=Object(F.a)(o);function o(f){var l;Object(N.a)(this,o),l=_.call(this,f),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(v(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(L,D){var x=l.props.prefixCls,P=L||e.a.createElement("button",{type:"button","aria-label":D,className:"".concat(x,"-item-link")});return typeof L=="function"&&(P=e.a.createElement(L,Object(R.a)({},l.props))),P},l.savePaginationNode=function(L){l.paginationNode=L},l.isValid=function(L){return n(L)&&L!==l.state.current},l.shouldDisplayQuickJumper=function(){var L=l.props,D=L.showQuickJumper,x=L.pageSize,P=L.total;return P<=x?!1:D},l.handleKeyDown=function(L){(L.keyCode===a.ARROW_UP||L.keyCode===a.ARROW_DOWN)&&L.preventDefault()},l.handleKeyUp=function(L){var D=l.getValidValue(L),x=l.state.currentInputValue;D!==x&&l.setState({currentInputValue:D}),L.keyCode===a.ENTER?l.handleChange(D):L.keyCode===a.ARROW_UP?l.handleChange(D-1):L.keyCode===a.ARROW_DOWN&&l.handleChange(D+1)},l.changePageSize=function(L){var D=l.state.current,x=v(L,l.state,l.props);D=D>x?x:D,x===0&&(D=l.state.current),typeof L=="number"&&("pageSize"in l.props||l.setState({pageSize:L}),"current"in l.props||l.setState({current:D,currentInputValue:D})),l.props.onShowSizeChange(D,L),"onChange"in l.props&&l.props.onChange&&l.props.onChange(D,L)},l.handleChange=function(L){var D=l.props.disabled,x=L;if(l.isValid(x)&&!D){var P=v(void 0,l.state,l.props);x>P?x=P:x<1&&(x=1),"current"in l.props||l.setState({current:x,currentInputValue:x});var H=l.state.pageSize;return l.props.onChange(x,H),x}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current2?x-2:0),H=2;H=E?T=E:T=Number(h),T}},{key:"getShowSizeChanger",value:function(){var l=this.props,h=l.showSizeChanger,E=l.total,y=l.totalBoundaryShowSizeChanger;return typeof h!="undefined"?h:E>y}},{key:"renderPrev",value:function(l){var h=this.props,E=h.prevIcon,y=h.itemRender,T=y(l,"prev",this.getItemIcon(E,"prev page")),L=!this.hasPrev();return Object(j.isValidElement)(T)?Object(j.cloneElement)(T,{disabled:L}):T}},{key:"renderNext",value:function(l){var h=this.props,E=h.nextIcon,y=h.itemRender,T=y(l,"next",this.getItemIcon(E,"next page")),L=!this.hasNext();return Object(j.isValidElement)(T)?Object(j.cloneElement)(T,{disabled:L}):T}},{key:"render",value:function(){var l=this,h=this.props,E=h.prefixCls,y=h.className,T=h.style,L=h.disabled,D=h.hideOnSinglePage,x=h.total,P=h.locale,H=h.showQuickJumper,I=h.showLessItems,z=h.showTitle,$=h.showTotal,fe=h.simple,ee=h.itemRender,ye=h.showPrevNextJumpers,pe=h.jumpPrevIcon,ae=h.jumpNextIcon,se=h.selectComponentClass,_e=h.selectPrefixCls,te=h.pageSizeOptions,k=this.state,A=k.current,C=k.pageSize,B=k.currentInputValue;if(D===!0&&x<=C)return null;var K=v(void 0,this.state,this.props),M=[],ie=null,Ee=null,Oe=null,q=null,de=null,Te=H&&H.goButton,xe=I?1:2,Pe=A-1>0?A-1:0,Ne=A+1=xe*2&&A!==1+2&&(M[0]=Object(j.cloneElement)(M[0],{className:"".concat(E,"-item-after-jump-prev")}),M.unshift(ie)),K-A>=xe*2&&A!==K-2&&(M[M.length-1]=Object(j.cloneElement)(M[M.length-1],{className:"".concat(E,"-item-before-jump-next")}),M.push(Ee)),Ve!==1&&M.unshift(Oe),Xe!==K&&M.push(q)}var G=null;$&&(G=e.a.createElement("li",{className:"".concat(E,"-total-text")},$(x,[x===0?0:(A-1)*C+1,A*C>x?x:A*C])));var Z=!this.hasPrev()||!K,re=!this.hasNext()||!K;return e.a.createElement("ul",Object(ue.a)({className:g()(E,y,Object(W.a)({},"".concat(E,"-disabled"),L)),style:T,unselectable:"unselectable",ref:this.savePaginationNode},Re),G,e.a.createElement("li",{title:z?P.prev_page:null,onClick:this.prev,tabIndex:Z?null:0,onKeyPress:this.runIfEnterPrev,className:g()("".concat(E,"-prev"),Object(W.a)({},"".concat(E,"-disabled"),Z)),"aria-disabled":Z},this.renderPrev(Pe)),M,e.a.createElement("li",{title:z?P.next_page:null,onClick:this.next,tabIndex:re?null:0,onKeyPress:this.runIfEnterNext,className:g()("".concat(E,"-next"),Object(W.a)({},"".concat(E,"-disabled"),re)),"aria-disabled":re},this.renderNext(Ne)),e.a.createElement(d,{disabled:L,locale:P,rootPrefixCls:E,selectComponentClass:se,selectPrefixCls:_e,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:A,pageSize:C,pageSizeOptions:te,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Te}))}}],[{key:"getDerivedStateFromProps",value:function(l,h){var E={};if("current"in l&&(E.current=l.current,l.current!==h.current&&(E.currentInputValue=E.current)),"pageSize"in l&&l.pageSize!==h.pageSize){var y=h.current,T=v(l.pageSize,h,l);y=y>T?T:y,"current"in l||(E.current=y,E.currentInputValue=y),E.pageSize=l.pageSize}return E}}]),o}(e.a.Component);p.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:s.a,style:{},itemRender:t,totalBoundaryShowSizeChanger:50};var m=p},"6UM0":function(Ge,be,U){var ue,W;(function(){var R;(function(){"use strict";var S=[function(e,w,g){var c=g(1).Beautifier,u=g(5).Options;function a(i,d){var s=new c(i,d);return s.beautify()}e.exports=a,e.exports.defaultOptions=function(){return new u}},function(e,w,g){var c=g(2).Output,u=g(3).Token,a=g(4),i=g(5).Options,d=g(7).Tokenizer,s=g(7).line_starters,r=g(7).positionable_operators,n=g(7).TOKEN;function t(I,z){return z.indexOf(I)!==-1}function v(I){return I.replace(/^\s+/g,"")}function p(I){for(var z={},$=0;$$&&($=I.line_indent_level));var fe={mode:z,parent:I,last_token:I?I.last_token:new u(n.START_BLOCK,""),last_word:I?I.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:$,alignment:0,line_indent_level:I?I.line_indent_level:$,start_line_index:this._output.get_line_number(),ternary_depth:0};return fe},P.prototype._reset=function(I){var z=I.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new c(this._options,z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(h.BlockStatement);var $=new d(I,this._options);return this._tokens=$.tokenize(),I},P.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I,z=this._reset(this._source_text),$=this._options.eol;this._options.eol==="auto"&&($=`
`,z&&a.lineBreak.test(z||"")&&($=z.match(a.lineBreak)[0]));for(var fe=this._tokens.next();fe;)this.handle_token(fe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=fe,fe=this._tokens.next();return I=this._output.get_code($),I},P.prototype.handle_token=function(I,z){I.type===n.START_EXPR?this.handle_start_expr(I):I.type===n.END_EXPR?this.handle_end_expr(I):I.type===n.START_BLOCK?this.handle_start_block(I):I.type===n.END_BLOCK?this.handle_end_block(I):I.type===n.WORD?this.handle_word(I):I.type===n.RESERVED?this.handle_word(I):I.type===n.SEMICOLON?this.handle_semicolon(I):I.type===n.STRING?this.handle_string(I):I.type===n.EQUALS?this.handle_equals(I):I.type===n.OPERATOR?this.handle_operator(I):I.type===n.COMMA?this.handle_comma(I):I.type===n.BLOCK_COMMENT?this.handle_block_comment(I,z):I.type===n.COMMENT?this.handle_comment(I,z):I.type===n.DOT?this.handle_dot(I):I.type===n.EOF?this.handle_eof(I):I.type===n.UNKNOWN?this.handle_unknown(I,z):this.handle_unknown(I,z)},P.prototype.handle_whitespace_and_comments=function(I,z){var $=I.newlines,fe=this._options.keep_array_indentation&&T(this._flags.mode);if(I.comments_before)for(var ee=I.comments_before.next();ee;)this.handle_whitespace_and_comments(ee,z),this.handle_token(ee,z),ee=I.comments_before.next();if(fe)for(var ye=0;ye<$;ye+=1)this.print_newline(ye>0,z);else if(this._options.max_preserve_newlines&&$>this._options.max_preserve_newlines&&($=this._options.max_preserve_newlines),this._options.preserve_newlines&&$>1){this.print_newline(!1,z);for(var pe=1;pe<$;pe+=1)this.print_newline(!0,z)}};var H=["async","break","continue","return","throw","yield"];P.prototype.allow_wrap_or_preserved_newline=function(I,z){if(z=z===void 0?!1:z,this._output.just_added_newline())return;var $=this._options.preserve_newlines&&I.newlines||z,fe=t(this._flags.last_token.text,r)||t(I.text,r);if(fe){var ee=t(this._flags.last_token.text,r)&&t(this._options.operator_position,l)||t(I.text,r);$=$&&ee}if($)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(b(this._flags.last_token,H))return;this._output.set_wrap_point()}},P.prototype.print_newline=function(I,z){if(!z&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==n.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var $=this._tokens.peek();this._flags.mode===h.Statement&&!(this._flags.if_block&&m($,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(I)&&(this._flags.multiline_frame=!0)},P.prototype.print_token_line_indentation=function(I){this._output.just_added_newline()&&(this._options.keep_array_indentation&&I.newlines&&(I.text==="["||T(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(I.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},P.prototype.print_token=function(I){if(this._output.raw){this._output.add_raw_token(I);return}if(this._options.comma_first&&I.previous&&I.previous.type===n.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(I),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(I),this._output.non_breaking_space=!0,this._output.add_token(I.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},P.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},P.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},P.prototype.set_mode=function(I){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,I),this._flags=this.create_flags(this._previous_flags,I),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},P.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===h.Statement&&E(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},P.prototype.start_of_object_property=function(){return this._flags.parent.mode===h.ObjectLiteral&&this._flags.mode===h.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||b(this._flags.last_token,["get","set"]))},P.prototype.start_of_statement=function(I){var z=!1;return z=z||b(this._flags.last_token,["var","let","const"])&&I.type===n.WORD,z=z||m(this._flags.last_token,"do"),z=z||!(this._flags.parent.mode===h.ObjectLiteral&&this._flags.mode===h.Statement)&&b(this._flags.last_token,H)&&!I.newlines,z=z||m(this._flags.last_token,"else")&&!(m(I,"if")&&!I.comments_before),z=z||this._flags.last_token.type===n.END_EXPR&&(this._previous_flags.mode===h.ForInitializer||this._previous_flags.mode===h.Conditional),z=z||this._flags.last_token.type===n.WORD&&this._flags.mode===h.BlockStatement&&!this._flags.in_case&&!(I.text==="--"||I.text==="++")&&this._last_last_text!=="function"&&I.type!==n.WORD&&I.type!==n.RESERVED,z=z||this._flags.mode===h.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||b(this._flags.last_token,["get","set"])),z?(this.set_mode(h.Statement),this.indent(),this.handle_whitespace_and_comments(I,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I,b(I,["do","for","if","while"])),!0):!1},P.prototype.handle_start_expr=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I);var z=h.Expression;if(I.text==="["){if(this._flags.last_token.type===n.WORD||this._flags.last_token.text===")"){b(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(I),this.set_mode(z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}z=h.ArrayLiteral,T(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),t(this._flags.last_token.type,[n.START_EXPR,n.END_EXPR,n.WORD,n.OPERATOR,n.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===n.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,z=h.ForInitializer):t(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,z=h.Conditional):t(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&I.whitespace_before===""?this._output.space_before_token=!1:(t(this._flags.last_token.text,s)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I);else if(this._flags.last_token.type===n.WORD){this._output.space_before_token=!1;var $=this._tokens.peek(-3);if(this._options.space_after_named_function&&$){var fe=this._tokens.peek(-4);b($,["async","function"])||$.text==="*"&&b(fe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===h.ObjectLiteral?($.text==="{"||$.text===","||$.text==="*"&&(fe.text==="{"||fe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(I);(this._flags.last_token.type===n.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===h.ObjectLiteral&&t(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===n.START_BLOCK?this.print_newline():(this._flags.last_token.type===n.END_EXPR||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===n.COMMA)&&this.allow_wrap_or_preserved_newline(I,I.newlines),this.print_token(I),this.set_mode(z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},P.prototype.handle_end_expr=function(I){for(;this._flags.mode===h.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(I,I.text==="]"&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===n.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(I),this.restore_mode(),E(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===h.Conditional&&(this._previous_flags.mode=h.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},P.prototype.handle_start_block=function(I){this.handle_whitespace_and_comments(I);var z=this._tokens.peek(),$=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===n.END_EXPR?(this.set_mode(h.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(h.BlockStatement):$&&(t($.text,[":",","])&&t(z.type,[n.STRING,n.WORD,n.RESERVED])||t(z.text,["get","set","..."])&&t($.type,[n.WORD,n.RESERVED]))?t(this._last_last_text,["class","interface"])&&!t($.text,[":",","])?this.set_mode(h.BlockStatement):this.set_mode(h.ObjectLiteral):this._flags.last_token.type===n.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(h.BlockStatement):t(this._flags.last_token.type,[n.EQUALS,n.START_EXPR,n.COMMA,n.OPERATOR])||b(this._flags.last_token,["return","throw","import","default"])?this.set_mode(h.ObjectLiteral):this.set_mode(h.BlockStatement),this._flags.last_token&&(b(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var fe=!z.comments_before&&z.text==="}",ee=fe&&this._flags.last_word==="function"&&this._flags.last_token.type===n.END_EXPR;if(this._options.brace_preserve_inline){var ye=0,pe=null;this._flags.inline_frame=!0;do if(ye+=1,pe=this._tokens.peek(ye-1),pe.newlines){this._flags.inline_frame=!1;break}while(pe.type!==n.EOF&&!(pe.type===n.END_BLOCK&&pe.opened===I))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==n.OPERATOR&&(ee||this._flags.last_token.type===n.EQUALS||b(this._flags.last_token,_)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(T(this._previous_flags.mode)&&(this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.COMMA)&&((this._flags.last_token.type===n.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(I),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==n.OPERATOR&&this._flags.last_token.type!==n.START_EXPR&&(this._flags.last_token.type===n.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(I),this.indent(),!fe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},P.prototype.handle_end_block=function(I){for(this.handle_whitespace_and_comments(I);this._flags.mode===h.Statement;)this.restore_mode();var z=this._flags.last_token.type===n.START_BLOCK;this._flags.inline_frame&&!z?this._output.space_before_token=!0:this._options.brace_style==="expand"?z||this.print_newline():z||(T(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(I)},P.prototype.handle_word=function(I){if(I.type===n.RESERVED){if(t(I.text,["set","get"])&&this._flags.mode!==h.ObjectLiteral)I.type=n.WORD;else if(I.text==="import"&&t(this._tokens.peek().text,["(","."]))I.type=n.WORD;else if(t(I.text,["as","from"])&&!this._flags.import_block)I.type=n.WORD;else if(this._flags.mode===h.ObjectLiteral){var z=this._tokens.peek();z.text===":"&&(I.type=n.WORD)}}if(this.start_of_statement(I)?b(this._flags.last_token,["var","let","const"])&&I.type===n.WORD&&(this._flags.declaration_statement=!0):I.newlines&&!L(this._flags.mode)&&(this._flags.last_token.type!==n.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==n.EQUALS&&(this._options.preserve_newlines||!b(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(I),this.print_newline()):this.handle_whitespace_and_comments(I),this._flags.do_block&&!this._flags.do_while)if(m(I,"while")){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&m(I,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===h.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&b(I,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(I),this._flags.in_case=!0;return}if((this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I)),m(I,"function")){(t(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(t(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===n.OPERATOR))&&(!this._output.just_added_blankline()&&!I.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD?b(this._flags.last_token,["get","set","new","export"])||b(this._flags.last_token,H)?this._output.space_before_token=!0:m(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===n.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(L(this._flags.mode)||T(this._flags.mode))||this.print_newline(),this.print_token(I),this._flags.last_word=I.text;return}var $="NONE";if(this._flags.last_token.type===n.END_BLOCK?this._previous_flags.inline_frame?$="SPACE":b(I,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines?$="NEWLINE":($="SPACE",this._output.space_before_token=!0):$="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&this._flags.mode===h.BlockStatement?$="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&L(this._flags.mode)?$="SPACE":this._flags.last_token.type===n.STRING?$="NEWLINE":this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===h.ObjectLiteral&&t(this._last_last_text,["{",","]))?$="SPACE":this._flags.last_token.type===n.START_BLOCK?this._flags.inline_frame?$="SPACE":$="NEWLINE":this._flags.last_token.type===n.END_EXPR&&(this._output.space_before_token=!0,$="NEWLINE"),b(I,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?$="SPACE":$="NEWLINE"),b(I,["else","catch","finally"]))if((!(this._flags.last_token.type===n.END_BLOCK&&this._previous_flags.mode===h.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var fe=this._output.current_line;fe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else $==="NEWLINE"?b(this._flags.last_token,_)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&b(I,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==n.END_EXPR?(this._flags.last_token.type!==n.START_EXPR||!b(I,["var","let","const"]))&&this._flags.last_token.text!==":"&&(m(I,"if")&&m(I.previous,"else")?this._output.space_before_token=!0:this.print_newline()):b(I,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&T(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():$==="SPACE"&&(this._output.space_before_token=!0);I.previous&&(I.previous.type===n.WORD||I.previous.type===n.RESERVED)&&(this._output.space_before_token=!0),this.print_token(I),this._flags.last_word=I.text,I.type===n.RESERVED&&(I.text==="do"?this._flags.do_block=!0:I.text==="if"?this._flags.if_block=!0:I.text==="import"?this._flags.import_block=!0:this._flags.import_block&&m(I,"from")&&(this._flags.import_block=!1))},P.prototype.handle_semicolon=function(I){this.start_of_statement(I)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(I);for(var z=this._tokens.peek();this._flags.mode===h.Statement&&!(this._flags.if_block&&m(z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(I)},P.prototype.handle_string=function(I){I.text.startsWith("`")&&I.newlines===0&&I.whitespace_before===""&&(I.previous.text===")"||this._flags.last_token.type===n.WORD)||(this.start_of_statement(I)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(I),this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I):I.text.startsWith("`")&&this._flags.last_token.type===n.END_EXPR&&(I.previous.text==="]"||I.previous.text===")")&&I.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(I)},P.prototype.handle_equals=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0},P.prototype.handle_comma=function(I){this.handle_whitespace_and_comments(I,!0),this.print_token(I),this._output.space_before_token=!0,this._flags.declaration_statement?(L(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(I)):this._flags.mode===h.ObjectLiteral||this._flags.mode===h.Statement&&this._flags.parent.mode===h.ObjectLiteral?(this._flags.mode===h.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(I)},P.prototype.handle_operator=function(I){var z=I.text==="*"&&(b(this._flags.last_token,["function","yield"])||t(this._flags.last_token.type,[n.START_BLOCK,n.COMMA,n.END_BLOCK,n.SEMICOLON])),$=t(I.text,["-","+"])&&(t(this._flags.last_token.type,[n.START_BLOCK,n.START_EXPR,n.EQUALS,n.OPERATOR])||t(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(I)){var fe=!z;this.handle_whitespace_and_comments(I,fe)}if(I.text==="*"&&this._flags.last_token.type===n.DOT){this.print_token(I);return}if(I.text==="::"){this.print_token(I);return}if(this._flags.last_token.type===n.OPERATOR&&t(this._options.operator_position,l)&&this.allow_wrap_or_preserved_newline(I),I.text===":"&&this._flags.in_case){this.print_token(I),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==n.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var ee=!0,ye=!0,pe=!1;if(I.text===":"?this._flags.ternary_depth===0?ee=!1:(this._flags.ternary_depth-=1,pe=!0):I.text==="?"&&(this._flags.ternary_depth+=1),!$&&!z&&this._options.preserve_newlines&&t(I.text,r)){var ae=I.text===":",se=ae&&pe,_e=ae&&!pe;switch(this._options.operator_position){case f.before_newline:this._output.space_before_token=!_e,this.print_token(I),(!ae||se)&&this.allow_wrap_or_preserved_newline(I),this._output.space_before_token=!0;return;case f.after_newline:this._output.space_before_token=!0,!ae||se?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(I):this._output.space_before_token=!1,this.print_token(I),this._output.space_before_token=!0;return;case f.preserve_newline:_e||this.allow_wrap_or_preserved_newline(I),ee=!(this._output.just_added_newline()||_e),this._output.space_before_token=ee,this.print_token(I),this._output.space_before_token=!0;return}}if(z){this.allow_wrap_or_preserved_newline(I),ee=!1;var te=this._tokens.peek();ye=te&&t(te.type,[n.WORD,n.RESERVED])}else if(I.text==="...")this.allow_wrap_or_preserved_newline(I),ee=this._flags.last_token.type===n.START_BLOCK,ye=!1;else if(t(I.text,["--","++","!","~"])||$){if((this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR)&&this.allow_wrap_or_preserved_newline(I),ee=!1,ye=!1,I.newlines&&(I.text==="--"||I.text==="++"||I.text==="~")){var k=b(this._flags.last_token,_)&&I.newlines;k&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(k,!0)}this._flags.last_token.text===";"&&L(this._flags.mode)&&(ee=!0),this._flags.last_token.type===n.RESERVED?ee=!0:this._flags.last_token.type===n.END_EXPR?ee=!(this._flags.last_token.text==="]"&&(I.text==="--"||I.text==="++")):this._flags.last_token.type===n.OPERATOR&&(ee=t(I.text,["--","-","++","+"])&&t(this._flags.last_token.text,["--","-","++","+"]),t(I.text,["+","-"])&&t(this._flags.last_token.text,["--","++"])&&(ye=!0)),(this._flags.mode===h.BlockStatement&&!this._flags.inline_frame||this._flags.mode===h.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ee,this.print_token(I),this._output.space_before_token=ye},P.prototype.handle_block_comment=function(I,z){if(this._output.raw){this._output.add_raw_token(I),I.directives&&I.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(I.directives){this.print_newline(!1,z),this.print_token(I),I.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(I.text)&&!I.newlines){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0;return}else this.print_block_commment(I,z)},P.prototype.print_block_commment=function(I,z){var $=y(I.text),fe,ee=!1,ye=!1,pe=I.whitespace_before,ae=pe.length;if(this.print_newline(!1,z),this.print_token_line_indentation(I),this._output.add_token($[0]),this.print_newline(!1,z),$.length>1){for($=$.slice(1),ee=D($,"*"),ye=x($,pe),ee&&(this._flags.alignment=1),fe=0;fe<$.length;fe++)ee?(this.print_token_line_indentation(I),this._output.add_token(v($[fe]))):ye&&$[fe]?(this.print_token_line_indentation(I),this._output.add_token($[fe].substring(ae))):(this._output.current_line.set_indent(-1),this._output.add_token($[fe])),this.print_newline(!1,z);this._flags.alignment=0}},P.prototype.handle_comment=function(I,z){I.newlines?this.print_newline(!1,z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(I),this.print_newline(!1,z)},P.prototype.handle_dot=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),b(this._flags.last_token,_)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(I,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(I)},P.prototype.handle_unknown=function(I,z){this.print_token(I),I.text[I.text.length-1]===`
`&&this.print_newline(!1,z)},P.prototype.handle_eof=function(I){for(;this._flags.mode===h.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I)},e.exports.Beautifier=P},function(e){function w(u){this.__parent=u,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}w.prototype.clone_empty=function(){var u=new w(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},w.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},w.prototype.has_match=function(u){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(u))return!0;return!1},w.prototype.set_indent=function(u,a){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},w.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},w.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},w.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},w.prototype.is_empty=function(){return this.__items.length===0},w.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},w.prototype.push=function(u){this.__items.push(u);var a=u.lastIndexOf(`
`);a!==-1?this.__character_count=u.length-a:this.__character_count+=u.length},w.prototype.pop=function(){var u=null;return this.is_empty()||(u=this.__items.pop(),this.__character_count-=u.length),u},w.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},w.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},w.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},w.prototype.toString=function(){var u="";return this.is_empty()?this.__parent.indent_empty_lines&&(u=this.__parent.get_indent_string(this.__indent_count)):(u=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),u+=this.__items.join("")),u};function g(u,a){this.__cache=[""],this.__indent_size=u.indent_size,this.__indent_string=u.indent_char,u.indent_with_tabs||(this.__indent_string=new Array(u.indent_size+1).join(u.indent_char)),a=a||"",u.indent_level>0&&(a=new Array(u.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}g.prototype.get_indent_size=function(u,a){var i=this.__base_string_length;return a=a||0,u<0&&(i=0),i+=u*this.__indent_size,i+=a,i},g.prototype.get_indent_string=function(u,a){var i=this.__base_string;return a=a||0,u<0&&(u=0,i=""),a+=u*this.__indent_size,this.__ensure_cache(a),i+=this.__cache[a],i},g.prototype.__ensure_cache=function(u){for(;u>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var u=this.__cache.length,a=0,i="";this.__indent_size&&u>=this.__indent_size&&(a=Math.floor(u/this.__indent_size),u-=a*this.__indent_size,i=new Array(a+1).join(this.__indent_string)),u&&(i+=new Array(u+1).join(" ")),this.__cache.push(i)};function c(u,a){this.__indent_cache=new g(u,a),this.raw=!1,this._end_with_newline=u.end_with_newline,this.indent_size=u.indent_size,this.wrap_line_length=u.wrap_line_length,this.indent_empty_lines=u.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new w(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}c.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},c.prototype.get_line_number=function(){return this.__lines.length},c.prototype.get_indent_string=function(u,a){return this.__indent_cache.get_indent_string(u,a)},c.prototype.get_indent_size=function(u,a){return this.__indent_cache.get_indent_size(u,a)},c.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},c.prototype.add_new_line=function(u){return this.is_empty()||!u&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},c.prototype.get_code=function(u){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
`);return u!==`
`&&(i=i.replace(/[\n]/g,u)),i},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.prototype.set_indent=function(u,a){return u=u||0,a=a||0,this.next_line.set_indent(u,a),this.__lines.length>1?(this.current_line.set_indent(u,a),!0):(this.current_line.set_indent(),!1)},c.prototype.add_raw_token=function(u){for(var a=0;a1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.prototype.ensure_empty_line_above=function(u,a){for(var i=this.__lines.length-2;i>=0;){var d=this.__lines[i];if(d.is_empty())break;if(d.item(0).indexOf(u)!==0&&d.item(-1)!==a){this.__lines.splice(i+1,0,new w(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=c},function(e){function w(g,c,u,a){this.type=g,this.text=c,this.comments_before=null,this.newlines=u||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=w},function(e,w){var g="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",c="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",u="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="(?:\\\\u[0-9a-fA-F]{4}|["+g+u+"])",d="(?:\\\\u[0-9a-fA-F]{4}|["+c+u+a+"])*";w.identifier=new RegExp(i+d,"g"),w.identifierStart=new RegExp(i),w.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+c+u+a+"])+");var s=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;w.newline=/[\n\r\u2028\u2029]/,w.lineBreak=new RegExp(`\r
|`+w.newline.source),w.allLineBreaks=new RegExp(w.lineBreak.source,"g")},function(e,w,g){var c=g(6).Options,u=["before-newline","after-newline","preserve-newline"];function a(i){c.call(this,i,"js");var d=this.raw_options.brace_style||null;d==="expand-strict"?this.raw_options.brace_style="expand":d==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var r=0;r>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),o=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";o=o.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),o="\\?\\.(?!\\d) "+o,o=o.replace(/ /g,"|");var f=new RegExp(o),l="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),h=l.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),E=new RegExp("^(?:"+h.join("|")+")$"),y,T=function(D,x){u.call(this,D,x),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var P=new s(this._input),H=new r(this._input).read_options(this._options);this.__patterns={template:H,identifier:H.starting_with(d.identifier).matching(d.identifierMatch),number:P.matching(p),punct:P.matching(f),comment:P.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:P.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:P.matching(//),include:P.starting_with(/#include/).until_after(d.lineBreak),shebang:P.starting_with(/#!/).until_after(d.lineBreak),xml:P.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:H.until(/['\\\n\r\u2028\u2029]/),double_quote:H.until(/["\\\n\r\u2028\u2029]/),template_text:H.until(/[`\\$]/),template_expression:H.until(/[`}\\]/)}};T.prototype=new u,T.prototype._is_comment=function(D){return D.type===t.COMMENT||D.type===t.BLOCK_COMMENT||D.type===t.UNKNOWN},T.prototype._is_opening=function(D){return D.type===t.START_BLOCK||D.type===t.START_EXPR},T.prototype._is_closing=function(D,x){return(D.type===t.END_BLOCK||D.type===t.END_EXPR)&&x&&(D.text==="]"&&x.text==="["||D.text===")"&&x.text==="("||D.text==="}"&&x.text==="{")},T.prototype._reset=function(){y=!1},T.prototype._get_next_token=function(D,x){var P=null;this._readWhitespace();var H=this._input.peek();return H===null?this._create_token(t.EOF,""):(P=P||this._read_non_javascript(H),P=P||this._read_string(H),P=P||this._read_word(D),P=P||this._read_singles(H),P=P||this._read_comment(H),P=P||this._read_regexp(H,D),P=P||this._read_xml(H,D),P=P||this._read_punctuation(),P=P||this._create_token(t.UNKNOWN,this._input.next()),P)},T.prototype._read_word=function(D){var x;if(x=this.__patterns.identifier.read(),x!=="")return x=x.replace(d.allLineBreaks,`
`),!(D.type===t.DOT||D.type===t.RESERVED&&(D.text==="set"||D.text==="get"))&&E.test(x)?(x==="in"||x==="of")&&(D.type===t.WORD||D.type===t.STRING)?this._create_token(t.OPERATOR,x):this._create_token(t.RESERVED,x):this._create_token(t.WORD,x);if(x=this.__patterns.number.read(),x!=="")return this._create_token(t.WORD,x)},T.prototype._read_singles=function(D){var x=null;return D==="("||D==="["?x=this._create_token(t.START_EXPR,D):D===")"||D==="]"?x=this._create_token(t.END_EXPR,D):D==="{"?x=this._create_token(t.START_BLOCK,D):D==="}"?x=this._create_token(t.END_BLOCK,D):D===";"?x=this._create_token(t.SEMICOLON,D):D==="."&&b.test(this._input.peek(1))?x=this._create_token(t.DOT,D):D===","&&(x=this._create_token(t.COMMA,D)),x&&this._input.next(),x},T.prototype._read_punctuation=function(){var D=this.__patterns.punct.read();if(D!=="")return D==="="?this._create_token(t.EQUALS,D):D==="?."?this._create_token(t.DOT,D):this._create_token(t.OPERATOR,D)},T.prototype._read_non_javascript=function(D){var x="";if(D==="#"){if(this._is_first_token()&&(x=this.__patterns.shebang.read(),x))return this._create_token(t.UNKNOWN,x.trim()+`
`);if(x=this.__patterns.include.read(),x)return this._create_token(t.UNKNOWN,x.trim()+`
`);D=this._input.next();var P="#";if(this._input.hasNext()&&this._input.testChar(m)){do D=this._input.next(),P+=D;while(this._input.hasNext()&&D!=="#"&&D!=="=");return D==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(P+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(P+="{}",this._input.next(),this._input.next())),this._create_token(t.WORD,P)}this._input.back()}else if(D==="<"&&this._is_first_token()){if(x=this.__patterns.html_comment_start.read(),x){for(;this._input.hasNext()&&!this._input.testChar(d.newline);)x+=this._input.next();return y=!0,this._create_token(t.COMMENT,x)}}else if(y&&D==="-"&&(x=this.__patterns.html_comment_end.read(),x))return y=!1,this._create_token(t.COMMENT,x);return null},T.prototype._read_comment=function(D){var x=null;if(D==="/"){var P="";if(this._input.peek(1)==="*"){P=this.__patterns.block_comment.read();var H=v.get_directives(P);H&&H.ignore==="start"&&(P+=v.readIgnored(this._input)),P=P.replace(d.allLineBreaks,`
`),x=this._create_token(t.BLOCK_COMMENT,P),x.directives=H}else this._input.peek(1)==="/"&&(P=this.__patterns.comment.read(),x=this._create_token(t.COMMENT,P))}return x},T.prototype._read_string=function(D){if(D==="`"||D==="'"||D==='"'){var x=this._input.next();return this.has_char_escapes=!1,D==="`"?x+=this._read_string_recursive("`",!0,"${"):x+=this._read_string_recursive(D),this.has_char_escapes&&this._options.unescape_strings&&(x=L(x)),this._input.peek()===D&&(x+=this._input.next()),x=x.replace(d.allLineBreaks,`
`),this._create_token(t.STRING,x)}return null},T.prototype._allow_regexp_or_xml=function(D){return D.type===t.RESERVED&&n(D.text,["return","case","throw","else","do","typeof","yield"])||D.type===t.END_EXPR&&D.text===")"&&D.opened.previous.type===t.RESERVED&&n(D.opened.previous.text,["if","while","for"])||n(D.type,[t.COMMENT,t.START_EXPR,t.START_BLOCK,t.START,t.END_BLOCK,t.OPERATOR,t.EQUALS,t.EOF,t.SEMICOLON,t.COMMA])},T.prototype._read_regexp=function(D,x){if(D==="/"&&this._allow_regexp_or_xml(x)){for(var P=this._input.next(),H=!1,I=!1;this._input.hasNext()&&(H||I||this._input.peek()!==D)&&!this._input.testChar(d.newline);)P+=this._input.peek(),H?H=!1:(H=this._input.peek()==="\\",this._input.peek()==="["?I=!0:this._input.peek()==="]"&&(I=!1)),this._input.next();return this._input.peek()===D&&(P+=this._input.next(),P+=this._input.read(d.identifier)),this._create_token(t.STRING,P)}return null},T.prototype._read_xml=function(D,x){if(this._options.e4x&&D==="<"&&this._allow_regexp_or_xml(x)){var P="",H=this.__patterns.xml.read_match();if(H){for(var I=H[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),z=I.indexOf("{")===0,$=0;H;){var fe=!!H[1],ee=H[2],ye=!!H[H.length-1]||ee.slice(0,8)==="![CDATA[";if(!ye&&(ee===I||z&&ee.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(fe?--$:++$),P+=H[0],$<=0)break;H=this.__patterns.xml.read_match()}return H||(P+=this._input.match(/[\s\S]*/g)[0]),P=P.replace(d.allLineBreaks,`
`),this._create_token(t.STRING,P)}}return null};function L(D){for(var x="",P=0,H=new c(D),I=null;H.hasNext();)if(I=H.match(/([\s]|[^\\]|\\\\)+/g),I&&(x+=I[0]),H.peek()==="\\"){if(H.next(),H.peek()==="x")I=H.match(/x([0-9A-Fa-f]{2})/g);else if(H.peek()==="u")I=H.match(/u([0-9A-Fa-f]{4})/g);else{x+="\\",H.hasNext()&&(x+=H.next());continue}if(!I)return D;if(P=parseInt(I[1],16),P>126&&P<=255&&I[0].indexOf("x")===0)return D;if(P>=0&&P<32){x+="\\"+I[0];continue}else P===34||P===39||P===92?x+="\\"+String.fromCharCode(P):x+=String.fromCharCode(P)}return x}T.prototype._read_string_recursive=function(D,x,P){var H,I;D==="'"?I=this.__patterns.single_quote:D==='"'?I=this.__patterns.double_quote:D==="`"?I=this.__patterns.template_text:D==="}"&&(I=this.__patterns.template_expression);for(var z=I.read(),$="";this._input.hasNext();){if($=this._input.next(),$===D||!x&&d.newline.test($)){this._input.back();break}else $==="\\"&&this._input.hasNext()?(H=this._input.peek(),H==="x"||H==="u"?this.has_char_escapes=!0:H==="\r"&&this._input.peek(1)===`
`&&this._input.next(),$+=this._input.next()):P&&(P==="${"&&$==="$"&&this._input.peek()==="{"&&($+=this._input.next()),P===$&&(D==="`"?$+=this._read_string_recursive("}",x,"`"):$+=this._read_string_recursive("`",x,"${"),this._input.hasNext()&&($+=this._input.next())));$+=I.read(),z+=$}return z},e.exports.Tokenizer=T,e.exports.TOKEN=t,e.exports.positionable_operators=_.slice(),e.exports.line_starters=l.slice()},function(e){var w=RegExp.prototype.hasOwnProperty("sticky");function g(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position=0&&c=0&&u=c.length&&this.__input.substring(u-c.length,u).toLowerCase()===c},e.exports.InputScanner=g},function(e,w,g){var c=g(8).InputScanner,u=g(3).Token,a=g(10).TokenStream,i=g(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(r,n){this._input=new c(r),this._options=n||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var r,n=new u(d.START,""),t=null,v=[],p=new a;n.type!==d.EOF;){for(r=this._get_next_token(n,t);this._is_comment(r);)p.add(r),r=this._get_next_token(n,t);p.isEmpty()||(r.comments_before=p,p=new a),r.parent=t,this._is_opening(r)?(v.push(t),t=r):t&&this._is_closing(r,t)&&(r.opened=t,t.closed=r,t=v.pop(),r.parent=t),r.previous=n,n.next=r,this.__tokens.add(r),n=r}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(r,n){this._readWhitespace();var t=this._input.read(/.+/g);return t?this._create_token(d.RAW,t):this._create_token(d.EOF,"")},s.prototype._is_comment=function(r){return!1},s.prototype._is_opening=function(r){return!1},s.prototype._is_closing=function(r,n){return!1},s.prototype._create_token=function(r,n){var t=new u(r,n,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return t},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=s,e.exports.TOKEN=d},function(e){function w(g){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=g}w.prototype.restart=function(){this.__position=0},w.prototype.isEmpty=function(){return this.__tokens_length===0},w.prototype.hasNext=function(){return this.__position=0&&g/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new c,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(i){var d=this._create();return d._disabled[i]=!0,d._update(),d},a.prototype.read_options=function(i){var d=this._create();for(var s in u)d._disabled[s]=i.templating.indexOf(s)===-1;return d._update(),d},a.prototype.exclude=function(i){var d=this._create();return d._excluded[i]=!0,d._update(),d},a.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),i+=d,d=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},a.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},a.prototype._read_template=function(){var i="",d=this._input.peek();if(d==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(i=i||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},e.exports.TemplatablePattern=a}],O={};function F(e){var w=O[e];if(w!==void 0)return w.exports;var g=O[e]={exports:{}};return S[e](g,g.exports,F),g.exports}var j=F(0);R=j})();var N=R;!(ue=[],W=function(){return{js_beautify:N}}.apply(be,ue),W!==void 0&&(Ge.exports=W))})()},"746U":function(Ge,be,U){"use strict";U.d(be,"f",function(){return ue}),U.d(be,"l",function(){return W}),U.d(be,"k",function(){return R}),U.d(be,"j",function(){return N}),U.d(be,"g",function(){return S}),U.d(be,"m",function(){return O}),U.d(be,"h",function(){return F}),U.d(be,"n",function(){return j}),U.d(be,"c",function(){return e}),U.d(be,"a",function(){return w}),U.d(be,"i",function(){return g}),U.d(be,"o",function(){return c}),U.d(be,"e",function(){return i}),U.d(be,"d",function(){return d}),U.d(be,"p",function(){return s}),U.d(be,"b",function(){return r});function ue(n){return Array.isArray(n)}function W(n){return typeof n=="string"}function R(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function N(n){return typeof n=="number"&&!isNaN(n)}function S(n){return n===!0||n===!1}function O(n){return typeof n=="undefined"}function F(n){return!j(n)}function j(n){return O(n)||n===null}function e(n,t){if(!n)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function w(n){if(j(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function g(n){return typeof n=="function"}function c(n,t){const v=Math.min(n.length,t.length);for(let p=0;pfunction(){const b=Array.prototype.slice.call(arguments,0);return t(m,b)};let p={};for(const m of n)p[m]=v(m);return p}function s(n){return n===null?void 0:n}function r(n,t="Unreachable"){throw new Error(t)}},"815F":function(Ge,be,U){"use strict";U.d(be,"e",function(){return F}),U.d(be,"c",function(){return e}),U.d(be,"d",function(){return w}),U.d(be,"a",function(){return c}),U.d(be,"f",function(){return u}),U.d(be,"b",function(){return a});var ue=U("KQm4"),W=U("VTBJ"),R=U("Ff2n"),N=U("Zm9Q"),S=U("Kwbf"),O=U("OZM5");function F(i,d){return i!=null?i:d}function j(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=new Map;function s(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(t){var v=t.key,p=t.children;Object(S.a)(v!=null,"Tree node must have a certain key: [".concat(n).concat(v,"]"));var m=String(v);Object(S.a)(!d.has(m)||v===null||v===void 0,"Same 'key' exist in the Tree: ".concat(m)),d.set(m,!0),s(p,"".concat(n).concat(m," > "))})}s(i)}function e(i){function d(s){var r=Object(N.a)(s);return r.map(function(n){if(!Object(O.i)(n))return Object(S.a)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,v=n.props,p=v.children,m=Object(R.a)(v,["children"]),b=Object(W.a)({key:t},m),_=d(p);return _.length&&(b.children=_),b}).filter(function(n){return n})}return d(i)}function w(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=new Set(d===!0?[]:d),r=[];function n(t){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return t.map(function(p,m){var b=Object(O.h)(v?v.pos:"0",m),_=F(p.key,b),o=Object(W.a)(Object(W.a)({},p),{},{parent:v,pos:b,children:null,data:p,isStart:[].concat(Object(ue.a)(v?v.isStart:[]),[m===0]),isEnd:[].concat(Object(ue.a)(v?v.isEnd:[]),[m===t.length-1])});return r.push(o),d===!0||s.has(_)?o.children=n(p.children||[],o):o.children=[],o})}return n(i),r}function g(i,d,s){var r;s?typeof s=="string"?r=function(v){return v[s]}:typeof s=="function"&&(r=function(v){return s(v)}):r=function(v,p){return F(v.key,p)};function n(t,v,p){var m=t?t.children:i,b=t?Object(O.h)(p.pos,v):"0";if(t){var _=r(t,b),o={node:t,index:v,pos:b,key:_,parentPos:p.node?p.pos:null,level:p.level+1};d(o)}m&&m.forEach(function(f,l){n(f,l,{node:t,pos:b,level:p?p.level+1:-1})})}n(null)}function c(i){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=d.initWrapper,r=d.processEntity,n=d.onProcessFinished,t=arguments.length>2?arguments[2]:void 0,v={},p={},m={posEntities:v,keyEntities:p};return s&&(m=s(m)||m),g(i,function(b){var _=b.node,o=b.index,f=b.pos,l=b.key,h=b.parentPos,E=b.level,y={node:_,index:o,key:l,pos:f,level:E},T=F(l,f);v[f]=y,p[T]=y,y.parent=v[h],y.parent&&(y.parent.children=y.parent.children||[],y.parent.children.push(y)),r&&r(y,m)},t),n&&n(m),m}function u(i,d){var s=d.expandedKeys,r=d.selectedKeys,n=d.loadedKeys,t=d.loadingKeys,v=d.checkedKeys,p=d.halfCheckedKeys,m=d.dragOverNodeKey,b=d.dropPosition,_=d.keyEntities,o=_[i],f={eventKey:i,expanded:s.indexOf(i)!==-1,selected:r.indexOf(i)!==-1,loaded:n.indexOf(i)!==-1,loading:t.indexOf(i)!==-1,checked:v.indexOf(i)!==-1,halfChecked:p.indexOf(i)!==-1,pos:String(o?o.pos:""),dragOver:m===i&&b===0,dragOverGapTop:m===i&&b===-1,dragOverGapBottom:m===i&&b===1};return f}function a(i){var d=i.data,s=i.expanded,r=i.selected,n=i.checked,t=i.loaded,v=i.loading,p=i.halfChecked,m=i.dragOver,b=i.dragOverGapTop,_=i.dragOverGapBottom,o=i.pos,f=i.active,l=Object(W.a)(Object(W.a)({},d),{},{expanded:s,selected:r,checked:n,loaded:t,loading:v,halfChecked:p,dragOver:m,dragOverGapTop:b,dragOverGapBottom:_,pos:o,active:f});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),l}},"8HAY":function(Ge,be,U){"use strict";U.d(be,"a",function(){return S}),U.d(be,"b",function(){return O}),U.d(be,"d",function(){return F}),U.d(be,"e",function(){return j}),U.d(be,"c",function(){return e});var ue=U("MI8n"),W=U("pmY6"),R=U("3/fG"),N=function(w,g,c,u){function a(i){return i instanceof c?i:new c(function(d){d(i)})}return new(c||(c=Promise))(function(i,d){function s(t){try{n(u.next(t))}catch(v){d(v)}}function r(t){try{n(u.throw(t))}catch(v){d(v)}}function n(t){t.done?i(t.value):a(t.value).then(s,r)}n((u=u.apply(w,g||[])).next())})};class S extends W.a{constructor(w,g="",c="",u=!0,a){super();this._onDidChange=this._register(new ue.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=w,this._label=g,this._cssClass=c,this._enabled=u,this._actionCallback=a}get id(){return this._id}get label(){return this._label}set label(w){this._setLabel(w)}_setLabel(w){this._label!==w&&(this._label=w,this._onDidChange.fire({label:w}))}get tooltip(){return this._tooltip||""}set tooltip(w){this._setTooltip(w)}_setTooltip(w){this._tooltip!==w&&(this._tooltip=w,this._onDidChange.fire({tooltip:w}))}get class(){return this._cssClass}set class(w){this._setClass(w)}_setClass(w){this._cssClass!==w&&(this._cssClass=w,this._onDidChange.fire({class:w}))}get enabled(){return this._enabled}set enabled(w){this._setEnabled(w)}_setEnabled(w){this._enabled!==w&&(this._enabled=w,this._onDidChange.fire({enabled:w}))}get checked(){return this._checked}set checked(w){this._setChecked(w)}_setChecked(w){this._checked!==w&&(this._checked=w,this._onDidChange.fire({checked:w}))}run(w,g){return N(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(w))})}}class O extends W.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new ue.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new ue.b),this.onDidRun=this._onDidRun.event}run(w,g){return N(this,void 0,void 0,function*(){if(!w.enabled)return;this._onBeforeRun.fire({action:w});let c;try{yield this.runAction(w,g)}catch(u){c=u}this._onDidRun.fire({action:w,error:c})})}runAction(w,g){return N(this,void 0,void 0,function*(){yield w.run(g)})}}class F extends S{constructor(w){super(F.ID,w,w?"separator text":"separator");this.checked=!1,this.enabled=!1}}F.ID="vs.actions.separator";class j{constructor(w,g,c,u){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=w,this.label=g,this.class=u,this._actions=c}get actions(){return this._actions}dispose(){}run(){return N(this,void 0,void 0,function*(){})}}class e extends S{constructor(){super(e.ID,R.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8hTe":function(Ge,be,U){Ge.exports={button:"button___1wy9m"}},"9Bee":function(Ge,be,U){"use strict";var ue=U("DYRE"),W=U("zeV3"),R=U("+L6B"),N=U("2/Rp"),S=U("k1fw"),O=U("9og8"),F=U("tJVT"),j=U("WmNS"),e=U.n(j),w=U("q1tI"),g=U.n(w),c=U("vg9a"),u=U("DlQD"),a=U.n(u),i=U("rUJ1");function d(ne,V){var G=ne.match(/^(\s+)(?:```)/);if(G===null)return V;var Z=G[1];return V.split(`
`).map(function(re){var X=re.match(/^\s+/);if(X===null)return re;var Q=Object(F.a)(X,1),oe=Q[0];return oe.length>=Z.length?re.slice(Z.length):re}).join(`
`)}var s=[],r=[""],n=new a.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function v(){s.length=0,r=[""]}var p={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function m(ne,V,G,Z){if(V>=ne.length||ne[V].level<=G)return V;var re=ne[V];Z.push("- "+re.text+""),V++;var X=[];return V=m(ne,V,re.level,X),X.length>0&&(Z.push("
"),X.forEach(function(Q){Z.push(Q)}),Z.push("
")),Z.push(" "),V=m(ne,V,G,Z),V}function b(){return m(s,0,0,r),r.push("
"),r.join("")}var _={heading:function(V){var G=t.exec(V);if(G)return{type:"heading",raw:G[0],depth:G[1].length,text:G[2]}},fences:function(V){var G=this.rules.block.fences.exec(V);if(G){var Z=G[0],re=d(Z,G[3]||""),X=G[2]?G[2].trim():G[2];if(["latex","katex","math"].indexOf(X)>=0){var Q=l(),oe=re;re=Q,h[Q]={type:"block",expression:oe}}return{type:"code",raw:Z,lang:X,text:re}}}},o=/(?:\${2})([^\n`]+?)(?:\${2})/gi,f=0,l=function(){return"__special_katext_id_".concat(f++,"__")},h={};function E(){return h}function y(){f=0,h={}}function T(ne){return ne=ne.replace(o,function(V,G){var Z=l();return h[Z]={type:"inline",expression:G},Z}),ne}var L=n.listitem;n.listitem=function(ne){return L(T(ne))};var D=n.paragraph;n.paragraph=function(ne){return D(T(ne))};var x=n.tablecell;n.tablecell=function(ne,V){return x(T(ne),V)},n.code=function(ne,V,G){var Z=(V||"").match(/\S*/)[0];return Z?["latex","katex","math"].indexOf(Z)>=0?"".concat(ne,"
"):'
').concat(G?ne:Object(i.escape)(ne,!0),`
`):''+(G?ne:Object(i.escape)(ne,!0))+"
"},n.heading=function(ne,V,G){var Z=this.options.headerPrefix+G.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:Z,level:V,text:ne}),"'+ne+""},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:_,renderer:n});var P=a.a,H=U("SJMd"),I=U("ulZh"),z=U.n(I),$=U("m3rI"),fe=U("Oy/b"),ee=U("p5ED"),ye=U("ErOA"),pe=U("STEk");/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ae=function(ne,V){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var re in Z)Object.prototype.hasOwnProperty.call(Z,re)&&(G[re]=Z[re])})(ne,V)};function se(ne,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");function G(){this.constructor=ne}ae(ne,V),ne.prototype=V===null?Object.create(V):(G.prototype=V.prototype,new G)}function _e(ne,V,G,Z){return new(G||(G=Promise))(function(re,X){function Q(De){try{he(Z.next(De))}catch(Ie){X(Ie)}}function oe(De){try{he(Z.throw(De))}catch(Ie){X(Ie)}}function he(De){var Ie;De.done?re(De.value):(Ie=De.value,Ie instanceof G?Ie:new G(function(Ue){Ue(Ie)})).then(Q,oe)}he((Z=Z.apply(ne,V||[])).next())})}function te(ne,V){var G,Z,re,X,Q={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return X={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(X[Symbol.iterator]=function(){return this}),X;function oe(he){return function(De){return function(Ie){if(G)throw new TypeError("Generator is already executing.");for(;Q;)try{if(G=1,Z&&(re=2&Ie[0]?Z.return:Ie[0]?Z.throw||((re=Z.return)&&re.call(Z),0):Z.next)&&!(re=re.call(Z,Ie[1])).done)return re;switch(Z=0,re&&(Ie=[2&Ie[0],re.value]),Ie[0]){case 0:case 1:re=Ie;break;case 4:return Q.label++,{value:Ie[1],done:!1};case 5:Q.label++,Z=Ie[1],Ie=[0];continue;case 7:Ie=Q.ops.pop(),Q.trys.pop();continue;default:if(!(re=Q.trys,(re=re.length>0&&re[re.length-1])||Ie[0]!==6&&Ie[0]!==2)){Q=0;continue}if(Ie[0]===3&&(!re||Ie[1]>re[0]&&Ie[1]0&&G>0){var Z=new de(V,G),re=Z.ratio>=1?20:Z.getHorizontalLength(20),X=Z.ratio<1?20:Z.getVerticalLength(20),Q=document.createElementNS("http://www.w3.org/2000/svg","svg");Q.setAttribute("xmlns","http://www.w3.org/2000/svg"),Q.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Q);var oe=A.createDefs();Q.appendChild(oe);var he=A.createElement("clipPath",[["id","text-bg-clip"]]);oe.appendChild(he);var De=A.createPath(A.getHollowRectanglePath((24-re)/2,(24-X)/2,re,X,(24-re)/2+2,(24-X)/2+2,re-4,X-4));Q.appendChild(De);var Ie=A.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ie.appendChild(A.createTSpan(V+":"+G)),Q.appendChild(Ie);var Ue=Ie.getBBox();A.setAttributes(Ie,[["x",((24-Ue.width)/2).toString()],["y",((24-Ue.height)/2-Ue.y).toString()]]);var Ye=A.createPath(A.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Ue.width))/2,(24-Math.ceil(Ue.height))/2,Math.ceil(Ue.width),Math.ceil(Ue.height)));return he.appendChild(Ye),A.setAttributes(De,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Q),Q.outerHTML}return''},ne}(),xe=function(ne){function V(G,Z,re){var X=ne.call(this,G,Z)||this;return X.isDropdownOpen=!1,X.onClick=X.dropdownButtonClicked,X.dropdownButtons=re,X}return se(V,ne),V.prototype.setupDropdown=function(){var G=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(Z){Z.className=G.className,Z.colorsClassName=G.colorsClassName,G.dropdownBlock.appendChild(Z.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},V.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},V.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},V.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},V.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},V.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},V}(Oe),Pe=function(){function ne(V,G){this.GRIP_SIZE=10,this.color=V,this.fillColor=G,this.visual=A.createGroup(),this.visual.appendChild(A.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(A.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ne.prototype.ownsTarget=function(V){return V===this.visual||V===this.visual.childNodes[0]||V===this.visual.childNodes[1]},ne.prototype.setCenter=function(V,G){this.visual.childNodes.forEach(function(Z){return A.setAttributes(Z,[["cx",V.toString()],["cy",G.toString()]])})},ne}(),Ne=function(){function ne(V,G,Z,re){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=V,this.canvasHeight=G,this.margin=Z,this.container=re,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(ne.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(V){this._aspectRatio=V,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(V){this._isGridVisible=V,this.gridContainer&&A.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(V){this._zoomFactor=V,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ne.prototype.open=function(){var V=this;this.cropShadeElement=A.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=A.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var G=0;Gthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-G.height/2),A.setAttributes(this.cropRectElement,[["x",G.x.toString()],["y",G.y.toString()],["width",G.width.toString()],["height",G.height.toString()]]);var Z=G.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(X,Q){var oe=G.y+Z*(Q+1);A.setAttributes(X,[["x1",""+G.x],["y1",""+oe],["x2",""+(G.x+G.width)],["y2",""+oe]])});var re=G.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(X,Q){var oe=G.x+re*(Q+1);A.setAttributes(X,[["x1",""+oe],["y1",""+G.y],["x2",""+oe],["y2",""+(G.y+G.height)]])}),A.setAttributes(this.cropShadeElement,[["d",A.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,G.x,G.y,G.width,G.height)]]),this.topLeftGrip.setCenter(G.x,G.y),this.topRightGrip.setCenter(G.x+G.width,G.y),this.bottomLeftGrip.setCenter(G.x,G.y+G.height),this.bottomRightGrip.setCenter(G.x+G.width,G.y+G.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},ne.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},ne.prototype.clientToLocalCoordinates=function(V,G){var Z=this.container.getBoundingClientRect();return{x:V-Z.left+this.margin,y:G-Z.top+this.margin}},ne.prototype.onPointerDown=function(V){this.container.setPointerCapture(V.pointerId),this.previousPoint=this.clientToLocalCoordinates(V.clientX,V.clientY),this.cropRectElement===V.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(V.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(V.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(V.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(V.target)&&(this.activeGrip=this.bottomRightGrip)},ne.prototype.onPointerMove=function(V){if(this.isMoving)this.move(this.clientToLocalCoordinates(V.clientX,V.clientY));else if(this.activeGrip){var G=this.clientToLocalCoordinates(V.clientX,V.clientY);this.resize(G)}V.preventDefault()},ne.prototype.onPointerUp=function(V){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(V.pointerId)},ne.prototype.move=function(V){var G=V.x-this.previousPoint.x,Z=V.y-this.previousPoint.y;this.zoomFactor!==1&&(G=-G/this.zoomFactor,Z=-Z/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+G),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+Z),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=V},ne.prototype.resize=function(V){var G=Object.assign({},this.cropRect),Z=V.x-this.previousPoint.x,re=V.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:G.x+Zthis.canvasWidth*this.zoomFactor&&(Z=this.canvasWidth*this.zoomFactor-G.width),G.width+=Z}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(G.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(Z),G.height=this.aspectRatio.getVerticalLength(G.width)):(G.y+=re,G.height=this.cropRect.y+this.cropRect.height-G.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?G.height=this.aspectRatio.getVerticalLength(G.width):G.height+=re}G.width<10&&(G.x=this.cropRect.x,G.width=10),G.height<10&&(G.y=this.cropRect.y,G.height=10),this.previousPoint=V,G.x>=this.margin&&G.y>=this.margin&&G.x-this.margin+G.width<=this.canvasWidth&&G.y-this.margin+G.height<=this.canvasHeight&&(this.cropRect=G,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},ne.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var V=this.cropRect.x+this.cropRect.width/2,G=this.cropRect.y+this.cropRect.height/2,Z=this.aspectRatio.getHorizontalLength(this.cropRect.height),re=this.aspectRatio.getVerticalLength(this.cropRect.width);Z/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=V-this.cropRect.width/2,this.cropRect.y=G-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},ne.prototype.getRescaledRect=function(V,G,Z,re,X,Q){var oe=Z/V,he=re/G;return{x:(X.x-Q)*oe+Q,y:(X.y-Q)*he+Q,width:X.width*oe,height:X.height*he}},ne.prototype.scaleCanvas=function(V,G){var Z=this.getRescaledRect(this.canvasWidth,this.canvasHeight,V,G,this.cropRect,this.margin);this.canvasWidth=V,this.canvasHeight=G,this.onCropChange&&this.onCropChange(Z),this.setCropRectangle(Z)},ne}(),Re=function(){function ne(V){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=V,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(ne.prototype,"angle",{get:function(){return this._angle},set:function(V){this._angle=V,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),ne.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},ne.prototype.onPointerDown=function(V){this.controlContainer.setPointerCapture(V.pointerId),this.isDragging=!0,this.previousPoint={x:V.clientX,y:V.clientY}},ne.prototype.onPointerMove=function(V){this.isDragging&&(this.onAngleChange&&this.onAngleChange((V.clientX-this.previousPoint.x)/5),this.previousPoint.x=V.clientX)},ne.prototype.onPointerUp=function(V){this.isDragging&&this.onAngleChange&&this.onAngleChange((V.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(V.pointerId)},ne.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var V=this.angleLabelText.getBBox();A.setAttributes(this.angleLabelElement,[["x",((this.width-V.width)/2).toString()],["y",(this.height/2).toString()]])}},ne.prototype.positionScaleShape=function(){if(this.scaleShape){var V=this.scaleShape.transform.baseVal.getItem(0);V.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(V,0)}},ne.prototype.getVisual=function(){var V=document.createElementNS("http://www.w3.org/2000/svg","svg");V.setAttribute("xmlns","http://www.w3.org/2000/svg"),V.setAttribute("width",this.width+"px"),V.setAttribute("height",this.height+"px"),V.setAttribute("viewBox","0 0 "+this.width+" "+this.height),V.style.flexShrink="0",document.body.appendChild(V);for(var G="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,Z=1;Z<=this.width/5+10;Z++){var re=Z%5==0?this.height/3:this.height/6;G+="h4v"+-re+"h1v"+re}G+="v1H0Z",this.scaleShape=A.createPath(G);var X=A.createTransform();this.scaleShape.transform.baseVal.appendItem(X),V.appendChild(this.scaleShape),this.angleLabelElement=A.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=A.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Q=A.createTSpan("");return Q.innerHTML="°",this.angleLabelElement.appendChild(Q),V.appendChild(this.angleLabelElement),document.body.removeChild(V),V},ne}(),Me=function(){function ne(){this.naturalSize=!1,this.imageType="image/png"}return ne.prototype.rasterize=function(V,G,Z,re,X,Q,oe){var he=this;return new Promise(function(De){var Ie=document.createElement("canvas");Ie.width=V.width.baseVal.value-2*re,Ie.height=V.height.baseVal.value-2*re;var Ue=1,Ye=1;he.naturalSize===!0?(Ue=G.naturalWidth/(V.width.baseVal.value-2*re)/Q,Ye=G.naturalHeight/(V.height.baseVal.value-2*re)/oe,Ie.width=G.naturalWidth/Q,Ie.height=G.naturalHeight/oe):he.width!==void 0&&he.height!==void 0&&(Ue=he.width/Z.width,Ye=he.height/Z.height,Ie.width*=Ue,Ie.height*=Ye);var Je=Ie.getContext("2d");Je.translate(Ie.width/2,Ie.height/2),Je.rotate(X*Math.PI/180),Je.scale(Q,oe),Je.translate(-Ie.width/2,-Ie.height/2),Je.drawImage(G,0,0,Ie.width,Ie.height);var Ze=document.createElement("canvas");Ze.width=Z.width*Ue,Ze.height=Z.height*Ye,Ze.getContext("2d").putImageData(Je.getImageData((Z.x-re)*Ue,(Z.y-re)*Ye,Z.width*Ue,Z.height*Ye),0,0),De(Ze.toDataURL(he.imageType,he.imageQuality))})},ne}(),He=function(){function ne(V){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=ne.instanceCounter++,this.styles=new C(this.instanceNo),this.target=V,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(ne.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(V){this._zoomToCropEnabled=V,V?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(V){this._isGridVisible=V,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"gridLines",{get:function(){return this._gridLines},set:function(V){this._gridLines=V,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(V){this._rotationAngle=V,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"aspectRatio",{get:function(){var V;return(V=this._aspectRatio)!==null&&V!==void 0?V:this.aspectRatios[0]},set:function(V){this._aspectRatio=V},enumerable:!1,configurable:!0}),ne.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},ne.prototype.show=function(){this.showUI(),this.open()},ne.prototype.close=function(V){V===void 0&&(V=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),V||this.closeEventListeners.forEach(function(G){return G()}),this._isOpen=!1)},ne.prototype.addRenderEventListener=function(V){this.renderEventListeners.push(V)},ne.prototype.removeRenderEventListener=function(V){this.renderEventListeners.indexOf(V)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(V),1)},ne.prototype.addCloseEventListener=function(V){this.closeEventListeners.push(V)},ne.prototype.removeCloseEventListener=function(V){this.closeEventListeners.indexOf(V)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(V),1)},ne.prototype.setupResizeObserver=function(){var V=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){V.resize(V.target.clientWidth,V.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},ne.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var V=1*this.target.clientWidth/this.target.clientHeight,G=this.contentDiv.clientWidth/V>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*V:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,Z=G+2*this.CANVAS_MARGINV+this.CANVAS_MARGIN?this.target.offsetTop-(V+this.CANVAS_MARGIN):0;this.coverDiv.style.top=G+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},ne.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ne.prototype.addTopToolbar=function(){var V=this;this.topToolbar=new M,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var G=new Ee;G.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(G);var Z=[];this.aspectRatios.forEach(function(Ye){var Je=new Oe(Te.getIcon(Ye.horizontal,Ye.vertical),Ye.horizontal===0&&Ye.vertical===0?"FREE":Ye.horizontal+":"+Ye.vertical);Je.onClick=function(){return V.ratioButtonClicked(Ye)},Z.push(Je)}),this.aspectRatioButton=new xe(Te.getIcon(0,0),"Aspect ratio",Z),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,G.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var re=new Oe('',"Toggle grid");re.isActive=this.isGridVisible,re.onClick=function(){V.isGridVisible=!V.isGridVisible,re.isActive=V.isGridVisible},G.addButton(re);var X=new Oe('',"Zoom to selection");if(X.isActive=this.zoomToCropEnabled,X.onClick=function(){V.zoomToCropEnabled=!V.zoomToCropEnabled,X.isActive=V.zoomToCropEnabled},G.addButton(X),!k.isLicensed){var Q=new q;this.topToolbar.addElementBlock(Q);var oe=document.createElement("div");oe.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var he=document.createElement("a");he.style.color="currentColor",he.href="https://markerjs.com/products/cropro",he.target="_blank",he.innerHTML='',oe.appendChild(he),Q.addElement(oe)}var De=new Ee;De.minWidth=3*this.toolbarHeight+"px",De.contentAlign="end",this.topToolbar.addButtonBlock(De);var Ie=new Oe('',"OK");Ie.onClick=this.startRenderAndClose,De.addButton(Ie),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ie.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Ue=new Oe('',"Close");Ue.onClick=this.close,De.addButton(Ue),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Ue.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ne.prototype.addBottomToolbar=function(){var V=this;this.bottomToolbar=new M,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var G=new Ee;G.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(G);var Z=new Oe('',"Rotate left");Z.onClick=this.rotateLeftButtonClicked,G.addButton(Z);var re=new Oe('',"Rotate right");re.onClick=this.rotateRightButtonClicked,G.addButton(re);var X=new q;X.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(X),this.straightener=new Re("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(De){V.rotateBy(De),V.straightener.angle=V.rotationAngle},X.addElement(this.straightener.getUI());var Q=new Ee;Q.minWidth=2*this.toolbarHeight+"px",Q.contentAlign="end",this.bottomToolbar.addButtonBlock(Q);var oe=new Oe('',"Flip horizontal");oe.onClick=this.flipHorizontallyButtonClicked,Q.addButton(oe);var he=new Oe('',"Flip vertical");he.onClick=this.flipVerticallyButtonClicked,Q.addButton(he)},ne.prototype.ratioButtonClicked=function(V){this.aspectRatio=V,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ne.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Te.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},ne.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new de(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},ne.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ne.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},ne.prototype.restoreState=function(V){if(V){var G=this.cropLayer.getRescaledRect(V.width,V.height,this.imageWidth,this.imageHeight,V.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(G),this.cropRectChanged(G),this.flippedHorizontally=V.flippedHorizontally,this.flippedVertically=V.flippedVertically,this.applyFlip(),this.rotationAngle=V.rotationAngle,this.applyRotation()}},ne.prototype.clientToLocalCoordinates=function(V,G){var Z=this.cropImage.getBoundingClientRect();return{x:V-Z.left,y:G-Z.top}},ne.prototype.onWindowResize=function(){this.positionUI()},ne.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var V=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=V+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},ne.prototype.rotateLeftButtonClicked=function(){var V=this.rotationAngle-90;this.rotationAngle%90!=0&&(V+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(V)},ne.prototype.rotateRightButtonClicked=function(){var V=this.rotationAngle+90;this.rotationAngle%90!=0&&(V-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(V)},ne.prototype.rotateTo=function(V){V=(V=V>180?V-360:V)<=-180?V+360:V,this.rotationAngle=V,this.applyRotation()},ne.prototype.rotateBy=function(V){this.rotateTo((this.rotationAngle+V)%360)},ne.prototype.applyRotation=function(){var V=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var G=this.editingTargetRotationContainer.transform.baseVal.getItem(0);G.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(G,0);var Z=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/Z.width,this.imageHeight/Z.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=V},ne.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},ne.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},ne.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},ne.prototype.startRenderAndClose=function(){return _e(this,void 0,void 0,function(){var V,G;return te(this,function(Z){switch(Z.label){case 0:return[4,this.render()];case 1:return V=Z.sent(),G=this.getState(),this.renderEventListeners.forEach(function(re){return re(V,G)}),this.close(!0),[2]}})})},ne.prototype.render=function(){return _e(this,void 0,void 0,function(){var V;return te(this,function(G){switch(G.label){case 0:return(V=new Me).naturalSize=this.renderAtNaturalSize,V.imageType=this.renderImageType,V.imageQuality=this.renderImageQuality,V.width=this.renderWidth,V.height=this.renderHeight,this.unzoomFromCrop(),A.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,V.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return G.sent(),[4,V.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,G.sent()]}})})},ne.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new K("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new K("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new K("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var V=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new K("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*V)+`px;
height: `+(this.toolbarHeight-2*V)+`px;
padding: `+V+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new K("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new K("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new B("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new B("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new K("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new K("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new K("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new K("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*V)+`px;
padding: `+V+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new K("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},ne.instanceCounter=0,ne}(),We=U("8hTe"),Ke=U.n(We),Be=/]*>/g;function Ve(ne){var V=document.createElement("div");return V.innerHTML=ne,V.childNodes.length===0?"":V.childNodes[0].nodeValue}var Xe=be.a=function(ne){var V=ne.value,G=V===void 0?"":V,Z=ne.edit,re=Z===void 0?!1:Z,X=ne.className,Q=ne.showTextOnly,oe=ne.showLines,he=ne.replaces,De=ne.zoomImg,Ie=ne.hasMask,Ue=ne.style,Ye=Ue===void 0?{}:Ue,Je=ne.stylesPrev,Ze=Je===void 0?{}:Je,dt=String(G),at=Object(w.useRef)(),$e=Object(w.useRef)(),Nt=Object(w.useState)(""),bt=Object(F.a)(Nt,2),Ut=bt[0],Lt=bt[1],ot=Object(w.useState)("office"),Ft=Object(F.a)(ot,2),Jt=Ft[0],Vt=Ft[1],rn=function(){var pt=new He($e.current);pt.displayMode="popup",pt.addRenderEventListener(function(){var yt=Object(O.a)(e.a.mark(function ut(Qt){var Rt;return e.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return at.current.style.display="none",Kt.next=3,Object(ye.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Qt}});case 3:Rt=Kt.sent,Rt!=null&&Rt.id&&he($e.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Rt==null?void 0:Rt.id,"?type=").concat(Rt.content_type));case 5:case"end":return Kt.stop()}},ut)}));return function(ut){return yt.apply(this,arguments)}}()),pt.show()},qe=function(){var pt=new pe.a($e.current);pt.settings.displayMode="popup",pt.addEventListener("render",function(){var yt=Object(O.a)(e.a.mark(function ut(Qt){var Rt;return e.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(at.current.style.display="none",!$e.current){Kt.next=6;break}return Kt.next=4,Object(ye.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Qt.dataUrl}});case 4:Rt=Kt.sent,Rt!=null&&Rt.id&&he($e.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Rt==null?void 0:Rt.id,"?type=").concat(Rt.content_type));case 6:case"end":return Kt.stop()}},ut)}));return function(ut){return yt.apply(this,arguments)}}()),pt.show(),window.markerArea=pt},it=Object(w.useMemo)(function(){at.current&&(at.current.style.zIndex=-1);try{var Bt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,pt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;dt=dt.replace(Bt,"("+$.a.API_SERVER+"/api/attachments/").replace(pt,'"'+$.a.API_SERVER+"/api/attachments/").replace(yt,'"'+$.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(dn){}var ut=P(dt),Qt=E();if(dt.match(/\[TOC\]/)&&(ut=ut.replace("[TOC]
",b()),v()),ut=ut.replace(/(__special_katext_id_\d+__)/g,function(dn,Kt){var gn=Qt[Kt],xn=gn.type,Sn=gn.expression;return Object(fe.renderToString)(Ve(Sn)||"",{displayMode:xn==="block",throwOnError:!1,output:"html"})}),ut=ut.replace(/▁/g,"\u2581\u2581\u2581"),y(),Q){var Rt=document.createElement("div");return Rt.innerHTML=ut,Rt.innerText}return setTimeout(function(){return $t()},500),ut},[dt]),ft=Object(w.useRef)();p.WebkitLineClamp=oe,oe&&(Ye=Object(S.a)(Object(S.a)({},Ye),p));function It(Bt){var pt=Bt.target;if(pt.tagName.toUpperCase()==="IMG"){if(De){var yt=pt.getAttribute("src");Lt(yt),Vt("image")}}else if(pt.tagName.toUpperCase()==="A"){var ut=pt.getAttribute("href");if(ut.indexOf("office")>-1)Bt.preventDefault(),Lt(ut),Vt("office");else if(ut.indexOf("application/pdf")>-1)Bt.preventDefault(),Lt(ut),Vt("pdf");else if(ut.indexOf("text/html")>-1)Bt.preventDefault(),Lt(ut),Vt("html");else if(ut.startsWith("#")){Bt.preventDefault();var Qt=document.getElementById(ut.replace("#",""));Qt&&Qt.scrollIntoView(!0)}}}var $t=function(){var pt,yt=(pt=ft.current)===null||pt===void 0?void 0:pt.querySelectorAll("video");yt==null||yt.forEach(function(ut){if(ut.oncontextmenu=function(){return!1},ut.src.indexOf(".m3u8")>-1&&!ut.canPlayType("application/vnd.apple.mpegurl")){if(z.a.isSupported()){var Qt=new z.a;Qt.loadSource(ut.src),Qt.attachMedia(ut)}}})};Object(w.useEffect)(function(){if(ft.current&&it&&(it.match(Be)&&window.PR.prettyPrint()),ft.current)return ft.current.addEventListener("click",It),function(){ft.current.removeEventListener("click",It),y(),v()}},[it,ft.current,It]);var ln=function(pt){if(!re)return;pt.target.nodeName==="IMG"?(at.current.style.zIndex=1,at.current.style.display="flex",at.current.style.width=pt.target.clientWidth+"px",at.current.style.height=pt.target.clientHeight+"px",at.current.style.top=pt.target.offsetTop+"px",at.current.style.left=pt.target.offsetLeft+"px",$e.current.src=pt.target.getAttribute("src")):at.current.style.display="none"};return g.a.createElement("div",{style:{position:"relative"}},g.a.createElement("div",{ref:ft,style:Object(S.a)({},Ye),className:"".concat(X||""," markdown-body ").concat(Ke.a.mdBody),onMouseOver:ln,dangerouslySetInnerHTML:{__html:it}}),g.a.createElement("div",{ref:at,className:Ke.a.button},g.a.createElement(W.a,null,g.a.createElement(N.a,{onClick:function(){return rn()}},"\u88C1\u526A"),g.a.createElement(N.a,{onClick:function(){return qe()}},"\u7F16\u8F91"))),g.a.createElement("img",{ref:$e,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),g.a.createElement(ee.a,{close:!0,data:Ut,type:Ut!=null&&Ut.length?Jt:"",style:Object(S.a)({},Ze),onClose:function(){return Lt("")}}))}},BU3w:function(Ge,be,U){"use strict";U.d(be,"a",function(){return O});var ue=U("MNnm"),W="rc-util-key";function R(F){if(F.attachTo)return F.attachTo;var j=document.querySelector("head");return j||document.body}function N(F){var j,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ue.a)())return null;var w=document.createElement("style");if((j=e.csp)===null||j===void 0?void 0:j.nonce){var g;w.nonce=(g=e.csp)===null||g===void 0?void 0:g.nonce}w.innerHTML=F;var c=R(e),u=c.firstChild;return e.prepend&&c.prepend?c.prepend(w):e.prepend&&u?c.insertBefore(w,u):c.appendChild(w),w}var S=new Map;function O(F,j){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=R(e);if(!S.has(w)){var g=N("",e),c=g.parentNode;S.set(w,c),c.removeChild(g)}var u=Array.from(S.get(w).children).find(function(r){return r.tagName==="STYLE"&&r[W]===j});if(u){var a,i;if(((a=e.csp)===null||a===void 0?void 0:a.nonce)&&u.nonce!==((i=e.csp)===null||i===void 0?void 0:i.nonce)){var d;u.nonce=(d=e.csp)===null||d===void 0?void 0:d.nonce}return u.innerHTML!==F&&(u.innerHTML=F),u}var s=N(F,e);return s[W]=j,s}},BdwD:function(Ge,be,U){"use strict";var ue=U("+L6B"),W=U("2/Rp"),R=U("0Owb"),N=U("k1fw"),S=U("q1tI"),O=U.n(S),F=U("FOrL"),j=U.n(F),e=function(g){var c=g.buttonProps,u=c===void 0?{}:c,a=g.styles,i=a===void 0?{}:a,d=g.imgStyles,s=d===void 0?{}:d,r=g.customText,n=g.ButtonText,t=g.ButtonClick,v=g.Buttonclass,p=g.ButtonTwo;return O.a.createElement("section",{className:"tc animated fadeIn",style:Object(N.a)(Object(N.a)({},{color:"#999",margin:"0 auto",padding:"100px 0"}),i)},O.a.createElement("img",{src:j.a,style:Object(N.a)(Object(N.a)({},{width:"200px",height:"150px"}),s)}),O.a.createElement("p",{className:"mt10 font14"},r||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),n&&O.a.createElement(W.a,Object(R.a)({className:v,onClick:t},u),n),p&&p)};be.a=e},"C/vA":function(Ge,be,U){"use strict";U.d(be,"a",function(){return ue});function ue(W){const R=this;let N=!1,S;return function(){return N||(N=!0,S=W.apply(R,arguments)),S}}},"Cg/j":function(Ge,be,U){"use strict";U.d(be,"b",function(){return ue}),U.d(be,"a",function(){return W}),U.d(be,"c",function(){return N}),U.d(be,"d",function(){return S});var ue;(function(O){O.serviceIds=new Map,O.DI_TARGET="$di$target",O.DI_DEPENDENCIES="$di$dependencies";function F(j){return j[O.DI_DEPENDENCIES]||[]}O.getServiceDependencies=F})(ue||(ue={}));const W=N("instantiationService");function R(O,F,j,e){F[ue.DI_TARGET]===F?F[ue.DI_DEPENDENCIES].push({id:O,index:j,optional:e}):(F[ue.DI_DEPENDENCIES]=[{id:O,index:j,optional:e}],F[ue.DI_TARGET]=F)}function N(O){if(ue.serviceIds.has(O))return ue.serviceIds.get(O);const F=function(j,e,w){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");R(F,j,w,!1)};return F.toString=()=>O,ue.serviceIds.set(O,F),F}function S(O){return function(F,j,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");R(O,F,e,!0)}}},DlQD:function(Ge,be,U){(function(ue,W){Ge.exports=W()})(this,function(){"use strict";function ue(G,Z){for(var re=0;reG.length)&&(Z=G.length);for(var re=0,X=new Array(Z);re=G.length?{done:!0}:{done:!1,value:G[X++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return re=G[Symbol.iterator](),re.next.bind(re)}function O(G,Z){return Z={exports:{}},G(Z,Z.exports),Z.exports}var F=O(function(G){function Z(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function re(X){G.exports.defaults=X}G.exports={defaults:Z(),getDefaults:Z,changeDefaults:re}}),j=F.defaults,e=F.getDefaults,w=F.changeDefaults,g=/[&<>"']/,c=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(Z){return i[Z]};function s(G,Z){if(Z){if(g.test(G))return G.replace(c,d)}else if(u.test(G))return G.replace(a,d);return G}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function n(G){return G.replace(r,function(Z,re){return re=re.toLowerCase(),re==="colon"?":":re.charAt(0)==="#"?re.charAt(1)==="x"?String.fromCharCode(parseInt(re.substring(2),16)):String.fromCharCode(+re.substring(1)):""})}var t=/(^|[^\[])\^/g;function v(G,Z){G=G.source||G,Z=Z||"";var re={replace:function(Q,oe){return oe=oe.source||oe,oe=oe.replace(t,"$1"),G=G.replace(Q,oe),re},getRegex:function(){return new RegExp(G,Z)}};return re}var p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(G,Z,re){if(G){var X;try{X=decodeURIComponent(n(re)).replace(p,"").toLowerCase()}catch(Q){return null}if(X.indexOf("javascript:")===0||X.indexOf("vbscript:")===0||X.indexOf("data:")===0)return null}Z&&!m.test(re)&&(re=h(Z,re));try{re=encodeURI(re).replace(/%25/g,"%")}catch(Q){return null}return re}var _={},o=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(G,Z){_[" "+G]||(o.test(G)?_[" "+G]=G+"/":_[" "+G]=L(G,"/",!0)),G=_[" "+G];var re=G.indexOf(":")===-1;return Z.substring(0,2)==="//"?re?Z:G.replace(f,"$1")+Z:Z.charAt(0)==="/"?re?Z:G.replace(l,"$1")+Z:G+Z}var E={exec:function(){}};function y(G){for(var Z=1,re,X;Z=0&&De[Ue]==="\\";)Ie=!Ie;return Ie?"|":" |"}),X=re.split(/ \|/),Q=0;if(X.length>Z)X.splice(Z);else for(;X.length=X.length?Q.slice(X.length):Q}).join(`
`)}var pe=function(){function G(re){this.options=re||H}var Z=G.prototype;return Z.space=function(X){var Q=this.rules.block.newline.exec(X);if(Q)return Q[0].length>1?{type:"space",raw:Q[0]}:{raw:`
`}},Z.code=function(X,Q){var oe=this.rules.block.code.exec(X);if(oe){var he=Q[Q.length-1];if(he&&he.type==="paragraph")return{raw:oe[0],text:oe[0].trimRight()};var De=oe[0].replace(/^ {4}/gm,"");return{type:"code",raw:oe[0],codeBlockStyle:"indented",text:this.options.pedantic?De:I(De,`
`)}}},Z.fences=function(X){var Q=this.rules.block.fences.exec(X);if(Q){var oe=Q[0],he=ye(oe,Q[3]||"");return{type:"code",raw:oe,lang:Q[2]?Q[2].trim():Q[2],text:he}}},Z.heading=function(X){var Q=this.rules.block.heading.exec(X);if(Q)return{type:"heading",raw:Q[0],depth:Q[1].length,text:Q[2]}},Z.nptable=function(X){var Q=this.rules.block.nptable.exec(X);if(Q){var oe={type:"table",header:z(Q[1].replace(/^ *| *\| *$/g,"")),align:Q[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Q[3]?Q[3].replace(/\n$/,"").split(`
`):[],raw:Q[0]};if(oe.header.length===oe.align.length){var he=oe.align.length,De;for(De=0;De ?/gm,"");return{type:"blockquote",raw:Q[0],text:oe}}},Z.list=function(X){var Q=this.rules.block.list.exec(X);if(Q){for(var oe=Q[0],he=Q[2],De=he.length>1,Ie=he[he.length-1]===")",Ue={type:"list",raw:oe,ordered:De,start:De?+he.slice(0,-1):"",loose:!1,items:[]},Ye=Q[0].match(this.rules.block.item),Je=!1,Ze,dt,at,$e,Nt,bt,Ut,Lt=Ye.length,ot=0;ot1||this.options.smartLists&&at!==he)&&($e=Ye.slice(ot+1).join(`
`),Ue.raw=Ue.raw.substring(0,Ue.raw.length-$e.length),ot=Lt-1)),Nt=Je||/\n\n(?!\s*$)/.test(Ze),ot!==Lt-1&&(Je=Ze.charAt(Ze.length-1)===`
`,Nt||(Nt=Je)),Nt&&(Ue.loose=!0),bt=/^\[[ xX]\] /.test(Ze),Ut=void 0,bt&&(Ut=Ze[1]!==" ",Ze=Ze.replace(/^\[[ xX]\] +/,"")),Ue.items.push({type:"list_item",raw:oe,task:bt,checked:Ut,loose:Nt,text:Ze});return Ue}},Z.html=function(X){var Q=this.rules.block.html.exec(X);if(Q)return{type:this.options.sanitize?"paragraph":"html",raw:Q[0],pre:!this.options.sanitizer&&(Q[1]==="pre"||Q[1]==="script"||Q[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Q[0]):$(Q[0]):Q[0]}},Z.def=function(X){var Q=this.rules.block.def.exec(X);if(Q){Q[3]&&(Q[3]=Q[3].substring(1,Q[3].length-1));var oe=Q[1].toLowerCase().replace(/\s+/g," ");return{tag:oe,raw:Q[0],href:Q[2],title:Q[3]}}},Z.table=function(X){var Q=this.rules.block.table.exec(X);if(Q){var oe={type:"table",header:z(Q[1].replace(/^ *| *\| *$/g,"")),align:Q[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Q[3]?Q[3].replace(/\n$/,"").split(`
`):[]};if(oe.header.length===oe.align.length){oe.raw=Q[0];var he=oe.align.length,De;for(De=0;De/i.test(he[0])&&(Q=!1),!oe&&/^<(pre|code|kbd|script)(\s|>)/i.test(he[0])?oe=!0:oe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(he[0])&&(oe=!1),{type:this.options.sanitize?"text":"html",raw:he[0],inLink:Q,inRawBlock:oe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(he[0]):$(he[0]):he[0]}},Z.link=function(X){var Q=this.rules.inline.link.exec(X);if(Q){var oe=fe(Q[2],"()");if(oe>-1){var he=Q[0].indexOf("!")===0?5:4,De=he+Q[1].length+oe;Q[2]=Q[2].substring(0,oe),Q[0]=Q[0].substring(0,De).trim(),Q[3]=""}var Ie=Q[2],Ue="";if(this.options.pedantic){var Ye=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ie);Ye?(Ie=Ye[1],Ue=Ye[3]):Ue=""}else Ue=Q[3]?Q[3].slice(1,-1):"";Ie=Ie.trim().replace(/^<([\s\S]*)>$/,"$1");var Je=ee(Q,{href:Ie&&Ie.replace(this.rules.inline._escapes,"$1"),title:Ue&&Ue.replace(this.rules.inline._escapes,"$1")},Q[0]);return Je}},Z.reflink=function(X,Q){var oe;if((oe=this.rules.inline.reflink.exec(X))||(oe=this.rules.inline.nolink.exec(X))){var he=(oe[2]||oe[1]).replace(/\s+/g," ");if(he=Q[he.toLowerCase()],!he||!he.href){var De=oe[0].charAt(0);return{type:"text",raw:De,text:De}}var Ie=ee(oe,he,oe[0]);return Ie}},Z.strong=function(X,Q,oe){oe===void 0&&(oe="");var he=this.rules.inline.strong.start.exec(X);if(he&&(!he[1]||he[1]&&(oe===""||this.rules.inline.punctuation.exec(oe)))){Q=Q.slice(-1*X.length);var De=he[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;De.lastIndex=0;for(var Ie;(he=De.exec(Q))!=null;)if(Ie=this.rules.inline.strong.middle.exec(Q.slice(0,he.index+3)),Ie)return{type:"strong",raw:X.slice(0,Ie[0].length),text:X.slice(2,Ie[0].length-2)}}},Z.em=function(X,Q,oe){oe===void 0&&(oe="");var he=this.rules.inline.em.start.exec(X);if(he&&(!he[1]||he[1]&&(oe===""||this.rules.inline.punctuation.exec(oe)))){Q=Q.slice(-1*X.length);var De=he[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;De.lastIndex=0;for(var Ie;(he=De.exec(Q))!=null;)if(Ie=this.rules.inline.em.middle.exec(Q.slice(0,he.index+2)),Ie)return{type:"em",raw:X.slice(0,Ie[0].length),text:X.slice(1,Ie[0].length-1)}}},Z.codespan=function(X){var Q=this.rules.inline.code.exec(X);if(Q){var oe=Q[2].replace(/\n/g," "),he=/[^ ]/.test(oe),De=oe.startsWith(" ")&&oe.endsWith(" ");return he&&De&&(oe=oe.substring(1,oe.length-1)),oe=$(oe,!0),{type:"codespan",raw:Q[0],text:oe}}},Z.br=function(X){var Q=this.rules.inline.br.exec(X);if(Q)return{type:"br",raw:Q[0]}},Z.del=function(X){var Q=this.rules.inline.del.exec(X);if(Q)return{type:"del",raw:Q[0],text:Q[1]}},Z.autolink=function(X,Q){var oe=this.rules.inline.autolink.exec(X);if(oe){var he,De;return oe[2]==="@"?(he=$(this.options.mangle?Q(oe[1]):oe[1]),De="mailto:"+he):(he=$(oe[1]),De=he),{type:"link",raw:oe[0],text:he,href:De,tokens:[{type:"text",raw:he,text:he}]}}},Z.url=function(X,Q){var oe;if(oe=this.rules.inline.url.exec(X)){var he,De;if(oe[2]==="@")he=$(this.options.mangle?Q(oe[0]):oe[0]),De="mailto:"+he;else{var Ie;do Ie=oe[0],oe[0]=this.rules.inline._backpedal.exec(oe[0])[0];while(Ie!==oe[0]);he=$(oe[0]),oe[1]==="www."?De="http://"+he:De=he}return{type:"link",raw:oe[0],text:he,href:De,tokens:[{type:"text",raw:he,text:he}]}}},Z.inlineText=function(X,Q,oe){var he=this.rules.inline.text.exec(X);if(he){var De;return Q?De=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(he[0]):$(he[0]):he[0]:De=$(this.options.smartypants?oe(he[0]):he[0]),{type:"text",raw:he[0],text:De}}},G}(),ae=P.noopTest,se=P.edit,_e=P.merge,te={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ae,table:ae,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};te._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,te._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,te.def=se(te.def).replace("label",te._label).replace("title",te._title).getRegex(),te.bullet=/(?:[*+-]|\d{1,9}[.)])/,te.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,te.item=se(te.item,"gm").replace(/bull/g,te.bullet).getRegex(),te.list=se(te.list).replace(/bull/g,te.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+te.def.source+")").getRegex(),te._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",te._comment=//,te.html=se(te.html,"i").replace("comment",te._comment).replace("tag",te._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),te.paragraph=se(te._paragraph).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",te._tag).getRegex(),te.blockquote=se(te.blockquote).replace("paragraph",te.paragraph).getRegex(),te.normal=_e({},te),te.gfm=_e({},te.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),te.gfm.nptable=se(te.gfm.nptable).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",te._tag).getRegex(),te.gfm.table=se(te.gfm.table).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",te._tag).getRegex(),te.pedantic=_e({},te.normal,{html:se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",te._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ae,paragraph:se(te.normal._paragraph).replace("hr",te.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",te.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var k={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ae,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ae,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",k.punctuation=se(k.punctuation).replace(/punctuation/g,k._punctuation).getRegex(),k._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",k._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",k.em.start=se(k.em.start).replace(/punctuation/g,k._punctuation).getRegex(),k.em.middle=se(k.em.middle).replace(/punctuation/g,k._punctuation).replace(/overlapSkip/g,k._overlapSkip).getRegex(),k.em.endAst=se(k.em.endAst,"g").replace(/punctuation/g,k._punctuation).getRegex(),k.em.endUnd=se(k.em.endUnd,"g").replace(/punctuation/g,k._punctuation).getRegex(),k.strong.start=se(k.strong.start).replace(/punctuation/g,k._punctuation).getRegex(),k.strong.middle=se(k.strong.middle).replace(/punctuation/g,k._punctuation).replace(/blockSkip/g,k._blockSkip).getRegex(),k.strong.endAst=se(k.strong.endAst,"g").replace(/punctuation/g,k._punctuation).getRegex(),k.strong.endUnd=se(k.strong.endUnd,"g").replace(/punctuation/g,k._punctuation).getRegex(),k.blockSkip=se(k._blockSkip,"g").getRegex(),k.overlapSkip=se(k._overlapSkip,"g").getRegex(),k._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,k._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,k._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,k.autolink=se(k.autolink).replace("scheme",k._scheme).replace("email",k._email).getRegex(),k._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,k.tag=se(k.tag).replace("comment",te._comment).replace("attribute",k._attribute).getRegex(),k._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,k._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,k._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,k.link=se(k.link).replace("label",k._label).replace("href",k._href).replace("title",k._title).getRegex(),k.reflink=se(k.reflink).replace("label",k._label).getRegex(),k.reflinkSearch=se(k.reflinkSearch,"g").replace("reflink",k.reflink).replace("nolink",k.nolink).getRegex(),k.normal=_e({},k),k.pedantic=_e({},k.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:se(/^!?\[(label)\]\((.*?)\)/).replace("label",k._label).getRegex(),reflink:se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",k._label).getRegex()}),k.gfm=_e({},k.normal,{escape:se(k.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(X="x"+X.toString(16)),Z+=""+X+";";return Z}var Ee=function(){function G(re){this.tokens=[],this.tokens.links=Object.create(null),this.options=re||C,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var X={block:B.normal,inline:K.normal};this.options.pedantic?(X.block=B.pedantic,X.inline=K.pedantic):this.options.gfm&&(X.block=B.gfm,this.options.breaks?X.inline=K.breaks:X.inline=K.gfm),this.tokenizer.rules=X}G.lex=function(X,Q){var oe=new G(Q);return oe.lex(X)};var Z=G.prototype;return Z.lex=function(X){return X=X.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(X,this.tokens,!0),this.inline(this.tokens),this.tokens},Z.blockTokens=function(X,Q,oe){Q===void 0&&(Q=[]),oe===void 0&&(oe=!0),X=X.replace(/^ +$/gm,"");for(var he,De,Ie,Ue;X;){if(he=this.tokenizer.space(X)){X=X.substring(he.raw.length),he.type&&Q.push(he);continue}if(he=this.tokenizer.code(X,Q)){X=X.substring(he.raw.length),he.type?Q.push(he):(Ue=Q[Q.length-1],Ue.raw+=`
`+he.raw,Ue.text+=`
`+he.text);continue}if(he=this.tokenizer.fences(X)){X=X.substring(he.raw.length),Q.push(he);continue}if(he=this.tokenizer.heading(X)){X=X.substring(he.raw.length),Q.push(he);continue}if(he=this.tokenizer.nptable(X)){X=X.substring(he.raw.length),Q.push(he);continue}if(he=this.tokenizer.hr(X)){X=X.substring(he.raw.length),Q.push(he);continue}if(he=this.tokenizer.blockquote(X)){X=X.substring(he.raw.length),he.tokens=this.blockTokens(he.text,[],oe),Q.push(he);continue}if(he=this.tokenizer.list(X)){for(X=X.substring(he.raw.length),Ie=he.items.length,De=0;De0)for(;(Ye=this.tokenizer.rules.inline.reflinkSearch.exec(Ue))!=null;)Je.includes(Ye[0].slice(Ye[0].lastIndexOf("[")+1,-1))&&(Ue=Ue.slice(0,Ye.index)+"["+"a".repeat(Ye[0].length-2)+"]"+Ue.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ye=this.tokenizer.rules.inline.blockSkip.exec(Ue))!=null;)Ue=Ue.slice(0,Ye.index)+"["+"a".repeat(Ye[0].length-2)+"]"+Ue.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;X;){if(Ie=this.tokenizer.escape(X)){X=X.substring(Ie.raw.length),Q.push(Ie);continue}if(Ie=this.tokenizer.tag(X,oe,he)){X=X.substring(Ie.raw.length),oe=Ie.inLink,he=Ie.inRawBlock,Q.push(Ie);continue}if(Ie=this.tokenizer.link(X)){X=X.substring(Ie.raw.length),Ie.type==="link"&&(Ie.tokens=this.inlineTokens(Ie.text,[],!0,he)),Q.push(Ie);continue}if(Ie=this.tokenizer.reflink(X,this.tokens.links)){X=X.substring(Ie.raw.length),Ie.type==="link"&&(Ie.tokens=this.inlineTokens(Ie.text,[],!0,he)),Q.push(Ie);continue}if(Ie=this.tokenizer.strong(X,Ue,De)){X=X.substring(Ie.raw.length),Ie.tokens=this.inlineTokens(Ie.text,[],oe,he),Q.push(Ie);continue}if(Ie=this.tokenizer.em(X,Ue,De)){X=X.substring(Ie.raw.length),Ie.tokens=this.inlineTokens(Ie.text,[],oe,he),Q.push(Ie);continue}if(Ie=this.tokenizer.codespan(X)){X=X.substring(Ie.raw.length),Q.push(Ie);continue}if(Ie=this.tokenizer.br(X)){X=X.substring(Ie.raw.length),Q.push(Ie);continue}if(Ie=this.tokenizer.del(X)){X=X.substring(Ie.raw.length),Ie.tokens=this.inlineTokens(Ie.text,[],oe,he),Q.push(Ie);continue}if(Ie=this.tokenizer.autolink(X,ie)){X=X.substring(Ie.raw.length),Q.push(Ie);continue}if(!oe&&(Ie=this.tokenizer.url(X,ie))){X=X.substring(Ie.raw.length),Q.push(Ie);continue}if(Ie=this.tokenizer.inlineText(X,he,M)){X=X.substring(Ie.raw.length),De=Ie.raw.slice(-1),Q.push(Ie);continue}if(X){var Ze="Infinite loop on byte: "+X.charCodeAt(0);if(this.options.silent){console.error(Ze);break}else throw new Error(Ze)}}return Q},W(G,null,[{key:"rules",get:function(){return{block:B,inline:K}}}]),G}(),Oe=F.defaults,q=P.cleanUrl,de=P.escape,Te=function(){function G(re){this.options=re||Oe}var Z=G.prototype;return Z.code=function(X,Q,oe){var he=(Q||"").match(/\S*/)[0];if(this.options.highlight){var De=this.options.highlight(X,he);De!=null&&De!==X&&(oe=!0,X=De)}return he?''+(oe?X:de(X,!0))+`
`:""+(oe?X:de(X,!0))+`
`},Z.blockquote=function(X){return`
`+X+`
`},Z.html=function(X){return X},Z.heading=function(X,Q,oe,he){return this.options.headerIds?"
`:""+X+"
`},Z.hr=function(){return this.options.xhtml?`
`:`
`},Z.list=function(X,Q,oe){var he=Q?"ol":"ul",De=Q&&oe!==1?' start="'+oe+'"':"";return"<"+he+De+`>
`+X+""+he+`>
`},Z.listitem=function(X){return""+X+`
`},Z.checkbox=function(X){return" "},Z.paragraph=function(X){return""+X+`
`},Z.table=function(X,Q){return Q&&(Q=""+Q+""),`
`},Z.tablerow=function(X){return`
`+X+`
`},Z.tablecell=function(X,Q){var oe=Q.header?"th":"td",he=Q.align?"<"+oe+' align="'+Q.align+'">':"<"+oe+">";return he+X+""+oe+`>
`},Z.strong=function(X){return""+X+""},Z.em=function(X){return""+X+""},Z.codespan=function(X){return""+X+""},Z.br=function(){return this.options.xhtml?"
":"
"},Z.del=function(X){return""+X+""},Z.link=function(X,Q,oe){if(X=q(this.options.sanitize,this.options.baseUrl,X),X===null)return oe;var he='"+oe+"",he},Z.image=function(X,Q,oe){if(X=q(this.options.sanitize,this.options.baseUrl,X),X===null)return oe;var he='
":">",he},Z.text=function(X){return X},G}(),xe=function(){function G(){}var Z=G.prototype;return Z.strong=function(X){return X},Z.em=function(X){return X},Z.codespan=function(X){return X},Z.del=function(X){return X},Z.html=function(X){return X},Z.text=function(X){return X},Z.link=function(X,Q,oe){return""+oe},Z.image=function(X,Q,oe){return""+oe},Z.br=function(){return""},G}(),Pe=function(){function G(){this.seen={}}var Z=G.prototype;return Z.slug=function(X){var Q=X.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Q)){var oe=Q;do this.seen[oe]++,Q=oe+"-"+this.seen[oe];while(this.seen.hasOwnProperty(Q))}return this.seen[Q]=0,Q},G}(),Ne=F.defaults,Re=P.unescape,Me=function(){function G(re){this.options=re||Ne,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new xe,this.slugger=new Pe}G.parse=function(X,Q){var oe=new G(Q);return oe.parse(X)};var Z=G.prototype;return Z.parse=function(X,Q){Q===void 0&&(Q=!0);var oe="",he,De,Ie,Ue,Ye,Je,Ze,dt,at,$e,Nt,bt,Ut,Lt,ot,Ft,Jt,Vt,rn=X.length;for(he=0;he0&&ot.tokens[0].type==="text"?(ot.tokens[0].text=Vt+" "+ot.tokens[0].text,ot.tokens[0].tokens&&ot.tokens[0].tokens.length>0&&ot.tokens[0].tokens[0].type==="text"&&(ot.tokens[0].tokens[0].text=Vt+" "+ot.tokens[0].tokens[0].text)):ot.tokens.unshift({type:"text",text:Vt}):Lt+=Vt),Lt+=this.parse(ot.tokens,Ut),at+=this.renderer.listitem(Lt,Jt,Ft);oe+=this.renderer.list(at,Nt,bt);continue}case"html":{oe+=this.renderer.html($e.text);continue}case"paragraph":{oe+=this.renderer.paragraph(this.parseInline($e.tokens));continue}case"text":{for(at=$e.tokens?this.parseInline($e.tokens):$e.text;he+1An error occurred:
"+Ke(Ie.message+"",!0)+"
";throw Ie}}ne.options=ne.setOptions=function(G){return He(ne.defaults,G),Ve(ne.defaults),ne},ne.getDefaults=Be,ne.defaults=Xe,ne.use=function(G){var Z=He({},G);if(G.renderer&&function(){var X=ne.defaults.renderer||new Te,Q=function(De){var Ie=X[De];X[De]=function(){for(var Ue=arguments.length,Ye=new Array(Ue),Je=0;Je-1?t[ae]:"",_e="";o.choices.map(function(C,B){C.is_answer&&(_e+=t[B])});var te=pe[o.item_type],k={SINGLE:c.a.createElement(u.a,{className:i.a.answerHtml,value:"\u7B54\u6848\uFF1A".concat(se||"\u65E0")}),MULTIPLE:c.a.createElement(u.a,{className:i.a.answerHtml,value:"\u7B54\u6848\uFF1A".concat(_e||"\u65E0")}),COMPLETION:H()},A=c.a.createElement(u.a,{className:i.a.answerHtml,value:"\u7B54\u6848\uFF1A".concat(te||"\u65E0")});return k[o.item_type]||A},z=function(fe){var ee=Object(F.a)(f);fe.target.checked?ee.push(o.id):ee=ee.filter(function(ye){return ye!==o.id}),h(ee)};return c.a.createElement("div",{className:i.a.itemWrap},c.a.createElement("div",{className:i.a.list},y&&c.a.createElement(O.a,{className:"mr10",onChange:z,checked:f.includes(o.id)}),c.a.createElement("div",{className:i.a.title},c.a.createElement(u.a,{key:1,showLines:1,showTextOnly:!0,className:i.a.topicTitleContent,value:o.name})),c.a.createElement("div",{className:i.a.line},c.a.createElement("b",{className:i.a.b1}),c.a.createElement("b",{className:i.a.b2})),c.a.createElement("div",{onClick:function(){return x(!D)},className:i.a.tr},D?"\u6536\u8D77":"\u5C55\u5F00",c.a.createElement("i",{style:{transform:D?"scale(0.5) rotate(-180deg)":"scale(0.5) rotate(0deg)"},className:"iconfont icon-zhankai4"}))),c.a.createElement("aside",{style:D?{display:"block"}:{display:"none"},className:i.a.itemDetail},c.a.createElement("div",{style:{marginBottom:44}},c.a.createElement(u.a,{key:2,className:i.a.topicTitleContent,value:o.name}),c.a.createElement("div",{className:"".concat(i.a.row," mt15")},P()),c.a.createElement("div",{className:i.a.row},c.a.createElement("div",{className:i.a.updateTimeRow},c.a.createElement("div",{className:i.a.updateTimeWrap},o.item_type==="PROGRAM"&&c.a.createElement("p",{className:i.a.programLanguage},"\u7F16\u7A0B\u8BED\u8A00\uFF1A",(_=o.program_attr)===null||_===void 0?void 0:_.language))))),o.item_type!=="PROGRAM"&&o.item_type!=="COMBINATION"&&c.a.createElement("div",{className:i.a.answerWrapper},c.a.createElement("img",{src:r.a,alt:"",className:i.a.decoration}),c.a.createElement("div",{className:i.a.answer},I()),c.a.createElement("div",{className:i.a.parse},c.a.createElement("div",{className:i.a.parseText},"\u89E3\u6790\uFF1A"),c.a.createElement("div",{className:i.a.parseAnswer},o.analysis?c.a.createElement(u.a,{className:i.a.parseAnswerHtml,value:o.analysis}):"\u6682\u65E0\u89E3\u6790")))))},p=function(b){var _,o,f,l,h,E,y,T,L,D,x,P,H,I,z,$,fe=b.isProblemset,ee=b.data,ye=b.user,pe=b.activeTabsKey,ae=b.onPublicReview,se=ae===void 0?function(){}:ae,_e=b.onStartExperience,te=_e===void 0?function(){}:_e,k=b.onSetPrivate,A=k===void 0?function(){}:k,C=b.onCorrection,B=C===void 0?function(){}:C,K=b.onCollect,M=K===void 0?function(){}:K,ie=b.onSetPublic,Ee=ie===void 0?function(){}:ie,Oe=b.onDelete,q=Oe===void 0?function(){}:Oe,de=b.onCancel,Te=de===void 0?function(){}:de,xe=b.onSelect,Pe=xe===void 0?function(){}:xe,Ne=b.onMoveTo,Re=Ne===void 0?function(){}:Ne,Me=b.onSetShare,He=Me===void 0?function(){}:Me,We=b.onCancelShare,Ke=We===void 0?function(){}:We,Be=b.onPublish,Ve=Be===void 0?function(){}:Be,Xe=b.onCancelPublish,ne=Xe===void 0?function(){}:Xe,V=ee.item_type==="PROGRAM"?"/problems/".concat((_=ee.program_attr)===null||_===void 0?void 0:_.identifier,"/edit"):"/problemset/edit/".concat(ee.id),G=pe==="0"&&!ee.public&&!ee.apply&&(ee.item_type==="PROGRAM"&&((o=ee.program_attr)===null||o===void 0?void 0:o.status)!==0||ee.item_type!=="PROGRAM"),Z=c.a.createElement(N.a,{forceSubMenuRender:!0,className:i.a.menu},pe==="0"&&!ee.public&&c.a.createElement(N.a.Item,{key:"-1"},c.a.createElement("a",{className:i.a.actionLink,target:"_blank",href:V},"\u7F16\u8F91")),(pe==="0"||pe==="3")&&ee.item_type==="PROGRAM"&&((f=ee.program_attr)===null||f===void 0?void 0:f.status)!==0&&!ee.public&&((l=ee.author)===null||l===void 0?void 0:l.login)===((h=ye.userInfo)===null||h===void 0?void 0:h.login)&&c.a.createElement(N.a.Item,{key:"0"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){var oe;return ne(ee==null||((oe=ee.program_attr)===null||oe===void 0)?void 0:oe.identifier)}},"\u64A4\u9500\u53D1\u5E03")),pe==="0"&&c.a.createElement(N.a.Item,{key:"1"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return Re(ee.id)}},"\u79FB\u52A8\u5230")),pe==="0"&&!(ee!=null&&ee.is_share)&&c.a.createElement(N.a.Item,{key:"3"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return He(ee.id)}},"\u5171\u4EAB")),(pe==="0"&&(ee==null?void 0:ee.is_share)||pe==="3"&&((E=ee.author)===null||E===void 0?void 0:E.login)===((y=ye.userInfo)===null||y===void 0?void 0:y.login))&&c.a.createElement(N.a.Item,{key:"3"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return Ke(ee.id)}},"\u64A4\u9500\u5171\u4EAB")),G&&c.a.createElement(N.a.Item,{key:"4"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return Ee(ee.id)}},"\u516C\u5F00")),pe==="0"&&!ee.public&&ee.apply&&(ee.item_type==="PROGRAM"&&ee.program_attr.status!==0||ee.item_type!=="PROGRAM")&&c.a.createElement(N.a.Item,{key:"5"},c.a.createElement("a",{className:i.a.reviewFlag,onClick:se},"\u5BA1\u6838\u4E2D")),(pe==="0"||pe==="1")&&ee.public&&((T=ee.author)===null||T===void 0?void 0:T.login)===((L=ye.userInfo)===null||L===void 0?void 0:L.login)&&c.a.createElement(N.a.Item,{key:"6"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return A(ee.id)}},"\u64A4\u9500\u516C\u5F00")),pe==="2"&&c.a.createElement(N.a.Item,{key:"7"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return M(ee.id,ee.is_collected)}},"\u53D6\u6D88\u6536\u85CF")),(pe==="0"||pe==="3")&&ee.item_type==="PROGRAM"&&((D=ee.program_attr)===null||D===void 0?void 0:D.status)===0&&!ee.public&&((x=ee.author)===null||x===void 0?void 0:x.login)===((P=ye.userInfo)===null||P===void 0?void 0:P.login)&&c.a.createElement(N.a.Item,{key:"8"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){var oe;return Ve(ee==null||((oe=ee.program_attr)===null||oe===void 0)?void 0:oe.identifier)}},"\u53D1\u5E03")),(pe==="1"||pe==="3")&&!Object(d.o)()&&!Object(d.m)()&&((H=ee.author)===null||H===void 0?void 0:H.login)!==((I=ye.userInfo)===null||I===void 0?void 0:I.login)&&c.a.createElement(N.a.Item,{key:"9"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return M(ee.id,ee.is_collected)}},ee.is_collected?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF")),pe!=="0"&&!Object(d.o)()&&!Object(d.m)()&&c.a.createElement(N.a.Item,{key:"10"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return B(ee.id)}},"\u7EA0\u9519")),(pe==="0"&&!ee.public||pe==="1"&&Object(d.o)()&&((z=ee.author)===null||z===void 0?void 0:z.login)!==(($=ye.userInfo)===null||$===void 0?void 0:$.login))&&c.a.createElement(N.a.Item,{key:"11"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return q(ee.id)}},"\u5220\u9664"))),re=c.a.createElement(N.a,{forceSubMenuRender:!0,className:i.a.menu},c.a.createElement(N.a.Item,{key:"10"},c.a.createElement("a",{className:i.a.actionLink,onClick:function(){return B(ee.id)}},"\u7EA0\u9519"))),X=pe!=="0"&&!Object(d.o)()&&!Object(d.m)();return c.a.createElement(c.a.Fragment,null,fe?c.a.createElement(c.a.Fragment,null,ee.item_type!=="SUBJECTIVE"&&ee.item_type!=="COMBINATION"&&c.a.createElement("span",{className:i.a.textBtn,style:{cursor:"pointer"},onClick:function(){return te(ee)}},"\u4F53\u9A8C"),c.a.createElement(W.a,{overlay:Z},c.a.createElement("span",{style:{cursor:"default"},onClick:function(oe){return oe.preventDefault()}},c.a.createElement("span",{className:i.a.textBtn},"\u66F4\u591A")))):X?c.a.createElement(W.a,{className:"ml40",overlay:re},c.a.createElement("span",{style:{cursor:"default"},onClick:function(oe){return oe.preventDefault()}},c.a.createElement("span",null,"\u66F4\u591A"))):c.a.createElement("span",null))};be.b=v},FKdj:function(Ge,be,U){Ge.exports={flex_box_center:"flex_box_center___3uXpC",flex_space_between:"flex_space_between___1R5l3",flex_box_vertical_center:"flex_box_vertical_center___2whw-",flex_box_center_end:"flex_box_center_end___Jni7d",flex_box_column:"flex_box_column___bQWh0",page:"page___2wqIC",wrap:"wrap___3ThhU",title:"title___3BwkD",select:"select___2Ozsr",contentWrap:"contentWrap___3srp0",pngIcon:"pngIcon___2ckkq",tabsWrap:"tabsWrap___2Y959",searchWrap:"searchWrap___H9GsL",addQuestionBtn:"addQuestionBtn___1b8s_",search:"search___3d1EJ",searchIcon:"searchIcon___1mrzV",batchWrap:"batchWrap___j1Er3",contentListWrap:"contentListWrap___3pty2",li:"li___2UOPB",bottom:"bottom___I7MVG",actionLeftItem:"actionLeftItem___3bGeH",questionTypeName:"questionTypeName___Aiyux",more:"more___YExtS",btnAdd:"btnAdd___2RrWf",treeWrapper:"treeWrapper___U0OPC",treeHeader:"treeHeader___1LB2p",treeContent:"treeContent___Ckfqx",action:"action___Xn5RP",headerWrapper:"headerWrapper___3ECJD",exportBtn:"exportBtn___35cZE"}},FOrL:function(Ge,be,U){Ge.exports=U.p+"static/nodata.a6b3f948.png"},FWmy:function(Ge,be,U){"use strict";U.d(be,"a",function(){return ue});function ue(W,R){if(!W)throw new Error(R?`Assertion failed (${R})`:"Assertion Failed")}},Is5a:function(Ge,be){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACMgAAAA6CAYAAABPwffJAAAAAXNSR0IArs4c6QAAH35JREFUeF7t3Q2MZWV9x/H/c849d17uzL6y7K4M76xLNIAKoiBQak0oRgsiYKyxUEq0LwZLYmqa0hqtpi8xodam1daKRFtbRITYBmlspRBBAXmRaHddsCyO7Bsssztzd2buveec5jl37jC7bN155l7OL7P3ewmZfTnn+Z37+f9nsjn3n+c4W8JrfHx8bGam9ZfNZutif3q1Wrl3YKDyB2NjY+NLWC74FHV+8AVzQlcC6nqr87vC4+RgAXW91fnBYJyAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACpr6/r86nBcoVUNdbnV+uNmnqevcy34WW84knto0513giz22NWef03P9qb27Vs846a9MrOiSjzg/14vjuBNT1Vud3p8fZoQLqeqvzQ704HgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBMzU9/fV+fRAuQLqeqvzy9UmTV3vXucHD8g88shj/2zm3ttoNOa7wZmzJEnMnPvqOeec9euvZJuo81/J98baLxdQ11udT0+UK6Cutzq/XG3SEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBA4OgTU9/fV+UdHFZfPu1DXW52/fCp1dFyput69zg8ekLnvvu8+l+e28XDldM52XHTRW171SpZanf9KvjfWfrmAut7qfHqiXAF1vdX55WqThgACCCCAAAIIIIAAAggggAACCCCAAAIIIIDA0SGgvr+vzj86qrh83oW63ur85VOpo+NK1fXudX7wgMy3v31vnue5NZtNc84sz9sPWkqq1aLCb3vbxcFrhrSGOj/kWjm2ewF1vdX53QuyQoiAut7q/BArjkUAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIG2gPr+vjqfPihXQF1vdX652qSp693r/OBhlrvu+ve8PRiTmx+N6QzJtFsjt8sue0fwmiFtpc4PuVaO7V5AXW91fveCrBAioK63Oj/EimMRQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgLaC+v6/Opw/KFVDXW51frjZp6nr3Oj94mOX22+/0kzHWbDaK3WP8yw/JJElSDMxceeXlwWuGtJU6P+RaObZ7AXW91fndC7JCiIC63ur8ECuORQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgbaA+v6+Op8+KFdAXW91frnapKnr3ev84GGWW2/9Smcsptgx5qVdZNq/vuaa9wWvGdJW6vyQa+XY7gXU9Vbndy/ICiEC6nqr80OsOBYBBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQTaAur7++p8+qBcAXW91fnlapOmrnev84OHWb7whVvyZrN5UCf4xy055yxJqnb99dcGrxnSVur8kGvl2O4F1PVW53cvyAohAup6q/NDrDgWAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEE2gLq+/vqfPqgXAF1vdX55WqTpq53r/ODh1k+85m/yZ05y4vdY/zjldpLFEMy5uyGD/9e8JohbaXOD7lWju1eQF1vdX73gqwQIqCutzo/xIpjEUAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAoC2gvr+vzqcPyhVQ11udX642aep69zo/eJjl05+++ZAdZNqPVvKvJEnsIx+5MXjNkLZS54dcK8d2L6Cutzq/e0FWCBFQ11udH2LFsQgggAACCCCAAAIIIIAAAggggAACCCCAAAIIINAWUN/fV+fTB+UKqOutzi9XmzR1vXudHzzM8olPfCrvPFKp/dXvHtNuDL/Yn3zspuA1Q9pKnR9yrRzbvYC63ur87gVZIURAXW91fogVxyKAAAIIIIAAAggggAACCCCAAAIIIIAAAggggEBbQH1/X51PH5QroK63Or9cbdLU9e51fvAwy003fSxvNhsLOuGlJfwOMp/85MeD1wxpK3V+yLVybPcC6nqr87sXZIUQAXW91fkhVhyLAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACbQH1/X11Pn1QroC63ur8crVJU9e71/nBwyw33viR3O8a03nN7x4zt5PMzTd/OnjNkLZS54dcK8d2L6Cutzq/e0FWCBFQ11udH2LFsQgggAACCCCAAAIIIIAAAggggAACCCCAAAIIINAWUN/fV+fTB+UKqOutzi9XmzR1vXudHzzM8qEP3ZC3mi3Lbe65SvM94axaTeyzn/1M8JohbaXOD7lWju1eQF1vdX73gqwQIqCutzo/xIpjEUAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAoC2gvr+vzqcPyhVQ11udX642aep69zo/eJjluuuuf2kyxv/KrzD3Nc9zu+WWfwxeM6St1Pkh18qx3Quo663O716QFUIE1PVW54dYcSwCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAgi0BdT399X59EG5Aup6q/PL1SZNXe9e5wcPs7z//dfkzUbjoP1j/COX/KOWqtWqffnLtwavGdJW6vyQa+XY7gXU9Vbndy/ICiEC6nqr80OsOBYBBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQTaAur7++p8+qBcAXW91fnlapOmrnev84OHWa644sp8fsuY+X7obCrj7I47bg9eM6St1Pkh18qx3Quo663O716QFUIE1PVW54dYcSwCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAgi0BdT399X59EG5Aup6q/PL1SZNXe9e5wcPs7zjHb+Wt1rNYseY9is359z8DjLf/OZdwWuGtJU6P+RaObZ7AXW91fndC7JCiIC63ur8ECuORQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgbaA+v6+Op8+KFdAXW91frnapKnr3ev84GGWSy65NG82m0UnNJuN4muSJMVX/4ilb33r7uA1Q9pKnR9yrRzbvYC63ur87gVZIURAXW91fogVxyKAAAIIIIAAAggggAACCCCAAAIIIIAAAggggEBbQH1/X51PH5QroK63Or9cbdLU9e51fvAwy4UXXpT73WP8kIxzZv43fgeZJKkWu8ncf/99wWuGtJU6P+RaObZ7AXW91fndC7JCiIC63ur8ECuORQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgbaA+v6+Op8+KFdAXW91frnapKnr3ev84GGWN73pzXmr1SoGYzo7yfgdZPyQTKVSse9//3vBa4a0lTo/5Fo5tnsBdb3V+d0LskKIgLre6vwQK45FAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQACBtoD6/r46nz4oV0Bdb3V+udqkqevd6/zgYZazzz4nbzQaxXBMsXuM74liB5mk2EXm0UcfCV4zpK3U+SHXyrHdC6jrrc7vXpAVQgTU9Vbnh1hxLAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCLQF1Pf31fn0QbkC6nqr88vVJk1d717nBw+zbN58et7ZOabZbPjpGKtWE/OPXapWq7Zly/8ErxnSVur8kGvl2O4F1PVW53cvyAohAup6q/NDrDgWAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEE2gLq+/vqfPqgXAF1vdX55WqTpq53r/ODh1lOOeXUYkCmMyRjls8Px/gBmaeffip4zZC2UueHXCvHdi+grrc6v3tBVggRUNdbnR9ixbEIIIAAAggggAACCCCAAAIIIIAAAggggAACCCDQFlDf31fn0wflCqjrrc4vV5s0db17nR88zOIv4MCBujUafkimYa7zeKVKYsO1mv30p08HrxnSVur8kGvl2O4F1PVW53cvyAohAup6q/NDrDgWAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEE2gLq+/vqfPqgXAF1vdX55WqTpq53r/MXNcyS57m75557Vq9atfbCq656951+95h6fWp+F5kkqVqtVrMkSexrX/v65RMTL9x/ySWXvOicy3vRMur8XrwH1li8gLre6vzFS3FkLwTU9Vbn98KQNRBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQ6DcB9f19dX6/1Vv9ftX1Vuer/fstX13vVzL//x2Q8aG+0HfffXd1zbp1v3rssSe8rzay4opzXrc5rtfr1mo1bWpqqthBZnh42DpDMo88vjWtT+2/Y/fuZ/9p754937r00ksbfp3QYRl1fr81ufr9quutzlf791u+ut7q/H6rN+8XAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIFeCKjv76vze2HIGosXUNdbnb94KY7shYC63mXlH3ZAphN+7733Dqw5ZsONGzae9Ie55aMe9o2vP714tJIfkvE7yZi5YueYzg4yDz+2pfB35iZ37njmz/ZPPP+5Cy64YKL4s0XuKKPO70UDscbiBdT1VucvXoojeyGgrrc6vxeGrIEAAggggAACCCCAAAIIIIAAAggggAACCCCAQL8JqO/vq/P7rd7q96uutzpf7d9v+ep6l5n/sgGZuXD34IMPrhpZsfrP12886beyLI98Ezhndv65ZxSDMX5Ixn/NcysGZKrVavH1gYeeLP7Mv6LIZbuf2/7Fycm9N5x33nmzZpYfaUhGnd9vza5+v+p6q/PV/v2Wr663Or/f6s37RQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgFwLq+/vq/F4YssbiBdT1VucvXoojeyGgrnfZ+QcNyCwIHxhdufbGdRtO+NPcD8f4o+amXi6+4Ozi8UqNRntAxr/845Wq1aT4+p37H2nXwU/T5GYuctmenc/+8eS+F24+0pCMOr8XDcQaixdQ11udv3gpjuyFgLre6vxeGLIGAggggAACCCCAAAIIIIAAAggggAACCCCAAAL9JqC+v6/O77d6q9+vut7qfLV/v+Wr663Inx+Q6YT70ZaHH330shNPfM2X8jwfzf2Ui5k1m6nd9i+32q23/MNBu8c45yzP8/kBmWuv+4Bd9Z7fsCSJi/Oc/8+5ye3bf3ztG9/whrv8qM3hdpJR5/dbs6vfr7re6ny1f7/lq+utzu+3evN+EUAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBDohYD6/r46vxeGrLF4AXW91fmLl+LIXgio663KP3RAJnrggQfWbjjutL+t1Ubf7Ydj/MYxrVbLPv93N9vT27batm3bit1j/JxLs9kqvvqdY/zLP2Zp06ZNduqmzfbB37nRKpVKsZGMH5Kp1ye/vvPnT/3u+eef/4KZZYc+amkOQJbfiyZijcULqOutzl+8FEf2QkBdb3V+LwxZAwEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQACBfhNQ399X5/dbvdXvV11vdb7av9/y1fVW5RcDMgumc6IfPP7ku44/YdNXsyyL/XCMP+CuO2+zhx96wOIoth/+8Ilixxj/eCW/e8zc+ZYkSfH7M888y9IstTeee75ddvnVxXYx/rAoitKfPbvtvWe/7oxv+AGZhbvIqPP7rdnV71ddb3W+2r/f8tX1Vuf3W715vwgggAACCCCAAAIIIIAAAggggAACCCCAAAII9EJAfX9fnd8LQ9ZYvIC63ur8xUtxZC8E1PVW5i8ckInMLN761M/+YuWqtb/fGY7ZvXunfeHzf21xHFujMWNbtmwthmOKV95+XtLcnIxVk6q9evMmGxgYsjRN7foP3mDHHrth/ph9Ey/81ebTjv+omaULd5HpTAep8nvRRKyxeAF1vdX5i5fiyF4IqOutzu+FIWsggAACCCCAAAIIIIAAAggggAACCCCAAAIIINBvAur7++r8fqu3+v2q663OV/v3W7663sp8t2A6J37ooR+OverEE2+pxMkv5Zkffsnt3v+6x3705GOWZZkdODBlW7duKwZiGg0/JFOMx8w/Zsn/+aZNp1mtNup3jLHXnvF6u/itlxSPWHKRWStt/vdz27f/5rnnnjk+NyTjF/Avv4gk/9BHPfVb85f9fuk31+n5sun7Mo9+o9/6svF50wgggAACCCCAAAIIIIAAAggggAACCCCAAAJdCfD5Ap8vdNVAgSfTb/RbYMt0dXjf99vC6Zz77ntw8+mvOesbae5OzX0fZpnd/q9ftqmpSZua2metZtOeeeZZm56ents1xhWPW2rvIONscHDQTjrpBKskiY2MrLSRkVG78j3v989XMpc7i13+9JYfP/Guiy46b2tnF5m56hW71yjyGZDp6vsn+GT6jR/wwU3TxQn0G/3WRftwKgIIIIAAAggggAACCCCAAAIIIIAAAggggECfCvD5Ap8vlNn69Bv9Rr+VN5/S2UEmesYs2fPw4284/uTN/2FZXsssszxzdvttXzLnnL3w/K5iGGbHjp02NVW3RmN2buMXX67cqtWqjYyM2MaNG4rdY9asPbb483dfda25KLfIIrPI1Z956keXbHjzOT84ycxvQZN1BmRU+QzIlPntZr6H/DgV/VYue9+m0W/8g6Jvm583jgACCCCAAAIIIIAAAggggAACCCCAAAIIILBkAT5f4POFJTfPEk6k3+i3JbTNkk/p+36bA4jHxy3Z/txD55x2ypl3Z3lWy/PMbyBjd//bbRZFse3e9VzxmKVWq1XsIpOmaTEw419+gMYPxZx88olWqVSK36/fcFxxzNvfebXfQMaciyxyUX3rTx59+yknnP/w2FgxIJPOVU6Wz4DMkr93lnQi/cYP+CU1zhJPot/otyW2DqchgAACCCCAAAIIIIAAAggggAACCCCAAAII9LEAny/w+UKZ7U+/0W/0W3nzKZ0dZCo7dlgyPv74a4874dW35VF+kmX+8Umpfe+737FGs1HsINOYnSlq44dkdu7cbfV6vRiGGR4etg0bjrU4jou/HxgcsrXHrLdqUrU3v+WXzbnYLMrNZe6Znz/7k6vHxl73o40biwGZ1lyxZfkMyJT57Ta/g4ys3vRbufVWp839g4J+UxeCfAQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEElpEAny8wsFBmu9Jv9Bv9Vt58ih+Qicws3rXLqnv2bD111THHfi6Kquf53WP8DjH/+/SWYjhmdna6+LqY19q16606MGjHrNtgJ596+twOM2ZZ1nhw4vndv71u3ean16+3xsIdZFT5zrnOY54W89Y4pksB+o1+67KFgk6n3+i3oIbhYAQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEErPiMlM9P6YTSBOg3Ps8qrdn4+ZYeNCATxwdW7Hlx7ydXrlx1XZ47y7LcpqcP2LatT1ilUrXndz9n09P1X1ifoaGarVt/nDWbs7Zp81k2NDRsUeTMudz27Zv44rrVa25K0+H9hxuQUeQzIFPmt9vB/6BQ1Hvu3RYDYYp8+o1+K/PnK/1Wbr+RhgACCCCAAAIIIIAAAggggAACCCCAAAIIIHB0CCwcWFB8nsTnWUdHHy32XdBvDMgstld6cVzf99uhAOPj41esHxv7TJbmsR+Q8bvI7Nr5M5ua3GfORfbC8zts+sDUYe2Hhkds7TEb/dyR1UZW2PoNx8/tHuMsil26a3z8w2NjY3f8ogGZsvP5ALkX30aLX4N+4wf84rul+yPpN/qt+y5iBQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIF+E+DzBT5fKLPn6Tf6jX4rbz7loB1koqg+umfixROHhoY+lVQGf8UPx3T+f37XuDVbTYvjxOr1/Ta5f681ZmeKWvnHKY2uWGO12grLspbFccXWrR8rhmM6/zdbM/85PT39R+tWrd6eZbXJw+0go8hnQKbMb7eDd5BR1Hvu3RY7yCjy6Tf6rcyfr/Rbuf1GGgIIIIAAAggggAACCCCAAAIIIIAAAggggMDRIbBwYEHxeRKfZx0dfbTYd0G/MSCz2F7pxXF932+5f5aSWWXHDkucm6q14mTV3r3PXX7MqvUfz/J0KM/NMj8ok5pNTu61VnPGXBSbs8hc5E8tNoyxLE8tz1JLqoM2MrLGXGwWFQMy/ms8/fzEro+tWfOqOytpcyLPR+obN1rTzFpzRZTlO//sJ16lCdBv9FtpzdZ+hh4/38oEJwsBBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgaNAgM8X+DyrzDam3+g3+q28+RS/g4z/ADkeH7fErZwcbh1IVuStxvqZ6ckPrBhddU2aZ1GemWV+CiY1a6Uta7WmLW2llvupGTNzLra4ElulMmSVuGLmh2PMmYvMYhdl+ycnbh0cGv17V6nuqgw39+f7Rg+MjRUDMu0FhPkMyJT57TY/sEC/lcvet2n8fOMfFH3b/LxxBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgSUL8PkCny8suXmWcCL9Rr8toW2WfErf99scQPSMWbJqwgbr2fRIVk9X5XG64cDU1EdXrFz11jTLoixr7xRTPHLJ/6LYnaHt7neJKb76//xv/K4xfjgmirJ9ExPfGRiMb06ike1RLZ6oRUNTE6ts5iQrBmT8qv4ly2dAZsnfO0s6kX7jB/ySGmeJJ9Fv9NsSW4fTEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBPpYgM8X+HyhzPan3+g3+q28+ZTODjKR38Vlzx6r5nm95lxtdDI9sDprzJyYNqavHhlZ/c4sSwczPyDj+7MzLDPXq85vQuOHZCIz/2v/5KUoimempl78Zjww8JUoGd4xGg+/mOf1Sedq9XXrrDG3e8z8gIwqnwGZMr/d5neQod/KZe/btM4/KFQ/X+bgZf3Oz7e+bX3eOAIIIIAAAggggAACCCCAAAIIIIAAAggggEAXAny+wMBCF+0TfCr9Rr8FN00XJ/R9v80BFI9Z2rHDkrRmg1FrutaaSkctydfMTmfr09bkxQNDtQuTJDkjy/Ko2EEmd/M7yfidY8zlxQ4yUeSyZrP55Ox0/f64MnrvwFC0y5pub2UknswqQ/W4bjMbN84/XmluD5pivEaSzwfIXXz3LOFU+o0f8EtomyWfQr/Rb0tuHk5EAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQ6FsBPl/g84Uym59+o9/ot/LmU4qHIx06JZSmU0OzrjJSaaUrGlm+Mk3z1ZY1jsvy1utdxZ1eTQbGnEUrnYtq7fOzem7ZvkZzdjxv5VsiV3nMourP49i9WI3cvlYl3j+Qt6bieGR64e4xneEUdX6ZDUcW/UYPlCug/vmizi9XmzQEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBI4OAfX9fXX+0VHF5fMu1PVW5y+fSh0dV6qutzJ/4YBM8ZCkcbOk9qJVm8364OxsZSSKWiNplI3mLh7Nm80VeWYjqbXWZ62sluX5kG+ByLnpqBLVY6vscpFNuSTZ7/J0Ms6iySyrTA0MtKaSpDZTX22NMSt2jyke0nTIgIws/+ho4+XzLhZMQdJvy6dsy/ZK6bdlWzouHAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABmQCfL8jo+zKYfuvLssvedD/3WzEg418LpnQi/6ilwUFL/JDMdB4Pu9nWUKsa1aJWo+Yq1SFrpYNZ5hLnsrh9bpRGUd60SjyTtxrTWaVarzSyej5QmR5y6QE/HDMzY825Ryv54Zjs0EcbqfNl3denwep6q/P7tOyyt62utzpfBk8wAggggAACCCCAAAIIIIAAAggggAACCCCAAALLWEB9f1+dv4xLtywvXV1vdf6yLNoyvmh1vVX5hw7I+N/7/+MdO6zih2RmZ6eqWTUeTNKhgZmZqcHKUDRQn02r1SiJs3SmGJCJ4sG0kTXT2kDcaE1ns4ODIzPNeHo2aqQzAwMjjbnhmJaZpX6eZuHuMZ2eWTClJMlfxr27LC9dXW91/rIs2jK+aHW91fnLuHRcOgIIIIAAAggggAACCCCAAAIIIIAAAggggAACMgH1/X11vgy+T4PV9Vbn92nZZW9bXW9V/vyAjJc/5CL8428qA3ssnh2wanWmnjQrUdJqumQ4GozrrcmKa7j2I5qqeV6rjLYOZDNpJcmbSStrNgZrzYFZa8yus3TMzA/HFI9VOtxwTKfq6nxZ9/VpsLre6vw+Lbvsbavrrc6XwROMAAIIIIAAAggggAACCCCAAAIIIIAAAggggMAyFlDf31fnL+PSLctLV9dbnb8si7aML1pdb0X+QQMyvnaHXIT/e//IpUqlYlGSWKUeT8Zx3UVx7IrdYzqvNM3TtJZntXQ0bTat1WpZtnHjwYMxv2g4prOOOn8Z9++yvHR1vdX5y7Joy/ii1fVW5y/j0nHpCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAgjIBNT399X5Mvg+DVbXW53fp2WXvW11vcvOf9mAjJefuwj/y84jl6LOr8fHLYpjc1FU/N38K8ssT1PLx8Ze2ilm4a4xxWLO+R1kjvhS5x/xAjmgpwLqeqvze4rJYkcUUNdbnX9EIA5AAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQACBlwmo7++r82mJcgXU9Vbnl6tNmrreZeYfdkDGt8CCi/C/7QzKHPrrQ7uleITS3B8u/PWih2M6C6rz+TYoV0Bdb3V+udqkqeutzqcDEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAIFxAfX9fnR8uxhndCKjrrc7vxo5zwwXU9S4r//8dkFlIdsjFdP7q0HNftjvMYneMOVJ51PlHuj7+vrcC6nqr83uryWpHElDXW51/JB/+HgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBF4uoL6/r86nJ8oVUNdbnV+uNmnqer+S+f8HabRiLm3R4IUAAAAASUVORK5CYII="},"Ix/O":function(Ge,be){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAgCAYAAACcuBHKAAAACXBIWXMAAAsSAAALEgHS3X78AAAAAXNSR0IArs4c6QAAAhNJREFUWEftlztLA0EQx/97Z2LAF1ooKhZaCClsVARFLAQbbQTBVFY2NjZiI4KFINjo51DBD2BhI4IQfKAIikJAg48oKD4Kk3usbDabXHSTu1yCucJp5pL5z+zvZm4XllBKVZTZSBriaLIV9HMdBIOoJE22XHEaA8U+zMc19B2HbfV5BByCAeAzDMPB4rJiCt0uBoZDHI5uIv4xUczbFJQbqOFdJNVz6Nm64xB7wVtQf0tBhUohJol7VHX1c4jddr0UNV3VIMoGh9hpKB+EakazIer7gc5FwN/o6qUcJyWegKsV4PUgmZINEVwGfHXyWoQAlALMy0zEmHdi2htwsWSBeFnNjIPVYOuIWuJZrG0XtwOQ5PNOPC+U75tIjyM27wGIu1kdFZXyRupxJGPMMxPPQp8vbo3l0fNxMAhmpgYovt8+15yF3u47EPEceg4RnfHAOG6mPQARmSoeQvUDRsLpYLJ0fBylgBAAAoZ5mTGdFVj1p07M65CzThhxQM2xi6QLOtPzTlyOO4Nw1Wz7pN8QugZU+ACZT54Tlhj7bdXJ4j81LN9qupYax/lY6pxIAIpklmaO/+1fUq4Q9VKed+JsxAPjOB32AMTJkAcgjgY8ABHu/YfI3DtU4+/vHWwDG+o9hwh39+HrYR8Uitut7yqPwESgeTBzIWYg75FNEK3NVcFCk6gvitqOELtMZyAKLVJC/TfVWC6c92hknAAAAABJRU5ErkJggg=="},JYp7:function(Ge,be,U){"use strict";U.d(be,"a",function(){return ue});var ue;(function(W){function R(t){return t&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"}W.is=R;const N=Object.freeze([]);function S(){return N}W.empty=S;function*O(t){yield t}W.single=O;function F(t){return t||N}W.from=F;function j(t){return!t||t[Symbol.iterator]().next().done===!0}W.isEmpty=j;function e(t){return t[Symbol.iterator]().next().value}W.first=e;function w(t,v){for(const p of t)if(v(p))return!0;return!1}W.some=w;function g(t,v){for(const p of t)if(v(p))return p;return}W.find=g;function*c(t,v){for(const p of t)v(p)&&(yield p)}W.filter=c;function*u(t,v){let p=0;for(const m of t)yield v(m,p++)}W.map=u;function*a(...t){for(const v of t)for(const p of v)yield p}W.concat=a;function*i(t){for(const v of t)for(const p of v)yield p}W.concatNested=i;function d(t,v,p){let m=p;for(const b of t)m=v(m,b);return m}W.reduce=d;function*s(t,v,p=t.length){for(v<0&&(v+=t.length),p<0?p+=t.length:p>t.length&&(p=t.length);vm===b){const m=t[Symbol.iterator](),b=v[Symbol.iterator]();for(;;){const _=m.next(),o=b.next();if(_.done!==o.done)return!1;if(_.done)return!0;if(!p(_.value,o.value))return!1}}W.equals=n})(ue||(ue={}))},KMxT:function(Ge,be,U){"use strict";U.r(be);var ue=U("DjyN"),W=U("NUBc"),R=U("qVdP"),N=U("jsC+"),S=U("lUTK"),O=U("BvKs"),F=U("T2oS"),j=U("W9HT"),e=U("+L6B"),w=U("2/Rp"),g=U("k1fw"),c=U("9og8"),u=U("tJVT"),a=U("PpiC"),i=U("5NDa"),d=U("5rEg"),s=U("Znn+"),r=U("ZTPi"),n=U("WmNS"),t=U.n(n),v=U("q1tI"),p=U.n(v),m=U("9kvl"),b=U("iris"),_=U("jcZT"),o=U("BdwD"),f=U("SAoR"),l=U("FKdj"),h=U.n(l),E=U("EJTS"),y=U("LE3n"),T=U("xKgJ"),L=U("SVaM"),D=U("xTzM"),x=U.n(D),P=U("1vsH"),H=U("ErOA"),I=r.a.TabPane,z=d.a.Search,$;(function(ee){ee.Mine="0",ee.Public="1",ee.Collection="2",ee.TeachGroupShare="3"})($||($={}));var fe=function(ye){var pe,ae,se,_e,te,k,A,C,B=ye.classroomList,K=ye.problemset,M=ye.user,ie=ye.globalSetting,Ee=ye.loading,Oe=ye.dispatch,q=ye.match,de=ye.shixunHomeworks,Te=Object(a.a)(ye,["classroomList","problemset","user","globalSetting","loading","dispatch","match","shixunHomeworks"]),xe=Object(P.I)(),Pe=Object(v.useState)({discipline_id:null,sub_discipline_id:null,tag_discipline_id:null,group_id:null,type:"0",item_type:xe.qtype,difficulty:null,keyword:null,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",id:((pe=Te.location)===null||pe===void 0||((ae=pe.query)===null||ae===void 0)?void 0:ae.id)||null,exam_id:(q==null||((se=q.params)===null||se===void 0)?void 0:se.id)||null,exercise_id:(q==null||((_e=q.params)===null||_e===void 0)?void 0:_e.categoryId)||null}),Ne=Object(u.a)(Pe,2),Re=Ne[0],Me=Ne[1],He=Object(v.useState)(0),We=Object(u.a)(He,2),Ke=We[0],Be=We[1],Ve=Object(v.useState)([]),Xe=Object(u.a)(Ve,2),ne=Xe[0],V=Xe[1],G=Object(v.useState)($.Mine),Z=Object(u.a)(G,2),re=Z[0],X=Z[1],Q=Object(v.useState)(-1),oe=Object(u.a)(Q,2),he=oe[0],De=oe[1],Ie=Object(v.useState)([]),Ue=Object(u.a)(Ie,2),Ye=Ue[0],Je=Ue[1],Ze=Object(v.useState)([]),dt=Object(u.a)(Ze,2),at=dt[0],$e=dt[1],Nt=Object(v.useState)(!1),bt=Object(u.a)(Nt,2),Ut=bt[0],Lt=bt[1],ot=Object(v.useRef)(!1),Ft=Object(v.useState)([]),Jt=Object(u.a)(Ft,2),Vt=Jt[0],rn=Jt[1],qe=Object(v.useState)("\u6309\u66F4\u65B0\u65F6\u95F4\u964D\u5E8F"),it=Object(u.a)(qe,2),ft=it[0],It=it[1],$t=Object(v.useState)([]),ln=Object(u.a)($t,2),Bt=ln[0],pt=ln[1],yt=Object(v.useRef)(null),ut=Object(v.useState)(!1),Qt=Object(u.a)(ut,2),Rt=Qt[0],dn=Qt[1],Kt=Object(v.useState)(""),gn=Object(u.a)(Kt,2),xn=gn[0],Sn=gn[1],Cn=[{name:"\u6309\u66F4\u65B0\u65F6\u95F4\u5347\u5E8F",type:"updated_at",direction:"asc"},{name:"\u6309\u66F4\u65B0\u65F6\u95F4\u964D\u5E8F",type:"updated_at",direction:"desc"},{name:"\u6309\u4F7F\u7528\u6B21\u6570\u5347\u5E8F",type:"quotes",direction:"asc"},{name:"\u6309\u4F7F\u7528\u6B21\u6570\u964D\u5E8F",type:"quotes",direction:"desc"}];Object(v.useEffect)(function(){return document.body.setAttribute("data-custom","initial"),function(){document.body.removeAttribute("data-custom")}},[]),Object(v.useEffect)(function(){var tt;Oe({type:"problemset/getDisciplines",payload:{source:"question"}});var et=((tt=Te.location.query)===null||tt===void 0?void 0:tt.group_id)||0;Re.group_id=Number(et),Me(Re),en(Re).then(function(mt){mt!=null&&mt.status||pt(mt==null?void 0:mt.item_banks_group),dn(!1)}),ni(),ti()},[]),Object(v.useEffect)(function(){return Oe({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),Oe({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),function(){Oe({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),Oe({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}},[]),Object(v.useEffect)(function(){return Oe({type:"globalSetting/headerFixedToggle",payload:!0}),function(){Oe({type:"globalSetting/headerFixedToggle",payload:!1})}},[]),Object(v.useEffect)(function(){return Oe({type:"globalSetting/headerFooterToggle",payload:!1}),function(){Oe({type:"globalSetting/headerFooterToggle",payload:!0})}},[]);var ti=function(){var tt=Object(c.a)(t.a.mark(function et(){return t.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:Oe({type:"problemset/getTeachGroupData"});case 1:case"end":return Ot.stop()}},et)}));return function(){return tt.apply(this,arguments)}}(),en=function(){var tt=Object(c.a)(t.a.mark(function et(mt){var Ot;return t.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return mt.item_type=mt.item_type,dn(!0),Xt.next=4,Oe({type:"problemset/getItemBanks",payload:mt});case 4:if(Ot=Xt.sent,!(Ot&&Ot.status!==403&&Ot.status!==401&&Ot.status!==500)){Xt.next=14;break}return Be(Ot.items_count||0),V(Ot.items||[]),Je(Ot.tag_disciplines||[]),ii(Ot.items||[]),rn([]),$e((Ot==null?void 0:Ot.navigation)||[]),dn(!1),Xt.abrupt("return",Ot);case 14:case"end":return Xt.stop()}},et)}));return function(mt){return tt.apply(this,arguments)}}(),ni=function(){Oe({type:"problemset/getBasketList",payload:{}})},ii=function(et){var mt=et.every(function(Ot){var qt;return((qt=Ot.program_attr)===null||qt===void 0?void 0:qt.status)===0});ot.current=mt},ri=function(et,mt){if(Re.discipline_id=et||"",Re.sub_discipline_id=mt||"",Re.tag_discipline_id="",Re.page=1,Re.per_page=20,delete Re.id,De(et===null?-1:null),Me(Re),en(Re),et===null)return},Ai=function(et){Re.difficulty=et||"",Re.page=1,Re.per_page=20,delete Re.id,Me(Re),en(Re)},On=function(et){Re.tag_discipline_id=et,Re.page=1,Re.per_page=20,delete Re.id,et===-1&&(Re.discipline_id="",Re.sub_discipline_id="",Re.tag_discipline_id=""),De(et),Me(Re),en(Re)},Hn=Object(v.useState)(!1),Kn=Object(u.a)(Hn,2),ai=Kn[0],Gn=Kn[1],zn=function(et){Oe({type:"problemset/getDisciplines",payload:{source:"question",group_id:0,group_type:et}}),Re.discipline_id="",Re.sub_discipline_id="",Re.tag_discipline_id="",Re.difficulty=null,Re.type=et,et==="0"?Re.group_id=0:Re.group_id=null,et==="3"?Gn(!0):Gn(!1),Re.page=1,Re.per_page=20,delete Re.id,De(-1),X(et),Me(Re),en(Re)},si=function(et,mt){Re.page=et,Re.per_page=mt,Me(Re),en(Re)},Ln=function(et){Re.discipline_id="",Re.sub_discipline_id="",Re.tag_discipline_id="",Re.difficulty=null,Re.page=1,Re.keyword=et,delete Re.id,et?(Lt(!0),Object(L.a)({name:et,copywriting:et,position:"ItemBank"})):Lt(!1),De(-1),Me(Re),en(Re)},oi=function(){Re.per_page=20,Me(Re),en(Re)},Vn=function(){var tt=Object(c.a)(t.a.mark(function et(mt){return t.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:Oe({type:"problemset/getDisciplines",payload:{source:"question",group_id:Math.abs(mt),group_type:$.Mine}}),Re.page=1,Re.per_page=20,Re.group_id=Math.abs(mt),Me(Re),en(Re).then(function(Xt){return pt(Xt==null?void 0:Xt.item_banks_group)});case 6:case"end":return qt.stop()}},et)}));return function(mt){return tt.apply(this,arguments)}}(),Xn=function(){Oe({type:"problemset/setActionTabs",payload:{key:"\u65B0\u5EFA\u6587\u4EF6\u5939",params:Re}});return},li=function(){Oe({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}})},Yn=function(){var tt=Object(c.a)(t.a.mark(function et(mt){return t.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:Oe({type:"problemset/getDisciplines",payload:{source:"question",group_id:mt,group_type:$.TeachGroupShare}}),Re.page=1,Re.group_id=mt||null,delete Re.id,Me(Object(g.a)({},Re)),en(Re);case 6:case"end":return qt.stop()}},et)}));return function(mt){return tt.apply(this,arguments)}}(),ui=function(et){Re.sort_by=et.type,Re.sort_direction=et.direction,Re.page=1,Re.per_page=20,It(et.name),Me(Re),en(Re)},di=function(et){Re.discipline_id="",Re.sub_discipline_id="",Re.tag_discipline_id="",Re.difficulty=null,Re.page=1,Re.per_page=20,Re.group_id=et,De(-1),Me(Re),en(Re).then(function(mt){return pt(mt==null?void 0:mt.item_banks_group)})},$n=function(et){rn(et)},ci=[{type:"SINGLE",name:"\u5355\u9009\u9898"},{type:"MULTIPLE",name:"\u591A\u9009\u9898"},{type:"JUDGMENT",name:"\u5224\u65AD\u9898"},{type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},{type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},{type:"COMPLETION",name:"\u586B\u7A7A\u9898"},{type:"COMBINATION",name:"\u7EC4\u5408\u9898"}],hi={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Qn=function(){var tt=Object(c.a)(t.a.mark(function et(mt){var Ot;return t.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(!(xe.type==="exercise")){Xt.next=6;break}return Xt.next=3,Object(H.a)("/api/exercises/".concat(xe.exerciseid,"/toggle_random_question.json"),{method:"post",body:{question_id:xe.qid,item_bank_id:mt}});case 3:return Ot=Xt.sent,Ot!=null&&Ot.status||m.d.push(xe.from),Xt.abrupt("return");case 6:case"end":return Xt.stop()}},et)}));return function(mt){return tt.apply(this,arguments)}}();return p.a.createElement("div",{className:h.a.page},p.a.createElement("section",null,p.a.createElement("div",{className:h.a.wrap},p.a.createElement("div",{className:h.a.title},"\u8BD5\u9898\u5E93"),p.a.createElement("div",{className:h.a.headerWrapper},p.a.createElement("div",{className:h.a.tabsWrap},p.a.createElement(r.a,{activeKey:re,onChange:zn,tabBarExtraContent:p.a.createElement("div",{className:h.a.searchWrap},p.a.createElement(z,{allowClear:!0,suffix:p.a.createElement("i",{className:"iconfont icon-sousuo9 font14 ".concat(h.a.searchIcon),onClick:function(){return Ln(Re.keyword)}}),className:h.a.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",size:"large",value:Re.keyword,onChange:function(et){Re.keyword=et.target.value,Me(Object(g.a)({},Re))},onSearch:Ln}))},p.a.createElement(I,{tab:"\u516C\u5171",key:"1"}),((te=K.teachGroupData)===null||te===void 0||((k=te.groups)===null||k===void 0)?void 0:k.length)&&p.a.createElement(I,{tab:"\u6211\u7684\u7FA4\u7EC4",key:"3"}),!Object(T.o)()&&!Object(T.m)()&&p.a.createElement(I,{tab:"\u6536\u85CF\u5939",key:"2"}),p.a.createElement(I,{tab:"\u6211\u521B\u5EFA\u7684",key:"0"}))),p.a.createElement(b.a,{showSelectAll:!1,className:h.a.select,disciplinesData:(A=K.disciplinesData)===null||A===void 0?void 0:A.disciplines,knowledgeData:Ye,directionValue:Re.discipline_id,subDisciplineValue:Re.sub_discipline_id,typeValue:Re.item_type,isprogram_homework:!1,showItemType:!1,showKnowledge:!0,name:xn,setname:Sn,difficultyValue:Re.difficulty,showShixun:!1,onShixunChange:li,onDirectionChange:ri,onTypeChange:function(){},onDifficultyChange:Ai,knowledgeValue:he,onKnowledgeChange:On,teachGroupData:(C=K.teachGroupData)===null||C===void 0?void 0:C.groups,onTeachGroupChange:Yn,teachGroupValue:Re.group_id,showTeachGroup:ai})),p.a.createElement("div",{className:h.a.treeWrapper,style:{display:re===$.Mine?"block":"none"}},p.a.createElement("div",{className:h.a.treeHeader},p.a.createElement(f.a,{data:at,onClick:Vn}),p.a.createElement(w.a,{type:"link",onClick:Xn,className:h.a.exportBtn},p.a.createElement("img",{src:x.a,alt:"",className:h.a.pngIcon}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),p.a.createElement(j.a,{spinning:Rt},p.a.createElement("div",{ref:yt,className:h.a.treeContent},p.a.createElement(y.a,{isProblemset:!1,reloadData:oi,data:Bt,onShare:function(){},onOpen:Vn})))),p.a.createElement("div",{className:h.a.contentWrap},p.a.createElement("div",{className:h.a.batchWrap},p.a.createElement("div",{style:{flex:1,display:"flex",alignItems:"center"}},p.a.createElement("div",{className:"font14"},p.a.createElement(N.a,{overlay:p.a.createElement(O.a,{selectedKeys:[ft]},Cn==null?void 0:Cn.map(function(tt,et){return p.a.createElement(O.a.Item,{key:tt.name,onClick:function(){return ui(tt)}},tt.name)}))},p.a.createElement("span",{style:{color:"#464F66"}},p.a.createElement("i",{className:"iconfont icon-paixu font14 mr5 c-light-primary"}),ft))))),Ut?p.a.createElement("div",null,p.a.createElement(w.a,{style:{paddingLeft:0},onClick:function(){Re.page=1,Re.keyword=null,delete Re.id,Me(Re),Lt(!1),en(Re)},type:"link"},p.a.createElement("i",{className:"iconfont icon-fanhui2 font14"}),"\u8FD4\u56DE"),p.a.createElement("span",{className:"font14 mr20 c-grey-333"},"\u641C\u7D22\u201C",Re.keyword,"\u201D")):null,p.a.createElement("div",{className:h.a.contentListWrap},Ke!==0?p.a.createElement(j.a,{size:"large",spinning:Ee["problemset/getItemBanks"]},ne.map(function(tt,et){var mt,Ot;return p.a.createElement("div",{className:h.a.li,key:tt.id},p.a.createElement("div",{className:h.a.top},p.a.createElement(E.b,{showCheckbox:!1,data:tt,selectIds:Vt,onSelectCheckBox:$n})),p.a.createElement("div",{className:h.a.bottom},p.a.createElement("p",{className:"".concat(h.a.actionLeftItem," ").concat(h.a.questionTypeName)},(mt=ci.find(function(qt){return qt.type===tt.item_type}))===null||mt===void 0?void 0:mt.name),p.a.createElement("p",{className:h.a.actionLeftItem},hi[tt.difficulty]),p.a.createElement("p",{className:h.a.actionLeftItem},"\u521B\u5EFA\u8005",p.a.createElement("span",{className:"c-grey-333"},tt==null||((Ot=tt.author)===null||Ot===void 0)?void 0:Ot.name)),p.a.createElement("p",{className:h.a.actionLeftItem},"\u66F4\u65B0",p.a.createElement("span",{className:"c-grey-333"},tt==null?void 0:tt.updated_at)),p.a.createElement("p",{className:h.a.actionLeftItem},"\u4F7F\u7528\u6B21\u6570",p.a.createElement("span",{className:"c-grey-333"},tt==null?void 0:tt.quotes)),p.a.createElement("div",{className:h.a.more},p.a.createElement("span",{className:h.a.btnAdd,onClick:function(){return Qn(tt.id)}},"\u66FF\u6362"))))})):p.a.createElement(j.a,{size:"large",spinning:Ee["problemset/getItemBanks"]},p.a.createElement(o.a,null))),Ke!==0&&p.a.createElement(W.a,{showQuickJumper:!0,onChange:si,defaultCurrent:1,pageSize:Re==null?void 0:Re.per_page,current:Re.page||1,total:Ke,showTotal:function(et){return p.a.createElement("span",{className:"mr10"},"\u5171",p.a.createElement("span",{className:"c-light-primary"},et),"\u6761\u6570\u636E")}}))),p.a.createElement(_.a,{onOk:di})))};be.default=Object(m.a)(function(ee){var ye=ee.classroomList,pe=ee.problemset,ae=ee.user,se=ee.loading,_e=ee.globalSetting,te=ee.shixunHomeworks;return{classroomList:ye,problemset:pe,user:ae,globalSetting:_e,loading:se.effects,shixunHomeworks:te}})(fe)},LE3n:function(Ge,be,U){"use strict";var ue=U("ozfa"),W=U("MJZm"),R=U("k1fw"),N=U("+L6B"),S=U("2/Rp"),O=U("5NDa"),F=U("5rEg"),j=U("2qtc"),e=U("kLXV"),w=U("miYZ"),g=U("tsqr"),c=U("9og8"),u=U("tJVT"),a=U("WmNS"),i=U.n(a),d=U("q1tI"),s=U.n(d),r=U("1vnw"),n=U.n(r),t=U("ErOA"),v=U("Ix/O"),p=U.n(v),m=U("xTzM"),b=U.n(m),_=U("WCUW"),o=U("LvDl"),f=U.n(o),l=function(y){var T=y.isProblemset,L=y.name,D=y.id,x=y.itemBanksCount,P=y.onOpen,H=P===void 0?function(){}:P,I=y.onShare,z=I===void 0?function(){}:I,$=y.onMove,fe=$===void 0?function(){}:$,ee=y.onDeleteOk,ye=ee===void 0?function(){}:ee,pe=Object(d.useState)(!1),ae=Object(u.a)(pe,2),se=ae[0],_e=ae[1],te=Object(d.useState)(L),k=Object(u.a)(te,2),A=k[0],C=k[1],B=Object(d.useState)(L),K=Object(u.a)(B,2),M=K[0],ie=K[1],Ee=function(){var q=Object(c.a)(i.a.mark(function de(Te){var xe,Pe,Ne;return i.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(xe=["\uFF1F","\u3001","/","\u2572","*","<",">","|"],M.trim()){Me.next=4;break}return g.b.warn("\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"),Me.abrupt("return");case 4:if(!(M.charAt(0)===" ")){Me.next=7;break}return g.b.warn("\u9996\u5B57\u7B26\u4E0D\u80FD\u4E3A\u7A7A\u683C"),Me.abrupt("return");case 7:Pe=0;case 8:if(!(Pe0?ee(function(Te){return _e(Te,K,{children:Ee.map(function(xe){return{title:s.a.createElement(l,{isProblemset:T,name:xe.name,id:xe.id,itemBanksCount:xe.item_banks_count,onMove:pe,onOpen:x,onShare:H,onDeleteOk:se}),key:xe.id,icon:s.a.createElement("img",{src:p.a,className:n.a.folderIcon}),isLeaf:!1}})})}):ee(function(Te){return _e(Te,K,{isLeaf:!0})});case 6:case"end":return de.stop()}},C)}));return function(B){return A.apply(this,arguments)}}(),k=function(C,B){var K=B.node,M=B.expanded;ee(function(ie){return _e(ie,K.key,{icon:M?s.a.createElement("img",{src:b.a,className:n.a.folderIcon}):s.a.createElement("img",{src:p.a,className:n.a.folderIcon})})})};return(fe==null?void 0:fe.length)>0&&s.a.createElement(W.a,{showLine:{showLeafIcon:!1},showIcon:!0,treeData:fe,loadData:te,onExpand:k,className:n.a.folderWrapper,selectable:!1})};be.a=h},LdHM:function(Ge,be,U){"use strict";U.d(be,"b",function(){return t}),U.d(be,"a",function(){return p});var ue=U("1OyB"),W=U("vuIU"),R=U("Ji7U"),N=U("LK+K"),S=U("q1tI"),O=U("rePB"),F=U("Ff2n"),j=U("ODXe"),e=U("4IlW"),w=U("bX4T"),g=U("YrtM"),c=U("TSYQ"),u=U.n(c),a=U("+nKL"),i=U("8OUc"),d=function(z,$){var fe=z.prefixCls,ee=z.id,ye=z.flattenOptions,pe=z.childrenAsData,ae=z.values,se=z.searchValue,_e=z.multiple,te=z.defaultActiveFirstOption,k=z.height,A=z.itemHeight,C=z.notFoundContent,B=z.open,K=z.menuItemSelectedIcon,M=z.virtual,ie=z.onSelect,Ee=z.onToggleOpen,Oe=z.onActiveValue,q=z.onScroll,de=z.onMouseEnter,Te="".concat(fe,"-item"),xe=Object(g.a)(function(){return ye},[B,ye],function(V,G){return G[0]&&V[1]!==G[1]}),Pe=S.useRef(null),Ne=function(G){G.preventDefault()},Re=function(G){Pe.current&&Pe.current.scrollTo({index:G})},Me=function(G){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=xe.length,X=0;X1&&arguments[1]!==void 0?arguments[1]:!1;return Object(b.a)(I).map(function($,fe){if(!S.isValidElement($)||!$.type)return null;var ee=$.type.isSelectOptGroup,ye=$.key,pe=$.props,ae=pe.children,se=Object(F.a)(pe,["children"]);return z||!ee?_($):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(ye===null?fe:ye,"__"),label:ye},se),{},{options:o(ae)})}).filter(function($){return $})}var f=U("2Qr1"),l=U("qNPg"),h=U("U8pU"),E=U("Kwbf"),y=U("WKfj");function T(I){var z=I.mode,$=I.options,fe=I.children,ee=I.backfill,ye=I.allowClear,pe=I.placeholder,ae=I.getInputElement,se=I.showSearch,_e=I.onSearch,te=I.defaultOpen,k=I.autoFocus,A=I.labelInValue,C=I.value,B=I.inputValue,K=I.optionLabelProp,M=z==="multiple"||z==="tags",ie=se!==void 0?se:M||z==="combobox",Ee=$||o(fe);if(Object(E.a)(z!=="tags"||Ee.every(function(Te){return!Te.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),z==="tags"||z==="combobox"){var Oe=Ee.some(function(Te){return Te.options?Te.options.some(function(xe){return typeof("value"in xe?xe.value:xe.key)=="number"}):typeof("value"in Te?Te.value:Te.key)=="number"});Object(E.a)(!Oe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(E.a)(z!=="combobox"||!K,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(E.a)(z==="combobox"||!ee,"`backfill` only works with `combobox` mode."),Object(E.a)(z==="combobox"||!ae,"`getInputElement` only work with `combobox` mode."),Object(E.b)(z!=="combobox"||!ae||!ye||!pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_e&&!ie&&z!=="combobox"&&z!=="tags"&&Object(E.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(E.b)(!te||k,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),C!=null){var q=Object(y.d)(C);Object(E.a)(!A||q.every(function(Te){return Object(h.a)(Te)==="object"&&("key"in Te||"value"in Te)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(E.a)(!M||Array.isArray(C),"`value` should be array when `mode` is `multiple` or `tags`")}if(fe){var de=null;Object(b.a)(fe).some(function(Te){if(!S.isValidElement(Te)||!Te.type)return!1;var xe=Te.type;if(xe.isSelectOption)return!1;if(xe.isSelectOptGroup){var Pe=Object(b.a)(Te.props.children).every(function(Ne){return!S.isValidElement(Ne)||!Te.type||Ne.type.isSelectOption?!0:(de=Ne.type,!1)});return!Pe}return de=xe,!0}),de&&Object(E.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(de.displayName||de.name||de,"`.")),Object(E.a)(B===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=T,D=Object(l.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:o,flattenOptions:f.d,getLabeledValue:f.e,filterOptions:f.b,isValueDisabled:f.g,findValueOption:f.c,warningProps:L,fillOptionsWithMissingValue:f.a}),x=function(I){Object(R.a)($,I);var z=Object(N.a)($);function $(){var fe;return Object(ue.a)(this,$),fe=z.apply(this,arguments),fe.selectRef=S.createRef(),fe.focus=function(){fe.selectRef.current.focus()},fe.blur=function(){fe.selectRef.current.blur()},fe}return Object(W.a)($,[{key:"render",value:function(){return S.createElement(D,Object.assign({ref:this.selectRef},this.props))}}]),$}(S.Component);x.Option=t,x.OptGroup=p;var P=x,H=be.c=P},MI8n:function(Ge,be,U){"use strict";U.d(be,"c",function(){return S}),U.d(be,"b",function(){return e}),U.d(be,"e",function(){return w}),U.d(be,"a",function(){return g}),U.d(be,"d",function(){return c}),U.d(be,"f",function(){return u});var ue=U("/cxE"),W=U("pmY6"),R=U("24hK"),N=U("5Y4S"),S;(function(a){a.None=()=>W.a.None;function i(T){return(L,D=null,x)=>{let P=!1,H;return H=T(I=>P?void 0:(H?H.dispose():P=!0,L.call(D,I)),null,x),P&&H.dispose(),H}}a.once=i;function d(T,L){return p((D,x=null,P)=>T(H=>D.call(x,L(H)),null,P))}a.map=d;function s(T,L){return p((D,x=null,P)=>T(H=>{L(H),D.call(x,H)},null,P))}a.forEach=s;function r(T,L){return p((D,x=null,P)=>T(H=>L(H)&&D.call(x,H),null,P))}a.filter=r;function n(T){return T}a.signal=n;function t(...T){return(L,D=null,x)=>Object(W.e)(...T.map(P=>P(H=>L.call(D,H),null,x)))}a.any=t;function v(T,L,D){let x=D;return d(T,P=>(x=L(x,P),x))}a.reduce=v;function p(T){let L;const D=new e({onFirstListenerAdd(){L=T(D.fire,D)},onLastListenerRemove(){L.dispose()}});return D.event}function m(T,L,D=100,x=!1,P){let H,I,z,$=0;const fe=new e({leakWarningThreshold:P,onFirstListenerAdd(){H=T(ee=>{$++,I=L(I,ee),x&&!z&&(fe.fire(I),I=void 0),clearTimeout(z),z=setTimeout(()=>{const ye=I;I=void 0,z=void 0,(!x||$>1)&&fe.fire(ye),$=0},D)})},onLastListenerRemove(){H.dispose()}});return fe.event}a.debounce=m;function b(T,L=(D,x)=>D===x){let D=!0,x;return r(T,P=>{const H=D||!L(P,x);return D=!1,x=P,H})}a.latch=b;function _(T,L){return[a.filter(T,L),a.filter(T,D=>!L(D))]}a.split=_;function o(T,L=!1,D=[]){let x=D.slice(),P=T(z=>{x?x.push(z):I.fire(z)});const H=()=>{x&&x.forEach(z=>I.fire(z)),x=null},I=new e({onFirstListenerAdd(){P||(P=T(z=>I.fire(z)))},onFirstListenerDidAdd(){x&&(L?setTimeout(H):H())},onLastListenerRemove(){P&&P.dispose(),P=null}});return I.event}a.buffer=o;class f{constructor(T){this.event=T}map(T){return new f(d(this.event,T))}forEach(T){return new f(s(this.event,T))}filter(T){return new f(r(this.event,T))}reduce(T,L){return new f(v(this.event,T,L))}latch(){return new f(b(this.event))}debounce(T,L=100,D=!1,x){return new f(m(this.event,T,L,D,x))}on(T,L,D){return this.event(T,L,D)}once(T,L,D){return i(this.event)(T,L,D)}}function l(T){return new f(T)}a.chain=l;function h(T,L,D=x=>x){const x=(...z)=>I.fire(D(...z)),P=()=>T.on(L,x),H=()=>T.removeListener(L,x),I=new e({onFirstListenerAdd:P,onLastListenerRemove:H});return I.event}a.fromNodeEventEmitter=h;function E(T,L,D=x=>x){const x=(...z)=>I.fire(D(...z)),P=()=>T.addEventListener(L,x),H=()=>T.removeEventListener(L,x),I=new e({onFirstListenerAdd:P,onLastListenerRemove:H});return I.event}a.fromDOMEventEmitter=E;function y(T){return new Promise(L=>i(T)(L))}a.toPromise=y})(S||(S={}));class O{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${O._idPool++}`}start(a){this._stopWatch=new N.a(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}O._idPool=0;let F=-1;class j{constructor(a,i=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let i=F;if(typeof this.customThreshold=="number"&&(i=this.customThreshold),i<=0||a{const r=this._stacks.get(d)||0;this._stacks.set(d,r-1)}}}class e{constructor(a){var i;this._disposed=!1,this._options=a,this._leakageMon=F>0?new j(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((i=this._options)===null||i===void 0?void 0:i._profName)?new O(this._options._profName):void 0}get event(){return this._event||(this._event=(a,i,d)=>{var s;this._listeners||(this._listeners=new R.a);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const n=this._listeners.push(i?[a,i]:a);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,i);const t=(s=this._leakageMon)===null||s===void 0?void 0:s.check(this._listeners.size),v=Object(W.i)(()=>{if(t&&t(),!this._disposed&&(n(),this._options&&this._options.onLastListenerRemove)){const p=this._listeners&&!this._listeners.isEmpty();p||this._options.onLastListenerRemove(this)}});return d instanceof W.b?d.add(v):Array.isArray(d)&&d.push(v),v}),this._event}fire(a){var i,d;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new R.a);for(let s of this._listeners)this._deliveryQueue.push([s,a]);for((i=this._perfMon)===null||i===void 0||i.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[s,r]=this._deliveryQueue.shift();try{typeof s=="function"?s.call(void 0,r):s[0].call(s[1],r)}catch(n){Object(ue.f)(n)}}(d=this._perfMon)===null||d===void 0||d.stop()}}dispose(){var a,i,d,s,r;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(i=this._deliveryQueue)===null||i===void 0||i.clear(),(s=(d=this._options)===null||d===void 0?void 0:d.onLastListenerRemove)===null||s===void 0||s.call(d),(r=this._leakageMon)===null||r===void 0||r.dispose())}}class w extends e{constructor(a){super(a);this._isPaused=0,this._eventQueue=new R.a,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}class g extends w{constructor(a){var i;super(a);this._delay=(i=a.delay)!==null&&i!==void 0?i:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}class c{constructor(){this.buffers=[]}wrapEvent(a){return(i,d,s)=>a(r=>{const n=this.buffers[this.buffers.length-1];n?n.push(()=>i.call(d,r)):i.call(d,r)},void 0,s)}bufferEvents(a){const i=[];this.buffers.push(i);const d=a();return this.buffers.pop(),i.forEach(s=>s()),d}}class u{constructor(){this.listening=!1,this.inputEvent=S.None,this.inputEventListener=W.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(Ge,be,U){"use strict";(function(ue,W){U.d(be,"b",function(){return d}),U.d(be,"i",function(){return t}),U.d(be,"f",function(){return v}),U.d(be,"d",function(){return p}),U.d(be,"g",function(){return m}),U.d(be,"h",function(){return b}),U.d(be,"c",function(){return _}),U.d(be,"k",function(){return o}),U.d(be,"j",function(){return f}),U.d(be,"a",function(){return l}),U.d(be,"e",function(){return y});var R;const N="en";let S=!1,O=!1,F=!1,j=!1,e=!1,w=!1,g=!1,c,u=N,a,i;const d=typeof self=="object"?self:typeof ue=="object"?ue:{};let s;typeof d.vscode!="undefined"&&typeof d.vscode.process!="undefined"?s=d.vscode.process:typeof W!="undefined"&&(s=W);const r=typeof((R=s==null?void 0:s.versions)===null||R===void 0?void 0:R.electron)=="string"&&s.type==="renderer";if(typeof navigator=="object"&&!r)i=navigator.userAgent,S=i.indexOf("Windows")>=0,O=i.indexOf("Macintosh")>=0,g=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,F=i.indexOf("Linux")>=0,w=!0,c=navigator.language,u=c;else if(typeof s=="object"){S=s.platform==="win32",O=s.platform==="darwin",F=s.platform==="linux",j=F&&!!s.env.SNAP&&!!s.env.SNAP_REVISION,c=N,u=N;const T=s.env.VSCODE_NLS_CONFIG;if(T)try{const L=JSON.parse(T),D=L.availableLanguages["*"];c=L.locale,u=D||N,a=L._translationsConfigFile}catch(L){}e=!0}else console.error("Unable to resolve platform.");let n=0;O?n=1:S?n=3:F&&(n=2);const t=S,v=O,p=F,m=e,b=w,_=g,o=i,f=function(){if(d.setImmediate)return d.setImmediate.bind(d);if(typeof d.postMessage=="function"&&!d.importScripts){let D=[];d.addEventListener("message",P=>{if(P.data&&P.data.vscodeSetImmediateId)for(let H=0,I=D.length;H{const H=++x;D.push({id:H,callback:P}),d.postMessage({vscodeSetImmediateId:H},"*")}}if(typeof(s==null?void 0:s.nextTick)=="function")return s.nextTick.bind(s);const L=Promise.resolve();return D=>L.then(D)}(),l=O||g?2:S?1:3;let h=!0,E=!1;function y(){if(!E){E=!0;const T=new Uint8Array(2);T[0]=1,T[1]=2;const L=new Uint16Array(T.buffer);h=L[0]===(2<<8)+1}return h}}).call(this,U("IyRk"),U("Q2Ig"))},N0LK:function(Ge,be,U){"use strict";U.d(be,"C",function(){return ue}),U.d(be,"v",function(){return R}),U.d(be,"s",function(){return N}),U.d(be,"t",function(){return S}),U.d(be,"U",function(){return O}),U.d(be,"J",function(){return F}),U.d(be,"O",function(){return j}),U.d(be,"p",function(){return e}),U.d(be,"T",function(){return w}),U.d(be,"q",function(){return g}),U.d(be,"N",function(){return c}),U.d(be,"M",function(){return u}),U.d(be,"Q",function(){return a}),U.d(be,"u",function(){return i}),U.d(be,"x",function(){return d}),U.d(be,"I",function(){return s}),U.d(be,"f",function(){return r}),U.d(be,"h",function(){return n}),U.d(be,"g",function(){return t}),U.d(be,"i",function(){return v}),U.d(be,"G",function(){return p}),U.d(be,"H",function(){return m}),U.d(be,"r",function(){return b}),U.d(be,"R",function(){return _}),U.d(be,"d",function(){return o}),U.d(be,"e",function(){return f}),U.d(be,"E",function(){return l}),U.d(be,"F",function(){return h}),U.d(be,"j",function(){return E}),U.d(be,"z",function(){return y}),U.d(be,"K",function(){return L}),U.d(be,"L",function(){return D}),U.d(be,"m",function(){return P}),U.d(be,"k",function(){return I}),U.d(be,"A",function(){return $}),U.d(be,"a",function(){return fe}),U.d(be,"n",function(){return ee}),U.d(be,"l",function(){return ye}),U.d(be,"D",function(){return pe}),U.d(be,"B",function(){return ae}),U.d(be,"b",function(){return se}),U.d(be,"S",function(){return _e}),U.d(be,"o",function(){return te}),U.d(be,"P",function(){return k}),U.d(be,"w",function(){return A}),U.d(be,"c",function(){return C}),U.d(be,"y",function(){return M});function ue(q){return!q||typeof q!="string"?!0:q.trim().length===0}const W=/{(\d+)}/g;function R(q,...de){return de.length===0?q:q.replace(W,function(Te,xe){const Pe=parseInt(xe,10);return isNaN(Pe)||Pe<0||Pe>=de.length?Te:de[Pe]})}function N(q){return q.replace(/[<>&]/g,function(de){switch(de){case"<":return"<";case">":return">";case"&":return"&";default:return de}})}function S(q){return q.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O(q,de=" "){const Te=F(q,de);return j(Te,de)}function F(q,de){if(!q||!de)return q;const Te=de.length;if(Te===0||q.length===0)return q;let xe=0;for(;q.indexOf(de,xe)===xe;)xe=xe+Te;return q.substring(xe)}function j(q,de){if(!q||!de)return q;const Te=de.length,xe=q.length;if(Te===0||xe===0)return q;let Pe=xe,Ne=-1;for(;!(Ne=q.lastIndexOf(de,Pe-1),Ne===-1||Ne+Te!==Pe);){if(Ne===0)return"";Pe=Ne}return q.substring(0,Pe)}function e(q){return q.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function w(q){return q.replace(/\*/g,"")}function g(q,de,Te={}){if(!q)throw new Error("Cannot create regex from empty string");de||(q=S(q)),Te.wholeWord&&(/\B/.test(q.charAt(0))||(q="\\b"+q),/\B/.test(q.charAt(q.length-1))||(q=q+"\\b"));let xe="";return Te.global&&(xe+="g"),Te.matchCase||(xe+="i"),Te.multiline&&(xe+="m"),Te.unicode&&(xe+="u"),new RegExp(q,xe)}function c(q){if(q.source==="^"||q.source==="^$"||q.source==="$"||q.source==="^\\s*$")return!1;const de=q.exec("");return!!(de&&q.lastIndex===0)}function u(q){return(q.global?"g":"")+(q.ignoreCase?"i":"")+(q.multiline?"m":"")+(q.unicode?"u":"")}function a(q){return q.split(/\r\n|\r|\n/)}function i(q){for(let de=0,Te=q.length;de=0;Te--){const xe=q.charCodeAt(Te);if(xe!==32&&xe!==9)return Te}return-1}function r(q,de){return qde?1:0}function n(q,de,Te=0,xe=q.length,Pe=0,Ne=de.length){for(;TeWe)return 1}const Re=xe-Te,Me=Ne-Pe;return ReMe?1:0}function t(q,de){return v(q,de,0,q.length,0,de.length)}function v(q,de,Te=0,xe=q.length,Pe=0,Ne=de.length){for(;Te=128||We>=128)return n(q.toLowerCase(),de.toLowerCase(),Te,xe,Pe,Ne);p(He)&&(He-=32),p(We)&&(We-=32);const Ke=He-We;if(Ke===0)continue;return Ke}const Re=xe-Te,Me=Ne-Pe;return ReMe?1:0}function p(q){return q>=97&&q<=122}function m(q){return q>=65&&q<=90}function b(q,de){return q.length===de.length&&v(q,de)===0}function _(q,de){const Te=de.length;return de.length>q.length?!1:v(q,de,0,Te)===0}function o(q,de){let Te,xe=Math.min(q.length,de.length);for(Te=0;Te1){const xe=q.charCodeAt(de-2);if(l(xe))return E(xe,Te)}return Te}function L(q,de){const Te=B.getInstance(),xe=de,Pe=q.length,Ne=y(q,Pe,de);de+=Ne>=65536?2:1;let Re=Te.getGraphemeBreakType(Ne);for(;de=65536?2:1,Re=He}return de-xe}function D(q,de){const Te=B.getInstance(),xe=de,Pe=T(q,de);de-=Pe>=65536?2:1;let Ne=Te.getGraphemeBreakType(Pe);for(;de>0;){const Re=T(q,de),Me=Te.getGraphemeBreakType(Re);if(C(Me,Ne))break;de-=Re>=65536?2:1,Ne=Me}return xe-de}const x=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function P(q){return x.test(q)}const H=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function I(q){return H.test(q)}const z=/^[\t\n\r\x20-\x7E]*$/;function $(q){return z.test(q)}const fe=/[\u2028\u2029]/;function ee(q){return fe.test(q)}function ye(q){for(let de=0,Te=q.length;de=11904&&q<=55215||q>=63744&&q<=64255||q>=65281&&q<=65374}function ae(q){return q>=127462&&q<=127487||q===8986||q===8987||q===9200||q===9203||q>=9728&&q<=10175||q===11088||q===11093||q>=127744&&q<=128591||q>=128640&&q<=128764||q>=128992&&q<=129003||q>=129280&&q<=129535||q>=129648&&q<=129750}const se=String.fromCharCode(65279);function _e(q){return!!(q&&q.length>0&&q.charCodeAt(0)===65279)}function te(q,de=!1){return q?(de&&(q=q.replace(/\\./g,"")),q.toLowerCase()!==q):!1}function k(q){const de=90-65+1;return q=q%(2*de),qde[3*xe+1])xe=2*xe+1;else return de[3*xe+2];return 0}}B._INSTANCE=null;function K(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function M(q,de){if(q===0)return 0;const Te=ie(q,de);if(Te!==void 0)return Te;const xe=T(de,q);return q-=Ee(xe),q}function ie(q,de){let Te=T(de,q);for(q-=Ee(Te);Oe(Te)||Te===65039||Te===8419;){if(q===0)return;Te=T(de,q),q-=Ee(Te)}if(!ae(Te))return;if(q>=0){const xe=T(de,q);xe===8205&&(q-=Ee(xe))}return q}function Ee(q){return q>=65536?2:1}function Oe(q){return 127995<=q&&q<=127999}},NvD2:function(Ge,be,U){"use strict";U.d(be,"a",function(){return O});var ue=U("Kwbf");function W(F,j){var e=new Set;return F.forEach(function(w){j.has(w)||e.add(w)}),e}function R(F){var j=F||{},e=j.disabled,w=j.disableCheckbox,g=j.checkable;return!!(e||w)||g===!1}function N(F,j,e,w){for(var g=new Set(F),c=new Set,u=0;u<=e;u+=1){var a=j.get(u)||new Set;a.forEach(function(r){var n=r.key,t=r.node,v=r.children,p=v===void 0?[]:v;g.has(n)&&!w(t)&&p.filter(function(m){return!w(m.node)}).forEach(function(m){g.add(m.key)})})}for(var i=new Set,d=e;d>=0;d-=1){var s=j.get(d)||new Set;s.forEach(function(r){var n=r.parent,t=r.node;if(w(t)||!r.parent||i.has(r.parent.key))return;if(w(r.parent.node)){i.add(n.key);return}var v=!0,p=!1;(n.children||[]).filter(function(m){return!w(m.node)}).forEach(function(m){var b=m.key,_=g.has(b);v&&!_&&(v=!1),!p&&(_||c.has(b))&&(p=!0)}),v&&g.add(n.key),p&&c.add(n.key),i.add(n.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(W(c,g))}}function S(F,j,e,w,g){for(var c=new Set(F),u=new Set(j),a=0;a<=w;a+=1){var i=e.get(a)||new Set;i.forEach(function(n){var t=n.key,v=n.node,p=n.children,m=p===void 0?[]:p;!c.has(t)&&!u.has(t)&&!g(v)&&m.filter(function(b){return!g(b.node)}).forEach(function(b){c.delete(b.key)})})}u=new Set;for(var d=new Set,s=w;s>=0;s-=1){var r=e.get(s)||new Set;r.forEach(function(n){var t=n.parent,v=n.node;if(g(v)||!n.parent||d.has(n.parent.key))return;if(g(n.parent.node)){d.add(t.key);return}var p=!0,m=!1;(t.children||[]).filter(function(b){return!g(b.node)}).forEach(function(b){var _=b.key,o=c.has(_);p&&!o&&(p=!1),!m&&(o||u.has(_))&&(m=!0)}),p||c.delete(t.key),m&&u.add(t.key),d.add(t.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(W(u,c))}}function O(F,j,e,w){var g=[],c;w?c=w:c=R;var u=new Set(F.filter(function(s){var r=!!e[s];return r||g.push(s),r})),a=new Map,i=0;Object.keys(e).forEach(function(s){var r=e[s],n=r.level,t=a.get(n);t||(t=new Set,a.set(n,t)),t.add(r),i=Math.max(i,n)}),Object(ue.a)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var d;return j===!0?d=N(u,a,i,c):d=S(u,j.halfCheckedKeys,a,i,c),d}},OZM5:function(Ge,be,U){"use strict";U.d(be,"b",function(){return w}),U.d(be,"a",function(){return g}),U.d(be,"k",function(){return c}),U.d(be,"h",function(){return u}),U.d(be,"i",function(){return a}),U.d(be,"g",function(){return i}),U.d(be,"c",function(){return d}),U.d(be,"d",function(){return s}),U.d(be,"j",function(){return t}),U.d(be,"e",function(){return v}),U.d(be,"f",function(){return p});var ue=U("KQm4"),W=U("U8pU"),R=U("Ff2n"),N=U("q1tI"),S=U.n(N),O=U("Kwbf"),F=U("WaYH"),j=.25,e=2;function w(m,b){var _=m.slice(),o=_.indexOf(b);return o>=0&&_.splice(o,1),_}function g(m,b){var _=m.slice();return _.indexOf(b)===-1&&_.push(b),_}function c(m){return m.split("-")}function u(m,b){return"".concat(m,"-").concat(b)}function a(m){return m&&m.type&&m.type.isTreeNode}function i(m,b){var _=[m],o=b[m];function f(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(h){var E=h.key,y=h.children;_.push(E),f(y)})}return f(o.children),_}function d(m,b){var _=m.clientY,o=b.selectHandle.getBoundingClientRect(),f=o.top,l=o.bottom,h=o.height,E=Math.max(h*j,e);return _<=f+E?-1:_>=l-E?1:0}function s(m,b){if(!m)return;var _=b.multiple;return _?m.slice():m.length?[m[0]]:m}var r=function(b){return b};function n(m,b){if(!m)return[];var _=b||{},o=_.processProps,f=o===void 0?r:o,l=Array.isArray(m)?m:[m];return l.map(function(h){var E=h.children,y=Object(R.a)(h,["children"]),T=n(E,b);return S.a.createElement(F.a,Object.assign({},f(y)),T)})}function t(m){if(!m)return null;var b;if(Array.isArray(m))b={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(W.a)(m)==="object")b={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(O.a)(!1,"`checkedKeys` is not an array or an object"),null;return b}function v(m,b){var _=new Set;function o(f){if(_.has(f))return;var l=b[f];if(!l)return;_.add(f);var h=l.parent,E=l.node;if(E.disabled)return;h&&o(h.key)}return(m||[]).forEach(function(f){o(f)}),Object(ue.a)(_)}function p(m){var b={};return Object.keys(m).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(b[_]=m[_])}),b}},"P/tu":function(Ge,be,U){"use strict";var ue=U("ozfa"),W=U("MJZm"),R=U("0Owb"),N=U("9og8"),S=U("tJVT"),O=U("PpiC"),F=U("WmNS"),j=U.n(F),e=U("q1tI"),w=U.n(e),g=U("WCUW"),c=U("spXi"),u=U.n(c),a=function(d){var s=d.value,r=d.onChange,n=d.defaultValue,t=d.disabled,v=Object(O.a)(d,["value","onChange","defaultValue","disabled"]),p=Object(e.useState)([]),m=Object(S.a)(p,2),b=m[0],_=m[1],o=Object(e.useState)("1"),f=Object(S.a)(o,2),l=f[0],h=f[1];Object(e.useEffect)(function(){E()},[]);var E=function(){var L=Object(N.a)(j.a.mark(function D(){var x,P;return j.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(g.A)({});case 2:x=I.sent,x!=null&&x.data&&(P=[{title:w.a.createElement("div",{title:"\u6839\u76EE\u5F55",className:u.a.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:w.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:y(x.data||[])}],_(P),h("2"));case 4:case"end":return I.stop()}},D)}));return function(){return L.apply(this,arguments)}}(),y=function(D){function x(P){var H=P.children,I=Array.isArray(H)&&H.length>0,z=P==null?void 0:P.group_id;return{title:w.a.createElement("div",{title:P==null?void 0:P.name,className:u.a.name},P==null?void 0:P.name),value:z,key:z,icon:w.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:I?H==null?void 0:H.map(function($){return x($)}):[]}}return D==null?void 0:D.map(function(P){return x(P)})},T=n?{defaultExpandedKeys:[0]}:{selectedKeys:s,defaultExpandedKeys:s};return w.a.createElement("div",{className:u.a.customTree},w.a.createElement(W.a,Object(R.a)({key:l},T,{showIcon:!0,treeData:b,onSelect:r,disabled:t},v)))};be.a=a},Q0Vu:function(Ge,be,U){Ge.exports={flex_box_center:"flex_box_center___3fHaw",flex_space_between:"flex_space_between___1tu3K",flex_box_vertical_center:"flex_box_vertical_center___3kmTT",flex_box_center_end:"flex_box_center_end___19OcD",flex_box_column:"flex_box_column___1aMoy",main:"main___JkLSb",wrap:"wrap___1k_Ib",content:"content___1by-P",programName:"programName___1mMSD",name:"name___2mlTd",directionContentWrap:"directionContentWrap___3qsxQ",directionItem:"directionItem___2aAvu",active:"active___ACZqb",subActive:"subActive___2RkoB",subItem:"subItem___3tJgX",subMenu:"subMenu___Y_7S_",action:"action___xqgFs"}},SAoR:function(Ge,be,U){"use strict";var ue=U("Q9mQ"),W=U("diRs"),R=U("q1tI"),N=U.n(R),S=U("+z73"),O=U.n(S),F=function(e){var w=e.data,g=w===void 0?[]:w,c=e.onClick,u=function(){return g.map(function(d,s){return N.a.createElement("div",{key:s,className:O.a.few},N.a.createElement("b",{title:d.name,style:{color:s===0?"#333333":"#999999"},onClick:function(){return c(d.id)}},d.name),s1&&t5?a():u())};be.a=F},SJMd:function(Ge,be){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var U,ue,W,R=!1,N,S;window.PR_SHOULD_USE_CONTINUATION=!0;var O,F;(function(){var j=window,e=["break,continue,do,else,for,if,return,while"],w=[e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],g=[w,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],c=[g,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],u=[g,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[g,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],i="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",d=[g,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",r=[e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],n=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],t=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],v=[c,a,u,d,s,r,n,t],p=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,m="str",b="kwd",_="com",o="typ",f="lit",l="pun",h="pln",E="tag",y="dec",T="src",L="atn",D="atv",x="nocode",P="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function H(ie){for(var Ee=0,Oe=!1,q=!1,de=0,Te=ie.length;de122||(X<65||re>90||Ve.push([Math.max(65,re)|32,Math.min(X,90)|32]),X<97||re>122||Ve.push([Math.max(97,re)&~32,Math.min(X,122)&~32]))}}Ve.sort(function(De,Ie){return De[0]-Ie[0]||Ie[1]-De[1]});for(var Q=[],oe=[],V=0;Vhe[0]&&(he[1]+1>he[0]&&ne.push("-"),ne.push(Re(he[1])))}return ne.push("]"),ne.join("")}function He(Ke){for(var Be=Ke.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Ve=Be.length,Xe=[],ne=0,V=0;ne=2&&re==="["?Be[ne]=Me(G):re!=="\\"&&(Be[ne]=G.replace(/[a-zA-Z]/g,function(oe){var he=oe.charCodeAt(0);return"["+String.fromCharCode(he&~32,he|32)+"]"}))}return Be.join("")}for(var We=[],de=0,Te=ie.length;de=0;)Oe[We.charAt(Ke)]=He;var Be=He[1],Ve=""+Be;Ne.hasOwnProperty(Ve)||(Pe.push(Be),Ne[Ve]=null)}Pe.push(/[\0-\uffff]/),q=H(Pe)})();var de=Ee.length,Te=function(xe){for(var Pe=xe.sourceCode,Ne=xe.basePos,Re=xe.sourceNode,Me=[Ne,h],He=0,We=Pe.match(q)||[],Ke={},Be=0,Ve=We.length;Be=5&&ne.substring(0,5)==="lang-",G&&!(V&&typeof V[1]=="string")&&(G=!1,ne=T),G||(Ke[Xe]=ne)}var X=He;if(He+=Xe.length,!G)Me.push(Ne+X,ne);else{var Q=V[1],oe=Xe.indexOf(Q),he=oe+Q.length;V[2]&&(he=Xe.length-V[2].length,oe=he-Q.length);var De=ne.substring(5);z(Re,Ne+X,Xe.substring(0,oe),Te,Me),z(Re,Ne+X+oe,Q,k(De,Q),Me),z(Re,Ne+X+he,Xe.substring(he),Te,Me)}}xe.decorations=Me};return Te}function ye(ie){var Ee=[],Oe=[];ie.tripleQuotedStrings?Ee.push([m,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ie.multiLineStrings?Ee.push([m,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ee.push([m,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ie.verbatimStrings&&Oe.push([m,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var q=ie.hashComments;q&&(ie.cStyleComments?(q>1?Ee.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ee.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Oe.push([m,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ee.push([_,/^#[^\r\n]*/,null,"#"])),ie.cStyleComments&&(Oe.push([_,/^\/\/[^\r\n]*/,null]),Oe.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var de=ie.regexLiterals;if(de){var Te=de>1?"":`
\r`,xe=Te?".":"[\\S\\s]",Pe="/(?=[^/*"+Te+"])(?:[^/\\x5B\\x5C"+Te+"]|\\x5C"+xe+"|\\x5B(?:[^\\x5C\\x5D"+Te+"]|\\x5C"+xe+")*(?:\\x5D|$))+/";Oe.push(["lang-regex",RegExp("^"+P+"("+Pe+")")])}var Ne=ie.types;Ne&&Oe.push([o,Ne]);var Re=(""+ie.keywords).replace(/^ | $/g,"");Re.length&&Oe.push([b,new RegExp("^(?:"+Re.replace(/[\s,]+/g,"|")+")\\b"),null]),Ee.push([h,/^\s+/,null,` \r
\xA0`]);var Me="^.[^\\s\\w.$@'\"`/\\\\]*";return ie.regexLiterals&&(Me+="(?!s*/)"),Oe.push([f,/^@[a-z_$][a-z_$@0-9]*/i,null],[o,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[h,/^[a-z_$][a-z_$@0-9]*/i,null],[f,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[h,/^\\[\s\S]?/,null],[l,new RegExp(Me),null]),ee(Ee,Oe)}var pe=ye({keywords:v,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ae(ie,Ee,Oe){for(var q=/(?:^|\s)nocode(?:\s|$)/,de=/\r\n?|\n/,Te=ie.ownerDocument,xe=Te.createElement("li");ie.firstChild;)xe.appendChild(ie.firstChild);var Pe=[xe];function Ne(Be){var Ve=Be.nodeType;if(Ve==1&&!q.test(Be.className))if(Be.nodeName==="br")Re(Be),Be.parentNode&&Be.parentNode.removeChild(Be);else for(var Xe=Be.firstChild;Xe;Xe=Xe.nextSibling)Ne(Xe);else if((Ve==3||Ve==4)&&Oe){var ne=Be.nodeValue,V=ne.match(de);if(V){var G=ne.substring(0,V.index);Be.nodeValue=G;var Z=ne.substring(V.index+V[0].length);if(Z){var re=Be.parentNode;re.insertBefore(Te.createTextNode(Z),Be.nextSibling)}Re(Be),G||Be.parentNode.removeChild(Be)}}}function Re(Be){for(;!Be.nextSibling;)if(Be=Be.parentNode,!Be)return;function Ve(V,G){var Z=G?V.cloneNode(!1):V,re=V.parentNode;if(re){var X=Ve(re,1),Q=V.nextSibling;X.appendChild(Z);for(var oe=Q;oe;oe=Q)Q=oe.nextSibling,X.appendChild(oe)}return Z}for(var Xe=Ve(Be.nextSibling,0),ne;(ne=Xe.parentNode)&&ne.nodeType===1;)Xe=ne;Pe.push(Xe)}for(var Me=0;Me=re&&(Ne+=2),Te>=X&&(He+=2)}}finally{ne&&(ne.style.display=V)}}var _e={};function te(ie,Ee){for(var Oe=Ee.length;--Oe>=0;){var q=Ee[Oe];_e.hasOwnProperty(q)?j.console&&console.warn("cannot override language handler %s",q):_e[q]=ie}}function k(ie,Ee){return ie&&_e.hasOwnProperty(ie)||(ie=/^\s*]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[l,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^