(window.webpackJsonp=window.webpackJsonp||[]).push([[213,5,7,8,10,13],{"+92d":function(Ke,we,F){Ke.exports=F.p+"static/b1.8d46544a.svg"},"+GGh":function(Ke,we){Ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7VXQm4VVXZfvc+5yKzMqiAgpggqGihoBI4Zz+iQA7VX2Fa+GeFmjnmjAZmDlnmDGaDY5KzJmmWAiKIoCihmAN/ySTDvRcF4e691v+s4VvrW2vvcwFB8r/lcy/n7LP32nu9+/3e7/2+tU+CLfwjpaw0NmJfIcRBSYK+Uoq+QNIdEu0AtJMSLaSUABJzZPWn+iUlEiRQb6l37MvsfbOdfs+9qf5htnav6ffsvoP9+mPSsej4+iM0Jr5vPR4aIF0o9po6ziccPx1GnbWQZvzqNfef/rd9j7+uXhPmIqn36XN6H+rf+n/+dTV+2o/6kNq/39YfT72m3le7Vj/Cnq76tx4TGx9tS2Olz5RByc/EZgBNSlm3enU+TAiMkhJHSshtHULchKkrok5WnUY8SQxwNNf2hAmMRWD5ARMG9H4tWAxQ/XHoPQ5kt4cAVBZrHgF2Mw/kePwBYC2ozUDo+OoTFosMr24y7eTpCbY3SzzBZvLN9TMAor/55DMAWYAawHkwanAkBkgejAROvy8POPOe+r/+DL8R2N+14LNZAJNStmpoEGcikWdLKTvpiTbjt0zkJ5z4J5hgDjhiEY01zwyOXAL2spNtZ8GAx5wtAdgxEk14xJh6v3qGOdvFLGlhwW4SN/4YyHRw4lkGWn8DEPsyINkhqG2ILYhBPBNZkEjzOQNcYiILngCYFoAJ387MhQZm8Lq5ERzg1DW078cMZdjPMxyBrTlu+kQAU2GwYXV+shS4HJA7xUwQhjB+J9vwVRIiOZB8fCSgxmGxVriii2+ugmeamD1jINn9EbtE4GiWcdm5hGHa7LOMMQtA4myjgMNkgLmHolDpmMO8Xgh9jOk8Y9kwrMFTZCweBl1YJEC60OrBpc8tlislSNtkg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jswYvrrA3YWza8V+anyzz5HIJuZMX4xGQ7IUOrA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"+ua5":function(Ke,we,F){},"5A5F":function(Ke,we,F){Ke.exports={flex_box_center:"flex_box_center___3fvo9",flex_space_between:"flex_space_between___2dIWe",flex_box_vertical_center:"flex_box_vertical_center___213Et",flex_box_center_end:"flex_box_center_end___1GXlY",flex_box_column:"flex_box_column___2XTWO",wrap:"wrap___1JbzU",addQuestion:"addQuestion___3n7jZ",content:"content___2Crhb",left:"left___12ObT",filterPoint:"filterPoint___1wSyY",filterType:"filterType___32Vjx",btnWarp:"btnWarp___XLUgV",btn:"btn___33IXa",count:"count___2zHIG",btnActive:"btnActive___2vIUq",fold:"fold___26POp",action:"action___m_eZE",filterOrigin:"filterOrigin___OKol4",control:"control___1SAJX",search:"search___2AvaM",searchIcon:"searchIcon___2TozR",table:"table___1Q9AI",tabWarp:"tabWarp___3884f",customTable:"customTable___6Ubut","btn-style-1":"btn-style-1___m4kGi","btn-style-2":"btn-style-2___2uJ8s","btn-style-3":"btn-style-3___3kuYl",right:"right___Ie2u1",statistics:"statistics___TecQK",title:"title___1uK2v",statisticItem:"statisticItem___oBHb3",rate:"rate___15q55",dataName:"dataName___1uxmm",sort:"sort___1hyjY",rankHeader:"rankHeader___3MEZr",rankIcon:"rankIcon___t_Ggc",li:"li___3lR-W",myRecord:"myRecord___3MQJH",recordPrefix:"recordPrefix___3rIwK",mine:"mine___1LgRJ",avatar:"avatar___2X3bF",nickname:"nickname___3uP5f",myRank:"myRank___3GS-w",questionNumber:"questionNumber___3kBy-",titleWarp:"titleWarp___t0Zdh",hov:"hov___30B5q",statusText:"statusText___3pFTN",hovBtn:"hovBtn___3ciGX",tag:"tag___hllWE",problemsclose:"problemsclose___1X9HB",imgsrc:"imgsrc___3koep",sendModal:"sendModal___1P3qc",bottom:"bottom___1gmim",line:"line___psQHn",del:"del___1Qufp"}},"5VLF":function(Ke,we,F){"use strict";var ae,L;function I(j,C,S){var H=function(U,R){return j.js_beautify(U,R)};return H.js=j.js_beautify,H.css=C.css_beautify,H.html=S.html_beautify,H.js_beautify=j.js_beautify,H.css_beautify=C.css_beautify,H.html_beautify=S.html_beautify,H}!(ae=[F("6UM0"),F("TXwP"),F("psGv")],L=function(j,C,S){return I(j,C,S)}.apply(we,ae),L!==void 0&&(Ke.exports=L))},"6+eU":function(Ke,we,F){"use strict";F.d(we,"a",function(){return p});var ae=F("wx14"),L=F("rePB"),I=F("VTBJ"),j=F("1OyB"),C=F("vuIU"),S=F("Ji7U"),H=F("LK+K"),U=F("q1tI"),R=F.n(U),A=F("TSYQ"),y=F.n(A),v=function(g){var h,u="".concat(g.rootPrefixCls,"-item"),r=y()(u,"".concat(u,"-").concat(g.page),(h={},Object(L.a)(h,"".concat(u,"-active"),g.active),Object(L.a)(h,g.className,!!g.className),Object(L.a)(h,"".concat(u,"-disabled"),!g.page),h)),l=function(){g.onClick(g.page)},f=function(x){g.onKeyPress(x,g.onClick,g.page)};return R.a.createElement("li",{title:g.showTitle?g.page:null,className:r,onClick:l,onKeyPress:f,tabIndex:"0"},g.itemRender(g.page,"page",R.a.createElement("a",{rel:"nofollow"},g.page)))},d=v,o={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},n=function(E){Object(S.a)(h,E);var g=Object(H.a)(h);function h(){var u;Object(j.a)(this,h);for(var r=arguments.length,l=new Array(r),f=0;f=0||c.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;u.setState({goInputText:""}),O(u.getValidValue())},u.go=function(c){var x=u.state.goInputText;if(x==="")return;(c.keyCode===o.ENTER||c.type==="click")&&(u.setState({goInputText:""}),u.props.quickGo(u.getValidValue()))},u}return Object(C.a)(h,[{key:"getValidValue",value:function(){var r=this.state,l=r.goInputText,f=r.current;return!l||isNaN(l)?f:Number(l)}},{key:"getPageSizeOptions",value:function(){var r=this.props,l=r.pageSize,f=r.pageSizeOptions;return f.some(function(c){return c.toString()===l.toString()})?f:f.concat([l.toString()]).sort(function(c,x){var D=isNaN(Number(c))?0:Number(c),O=isNaN(Number(x))?0:Number(x);return D-O})}},{key:"render",value:function(){var r=this,l=this.props,f=l.pageSize,c=l.locale,x=l.rootPrefixCls,D=l.changeSize,O=l.quickGo,B=l.goButton,w=l.selectComponentClass,W=l.buildOptionText,P=l.selectPrefixCls,z=l.disabled,Q=this.state.goInputText,re="".concat(x,"-options"),le=w,be=null,ye=null,ie=null;if(!D&&!O)return null;var xe=this.getPageSizeOptions();if(D&&le){var Ae=xe.map(function(fe,Z){return R.a.createElement(le.Option,{key:Z,value:fe.toString()},(W||r.buildOptionText)(fe))});be=R.a.createElement(le,{disabled:z,prefixCls:P,showSearch:!1,className:"".concat(re,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(f||xe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Z){return Z.parentNode}},Ae)}return O&&(B&&(ie=typeof B=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:z,className:"".concat(re,"-quick-jumper-button")},c.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),ye=R.a.createElement("div",{className:"".concat(re,"-quick-jumper")},c.jump_to,R.a.createElement("input",{disabled:z,type:"text",value:Q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),c.page,ie)),R.a.createElement("li",{className:"".concat(re)},be,ye)}}]),h}(R.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var a=n,s=F("N2Kk");function e(){}function t(E){return typeof E=="number"&&isFinite(E)&&Math.floor(E)===E}function i(E,g,h){return h}function T(E,g,h){var u=typeof E=="undefined"?g.pageSize:E;return Math.floor((h.total-1)/u)+1}var _=function(E){Object(S.a)(h,E);var g=Object(H.a)(h);function h(u){var r;Object(j.a)(this,h),r=g.call(this,u),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(T(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(D,O){var B=r.props.prefixCls,w=D||R.a.createElement("button",{type:"button","aria-label":O,className:"".concat(B,"-item-link")});return typeof D=="function"&&(w=R.a.createElement(D,Object(I.a)({},r.props))),w},r.savePaginationNode=function(D){r.paginationNode=D},r.isValid=function(D){return t(D)&&D!==r.state.current},r.shouldDisplayQuickJumper=function(){var D=r.props,O=D.showQuickJumper,B=D.pageSize,w=D.total;return w<=B?!1:O},r.handleKeyDown=function(D){(D.keyCode===o.ARROW_UP||D.keyCode===o.ARROW_DOWN)&&D.preventDefault()},r.handleKeyUp=function(D){var O=r.getValidValue(D),B=r.state.currentInputValue;O!==B&&r.setState({currentInputValue:O}),D.keyCode===o.ENTER?r.handleChange(O):D.keyCode===o.ARROW_UP?r.handleChange(O-1):D.keyCode===o.ARROW_DOWN&&r.handleChange(O+1)},r.changePageSize=function(D){var O=r.state.current,B=T(D,r.state,r.props);O=O>B?B:O,B===0&&(O=r.state.current),typeof D=="number"&&("pageSize"in r.props||r.setState({pageSize:D}),"current"in r.props||r.setState({current:O,currentInputValue:O})),r.props.onShowSizeChange(O,D),"onChange"in r.props&&r.props.onChange&&r.props.onChange(O,D)},r.handleChange=function(D){var O=r.props.disabled,B=D;if(r.isValid(B)&&!O){var w=T(void 0,r.state,r.props);B>w?B=w:B<1&&(B=1),"current"in r.props||r.setState({current:B,currentInputValue:B});var W=r.state.pageSize;return r.props.onChange(B,W),B}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?B-2:0),W=2;W=f?x=f:x=Number(l),x}},{key:"getShowSizeChanger",value:function(){var r=this.props,l=r.showSizeChanger,f=r.total,c=r.totalBoundaryShowSizeChanger;return typeof l!="undefined"?l:f>c}},{key:"renderPrev",value:function(r){var l=this.props,f=l.prevIcon,c=l.itemRender,x=c(r,"prev",this.getItemIcon(f,"prev page")),D=!this.hasPrev();return Object(U.isValidElement)(x)?Object(U.cloneElement)(x,{disabled:D}):x}},{key:"renderNext",value:function(r){var l=this.props,f=l.nextIcon,c=l.itemRender,x=c(r,"next",this.getItemIcon(f,"next page")),D=!this.hasNext();return Object(U.isValidElement)(x)?Object(U.cloneElement)(x,{disabled:D}):x}},{key:"render",value:function(){var r=this,l=this.props,f=l.prefixCls,c=l.className,x=l.style,D=l.disabled,O=l.hideOnSinglePage,B=l.total,w=l.locale,W=l.showQuickJumper,P=l.showLessItems,z=l.showTitle,Q=l.showTotal,re=l.simple,le=l.itemRender,be=l.showPrevNextJumpers,ye=l.jumpPrevIcon,ie=l.jumpNextIcon,xe=l.selectComponentClass,Ae=l.selectPrefixCls,fe=l.pageSizeOptions,Z=this.state,Ue=Z.current,$e=Z.pageSize,tt=Z.currentInputValue;if(O===!0&&B<=$e)return null;var Qe=T(void 0,this.state,this.props),it=[],Pe=null,We=null,Je=null,et=null,Ye=null,ze=W&&W.goButton,He=P?1:2,ft=Ue-1>0?Ue-1:0,ht=Ue+1=He*2&&Ue!==1+2&&(it[0]=Object(U.cloneElement)(it[0],{className:"".concat(f,"-item-after-jump-prev")}),it.unshift(Pe)),Qe-Ue>=He*2&&Ue!==Qe-2&&(it[it.length-1]=Object(U.cloneElement)(it[it.length-1],{className:"".concat(f,"-item-before-jump-next")}),it.push(We)),De!==1&&it.unshift(Je),Ne!==Qe&&it.push(et)}var ue=null;Q&&(ue=R.a.createElement("li",{className:"".concat(f,"-total-text")},Q(B,[B===0?0:(Ue-1)*$e+1,Ue*$e>B?B:Ue*$e])));var ne=!this.hasPrev()||!Qe,te=!this.hasNext()||!Qe;return R.a.createElement("ul",Object(ae.a)({className:y()(f,c,Object(L.a)({},"".concat(f,"-disabled"),D)),style:x,unselectable:"unselectable",ref:this.savePaginationNode},lt),ue,R.a.createElement("li",{title:z?w.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(f,"-prev"),Object(L.a)({},"".concat(f,"-disabled"),ne)),"aria-disabled":ne},this.renderPrev(ft)),it,R.a.createElement("li",{title:z?w.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(f,"-next"),Object(L.a)({},"".concat(f,"-disabled"),te)),"aria-disabled":te},this.renderNext(ht)),R.a.createElement(a,{disabled:D,locale:w,rootPrefixCls:f,selectComponentClass:xe,selectPrefixCls:Ae,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ue,pageSize:$e,pageSizeOptions:fe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ze}))}}],[{key:"getDerivedStateFromProps",value:function(r,l){var f={};if("current"in r&&(f.current=r.current,r.current!==l.current&&(f.currentInputValue=f.current)),"pageSize"in r&&r.pageSize!==l.pageSize){var c=l.current,x=T(r.pageSize,l,r);c=c>x?x:c,"current"in r||(f.current=c,f.currentInputValue=c),f.pageSize=r.pageSize}return f}}]),h}(R.a.Component);_.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:e,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:e,locale:s.a,style:{},itemRender:i,totalBoundaryShowSizeChanger:50};var p=_},"6RRn":function(Ke,we,F){"use strict";var ae=F("wCXF"),L=F("n6Qo");F.d(we,"b",function(){return L.a});var I=F("IBYe"),j=F("6eGT"),C=F("hW8S");F.d(we,"a",function(){return C.a}),we.c=ae.b},"6UM0":function(Ke,we,F){var ae,L;(function(){var I;(function(){"use strict";var C=[function(R,A,y){var v=y(1).Beautifier,d=y(5).Options;function o(n,a){var s=new v(n,a);return s.beautify()}R.exports=o,R.exports.defaultOptions=function(){return new d}},function(R,A,y){var v=y(2).Output,d=y(3).Token,o=y(4),n=y(5).Options,a=y(7).Tokenizer,s=y(7).line_starters,e=y(7).positionable_operators,t=y(7).TOKEN;function i(P,z){return z.indexOf(P)!==-1}function T(P){return P.replace(/^\s+/g,"")}function _(P){for(var z={},Q=0;QQ&&(Q=P.line_indent_level));var re={mode:z,parent:P,last_token:P?P.last_token:new d(t.START_BLOCK,""),last_word:P?P.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:Q,alignment:0,line_indent_level:P?P.line_indent_level:Q,start_line_index:this._output.get_line_number(),ternary_depth:0};return re},w.prototype._reset=function(P){var z=P.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new v(this._options,z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(l.BlockStatement);var Q=new a(P,this._options);return this._tokens=Q.tokenize(),P},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P,z=this._reset(this._source_text),Q=this._options.eol;this._options.eol==="auto"&&(Q=`
`,z&&o.lineBreak.test(z||"")&&(Q=z.match(o.lineBreak)[0]));for(var re=this._tokens.next();re;)this.handle_token(re),this._last_last_text=this._flags.last_token.text,this._flags.last_token=re,re=this._tokens.next();return P=this._output.get_code(Q),P},w.prototype.handle_token=function(P,z){P.type===t.START_EXPR?this.handle_start_expr(P):P.type===t.END_EXPR?this.handle_end_expr(P):P.type===t.START_BLOCK?this.handle_start_block(P):P.type===t.END_BLOCK?this.handle_end_block(P):P.type===t.WORD?this.handle_word(P):P.type===t.RESERVED?this.handle_word(P):P.type===t.SEMICOLON?this.handle_semicolon(P):P.type===t.STRING?this.handle_string(P):P.type===t.EQUALS?this.handle_equals(P):P.type===t.OPERATOR?this.handle_operator(P):P.type===t.COMMA?this.handle_comma(P):P.type===t.BLOCK_COMMENT?this.handle_block_comment(P,z):P.type===t.COMMENT?this.handle_comment(P,z):P.type===t.DOT?this.handle_dot(P):P.type===t.EOF?this.handle_eof(P):P.type===t.UNKNOWN?this.handle_unknown(P,z):this.handle_unknown(P,z)},w.prototype.handle_whitespace_and_comments=function(P,z){var Q=P.newlines,re=this._options.keep_array_indentation&&x(this._flags.mode);if(P.comments_before)for(var le=P.comments_before.next();le;)this.handle_whitespace_and_comments(le,z),this.handle_token(le,z),le=P.comments_before.next();if(re)for(var be=0;be0,z);else if(this._options.max_preserve_newlines&&Q>this._options.max_preserve_newlines&&(Q=this._options.max_preserve_newlines),this._options.preserve_newlines&&Q>1){this.print_newline(!1,z);for(var ye=1;ye0&&(!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))},w.prototype.set_mode=function(P){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,P),this._flags=this.create_flags(this._previous_flags,P),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},w.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===l.Statement&&f(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},w.prototype.start_of_object_property=function(){return this._flags.parent.mode===l.ObjectLiteral&&this._flags.mode===l.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"]))},w.prototype.start_of_statement=function(P){var z=!1;return z=z||E(this._flags.last_token,["var","let","const"])&&P.type===t.WORD,z=z||p(this._flags.last_token,"do"),z=z||!(this._flags.parent.mode===l.ObjectLiteral&&this._flags.mode===l.Statement)&&E(this._flags.last_token,W)&&!P.newlines,z=z||p(this._flags.last_token,"else")&&!(p(P,"if")&&!P.comments_before),z=z||this._flags.last_token.type===t.END_EXPR&&(this._previous_flags.mode===l.ForInitializer||this._previous_flags.mode===l.Conditional),z=z||this._flags.last_token.type===t.WORD&&this._flags.mode===l.BlockStatement&&!this._flags.in_case&&!(P.text==="--"||P.text==="++")&&this._last_last_text!=="function"&&P.type!==t.WORD&&P.type!==t.RESERVED,z=z||this._flags.mode===l.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"])),z?(this.set_mode(l.Statement),this.indent(),this.handle_whitespace_and_comments(P,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P,E(P,["do","for","if","while"])),!0):!1},w.prototype.handle_start_expr=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P);var z=l.Expression;if(P.text==="["){if(this._flags.last_token.type===t.WORD||this._flags.last_token.text===")"){E(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(P),this.set_mode(z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}z=l.ArrayLiteral,x(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())),i(this._flags.last_token.type,[t.START_EXPR,t.END_EXPR,t.WORD,t.OPERATOR,t.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===t.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,z=l.ForInitializer):i(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,z=l.Conditional):i(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&P.whitespace_before===""?this._output.space_before_token=!1:(i(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===t.EQUALS||this._flags.last_token.type===t.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P);else if(this._flags.last_token.type===t.WORD){this._output.space_before_token=!1;var Q=this._tokens.peek(-3);if(this._options.space_after_named_function&&Q){var re=this._tokens.peek(-4);E(Q,["async","function"])||Q.text==="*"&&E(re,["async","function"])?this._output.space_before_token=!0:this._flags.mode===l.ObjectLiteral?(Q.text==="{"||Q.text===","||Q.text==="*"&&(re.text==="{"||re.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(P);(this._flags.last_token.type===t.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(i(this._last_last_text,["function","yield"])||this._flags.mode===l.ObjectLiteral&&i(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===t.START_BLOCK?this.print_newline():(this._flags.last_token.type===t.END_EXPR||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===t.COMMA)&&this.allow_wrap_or_preserved_newline(P,P.newlines),this.print_token(P),this.set_mode(z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},w.prototype.handle_end_expr=function(P){for(;this._flags.mode===l.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(P,P.text==="]"&&x(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===t.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(P),this.restore_mode(),f(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===l.Conditional&&(this._previous_flags.mode=l.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},w.prototype.handle_start_block=function(P){this.handle_whitespace_and_comments(P);var z=this._tokens.peek(),Q=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===t.END_EXPR?(this.set_mode(l.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(l.BlockStatement):Q&&(i(Q.text,[":",","])&&i(z.type,[t.STRING,t.WORD,t.RESERVED])||i(z.text,["get","set","..."])&&i(Q.type,[t.WORD,t.RESERVED]))?i(this._last_last_text,["class","interface"])&&!i(Q.text,[":",","])?this.set_mode(l.BlockStatement):this.set_mode(l.ObjectLiteral):this._flags.last_token.type===t.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(l.BlockStatement):i(this._flags.last_token.type,[t.EQUALS,t.START_EXPR,t.COMMA,t.OPERATOR])||E(this._flags.last_token,["return","throw","import","default"])?this.set_mode(l.ObjectLiteral):this.set_mode(l.BlockStatement),this._flags.last_token&&(E(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var re=!z.comments_before&&z.text==="}",le=re&&this._flags.last_word==="function"&&this._flags.last_token.type===t.END_EXPR;if(this._options.brace_preserve_inline){var be=0,ye=null;this._flags.inline_frame=!0;do if(be+=1,ye=this._tokens.peek(be-1),ye.newlines){this._flags.inline_frame=!1;break}while(ye.type!==t.EOF&&!(ye.type===t.END_BLOCK&&ye.opened===P))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==t.OPERATOR&&(le||this._flags.last_token.type===t.EQUALS||E(this._flags.last_token,g)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(x(this._previous_flags.mode)&&(this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.COMMA)&&((this._flags.last_token.type===t.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(P),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==t.OPERATOR&&this._flags.last_token.type!==t.START_EXPR&&(this._flags.last_token.type===t.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(P),this.indent(),!re&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},w.prototype.handle_end_block=function(P){for(this.handle_whitespace_and_comments(P);this._flags.mode===l.Statement;)this.restore_mode();var z=this._flags.last_token.type===t.START_BLOCK;this._flags.inline_frame&&!z?this._output.space_before_token=!0:this._options.brace_style==="expand"?z||this.print_newline():z||(x(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(P)},w.prototype.handle_word=function(P){if(P.type===t.RESERVED){if(i(P.text,["set","get"])&&this._flags.mode!==l.ObjectLiteral)P.type=t.WORD;else if(P.text==="import"&&i(this._tokens.peek().text,["(","."]))P.type=t.WORD;else if(i(P.text,["as","from"])&&!this._flags.import_block)P.type=t.WORD;else if(this._flags.mode===l.ObjectLiteral){var z=this._tokens.peek();z.text===":"&&(P.type=t.WORD)}}if(this.start_of_statement(P)?E(this._flags.last_token,["var","let","const"])&&P.type===t.WORD&&(this._flags.declaration_statement=!0):P.newlines&&!D(this._flags.mode)&&(this._flags.last_token.type!==t.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==t.EQUALS&&(this._options.preserve_newlines||!E(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(P),this.print_newline()):this.handle_whitespace_and_comments(P),this._flags.do_block&&!this._flags.do_while)if(p(P,"while")){this._output.space_before_token=!0,this.print_token(P),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&&p(P,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===l.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&E(P,["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(P),this._flags.in_case=!0;return}if((this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P)),p(P,"function")){(i(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(i(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===t.OPERATOR))&&(!this._output.just_added_blankline()&&!P.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD?E(this._flags.last_token,["get","set","new","export"])||E(this._flags.last_token,W)?this._output.space_before_token=!0:p(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===t.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(D(this._flags.mode)||x(this._flags.mode))||this.print_newline(),this.print_token(P),this._flags.last_word=P.text;return}var Q="NONE";if(this._flags.last_token.type===t.END_BLOCK?this._previous_flags.inline_frame?Q="SPACE":E(P,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines?Q="NEWLINE":(Q="SPACE",this._output.space_before_token=!0):Q="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&this._flags.mode===l.BlockStatement?Q="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&D(this._flags.mode)?Q="SPACE":this._flags.last_token.type===t.STRING?Q="NEWLINE":this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD||this._flags.last_token.text==="*"&&(i(this._last_last_text,["function","yield"])||this._flags.mode===l.ObjectLiteral&&i(this._last_last_text,["{",","]))?Q="SPACE":this._flags.last_token.type===t.START_BLOCK?this._flags.inline_frame?Q="SPACE":Q="NEWLINE":this._flags.last_token.type===t.END_EXPR&&(this._output.space_before_token=!0,Q="NEWLINE"),E(P,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?Q="SPACE":Q="NEWLINE"),E(P,["else","catch","finally"]))if((!(this._flags.last_token.type===t.END_BLOCK&&this._previous_flags.mode===l.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var re=this._output.current_line;re.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else Q==="NEWLINE"?E(this._flags.last_token,g)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&E(P,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==t.END_EXPR?(this._flags.last_token.type!==t.START_EXPR||!E(P,["var","let","const"]))&&this._flags.last_token.text!==":"&&(p(P,"if")&&p(P.previous,"else")?this._output.space_before_token=!0:this.print_newline()):E(P,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():Q==="SPACE"&&(this._output.space_before_token=!0);P.previous&&(P.previous.type===t.WORD||P.previous.type===t.RESERVED)&&(this._output.space_before_token=!0),this.print_token(P),this._flags.last_word=P.text,P.type===t.RESERVED&&(P.text==="do"?this._flags.do_block=!0:P.text==="if"?this._flags.if_block=!0:P.text==="import"?this._flags.import_block=!0:this._flags.import_block&&p(P,"from")&&(this._flags.import_block=!1))},w.prototype.handle_semicolon=function(P){this.start_of_statement(P)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(P);for(var z=this._tokens.peek();this._flags.mode===l.Statement&&!(this._flags.if_block&&p(z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(P)},w.prototype.handle_string=function(P){P.text.startsWith("`")&&P.newlines===0&&P.whitespace_before===""&&(P.previous.text===")"||this._flags.last_token.type===t.WORD)||(this.start_of_statement(P)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(P),this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P):P.text.startsWith("`")&&this._flags.last_token.type===t.END_EXPR&&(P.previous.text==="]"||P.previous.text===")")&&P.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(P)},w.prototype.handle_equals=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0},w.prototype.handle_comma=function(P){this.handle_whitespace_and_comments(P,!0),this.print_token(P),this._output.space_before_token=!0,this._flags.declaration_statement?(D(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(P)):this._flags.mode===l.ObjectLiteral||this._flags.mode===l.Statement&&this._flags.parent.mode===l.ObjectLiteral?(this._flags.mode===l.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)},w.prototype.handle_operator=function(P){var z=P.text==="*"&&(E(this._flags.last_token,["function","yield"])||i(this._flags.last_token.type,[t.START_BLOCK,t.COMMA,t.END_BLOCK,t.SEMICOLON])),Q=i(P.text,["-","+"])&&(i(this._flags.last_token.type,[t.START_BLOCK,t.START_EXPR,t.EQUALS,t.OPERATOR])||i(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(P)){var re=!z;this.handle_whitespace_and_comments(P,re)}if(P.text==="*"&&this._flags.last_token.type===t.DOT){this.print_token(P);return}if(P.text==="::"){this.print_token(P);return}if(this._flags.last_token.type===t.OPERATOR&&i(this._options.operator_position,r)&&this.allow_wrap_or_preserved_newline(P),P.text===":"&&this._flags.in_case){this.print_token(P),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==t.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 le=!0,be=!0,ye=!1;if(P.text===":"?this._flags.ternary_depth===0?le=!1:(this._flags.ternary_depth-=1,ye=!0):P.text==="?"&&(this._flags.ternary_depth+=1),!Q&&!z&&this._options.preserve_newlines&&i(P.text,e)){var ie=P.text===":",xe=ie&&ye,Ae=ie&&!ye;switch(this._options.operator_position){case u.before_newline:this._output.space_before_token=!Ae,this.print_token(P),(!ie||xe)&&this.allow_wrap_or_preserved_newline(P),this._output.space_before_token=!0;return;case u.after_newline:this._output.space_before_token=!0,!ie||xe?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(P):this._output.space_before_token=!1,this.print_token(P),this._output.space_before_token=!0;return;case u.preserve_newline:Ae||this.allow_wrap_or_preserved_newline(P),le=!(this._output.just_added_newline()||Ae),this._output.space_before_token=le,this.print_token(P),this._output.space_before_token=!0;return}}if(z){this.allow_wrap_or_preserved_newline(P),le=!1;var fe=this._tokens.peek();be=fe&&i(fe.type,[t.WORD,t.RESERVED])}else if(P.text==="...")this.allow_wrap_or_preserved_newline(P),le=this._flags.last_token.type===t.START_BLOCK,be=!1;else if(i(P.text,["--","++","!","~"])||Q){if((this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR)&&this.allow_wrap_or_preserved_newline(P),le=!1,be=!1,P.newlines&&(P.text==="--"||P.text==="++"||P.text==="~")){var Z=E(this._flags.last_token,g)&&P.newlines;Z&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Z,!0)}this._flags.last_token.text===";"&&D(this._flags.mode)&&(le=!0),this._flags.last_token.type===t.RESERVED?le=!0:this._flags.last_token.type===t.END_EXPR?le=!(this._flags.last_token.text==="]"&&(P.text==="--"||P.text==="++")):this._flags.last_token.type===t.OPERATOR&&(le=i(P.text,["--","-","++","+"])&&i(this._flags.last_token.text,["--","-","++","+"]),i(P.text,["+","-"])&&i(this._flags.last_token.text,["--","++"])&&(be=!0)),(this._flags.mode===l.BlockStatement&&!this._flags.inline_frame||this._flags.mode===l.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||le,this.print_token(P),this._output.space_before_token=be},w.prototype.handle_block_comment=function(P,z){if(this._output.raw){this._output.add_raw_token(P),P.directives&&P.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(P.directives){this.print_newline(!1,z),this.print_token(P),P.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!o.newline.test(P.text)&&!P.newlines){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0;return}else this.print_block_commment(P,z)},w.prototype.print_block_commment=function(P,z){var Q=c(P.text),re,le=!1,be=!1,ye=P.whitespace_before,ie=ye.length;if(this.print_newline(!1,z),this.print_token_line_indentation(P),this._output.add_token(Q[0]),this.print_newline(!1,z),Q.length>1){for(Q=Q.slice(1),le=O(Q,"*"),be=B(Q,ye),le&&(this._flags.alignment=1),re=0;re=0;o--)if(this.__items[o].match(d))return!0;return!1},A.prototype.set_indent=function(d,o){this.is_empty()&&(this.__indent_count=d||0,this.__alignment_count=o||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},A.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)},A.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},A.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var d=this.__parent.current_line;return d.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),d.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),d.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,d.__items[0]===" "&&(d.__items.splice(0,1),d.__character_count-=1),!0}return!1},A.prototype.is_empty=function(){return this.__items.length===0},A.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},A.prototype.push=function(d){this.__items.push(d);var o=d.lastIndexOf(`
`);o!==-1?this.__character_count=d.length-o:this.__character_count+=d.length},A.prototype.pop=function(){var d=null;return this.is_empty()||(d=this.__items.pop(),this.__character_count-=d.length),d},A.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},A.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},A.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},A.prototype.toString=function(){var d="";return this.is_empty()?this.__parent.indent_empty_lines&&(d=this.__parent.get_indent_string(this.__indent_count)):(d=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),d+=this.__items.join("")),d};function y(d,o){this.__cache=[""],this.__indent_size=d.indent_size,this.__indent_string=d.indent_char,d.indent_with_tabs||(this.__indent_string=new Array(d.indent_size+1).join(d.indent_char)),o=o||"",d.indent_level>0&&(o=new Array(d.indent_level+1).join(this.__indent_string)),this.__base_string=o,this.__base_string_length=o.length}y.prototype.get_indent_size=function(d,o){var n=this.__base_string_length;return o=o||0,d<0&&(n=0),n+=d*this.__indent_size,n+=o,n},y.prototype.get_indent_string=function(d,o){var n=this.__base_string;return o=o||0,d<0&&(d=0,n=""),o+=d*this.__indent_size,this.__ensure_cache(o),n+=this.__cache[o],n},y.prototype.__ensure_cache=function(d){for(;d>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var d=this.__cache.length,o=0,n="";this.__indent_size&&d>=this.__indent_size&&(o=Math.floor(d/this.__indent_size),d-=o*this.__indent_size,n=new Array(o+1).join(this.__indent_string)),d&&(n+=new Array(d+1).join(" ")),this.__cache.push(n)};function v(d,o){this.__indent_cache=new y(d,o),this.raw=!1,this._end_with_newline=d.end_with_newline,this.indent_size=d.indent_size,this.wrap_line_length=d.wrap_line_length,this.indent_empty_lines=d.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new A(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}v.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},v.prototype.get_line_number=function(){return this.__lines.length},v.prototype.get_indent_string=function(d,o){return this.__indent_cache.get_indent_string(d,o)},v.prototype.get_indent_size=function(d,o){return this.__indent_cache.get_indent_size(d,o)},v.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},v.prototype.add_new_line=function(d){return this.is_empty()||!d&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},v.prototype.get_code=function(d){this.trim(!0);var o=this.current_line.pop();o&&(o[o.length-1]===`
`&&(o=o.replace(/\n+$/g,"")),this.current_line.push(o)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
`);return d!==`
`&&(n=n.replace(/[\n]/g,d)),n},v.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},v.prototype.set_indent=function(d,o){return d=d||0,o=o||0,this.next_line.set_indent(d,o),this.__lines.length>1?(this.current_line.set_indent(d,o),!0):(this.current_line.set_indent(),!1)},v.prototype.add_raw_token=function(d){for(var o=0;o1&&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},v.prototype.just_added_newline=function(){return this.current_line.is_empty()},v.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},v.prototype.ensure_empty_line_above=function(d,o){for(var n=this.__lines.length-2;n>=0;){var a=this.__lines[n];if(a.is_empty())break;if(a.item(0).indexOf(d)!==0&&a.item(-1)!==o){this.__lines.splice(n+1,0,new A(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},R.exports.Output=v},function(R){function A(y,v,d,o){this.type=y,this.text=v,this.comments_before=null,this.newlines=d||0,this.whitespace_before=o||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}R.exports.Token=A},function(R,A){var y="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",v="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",d="\\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",o="\\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",n="(?:\\\\u[0-9a-fA-F]{4}|["+y+d+"])",a="(?:\\\\u[0-9a-fA-F]{4}|["+v+d+o+"])*";A.identifier=new RegExp(n+a,"g"),A.identifierStart=new RegExp(n),A.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+v+d+o+"])+");var s=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;A.newline=/[\n\r\u2028\u2029]/,A.lineBreak=new RegExp(`\r
|`+A.newline.source),A.allLineBreaks=new RegExp(A.lineBreak.source,"g")},function(R,A,y){var v=y(6).Options,d=["before-newline","after-newline","preserve-newline"];function o(n){v.call(this,n,"js");var a=this.raw_options.brace_style||null;a==="expand-strict"?this.raw_options.brace_style="expand":a==="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 e=0;e>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),h=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";h=h.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),h="\\?\\.(?!\\d) "+h,h=h.replace(/ /g,"|");var u=new RegExp(h),r="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),l=r.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),f=new RegExp("^(?:"+l.join("|")+")$"),c,x=function(O,B){d.call(this,O,B),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var w=new s(this._input),W=new e(this._input).read_options(this._options);this.__patterns={template:W,identifier:W.starting_with(a.identifier).matching(a.identifierMatch),number:w.matching(_),punct:w.matching(u),comment:w.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:w.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:w.matching(//),include:w.starting_with(/#include/).until_after(a.lineBreak),shebang:w.starting_with(/#!/).until_after(a.lineBreak),xml:w.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:W.until(/['\\\n\r\u2028\u2029]/),double_quote:W.until(/["\\\n\r\u2028\u2029]/),template_text:W.until(/[`\\$]/),template_expression:W.until(/[`}\\]/)}};x.prototype=new d,x.prototype._is_comment=function(O){return O.type===i.COMMENT||O.type===i.BLOCK_COMMENT||O.type===i.UNKNOWN},x.prototype._is_opening=function(O){return O.type===i.START_BLOCK||O.type===i.START_EXPR},x.prototype._is_closing=function(O,B){return(O.type===i.END_BLOCK||O.type===i.END_EXPR)&&B&&(O.text==="]"&&B.text==="["||O.text===")"&&B.text==="("||O.text==="}"&&B.text==="{")},x.prototype._reset=function(){c=!1},x.prototype._get_next_token=function(O,B){var w=null;this._readWhitespace();var W=this._input.peek();return W===null?this._create_token(i.EOF,""):(w=w||this._read_non_javascript(W),w=w||this._read_string(W),w=w||this._read_word(O),w=w||this._read_singles(W),w=w||this._read_comment(W),w=w||this._read_regexp(W,O),w=w||this._read_xml(W,O),w=w||this._read_punctuation(),w=w||this._create_token(i.UNKNOWN,this._input.next()),w)},x.prototype._read_word=function(O){var B;if(B=this.__patterns.identifier.read(),B!=="")return B=B.replace(a.allLineBreaks,`
`),!(O.type===i.DOT||O.type===i.RESERVED&&(O.text==="set"||O.text==="get"))&&f.test(B)?(B==="in"||B==="of")&&(O.type===i.WORD||O.type===i.STRING)?this._create_token(i.OPERATOR,B):this._create_token(i.RESERVED,B):this._create_token(i.WORD,B);if(B=this.__patterns.number.read(),B!=="")return this._create_token(i.WORD,B)},x.prototype._read_singles=function(O){var B=null;return O==="("||O==="["?B=this._create_token(i.START_EXPR,O):O===")"||O==="]"?B=this._create_token(i.END_EXPR,O):O==="{"?B=this._create_token(i.START_BLOCK,O):O==="}"?B=this._create_token(i.END_BLOCK,O):O===";"?B=this._create_token(i.SEMICOLON,O):O==="."&&E.test(this._input.peek(1))?B=this._create_token(i.DOT,O):O===","&&(B=this._create_token(i.COMMA,O)),B&&this._input.next(),B},x.prototype._read_punctuation=function(){var O=this.__patterns.punct.read();if(O!=="")return O==="="?this._create_token(i.EQUALS,O):O==="?."?this._create_token(i.DOT,O):this._create_token(i.OPERATOR,O)},x.prototype._read_non_javascript=function(O){var B="";if(O==="#"){if(this._is_first_token()&&(B=this.__patterns.shebang.read(),B))return this._create_token(i.UNKNOWN,B.trim()+`
`);if(B=this.__patterns.include.read(),B)return this._create_token(i.UNKNOWN,B.trim()+`
`);O=this._input.next();var w="#";if(this._input.hasNext()&&this._input.testChar(p)){do O=this._input.next(),w+=O;while(this._input.hasNext()&&O!=="#"&&O!=="=");return O==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(w+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(w+="{}",this._input.next(),this._input.next())),this._create_token(i.WORD,w)}this._input.back()}else if(O==="<"&&this._is_first_token()){if(B=this.__patterns.html_comment_start.read(),B){for(;this._input.hasNext()&&!this._input.testChar(a.newline);)B+=this._input.next();return c=!0,this._create_token(i.COMMENT,B)}}else if(c&&O==="-"&&(B=this.__patterns.html_comment_end.read(),B))return c=!1,this._create_token(i.COMMENT,B);return null},x.prototype._read_comment=function(O){var B=null;if(O==="/"){var w="";if(this._input.peek(1)==="*"){w=this.__patterns.block_comment.read();var W=T.get_directives(w);W&&W.ignore==="start"&&(w+=T.readIgnored(this._input)),w=w.replace(a.allLineBreaks,`
`),B=this._create_token(i.BLOCK_COMMENT,w),B.directives=W}else this._input.peek(1)==="/"&&(w=this.__patterns.comment.read(),B=this._create_token(i.COMMENT,w))}return B},x.prototype._read_string=function(O){if(O==="`"||O==="'"||O==='"'){var B=this._input.next();return this.has_char_escapes=!1,O==="`"?B+=this._read_string_recursive("`",!0,"${"):B+=this._read_string_recursive(O),this.has_char_escapes&&this._options.unescape_strings&&(B=D(B)),this._input.peek()===O&&(B+=this._input.next()),B=B.replace(a.allLineBreaks,`
`),this._create_token(i.STRING,B)}return null},x.prototype._allow_regexp_or_xml=function(O){return O.type===i.RESERVED&&t(O.text,["return","case","throw","else","do","typeof","yield"])||O.type===i.END_EXPR&&O.text===")"&&O.opened.previous.type===i.RESERVED&&t(O.opened.previous.text,["if","while","for"])||t(O.type,[i.COMMENT,i.START_EXPR,i.START_BLOCK,i.START,i.END_BLOCK,i.OPERATOR,i.EQUALS,i.EOF,i.SEMICOLON,i.COMMA])},x.prototype._read_regexp=function(O,B){if(O==="/"&&this._allow_regexp_or_xml(B)){for(var w=this._input.next(),W=!1,P=!1;this._input.hasNext()&&(W||P||this._input.peek()!==O)&&!this._input.testChar(a.newline);)w+=this._input.peek(),W?W=!1:(W=this._input.peek()==="\\",this._input.peek()==="["?P=!0:this._input.peek()==="]"&&(P=!1)),this._input.next();return this._input.peek()===O&&(w+=this._input.next(),w+=this._input.read(a.identifier)),this._create_token(i.STRING,w)}return null},x.prototype._read_xml=function(O,B){if(this._options.e4x&&O==="<"&&this._allow_regexp_or_xml(B)){var w="",W=this.__patterns.xml.read_match();if(W){for(var P=W[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),z=P.indexOf("{")===0,Q=0;W;){var re=!!W[1],le=W[2],be=!!W[W.length-1]||le.slice(0,8)==="![CDATA[";if(!be&&(le===P||z&&le.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(re?--Q:++Q),w+=W[0],Q<=0)break;W=this.__patterns.xml.read_match()}return W||(w+=this._input.match(/[\s\S]*/g)[0]),w=w.replace(a.allLineBreaks,`
`),this._create_token(i.STRING,w)}}return null};function D(O){for(var B="",w=0,W=new v(O),P=null;W.hasNext();)if(P=W.match(/([\s]|[^\\]|\\\\)+/g),P&&(B+=P[0]),W.peek()==="\\"){if(W.next(),W.peek()==="x")P=W.match(/x([0-9A-Fa-f]{2})/g);else if(W.peek()==="u")P=W.match(/u([0-9A-Fa-f]{4})/g);else{B+="\\",W.hasNext()&&(B+=W.next());continue}if(!P)return O;if(w=parseInt(P[1],16),w>126&&w<=255&&P[0].indexOf("x")===0)return O;if(w>=0&&w<32){B+="\\"+P[0];continue}else w===34||w===39||w===92?B+="\\"+String.fromCharCode(w):B+=String.fromCharCode(w)}return B}x.prototype._read_string_recursive=function(O,B,w){var W,P;O==="'"?P=this.__patterns.single_quote:O==='"'?P=this.__patterns.double_quote:O==="`"?P=this.__patterns.template_text:O==="}"&&(P=this.__patterns.template_expression);for(var z=P.read(),Q="";this._input.hasNext();){if(Q=this._input.next(),Q===O||!B&&a.newline.test(Q)){this._input.back();break}else Q==="\\"&&this._input.hasNext()?(W=this._input.peek(),W==="x"||W==="u"?this.has_char_escapes=!0:W==="\r"&&this._input.peek(1)===`
`&&this._input.next(),Q+=this._input.next()):w&&(w==="${"&&Q==="$"&&this._input.peek()==="{"&&(Q+=this._input.next()),w===Q&&(O==="`"?Q+=this._read_string_recursive("}",B,"`"):Q+=this._read_string_recursive("`",B,"${"),this._input.hasNext()&&(Q+=this._input.next())));Q+=P.read(),z+=Q}return z},R.exports.Tokenizer=x,R.exports.TOKEN=i,R.exports.positionable_operators=g.slice(),R.exports.line_starters=r.slice()},function(R){var A=RegExp.prototype.hasOwnProperty("sticky");function y(v){this.__input=v||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position=0&&v=0&&d=v.length&&this.__input.substring(d-v.length,d).toLowerCase()===v},R.exports.InputScanner=y},function(R,A,y){var v=y(8).InputScanner,d=y(3).Token,o=y(10).TokenStream,n=y(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(e,t){this._input=new v(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new n(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new o,this._reset();for(var e,t=new d(a.START,""),i=null,T=[],_=new o;t.type!==a.EOF;){for(e=this._get_next_token(t,i);this._is_comment(e);)_.add(e),e=this._get_next_token(t,i);_.isEmpty()||(e.comments_before=_,_=new o),e.parent=i,this._is_opening(e)?(T.push(i),i=e):i&&this._is_closing(e,i)&&(e.opened=i,i.closed=e,i=T.pop(),e.parent=i),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(e,t){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(a.RAW,i):this._create_token(a.EOF,"")},s.prototype._is_comment=function(e){return!1},s.prototype._is_opening=function(e){return!1},s.prototype._is_closing=function(e,t){return!1},s.prototype._create_token=function(e,t){var i=new d(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return i},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},R.exports.Tokenizer=s,R.exports.TOKEN=a},function(R){function A(y){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=y}A.prototype.restart=function(){this.__position=0},A.prototype.isEmpty=function(){return this.__tokens_length===0},A.prototype.hasNext=function(){return this.__position=0&&y/),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}/)}}o.prototype=new v,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(n){var a=this._create();return a._disabled[n]=!0,a._update(),a},o.prototype.read_options=function(n){var a=this._create();for(var s in d)a._disabled[s]=n.templating.indexOf(s)===-1;return a._update(),a},o.prototype.exclude=function(n){var a=this._create();return a._excluded[n]=!0,a._update(),a},o.prototype.read=function(){var n="";this._match_pattern?n=this._input.read(this._starting_pattern):n=this._input.read(this._starting_pattern,this.__template_pattern);for(var a=this._read_template();a;)this._match_pattern?a+=this._input.read(this._match_pattern):a+=this._input.readUntil(this.__template_pattern),n+=a,a=this._read_template();return this._until_after&&(n+=this._input.readUntilAfter(this._until_pattern)),n},o.prototype.__set_templated_pattern=function(){var n=[];this._disabled.php||n.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||n.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||n.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(n.push(this.__patterns.django._starting_pattern.source),n.push(this.__patterns.django_value._starting_pattern.source),n.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||n.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&n.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+n.join("|")+")")},o.prototype._read_template=function(){var n="",a=this._input.peek();if(a==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(n=n||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(n=n||this.__patterns.erb.read())}else a==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(n=n||this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars_unescaped.read(),n=n||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(n=n||this.__patterns.django_value.read()),this._excluded.django||(n=n||this.__patterns.django_comment.read(),n=n||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(n=n||this.__patterns.smarty_comment.read(),n=n||this.__patterns.smarty_literal.read(),n=n||this.__patterns.smarty.read()));return n},R.exports.TemplatablePattern=o}],S={};function H(R){var A=S[R];if(A!==void 0)return A.exports;var y=S[R]={exports:{}};return C[R](y,y.exports,H),y.exports}var U=H(0);I=U})();var j=I;!(ae=[],L=function(){return{js_beautify:j}}.apply(we,ae),L!==void 0&&(Ke.exports=L))})()},"6eGT":function(Ke,we,F){"use strict";function ae(L){return null}we.a=ae},"6nfa":function(Ke,we,F){Ke.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"815F":function(Ke,we,F){"use strict";F.d(we,"e",function(){return H}),F.d(we,"c",function(){return R}),F.d(we,"d",function(){return A}),F.d(we,"a",function(){return v}),F.d(we,"f",function(){return d}),F.d(we,"b",function(){return o});var ae=F("KQm4"),L=F("VTBJ"),I=F("Ff2n"),j=F("Zm9Q"),C=F("Kwbf"),S=F("OZM5");function H(n,a){return n!=null?n:a}function U(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=new Map;function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(e||[]).forEach(function(i){var T=i.key,_=i.children;Object(C.a)(T!=null,"Tree node must have a certain key: [".concat(t).concat(T,"]"));var p=String(T);Object(C.a)(!a.has(p)||T===null||T===void 0,"Same 'key' exist in the Tree: ".concat(p)),a.set(p,!0),s(_,"".concat(t).concat(p," > "))})}s(n)}function R(n){function a(s){var e=Object(j.a)(s);return e.map(function(t){if(!Object(S.i)(t))return Object(C.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var i=t.key,T=t.props,_=T.children,p=Object(I.a)(T,["children"]),E=Object(L.a)({key:i},p),g=a(_);return g.length&&(E.children=g),E}).filter(function(t){return t})}return a(n)}function A(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=new Set(a===!0?[]:a),e=[];function t(i){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return i.map(function(_,p){var E=Object(S.h)(T?T.pos:"0",p),g=H(_.key,E),h=Object(L.a)(Object(L.a)({},_),{},{parent:T,pos:E,children:null,data:_,isStart:[].concat(Object(ae.a)(T?T.isStart:[]),[p===0]),isEnd:[].concat(Object(ae.a)(T?T.isEnd:[]),[p===i.length-1])});return e.push(h),a===!0||s.has(g)?h.children=t(_.children||[],h):h.children=[],h})}return t(n),e}function y(n,a,s){var e;s?typeof s=="string"?e=function(T){return T[s]}:typeof s=="function"&&(e=function(T){return s(T)}):e=function(T,_){return H(T.key,_)};function t(i,T,_){var p=i?i.children:n,E=i?Object(S.h)(_.pos,T):"0";if(i){var g=e(i,E),h={node:i,index:T,pos:E,key:g,parentPos:_.node?_.pos:null,level:_.level+1};a(h)}p&&p.forEach(function(u,r){t(u,r,{node:i,pos:E,level:_?_.level+1:-1})})}t(null)}function v(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.initWrapper,e=a.processEntity,t=a.onProcessFinished,i=arguments.length>2?arguments[2]:void 0,T={},_={},p={posEntities:T,keyEntities:_};return s&&(p=s(p)||p),y(n,function(E){var g=E.node,h=E.index,u=E.pos,r=E.key,l=E.parentPos,f=E.level,c={node:g,index:h,key:r,pos:u,level:f},x=H(r,u);T[u]=c,_[x]=c,c.parent=T[l],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),e&&e(c,p)},i),t&&t(p),p}function d(n,a){var s=a.expandedKeys,e=a.selectedKeys,t=a.loadedKeys,i=a.loadingKeys,T=a.checkedKeys,_=a.halfCheckedKeys,p=a.dragOverNodeKey,E=a.dropPosition,g=a.keyEntities,h=g[n],u={eventKey:n,expanded:s.indexOf(n)!==-1,selected:e.indexOf(n)!==-1,loaded:t.indexOf(n)!==-1,loading:i.indexOf(n)!==-1,checked:T.indexOf(n)!==-1,halfChecked:_.indexOf(n)!==-1,pos:String(h?h.pos:""),dragOver:p===n&&E===0,dragOverGapTop:p===n&&E===-1,dragOverGapBottom:p===n&&E===1};return u}function o(n){var a=n.data,s=n.expanded,e=n.selected,t=n.checked,i=n.loaded,T=n.loading,_=n.halfChecked,p=n.dragOver,E=n.dragOverGapTop,g=n.dragOverGapBottom,h=n.pos,u=n.active,r=Object(L.a)(Object(L.a)({},a),{},{expanded:s,selected:e,checked:t,loaded:i,loading:T,halfChecked:_,dragOver:p,dragOverGapTop:E,dragOverGapBottom:g,pos:h,active:u});return"props"in r||Object.defineProperty(r,"props",{get:function(){return Object(C.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),r}},"8WcF":function(Ke,we,F){Ke.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8hTe":function(Ke,we,F){Ke.exports={button:"button___1wy9m"}},"8mKB":function(Ke,we,F){"use strict";var ae=F("rePB"),L=F("1OyB"),I=F("vuIU"),j=F("Ji7U"),C=F("md7G"),S=F("foSv"),H=F("q1tI"),U=F.n(H),R=F("m+aA"),A=F("TSYQ"),y=F.n(A),v=F("4IlW");function d(u){var r=u.pageXOffset,l="scrollLeft";if(typeof r!="number"){var f=u.document;r=f.documentElement[l],typeof r!="number"&&(r=f.body[l])}return r}function o(u){var r,l,f=u.ownerDocument,c=f.body,x=f&&f.documentElement,D=u.getBoundingClientRect();return r=D.left,l=D.top,r-=x.clientLeft||c.clientLeft||0,l-=x.clientTop||c.clientTop||0,{left:r,top:l}}function n(u){var r=o(u),l=u.ownerDocument,f=l.defaultView||l.parentWindow;return r.left+=d(f),r.left}function a(u){var r=s();return function(){var f=Object(S.a)(u),c;if(r){var x=Object(S.a)(this).constructor;c=Reflect.construct(f,arguments,x)}else c=f.apply(this,arguments);return Object(C.a)(this,c)}}function s(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(u){return!1}}var e=function(u){Object(j.a)(l,u);var r=a(l);function l(){var f;return Object(L.a)(this,l),f=r.apply(this,arguments),f.onHover=function(c){var x=f.props,D=x.onHover,O=x.index;D(c,O)},f.onClick=function(c){var x=f.props,D=x.onClick,O=x.index;D(c,O)},f.onKeyDown=function(c){var x=f.props,D=x.onClick,O=x.index;c.keyCode===13&&D(c,O)},f}return Object(I.a)(l,[{key:"getClassName",value:function(){var c=this.props,x=c.prefixCls,D=c.index,O=c.value,B=c.allowHalf,w=c.focused,W=D+1,P=x;return O===0&&D===0&&w?P+=" ".concat(x,"-focused"):B&&O+.5>=W&&Oz?"true":"false","aria-posinset":z+1,"aria-setsize":Q,tabIndex:B?-1:0},U.a.createElement("div",{className:"".concat(w,"-first")},le),U.a.createElement("div",{className:"".concat(w,"-second")},le)));return P&&(be=P(be,this.props)),be}}]),l}(U.a.Component);function t(u,r){var l=Object.keys(u);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(u);r&&(f=f.filter(function(c){return Object.getOwnPropertyDescriptor(u,c).enumerable})),l.push.apply(l,f)}return l}function i(u){for(var r=1;r0&&!Q||O===v.a.RIGHT&&re>0&&Q?(W?re-=.5:re-=1,c.changeValue(re),D.preventDefault()):O===v.a.LEFT&&reQ/2||!w&&x-z=M.length?G.slice(M.length):G}).join(`
`)}var s=[],e=[""],t=new o.a.Renderer,i=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function T(){s.length=0,e=[""]}var _={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function p(N,m,b,M){if(m>=N.length||N[m].level<=b)return m;var G=N[m];M.push("- "+G.text+""),m++;var k=[];return m=p(N,m,G.level,k),k.length>0&&(M.push("
"),k.forEach(function(he){M.push(he)}),M.push("
")),M.push(" "),m=p(N,m,b,M),m}function E(){return p(s,0,0,e),e.push("
"),e.join("")}var g={heading:function(m){var b=i.exec(m);if(b)return{type:"heading",raw:b[0],depth:b[1].length,text:b[2]}},fences:function(m){var b=this.rules.block.fences.exec(m);if(b){var M=b[0],G=a(M,b[3]||""),k=b[2]?b[2].trim():b[2];if(["latex","katex","math"].indexOf(k)>=0){var he=r(),je=G;G=he,l[he]={type:"block",expression:je}}return{type:"code",raw:M,lang:k,text:G}}}},h=/(?:\${2})([^\n`]+?)(?:\${2})/gi,u=0,r=function(){return"__special_katext_id_".concat(u++,"__")},l={};function f(){return l}function c(){u=0,l={}}function x(N){return N=N.replace(h,function(m,b){var M=r();return l[M]={type:"inline",expression:b},M}),N}var D=t.listitem;t.listitem=function(N){return D(x(N))};var O=t.paragraph;t.paragraph=function(N){return O(x(N))};var B=t.tablecell;t.tablecell=function(N,m){return B(x(N),m)},t.code=function(N,m,b){var M=(m||"").match(/\S*/)[0];return M?["latex","katex","math"].indexOf(M)>=0?"".concat(N,"
"):'
').concat(b?N:Object(n.escape)(N,!0),`
`):''+(b?N:Object(n.escape)(N,!0))+"
"},t.heading=function(N,m,b){var M=this.options.headerPrefix+b.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:M,level:m,text:N}),"'+N+""},o.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),o.a.use({tokenizer:g,renderer:t});var w=o.a,W=F("SJMd"),P=F("ulZh"),z=F.n(P),Q=F("m3rI"),re=F("Oy/b"),le=F("p5ED"),be=F("ErOA");/*! *****************************************************************************
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 ye=function(N,m){return(ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,M){b.__proto__=M}||function(b,M){for(var G in M)Object.prototype.hasOwnProperty.call(M,G)&&(b[G]=M[G])})(N,m)};function ie(N,m){function b(){this.constructor=N}ye(N,m),N.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}function xe(N,m,b,M){return new(b||(b=Promise))(function(G,k){function he(gt){try{st(M.next(gt))}catch(Ge){k(Ge)}}function je(gt){try{st(M.throw(gt))}catch(Ge){k(Ge)}}function st(gt){var Ge;gt.done?G(gt.value):(Ge=gt.value,Ge instanceof b?Ge:new b(function(At){At(Ge)})).then(he,je)}st((M=M.apply(N,m||[])).next())})}function Ae(N,m){var b,M,G,k,he={label:0,sent:function(){if(1&G[0])throw G[1];return G[1]},trys:[],ops:[]};return k={next:je(0),throw:je(1),return:je(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function je(st){return function(gt){return function(Ge){if(b)throw new TypeError("Generator is already executing.");for(;he;)try{if(b=1,M&&(G=2&Ge[0]?M.return:Ge[0]?M.throw||((G=M.return)&&G.call(M),0):M.next)&&!(G=G.call(M,Ge[1])).done)return G;switch(M=0,G&&(Ge=[2&Ge[0],G.value]),Ge[0]){case 0:case 1:G=Ge;break;case 4:return he.label++,{value:Ge[1],done:!1};case 5:he.label++,M=Ge[1],Ge=[0];continue;case 7:Ge=he.ops.pop(),he.trys.pop();continue;default:if(!(G=he.trys,(G=G.length>0&&G[G.length-1])||Ge[0]!==6&&Ge[0]!==2)){he=0;continue}if(Ge[0]===3&&(!G||Ge[1]>G[0]&&Ge[1]',"select"),this.addActionButton(M,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(M,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(M,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(M,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(M,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(M,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(M,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(k){var he=document.createElement("div");he.className=""+b.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",k.typeName),he.innerHTML=k.icon,he.addEventListener("click",function(){b.markerToolbarButtonClicked(he,k)}),b.buttons.push(he),b.markerButtons.push(he)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var G=document.createElement("div");G.className=this.toolbarBlockStyleClass.name,G.style.whiteSpace="nowrap",G.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(G),this.addActionButton(G,'',"render"),this.addActionButton(G,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},N.prototype.addButtonClickListener=function(m){this.buttonClickListeners.push(m)},N.prototype.removeButtonClickListener=function(m){this.buttonClickListeners.indexOf(m)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(m),1)},N.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},N.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var m=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var b=0;b0&&this.buttonClickListeners.forEach(function(M){return M("marker",b)}),this.markerButtonOverflowBlock.style.display="none"},N.prototype.actionToolbarButtonClicked=function(m,b){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(M){return M("action",b)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},N.prototype.setActiveButton=function(m){this.resetButtonStyles(),m.className=m.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),m.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},N.prototype.setActiveMarkerButton=function(m){var b=this.markerButtons.find(function(M){return M.getAttribute("data-type-name")===m});b&&this.setActiveButton(b)},N.prototype.setCurrentMarker=function(m){var b=this;this.currentMarker=m,this.buttons.filter(function(M){return/delete|notes/.test(M.getAttribute("data-action"))}).forEach(function(M){b.currentMarker===void 0?(M.style.fillOpacity="0.4",M.style.pointerEvents="none"):(M.style.fillOpacity="1",M.style.pointerEvents="all")})},N}(),Je=function(){function N(m,b,M,G){this.panels=[],this.panelButtons=[],this.markerjsContainer=m,this.displayMode=b,this.uiStyleSettings=M,this.styles=G,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return N.prototype.addStyles=function(){var m;this.toolboxStyleClass=this.styles.addClass(new Pe("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Pe("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var b=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Pe("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Pe("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Pe("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Pe("toolbox-panel-row_colors",`
background-color: `+((m=this.uiStyleSettings.toolboxBackgroundColor)!==null&&m!==void 0?m:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Pe("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*b)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*b)+`px;
padding: `+b+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Pe("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Pe("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new it("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new it("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},N.prototype.show=function(m){var b;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=m,this.uiContainer.className=this.toolboxStyleClass.name+" "+((b=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&b!==void 0?b:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},N.prototype.setPanelButtons=function(m){var b,M,G=this;this.panels=m,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((b=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&b!==void 0?b:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((M=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&M!==void 0?M:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(k){var he;k.uiStyleSettings=G.uiStyleSettings;var je=document.createElement("div");je.className=G.toolboxButtonStyleClass.name+" "+((he=G.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:G.toolboxButtonStyleColorsClass.name),je.innerHTML=k.icon,je.title=k.title,je.addEventListener("click",function(){G.panelButtonClick(k)}),G.panelButtons.push(je),G.buttonRow.appendChild(je)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},N.prototype.panelButtonClick=function(m){var b=this,M=-1;if(m!==this.activePanel){M=this.panels.indexOf(m),this.panelRow.innerHTML="";var G=m.getUi();G.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(G),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=m}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){b.displayMode==="inline"?b.panelRow.style.display="none":b.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(k,he){var je,st;k.className=b.toolboxButtonStyleClass.name+" "+(he===M?""+((je=b.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&je!==void 0?je:b.toolboxActiveButtonStyleColorsClass.name):""+((st=b.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&st!==void 0?st:b.toolboxButtonStyleColorsClass.name))})},N}(),et=function(N,m){this.title=N,this.icon=m},Ye=function(N){function m(b,M,G,k){var he=N.call(this,b,k||'')||this;return he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=M,he.currentColor=G,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return ie(m,N),m.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.overflow="hidden",M.style.whiteSpace="nowrap",this.colors.forEach(function(G){var k=b.getColorBox(G);M.appendChild(k),b.colorBoxes.push(k)}),M},m.prototype.getColorBox=function(b){var M=this,G=this.uiStyleSettings.toolbarHeight/4,k=this.uiStyleSettings.toolbarHeight-G,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=k-2+"px",he.style.height=k-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(k+2)/2+"px",he.style.borderColor=b===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){M.setCurrentColor(b,he)});var je=document.createElement("div");return je.style.display="inline-block",je.style.width=k-2+"px",je.style.height=k-2+"px",je.style.backgroundColor=b,je.style.borderRadius=k/2+"px",b==="transparent"&&(je.style.fill=this.uiStyleSettings.toolboxAccentColor,je.innerHTML=``),he.appendChild(je),he},m.prototype.setCurrentColor=function(b,M){var G=this;this.currentColor=b,this.colorBoxes.forEach(function(k){k.style.borderColor=k===M?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(b)},m}(et),ze=function(){function N(m,b,M){this._state="new",this._isSelected=!1,this._container=m,this._overlayContainer=b,this.globalSettings=M,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(N.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),N.prototype.ownsTarget=function(m){return!1},Object.defineProperty(N.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),N.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},N.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},N.prototype.pointerDown=function(m,b){},N.prototype.dblClick=function(m,b){},N.prototype.manipulate=function(m){},N.prototype.pointerUp=function(m){this.stateChanged()},N.prototype.dispose=function(){},N.prototype.addMarkerVisualToContainer=function(m){this.container.childNodes.length>0?this.container.insertBefore(m,this.container.childNodes[0]):this.container.appendChild(m)},N.prototype.getState=function(){return{typeName:N.typeName,state:this.state,notes:this.notes}},N.prototype.restoreState=function(m){this._state=m.state,this.notes=m.notes},N.prototype.scale=function(m,b){},N.prototype.colorChanged=function(m){this.onColorChanged&&this.onColorChanged(m),this.stateChanged()},N.prototype.fillColorChanged=function(m){this.onFillColorChanged&&this.onFillColorChanged(m),this.stateChanged()},N.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var m=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),m.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(m)&&this.onStateChanged(this)}},N.typeName="MarkerBase",N}(),He=function(){function N(){this.findGripByVisual=this.findGripByVisual.bind(this)}return N.prototype.findGripByVisual=function(m){return this.topLeft.ownsTarget(m)?this.topLeft:this.topCenter.ownsTarget(m)?this.topCenter:this.topRight.ownsTarget(m)?this.topRight:this.centerLeft.ownsTarget(m)?this.centerLeft:this.centerRight.ownsTarget(m)?this.centerRight:this.bottomLeft.ownsTarget(m)?this.bottomLeft:this.bottomCenter.ownsTarget(m)?this.bottomCenter:this.bottomRight.ownsTarget(m)?this.bottomRight:void 0},N}(),ft=function(){function N(){this.GRIP_SIZE=10,this.visual=Z.createGroup(),this.visual.appendChild(Z.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Z.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return N.prototype.ownsTarget=function(m){return m===this.visual||m===this.visual.childNodes[0]||m===this.visual.childNodes[1]},N}(),ht=function(){function N(){}return N.toITransformMatrix=function(m){return{a:m.a,b:m.b,c:m.c,d:m.d,e:m.e,f:m.f}},N.toSVGMatrix=function(m,b){return m.a=b.a,m.b=b.b,m.c=b.c,m.d=b.d,m.e=b.e,m.f=b.f,m},N}(),lt=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.left=0,k.top=0,k.width=0,k.height=0,k.defaultSize={x:50,y:20},k.offsetX=0,k.offsetY=0,k.rotationAngle=0,k.CB_DISTANCE=10,k._suppressMarkerCreateEvent=!1,k.container.transform.baseVal.appendItem(Z.createTransform()),k.setupControlBox(),k}return ie(m,N),Object.defineProperty(m.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"visual",{get:function(){return this._visual},set:function(b){this._visual=b;var M=Z.createTransform();this._visual.transform.baseVal.appendItem(M)},enumerable:!1,configurable:!0}),m.prototype.ownsTarget=function(b){return!!N.prototype.ownsTarget.call(this,b)||!!(this.controlGrips.findGripByVisual(b)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(b))},m.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="new"&&(this.left=b.x,this.top=b.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var G=this.unrotatePoint(b);if(this.manipulationStartX=G.x,this.manipulationStartY=G.y,this.offsetX=G.x-this.left,this.offsetY=G.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(M),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(M)){this.activeGrip=this.rotatorGrip;var k=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=k.x-this.width/2,this.top=k.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},m.prototype.pointerUp=function(b){var M=this.state;N.prototype.pointerUp.call(this,b),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(b),this._state="select",M==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},m.prototype.moveVisual=function(b){this.visual.style.transform="translate("+b.x+"px, "+b.y+"px)"},m.prototype.manipulate=function(b){var M=this.unrotatePoint(b);this.state==="creating"?this.resize(b):this.state==="move"?(this.left=this.manipulationStartLeft+(M.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(M.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(M):this.state==="rotate"&&this.rotate(b)},m.prototype.resize=function(b){var M=this.manipulationStartLeft,G=this.manipulationStartWidth,k=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:M=this.manipulationStartLeft+b.x-this.manipulationStartX,G=this.manipulationStartWidth+this.manipulationStartLeft-M;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:G=this.manipulationStartWidth+b.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:k=this.manipulationStartTop+b.y-this.manipulationStartY,he=this.manipulationStartHeight+this.manipulationStartTop-k;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+b.y-this.manipulationStartY}G>=0?(this.left=M,this.width=G):(this.left=M+G,this.width=-G),he>=0?(this.top=k,this.height=he):(this.top=k+he,this.height=-he),this.setSize()},m.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},m.prototype.rotate=function(b){if(Math.abs(b.x-this.centerX)>.1){var M=Math.sign(b.x-this.centerX);this.rotationAngle=180*Math.atan((b.y-this.centerY)/(b.x-this.centerX))/Math.PI+90*M,this.applyRotation()}},m.prototype.applyRotation=function(){var b=this.container.transform.baseVal.getItem(0);b.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(b,0)},m.prototype.rotatePoint=function(b){if(this.rotationAngle===0)return b;var M=this.container.getCTM(),G=Z.createPoint(b.x,b.y);return{x:(G=G.matrixTransform(M)).x,y:G.y}},m.prototype.unrotatePoint=function(b){if(this.rotationAngle===0)return b;var M=this.container.getCTM();M=M.inverse();var G=Z.createPoint(b.x,b.y);return{x:(G=G.matrixTransform(M)).x,y:G.y}},m.prototype.select=function(){N.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},m.prototype.deselect=function(){N.prototype.deselect.call(this),this.controlBox.style.display="none"},m.prototype.setupControlBox=function(){this.controlBox=Z.createGroup();var b=Z.createTransform();b.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(b),this.container.appendChild(this.controlBox),this.controlRect=Z.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Z.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new He,this.addControlGrips(),this.controlBox.style.display="none"},m.prototype.adjustControlBox=function(){var b=this.controlBox.transform.baseVal.getItem(0);b.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(b,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},m.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},m.prototype.createGrip=function(){var b=new ft;return b.visual.transform.baseVal.appendItem(Z.createTransform()),this.controlBox.appendChild(b.visual),b},m.prototype.positionGrips=function(){var b=this.controlGrips.topLeft.GRIP_SIZE,M=-b/2,G=M,k=(this.width+this.CB_DISTANCE)/2-b/2,he=(this.height+this.CB_DISTANCE)/2-b/2,je=this.height+this.CB_DISTANCE-b/2,st=this.width+this.CB_DISTANCE-b/2;this.positionGrip(this.controlGrips.topLeft.visual,M,G),this.positionGrip(this.controlGrips.topCenter.visual,k,G),this.positionGrip(this.controlGrips.topRight.visual,st,G),this.positionGrip(this.controlGrips.centerLeft.visual,M,he),this.positionGrip(this.controlGrips.centerRight.visual,st,he),this.positionGrip(this.controlGrips.bottomLeft.visual,M,je),this.positionGrip(this.controlGrips.bottomCenter.visual,k,je),this.positionGrip(this.controlGrips.bottomRight.visual,st,je),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,k,G-3*this.CB_DISTANCE)},m.prototype.positionGrip=function(b,M,G){var k=b.transform.baseVal.getItem(0);k.setTranslate(M,G),b.transform.baseVal.replaceItem(k,0)},m.prototype.hideControlBox=function(){this.controlBox.style.display="none"},m.prototype.showControlBox=function(){this.controlBox.style.display=""},m.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ht.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ht.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},N.prototype.getState.call(this))},m.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.left=M.left,this.top=M.top,this.width=M.width,this.height=M.height,this.rotationAngle=M.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ht.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,M.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ht.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,M.containerTransformMatrix))},m.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M);var G=this.rotatePoint({x:this.left,y:this.top}),k=this.unrotatePoint({x:G.x*b,y:G.y*M});this.left=k.x,this.top=k.y,this.width=this.width*b,this.height=this.height*M,this.adjustControlBox()},m}(ze),at=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.fillColor="transparent",k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.opacity=1,k.setStrokeColor=k.setStrokeColor.bind(k),k.setFillColor=k.setFillColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.createVisual=k.createVisual.bind(k),k}return ie(m,N),m.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual)},m.prototype.createVisual=function(){this.visual=Z.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},m.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="new"&&(this.createVisual(),this.moveVisual(b),this._state="creating")},m.prototype.manipulate=function(b){N.prototype.manipulate.call(this,b)},m.prototype.resize=function(b){N.prototype.resize.call(this,b),this.setSize()},m.prototype.setSize=function(){N.prototype.setSize.call(this),Z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},m.prototype.pointerUp=function(b){N.prototype.pointerUp.call(this,b),this.setSize()},m.prototype.setStrokeColor=function(b){this.strokeColor=b,this.visual&&Z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(b),this.stateChanged()},m.prototype.setFillColor=function(b){this.fillColor=b,this.visual&&Z.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},m.prototype.setStrokeWidth=function(b){this.strokeWidth=b,this.visual&&Z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},m.prototype.setStrokeDasharray=function(b){this.strokeDasharray=b,this.visual&&Z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},m.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},N.prototype.getState.call(this))},m.prototype.restoreState=function(b){var M=b;this.fillColor=M.fillColor,this.strokeColor=M.strokeColor,this.strokeWidth=M.strokeWidth,this.strokeDasharray=M.strokeDasharray,this.opacity=M.opacity,this.createVisual(),N.prototype.restoreState.call(this,b),this.setSize()},m.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.setSize()},m.title="Rectangle marker",m}(lt),mt=function(N){function m(b,M,G,k){var he=N.call(this,b,k||'')||this;return he.widths=[],he.widthBoxes=[],he.widths=M,he.currentWidth=G,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return ie(m,N),m.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.display="flex",M.style.overflow="hidden",M.style.flexGrow="2",this.widths.forEach(function(G){var k=document.createElement("div");k.style.display="flex",k.style.flexGrow="2",k.style.alignItems="center",k.style.justifyContent="space-between",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.borderColor=G===b.currentWidth?b.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){b.setCurrentWidth(G,k)}),M.appendChild(k);var he=document.createElement("div");he.innerText=G.toString(),he.style.marginRight="5px",k.appendChild(he);var je=document.createElement("div");je.style.minHeight="20px",je.style.flexGrow="2",je.style.display="flex",je.style.alignItems="center";var st=document.createElement("hr");st.style.minWidth="20px",st.style.border="0px",st.style.borderTop=G+"px solid "+b.uiStyleSettings.toolboxColor,st.style.flexGrow="2",je.appendChild(st),k.appendChild(je),b.widthBoxes.push(k)}),M},m.prototype.setCurrentWidth=function(b,M){var G=this;this.currentWidth=b,this.widthBoxes.forEach(function(k){k.style.borderColor=k===M?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},m}(et),pt=function(N){function m(b,M,G,k){var he=N.call(this,b,k||'')||this;return he.styles=[],he.styleBoxes=[],he.styles=M,he.currentStyle=G,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return ie(m,N),m.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.display="flex",M.style.overflow="hidden",M.style.flexGrow="2",this.styles.forEach(function(G){var k=document.createElement("div");k.style.display="flex",k.style.alignItems="center",k.style.justifyContent="space-between",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.overflow="hidden",k.style.maxWidth=100/b.styles.length-5+"%",k.style.borderColor=G===b.currentStyle?b.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){b.setCurrentStyle(G,k)}),M.appendChild(k);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var je=``;he.innerHTML=je,k.appendChild(he),b.styleBoxes.push(k)}),M},m.prototype.setCurrentStyle=function(b,M){var G=this;this.currentStyle=b,this.styleBoxes.forEach(function(k){k.style.borderColor=k===M?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},m}(et),me=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.strokeColor=G.defaultColor,k.strokeWidth=G.defaultStrokeWidth,k.strokeDasharray=G.defaultStrokeDasharray,k.strokePanel=new Ye("Line color",G.defaultColorSet,G.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.strokeWidthPanel=new mt("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new pt("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k}return ie(m,N),Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=m.typeName,b},m.typeName="FrameMarker",m.title="Frame marker",m.icon='',m}(at),Ce=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},De=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.x1=0,k.y1=0,k.x2=0,k.y2=0,k.defaultLength=50,k.manipulationStartX=0,k.manipulationStartY=0,k.manipulationStartX1=0,k.manipulationStartY1=0,k.manipulationStartX2=0,k.manipulationStartY2=0,k.setupControlBox(),k}return ie(m,N),m.prototype.ownsTarget=function(b){return!!N.prototype.ownsTarget.call(this,b)||!(!this.grip1.ownsTarget(b)&&!this.grip2.ownsTarget(b))},m.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.manipulationStartX=b.x,this.manipulationStartY=b.y,this.state==="new"&&(this.x1=b.x,this.y1=b.y,this.x2=b.x,this.y2=b.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(M)?this.activeGrip=this.grip1:this.grip2.ownsTarget(M)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},m.prototype.pointerUp=function(b){var M=this.state;N.prototype.pointerUp.call(this,b),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(b),this._state="select",M==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},m.prototype.adjustVisual=function(){},m.prototype.manipulate=function(b){this.state==="creating"?this.resize(b):this.state==="move"?(this.x1=this.manipulationStartX1+b.x-this.manipulationStartX,this.y1=this.manipulationStartY1+b.y-this.manipulationStartY,this.x2=this.manipulationStartX2+b.x-this.manipulationStartX,this.y2=this.manipulationStartY2+b.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(b)},m.prototype.resize=function(b){switch(this.activeGrip){case this.grip1:this.x1=b.x,this.y1=b.y;break;case this.grip2:case void 0:this.x2=b.x,this.y2=b.y}this.adjustVisual(),this.adjustControlBox()},m.prototype.select=function(){N.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},m.prototype.deselect=function(){N.prototype.deselect.call(this),this.controlBox.style.display="none"},m.prototype.setupControlBox=function(){this.controlBox=Z.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},m.prototype.adjustControlBox=function(){this.positionGrips()},m.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},m.prototype.createGrip=function(){var b=new ft;return b.visual.transform.baseVal.appendItem(Z.createTransform()),this.controlBox.appendChild(b.visual),b},m.prototype.positionGrips=function(){var b=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-b/2,this.y1-b/2),this.positionGrip(this.grip2.visual,this.x2-b/2,this.y2-b/2)},m.prototype.positionGrip=function(b,M,G){var k=b.transform.baseVal.getItem(0);k.setTranslate(M,G),b.transform.baseVal.replaceItem(k,0)},m.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},N.prototype.getState.call(this))},m.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.x1=M.x1,this.y1=M.y1,this.x2=M.x2,this.y2=M.y2},m.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.x1=this.x1*b,this.y1=this.y1*M,this.x2=this.x2*b,this.y2=this.y2*M,this.adjustVisual(),this.adjustControlBox()},m}(ze),Ne=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.setStrokeColor=k.setStrokeColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.strokeColor=G.defaultColor,k.strokeWidth=G.defaultStrokeWidth,k.strokeDasharray=G.defaultStrokeDasharray,k.strokePanel=new Ye("Line color",G.defaultColorSet,G.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.strokeWidthPanel=new mt("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new pt("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k}return ie(m,N),m.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual&&b!==this.selectorLine&&b!==this.visibleLine)},m.prototype.createVisual=function(){this.visual=Z.createGroup(),this.selectorLine=Z.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Z.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},m.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},m.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Z.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Z.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Z.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},m.prototype.setStrokeColor=function(b){this.strokeColor=b,this.adjustVisual(),this.colorChanged(b)},m.prototype.setStrokeWidth=function(b){this.strokeWidth=b,this.adjustVisual()},m.prototype.setStrokeDasharray=function(b){this.strokeDasharray=b,this.adjustVisual(),this.stateChanged()},Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},N.prototype.getState.call(this));return b.typeName=m.typeName,b},m.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.strokeColor=M.strokeColor,this.strokeWidth=M.strokeWidth,this.strokeDasharray=M.strokeDasharray,this.createVisual(),this.adjustVisual()},m.typeName="LineMarker",m.title="Line marker",m.icon='',m}(De),Ee=function(N){function m(b,M,G,k){var he=N.call(this,b,k||'')||this;return he.fonts=[],he.fontBoxes=[],he.fonts=M,he.currentFont=G,he.setCurrentFont=he.setCurrentFont.bind(he),he}return ie(m,N),m.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.overflow="hidden",M.style.flexGrow="2",this.fonts.forEach(function(G){var k=document.createElement("div");k.style.display="inline-block",k.style.alignItems="center",k.style.justifyContent="space-between",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.overflow="hidden",k.style.maxWidth=100/b.fonts.length-5+"%",k.style.borderColor=G===b.currentFont?b.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){b.setCurrentFont(G,k)}),M.appendChild(k);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=G,he.style.overflow="hidden";var je=document.createElement("div");je.style.whiteSpace="nowrap",je.style.overflow="hidden",je.style.textOverflow="ellipsis",je.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(je),k.appendChild(he),b.fontBoxes.push(k)}),M},m.prototype.setCurrentFont=function(b,M){var G=this;this.currentFont=b,this.fontBoxes.forEach(function(k){k.style.borderColor=k===M?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},m}(et),Le=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.color="transparent",k.padding=5,k.DEFAULT_TEXT="your text here",k.text=k.DEFAULT_TEXT,k.isMoved=!1,k.color=G.defaultColor,k.fontFamily=G.defaultFontFamily,k.defaultSize={x:100,y:30},k.setColor=k.setColor.bind(k),k.setFont=k.setFont.bind(k),k.renderText=k.renderText.bind(k),k.sizeText=k.sizeText.bind(k),k.textEditDivClicked=k.textEditDivClicked.bind(k),k.showTextEditor=k.showTextEditor.bind(k),k.setSize=k.setSize.bind(k),k.positionTextEditor=k.positionTextEditor.bind(k),k.colorPanel=new Ye("Color",G.defaultColorSet,G.defaultColor),k.colorPanel.onColorChanged=k.setColor,k.fontFamilyPanel=new Ee("Font",G.defaultFontFamilies,G.defaultFontFamily),k.fontFamilyPanel.onFontChanged=k.setFont,k}return ie(m,N),m.prototype.ownsTarget=function(b){if(N.prototype.ownsTarget.call(this,b)||b===this.visual||b===this.textElement||b===this.bgRectangle)return!0;var M=!1;return this.textElement.childNodes.forEach(function(G){G===b&&(M=!0)}),M},m.prototype.createVisual=function(){this.visual=Z.createGroup(),this.bgRectangle=Z.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Z.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Z.createTransform()),this.textElement.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},m.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.isMoved=!1,this.pointerDownPoint=b,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(b),this._state="creating")},m.prototype.renderText=function(){var b=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(M){b.textElement.appendChild(Z.createTSpan(M.trim()===""?" ":M.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},m.prototype.getTextScale=function(){var b=this.textElement.getBBox(),M=1;if(b.width>0&&b.height>0){var G=(1*this.width-this.width*this.padding*2/100)/b.width,k=(1*this.height-this.height*this.padding*2/100)/b.height;M=Math.min(G,k)}return M},m.prototype.getTextPosition=function(b){var M=this.textElement.getBBox(),G=0,k=0;return M.width>0&&M.height>0&&(G=(this.width-M.width*b)/2,k=this.height/2-M.height*b/2),{x:G,y:k}},m.prototype.sizeText=function(){var b=this.textElement.getBBox(),M=this.getTextScale(),G=this.getTextPosition(M);G.y-=b.y*M,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+G.x+"px, "+G.y+"px) scale("+M+", "+M+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(G.x,G.y),this.textElement.transform.baseVal.getItem(1).setScale(M,M))},m.prototype.manipulate=function(b){N.prototype.manipulate.call(this,b),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(b.x-this.pointerDownPoint.x)>5||Math.abs(b.y-this.pointerDownPoint.y)>5)},m.prototype.resize=function(b){N.prototype.resize.call(this,b),this.isMoved=!0,this.setSize(),this.sizeText()},m.prototype.setSize=function(){N.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Z.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},m.prototype.pointerUp=function(b){var M=this.state;M==="creating"&&(this._suppressMarkerCreateEvent=!0),N.prototype.pointerUp.call(this,b),this.setSize(),(M==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},m.prototype.showTextEditor=function(){var b=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(M){M.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var M=Number.parseFloat(b.textEditor.style.fontSize);b.textEditor.clientWidth>=Number.parseInt(b.textEditor.style.maxWidth)&&M>.9;)M-=.1,b.textEditor.style.fontSize=Math.max(M,.9)+"em"}),this.textEditor.addEventListener("keyup",function(M){M.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(M){if(M.clipboardData){var G=M.clipboardData.getData("text"),k=window.getSelection();if(!k.rangeCount)return!1;k.deleteFromDocument(),k.getRangeAt(0).insertNode(document.createTextNode(G)),M.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){b.textEditDivClicked(b.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},m.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var b=this.getTextScale(),M=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),G=this.textElement.getBBox(),k={x:G.width*b,y:G.height*b};M.x-=k.x/2,M.y-=k.y/2,this.textEditor.style.top=M.y+"px",this.textEditor.style.left=M.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-M.x+"px",this.textEditor.style.fontSize=Math.max(16*b,12)+"px",this.textElement.style.display="none"}},m.prototype.textEditDivClicked=function(b){this.text=b.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},m.prototype.select=function(){N.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},m.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),N.prototype.deselect.call(this)},m.prototype.dblClick=function(b,M){N.prototype.dblClick.call(this,b,M),this.showTextEditor()},m.prototype.setColor=function(b){this.textElement&&Z.setAttributes(this.textElement,[["fill",b]]),this.color=b,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(b)},m.prototype.setFont=function(b){this.textElement&&Z.setAttributes(this.textElement,[["font-family",b]]),this.fontFamily=b,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},m.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},m.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},N.prototype.getState.call(this));return b.typeName=m.typeName,b},m.prototype.restoreState=function(b){var M=b;this.color=M.color,this.fontFamily=M.fontFamily,this.padding=M.padding,this.text=M.text,this.createVisual(),N.prototype.restoreState.call(this,b),this.setSize()},m.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.setSize(),this.sizeText(),this.positionTextEditor()},m.typeName="TextMarker",m.title="Text marker",m.icon='',m}(lt),ue=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.color="transparent",k.lineWidth=3,k.drawing=!1,k.pixelRatio=1,k.color=G.defaultColor,k.lineWidth=G.defaultStrokeWidth,k.pixelRatio=G.freehandPixelRatio,k.setColor=k.setColor.bind(k),k.addCanvas=k.addCanvas.bind(k),k.finishCreation=k.finishCreation.bind(k),k.setLineWidth=k.setLineWidth.bind(k),k.colorPanel=new Ye("Color",G.defaultColorSet,G.defaultColor),k.colorPanel.onColorChanged=k.setColor,k.lineWidthPanel=new mt("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),k.lineWidthPanel.onWidthChanged=k.setLineWidth,k}return ie(m,N),m.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual&&b!==this.drawingImage)},m.prototype.createVisual=function(){this.visual=Z.createGroup(),this.drawingImage=Z.createImage(),this.visual.appendChild(this.drawingImage);var b=Z.createTransform();this.visual.transform.baseVal.appendItem(b),this.addMarkerVisualToContainer(this.visual)},m.prototype.pointerDown=function(b,M){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(b.x,b.y),this.drawing=!0):N.prototype.pointerDown.call(this,b,M)},m.prototype.manipulate=function(b){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(b.x,b.y),this.canvasContext.stroke()):N.prototype.manipulate.call(this,b)},m.prototype.resize=function(b){N.prototype.resize.call(this,b),Z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},m.prototype.pointerUp=function(b){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):N.prototype.pointerUp.call(this,b)},m.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},m.prototype.select=function(){this.state==="creating"&&this.finishCreation(),N.prototype.select.call(this)},m.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),N.prototype.deselect.call(this)},m.prototype.finishCreation=function(){for(var b=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),M=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],G=M[0],k=M[1],he=M[2],je=M[3],st=!1,gt=0;gt0&&(st=!0,gtje&&(je=gt),Ge>he&&(he=Ge));if(st){this.left=G/this.pixelRatio,this.top=k/this.pixelRatio,this.width=(he-G)/this.pixelRatio,this.height=(je-k)/this.pixelRatio;var At=document.createElement("canvas");At.width=he-G,At.height=je-k,At.getContext("2d").putImageData(this.canvasContext.getImageData(G,k,he-G,je-k),0,0),this.drawingImgUrl=At.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},m.prototype.setDrawingImage=function(){Z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Z.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},m.prototype.setColor=function(b){this.color=b,this.colorChanged(b)},m.prototype.setLineWidth=function(b){this.lineWidth=b},Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=Object.assign({drawingImgUrl:this.drawingImgUrl},N.prototype.getState.call(this));return b.typeName=m.typeName,b},m.prototype.restoreState=function(b){this.createVisual(),N.prototype.restoreState.call(this,b),this.drawingImgUrl=b.drawingImgUrl,this.setDrawingImage()},m.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.setDrawingImage()},m.typeName="FreehandMarker",m.title="Freehand marker",m.icon='',m}(lt),ne=function(N){function m(b,M,G){var k=N.call(this,b,G||'')||this;return k.typeBoxes=[],k.currentType=M,k.setCurrentType=k.setCurrentType.bind(k),k}return ie(m,N),m.prototype.getUi=function(){var b=this,M=document.createElement("div");M.style.display="flex",M.style.overflow="hidden",M.style.flexGrow="2";for(var G=function(je){var st="both";switch(je){case 0:st="both";break;case 1:st="start";break;case 2:st="end";break;case 3:st="none"}var gt=document.createElement("div");if(gt.style.display="flex",gt.style.flexGrow="2",gt.style.alignItems="center",gt.style.justifyContent="space-between",gt.style.padding="5px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderColor=st===k.currentType?k.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){b.setCurrentType(st,gt)}),M.appendChild(gt),st==="both"||st==="start"){var Ge=document.createElement("div");Ge.style.display="flex",Ge.style.alignItems="center",Ge.style.minHeight="20px",Ge.innerHTML=``,Ge.style.marginLeft="5px",gt.appendChild(Ge)}var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.minHeight="20px",At.style.flexGrow="2";var Lt=document.createElement("hr");if(Lt.style.minWidth="20px",Lt.style.border="0px",Lt.style.borderTop="3px solid "+(k.uiStyleSettings!==void 0?k.uiStyleSettings.toolboxColor:"#eeeeee"),Lt.style.flexGrow="2",At.appendChild(Lt),gt.appendChild(At),st==="both"||st==="end"){var en=document.createElement("div");en.style.display="flex",en.style.alignItems="center",en.style.minHeight="20px",en.innerHTML=``,en.style.marginRight="5px",gt.appendChild(en)}k.typeBoxes.push(gt)},k=this,he=0;he<4;he++)G(he);return M},m.prototype.setCurrentType=function(b,M){var G=this;this.currentType=b,this.typeBoxes.forEach(function(k){k.style.borderColor=k===M?G.uiStyleSettings!==void 0?G.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},m}(et),te=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.arrowType="end",k.arrowBaseHeight=10,k.arrowBaseWidth=10,k.getArrowPoints=k.getArrowPoints.bind(k),k.setArrowType=k.setArrowType.bind(k),k.arrowTypePanel=new ne("Arrow type","end"),k.arrowTypePanel.onArrowTypeChanged=k.setArrowType,k}return ie(m,N),m.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.arrow1&&b!==this.arrow2)},m.prototype.getArrowPoints=function(b,M){var G=this.arrowBaseWidth+2*this.strokeWidth,k=this.arrowBaseHeight+2*this.strokeWidth;return b-G/2+","+(M+k/2)+" "+b+","+(M-k/2)+" "+(b+G/2)+","+(M+k/2)},m.prototype.createTips=function(){this.arrow1=Z.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Z.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.arrow2)},m.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="creating"&&this.createTips()},m.prototype.adjustVisual=function(){if(N.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Z.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Z.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var b=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),M=this.arrow1.transform.baseVal.getItem(0);M.setRotate(b,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(M,0);var G=this.arrow2.transform.baseVal.getItem(0);G.setRotate(b+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(G,0)}},m.prototype.setArrowType=function(b){this.arrowType=b,this.adjustVisual(),this.stateChanged()},Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=Object.assign({arrowType:this.arrowType},N.prototype.getState.call(this));return b.typeName=m.typeName,b},m.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.arrowType=M.arrowType,this.createTips(),this.adjustVisual()},m.typeName="ArrowMarker",m.title="Arrow marker",m.icon='',m}(Ne),K=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.fillColor=G.defaultFillColor,k.strokeWidth=0,k.fillPanel=new Ye("Color",G.defaultColorSet,G.defaultFillColor),k.fillPanel.onColorChanged=k.setFillColor,k}return ie(m,N),Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=m.typeName,b},m.typeName="CoverMarker",m.title="Cover marker",m.icon='',m}(at),Y=function(N){function m(b,M,G,k){var he=N.call(this,b,k||'')||this;return he.opacities=[],he.opacityBoxes=[],he.opacities=M,he.currentOpacity=G,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return ie(m,N),m.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.display="flex",M.style.overflow="hidden",M.style.flexGrow="2",M.style.justifyContent="space-between",this.opacities.forEach(function(G){var k=document.createElement("div");k.style.display="flex",k.style.alignItems="center",k.style.justifyContent="center",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.borderColor=G===b.currentOpacity?b.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){b.setCurrentOpacity(G,k)}),M.appendChild(k);var he=document.createElement("div");he.innerText=100*G+"%",k.appendChild(he),b.opacityBoxes.push(k)}),M},m.prototype.setCurrentOpacity=function(b,M){var G=this;this.currentOpacity=b,this.opacityBoxes.forEach(function(k){k.style.borderColor=k===M?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},m}(et),J=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.setOpacity=k.setOpacity.bind(k),k.fillColor=G.defaultHighlightColor,k.strokeWidth=0,k.opacity=G.defaultHighlightOpacity,k.fillPanel=new Ye("Color",G.defaultColorSet,k.fillColor),k.fillPanel.onColorChanged=k.setFillColor,k.opacityPanel=new Y("Opacity",G.defaultOpacitySteps,k.opacity),k.opacityPanel.onOpacityChanged=k.setOpacity,k}return ie(m,N),m.prototype.setOpacity=function(b){this.opacity=b,this.visual&&Z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=m.typeName,b},m.typeName="HighlightMarker",m.title="Highlight marker",m.icon='',m}(K),ee='',pe=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.bgColor="transparent",k.tipPosition={x:0,y:0},k.tipBase1Position={x:0,y:0},k.tipBase2Position={x:0,y:0},k.tipMoving=!1,k.color=G.defaultStrokeColor,k.bgColor=G.defaultFillColor,k.fontFamily=G.defaultFontFamily,k.defaultSize={x:100,y:30},k.setBgColor=k.setBgColor.bind(k),k.getTipPoints=k.getTipPoints.bind(k),k.positionTip=k.positionTip.bind(k),k.setTipPoints=k.setTipPoints.bind(k),k.colorPanel=new Ye("Text color",G.defaultColorSet,k.color,''),k.colorPanel.onColorChanged=k.setColor,k.bgColorPanel=new Ye("Fill color",G.defaultColorSet,k.bgColor,ee),k.bgColorPanel.onColorChanged=k.setBgColor,k.fontFamilyPanel=new Ee("Font",G.defaultFontFamilies,G.defaultFontFamily),k.fontFamilyPanel.onFontChanged=k.setFont,k.tipGrip=new ft,k.tipGrip.visual.transform.baseVal.appendItem(Z.createTransform()),k.controlBox.appendChild(k.tipGrip.visual),k}return ie(m,N),m.prototype.ownsTarget=function(b){return N.prototype.ownsTarget.call(this,b)||this.tipGrip.ownsTarget(b)||this.tip===b},m.prototype.createTip=function(){Z.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Z.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},m.prototype.pointerDown=function(b,M){this.state==="new"&&N.prototype.pointerDown.call(this,b,M),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(M)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):N.prototype.pointerDown.call(this,b,M)},m.prototype.pointerUp=function(b){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,N.prototype.pointerUp.call(this,b);else{var M=this.state==="creating";N.prototype.pointerUp.call(this,b),this.setTipPoints(M),this.positionTip()}},m.prototype.manipulate=function(b){if(this.tipMoving){var M=this.unrotatePoint(b);this.tipPosition={x:M.x-this.manipulationStartLeft,y:M.y-this.manipulationStartTop},this.positionTip()}else N.prototype.manipulate.call(this,b)},m.prototype.setBgColor=function(b){this.bgRectangle&&this.tip&&(Z.setAttributes(this.bgRectangle,[["fill",b]]),Z.setAttributes(this.tip,[["fill",b]])),this.bgColor=b,this.fillColorChanged(b)},m.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},m.prototype.setTipPoints=function(b){b===void 0&&(b=!1);var M=Math.min(this.height/2,15),G=this.height/5;b&&(this.tipPosition={x:M+G/2,y:this.height+20});var k=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?k',m}(Le),Te=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.fillColor="transparent",k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.opacity=1,k.strokeColor=G.defaultColor,k.strokeWidth=G.defaultStrokeWidth,k.strokeDasharray=G.defaultStrokeDasharray,k.fillColor=G.defaultFillColor,k.setStrokeColor=k.setStrokeColor.bind(k),k.setFillColor=k.setFillColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.setOpacity=k.setOpacity.bind(k),k.createVisual=k.createVisual.bind(k),k.strokePanel=new Ye("Line color",fe(G.defaultColorSet,["transparent"]),G.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.fillPanel=new Ye("Fill color",fe(G.defaultColorSet,["transparent"]),k.fillColor,ee),k.fillPanel.onColorChanged=k.setFillColor,k.strokeWidthPanel=new mt("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new pt("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k.opacityPanel=new Y("Opacity",G.defaultOpacitySteps,k.opacity),k.opacityPanel.onOpacityChanged=k.setOpacity,k}return ie(m,N),m.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual)},m.prototype.createVisual=function(){this.visual=Z.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},m.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="new"&&(this.createVisual(),this.moveVisual(b),this._state="creating")},m.prototype.manipulate=function(b){N.prototype.manipulate.call(this,b)},m.prototype.resize=function(b){N.prototype.resize.call(this,b),this.setSize()},m.prototype.setSize=function(){N.prototype.setSize.call(this),Z.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},m.prototype.pointerUp=function(b){N.prototype.pointerUp.call(this,b),this.setSize()},m.prototype.setStrokeColor=function(b){this.strokeColor=b,this.visual&&Z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(b),this.stateChanged()},m.prototype.setFillColor=function(b){this.fillColor=b,this.visual&&Z.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(b),this.stateChanged()},m.prototype.setStrokeWidth=function(b){this.strokeWidth=b,this.visual&&Z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},m.prototype.setStrokeDasharray=function(b){this.strokeDasharray=b,this.visual&&Z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},m.prototype.setOpacity=function(b){this.opacity=b,this.visual&&Z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},N.prototype.getState.call(this));return b.typeName=m.typeName,b},m.prototype.restoreState=function(b){var M=b;this.fillColor=M.fillColor,this.strokeColor=M.strokeColor,this.strokeWidth=M.strokeWidth,this.strokeDasharray=M.strokeDasharray,this.opacity=M.opacity,this.createVisual(),N.prototype.restoreState.call(this,b),this.setSize()},m.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.setSize()},m.typeName="EllipseMarker",m.title="Ellipse marker",m.icon='',m}(lt),Re=function(N){function m(b,M,G){return N.call(this,b,M,G)||this}return ie(m,N),Object.defineProperty(m.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),m.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.tip1&&b!==this.tip2)},m.prototype.createTips=function(){this.tip1=Z.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Z.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.tip2)},m.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="creating"&&this.createTips()},m.prototype.adjustVisual=function(){if(N.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Z.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Z.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var b=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),M=this.tip1.transform.baseVal.getItem(0);M.setRotate(b,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(M,0);var G=this.tip2.transform.baseVal.getItem(0);G.setRotate(b+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(G,0)}},Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=m.typeName,b},m.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b),this.createTips(),this.adjustVisual()},m.typeName="MeasurementMarker",m.title="Measurement marker",m.icon='',m}(Ne),Xe=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.strokePanel.colors=G.defaultColorSet,k.fillColor="transparent",k}return ie(m,N),Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=m.typeName,b},m.typeName="EllipseFrameMarker",m.title="Ellipse frame marker",m.icon='',m}(Te),nt=function(){function N(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(N.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),N.prototype.addUndoStep=function(m){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(m)||(this.undoStack.push(m),JSON.stringify(this.lastRedoStep)!==JSON.stringify(m)&&this.redoStack.splice(0,this.redoStack.length))},N.prototype.replaceLastUndoStep=function(m){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=m)},N.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},N.prototype.undo=function(){if(this.undoStack.length>1){var m=this.undoStack.pop();return m!==void 0&&this.redoStack.push(m),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},N.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},N}(),Fe=function(N){function m(b,M,G){var k=N.call(this,b,M,G)||this;return k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.curveX=0,k.curveY=0,k.manipulationStartCurveX=0,k.manipulationStartCurveY=0,k.setStrokeColor=k.setStrokeColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.positionGrips=k.positionGrips.bind(k),k.addControlGrips=k.addControlGrips.bind(k),k.adjustVisual=k.adjustVisual.bind(k),k.setupControlBox=k.setupControlBox.bind(k),k.resize=k.resize.bind(k),k.strokeColor=G.defaultColor,k.strokeWidth=G.defaultStrokeWidth,k.strokeDasharray=G.defaultStrokeDasharray,k.strokePanel=new Ye("Line color",G.defaultColorSet,G.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.strokeWidthPanel=new mt("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new pt("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k}return ie(m,N),m.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual&&b!==this.selectorCurve&&b!==this.visibleCurve&&!this.curveGrip.ownsTarget(b))},m.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},m.prototype.createVisual=function(){this.visual=Z.createGroup(),this.selectorCurve=Z.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Z.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},m.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=b.x,this.curveY=b.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(M)&&(this.activeGrip=this.curveGrip,this._state="resize")},m.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Z.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Z.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Z.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},m.prototype.setupControlBox=function(){N.prototype.setupControlBox.call(this),this.curveControlLine1=Z.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Z.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},m.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,N.prototype.addControlGrips.call(this)},m.prototype.positionGrips=function(){N.prototype.positionGrips.call(this);var b=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-b/2,this.curveY-b/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},m.prototype.manipulate=function(b){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+b.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+b.y-this.manipulationStartY),N.prototype.manipulate.call(this,b)},m.prototype.resize=function(b){this.activeGrip===this.curveGrip&&(this.curveX=b.x,this.curveY=b.y),N.prototype.resize.call(this,b),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},m.prototype.setStrokeColor=function(b){this.strokeColor=b,this.adjustVisual(),this.colorChanged(b)},m.prototype.setStrokeWidth=function(b){this.strokeWidth=b,this.adjustVisual()},m.prototype.setStrokeDasharray=function(b){this.strokeDasharray=b,this.adjustVisual()},m.prototype.scale=function(b,M){this.curveX=this.curveX*b,this.curveY=this.curveY*M,N.prototype.scale.call(this,b,M)},Object.defineProperty(m.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),m.prototype.getState=function(){var b=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},N.prototype.getState.call(this));return b.typeName=m.typeName,b},m.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.strokeColor=M.strokeColor,this.strokeWidth=M.strokeWidth,this.strokeDasharray=M.strokeDasharray,this.curveX=M.curveX,this.curveY=M.curveY,this.createVisual(),this.adjustVisual()},m.typeName="CurveMarker",m.title="Curve marker",m.icon='',m}(De),bt=function(){function N(m,b){b===void 0&&(b=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=m,this.cancelable=b}return Object.defineProperty(N.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),N.prototype.preventDefault=function(){this._defaultPrevented=!0},N}(),vt=function(N){function m(b,M,G){var k=N.call(this,b,!1)||this;return k.dataUrl=M,k.state=G,k}return ie(m,N),m}(bt),rt=function(N){function m(b,M,G){G===void 0&&(G=!1);var k=N.call(this,b,G)||this;return k.marker=M,k}return ie(m,N),m}(bt),wt=function(){function N(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return N.prototype.addEventListener=function(m,b){this[m].push(b)},N.prototype.removeEventListener=function(m,b){var M=this[m].indexOf(b);M>-1&&this[m].splice(M,1)},N}(),Dt=function(){function N(m){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ce,this._isOpen=!1,this.undoRedoManager=new nt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new wt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=N.instanceCounter++,this.styles=new Qe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=m,this.targetRoot=document.body,this.width=m.clientWidth,this.height=m.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.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.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(N.prototype,"ALL_MARKER_TYPES",{get:function(){return[me,ue,te,Le,Xe,Te,J,pe,Re,K,Ne,Fe]},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[me,ue,te,Le,Te,J,pe]},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"BASIC_MARKER_TYPES",{get:function(){return[me,ue,te,Le,J]},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(m){var b=this;this._availableMarkerTypes.splice(0),m.forEach(function(M){if(typeof M=="string"){var G=b.ALL_MARKER_TYPES.find(function(k){return k.typeName===M});G!==void 0&&b._availableMarkerTypes.push(G)}else b._availableMarkerTypes.push(M)})},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(m){this._zoomLevel=m,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),N.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},N.prototype.show=function(){var m=this;this.styles.styleSheetRoot===void 0&&tt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=tt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(b){return b(new bt(m))})},N.prototype.render=function(){return xe(this,void 0,void 0,function(){var m;return Ae(this,function(b){switch(b.label){case 0:return this.setCurrentMarker(),(m=new $e).naturalSize=this.renderAtNaturalSize,m.imageType=this.renderImageType,m.imageQuality=this.renderImageQuality,m.markersOnly=this.renderMarkersOnly,m.width=this.renderWidth,m.height=this.renderHeight,[4,m.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return b.sent(),[4,m.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,b.sent()]}})})},N.prototype.close=function(m){var b=this;if(m===void 0&&(m=!1),this.isOpen){var M=!1;m||this.eventListeners.beforeclose.forEach(function(G){var k=new bt(b,!0);G(k),k.defaultPrevented&&(M=!0)}),M||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(G){return G(new bt(b))}),this.detachEvents(),this._isOpen=!1)}},N.prototype.addMarkersToToolbar=function(){for(var m,b=[],M=0;Mthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*m:this.editorCanvas.clientWidth,M=b',m.title="Powered by marker.js",m.style.display="grid",m.style.alignItems="center",m.style.justifyItems="center",m.style.padding="3px",m.style.width="20px",m.style.height="20px",this.logoUI.appendChild(m),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},N.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},N.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},N.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},N.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var m=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=m+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.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.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.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.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new We(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",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.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(m),1),m.dispose()},N.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},N.prototype.toolbarButtonClicked=function(m,b){if(m==="marker"&&b!==void 0)this.createNewMarker(b);else if(m==="action")switch(b){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},N.prototype.deleteSelectedMarker=function(){var m=this;if(this._currentMarker!==void 0){var b=!1;if(this.eventListeners.markerbeforedelete.forEach(function(G){var k=new rt(m,m._currentMarker,!0);G(k),k.defaultPrevented&&(b=!0)}),!b){var M=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(G){return G(new rt(m,M))})}}},N.prototype.clear=function(){var m=this,b=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var je=new rt(m,void 0,!0);he(je),je.defaultPrevented&&(b=!0)}),!b)){this.setCurrentMarker();for(var M=function(he){var je=G.markers[he];G.setCurrentMarker(G.markers[he]),G._currentMarker.dispose(),G.markerImage.removeChild(G._currentMarker.container),G.markers.splice(G.markers.indexOf(G._currentMarker),1),G.eventListeners.markerdelete.forEach(function(st){return st(new rt(m,je))})},G=this,k=this.markers.length-1;k>=0;k--)M(k);this.addUndoStep()}},Object.defineProperty(N.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),N.prototype.showNotesEditor=function(){var m;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(m=this._currentMarker.notes)!==null&&m!==void 0?m:"",this.overlayContainer.appendChild(this.notesArea))},N.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},N.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},N.prototype.addUndoStep=function(){var m=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var b=this.getState(),M=this.undoRedoManager.getLastUndoStep();if(!M||M.width===b.width&&M.height===b.height){var G=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(b),G1&&this.panTo({x:m.clientX,y:m.clientY}))},N.prototype.onPointerUp=function(m){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(m.clientX,m.clientY)),this.isDragging=!1,this.addUndoStep()},N.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},N.prototype.onKeyUp=function(m){this._currentMarker===void 0||this.notesArea!==void 0||m.key!=="Delete"&&m.key!=="Backspace"||this.deleteSelectedMarker()},N.prototype.clientToLocalCoordinates=function(m,b){var M=this.markerImage.getBoundingClientRect();return{x:(m-M.left)/this.zoomLevel,y:(b-M.top)/this.zoomLevel}},N.prototype.onWindowResize=function(){this.positionUI()},N.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var m=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=m+"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=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},N.prototype.addLicenseKey=function(m){Ue.addKey(m)},N.prototype.addEventListener=function(m,b){this.eventListeners.addEventListener(m,b)},N.prototype.removeEventListener=function(m,b){this.eventListeners.removeEventListener(m,b)},N.prototype.renderState=function(m){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(m),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(N.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),N.prototype.focus=function(){var m=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(b){return b(new bt(m))}))},N.prototype.blur=function(){var m=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(b){return b(new bt(m))}))},N.instanceCounter=0,N}();/* **********************************
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 xt=function(N,m){return(xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,M){b.__proto__=M}||function(b,M){for(var G in M)Object.prototype.hasOwnProperty.call(M,G)&&(b[G]=M[G])})(N,m)};function ct(N,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function b(){this.constructor=N}xt(N,m),N.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}function yt(N,m,b,M){return new(b||(b=Promise))(function(G,k){function he(gt){try{st(M.next(gt))}catch(Ge){k(Ge)}}function je(gt){try{st(M.throw(gt))}catch(Ge){k(Ge)}}function st(gt){var Ge;gt.done?G(gt.value):(Ge=gt.value,Ge instanceof b?Ge:new b(function(At){At(Ge)})).then(he,je)}st((M=M.apply(N,m||[])).next())})}function St(N,m){var b,M,G,k,he={label:0,sent:function(){if(1&G[0])throw G[1];return G[1]},trys:[],ops:[]};return k={next:je(0),throw:je(1),return:je(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function je(st){return function(gt){return function(Ge){if(b)throw new TypeError("Generator is already executing.");for(;he;)try{if(b=1,M&&(G=2&Ge[0]?M.return:Ge[0]?M.throw||((G=M.return)&&G.call(M),0):M.next)&&!(G=G.call(M,Ge[1])).done)return G;switch(M=0,G&&(Ge=[2&Ge[0],G.value]),Ge[0]){case 0:case 1:G=Ge;break;case 4:return he.label++,{value:Ge[1],done:!1};case 5:he.label++,M=Ge[1],Ge=[0];continue;case 7:Ge=he.ops.pop(),he.trys.pop();continue;default:if(!(G=he.trys,(G=G.length>0&&G[G.length-1])||Ge[0]!==6&&Ge[0]!==2)){he=0;continue}if(Ge[0]===3&&(!G||Ge[1]>G[0]&&Ge[1]0&&b>0){var M=new Pn(m,b),G=M.ratio>=1?20:M.getHorizontalLength(20),k=M.ratio<1?20:M.getVerticalLength(20),he=document.createElementNS("http://www.w3.org/2000/svg","svg");he.setAttribute("xmlns","http://www.w3.org/2000/svg"),he.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(he);var je=Ie.createDefs();he.appendChild(je);var st=Ie.createElement("clipPath",[["id","text-bg-clip"]]);je.appendChild(st);var gt=Ie.createPath(Ie.getHollowRectanglePath((24-G)/2,(24-k)/2,G,k,(24-G)/2+2,(24-k)/2+2,G-4,k-4));he.appendChild(gt);var Ge=Ie.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ge.appendChild(Ie.createTSpan(m+":"+b)),he.appendChild(Ge);var At=Ge.getBBox();Ie.setAttributes(Ge,[["x",((24-At.width)/2).toString()],["y",((24-At.height)/2-At.y).toString()]]);var Lt=Ie.createPath(Ie.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(At.width))/2,(24-Math.ceil(At.height))/2,Math.ceil(At.width),Math.ceil(At.height)));return st.appendChild(Lt),Ie.setAttributes(gt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(he),he.outerHTML}return''},N}(),Jn=function(N){function m(b,M,G){var k=N.call(this,b,M)||this;return k.isDropdownOpen=!1,k.onClick=k.dropdownButtonClicked,k.dropdownButtons=G,k}return ct(m,N),m.prototype.setupDropdown=function(){var b=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(M){M.className=b.className,M.colorsClassName=b.colorsClassName,b.dropdownBlock.appendChild(M.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},m.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},m.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},m.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},m.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},m.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},m}(Cn),Kn=function(){function N(m,b){this.GRIP_SIZE=10,this.color=m,this.fillColor=b,this.visual=Ie.createGroup(),this.visual.appendChild(Ie.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ie.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return N.prototype.ownsTarget=function(m){return m===this.visual||m===this.visual.childNodes[0]||m===this.visual.childNodes[1]},N.prototype.setCenter=function(m,b){this.visual.childNodes.forEach(function(M){return Ie.setAttributes(M,[["cx",m.toString()],["cy",b.toString()]])})},N}(),On=function(){function N(m,b,M,G){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=m,this.canvasHeight=b,this.margin=M,this.container=G,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(N.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(m){this._aspectRatio=m,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(m){this._isGridVisible=m,this.gridContainer&&Ie.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(m){this._zoomFactor=m,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),N.prototype.open=function(){var m=this;this.cropShadeElement=Ie.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Ie.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var b=0;bthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-b.height/2),Ie.setAttributes(this.cropRectElement,[["x",b.x.toString()],["y",b.y.toString()],["width",b.width.toString()],["height",b.height.toString()]]);var M=b.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(k,he){var je=b.y+M*(he+1);Ie.setAttributes(k,[["x1",""+b.x],["y1",""+je],["x2",""+(b.x+b.width)],["y2",""+je]])});var G=b.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(k,he){var je=b.x+G*(he+1);Ie.setAttributes(k,[["x1",""+je],["y1",""+b.y],["x2",""+je],["y2",""+(b.y+b.height)]])}),Ie.setAttributes(this.cropShadeElement,[["d",Ie.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,b.x,b.y,b.width,b.height)]]),this.topLeftGrip.setCenter(b.x,b.y),this.topRightGrip.setCenter(b.x+b.width,b.y),this.bottomLeftGrip.setCenter(b.x,b.y+b.height),this.bottomRightGrip.setCenter(b.x+b.width,b.y+b.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},N.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)},N.prototype.clientToLocalCoordinates=function(m,b){var M=this.container.getBoundingClientRect();return{x:m-M.left+this.margin,y:b-M.top+this.margin}},N.prototype.onPointerDown=function(m){this.container.setPointerCapture(m.pointerId),this.previousPoint=this.clientToLocalCoordinates(m.clientX,m.clientY),this.cropRectElement===m.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(m.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(m.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(m.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(m.target)&&(this.activeGrip=this.bottomRightGrip)},N.prototype.onPointerMove=function(m){if(this.isMoving)this.move(this.clientToLocalCoordinates(m.clientX,m.clientY));else if(this.activeGrip){var b=this.clientToLocalCoordinates(m.clientX,m.clientY);this.resize(b)}m.preventDefault()},N.prototype.onPointerUp=function(m){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(m.pointerId)},N.prototype.move=function(m){var b=m.x-this.previousPoint.x,M=m.y-this.previousPoint.y;this.zoomFactor!==1&&(b=-b/this.zoomFactor,M=-M/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+b),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+M),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=m},N.prototype.resize=function(m){var b=Object.assign({},this.cropRect),M=m.x-this.previousPoint.x,G=m.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:b.x+Mthis.canvasWidth*this.zoomFactor&&(M=this.canvasWidth*this.zoomFactor-b.width),b.width+=M}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(b.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(M),b.height=this.aspectRatio.getVerticalLength(b.width)):(b.y+=G,b.height=this.cropRect.y+this.cropRect.height-b.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?b.height=this.aspectRatio.getVerticalLength(b.width):b.height+=G}b.width<10&&(b.x=this.cropRect.x,b.width=10),b.height<10&&(b.y=this.cropRect.y,b.height=10),this.previousPoint=m,b.x>=this.margin&&b.y>=this.margin&&b.x-this.margin+b.width<=this.canvasWidth&&b.y-this.margin+b.height<=this.canvasHeight&&(this.cropRect=b,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},N.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var m=this.cropRect.x+this.cropRect.width/2,b=this.cropRect.y+this.cropRect.height/2,M=this.aspectRatio.getHorizontalLength(this.cropRect.height),G=this.aspectRatio.getVerticalLength(this.cropRect.width);M/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=m-this.cropRect.width/2,this.cropRect.y=b-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)}},N.prototype.getRescaledRect=function(m,b,M,G,k,he){var je=M/m,st=G/b;return{x:(k.x-he)*je+he,y:(k.y-he)*st+he,width:k.width*je,height:k.height*st}},N.prototype.scaleCanvas=function(m,b){var M=this.getRescaledRect(this.canvasWidth,this.canvasHeight,m,b,this.cropRect,this.margin);this.canvasWidth=m,this.canvasHeight=b,this.onCropChange&&this.onCropChange(M),this.setCropRectangle(M)},N}(),Mn=function(){function N(m){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=m,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(N.prototype,"angle",{get:function(){return this._angle},set:function(m){this._angle=m,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),N.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},N.prototype.onPointerDown=function(m){this.controlContainer.setPointerCapture(m.pointerId),this.isDragging=!0,this.previousPoint={x:m.clientX,y:m.clientY}},N.prototype.onPointerMove=function(m){this.isDragging&&(this.onAngleChange&&this.onAngleChange((m.clientX-this.previousPoint.x)/5),this.previousPoint.x=m.clientX)},N.prototype.onPointerUp=function(m){this.isDragging&&this.onAngleChange&&this.onAngleChange((m.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(m.pointerId)},N.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var m=this.angleLabelText.getBBox();Ie.setAttributes(this.angleLabelElement,[["x",((this.width-m.width)/2).toString()],["y",(this.height/2).toString()]])}},N.prototype.positionScaleShape=function(){if(this.scaleShape){var m=this.scaleShape.transform.baseVal.getItem(0);m.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(m,0)}},N.prototype.getVisual=function(){var m=document.createElementNS("http://www.w3.org/2000/svg","svg");m.setAttribute("xmlns","http://www.w3.org/2000/svg"),m.setAttribute("width",this.width+"px"),m.setAttribute("height",this.height+"px"),m.setAttribute("viewBox","0 0 "+this.width+" "+this.height),m.style.flexShrink="0",document.body.appendChild(m);for(var b="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,M=1;M<=this.width/5+10;M++){var G=M%5==0?this.height/3:this.height/6;b+="h4v"+-G+"h1v"+G}b+="v1H0Z",this.scaleShape=Ie.createPath(b);var k=Ie.createTransform();this.scaleShape.transform.baseVal.appendItem(k),m.appendChild(this.scaleShape),this.angleLabelElement=Ie.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Ie.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var he=Ie.createTSpan("");return he.innerHTML="°",this.angleLabelElement.appendChild(he),m.appendChild(this.angleLabelElement),document.body.removeChild(m),m},N}(),Gn=function(){function N(){this.naturalSize=!1,this.imageType="image/png"}return N.prototype.rasterize=function(m,b,M,G,k,he,je){var st=this;return new Promise(function(gt){var Ge=document.createElement("canvas");Ge.width=m.width.baseVal.value-2*G,Ge.height=m.height.baseVal.value-2*G;var At=1,Lt=1;st.naturalSize===!0?(At=b.naturalWidth/(m.width.baseVal.value-2*G)/he,Lt=b.naturalHeight/(m.height.baseVal.value-2*G)/je,Ge.width=b.naturalWidth/he,Ge.height=b.naturalHeight/je):st.width!==void 0&&st.height!==void 0&&(At=st.width/M.width,Lt=st.height/M.height,Ge.width*=At,Ge.height*=Lt);var en=Ge.getContext("2d");en.translate(Ge.width/2,Ge.height/2),en.rotate(k*Math.PI/180),en.scale(he,je),en.translate(-Ge.width/2,-Ge.height/2),en.drawImage(b,0,0,Ge.width,Ge.height);var In=document.createElement("canvas");In.width=M.width*At,In.height=M.height*Lt,In.getContext("2d").putImageData(en.getImageData((M.x-G)*At,(M.y-G)*Lt,M.width*At,M.height*Lt),0,0),gt(In.toDataURL(st.imageType,st.imageQuality))})},N}(),oi=function(){function N(m){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=N.instanceCounter++,this.styles=new ot(this.instanceNo),this.target=m,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(N.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(m){this._zoomToCropEnabled=m,m?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(m){this._isGridVisible=m,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"gridLines",{get:function(){return this._gridLines},set:function(m){this._gridLines=m,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(m){this._rotationAngle=m,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"aspectRatio",{get:function(){var m;return(m=this._aspectRatio)!==null&&m!==void 0?m:this.aspectRatios[0]},set:function(m){this._aspectRatio=m},enumerable:!1,configurable:!0}),N.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},N.prototype.show=function(){this.showUI(),this.open()},N.prototype.close=function(m){m===void 0&&(m=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),m||this.closeEventListeners.forEach(function(b){return b()}),this._isOpen=!1)},N.prototype.addRenderEventListener=function(m){this.renderEventListeners.push(m)},N.prototype.removeRenderEventListener=function(m){this.renderEventListeners.indexOf(m)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(m),1)},N.prototype.addCloseEventListener=function(m){this.closeEventListeners.push(m)},N.prototype.removeCloseEventListener=function(m){this.closeEventListeners.indexOf(m)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(m),1)},N.prototype.setupResizeObserver=function(){var m=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){m.resize(m.target.clientWidth,m.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))},N.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var m=1*this.target.clientWidth/this.target.clientHeight,b=this.contentDiv.clientWidth/m>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*m:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,M=b+2*this.CANVAS_MARGINm+this.CANVAS_MARGIN?this.target.offsetTop-(m+this.CANVAS_MARGIN):0;this.coverDiv.style.top=b+"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},N.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},N.prototype.addTopToolbar=function(){var m=this;this.topToolbar=new Ut,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 b=new jn;b.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(b);var M=[];this.aspectRatios.forEach(function(Lt){var en=new Cn(An.getIcon(Lt.horizontal,Lt.vertical),Lt.horizontal===0&&Lt.vertical===0?"FREE":Lt.horizontal+":"+Lt.vertical);en.onClick=function(){return m.ratioButtonClicked(Lt)},M.push(en)}),this.aspectRatioButton=new Jn(An.getIcon(0,0),"Aspect ratio",M),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,b.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var G=new Cn('',"Toggle grid");G.isActive=this.isGridVisible,G.onClick=function(){m.isGridVisible=!m.isGridVisible,G.isActive=m.isGridVisible},b.addButton(G);var k=new Cn('',"Zoom to selection");if(k.isActive=this.zoomToCropEnabled,k.onClick=function(){m.zoomToCropEnabled=!m.zoomToCropEnabled,k.isActive=m.zoomToCropEnabled},b.addButton(k),!Mt.isLicensed){var he=new Rn;this.topToolbar.addElementBlock(he);var je=document.createElement("div");je.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var st=document.createElement("a");st.style.color="currentColor",st.href="https://markerjs.com/products/cropro",st.target="_blank",st.innerHTML='',je.appendChild(st),he.addElement(je)}var gt=new jn;gt.minWidth=3*this.toolbarHeight+"px",gt.contentAlign="end",this.topToolbar.addButtonBlock(gt);var Ge=new Cn('',"OK");Ge.onClick=this.startRenderAndClose,gt.addButton(Ge),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ge.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var At=new Cn('',"Close");At.onClick=this.close,gt.addButton(At),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(At.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},N.prototype.addBottomToolbar=function(){var m=this;this.bottomToolbar=new Ut,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 b=new jn;b.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(b);var M=new Cn('',"Rotate left");M.onClick=this.rotateLeftButtonClicked,b.addButton(M);var G=new Cn('',"Rotate right");G.onClick=this.rotateRightButtonClicked,b.addButton(G);var k=new Rn;k.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(k),this.straightener=new Mn("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(gt){m.rotateBy(gt),m.straightener.angle=m.rotationAngle},k.addElement(this.straightener.getUI());var he=new jn;he.minWidth=2*this.toolbarHeight+"px",he.contentAlign="end",this.bottomToolbar.addButtonBlock(he);var je=new Cn('',"Flip horizontal");je.onClick=this.flipHorizontallyButtonClicked,he.addButton(je);var st=new Cn('',"Flip vertical");st.onClick=this.flipVerticallyButtonClicked,he.addButton(st)},N.prototype.ratioButtonClicked=function(m){this.aspectRatio=m,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},N.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=An.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},N.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Pn(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},N.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},N.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},N.prototype.restoreState=function(m){if(m){var b=this.cropLayer.getRescaledRect(m.width,m.height,this.imageWidth,this.imageHeight,m.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(b),this.cropRectChanged(b),this.flippedHorizontally=m.flippedHorizontally,this.flippedVertically=m.flippedVertically,this.applyFlip(),this.rotationAngle=m.rotationAngle,this.applyRotation()}},N.prototype.clientToLocalCoordinates=function(m,b){var M=this.cropImage.getBoundingClientRect();return{x:m-M.left,y:b-M.top}},N.prototype.onWindowResize=function(){this.positionUI()},N.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var m=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=m+"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()},N.prototype.rotateLeftButtonClicked=function(){var m=this.rotationAngle-90;this.rotationAngle%90!=0&&(m+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(m)},N.prototype.rotateRightButtonClicked=function(){var m=this.rotationAngle+90;this.rotationAngle%90!=0&&(m-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(m)},N.prototype.rotateTo=function(m){m=(m=m>180?m-360:m)<=-180?m+360:m,this.rotationAngle=m,this.applyRotation()},N.prototype.rotateBy=function(m){this.rotateTo((this.rotationAngle+m)%360)},N.prototype.applyRotation=function(){var m=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var b=this.editingTargetRotationContainer.transform.baseVal.getItem(0);b.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(b,0);var M=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/M.width,this.imageHeight/M.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=m},N.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},N.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},N.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},N.prototype.startRenderAndClose=function(){return yt(this,void 0,void 0,function(){var m,b;return St(this,function(M){switch(M.label){case 0:return[4,this.render()];case 1:return m=M.sent(),b=this.getState(),this.renderEventListeners.forEach(function(G){return G(m,b)}),this.close(!0),[2]}})})},N.prototype.render=function(){return yt(this,void 0,void 0,function(){var m;return St(this,function(b){switch(b.label){case 0:return(m=new Gn).naturalSize=this.renderAtNaturalSize,m.imageType=this.renderImageType,m.imageQuality=this.renderImageQuality,m.width=this.renderWidth,m.height=this.renderHeight,this.unzoomFromCrop(),Ie.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,m.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 b.sent(),[4,m.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,b.sent()]}})})},N.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Et("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 Et("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Et("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var m=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Et("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*m)+`px;
height: `+(this.toolbarHeight-2*m)+`px;
padding: `+m+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Et("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Et("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new _t("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new _t("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new Et("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 Et("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new Et("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 Et("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*m)+`px;
padding: `+m+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Et("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},N.instanceCounter=0,N}(),zn=F("8hTe"),Nt=F.n(zn),Zn=/]*>/g;function fi(N){var m=document.createElement("div");return m.innerHTML=N,m.childNodes.length===0?"":m.childNodes[0].nodeValue}var qn=we.a=function(N){var m=N.value,b=m===void 0?"":m,M=N.edit,G=M===void 0?!1:M,k=N.className,he=N.showTextOnly,je=N.showLines,st=N.replaces,gt=N.zoomImg,Ge=N.hasMask,At=N.style,Lt=At===void 0?{}:At,en=N.stylesPrev,In=en===void 0?{}:en,Vn=String(b),Oe=Object(A.useRef)(),En=Object(A.useRef)(),si=Object(A.useState)(""),Yn=Object(H.a)(si,2),pi=Yn[0],$n=Yn[1],mn=Object(A.useState)("office"),Fn=Object(H.a)(mn,2),li=Fn[0],mi=Fn[1],Ti=function(){var Bt=new oi(En.current);Bt.displayMode="popup",Bt.addRenderEventListener(function(){var un=Object(S.a)(R.a.mark(function Vt(yn){var tn;return R.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:return Oe.current.style.display="none",_n.next=3,Object(be.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn}});case 3:tn=_n.sent,tn!=null&&tn.id&&st(En.current.getAttribute("src").replace(Q.a.API_SERVER,""),"/api/attachments/".concat(tn==null?void 0:tn.id,"?type=").concat(tn.content_type));case 5:case"end":return _n.stop()}},Vt)}));return function(Vt){return un.apply(this,arguments)}}()),Bt.show()},Ni=function(){var Bt=new Dt(En.current);Bt.settings.displayMode="popup",Bt.addEventListener("render",function(){var un=Object(S.a)(R.a.mark(function Vt(yn){var tn;return R.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:if(Oe.current.style.display="none",!En.current){_n.next=6;break}return _n.next=4,Object(be.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn.dataUrl}});case 4:tn=_n.sent,tn!=null&&tn.id&&st(En.current.getAttribute("src").replace(Q.a.API_SERVER,""),"/api/attachments/".concat(tn==null?void 0:tn.id,"?type=").concat(tn.content_type));case 6:case"end":return _n.stop()}},Vt)}));return function(Vt){return un.apply(this,arguments)}}()),Bt.show(),window.markerArea=Bt},ui=Object(A.useMemo)(function(){Oe.current&&(Oe.current.style.zIndex=-1);try{var nn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Bt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,un=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Vn=Vn.replace(nn,"("+Q.a.API_SERVER+"/api/attachments/").replace(Bt,'"'+Q.a.API_SERVER+"/api/attachments/").replace(un,'"'+Q.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(vi){}var Vt=w(Vn),yn=f();if(Vn.match(/\[TOC\]/)&&(Vt=Vt.replace("[TOC]
",E()),T()),Vt=Vt.replace(/(__special_katext_id_\d+__)/g,function(vi,_n){var xi=yn[_n],yi=xi.type,_i=xi.expression;return Object(re.renderToString)(fi(_i)||"",{displayMode:yi==="block",throwOnError:!1,output:"html"})}),Vt=Vt.replace(/▁/g,"\u2581\u2581\u2581"),c(),he){var tn=document.createElement("div");return tn.innerHTML=Vt,tn.innerText}return setTimeout(function(){return Ri()},500),Vt},[Vn]),Tn=Object(A.useRef)();_.WebkitLineClamp=je,je&&(Lt=Object(C.a)(Object(C.a)({},Lt),_));function ei(nn){var Bt=nn.target;if(Bt.tagName.toUpperCase()==="IMG"){if(gt){var un=Bt.getAttribute("src");$n(un),mi("image")}}else if(Bt.tagName.toUpperCase()==="A"){var Vt=Bt.getAttribute("href");if(Vt.indexOf("office")>-1)nn.preventDefault(),$n(Vt),mi("office");else if(Vt.indexOf("application/pdf")>-1)nn.preventDefault(),$n(Vt),mi("pdf");else if(Vt.indexOf("text/html")>-1)nn.preventDefault(),$n(Vt),mi("html");else if(Vt.startsWith("#")){nn.preventDefault();var yn=document.getElementById(Vt.replace("#",""));yn&&yn.scrollIntoView(!0)}}}var Ri=function(){var Bt,un=(Bt=Tn.current)===null||Bt===void 0?void 0:Bt.querySelectorAll("video");un==null||un.forEach(function(Vt){if(Vt.oncontextmenu=function(){return!1},Vt.src.indexOf(".m3u8")>-1&&!Vt.canPlayType("application/vnd.apple.mpegurl")){if(z.a.isSupported()){var yn=new z.a;yn.loadSource(Vt.src),yn.attachMedia(Vt)}}})};Object(A.useEffect)(function(){if(Tn.current&&ui&&(ui.match(Zn)&&window.PR.prettyPrint()),Tn.current)return Tn.current.addEventListener("click",ei),function(){Tn.current.removeEventListener("click",ei),c(),T()}},[ui,Tn.current,ei]);var gi=function(Bt){if(!G)return;Bt.target.nodeName==="IMG"?(Oe.current.style.zIndex=1,Oe.current.style.display="flex",Oe.current.style.width=Bt.target.clientWidth+"px",Oe.current.style.height=Bt.target.clientHeight+"px",Oe.current.style.top=Bt.target.offsetTop+"px",Oe.current.style.left=Bt.target.offsetLeft+"px",En.current.src=Bt.target.getAttribute("src")):Oe.current.style.display="none"};return y.a.createElement("div",{style:{position:"relative"}},y.a.createElement("div",{ref:Tn,style:Object(C.a)({},Lt),className:"".concat(k||""," markdown-body ").concat(Nt.a.mdBody),onMouseOver:gi,dangerouslySetInnerHTML:{__html:ui}}),y.a.createElement("div",{ref:Oe,className:Nt.a.button},y.a.createElement(L.a,null,y.a.createElement(j.a,{onClick:function(){return Ti()}},"\u88C1\u526A"),y.a.createElement(j.a,{onClick:function(){return Ni()}},"\u7F16\u8F91"))),y.a.createElement("img",{ref:En,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),y.a.createElement(le.a,{close:!0,data:pi,type:pi!=null&&pi.length?li:"",style:Object(C.a)({},In),onClose:function(){return $n("")}}))}},"9JIy":function(Ke,we,F){Ke.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},BJfS:function(Ke,we){var F=function(ae){return ae.replace(/[A-Z]/g,function(L){return"-"+L.toLowerCase()}).toLowerCase()};Ke.exports=F},BU3w:function(Ke,we,F){"use strict";F.d(we,"a",function(){return S});var ae=F("MNnm"),L="rc-util-key";function I(H){if(H.attachTo)return H.attachTo;var U=document.querySelector("head");return U||document.body}function j(H){var U,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ae.a)())return null;var A=document.createElement("style");if((U=R.csp)===null||U===void 0?void 0:U.nonce){var y;A.nonce=(y=R.csp)===null||y===void 0?void 0:y.nonce}A.innerHTML=H;var v=I(R),d=v.firstChild;return R.prepend&&v.prepend?v.prepend(A):R.prepend&&d?v.insertBefore(A,d):v.appendChild(A),A}var C=new Map;function S(H,U){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=I(R);if(!C.has(A)){var y=j("",R),v=y.parentNode;C.set(A,v),v.removeChild(y)}var d=Array.from(C.get(A).children).find(function(e){return e.tagName==="STYLE"&&e[L]===U});if(d){var o,n;if(((o=R.csp)===null||o===void 0?void 0:o.nonce)&&d.nonce!==((n=R.csp)===null||n===void 0?void 0:n.nonce)){var a;d.nonce=(a=R.csp)===null||a===void 0?void 0:a.nonce}return d.innerHTML!==H&&(d.innerHTML=H),d}var s=j(H,R);return s[L]=U,s}},BdwD:function(Ke,we,F){"use strict";var ae=F("+L6B"),L=F("2/Rp"),I=F("0Owb"),j=F("k1fw"),C=F("q1tI"),S=F.n(C),H=F("FOrL"),U=F.n(H),R=function(y){var v=y.buttonProps,d=v===void 0?{}:v,o=y.styles,n=o===void 0?{}:o,a=y.customText,s=y.ButtonText,e=y.ButtonClick,t=y.Buttonclass,i=y.ButtonTwo;return S.a.createElement("section",{className:"tc animated fadeIn",style:Object(j.a)(Object(j.a)({},{color:"#999",margin:"200px auto"}),n)},S.a.createElement("img",{src:U.a}),S.a.createElement("p",{className:"mt20 font14"},a||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),s&&S.a.createElement(L.a,Object(I.a)({className:t,onClick:e},d),s),i&&i)};we.a=R},Bq7L:function(Ke,we){Ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4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G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},DlQD:function(Ke,we,F){(function(ae,L){Ke.exports=L()})(this,function(){"use strict";function ae(ue,ne){for(var te=0;teue.length)&&(ne=ue.length);for(var te=0,K=new Array(ne);te=ue.length?{done:!0}:{done:!1,value:ue[K++]}}}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 te=ue[Symbol.iterator](),te.next.bind(te)}function S(ue,ne){return ne={exports:{}},ue(ne,ne.exports),ne.exports}var H=S(function(ue){function ne(){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 te(K){ue.exports.defaults=K}ue.exports={defaults:ne(),getDefaults:ne,changeDefaults:te}}),U=H.defaults,R=H.getDefaults,A=H.changeDefaults,y=/[&<>"']/,v=/[&<>"']/g,d=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},a=function(ne){return n[ne]};function s(ue,ne){if(ne){if(y.test(ue))return ue.replace(v,a)}else if(d.test(ue))return ue.replace(o,a);return ue}var e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function t(ue){return ue.replace(e,function(ne,te){return te=te.toLowerCase(),te==="colon"?":":te.charAt(0)==="#"?te.charAt(1)==="x"?String.fromCharCode(parseInt(te.substring(2),16)):String.fromCharCode(+te.substring(1)):""})}var i=/(^|[^\[])\^/g;function T(ue,ne){ue=ue.source||ue,ne=ne||"";var te={replace:function(Y,J){return J=J.source||J,J=J.replace(i,"$1"),ue=ue.replace(Y,J),te},getRegex:function(){return new RegExp(ue,ne)}};return te}var _=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function E(ue,ne,te){if(ue){var K;try{K=decodeURIComponent(t(te)).replace(_,"").toLowerCase()}catch(Y){return null}if(K.indexOf("javascript:")===0||K.indexOf("vbscript:")===0||K.indexOf("data:")===0)return null}ne&&!p.test(te)&&(te=l(ne,te));try{te=encodeURI(te).replace(/%25/g,"%")}catch(Y){return null}return te}var g={},h=/^[^:]+:\/*[^/]*$/,u=/^([^:]+:)[\s\S]*$/,r=/^([^:]+:\/*[^/]*)[\s\S]*$/;function l(ue,ne){g[" "+ue]||(h.test(ue)?g[" "+ue]=ue+"/":g[" "+ue]=D(ue,"/",!0)),ue=g[" "+ue];var te=ue.indexOf(":")===-1;return ne.substring(0,2)==="//"?te?ne:ue.replace(u,"$1")+ne:ne.charAt(0)==="/"?te?ne:ue.replace(r,"$1")+ne:ue+ne}var f={exec:function(){}};function c(ue){for(var ne=1,te,K;ne=0&&pe[Re]==="\\";)Te=!Te;return Te?"|":" |"}),K=te.split(/ \|/),Y=0;if(K.length>ne)K.splice(ne);else for(;K.length=K.length?Y.slice(K.length):Y}).join(`
`)}var ye=function(){function ue(te){this.options=te||W}var ne=ue.prototype;return ne.space=function(K){var Y=this.rules.block.newline.exec(K);if(Y)return Y[0].length>1?{type:"space",raw:Y[0]}:{raw:`
`}},ne.code=function(K,Y){var J=this.rules.block.code.exec(K);if(J){var ee=Y[Y.length-1];if(ee&&ee.type==="paragraph")return{raw:J[0],text:J[0].trimRight()};var pe=J[0].replace(/^ {4}/gm,"");return{type:"code",raw:J[0],codeBlockStyle:"indented",text:this.options.pedantic?pe:P(pe,`
`)}}},ne.fences=function(K){var Y=this.rules.block.fences.exec(K);if(Y){var J=Y[0],ee=be(J,Y[3]||"");return{type:"code",raw:J,lang:Y[2]?Y[2].trim():Y[2],text:ee}}},ne.heading=function(K){var Y=this.rules.block.heading.exec(K);if(Y)return{type:"heading",raw:Y[0],depth:Y[1].length,text:Y[2]}},ne.nptable=function(K){var Y=this.rules.block.nptable.exec(K);if(Y){var J={type:"table",header:z(Y[1].replace(/^ *| *\| *$/g,"")),align:Y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Y[3]?Y[3].replace(/\n$/,"").split(`
`):[],raw:Y[0]};if(J.header.length===J.align.length){var ee=J.align.length,pe;for(pe=0;pe ?/gm,"");return{type:"blockquote",raw:Y[0],text:J}}},ne.list=function(K){var Y=this.rules.block.list.exec(K);if(Y){for(var J=Y[0],ee=Y[2],pe=ee.length>1,Te=ee[ee.length-1]===")",Re={type:"list",raw:J,ordered:pe,start:pe?+ee.slice(0,-1):"",loose:!1,items:[]},Xe=Y[0].match(this.rules.block.item),nt=!1,Fe,bt,vt,rt,wt,Dt,xt,ct=Xe.length,yt=0;yt1||this.options.smartLists&&vt!==ee)&&(rt=Xe.slice(yt+1).join(`
`),Re.raw=Re.raw.substring(0,Re.raw.length-rt.length),yt=ct-1)),wt=nt||/\n\n(?!\s*$)/.test(Fe),yt!==ct-1&&(nt=Fe.charAt(Fe.length-1)===`
`,wt||(wt=nt)),wt&&(Re.loose=!0),Dt=/^\[[ xX]\] /.test(Fe),xt=void 0,Dt&&(xt=Fe[1]!==" ",Fe=Fe.replace(/^\[[ xX]\] +/,"")),Re.items.push({type:"list_item",raw:J,task:Dt,checked:xt,loose:wt,text:Fe});return Re}},ne.html=function(K){var Y=this.rules.block.html.exec(K);if(Y)return{type:this.options.sanitize?"paragraph":"html",raw:Y[0],pre:!this.options.sanitizer&&(Y[1]==="pre"||Y[1]==="script"||Y[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Y[0]):Q(Y[0]):Y[0]}},ne.def=function(K){var Y=this.rules.block.def.exec(K);if(Y){Y[3]&&(Y[3]=Y[3].substring(1,Y[3].length-1));var J=Y[1].toLowerCase().replace(/\s+/g," ");return{tag:J,raw:Y[0],href:Y[2],title:Y[3]}}},ne.table=function(K){var Y=this.rules.block.table.exec(K);if(Y){var J={type:"table",header:z(Y[1].replace(/^ *| *\| *$/g,"")),align:Y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Y[3]?Y[3].replace(/\n$/,"").split(`
`):[]};if(J.header.length===J.align.length){J.raw=Y[0];var ee=J.align.length,pe;for(pe=0;pe/i.test(ee[0])&&(Y=!1),!J&&/^<(pre|code|kbd|script)(\s|>)/i.test(ee[0])?J=!0:J&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ee[0])&&(J=!1),{type:this.options.sanitize?"text":"html",raw:ee[0],inLink:Y,inRawBlock:J,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ee[0]):Q(ee[0]):ee[0]}},ne.link=function(K){var Y=this.rules.inline.link.exec(K);if(Y){var J=re(Y[2],"()");if(J>-1){var ee=Y[0].indexOf("!")===0?5:4,pe=ee+Y[1].length+J;Y[2]=Y[2].substring(0,J),Y[0]=Y[0].substring(0,pe).trim(),Y[3]=""}var Te=Y[2],Re="";if(this.options.pedantic){var Xe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Te);Xe?(Te=Xe[1],Re=Xe[3]):Re=""}else Re=Y[3]?Y[3].slice(1,-1):"";Te=Te.trim().replace(/^<([\s\S]*)>$/,"$1");var nt=le(Y,{href:Te&&Te.replace(this.rules.inline._escapes,"$1"),title:Re&&Re.replace(this.rules.inline._escapes,"$1")},Y[0]);return nt}},ne.reflink=function(K,Y){var J;if((J=this.rules.inline.reflink.exec(K))||(J=this.rules.inline.nolink.exec(K))){var ee=(J[2]||J[1]).replace(/\s+/g," ");if(ee=Y[ee.toLowerCase()],!ee||!ee.href){var pe=J[0].charAt(0);return{type:"text",raw:pe,text:pe}}var Te=le(J,ee,J[0]);return Te}},ne.strong=function(K,Y,J){J===void 0&&(J="");var ee=this.rules.inline.strong.start.exec(K);if(ee&&(!ee[1]||ee[1]&&(J===""||this.rules.inline.punctuation.exec(J)))){Y=Y.slice(-1*K.length);var pe=ee[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;pe.lastIndex=0;for(var Te;(ee=pe.exec(Y))!=null;)if(Te=this.rules.inline.strong.middle.exec(Y.slice(0,ee.index+3)),Te)return{type:"strong",raw:K.slice(0,Te[0].length),text:K.slice(2,Te[0].length-2)}}},ne.em=function(K,Y,J){J===void 0&&(J="");var ee=this.rules.inline.em.start.exec(K);if(ee&&(!ee[1]||ee[1]&&(J===""||this.rules.inline.punctuation.exec(J)))){Y=Y.slice(-1*K.length);var pe=ee[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;pe.lastIndex=0;for(var Te;(ee=pe.exec(Y))!=null;)if(Te=this.rules.inline.em.middle.exec(Y.slice(0,ee.index+2)),Te)return{type:"em",raw:K.slice(0,Te[0].length),text:K.slice(1,Te[0].length-1)}}},ne.codespan=function(K){var Y=this.rules.inline.code.exec(K);if(Y){var J=Y[2].replace(/\n/g," "),ee=/[^ ]/.test(J),pe=J.startsWith(" ")&&J.endsWith(" ");return ee&&pe&&(J=J.substring(1,J.length-1)),J=Q(J,!0),{type:"codespan",raw:Y[0],text:J}}},ne.br=function(K){var Y=this.rules.inline.br.exec(K);if(Y)return{type:"br",raw:Y[0]}},ne.del=function(K){var Y=this.rules.inline.del.exec(K);if(Y)return{type:"del",raw:Y[0],text:Y[1]}},ne.autolink=function(K,Y){var J=this.rules.inline.autolink.exec(K);if(J){var ee,pe;return J[2]==="@"?(ee=Q(this.options.mangle?Y(J[1]):J[1]),pe="mailto:"+ee):(ee=Q(J[1]),pe=ee),{type:"link",raw:J[0],text:ee,href:pe,tokens:[{type:"text",raw:ee,text:ee}]}}},ne.url=function(K,Y){var J;if(J=this.rules.inline.url.exec(K)){var ee,pe;if(J[2]==="@")ee=Q(this.options.mangle?Y(J[0]):J[0]),pe="mailto:"+ee;else{var Te;do Te=J[0],J[0]=this.rules.inline._backpedal.exec(J[0])[0];while(Te!==J[0]);ee=Q(J[0]),J[1]==="www."?pe="http://"+ee:pe=ee}return{type:"link",raw:J[0],text:ee,href:pe,tokens:[{type:"text",raw:ee,text:ee}]}}},ne.inlineText=function(K,Y,J){var ee=this.rules.inline.text.exec(K);if(ee){var pe;return Y?pe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ee[0]):Q(ee[0]):ee[0]:pe=Q(this.options.smartypants?J(ee[0]):ee[0]),{type:"text",raw:ee[0],text:pe}}},ue}(),ie=w.noopTest,xe=w.edit,Ae=w.merge,fe={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:ie,table:ie,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};fe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,fe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,fe.def=xe(fe.def).replace("label",fe._label).replace("title",fe._title).getRegex(),fe.bullet=/(?:[*+-]|\d{1,9}[.)])/,fe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,fe.item=xe(fe.item,"gm").replace(/bull/g,fe.bullet).getRegex(),fe.list=xe(fe.list).replace(/bull/g,fe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+fe.def.source+")").getRegex(),fe._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",fe._comment=//,fe.html=xe(fe.html,"i").replace("comment",fe._comment).replace("tag",fe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fe.paragraph=xe(fe._paragraph).replace("hr",fe.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",fe._tag).getRegex(),fe.blockquote=xe(fe.blockquote).replace("paragraph",fe.paragraph).getRegex(),fe.normal=Ae({},fe),fe.gfm=Ae({},fe.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*|$)"}),fe.gfm.nptable=xe(fe.gfm.nptable).replace("hr",fe.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",fe._tag).getRegex(),fe.gfm.table=xe(fe.gfm.table).replace("hr",fe.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",fe._tag).getRegex(),fe.pedantic=Ae({},fe.normal,{html:xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",fe._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:ie,paragraph:xe(fe.normal._paragraph).replace("hr",fe.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",fe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Z={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ie,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:ie,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",Z.punctuation=xe(Z.punctuation).replace(/punctuation/g,Z._punctuation).getRegex(),Z._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Z._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Z.em.start=xe(Z.em.start).replace(/punctuation/g,Z._punctuation).getRegex(),Z.em.middle=xe(Z.em.middle).replace(/punctuation/g,Z._punctuation).replace(/overlapSkip/g,Z._overlapSkip).getRegex(),Z.em.endAst=xe(Z.em.endAst,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.em.endUnd=xe(Z.em.endUnd,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.start=xe(Z.strong.start).replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.middle=xe(Z.strong.middle).replace(/punctuation/g,Z._punctuation).replace(/blockSkip/g,Z._blockSkip).getRegex(),Z.strong.endAst=xe(Z.strong.endAst,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.endUnd=xe(Z.strong.endUnd,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.blockSkip=xe(Z._blockSkip,"g").getRegex(),Z.overlapSkip=xe(Z._overlapSkip,"g").getRegex(),Z._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Z._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Z._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])?)+(?![-_])/,Z.autolink=xe(Z.autolink).replace("scheme",Z._scheme).replace("email",Z._email).getRegex(),Z._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Z.tag=xe(Z.tag).replace("comment",fe._comment).replace("attribute",Z._attribute).getRegex(),Z._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Z._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Z._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Z.link=xe(Z.link).replace("label",Z._label).replace("href",Z._href).replace("title",Z._title).getRegex(),Z.reflink=xe(Z.reflink).replace("label",Z._label).getRegex(),Z.reflinkSearch=xe(Z.reflinkSearch,"g").replace("reflink",Z.reflink).replace("nolink",Z.nolink).getRegex(),Z.normal=Ae({},Z),Z.pedantic=Ae({},Z.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:xe(/^!?\[(label)\]\((.*?)\)/).replace("label",Z._label).getRegex(),reflink:xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z._label).getRegex()}),Z.gfm=Ae({},Z.normal,{escape:xe(Z.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&&(K="x"+K.toString(16)),ne+=""+K+";";return ne}var We=function(){function ue(te){this.tokens=[],this.tokens.links=Object.create(null),this.options=te||$e,this.options.tokenizer=this.options.tokenizer||new ye,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var K={block:tt.normal,inline:Qe.normal};this.options.pedantic?(K.block=tt.pedantic,K.inline=Qe.pedantic):this.options.gfm&&(K.block=tt.gfm,this.options.breaks?K.inline=Qe.breaks:K.inline=Qe.gfm),this.tokenizer.rules=K}ue.lex=function(K,Y){var J=new ue(Y);return J.lex(K)};var ne=ue.prototype;return ne.lex=function(K){return K=K.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(K,this.tokens,!0),this.inline(this.tokens),this.tokens},ne.blockTokens=function(K,Y,J){Y===void 0&&(Y=[]),J===void 0&&(J=!0),K=K.replace(/^ +$/gm,"");for(var ee,pe,Te,Re;K;){if(ee=this.tokenizer.space(K)){K=K.substring(ee.raw.length),ee.type&&Y.push(ee);continue}if(ee=this.tokenizer.code(K,Y)){K=K.substring(ee.raw.length),ee.type?Y.push(ee):(Re=Y[Y.length-1],Re.raw+=`
`+ee.raw,Re.text+=`
`+ee.text);continue}if(ee=this.tokenizer.fences(K)){K=K.substring(ee.raw.length),Y.push(ee);continue}if(ee=this.tokenizer.heading(K)){K=K.substring(ee.raw.length),Y.push(ee);continue}if(ee=this.tokenizer.nptable(K)){K=K.substring(ee.raw.length),Y.push(ee);continue}if(ee=this.tokenizer.hr(K)){K=K.substring(ee.raw.length),Y.push(ee);continue}if(ee=this.tokenizer.blockquote(K)){K=K.substring(ee.raw.length),ee.tokens=this.blockTokens(ee.text,[],J),Y.push(ee);continue}if(ee=this.tokenizer.list(K)){for(K=K.substring(ee.raw.length),Te=ee.items.length,pe=0;pe0)for(;(Xe=this.tokenizer.rules.inline.reflinkSearch.exec(Re))!=null;)nt.includes(Xe[0].slice(Xe[0].lastIndexOf("[")+1,-1))&&(Re=Re.slice(0,Xe.index)+"["+"a".repeat(Xe[0].length-2)+"]"+Re.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Xe=this.tokenizer.rules.inline.blockSkip.exec(Re))!=null;)Re=Re.slice(0,Xe.index)+"["+"a".repeat(Xe[0].length-2)+"]"+Re.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;K;){if(Te=this.tokenizer.escape(K)){K=K.substring(Te.raw.length),Y.push(Te);continue}if(Te=this.tokenizer.tag(K,J,ee)){K=K.substring(Te.raw.length),J=Te.inLink,ee=Te.inRawBlock,Y.push(Te);continue}if(Te=this.tokenizer.link(K)){K=K.substring(Te.raw.length),Te.type==="link"&&(Te.tokens=this.inlineTokens(Te.text,[],!0,ee)),Y.push(Te);continue}if(Te=this.tokenizer.reflink(K,this.tokens.links)){K=K.substring(Te.raw.length),Te.type==="link"&&(Te.tokens=this.inlineTokens(Te.text,[],!0,ee)),Y.push(Te);continue}if(Te=this.tokenizer.strong(K,Re,pe)){K=K.substring(Te.raw.length),Te.tokens=this.inlineTokens(Te.text,[],J,ee),Y.push(Te);continue}if(Te=this.tokenizer.em(K,Re,pe)){K=K.substring(Te.raw.length),Te.tokens=this.inlineTokens(Te.text,[],J,ee),Y.push(Te);continue}if(Te=this.tokenizer.codespan(K)){K=K.substring(Te.raw.length),Y.push(Te);continue}if(Te=this.tokenizer.br(K)){K=K.substring(Te.raw.length),Y.push(Te);continue}if(Te=this.tokenizer.del(K)){K=K.substring(Te.raw.length),Te.tokens=this.inlineTokens(Te.text,[],J,ee),Y.push(Te);continue}if(Te=this.tokenizer.autolink(K,Pe)){K=K.substring(Te.raw.length),Y.push(Te);continue}if(!J&&(Te=this.tokenizer.url(K,Pe))){K=K.substring(Te.raw.length),Y.push(Te);continue}if(Te=this.tokenizer.inlineText(K,ee,it)){K=K.substring(Te.raw.length),pe=Te.raw.slice(-1),Y.push(Te);continue}if(K){var Fe="Infinite loop on byte: "+K.charCodeAt(0);if(this.options.silent){console.error(Fe);break}else throw new Error(Fe)}}return Y},L(ue,null,[{key:"rules",get:function(){return{block:tt,inline:Qe}}}]),ue}(),Je=H.defaults,et=w.cleanUrl,Ye=w.escape,ze=function(){function ue(te){this.options=te||Je}var ne=ue.prototype;return ne.code=function(K,Y,J){var ee=(Y||"").match(/\S*/)[0];if(this.options.highlight){var pe=this.options.highlight(K,ee);pe!=null&&pe!==K&&(J=!0,K=pe)}return ee?''+(J?K:Ye(K,!0))+`
`:""+(J?K:Ye(K,!0))+`
`},ne.blockquote=function(K){return`
`+K+`
`},ne.html=function(K){return K},ne.heading=function(K,Y,J,ee){return this.options.headerIds?"
`:""+K+"
`},ne.hr=function(){return this.options.xhtml?`
`:`
`},ne.list=function(K,Y,J){var ee=Y?"ol":"ul",pe=Y&&J!==1?' start="'+J+'"':"";return"<"+ee+pe+`>
`+K+""+ee+`>
`},ne.listitem=function(K){return""+K+`
`},ne.checkbox=function(K){return" "},ne.paragraph=function(K){return""+K+`
`},ne.table=function(K,Y){return Y&&(Y=""+Y+""),`
`},ne.tablerow=function(K){return`
`+K+`
`},ne.tablecell=function(K,Y){var J=Y.header?"th":"td",ee=Y.align?"<"+J+' align="'+Y.align+'">':"<"+J+">";return ee+K+""+J+`>
`},ne.strong=function(K){return""+K+""},ne.em=function(K){return""+K+""},ne.codespan=function(K){return""+K+""},ne.br=function(){return this.options.xhtml?"
":"
"},ne.del=function(K){return""+K+""},ne.link=function(K,Y,J){if(K=et(this.options.sanitize,this.options.baseUrl,K),K===null)return J;var ee='"+J+"",ee},ne.image=function(K,Y,J){if(K=et(this.options.sanitize,this.options.baseUrl,K),K===null)return J;var ee='
":">",ee},ne.text=function(K){return K},ue}(),He=function(){function ue(){}var ne=ue.prototype;return ne.strong=function(K){return K},ne.em=function(K){return K},ne.codespan=function(K){return K},ne.del=function(K){return K},ne.html=function(K){return K},ne.text=function(K){return K},ne.link=function(K,Y,J){return""+J},ne.image=function(K,Y,J){return""+J},ne.br=function(){return""},ue}(),ft=function(){function ue(){this.seen={}}var ne=ue.prototype;return ne.slug=function(K){var Y=K.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Y)){var J=Y;do this.seen[J]++,Y=J+"-"+this.seen[J];while(this.seen.hasOwnProperty(Y))}return this.seen[Y]=0,Y},ue}(),ht=H.defaults,lt=w.unescape,at=function(){function ue(te){this.options=te||ht,this.options.renderer=this.options.renderer||new ze,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new He,this.slugger=new ft}ue.parse=function(K,Y){var J=new ue(Y);return J.parse(K)};var ne=ue.prototype;return ne.parse=function(K,Y){Y===void 0&&(Y=!0);var J="",ee,pe,Te,Re,Xe,nt,Fe,bt,vt,rt,wt,Dt,xt,ct,yt,St,Mt,Ie,ot=K.length;for(ee=0;ee0&&yt.tokens[0].type==="text"?(yt.tokens[0].text=Ie+" "+yt.tokens[0].text,yt.tokens[0].tokens&&yt.tokens[0].tokens.length>0&&yt.tokens[0].tokens[0].type==="text"&&(yt.tokens[0].tokens[0].text=Ie+" "+yt.tokens[0].tokens[0].text)):yt.tokens.unshift({type:"text",text:Ie}):ct+=Ie),ct+=this.parse(yt.tokens,xt),vt+=this.renderer.listitem(ct,Mt,St);J+=this.renderer.list(vt,wt,Dt);continue}case"html":{J+=this.renderer.html(rt.text);continue}case"paragraph":{J+=this.renderer.paragraph(this.parseInline(rt.tokens));continue}case"text":{for(vt=rt.tokens?this.parseInline(rt.tokens):rt.text;ee+1An error occurred:
"+me(Te.message+"",!0)+"
";throw Te}}Ee.options=Ee.setOptions=function(ue){return mt(Ee.defaults,ue),De(Ee.defaults),Ee},Ee.getDefaults=Ce,Ee.defaults=Ne,Ee.use=function(ue){var ne=mt({},ue);if(ue.renderer&&function(){var K=Ee.defaults.renderer||new ze,Y=function(pe){var Te=K[pe];K[pe]=function(){for(var Re=arguments.length,Xe=new Array(Re),nt=0;nt1&&arguments[1]!==void 0?arguments[1]:1,te=He.length,K=0;K1&&arguments[1]!==void 0?arguments[1]:!1;return Object(E.a)(P).map(function(Q,re){if(!C.isValidElement(Q)||!Q.type)return null;var le=Q.type.isSelectOptGroup,be=Q.key,ye=Q.props,ie=ye.children,xe=Object(H.a)(ye,["children"]);return z||!le?g(Q):Object(p.a)(Object(p.a)({key:"__RC_SELECT_GRP__".concat(be===null?re:be,"__"),label:be},xe),{},{options:h(ie)})}).filter(function(Q){return Q})}var u=F("2Qr1"),r=F("qNPg"),l=F("U8pU"),f=F("Kwbf"),c=F("WKfj");function x(P){var z=P.mode,Q=P.options,re=P.children,le=P.backfill,be=P.allowClear,ye=P.placeholder,ie=P.getInputElement,xe=P.showSearch,Ae=P.onSearch,fe=P.defaultOpen,Z=P.autoFocus,Ue=P.labelInValue,$e=P.value,tt=P.inputValue,Qe=P.optionLabelProp,it=z==="multiple"||z==="tags",Pe=xe!==void 0?xe:it||z==="combobox",We=Q||h(re);if(Object(f.a)(z!=="tags"||We.every(function(ze){return!ze.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),z==="tags"||z==="combobox"){var Je=We.some(function(ze){return ze.options?ze.options.some(function(He){return typeof("value"in He?He.value:He.key)=="number"}):typeof("value"in ze?ze.value:ze.key)=="number"});Object(f.a)(!Je,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(f.a)(z!=="combobox"||!Qe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(f.a)(z==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(f.a)(z==="combobox"||!ie,"`getInputElement` only work with `combobox` mode."),Object(f.b)(z!=="combobox"||!ie||!be||!ye,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ae&&!Pe&&z!=="combobox"&&z!=="tags"&&Object(f.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(f.b)(!fe||Z,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$e!=null){var et=Object(c.d)($e);Object(f.a)(!Ue||et.every(function(ze){return Object(l.a)(ze)==="object"&&("key"in ze||"value"in ze)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(f.a)(!it||Array.isArray($e),"`value` should be array when `mode` is `multiple` or `tags`")}if(re){var Ye=null;Object(E.a)(re).some(function(ze){if(!C.isValidElement(ze)||!ze.type)return!1;var He=ze.type;if(He.isSelectOption)return!1;if(He.isSelectOptGroup){var ft=Object(E.a)(ze.props.children).every(function(ht){return!C.isValidElement(ht)||!ze.type||ht.type.isSelectOption?!0:(Ye=ht.type,!1)});return!ft}return Ye=He,!0}),Ye&&Object(f.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ye.displayName||Ye.name||Ye,"`.")),Object(f.a)(tt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var D=x,O=Object(r.a)({prefixCls:"rc-select",components:{optionList:e},convertChildrenToData:h,flattenOptions:u.d,getLabeledValue:u.e,filterOptions:u.b,isValueDisabled:u.g,findValueOption:u.c,warningProps:D,fillOptionsWithMissingValue:u.a}),B=function(P){Object(I.a)(Q,P);var z=Object(j.a)(Q);function Q(){var re;return Object(ae.a)(this,Q),re=z.apply(this,arguments),re.selectRef=C.createRef(),re.focus=function(){re.selectRef.current.focus()},re.blur=function(){re.selectRef.current.blur()},re}return Object(L.a)(Q,[{key:"render",value:function(){return C.createElement(O,Object.assign({ref:this.selectRef},this.props))}}]),Q}(C.Component);B.Option=i,B.OptGroup=_;var w=B,W=we.c=w},LicW:function(Ke,we,F){"use strict";var ae=F("T2oS"),L=F("W9HT"),I=F("5Dmo"),j=F("3S7+"),C=F("q1tI"),S=F.n(C),H=F("ZJlW"),U=F.n(H),R=F("m3rI"),A=F("TSYQ"),y=F.n(A),v=F("1vsH"),d=F("z4EP"),o=F.n(d),n=F("+GGh"),a=F.n(n),s=F("cFMs"),e=F.n(s),t=F("BdwD"),i=function(_){var p=_.className,E=_.dataSource,g=E===void 0?[]:E,h=_.col,u=h===void 0?4:h,r=_.right,l=_.bottom,f=l===void 0?23:l,c=_.precision,x=c===void 0?0:c,D=_.wrapWidth,O=D===void 0?1200:D,B=_.trackEventItems,w=_.loading;debugger;var W=Math.floor((O-(u-1)*r)/u);return S.a.createElement(L.a,{spinning:w},S.a.createElement("div",{className:y()(U.a.list,p)},!!g.length&&g.map(function(P,z){var Q=P.name,re=P.id,le=P.identifier,be=P.featured,ye=P.school_name,ie=P.image_url,xe=P.excellent;return S.a.createElement("div",{key:re,className:U.a.wrap,style:{width:W,marginRight:(1+z)%u===0?0:r+x,marginBottom:f}},S.a.createElement("a",{target:"_blank",href:"/paths/".concat(le),className:U.a.li,onClick:function(fe){fe.preventDefault(),B&&Object(v.cb)([B]),Object(v.S)("/paths/".concat(le))}},S.a.createElement("div",{className:U.a.img},S.a.createElement("img",{className:U.a.cover,src:"".concat(R.a.IMG_SERVER,"/").concat(ie)}),be===1&&S.a.createElement("img",{className:U.a.sign,src:o.a}),be===2&&S.a.createElement("img",{className:U.a.sign,src:""}),be===3&&S.a.createElement("img",{className:U.a.sign,src:a.a}),be===4&&S.a.createElement("img",{className:U.a.sign,src:""}),be===5&&S.a.createElement("img",{className:U.a.sign,src:e.a})),S.a.createElement("div",{className:U.a.name},S.a.createElement(j.a,{title:Q},S.a.createElement("span",{className:U.a.e},Q))),S.a.createElement(j.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(ye)},S.a.createElement("div",{className:U.a.unit},S.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ye)),S.a.createElement("div",{className:U.a.tags},S.a.createElement(j.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},S.a.createElement("span",null,S.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),S.a.createElement("span",null,P.stages_count))),S.a.createElement(j.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},S.a.createElement("span",null,S.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),S.a.createElement("span",null,P.members_count))),xe&&S.a.createElement("div",{className:U.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!g.length&&S.a.createElement(t.a,null)))};we.a=i},MEgm:function(Ke,we){Ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890K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qkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},NQs2:function(Ke,we,F){Ke.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB"}},Nf5h:function(Ke,we,F){"use strict";F.d(we,"a",function(){return U}),F.d(we,"h",function(){return n}),F.d(we,"l",function(){return t}),F.d(we,"e",function(){return g}),F.d(we,"i",function(){return l}),F.d(we,"j",function(){return fe}),F.d(we,"c",function(){return Z.a}),F.d(we,"b",function(){return it}),F.d(we,"g",function(){return et}),F.d(we,"f",function(){return ft}),F.d(we,"k",function(){return Ne}),F.d(we,"d",function(){return ne});var ae=F("q1tI"),L=F.n(ae),I=F("NQs2"),j=F.n(I),C=F("ygoZ"),S=F.n(C),H=function(K){var Y=K.dataSource,J=Y===void 0?[]:Y,ee=K.img,pe=K.imgWidth,Te=pe===void 0?346:pe,Re=K.title,Xe=K.sunTitle,nt=K.bannerExtraContent;return L.a.createElement("div",{className:j.a.banner},L.a.createElement("div",{className:j.a.content},L.a.createElement("aside",null,L.a.createElement("p",null,L.a.createElement("b",null,Re),L.a.createElement("span",null,Xe)),J.length>0&&L.a.createElement("div",{className:j.a.btns},J.map(function(Fe,bt){return L.a.createElement("div",{key:bt,onClick:Fe.click},Fe.name,Fe.sign?L.a.createElement("img",{src:S.a,width:39}):null)})),nt),L.a.createElement("img",{style:{marginTop:33,marginRight:38},src:ee,width:Te})))},U=H,R=F("tJVT"),A=F("6nfa"),y=F.n(A),v=F("TSYQ"),d=F.n(v),o=function(K){var Y=K.dataSource,J=Y===void 0?[]:Y,ee=K.value,pe=K.onChange,Te=K.className,Re=K.title,Xe=K.titleWidth,nt=Xe===void 0?41:Xe,Fe=K.style,bt=Fe===void 0?{}:Fe,vt=K.fontColor,rt=vt===void 0?"#6A7283":vt,wt=Object(ae.useState)(0),Dt=Object(R.a)(wt,2),xt=Dt[0],ct=Dt[1],yt=Object(ae.useState)(!1),St=Object(R.a)(yt,2),Mt=St[0],Ie=St[1],ot=Object(ae.useRef)(null);return Object(ae.useEffect)(function(){if(J.length!==0){var _t;(ot==null||((_t=ot.current)===null||_t===void 0)?void 0:_t.clientHeight)>92?ct(1):ct(0)}J.length===0&&ct(0)},[J]),L.a.createElement("div",{className:d()(y.a.row,Te),style:bt},L.a.createElement("div",{style:{width:nt,marginTop:Mt?12:4},className:y.a.title},Re),L.a.createElement("div",{className:Mt?"".concat(y.a.tagsWrap," ").concat(y.a.tagsBorderWrap):y.a.tagsWrap},L.a.createElement("div",{className:y.a.bar,style:xt>0?{height:xt===1?92:"auto",overflow:xt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},L.a.createElement("div",{className:y.a.name,ref:ot},J==null?void 0:J.map(function(_t){return L.a.createElement("span",{onClick:function(){return pe(_t.id)},key:_t.id,title:_t.name,style:{color:rt},className:ee===_t.id?y.a.active:""},_t.name)}))),!!xt&&L.a.createElement(ae.Fragment,null,xt===1?L.a.createElement("div",{onClick:function(){var Et;ct(2),(ot==null||((Et=ot.current)===null||Et===void 0)?void 0:Et.clientHeight)>205?Ie(!0):Ie(!1)},className:y.a.action},"\u5C55\u5F00",L.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):L.a.createElement("div",{onClick:function(){ct(1),Ie(!1)},className:y.a.action},"\u6536\u8D77",L.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},n=o,a=F("cz0n"),s=F.n(a),e=function(K){var Y=K.dataSource,J=Y===void 0?[]:Y,ee=K.value,pe=K.onChange,Te=K.className;return L.a.createElement("div",{className:d()(s.a.tabs,Te)},J.map(function(Re){return L.a.createElement("span",{onClick:function(){return pe(Re.id)},className:ee===Re.id?s.a.active:"",key:Re.id},Re.name)}))},t=e,i=F("5NDa"),T=F("5rEg"),_=F("KOXS"),p=F.n(_),E=function(K){var Y,J=K.dataSource,ee=J===void 0?[]:J,pe=K.value,Te=K.onChange,Re=K.className,Xe=K.style,nt=Xe===void 0?{}:Xe,Fe=K.placeholder,bt=Object(ae.useState)(""),vt=Object(R.a)(bt,2),rt=vt[0],wt=vt[1],Dt=Object(ae.useState)(""),xt=Object(R.a)(Dt,2),ct=xt[0],yt=xt[1];Object(ae.useEffect)(function(){var Ie;(Ie=JSON.stringify(pe))!==null&&Ie!==void 0&&Ie.includes("{")?(wt(pe.id),yt(pe.value)):yt(pe)},[pe]);var St=function(){Te(ct,rt||null)},Mt=function(ot){if(ot===rt)return;wt(ot),Te(ct,ot)};return L.a.createElement("div",{className:d()(p.a.input,Re),style:nt},!!ee.length&&L.a.createElement("div",{className:p.a.dropdown},L.a.createElement("div",{className:p.a.text},(Y=ee.find(function(Ie){return Ie.id===rt}))===null||Y===void 0?void 0:Y.name,L.a.createElement("i",{className:"iconfont icon-zhankai4"}),L.a.createElement("b",{className:p.a.b1}),L.a.createElement("b",{className:p.a.b2})),L.a.createElement("div",{className:p.a.menu},ee.map(function(Ie,ot){return L.a.createElement("div",{key:ot,onClick:function(){return Mt(Ie.id)}},Ie.name)}))),L.a.createElement(T.a,{onPressEnter:St,value:ct,onChange:function(ot){return yt(ot.target.value)},bordered:!1,placeholder:Fe}),L.a.createElement("i",{onClick:St,className:"iconfont icon-sousuo9 font14 pl10 current"}))},g=E,h=F("f9pc"),u=F.n(h),r=function(K){var Y=K.value,J=K.onChange,ee=K.className,pe=K.total,Te=K.pageSize,Re=K.style,Xe=Re===void 0?{}:Re,nt=Y<2,Fe=Y>=Math.ceil(pe/Te);return pe<=Te?L.a.createElement(L.a.Fragment,null):L.a.createElement("div",{className:d()(u.a.quickPager,ee),style:Xe},L.a.createElement("div",{onClick:function(){nt||J(Y-1,"prev")},className:nt?u.a.disabled:""},"\u4E0A\u4E00\u9875"),L.a.createElement("div",{onClick:function(){Fe||J(Y+1,"next")},className:Fe?u.a.disabled:""},"\u4E0B\u4E00\u9875"))},l=r,f=F("T2oS"),c=F("W9HT"),x=F("pC0b"),D=F("GzdX"),O=F("5Dmo"),B=F("3S7+"),w=F("Oe0F"),W=F.n(w),P=F("m3rI"),z=F("1vsH"),Q=F("JAbv"),re=F.n(Q),le=F("Bq7L"),be=F.n(le),ye=F("MEgm"),ie=F.n(ye),xe=F("BdwD"),Ae=function(K){var Y=K.className,J=K.dataSource,ee=J===void 0?[]:J,pe=K.col,Te=pe===void 0?4:pe,Re=K.right,Xe=K.bottom,nt=Xe===void 0?23:Xe,Fe=K.precision,bt=Fe===void 0?0:Fe,vt=K.wrapWidth,rt=vt===void 0?1200:vt,wt=K.trackEventItems,Dt=K.loading,xt=Math.floor((rt-(Te-1)*Re)/Te);return L.a.createElement(c.a,{spinning:Dt},L.a.createElement("div",{className:d()(W.a.list,Y)},!!ee.length&&ee.map(function(ct,yt){var St=ct.name,Mt=ct.id,Ie=ct.identifier,ot=ct.power,_t=ct.cover_image_id,Et=ct.pic;return L.a.createElement("div",{className:W.a.wrap,key:Mt,style:{width:xt,marginRight:(1+yt)%Te===0?0:Re+bt,marginBottom:nt}},L.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Ie,"/challenges"),className:W.a.li,onClick:function(wn){wn.preventDefault(),wt&&Object(z.cb)([wt]),ot&&Object(z.S)("/shixuns/".concat(Ie,"/challenges"))}},L.a.createElement("div",{className:W.a.img},L.a.createElement("img",{className:W.a.cover,src:_t?"".concat(P.a.API_SERVER,"/api/attachments/").concat(_t):"".concat(P.a.IMG_SERVER,"/").concat(Et)}),ct.is_jupyter&&L.a.createElement("img",{className:W.a.sign,src:re.a}),ct.is_jupyter_lab&&L.a.createElement("img",{className:W.a.sign,src:be.a}),ct.is_unity_3d&&L.a.createElement("img",{className:W.a.sign,src:ie.a})),L.a.createElement("div",{className:W.a.name},L.a.createElement(B.a,{title:St||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},L.a.createElement("span",{className:W.a.e},St||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),L.a.createElement("div",{className:W.a.tags},L.a.createElement(B.a,{placement:"bottom",title:"\u5173\u5361\u6570"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),L.a.createElement("span",null,ct.challenges_count))),!!ct.myshixuns_count&&L.a.createElement(B.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),L.a.createElement("span",null,ct.myshixuns_count))),L.a.createElement(B.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},L.a.createElement("span",null,L.a.createElement("span",null,ct.level))),L.a.createElement("div",{className:W.a.rate},L.a.createElement(D.a,{allowHalf:!0,disabled:!0,defaultValue:ct.score_info}),L.a.createElement("span",null,"\xA0",ct.score_info?"".concat(ct.score_info,"\u5206"):"5\u5206")))),!ot&&L.a.createElement("div",{className:W.a.lockWrap},L.a.createElement("img",{src:"".concat(P.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),L.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ee.length&&L.a.createElement(xe.a,null)))},fe=Ae,Z=F("LicW"),Ue=F("iL++"),$e=F.n(Ue),tt=F("xiVL"),Qe=function(K){var Y=K.className,J=K.dataSource,ee=J===void 0?[]:J,pe=K.col,Te=pe===void 0?4:pe,Re=K.right,Xe=K.bottom,nt=Xe===void 0?23:Xe,Fe=K.precision,bt=Fe===void 0?0:Fe,vt=K.wrapWidth,rt=vt===void 0?1200:vt,wt=K.trackEventItems,Dt=K.loading,xt=Math.floor((rt-(Te-1)*Re)/Te);return L.a.createElement(c.a,{spinning:Dt},L.a.createElement("div",{className:d()($e.a.list,Y)},!!ee.length&&ee.map(function(ct,yt){var St=ct.subject_identifier,Mt=ct.id,Ie=ct.identifier,ot=ct.power,_t=ct.is_public!=0&&ct.is_public;return L.a.createElement("div",{className:$e.a.wrap,key:Mt,style:{width:xt,marginRight:(1+yt)%Te===0?0:Re+bt,marginBottom:nt}},L.a.createElement("a",{className:$e.a.li,onClick:function(Ut){Ut.preventDefault()}},L.a.createElement("div",{className:$e.a.top},L.a.createElement(B.a,{title:ct.name},L.a.createElement("div",{className:$e.a.name},ct.name)),L.a.createElement("img",{className:$e.a.img,src:P.a.IMG_SERVER+"/images/"+ct.avatar_url}),L.a.createElement("div",{className:$e.a.text},ct.creator),St&&L.a.createElement("div",{className:$e.a.btns},L.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),L.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),_t&&L.a.createElement("div",{className:$e.a.sign},"\u516C\u5F00")),L.a.createElement("div",{className:$e.a.bottom},ct.visits>0&&L.a.createElement(B.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-liulanyan"}),L.a.createElement("span",null,ct.visits))),ct.course_members_count>0&&L.a.createElement(B.a,{title:"\u6210\u5458",placement:"bottom"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-chengyuan"}),ct.course_members_count)),ct.tasks_count>0&&L.a.createElement(B.a,{title:"\u4F5C\u4E1A",placement:"bottom"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-zuoye"}),ct.tasks_count)),ct.is_end?L.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):L.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),L.a.createElement("div",{className:$e.a.lockWrap},ct.is_accessible?L.a.createElement(L.a.Fragment,null,St&&L.a.createElement("div",{onClick:function(){return Object(z.S)("/paths/".concat(St))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),L.a.createElement("div",{onClick:function(Ut){wt&&Object(z.cb)([wt]),Object(z.S)(ct.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):L.a.createElement(L.a.Fragment,null,L.a.createElement("img",{src:"".concat(P.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),L.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!ee.length&&L.a.createElement(xe.a,null)))},it=Qe,Pe=F("f0W+"),We=F.n(Pe),Je=function(K){var Y=K.dataSource,J=Y===void 0?[]:Y,ee=K.value,pe=K.onChange,Te=K.className,Re=K.style,Xe=Re===void 0?{}:Re,nt=K.tabBarExtraContent;return L.a.createElement("div",{className:d()(We.a.tabs,Te),style:Xe},L.a.createElement("div",{className:We.a.tabsWrap},J.map(function(Fe,bt){return L.a.createElement("div",{onClick:function(){return pe(Fe.id)},className:ee===Fe.id?We.a.active:"",key:bt},Fe.name)})),L.a.createElement("div",{className:We.a.tabBar},nt))},et=Je,Ye=F("9JIy"),ze=F.n(Ye),He=function(K){var Y=K.className,J=K.style,ee=J===void 0?{}:J,pe=K.children;return L.a.createElement("div",{className:d()(ze.a.table,Y),style:ee},pe)},ft=He,ht=F("qVdP"),lt=F("jsC+"),at=F("lUTK"),mt=F("BvKs"),pt=F("8WcF"),me=F.n(pt),Ce=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],De=function(K){var Y,J=K.sortValue,ee=K.dropValue,pe=K.className,Te=K.onSort,Re=K.onDrop,Xe=K.dataSource,nt=Xe===void 0?Ce:Xe;return L.a.createElement("div",{className:d()(me.a.orderWrap,pe)},L.a.createElement(lt.a,{overlay:L.a.createElement(mt.a,null,nt.map(function(Fe,bt){return L.a.createElement(mt.a.Item,{key:bt,onClick:function(){return Re(Fe.id)}},Fe.name)}))},L.a.createElement("span",{className:me.a.orderTextWrap},(Y=nt.find(function(Fe){return ee===Fe.id}))===null||Y===void 0?void 0:Y.name)),L.a.createElement("span",{className:me.a.orderIconWrap},L.a.createElement("span",{className:me.a.orderAsc},L.a.createElement("i",{className:J==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(me.a.cursorPointer," ").concat(me.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(me.a.cursorPointer),onClick:function(){return Te(J==="asc"?"desc":"asc")}})),L.a.createElement("span",{className:me.a.orderDesc},L.a.createElement("i",{className:J==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(me.a.cursorPointer," ").concat(me.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(me.a.cursorPointer),onClick:function(){return Te(J==="asc"?"desc":"asc")}}))))},Ne=De,Ee=F("siWv"),Le=F.n(Ee),ue=function(K){var Y=K.className,J=K.style,ee=K.children,pe=K.onClick;return L.a.createElement("div",{onClick:pe,className:d()(Le.a.btn,Y),style:J},ee)},ne=ue},NvD2:function(Ke,we,F){"use strict";F.d(we,"a",function(){return S});var ae=F("Kwbf");function L(H,U){var R=new Set;return H.forEach(function(A){U.has(A)||R.add(A)}),R}function I(H){var U=H||{},R=U.disabled,A=U.disableCheckbox,y=U.checkable;return!!(R||A)||y===!1}function j(H,U,R,A){for(var y=new Set(H),v=new Set,d=0;d<=R;d+=1){var o=U.get(d)||new Set;o.forEach(function(e){var t=e.key,i=e.node,T=e.children,_=T===void 0?[]:T;y.has(t)&&!A(i)&&_.filter(function(p){return!A(p.node)}).forEach(function(p){y.add(p.key)})})}for(var n=new Set,a=R;a>=0;a-=1){var s=U.get(a)||new Set;s.forEach(function(e){var t=e.parent,i=e.node;if(A(i)||!e.parent||n.has(e.parent.key))return;if(A(e.parent.node)){n.add(t.key);return}var T=!0,_=!1;(t.children||[]).filter(function(p){return!A(p.node)}).forEach(function(p){var E=p.key,g=y.has(E);T&&!g&&(T=!1),!_&&(g||v.has(E))&&(_=!0)}),T&&y.add(t.key),_&&v.add(t.key),n.add(t.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(L(v,y))}}function C(H,U,R,A,y){for(var v=new Set(H),d=new Set(U),o=0;o<=A;o+=1){var n=R.get(o)||new Set;n.forEach(function(t){var i=t.key,T=t.node,_=t.children,p=_===void 0?[]:_;!v.has(i)&&!d.has(i)&&!y(T)&&p.filter(function(E){return!y(E.node)}).forEach(function(E){v.delete(E.key)})})}d=new Set;for(var a=new Set,s=A;s>=0;s-=1){var e=R.get(s)||new Set;e.forEach(function(t){var i=t.parent,T=t.node;if(y(T)||!t.parent||a.has(t.parent.key))return;if(y(t.parent.node)){a.add(i.key);return}var _=!0,p=!1;(i.children||[]).filter(function(E){return!y(E.node)}).forEach(function(E){var g=E.key,h=v.has(g);_&&!h&&(_=!1),!p&&(h||d.has(g))&&(p=!0)}),_||v.delete(i.key),p&&d.add(i.key),a.add(i.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(L(d,v))}}function S(H,U,R,A){var y=[],v;A?v=A:v=I;var d=new Set(H.filter(function(s){var e=!!R[s];return e||y.push(s),e})),o=new Map,n=0;Object.keys(R).forEach(function(s){var e=R[s],t=e.level,i=o.get(t);i||(i=new Set,o.set(t,i)),i.add(e),n=Math.max(n,t)}),Object(ae.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var a;return U===!0?a=j(d,o,n,v):a=C(d,U.halfCheckedKeys,o,n,v),a}},OZM5:function(Ke,we,F){"use strict";F.d(we,"b",function(){return A}),F.d(we,"a",function(){return y}),F.d(we,"k",function(){return v}),F.d(we,"h",function(){return d}),F.d(we,"i",function(){return o}),F.d(we,"g",function(){return n}),F.d(we,"c",function(){return a}),F.d(we,"d",function(){return s}),F.d(we,"j",function(){return i}),F.d(we,"e",function(){return T}),F.d(we,"f",function(){return _});var ae=F("KQm4"),L=F("U8pU"),I=F("Ff2n"),j=F("q1tI"),C=F.n(j),S=F("Kwbf"),H=F("WaYH"),U=.25,R=2;function A(p,E){var g=p.slice(),h=g.indexOf(E);return h>=0&&g.splice(h,1),g}function y(p,E){var g=p.slice();return g.indexOf(E)===-1&&g.push(E),g}function v(p){return p.split("-")}function d(p,E){return"".concat(p,"-").concat(E)}function o(p){return p&&p.type&&p.type.isTreeNode}function n(p,E){var g=[p],h=E[p];function u(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];r.forEach(function(l){var f=l.key,c=l.children;g.push(f),u(c)})}return u(h.children),g}function a(p,E){var g=p.clientY,h=E.selectHandle.getBoundingClientRect(),u=h.top,r=h.bottom,l=h.height,f=Math.max(l*U,R);return g<=u+f?-1:g>=r-f?1:0}function s(p,E){if(!p)return;var g=E.multiple;return g?p.slice():p.length?[p[0]]:p}var e=function(E){return E};function t(p,E){if(!p)return[];var g=E||{},h=g.processProps,u=h===void 0?e:h,r=Array.isArray(p)?p:[p];return r.map(function(l){var f=l.children,c=Object(I.a)(l,["children"]),x=t(f,E);return C.a.createElement(H.a,Object.assign({},u(c)),x)})}function i(p){if(!p)return null;var E;if(Array.isArray(p))E={checkedKeys:p,halfCheckedKeys:void 0};else if(Object(L.a)(p)==="object")E={checkedKeys:p.checked||void 0,halfCheckedKeys:p.halfChecked||void 0};else return Object(S.a)(!1,"`checkedKeys` is not an array or an object"),null;return E}function T(p,E){var g=new Set;function h(u){if(g.has(u))return;var r=E[u];if(!r)return;g.add(u);var l=r.parent,f=r.node;if(f.disabled)return;l&&h(l.key)}return(p||[]).forEach(function(u){h(u)}),Object(ae.a)(g)}function _(p){var E={};return Object.keys(p).forEach(function(g){(g.startsWith("data-")||g.startsWith("aria-"))&&(E[g]=p[g])}),E}},Oe0F:function(Ke,we,F){Ke.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},"SA+Z":function(Ke,we,F){var ae=F("wTVA"),L=F("EbDI"),I=F("ZhPi"),j=F("wkBT");function C(S){return ae(S)||L(S)||I(S)||j()}Ke.exports=C,Ke.exports.__esModule=!0,Ke.exports.default=Ke.exports},SJMd:function(Ke,we){/**
* @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 F,ae,L,I=!1,j,C;window.PR_SHOULD_USE_CONTINUATION=!0;var S,H;(function(){var U=window,R=["break,continue,do,else,for,if,return,while"],A=[R,"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"],y=[A,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],v=[y,"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"],d=[y,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],o=[y,"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"],n="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",a=[y,"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",e=[R,"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"],t=[R,"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"],i=[R,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],T=[v,o,d,a,s,e,t,i],_=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,p="str",E="kwd",g="com",h="typ",u="lit",r="pun",l="pln",f="tag",c="dec",x="src",D="atn",O="atv",B="nocode",w="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(Pe){for(var We=0,Je=!1,et=!1,Ye=0,ze=Pe.length;Ye122||(K<65||te>90||De.push([Math.max(65,te)|32,Math.min(K,90)|32]),K<97||te>122||De.push([Math.max(97,te)&~32,Math.min(K,122)&~32]))}}De.sort(function(pe,Te){return pe[0]-Te[0]||Te[1]-pe[1]});for(var Y=[],J=[],Le=0;Leee[0]&&(ee[1]+1>ee[0]&&Ee.push("-"),Ee.push(lt(ee[1])))}return Ee.push("]"),Ee.join("")}function mt(me){for(var Ce=me.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")),De=Ce.length,Ne=[],Ee=0,Le=0;Ee=2&&te==="["?Ce[Ee]=at(ue):te!=="\\"&&(Ce[Ee]=ue.replace(/[a-zA-Z]/g,function(J){var ee=J.charCodeAt(0);return"["+String.fromCharCode(ee&~32,ee|32)+"]"}))}return Ce.join("")}for(var pt=[],Ye=0,ze=Pe.length;Ye=0;)Je[pt.charAt(me)]=mt;var Ce=mt[1],De=""+Ce;ht.hasOwnProperty(De)||(ft.push(Ce),ht[De]=null)}ft.push(/[\0-\uffff]/),et=W(ft)})();var Ye=We.length,ze=function(He){for(var ft=He.sourceCode,ht=He.basePos,lt=He.sourceNode,at=[ht,l],mt=0,pt=ft.match(et)||[],me={},Ce=0,De=pt.length;Ce=5&&Ee.substring(0,5)==="lang-",ue&&!(Le&&typeof Le[1]=="string")&&(ue=!1,Ee=x),ue||(me[Ne]=Ee)}var K=mt;if(mt+=Ne.length,!ue)at.push(ht+K,Ee);else{var Y=Le[1],J=Ne.indexOf(Y),ee=J+Y.length;Le[2]&&(ee=Ne.length-Le[2].length,J=ee-Y.length);var pe=Ee.substring(5);z(lt,ht+K,Ne.substring(0,J),ze,at),z(lt,ht+K+J,Y,Z(pe,Y),at),z(lt,ht+K+ee,Ne.substring(ee),ze,at)}}He.decorations=at};return ze}function be(Pe){var We=[],Je=[];Pe.tripleQuotedStrings?We.push([p,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Pe.multiLineStrings?We.push([p,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):We.push([p,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Pe.verbatimStrings&&Je.push([p,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var et=Pe.hashComments;et&&(Pe.cStyleComments?(et>1?We.push([g,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):We.push([g,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Je.push([p,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):We.push([g,/^#[^\r\n]*/,null,"#"])),Pe.cStyleComments&&(Je.push([g,/^\/\/[^\r\n]*/,null]),Je.push([g,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ye=Pe.regexLiterals;if(Ye){var ze=Ye>1?"":`
\r`,He=ze?".":"[\\S\\s]",ft="/(?=[^/*"+ze+"])(?:[^/\\x5B\\x5C"+ze+"]|\\x5C"+He+"|\\x5B(?:[^\\x5C\\x5D"+ze+"]|\\x5C"+He+")*(?:\\x5D|$))+/";Je.push(["lang-regex",RegExp("^"+w+"("+ft+")")])}var ht=Pe.types;ht&&Je.push([h,ht]);var lt=(""+Pe.keywords).replace(/^ | $/g,"");lt.length&&Je.push([E,new RegExp("^(?:"+lt.replace(/[\s,]+/g,"|")+")\\b"),null]),We.push([l,/^\s+/,null,` \r
\xA0`]);var at="^.[^\\s\\w.$@'\"`/\\\\]*";return Pe.regexLiterals&&(at+="(?!s*/)"),Je.push([u,/^@[a-z_$][a-z_$@0-9]*/i,null],[h,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[l,/^[a-z_$][a-z_$@0-9]*/i,null],[u,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[l,/^\\[\s\S]?/,null],[r,new RegExp(at),null]),le(We,Je)}var ye=be({keywords:T,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ie(Pe,We,Je){for(var et=/(?:^|\s)nocode(?:\s|$)/,Ye=/\r\n?|\n/,ze=Pe.ownerDocument,He=ze.createElement("li");Pe.firstChild;)He.appendChild(Pe.firstChild);var ft=[He];function ht(Ce){var De=Ce.nodeType;if(De==1&&!et.test(Ce.className))if(Ce.nodeName==="br")lt(Ce),Ce.parentNode&&Ce.parentNode.removeChild(Ce);else for(var Ne=Ce.firstChild;Ne;Ne=Ne.nextSibling)ht(Ne);else if((De==3||De==4)&&Je){var Ee=Ce.nodeValue,Le=Ee.match(Ye);if(Le){var ue=Ee.substring(0,Le.index);Ce.nodeValue=ue;var ne=Ee.substring(Le.index+Le[0].length);if(ne){var te=Ce.parentNode;te.insertBefore(ze.createTextNode(ne),Ce.nextSibling)}lt(Ce),ue||Ce.parentNode.removeChild(Ce)}}}function lt(Ce){for(;!Ce.nextSibling;)if(Ce=Ce.parentNode,!Ce)return;function De(Le,ue){var ne=ue?Le.cloneNode(!1):Le,te=Le.parentNode;if(te){var K=De(te,1),Y=Le.nextSibling;K.appendChild(ne);for(var J=Y;J;J=Y)Y=J.nextSibling,K.appendChild(J)}return ne}for(var Ne=De(Ce.nextSibling,0),Ee;(Ee=Ne.parentNode)&&Ee.nodeType===1;)Ne=Ee;ft.push(Ne)}for(var at=0;at=te&&(ht+=2),ze>=K&&(mt+=2)}}finally{Ee&&(Ee.style.display=Le)}}var Ae={};function fe(Pe,We){for(var Je=We.length;--Je>=0;){var et=We[Je];Ae.hasOwnProperty(et)?U.console&&console.warn("cannot override language handler %s",et):Ae[et]=Pe}}function Z(Pe,We){return Pe&&Ae.hasOwnProperty(Pe)||(Pe=/^\s*]*(?:>|$)/],[g,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[r,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^