You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Shixuns__Edit.77472b3f.a...

598 lines
2.5 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[241,3,5,6,7,8,9,10,13,14,21,248],{"+GGh":function(k,z){k.exports="data:image/png;base64,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"},"+NIl":function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";M.defineMode("stex",function(m,O){"use strict";function b(i,r){i.cmdState.push(r)}function y(i){return i.cmdState.length>0?i.cmdState[i.cmdState.length-1]:null}function C(i){var r=i.cmdState.pop();r&&r.closeBracket()}function A(i){for(var r=i.cmdState,c=r.length-1;c>=0;c--){var h=r[c];if(h.name=="DEFAULT")continue;return h}return{styleIdentifier:function(){return null}}}function g(i,r,c){return function(){this.name=i,this.bracketNo=0,this.style=r,this.styles=c,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var e={};e.importmodule=g("importmodule","tag",["string","builtin"]),e.documentclass=g("documentclass","tag",["","atom"]),e.usepackage=g("usepackage","tag",["atom"]),e.begin=g("begin","tag",["atom"]),e.end=g("end","tag",["atom"]),e.label=g("label","tag",["atom"]),e.ref=g("ref","tag",["atom"]),e.eqref=g("eqref","tag",["atom"]),e.cite=g("cite","tag",["atom"]),e.bibitem=g("bibitem","tag",["atom"]),e.Bibitem=g("Bibitem","tag",["atom"]),e.RBibitem=g("RBibitem","tag",["atom"]),e.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function f(i,r){i.f=r}function a(i,r){var c;if(i.match(/^\\[a-zA-Z@]+/)){var h=i.current().slice(1);return c=e.hasOwnProperty(h)?e[h]:e.DEFAULT,c=new c,b(r,c),f(r,n),c.style}if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/\\]/))return"tag";if(i.match("\\["))return f(r,function(s,u){return l(s,u,"\\]")}),"keyword";if(i.match("\\("))return f(r,function(s,u){return l(s,u,"\\)")}),"keyword";if(i.match("$$"))return f(r,function(s,u){return l(s,u,"$$")}),"keyword";if(i.match("$"))return f(r,function(s,u){return l(s,u,"$")}),"keyword";var d=i.next();if(d=="%")return i.skipToEnd(),"comment";if(d=="}"||d=="]"){if(c=y(r),c)c.closeBracket(d),f(r,n);else return"error";return"bracket"}else return d=="{"||d=="["?(c=e.DEFAULT,c=new c,b(r,c),"bracket"):/\d/.test(d)?(i.eatWhile(/[\w.%]/),"atom"):(i.eatWhile(/[\w\-_]/),c=A(r),c.name=="begin"&&(c.argument=i.current()),c.styleIdentifier())}function l(i,r,c){if(i.eatSpace())return null;if(c&&i.match(c))return f(r,a),"keyword";if(i.match(/^\\[a-zA-Z@]+/))return"tag";if(i.match(/^[a-zA-Z]+/))return"variable-2";if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/]/))return"tag";if(i.match(/^[\^_&]/))return"tag";if(i.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(i.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var h=i.next();return h=="{"||h=="}"||h=="["||h=="]"||h=="("||h==")"?"bracket":h=="%"?(i.skipToEnd(),"comment"):"error"}function n(i,r){var c=i.peek(),h;return c=="{"||c=="["?(h=y(r),h.openBracket(c),i.eat(c),f(r,a),"bracket"):/[ \t\r]/.test(c)?(i.eat(c),null):(f(r,a),C(r),a(i,r))}return{startState:function(){var i=O.inMathMode?function(r,c){return l(r,c)}:a;return{cmdState:[],f:i}},copyState:function(i){return{cmdState:i.cmdState.slice(),f:i.f}},token:function(i,r){return r.f(i,r)},blankLine:function(i){i.f=a,i.cmdState.length=0},lineComment:"%"}}),M.defineMIME("text/x-stex","stex"),M.defineMIME("text/x-latex","stex")})},"+QRC":function(k,z,o){"use strict";var M=o("E9nw"),m={"text/plain":"Text","text/html":"Url",default:"Text"},O="Copy to clipboard: #{key}, Enter";function b(C){var A=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return C.replace(/#{\s*key\s*}/g,A)}function y(C,A){var g,e,f,a,l,n,i=!1;A||(A={}),g=A.debug||!1;try{f=M(),a=document.createRange(),l=document.getSelection(),n=document.createElement("span"),n.textContent=C,n.style.all="unset",n.style.position="fixed",n.style.top=0,n.style.clip="rect(0, 0, 0, 0)",n.style.whiteSpace="pre",n.style.webkitUserSelect="text",n.style.MozUserSelect="text",n.style.msUserSelect="text",n.style.userSelect="text",n.addEventListener("copy",function(c){if(c.stopPropagation(),A.format)if(c.preventDefault(),typeof c.clipboardData=="undefined"){g&&console.warn("unable to use e.clipboardData"),g&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=m[A.format]||m.default;window.clipboardData.setData(h,C)}else c.clipboardData.clearData(),c.clipboardData.setData(A.format,C);A.onCopy&&(c.preventDefault(),A.onCopy(c.clipboardData))}),document.body.appendChild(n),a.selectNodeContents(n),l.addRange(a);var r=document.execCommand("copy");if(!r)throw new Error("copy command was unsuccessful");i=!0}catch(c){g&&console.error("unable to copy using execCommand: ",c),g&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(A.format||"text",C),A.onCopy&&A.onCopy(window.clipboardData),i=!0}catch(h){g&&console.error("unable to copy using clipboardData: ",h),g&&console.error("falling back to prompt"),e=b("message"in A?A.message:O),window.prompt(e,C)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(a):l.removeAllRanges()),n&&document.body.removeChild(n),f()}return i}k.exports=y},"+Xk9":function(k,z,o){k.exports={btn:"btn___2veY9",s1:"s1___ZVDC_",s2:"s2___2Da-A"}},"+ua5":function(k,z,o){},"/GNS":function(k,z,o){k.exports=o.p+"static/search1.c4136dd4.png"},"/cxE":function(k,z,o){"use strict";o.d(z,"f",function(){return O}),o.d(z,"g",function(){return b}),o.d(z,"h",function(){return y}),o.d(z,"e",function(){return A}),o.d(z,"b",function(){return g}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return a});class M{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(l){setTimeout(()=>{throw l.stack?new Error(l.message+`
`+l.stack):l},0)}}emit(l){this.listeners.forEach(n=>{n(l)})}onUnexpectedError(l){this.unexpectedErrorHandler(l),this.emit(l)}onUnexpectedExternalError(l){this.unexpectedErrorHandler(l)}}const m=new M;function O(l){A(l)||m.onUnexpectedError(l);return}function b(l){A(l)||m.onUnexpectedExternalError(l);return}function y(l){if(l instanceof Error){let{name:n,message:i}=l;const r=l.stacktrace||l.stack;return{$isError:!0,name:n,message:i,stack:r}}return l}const C="Canceled";function A(l){return l instanceof Error&&l.name===C&&l.message===C}function g(){const l=new Error(C);return l.name=l.message,l}function e(l){return l?new Error(`Illegal argument: ${l}`):new Error("Illegal argument")}function f(l){return l?new Error(`Illegal state: ${l}`):new Error("Illegal state")}class a extends Error{constructor(l){super("NotSupported");l&&(this.message=l)}}},"11/R":function(module,__webpack_exports__,__webpack_require__){"use strict";var antd_es_switch_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("BoS7"),antd_es_switch__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("Sdc0"),antd_es_popover_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("Q9mQ"),antd_es_popover__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("diRs"),antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("5Dmo"),antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("3S7+"),antd_es_input_number_style__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("giR+"),antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("fyUT"),antd_es_input_style__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("5NDa"),antd_es_input__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("5rEg"),antd_es_space_style__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("DYRE"),antd_es_space__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("zeV3"),antd_es_date_picker_style__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("iQDF"),antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("+eQT"),antd_es_badge_style__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("Awhp"),antd_es_badge__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("KrTs"),antd_es_auto_complete_style__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("O3gP"),antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("lrIw"),antd_es_radio_style__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("7Kak"),antd_es_radio__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("9yH6"),antd_es_checkbox_style__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("sRBo"),antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("kaz8"),antd_es_button_style__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("+L6B"),antd_es_button__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("2/Rp"),antd_es_menu_style__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("lUTK"),antd_es_menu__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("BvKs"),antd_es_modal_style__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("2qtc"),antd_es_modal__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("kLXV"),D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("jrin"),D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("k1fw"),D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("oBTY"),antd_es_message_style__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("miYZ"),antd_es_message__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("tsqr"),D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("9og8"),D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("tJVT"),antd_es_select_style__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("OaEy"),antd_es_select__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("2fM7"),D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("WmNS"),D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__),react__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("q1tI"),react__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_38__),umi__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("Ty5D"),umi__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("9kvl"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("1nVM"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_41__),moment__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("wd/R"),moment__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_42__),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("Z0Lh"),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("w5pM"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("wlus"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("y3Kf"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("8Skl"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("RCxd"),_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("ZW9T"),_utils_authority__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("xKgJ"),_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("FrRK"),_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("QNag"),_utils_fetch__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("ErOA"),_components_Permission__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("sLOW"),_utils_env__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("m3rI"),_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("NLgs"),timeFormat="YYYY-MM-DD HH:mm",Option=antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,handleDateString=function(z){if(!z)return z;var o=z.split(":");if(o[1]=="00"||o[1]=="30")return z;var M=parseInt(o[1]);if(M<30||M==60)return[o[0],"30"].join(":");if(M<60){var m=[o[0],"00"].join(":"),O="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(m,O);return b.add(1,"hours"),b.format(O)}return z},radioStyle={display:"block",height:"30px",lineHeight:"30px"};function Setting(_ref){var _user$userInfo,_user$userInfo$shixun,_shixunsDetail$detail,_shixunsDetail$detail2,_shixunsDetail$detail3,_shixunsDetail$detail4,_shixunsDetail$detail5,_shixunsDetail$settin97,_shixunsDetail$settin98,_shixunsDetail$detail6,_shixunsDetail$detail7,_shixunsDetail$settin150,_shixunsDetail$settin151,_shixunsDetail$settin152,_shixunsDetail$settin153,_shixunsDetail$detail8,user=_ref.user,dispatch=_ref.dispatch,shixunsDetail=_ref.shixunsDetail,practiceSetting=_ref.practiceSetting,shixunId=Object(react__WEBPACK_IMPORTED_MODULE_38__.useRef)(),_useState=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!0),_useState2=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState,2),isShowSetting=_useState2[0],setIsShowSetting=_useState2[1],_useState3=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState4=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState3,2),taskPass=_useState4[0],setTaskPass=_useState4[1],_useState5=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState6=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState5,2),testSetPermission=_useState6[0],setTestSetPermission=_useState6[1],_useState7=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState8=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState7,2),isCopy=_useState8[0],setIsCopy=_useState8[1],_useState9=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState10=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState9,2),openValue=_useState10[0],setOpenValue=_useState10[1],_useState11=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState12=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState11,2),selectDepartmentList=_useState12[0],setSelectDepartmentList=_useState12[1],_useState13=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState14=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState13,2),departmentList=_useState14[0],setDepartmentList=_useState14[1],_useState15=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState16=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState15,2),departmentValue=_useState16[0],setDepartmentValue=_useState16[1],_useState17=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState18=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState17,2),isOpenTime=_useState18[0],setIsOpenTime=_useState18[1],_useState19=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState20=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState19,2),openTime=_useState20[0],setOpenTime=_useState20[1],_useState21=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState22=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState21,2),vnc=_useState22[0],setVNC=_useState22[1],_useState23=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState24=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState23,2),windows_vnc=_useState24[0],setWindowVNC=_useState24[1],_useState25=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState26=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState25,2),virtual_machine=_useState26[0],setVirtualMachine=_useState26[1],_useState27=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState28=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState27,2),linux_vnc=_useState28[0],setLinuxVNC=_useState28[1],_useState29=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState30=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState29,2),windows_start_template=_useState30[0],setWindowVNCTemplate=_useState30[1],_useState31=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState32=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState31,2),websshShow=_useState32[0],setWebsshShow=_useState32[1],_useState33=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState34=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState33,2),sshRadioValue=_useState34[0],setSshRadioValue=_useState34[1],_useState35=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState36=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState35,2),multiWebssh=_useState36[0],setMultiWebssh=_useState36[1],_useState37=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState38=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState37,2),hideCode=_useState38[0],setHideCode=_useState38[1],_useState39=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState40=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState39,2),codeEditPermission=_useState40[0],setCodeEditPermission=_useState40[1],_useState41=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState42=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState41,2),codeHidden=_useState42[0],setCodeHidden=_useState42[1],_useState43=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState44=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState43,2),forbidCopy=_useState44[0],setForbidCopy=_useState44[1],_useState45=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState46=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState45,2),display_git_address=_useState46[0],set_display_git_address=_useState46[1],_useState47=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState48=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState47,2),advancedsettingshow=_useState48[0],setAdvancedSettingShow=_useState48[1],_useState49=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("vnc"),_useState50=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState49,2),windows_connection_mode=_useState50[0],setWindowsConnectionMode=_useState50[1],_useState51=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState52=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState51,2),evaluateScript=_useState52[0],setEvaluateScript=_useState52[1],_useState53=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState54=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState53,2),serviceConfigList=_useState54[0],setServiceConfigList=_useState54[1],_useState55=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState56=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState55,2),evaluationScript=_useState56[0],setevaluationScript=_useState56[1],_useState57=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState58=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState57,2),standardScriptList=_useState58[0],setStandardScripts=_useState58[1],_useState59=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("1"),_useState60=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState59,2),MenuSelectKey=_useState60[0],setMenuSelectKey=_useState60[1],_useState61=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState62=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState61,2),disableDiscuss=_useState62[0],setDisableDiscuss=_useState62[1],_useState63=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState64=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState63,2),Remote=_useState64[0],setRemote=_useState64[1],_useState65=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState66=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState65,2),createTitle=_useState66[0],setCreateTitle=_useState66[1],_useState67=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState68=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState67,2),isupdate=_useState68[0],setIsupdate=_useState68[1],_useState69=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(3),_useState70=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState69,2),terminal_count=_useState70[0],setterminal_count=_useState70[1],_useState71=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState72=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState71,2),port=_useState72[0],setport=_useState72[1],_useState73=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState74=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState73,2),webssh_cloud=_useState74[0],setWebsshCloud=_useState74[1],_useState75=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(0),_useState76=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState75,2),survival_time=_useState76[0],setSurvivalTime=_useState76[1],_useState77=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([{template_name:"",template_identity:""}]),_useState78=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState77,2),shixun_virtual_templates=_useState78[0],setshixun_virtual_templates=_useState78[1],params=Object(umi__WEBPACK_IMPORTED_MODULE_39__.i)(),diffObj={forbid_copy:"forbidCopy",hide_code:"hideCode",multi_webssh:"multiWebssh",task_pass:"taskPass",test_set_permission:"testSetPermission",code_edit_permission:"codeEditPermission",can_copy:"isCopy",use_scope:"openValue",windows_vnc:"windows_vnc",windows_start_template:"windows_start_template",webssh_cloud:"webssh_cloud",opening_time:"openTime",webssh:"sshRadioValue",display_git_address:"display_git_address",show_code_dir:"codeHidden",choice_standard_scripts:"evaluationScript",evaluate_script:"evaluateScript"},_useState79=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState80=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState79,2),isRadiuvalue=_useState80[0],setIsRadiuValue=_useState80[1],editable=(_user$userInfo=user.userInfo)===null||_user$userInfo===void 0||((_user$userInfo$shixun=_user$userInfo.shixun)===null||_user$userInfo$shixun===void 0)?void 0:_user$userInfo$shixun.editable,handleGetDepartments=function(){var k=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var M;return D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,dispatch({type:"shixunsDetail/getDepartments",payload:{q:o}});case 2:M=O.sent,M&&setDepartmentList(M.shools_name||[]);case 4:case"end":return O.stop()}},z)}));return function(o){return k.apply(this,arguments)}}();Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;(k=shixunsDetail.setting)!==null&&k!==void 0&&(z=k.shixun)!==null&&z!==void 0&&z.main_type&&handleInitState()},[shixunsDetail.setting]),Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;dispatch({type:"shixunsDetail/getSettingsData",payload:params}),shixunId.current=(k=location.pathname)===null||k===void 0||((z=k.split("/"))===null||z===void 0)?void 0:z[2]},[]);var handleSelectDepartment=function(z){if(selectDepartmentList.includes(z)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}setDepartmentValue(null),setSelectDepartmentList([].concat(Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(selectDepartmentList),[z]))};function getRequiredStatus(){return _getRequiredStatus.apply(this,arguments)}function _getRequiredStatus(){return _getRequiredStatus=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z;return D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_53__.a)("/api/shixuns/".concat(shixunId.current,"/required_status"),{method:"get",params:{}});case 2:z=M.sent,z&&setCreateTitle(z==null?void 0:z.data);case 4:case"end":return M.stop()}},k)})),_getRequiredStatus.apply(this,arguments)}var handleChangeSeviceConfig=function(z,o,M){var m=serviceConfigList.map(function(O,b){return b===M?Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)(Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)({},O),{},Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__.a)({},o,z)):O});setServiceConfigList(m)},handleInitState=function(){var z,o,M,m,O,b,y,C,A,g,e,f,a,l,n,i,r,c,h,d,s,u,w,E,_,P,R,x,S,v,T,U,I,N,V,H,D,W,F,L,K,ee,he,fe,Ce,Te,ce,ye,Ee,ue,se,$,me,re,ae,we,le,te,Q,J,ve,_e,Oe,Xe,tt,lt,dt,vt=(shixunsDetail==null||((z=shixunsDetail.setting)===null||z===void 0)?void 0:z.shixun)||{},_t=vt.choice_main_type,Ye=vt.main_type,je=vt.small_type,ht=vt.choice_small_type,Bt=vt.is_secret_repository,Et=vt.standard_scripts,Pt=vt.evaluate_script,Ze=vt.shixun_service_configs;if(setEvaluateScript(Pt),setServiceConfigList(Ze),setStandardScripts(Et||[]),setWindowVNCTemplate((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.windows_start_template),setWebsshCloud((m=shixunsDetail.setting)===null||m===void 0||((O=m.shixun)===null||O===void 0)?void 0:O.webssh_cloud),setWindowVNC((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.windows_vnc),setVirtualMachine((C=shixunsDetail.setting)===null||C===void 0||((A=C.shixun)===null||A===void 0)?void 0:A.virtual_machine),setLinuxVNC((g=shixunsDetail.setting)===null||g===void 0||((e=g.shixun)===null||e===void 0)?void 0:e.linux_vnc),setWindowsConnectionMode(((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.windows_connection_mode)||"vnc"),setVNC((l=shixunsDetail.setting)===null||l===void 0||((n=l.shixun)===null||n===void 0)?void 0:n.vnc),setWebsshShow(!!((i=shixunsDetail.setting)!==null&&i!==void 0&&(r=i.shixun)!==null&&r!==void 0&&r.webssh)),setSshRadioValue((c=shixunsDetail.setting)===null||c===void 0||((h=c.shixun)===null||h===void 0)?void 0:h.webssh),setMultiWebssh((d=shixunsDetail.setting)===null||d===void 0||((s=d.shixun)===null||s===void 0)?void 0:s.multi_webssh),setHideCode((u=shixunsDetail.setting)===null||u===void 0||((w=u.shixun)===null||w===void 0)?void 0:w.hide_code),setCodeEditPermission((E=shixunsDetail.setting)===null||E===void 0||((_=E.shixun)===null||_===void 0)?void 0:_.code_edit_permission),setCodeHidden((P=shixunsDetail.setting)===null||P===void 0||((R=P.shixun)===null||R===void 0)?void 0:R.show_code_dir),setForbidCopy((x=shixunsDetail.setting)===null||x===void 0||((S=x.shixun)===null||S===void 0)?void 0:S.forbid_copy),setTaskPass((v=shixunsDetail.setting)===null||v===void 0||((T=v.shixun)===null||T===void 0)?void 0:T.task_pass),setTestSetPermission((U=shixunsDetail.setting)===null||U===void 0||((I=U.shixun)===null||I===void 0)?void 0:I.test_set_permission),set_display_git_address((N=shixunsDetail.setting.shixun)===null||N===void 0?void 0:N.display_git_address),setIsCopy((V=shixunsDetail.setting)===null||V===void 0||((H=V.shixun)===null||H===void 0)?void 0:H.can_copy),setOpenValue((D=shixunsDetail.setting)===null||D===void 0||((W=D.shixun)===null||W===void 0)?void 0:W.use_scope),setIsOpenTime(!!((F=shixunsDetail.setting)!==null&&F!==void 0&&(L=F.shixun)!==null&&L!==void 0&&L.opening_time)),setOpenTime((K=shixunsDetail.setting)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.opening_time),setSelectDepartmentList((he=shixunsDetail.setting)===null||he===void 0||((fe=he.shixun)===null||fe===void 0)?void 0:fe.scope_partment),setevaluationScript((Ce=shixunsDetail.setting)===null||Ce===void 0||((Te=Ce.shixun)===null||Te===void 0)?void 0:Te.choice_standard_scripts),setDisableDiscuss((ce=shixunsDetail.setting)===null||ce===void 0||((ye=ce.shixun)===null||ye===void 0)?void 0:ye.is_disable_discuss),setterminal_count((Ee=shixunsDetail.setting)===null||Ee===void 0||((ue=Ee.shixun)===null||ue===void 0)?void 0:ue.terminal_count),setSurvivalTime((se=shixunsDetail.setting)===null||se===void 0||(($=se.shixun)===null||$===void 0)?void 0:$.survival_time),(shixunsDetail==null||((me=shixunsDetail.setting)===null||me===void 0||((re=me.shixun)===null||re===void 0||((ae=re.shixun_virtual_templates)===null||ae===void 0)))?void 0:ae.length)>0){var We,Je;setshixun_virtual_templates(Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((We=shixunsDetail.setting)===null||We===void 0||((Je=We.shixun)===null||Je===void 0))?void 0:Je.shixun_virtual_templates))}setport((we=shixunsDetail.setting)===null||we===void 0||((le=we.shixun)===null||le===void 0)?void 0:le.port_mapping),(te=shixunsDetail.setting)!==null&&te!==void 0&&(Q=te.shixun)!==null&&Q!==void 0&&Q.windows_vnc||(J=shixunsDetail.setting)!==null&&J!==void 0&&(ve=J.shixun)!==null&&ve!==void 0&&ve.linux_vnc||(_e=shixunsDetail.setting)!==null&&_e!==void 0&&(Oe=_e.shixun)!==null&&Oe!==void 0&&Oe.vnc||(Xe=shixunsDetail.setting)!==null&&Xe!==void 0&&(tt=Xe.shixun)!==null&&tt!==void 0&&tt.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(lt=shixunsDetail.setting)!==null&&lt!==void 0&&(dt=lt.shixun)!==null&&dt!==void 0&&dt.webssh&&(setRemote(!0),setIsRadiuValue(3))};Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var _Object$keys$filter,_shixunsDetail$settin73,_shixunsDetail$settin74,_shixunsDetail$settin75,_shixunsDetail$settin76,_shixunsDetail$settin77,_shixunsDetail$settin78,_shixunsDetail$settin79,_shixunsDetail$settin82,_shixunsDetail$settin83,_shixunsDetail$settin84,confirmLeave=!1;(_Object$keys$filter=Object.keys(diffObj).filter(function(item){var _shixunsDetail$settin72;return((_shixunsDetail$settin72=shixunsDetail.setting)===null||_shixunsDetail$settin72===void 0?void 0:_shixunsDetail$settin72.shixun[item])!=eval(diffObj[item])}))!==null&&_Object$keys$filter!==void 0&&_Object$keys$filter.length&&(confirmLeave=!0),isOpenTime!=!!((_shixunsDetail$settin73=shixunsDetail.setting)!==null&&_shixunsDetail$settin73!==void 0&&(_shixunsDetail$settin74=_shixunsDetail$settin73.shixun)!==null&&_shixunsDetail$settin74!==void 0&&_shixunsDetail$settin74.opening_time)&&(confirmLeave=!0),disableDiscuss!=!!((_shixunsDetail$settin75=shixunsDetail.setting)!==null&&_shixunsDetail$settin75!==void 0&&(_shixunsDetail$settin76=_shixunsDetail$settin75.shixun)!==null&&_shixunsDetail$settin76!==void 0&&_shixunsDetail$settin76.is_disable_discuss)&&(confirmLeave=!0),selectDepartmentList.length!=((_shixunsDetail$settin77=shixunsDetail.setting)===null||_shixunsDetail$settin77===void 0||((_shixunsDetail$settin78=_shixunsDetail$settin77.shixun)===null||_shixunsDetail$settin78===void 0||((_shixunsDetail$settin79=_shixunsDetail$settin78.scope_partment)===null||_shixunsDetail$settin79===void 0))?void 0:_shixunsDetail$settin79.length)&&(confirmLeave=!0),selectDepartmentList==null||selectDepartmentList.map(function(k,z){var o,M;k!=((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.scope_partment[z])&&(confirmLeave=!0)}),serviceConfigList.length!=((_shixunsDetail$settin82=shixunsDetail.setting)===null||_shixunsDetail$settin82===void 0||((_shixunsDetail$settin83=_shixunsDetail$settin82.shixun)===null||_shixunsDetail$settin83===void 0||((_shixunsDetail$settin84=_shixunsDetail$settin83.shixun_service_configs)===null||_shixunsDetail$settin84===void 0))?void 0:_shixunsDetail$settin84.length)&&(confirmLeave=!0),serviceConfigList==null||serviceConfigList.map(function(k,z){var o,M,m,O,b,y,C,A,g,e,f,a;(k==null?void 0:k.cpu_limit)!=((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0||((m=M.shixun_service_configs[z])===null||m===void 0))?void 0:m.cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.lower_cpu_limit)!=((O=shixunsDetail.setting)===null||O===void 0||((b=O.shixun)===null||b===void 0||((y=b.shixun_service_configs[z])===null||y===void 0))?void 0:y.lower_cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.memory_limit)!=((C=shixunsDetail.setting)===null||C===void 0||((A=C.shixun)===null||A===void 0||((g=A.shixun_service_configs[z])===null||g===void 0))?void 0:g.memory_limit)&&(confirmLeave=!0),(k==null?void 0:k.request_limit)!=((e=shixunsDetail.setting)===null||e===void 0||((f=e.shixun)===null||f===void 0||((a=f.shixun_service_configs[z])===null||a===void 0))?void 0:a.request_limit)&&(confirmLeave=!0)}),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave}})},[taskPass,testSetPermission,isCopy,openValue,selectDepartmentList,isOpenTime,openTime,isRadiuvalue,sshRadioValue,multiWebssh,hideCode,display_git_address,codeHidden,codeEditPermission,forbidCopy,evaluationScript,evaluateScript,serviceConfigList,disableDiscuss,webssh_cloud]);var handleUseCustomScript=function(){dispatch({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:shixunId.current}}})};function handSubmeit(){return _handSubmeit.apply(this,arguments)}function _handSubmeit(){return _handSubmeit=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z,o,M,m;return D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(isOpenTime&&!openTime)){b.next=3;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),b.abrupt("return");case 3:if(!(hideCode===1&&Remote===!1)){b.next=6;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u81F3\u5C11\u52FE\u9009\u4E00\u79CD\u7F16\u7A0B\u9875\u9762\uFF01"),b.abrupt("return");case 6:if(!(openValue===1&&!selectDepartmentList.length)){b.next=9;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),b.abrupt("return");case 9:if(o=(z=shixunsDetail.detail)===null||z===void 0?void 0:z.is_jupyter,M=!1,isRadiuvalue==5&&virtual_machine&&(shixun_virtual_templates==null||shixun_virtual_templates.map(function(y){if(!(y!=null&&y.template_name)||!(y!=null&&y.template_identity)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0\u6216\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u4E0D\u80FD\u4E3A\u7A7A"),M=!0;return}})),!M){b.next=14;break}return b.abrupt("return");case 14:return b.next=16,dispatch({type:"shixunsDetail/updateSetting",payload:{id:shixunId.current,scope_partment:openValue===0?null:selectDepartmentList,shixun:{show_code_dir:codeHidden,forbid_copy:forbidCopy,hide_code:hideCode,multi_webssh:multiWebssh,task_pass:taskPass,test_set_permission:testSetPermission,display_git_address,vnc,windows_vnc,virtual_machine,linux_vnc,windows_start_template,webssh_cloud,webssh:websshShow?sshRadioValue:0,code_edit_permission:codeEditPermission,can_copy:isCopy,use_scope:openValue,opening_time:openTime,mirror_script_id:o?null:evaluationScript,is_disable_discuss:disableDiscuss,terminal_count,port_mapping:port,survival_time,shixun_virtual_templates,windows_connection_mode:windows_vnc?windows_connection_mode:null},shixun_info:{evaluate_script:o?null:evaluateScript},shixun_service_configs:serviceConfigList.map(function(y){return{mirror_repository_id:y.mirror_repository_id,cpu_limit:y.cpu_limit,lower_cpu_limit:y.lower_cpu_limit,memory_limit:y.memory_limit,request_limit:y.request_limit}})}});case 16:m=b.sent,(m==null?void 0:m.status)===0&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u4FEE\u6539\u6210\u529F"),dispatch({type:"shixunsDetail/getSettingsData",payload:params}),dispatch({type:"shixunsDetail/getShixunsDetail",payload:params}));case 18:case"end":return b.stop()}},k)})),_handSubmeit.apply(this,arguments)}var handleChangeEvaluationScript=function(z){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var o=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function m(){return D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,handleGetScriptContent(z);case 2:antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return b.stop()}},m)}));function M(){return o.apply(this,arguments)}return M}()})},handleGetScriptContent=function(){var k=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var M;return D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,dispatch({type:"shixunsDetail/getScriptContent",payload:{id:shixunId.current,script_id:o}});case 2:M=O.sent,M&&setEvaluateScript(M.content);case 4:case"end":return O.stop()}},z)}));return function(o){return k.apply(this,arguments)}}(),handleDeleteShixun=function(){var k=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(){var o,M,m,O,b,y,C;return D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(g.t0=g.sent,g.t0){g.next=5;break}g.t0={};case 5:C=g.t0,antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font14 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.modal)},!!((o=C.subjects)!==null&&o!==void 0&&o.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(M=C.subjects)===null||M===void 0||((m=M.splice(0,2))===null||m===void 0)?void 0:m.map(function(e){return"\u300A".concat(e,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},C==null?void 0:C.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),!!((O=C.courses)!==null&&O!==void 0&&O.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(b=C.courses)===null||b===void 0||((y=b.splice(0,2))===null||y===void 0)?void 0:y.map(function(e){return"\u300A".concat(e,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},C==null?void 0:C.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorYellow," mt30")},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:function(){var e=Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function a(){var l;return D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,dispatch({type:"shixunsDetail/deleteShixun",payload:{id:shixunId.current}});case 2:l=i.sent,l.status===1&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.success("\u64CD\u4F5C\u6210\u529F"),umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns"));case 4:case"end":return i.stop()}},a)}));function f(){return e.apply(this,arguments)}return f}()});case 7:case"end":return g.stop()}},z)}));return function(){return k.apply(this,arguments)}}(),handleDeleteElseShixun=function(){if(Object(_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__.b)(dispatch,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return};function showExitmodel(k){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){setMenuSelectKey(k),parseInt(k)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus()),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}})}return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",display:"flex",background:"#fff",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",background:"#0A143D",width:"25%",maxWidth:"440px",padding:"20px 20px",color:"#ffffff"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{padding:"0px 15px",fontSize:"16px"}},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a,{selectedKeys:[MenuSelectKey],theme:"dark",style:{background:"#0A143D",marginTop:"30px",fontSize:"14px"},onClick:function(z){var o;if(practiceSetting!=null&&(o=practiceSetting.sideBar)!==null&&o!==void 0&&o.confirmLeave){showExitmodel(z.key);return}setMenuSelectKey(z.key),parseInt(z.key)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus())}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:1},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:2},"\u5173\u4E8E\u5B9E\u8BAD"))),isShowSetting&&(shixunsDetail==null||((_shixunsDetail$detail=shixunsDetail.detail)===null||_shixunsDetail$detail===void 0)?void 0:_shixunsDetail$detail.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_Permission__WEBPACK_IMPORTED_MODULE_54__.a,null),isShowSetting&&!(shixunsDetail!=null&&(_shixunsDetail$detail2=shixunsDetail.detail)!==null&&_shixunsDetail$detail2!==void 0&&_shixunsDetail$detail2.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{width:"calc(100% - 24%)",overflow:"auto"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px 40px",marginBottom:"70px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{flex:"1"}},"\u5173\u5361\u548C\u6D4B\u8BD5\u96C6"),(shixunsDetail==null||((_shixunsDetail$detail3=shixunsDetail.detail)===null||_shixunsDetail$detail3===void 0)?void 0:_shixunsDetail$detail3.shixun_status)!==2?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteElseShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u8DF3\u5173\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:taskPass,disabled:!editable,onChange:function(z){return setTaskPass(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u5B66\u4E60\u5B9E\u8BAD\u5173\u5361\u4EFB\u52A1\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u6D4B\u8BD5\u96C6\u89E3\u9501\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:testSetPermission,disabled:!editable,onChange:function(z){return setTestSetPermission(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u7684\u5185\u5BB9\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u6743\u9650"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u590D\u5236/\u5408\u5E76:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isCopy,onChange:function(z){return setIsCopy(z.target.checked)},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((_shixunsDetail$detail4=shixunsDetail.detail)===null||_shixunsDetail$detail4===void 0?void 0:_shixunsDetail$detail4.shixun_status)>1||((_shixunsDetail$detail5=shixunsDetail.detail)===null||_shixunsDetail$detail5===void 0?void 0:_shixunsDetail$detail5.public)===2)&&((_shixunsDetail$settin97=shixunsDetail.setting)===null||_shixunsDetail$settin97===void 0||((_shixunsDetail$settin98=_shixunsDetail$settin97.shixun)===null||_shixunsDetail$settin98===void 0)?void 0:_shixunsDetail$settin98.use_scope)===0&&((_shixunsDetail$detail6=shixunsDetail.detail)===null||_shixunsDetail$detail6===void 0?void 0:_shixunsDetail$detail6.identity)>2)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{padding:"4px 0px"}},"\u516C\u5F00\u7A0B\u5EA6:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:openValue,onChange:function(z){return setOpenValue(z.target.value)},disabled:!editable},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,value:0},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:1},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),openValue===1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__.a,{showSearch:!0,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.selectSchool,bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:departmentValue,onChange:function(z){setDepartmentValue(z),handleGetDepartments(z)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map(function(k){return{value:k}})})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map(function(k){return editable?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_badge__WEBPACK_IMPORTED_MODULE_15__.a,{count:"x",className:"mr20 current",onClick:function(){return setSelectDepartmentList(selectDepartmentList.filter(function(o){return o!==k}))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0},k)):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0,className:"mr20"},k)}))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5F00\u542F\u65F6\u95F4:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isOpenTime,onChange:function(z){setIsOpenTime(z.target.checked),z.target.checked||setOpenTime("")},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\u624D\u80FD\u5F00\u542F\u6311\u6218\uFF09")),isOpenTime&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__.a,{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.dataPicker),format:timeFormat,locale:antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default.a,bordered:!1,disabled:!editable,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(z){return z&&z<moment__WEBPACK_IMPORTED_MODULE_42___default()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:openTime&&moment__WEBPACK_IMPORTED_MODULE_42___default()(openTime,timeFormat),onChange:function(z,o){return setOpenTime(handleDateString(o))}})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u5B9E\u9A8C\u6A21\u5F0F"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{padding:"5px 0px"}},"\u7F16\u7A0B\u754C\u9762\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginTop:"5px"},value:0,checked:hideCode!=1,onChange:function(z){var o=z.target.checked;setHideCode(hideCode===1?0:1),o?setCodeEditPermission(!1):(setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1))}},"IDE\u754C\u9762",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u4EE3\u7801\u7F16\u8F91\u5668\uFF0C\u7F16\u8BD1\u5668\uFF0C\u8C03\u8BD5\u5668\u7B49\u5DE5\u5177\uFF09")),hideCode!=1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:hideCode,className:"mt20",onChange:function(z){setHideCode(z.target.value)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_space__WEBPACK_IMPORTED_MODULE_11__.a,{direction:"vertical"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:0},"\u9ED8\u8BA4\u7F16\u8F91\u5668"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:2},"VSCode\u7F16\u8F91\u5668"))),hideCode===2&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(z){return setport(z.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308081\u7AEF\u53E3\uFF09")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:Remote,onChange:function(z){var o=z.target.checked;setRemote(o),o?(setIsRadiuValue(3),setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2)):(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1),setshixun_virtual_templates([]),setVirtualMachine(!1))}},"\u8FDC\u7A0B\u8FDE\u63A5\u754C\u9762",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u8FDC\u7A0B\u8FDE\u63A5\u754C\u9762\uFF09")),Remote&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{marginTop:"5px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:isRadiuvalue,onChange:function(z){var o,M,m,O,b,y,C,A,g,e;if(setIsRadiuValue(z.target.value),setSshRadioValue(1),setport(!1),z.target.value===3&&((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.webssh)===2&&!((m=shixunsDetail.setting)!==null&&m!==void 0&&(O=m.shixun)!==null&&O!==void 0&&O.vnc)){var f,a;setport((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.port_mapping)}if(z.target.value===5&&!((b=shixunsDetail.setting)!==null&&b!==void 0&&(y=b.shixun)!==null&&y!==void 0&&y.linux_vnc)&&!((C=shixunsDetail.setting)!==null&&C!==void 0&&(A=C.shixun)!==null&&A!==void 0&&A.windows_vnc)&&(g=shixunsDetail.setting)!==null&&g!==void 0&&(e=g.shixun)!==null&&e!==void 0&&e.vnc){var l,n;setport((l=shixunsDetail.setting)===null||l===void 0||((n=l.shixun)===null||n===void 0)?void 0:n.port_mapping)}z.target.value===1?(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1)):z.target.value===2?(setWindowVNC(!1),setLinuxVNC(!1),setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0)):z.target.value===3?(setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2),setshixun_virtual_templates([]),setVirtualMachine(!1)):z.target.value===4?(setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1)):z.target.value===5&&(setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:3,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u547D\u4EE4\u884C\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u547D\u4EE4\u884C\u7A97\u53E3\uFF09")),websshShow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl," ml40"),style:{borderRadius:"8px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:sshRadioValue,disabled:!editable,onChange:function(z){var o,M,m,O,b,y,C=z.target.value;if(setport(!1),C===1&&((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.webssh)===1){var A,g;setport((A=shixunsDetail.setting)===null||A===void 0||((g=A.shixun)===null||g===void 0)?void 0:g.port_mapping)}else if(C===2&&((m=shixunsDetail.setting)===null||m===void 0||((O=m.shixun)===null||O===void 0)?void 0:O.webssh)===2){var e,f;setport((e=shixunsDetail.setting)===null||e===void 0||((f=e.shixun)===null||f===void 0)?void 0:f.port_mapping)}if(setSshRadioValue(C),C!==1&&setMultiWebssh(!1),setWindowVNCTemplate(""),setWebsshCloud(1),C===3&&((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.webssh)===3){var a,l,n,i;setWebsshCloud((a=shixunsDetail.setting)===null||a===void 0||((l=a.shixun)===null||l===void 0)?void 0:l.webssh_cloud),setWindowVNCTemplate((n=shixunsDetail.setting)===null||n===void 0||((i=n.shixun)===null||i===void 0)?void 0:i.windows_start_template)}}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:2},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BC4\u6D4B\u7A97\u53E3"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u7ED9\u5B66\u5458\u63D0\u4F9B\u7528\u4E8E\u8BC4\u6D4B\u64CD\u4F5C\u7684\u547D\u4EE4\u884C\uFF0C\u547D\u4EE4\u884C\u7684\u64CD\u4F5C\u53EF\u4EE5\u5BF9\u5B66\u751F\u7684\u5B9E\u9A8C\u73AF\u5883\u4EA7\u751F\u5F71\u54CD\uFF09")),sshRadioValue===2&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:multiWebssh,disabled:!editable,onChange:function(z){return setMultiWebssh(z.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u591A\u4E2A\u547D\u4EE4\u884C\u7A97\u53E3\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u540C\u65F6\u5F00\u542F\u591A\u4E2A\u547D\u4EE4\u884C\u7A97\u53E3\uFF09")))),sshRadioValue===2&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(z){return setport(z.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308081\u7AEF\u53E3\uFF09"))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:1},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u7EC3\u4E60\u7A97\u53E3"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u7ED9\u5B66\u5458\u63D0\u4F9B\u7528\u4E8E\u7EC3\u4E60\u64CD\u4F5C\u7684\u547D\u4EE4\u884C\uFF0C\u547D\u4EE4\u884C\u7684\u64CD\u4F5C\u4E0D\u4F1A\u5BF9\u5B66\u751F\u7684\u5B9E\u9A8C\u73AF\u5883\u9020\u6210\u5F71\u54CD\uFF09")),sshRadioValue===1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(z){return setport(z.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308081\u7AEF\u53E3\uFF09"))),webssh_cloud===1&&sshRadioValue===3&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap,style:{alignItems:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(z){return setWindowVNCTemplate(z.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),webssh_cloud===1&&sshRadioValue===3&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap,style:{alignItems:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u4E91\u4E3B\u673A\u6570\u91CF\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__.a,{value:terminal_count,onChange:function(z){setterminal_count(z)},max:3,min:1,defaultValue:1}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"c-grey-999 ml20 font14"},"(\u6CE8\u610F\uFF1A\u4E91\u4E3B\u673A\u4E0A\u9650\u662F10\u53F0)")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:5,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u56FE\u5F62\u5316\u754C\u9762",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")))),isRadiuvalue===5&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(sshRadioValue!=2?_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graayminglthree:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl," ml40")},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:linux_vnc?"linux_vnc":windows_vnc?"windows_vnc":virtual_machine?"virtual_machine":"linux",disabled:!editable,onChange:function(z){var o,M,m,O,b,y,C,A,g,e=z.target.value;if(setWindowVNCTemplate(""),setport(!1),e==="linux_vnc"&&(o=shixunsDetail.setting)!==null&&o!==void 0&&(M=o.shixun)!==null&&M!==void 0&&M.linux_vnc){var f,a;setWindowVNCTemplate((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.windows_start_template)}else if(e==="windows_vnc"&&(m=shixunsDetail.setting)!==null&&m!==void 0&&(O=m.shixun)!==null&&O!==void 0&&O.windows_vnc){var l,n;setWindowVNCTemplate((l=shixunsDetail.setting)===null||l===void 0||((n=l.shixun)===null||n===void 0)?void 0:n.windows_start_template)}else if(e==="virtual_machine"&&(b=shixunsDetail.setting)!==null&&b!==void 0&&(y=b.shixun)!==null&&y!==void 0&&y.virtual_machine){var i,r;setWindowVNCTemplate((i=shixunsDetail.setting)===null||i===void 0||((r=i.shixun)===null||r===void 0)?void 0:r.windows_start_template)}else{var c,h,d,s,u,w;e==="linux"&&!((c=shixunsDetail.setting)!==null&&c!==void 0&&(h=c.shixun)!==null&&h!==void 0&&h.linux_vnc)&&!((d=shixunsDetail.setting)!==null&&d!==void 0&&(s=d.shixun)!==null&&s!==void 0&&s.windows_vnc)&&setport((u=shixunsDetail.setting)===null||u===void 0||((w=u.shixun)===null||w===void 0)?void 0:w.port_mapping)}switch(e){case"linux_vnc":setLinuxVNC(!0),setWindowVNC(!1),setVirtualMachine(!1),setVNC(!1);break;case"windows_vnc":setLinuxVNC(!1),setWindowVNC(!0),setVirtualMachine(!1),setVNC(!1);break;case"linux":setWindowVNC(!1),setLinuxVNC(!1),setMultiWebssh(!1),setWebsshShow(!1),setVirtualMachine(!1),setVNC(!0);break;case"virtual_machine":if(setWindowVNC(!1),setLinuxVNC(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1),setVirtualMachine(!0),(shixunsDetail==null||((C=shixunsDetail.setting)===null||C===void 0||((A=C.shixun)===null||A===void 0||((g=A.shixun_virtual_templates)===null||g===void 0)))?void 0:g.length)>0){var E,_;setshixun_virtual_templates(Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((E=shixunsDetail.setting)===null||E===void 0||((_=E.shixun)===null||_===void 0))?void 0:_.shixun_virtual_templates))}else setshixun_virtual_templates([{template_name:"",template_identity:""}]);break}}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:"linux",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"Linux\u5BB9\u5668",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528Linux\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")),!linux_vnc&&!windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(z){return setport(z.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u5230\u6307\u5B9A\u7AEF\u53E3\uFF09"))),isRadiuvalue==5&&linux_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(z){return setWindowVNCTemplate(z.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),isRadiuvalue==5&&windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(z){return setWindowVNCTemplate(z.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Windows\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{value:windows_connection_mode,onChange:function(z){return setWindowsConnectionMode(z)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"vnc"},"VNC\u65B9\u5F0F\u542F\u52A8"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"rdp"},"RDP\u65B9\u5F0F\u542F\u52A8")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__.a,{title:Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)()?"":"\u53EA\u6709\u5E73\u53F0\u7BA1\u7406\u5458\u6216\u8FD0\u8425\u4EBA\u5458\u624D\u80FD\u914D\u7F6E\u865A\u62DF\u673A\u6A21\u5F0F"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{disabled:!Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)(),value:"virtual_machine",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u865A\u62DF\u673A\u56FE\u5F62\u5316\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u865A\u62DF\u673A\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09"))),isRadiuvalue==5&&virtual_machine&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",width:213,marginRight:42,color:"#333333"}},"\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",color:"#333333"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A")),shixun_virtual_templates==null?void 0:shixun_virtual_templates.map(function(k,z){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{maxLength:8,style:{width:213,height:32,marginRight:42},placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0",value:k==null?void 0:k.template_name,onChange:function(M){k.template_name=M.target.value,setshixun_virtual_templates(Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{style:{width:380,height:32},placeholder:"\u8BF7\u8F93\u5165\u865A\u62DF\u673A\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u540D\u79F0",value:k==null?void 0:k.template_identity,onChange:function(M){k.template_identity=M.target.value,setshixun_virtual_templates(Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&(shixun_virtual_templates==null?void 0:shixun_virtual_templates.length)<5&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__.a,{style:{fontSize:"16px",marginLeft:15,color:"#165DFF"},onClick:function(){var M={};M.template_name="",M.template_identity="",shixun_virtual_templates.push(M),setshixun_virtual_templates(Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),z!=0&&Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__.a,{style:{fontSize:"16px",marginLeft:10,color:"#165DFF"},onClick:function(){shixun_virtual_templates.splice(z,1),setshixun_virtual_templates(Object(D_bishe_ppte5yg23_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}))}))))))),hideCode&&websshShow?null:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u5E93\u5730\u5740\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:display_git_address,disabled:!editable,onChange:function(z){return set_display_git_address(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")}," ","\uFF08\u9009\u4E2D\u5219\u5BF9\u5B66\u5458\u516C\u5F00\u4EE3\u7801\u5E93\u5730\u5740\uFF0C\u5B66\u5458\u53EF\u4EE5\u5C06\u6240\u6709\u4EE3\u7801\u4E0B\u8F7D\u5230\u672C\u5730\uFF09")))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u76EE\u5F55\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeHidden,disabled:!editable,onChange:function(z){return setCodeHidden(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u9875\u9762\u663E\u793A\u7248\u672C\u5E93\u76EE\u5F55\uFF09")),codeHidden&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"54px",background:"#f5f5f5",marginTop:"10px",borderRadius:"8px",display:"flex",justifyContent:"left",alignItems:"center",padding:"0px 20px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",null,"\u4EE3\u7801\u5E93\u6587\u4EF6\u4FEE\u6539\u6743\u9650\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent,style:{padding:"0px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeEditPermission,disabled:!editable,onChange:function(z){return setCodeEditPermission(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u52FE\u9009\u540E\u5141\u8BB8\u5B66\u5458\u4FEE\u6539\u4EE3\u7801\u5E93\u6240\u6709\u6587\u4EF6\uFF0C\u5426\u5219\u4EC5\u53EF\u4FEE\u6539\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\uFF09"))))))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u7981\u7528\u7C98\u8D34\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:forbidCopy,disabled:!editable,onChange:function(z){return setForbidCopy(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u7F16\u7801\u533A\u57DF\u65E0\u6CD5\u4F7F\u7528\u7C98\u8D34\u529F\u80FD\uFF09")))),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__.a,{value:survival_time,onChange:function(z){return setSurvivalTime(z)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\u5206")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px",display:"none"}},"\u9AD8\u7EA7\u8BBE\u7F6E"," ",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{onClick:function(){return setAdvancedSettingShow(!advancedsettingshow)},style:{color:"#0152d9",fontSize:"14px",cursor:"pointer",marginLeft:"20px"}},advancedsettingshow?"\u6536\u8D77":"\u5C55\u5F00",advancedsettingshow?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__.a,null):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__.a,null))),advancedsettingshow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,!((_shixunsDetail$detail7=shixunsDetail.detail)!==null&&_shixunsDetail$detail7!==void 0&&_shixunsDetail$detail7.is_jupyter)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexRow," ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexAlignCenter)},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{style:{fontSize:"16px"}},"\u8BC4\u6D4B\u811A\u672C\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{style:{width:"200px"},value:evaluationScript,disabled:((_shixunsDetail$settin150=shixunsDetail.setting)===null||_shixunsDetail$settin150===void 0||((_shixunsDetail$settin151=_shixunsDetail$settin150.shixun)===null||_shixunsDetail$settin151===void 0)?void 0:_shixunsDetail$settin151.status)===2?!0:!editable,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(z){handleChangeEvaluationScript(z),setevaluationScript(z)}},(standardScriptList||[]).map(function(k,z){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(Option,{value:parseInt(k.id),name:k.scptname,key:z},k.scptname)})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color0152d9," font14 current ml10"),style:{marginTop:"2px"},onClick:handleUseCustomScript},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_popover__WEBPACK_IMPORTED_MODULE_3__.a,{overlayClassName:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.popover,placement:"bottomLeft",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"challengeProgramNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"sourceClassNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step1/HelloWorld.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step2/Other.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step1.HelloWorld",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step2.Other",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'" "step2.Other")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__.a,null)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:evaluateScript,options:{readOnly:((_shixunsDetail$settin152=shixunsDetail.setting)===null||_shixunsDetail$settin152===void 0||((_shixunsDetail$settin153=_shixunsDetail$settin152.shixun)===null||_shixunsDetail$settin153===void 0)?void 0:_shixunsDetail$settin153.status)===2?!0:!editable},onChange:function(z){return setEvaluateScript(z)}})),((_shixunsDetail$detail8=shixunsDetail.detail)===null||_shixunsDetail$detail8===void 0?void 0:_shixunsDetail$detail8.identity)<3&&editable&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingName},"\u670D\u52A1\u914D\u7F6E"),serviceConfigList==null?void 0:serviceConfigList.map(function(k,z){var o,M,m,O,b,y,C,A;return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{key:z},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"font16"},k.name)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:k.cpu_limit,disabled:((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"cpu_limit",z)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:k.lower_cpu_limit,disabled:((m=shixunsDetail.setting)===null||m===void 0||((O=m.shixun)===null||O===void 0)?void 0:O.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"lower_cpu_limit",z)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:k.memory_limit,disabled:((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"memory_limit",z)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetMemoryInput,value:k.request_limit,disabled:((C=shixunsDetail.setting)===null||C===void 0||((A=C.shixun)===null||A===void 0)?void 0:A.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"request_limit",z)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetTip," ml5")},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")))}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}}," ","\u8BC4\u8BBA\u533A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u8BC4\u8BBA\u533A\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_switch__WEBPACK_IMPORTED_MODULE_1__.a,{checked:!disableDiscuss,onChange:function(z){return setDisableDiscuss(!z)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5173\u95ED\u540E\uFF0C\u5B9E\u8DF5\u9879\u76EE\u8BE6\u60C5\u9875\u53CA\u5173\u5361\u6311\u6218\u9875\u9762\u4E0D\u663E\u793A\u4EFB\u4F55\u8BC4\u8BBA\uFF09"))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"70px",width:"76%",background:"#ffffff",boxShadow:"0px -4px 8px 1px #F1F1F1",position:"absolute",bottom:"0px",display:"flex",alignItems:"center",justifyContent:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginRight:"10px",width:"100px",height:"40px",borderRadius:"4px",border:"1px solid #0152d9",color:"#0152d9"},onClick:function(){umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns/".concat(params.id,"/challenges"))}},"\u53D6\u6D88"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginLeft:"10px",width:"100px",height:"40px",fontSize:"16px",background:"#0152d9",borderRadius:"4px"},type:"primary",onClick:function(){return handSubmeit()}},"\u4FDD\u5B58"))),!isShowSetting&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u8005"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"60",width:"60",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.img,src:"".concat(_utils_env__WEBPACK_IMPORTED_MODULE_55__.a.IMG_SERVER,"/images/").concat(createTitle==null?void 0:createTitle.user_image_url)}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.nameWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.name},createTitle==null?void 0:createTitle.user_name),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.actionGroup})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.schoolWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.school},createTitle==null?void 0:createTitle.user_school)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.created_at),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u66F4\u65B0\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.updated_at)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__.a,null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__.a,{onFinish:function(z){return setEvaluateScript(z)}}))}__webpack_exports__.a=Object(umi__WEBPACK_IMPORTED_MODULE_40__.a)(function(k){var z=k.user,o=k.shixunsDetail,M=k.practiceSetting;return{user:z,shixunsDetail:o,practiceSetting:M}})(Setting)},"19Vz":function(k,z,o){(function(M){M(o("VrN/"))})(function(M){M.defineOption("placeholder","",function(g,e,f){var a=f&&f!=M.Init;if(e&&!a)g.on("blur",y),g.on("change",C),g.on("swapDoc",C),M.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){b(g)}),C(g);else if(!e&&a){g.off("blur",y),g.off("change",C),g.off("swapDoc",C),M.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),m(g);var l=g.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}e&&!g.hasFocus()&&y(g)});function m(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function O(g){m(g);var e=g.state.placeholder=document.createElement("pre");e.style.cssText="height: 0; overflow: visible",e.style.direction=g.getOption("direction"),e.className="CodeMirror-placeholder CodeMirror-line-like";var f=g.getOption("placeholder");typeof f=="string"&&(f=document.createTextNode(f)),e.appendChild(f),g.display.lineSpace.insertBefore(e,g.display.lineSpace.firstChild)}function b(g){setTimeout(function(){var e=!1,f=g.getInputField();f.nodeName=="TEXTAREA"?e=!f.value:g.lineCount()==1&&(e=!/[^\u200b]/.test(f.querySelector(".CodeMirror-line").textContent)),e?O(g):m(g)},20)}function y(g){A(g)&&O(g)}function C(g){var e=g.getWrapperElement(),f=A(g);e.className=e.className.replace(" CodeMirror-empty","")+(f?" CodeMirror-empty":""),f?O(g):m(g)}function A(g){return g.lineCount()===1&&g.getLine(0)===""}})},"1Sn+":function(k,z,o){},"1XHU":function(k,z,o){"use strict";var M=o("2qtc"),m=o("kLXV"),O=o("q1tI"),b=o.n(O),y=o("9kvl"),C=o("3wET"),A=o.n(C),g=o("bUJZ"),e=o.n(g),f=o("Ct/S"),a=o.n(f),l=function(i){var r=i.visible,c=i.occupationValue,h=i.onCancel,d=h===void 0?function(){}:h,s=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:e.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},u=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:A.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},w=function(){return c===3?b.a.createElement(b.a.Fragment,null,u(),s()):c===2?s():u()};return b.a.createElement(m.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:r,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){d(),y.d.push("/account/certification")},onCancel:function(){d()}},b.a.createElement("div",{className:a.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),b.a.createElement("div",{className:a.a.flexRow},w()))};z.a=Object(y.a)(function(n){var i=n.paperlibrary,r=n.loading,c=n.globalSetting;return{paperlibrary:i,globalSetting:c,loading:r.effects}})(l)},"1eCo":function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";var m={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},O={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};M.defineMode("xml",function(b,y){var C=b.indentUnit,A={},g=y.htmlMode?m:O;for(var e in g)A[e]=g[e];for(var e in y)A[e]=y[e];var f,a;function l(T,U){function I(H){return U.tokenize=H,H(T,U)}var N=T.next();if(N=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?I(r("atom","]]>")):null:T.match("--")?I(r("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),I(c(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),U.tokenize=r("meta","?>"),"meta"):(f=T.eat("/")?"closeTag":"openTag",U.tokenize=n,"tag bracket");if(N=="&"){var V;return T.eat("#")?T.eat("x")?V=T.eatWhile(/[a-fA-F\d]/)&&T.eat(";"):V=T.eatWhile(/[\d]/)&&T.eat(";"):V=T.eatWhile(/[\w\.\-:]/)&&T.eat(";"),V?"atom":"error"}else return T.eatWhile(/[^&<]/),null}l.isInText=!0;function n(T,U){var I=T.next();if(I==">"||I=="/"&&T.eat(">"))return U.tokenize=l,f=I==">"?"endTag":"selfcloseTag","tag bracket";if(I=="=")return f="equals",null;if(I=="<"){U.tokenize=l,U.state=u,U.tagName=U.tagStart=null;var N=U.tokenize(T,U);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(I)?(U.tokenize=i(I),U.stringStartCol=T.column(),U.tokenize(T,U)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function i(T){var U=function(I,N){for(;!I.eol();)if(I.next()==T){N.tokenize=n;break}return"string"};return U.isInAttribute=!0,U}function r(T,U){return function(I,N){for(;!I.eol();){if(I.match(U)){N.tokenize=l;break}I.next()}return T}}function c(T){return function(U,I){for(var N;(N=U.next())!=null;){if(N=="<")return I.tokenize=c(T+1),I.tokenize(U,I);if(N==">")if(T==1){I.tokenize=l;break}else return I.tokenize=c(T-1),I.tokenize(U,I)}return"meta"}}function h(T,U,I){this.prev=T.context,this.tagName=U,this.indent=T.indented,this.startOfLine=I,(A.doNotIndent.hasOwnProperty(U)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function d(T){T.context&&(T.context=T.context.prev)}function s(T,U){for(var I;;){if(!T.context)return;if(I=T.context.tagName,!A.contextGrabbers.hasOwnProperty(I)||!A.contextGrabbers[I].hasOwnProperty(U))return;d(T)}}function u(T,U,I){return T=="openTag"?(I.tagStart=U.column(),w):T=="closeTag"?E:u}function w(T,U,I){return T=="word"?(I.tagName=U.current(),a="tag",R):A.allowMissingTagName&&T=="endTag"?(a="tag bracket",R(T,U,I)):(a="error",w)}function E(T,U,I){if(T=="word"){var N=U.current();return I.context&&I.context.tagName!=N&&A.implicitlyClosed.hasOwnProperty(I.context.tagName)&&d(I),I.context&&I.context.tagName==N||A.matchClosing===!1?(a="tag",_):(a="tag error",P)}else return A.allowMissingTagName&&T=="endTag"?(a="tag bracket",_(T,U,I)):(a="error",P)}function _(T,U,I){return T!="endTag"?(a="error",_):(d(I),u)}function P(T,U,I){return a="error",_(T,U,I)}function R(T,U,I){if(T=="word")return a="attribute",x;if(T=="endTag"||T=="selfcloseTag"){var N=I.tagName,V=I.tagStart;return I.tagName=I.tagStart=null,T=="selfcloseTag"||A.autoSelfClosers.hasOwnProperty(N)?s(I,N):(s(I,N),I.context=new h(I,N,V==I.indented)),u}return a="error",R}function x(T,U,I){return T=="equals"?S:(A.allowMissing||(a="error"),R(T,U,I))}function S(T,U,I){return T=="string"?v:T=="word"&&A.allowUnquoted?(a="string",R):(a="error",R(T,U,I))}function v(T,U,I){return T=="string"?v:R(T,U,I)}return{startState:function(T){var U={tokenize:l,state:u,indented:T||0,tagName:null,tagStart:null,context:null};return T!=null&&(U.baseIndent=T),U},token:function(T,U){if(!U.tagName&&T.sol()&&(U.indented=T.indentation()),T.eatSpace())return null;f=null;var I=U.tokenize(T,U);return(I||f)&&I!="comment"&&(a=null,U.state=U.state(f||I,T,U),a&&(I=a=="error"?I+" error":a)),I},indent:function(T,U,I){var N=T.context;if(T.tokenize.isInAttribute)return T.tagStart==T.indented?T.stringStartCol+1:T.indented+C;if(N&&N.noIndent)return M.Pass;if(T.tokenize!=n&&T.tokenize!=l)return I?I.match(/^(\s*)/)[0].length:0;if(T.tagName)return A.multilineTagIndentPastTag!==!1?T.tagStart+T.tagName.length+2:T.tagStart+C*(A.multilineTagIndentFactor||1);if(A.alignCDATA&&/<!\[CDATA\[/.test(U))return 0;var V=U&&/^<(\/)?([\w_:\.-]*)/.exec(U);if(V&&V[1])for(;N;)if(N.tagName==V[2]){N=N.prev;break}else if(A.implicitlyClosed.hasOwnProperty(N.tagName))N=N.prev;else break;else if(V)for(;N;){var H=A.contextGrabbers[N.tagName];if(H&&H.hasOwnProperty(V[2]))N=N.prev;else break}for(;N&&N.prev&&!N.startOfLine;)N=N.prev;return N?N.indent+C:T.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:A.htmlMode?"html":"xml",helperType:A.htmlMode?"html":"xml",skipAttribute:function(T){T.state==S&&(T.state=R)},xmlCurrentTag:function(T){return T.tagName?{name:T.tagName,close:T.type=="closeTag"}:null},xmlCurrentContext:function(T){for(var U=[],I=T.context;I;I=I.prev)I.tagName&&U.push(I.tagName);return U.reverse()}}}),M.defineMIME("text/xml","xml"),M.defineMIME("application/xml","xml"),M.mimeModes.hasOwnProperty("text/html")||M.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(k,z,o){"use strict";o.d(z,"d",function(){return Xe}),o.d(z,"b",function(){return et}),o.d(z,"c",function(){return Lt}),o.d(z,"a",function(){return rn});var M=o("VTBJ"),m=o("1OyB"),O=o("vuIU"),b=o("JX7q"),y=o("Ji7U"),C=o("LK+K"),A=o("q1tI"),g=o("I8Z2"),e=o("BGR+"),f=o("wx14"),a=o("rePB"),l=o("4IlW"),n=o("2GS6"),i=o("Gytx"),r=o.n(i),c=o("TSYQ"),h=o.n(c),d=o("U8pU"),s=o("ODXe"),u=/iPhone/i,w=/iPod/i,E=/iPad/i,_=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,R=/\bAndroid(?:.+)SD4930UR\b/i,x=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,S=/Windows Phone/i,v=/\bWindows(?:.+)ARM\b/i,T=/BlackBerry/i,U=/BB10/i,I=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,V=/Mobile(?:.+)Firefox\b/i;function H(bt,ke){return bt.test(ke)}function D(bt){var ke=bt||(typeof navigator!="undefined"?navigator.userAgent:""),nt=ke.split("[FBAN");if(typeof nt[1]!="undefined"){var rt=nt,De=Object(s.a)(rt,1);ke=De[0]}if(nt=ke.split("Twitter"),typeof nt[1]!="undefined"){var Ke=nt,Ct=Object(s.a)(Ke,1);ke=Ct[0]}var ft={apple:{phone:H(u,ke)&&!H(S,ke),ipod:H(w,ke),tablet:!H(u,ke)&&H(E,ke)&&!H(S,ke),device:(H(u,ke)||H(w,ke)||H(E,ke))&&!H(S,ke)},amazon:{phone:H(R,ke),tablet:!H(R,ke)&&H(x,ke),device:H(R,ke)||H(x,ke)},android:{phone:!H(S,ke)&&H(R,ke)||!H(S,ke)&&H(_,ke),tablet:!H(S,ke)&&!H(R,ke)&&!H(_,ke)&&(H(x,ke)||H(P,ke)),device:!H(S,ke)&&(H(R,ke)||H(x,ke)||H(_,ke)||H(P,ke))||H(/\bokhttp\b/i,ke)},windows:{phone:H(S,ke),tablet:H(v,ke),device:H(S,ke)||H(v,ke)},other:{blackberry:H(T,ke),blackberry10:H(U,ke),opera:H(I,ke),firefox:H(V,ke),chrome:H(N,ke),device:H(T,ke)||H(U,ke)||H(I,ke)||H(V,ke)||H(N,ke)},any:null,phone:null,tablet:null};return ft.any=ft.apple.device||ft.android.device||ft.windows.device||ft.other.device,ft.phone=ft.apple.phone||ft.android.phone||ft.windows.phone,ft.tablet=ft.apple.tablet||ft.android.tablet||ft.windows.tablet,ft}var W=Object(M.a)(Object(M.a)({},D()),{},{isMobile:D}),F=W;function L(){}function K(bt,ke,nt){var rt=ke||"";return bt.key||"".concat(rt,"item_").concat(nt)}function ee(bt){return"".concat(bt,"-menu-")}function he(bt,ke){var nt=-1;A.Children.forEach(bt,function(rt){nt+=1,rt&&rt.type&&rt.type.isMenuItemGroup?A.Children.forEach(rt.props.children,function(De){nt+=1,ke(De,nt)}):ke(rt,nt)})}function fe(bt,ke,nt){if(!bt||nt.find)return;A.Children.forEach(bt,function(rt){if(rt){var De=rt.type;if(!De||!(De.isSubMenu||De.isMenuItem||De.isMenuItemGroup))return;ke.indexOf(rt.key)!==-1?nt.find=!0:rt.props.children&&fe(rt.props.children,ke,nt)}})}var Ce=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Te=function(ke){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=ke&&typeof ke.getBoundingClientRect=="function"&&ke.getBoundingClientRect().width;if(rt){if(nt){var De=getComputedStyle(ke),Ke=De.marginLeft,Ct=De.marginRight;rt+=+Ke.replace("px","")+ +Ct.replace("px","")}rt=+rt.toFixed(6)}return rt||0},ce=function(ke,nt,rt){ke&&Object(d.a)(ke.style)==="object"&&(ke.style[nt]=rt)},ye=function(){return F.any},Ee=o("KQm4"),ue=o("Ff2n"),se=o("i8i4"),$=o("bdgK"),me=o("uciX"),re=o("8XRh"),ae={adjustX:1,adjustY:1},we={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},le={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},te=we,Q=0,J={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ve=function(ke,nt,rt){var De=ee(nt),Ke=ke.getState();ke.setState({defaultActiveFirst:Object(M.a)(Object(M.a)({},Ke.defaultActiveFirst),{},Object(a.a)({},De,rt))})},_e=function(bt){Object(y.a)(nt,bt);var ke=Object(C.a)(nt);function nt(rt){var De;Object(m.a)(this,nt),De=ke.call(this,rt),De.onDestroy=function(ct){De.props.onDestroy(ct)},De.onKeyDown=function(ct){var Ut=ct.keyCode,Ft=De.menuInstance,on=De.props,cn=on.isOpen,ln=on.store;if(Ut===l.a.ENTER)return De.onTitleClick(ct),ve(ln,De.props.eventKey,!0),!0;if(Ut===l.a.RIGHT)return cn?Ft.onKeyDown(ct):(De.triggerOpenChange(!0),ve(ln,De.props.eventKey,!0)),!0;if(Ut===l.a.LEFT){var kn;if(cn)kn=Ft.onKeyDown(ct);else return;return kn||(De.triggerOpenChange(!1),kn=!0),kn}return cn&&(Ut===l.a.UP||Ut===l.a.DOWN)?Ft.onKeyDown(ct):void 0},De.onOpenChange=function(ct){De.props.onOpenChange(ct)},De.onPopupVisibleChange=function(ct){De.triggerOpenChange(ct,ct?"mouseenter":"mouseleave")},De.onMouseEnter=function(ct){var Ut=De.props,Ft=Ut.eventKey,on=Ut.onMouseEnter,cn=Ut.store;ve(cn,De.props.eventKey,!1),on({key:Ft,domEvent:ct})},De.onMouseLeave=function(ct){var Ut=De.props,Ft=Ut.parentMenu,on=Ut.eventKey,cn=Ut.onMouseLeave;Ft.subMenuInstance=Object(b.a)(De),cn({key:on,domEvent:ct})},De.onTitleMouseEnter=function(ct){var Ut=De.props,Ft=Ut.eventKey,on=Ut.onItemHover,cn=Ut.onTitleMouseEnter;on({key:Ft,hover:!0}),cn({key:Ft,domEvent:ct})},De.onTitleMouseLeave=function(ct){var Ut=De.props,Ft=Ut.parentMenu,on=Ut.eventKey,cn=Ut.onItemHover,ln=Ut.onTitleMouseLeave;Ft.subMenuInstance=Object(b.a)(De),cn({key:on,hover:!1}),ln({key:on,domEvent:ct})},De.onTitleClick=function(ct){var Ut=Object(b.a)(De),Ft=Ut.props;if(Ft.onTitleClick({key:Ft.eventKey,domEvent:ct}),Ft.triggerSubMenuAction==="hover")return;De.triggerOpenChange(!Ft.isOpen,"click"),ve(Ft.store,De.props.eventKey,!1)},De.onSubMenuClick=function(ct){typeof De.props.onClick=="function"&&De.props.onClick(De.addKeyPath(ct))},De.onSelect=function(ct){De.props.onSelect(ct)},De.onDeselect=function(ct){De.props.onDeselect(ct)},De.getPrefixCls=function(){return"".concat(De.props.rootPrefixCls,"-submenu")},De.getActiveClassName=function(){return"".concat(De.getPrefixCls(),"-active")},De.getDisabledClassName=function(){return"".concat(De.getPrefixCls(),"-disabled")},De.getSelectedClassName=function(){return"".concat(De.getPrefixCls(),"-selected")},De.getOpenClassName=function(){return"".concat(De.props.rootPrefixCls,"-submenu-open")},De.saveMenuInstance=function(ct){De.menuInstance=ct},De.addKeyPath=function(ct){return Object(M.a)(Object(M.a)({},ct),{},{keyPath:(ct.keyPath||[]).concat(De.props.eventKey)})},De.triggerOpenChange=function(ct,Ut){var Ft=De.props.eventKey,on=function(){De.onOpenChange({key:Ft,item:Object(b.a)(De),trigger:Ut,open:ct})};Ut==="mouseenter"?De.mouseenterTimeout=setTimeout(function(){on()},0):on()},De.isChildrenSelected=function(){var ct={find:!1};return fe(De.props.children,De.props.selectedKeys,ct),ct.find},De.isOpen=function(){return De.props.openKeys.indexOf(De.props.eventKey)!==-1},De.adjustWidth=function(){if(!De.subMenuTitle||!De.menuInstance)return;var ct=se.findDOMNode(De.menuInstance);if(ct.offsetWidth>=De.subMenuTitle.offsetWidth)return;ct.style.minWidth="".concat(De.subMenuTitle.offsetWidth,"px")},De.saveSubMenuTitle=function(ct){De.subMenuTitle=ct},De.getBaseProps=function(){var ct=Object(b.a)(De),Ut=ct.props;return{mode:Ut.mode==="horizontal"?"vertical":Ut.mode,visible:De.props.isOpen,level:Ut.level+1,inlineIndent:Ut.inlineIndent,focusable:!1,onClick:De.onSubMenuClick,onSelect:De.onSelect,onDeselect:De.onDeselect,onDestroy:De.onDestroy,selectedKeys:Ut.selectedKeys,eventKey:"".concat(Ut.eventKey,"-menu-"),openKeys:Ut.openKeys,motion:Ut.motion,onOpenChange:De.onOpenChange,subMenuOpenDelay:Ut.subMenuOpenDelay,parentMenu:Object(b.a)(De),subMenuCloseDelay:Ut.subMenuCloseDelay,forceSubMenuRender:Ut.forceSubMenuRender,triggerSubMenuAction:Ut.triggerSubMenuAction,builtinPlacements:Ut.builtinPlacements,defaultActiveFirst:Ut.store.getState().defaultActiveFirst[ee(Ut.eventKey)],multiple:Ut.multiple,prefixCls:Ut.rootPrefixCls,id:De.internalMenuId,manualRef:De.saveMenuInstance,itemIcon:Ut.itemIcon,expandIcon:Ut.expandIcon,direction:Ut.direction}},De.getMotion=function(ct,Ut){var Ft=Object(b.a)(De),on=Ft.haveRendered,cn=De.props,ln=cn.motion,kn=cn.rootPrefixCls,In=Object(M.a)(Object(M.a)({},ln),{},{leavedClassName:"".concat(kn,"-hidden"),removeOnLeave:!1,motionAppear:on||!Ut||ct!=="inline"});return In};var Ke=rt.store,Ct=rt.eventKey,ft=Ke.getState(),xt=ft.defaultActiveFirst;De.isRootMenu=!1;var Mt=!1;return xt&&(Mt=xt[Ct]),ve(Ke,Ct,Mt),De}return Object(O.a)(nt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var De=this,Ke=this.props,Ct=Ke.mode,ft=Ke.parentMenu,xt=Ke.manualRef;if(xt&&xt(this),Ct!=="horizontal"||!ft.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return De.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var De=this.props,Ke=De.onDestroy,Ct=De.eventKey;Ke&&Ke(Ct),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(De){var Ke=this,Ct=this.getBaseProps(),ft=this.getMotion(Ct.mode,Ct.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ct.visible||Ct.forceSubMenuRender,!this.haveOpened)return A.createElement("div",null);var xt=Ct.direction;return A.createElement(re.default,Object.assign({visible:Ct.visible},ft),function(Mt){var ct=Mt.className,Ut=Mt.style,Ft=h()("".concat(Ct.prefixCls,"-sub"),ct,Object(a.a)({},"".concat(Ct.prefixCls,"-rtl"),xt==="rtl"));return A.createElement(Ze,Object.assign({},Ct,{id:Ke.internalMenuId,className:Ft,style:Ut}),De)})}},{key:"render",value:function(){var De,Ke=Object(M.a)({},this.props),Ct=Ke.isOpen,ft=this.getPrefixCls(),xt=Ke.mode==="inline",Mt=h()(ft,"".concat(ft,"-").concat(Ke.mode),(De={},Object(a.a)(De,Ke.className,!!Ke.className),Object(a.a)(De,this.getOpenClassName(),Ct),Object(a.a)(De,this.getActiveClassName(),Ke.active||Ct&&!xt),Object(a.a)(De,this.getDisabledClassName(),Ke.disabled),Object(a.a)(De,this.getSelectedClassName(),this.isChildrenSelected()),De));this.internalMenuId||(Ke.eventKey?this.internalMenuId="".concat(Ke.eventKey,"$Menu"):(Q+=1,this.internalMenuId="$__$".concat(Q,"$Menu")));var ct={},Ut={},Ft={};Ke.disabled||(ct={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ut={onClick:this.onTitleClick},Ft={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var on={},cn=Ke.direction;xt&&(cn==="rtl"?on.paddingRight=Ke.inlineIndent*Ke.level:on.paddingLeft=Ke.inlineIndent*Ke.level);var ln={};this.props.isOpen&&(ln={"aria-owns":this.internalMenuId});var kn=null;Ke.mode!=="horizontal"&&(kn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(kn=A.createElement(this.props.expandIcon,Object(M.a)({},this.props))));var In=A.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:on,className:"".concat(ft,"-title"),role:"button"},Ft,Ut,{"aria-expanded":Ct},ln,{"aria-haspopup":"true",title:typeof Ke.title=="string"?Ke.title:void 0}),Ke.title,kn||A.createElement("i",{className:"".concat(ft,"-arrow")})),sn=this.renderChildren(Ke.children),Gn=Ke.parentMenu.isRootMenu?Ke.parentMenu.props.getPopupContainer:function(Cr){return Cr.parentNode},Nn=J[Ke.mode],Vn=Ke.popupOffset?{offset:Ke.popupOffset}:{},Zn=Ke.mode==="inline"?"":Ke.popupClassName;Zn+=cn==="rtl"?" ".concat(ft,"-rtl"):"";var xr=Ke.disabled,dr=Ke.triggerSubMenuAction,un=Ke.subMenuOpenDelay,$t=Ke.forceSubMenuRender,An=Ke.subMenuCloseDelay,Ur=Ke.builtinPlacements;Ce.forEach(function(Cr){return delete Ke[Cr]}),delete Ke.onClick;var Ar=cn==="rtl"?Object.assign({},le,Ur):Object.assign({},we,Ur);return delete Ke.direction,A.createElement("li",Object.assign({},Ke,ct,{className:Mt,role:"menuitem"}),xt&&In,xt&&sn,!xt&&A.createElement(me.a,{prefixCls:ft,popupClassName:h()("".concat(ft,"-popup"),Zn),getPopupContainer:Gn,builtinPlacements:Ar,popupPlacement:Nn,popupVisible:Ct,popupAlign:Vn,popup:sn,action:xr?[]:[dr],mouseEnterDelay:un,mouseLeaveDelay:An,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:$t},In))}}]),nt}(A.Component);_e.defaultProps={onMouseEnter:L,onMouseLeave:L,onTitleMouseEnter:L,onTitleMouseLeave:L,onTitleClick:L,manualRef:L,mode:"vertical",title:""};var Oe=Object(g.b)(function(bt,ke){var nt=bt.openKeys,rt=bt.activeKey,De=bt.selectedKeys,Ke=ke.eventKey,Ct=ke.subMenuKey;return{isOpen:nt.indexOf(Ke)>-1,active:rt[Ct]===Ke,selectedKeys:De}})(_e);Oe.isSubMenu=!0;var Xe=Oe,tt="menuitem-overflowed",lt=.5,dt=function(bt){Object(y.a)(nt,bt);var ke=Object(C.a)(nt);function nt(){var rt;return Object(m.a)(this,nt),rt=ke.apply(this,arguments),rt.resizeObserver=null,rt.mutationObserver=null,rt.originalTotalWidth=0,rt.overflowedItems=[],rt.menuItemSizes=[],rt.cancelFrameId=null,rt.state={lastVisibleIndex:void 0},rt.getMenuItemNodes=function(){var De=rt.props.prefixCls,Ke=se.findDOMNode(Object(b.a)(rt));return Ke?[].slice.call(Ke.children).filter(function(Ct){return Ct.className.split(" ").indexOf("".concat(De,"-overflowed-submenu"))<0}):[]},rt.getOverflowedSubMenuItem=function(De,Ke,Ct){var ft=rt.props,xt=ft.overflowedIndicator,Mt=ft.level,ct=ft.mode,Ut=ft.prefixCls,Ft=ft.theme;if(Mt!==1||ct!=="horizontal")return null;var on=rt.props.children[0],cn=on.props,ln=cn.children,kn=cn.title,In=cn.style,sn=Object(ue.a)(cn,["children","title","style"]),Gn=Object(M.a)({},In),Nn="".concat(De,"-overflowed-indicator"),Vn="".concat(De,"-overflowed-indicator");Ke.length===0&&Ct!==!0?Gn=Object(M.a)(Object(M.a)({},Gn),{},{display:"none"}):Ct&&(Gn=Object(M.a)(Object(M.a)({},Gn),{},{visibility:"hidden",position:"absolute"}),Nn="".concat(Nn,"-placeholder"),Vn="".concat(Vn,"-placeholder"));var Zn=Ft?"".concat(Ut,"-").concat(Ft):"",xr={};return Ce.forEach(function(dr){sn[dr]!==void 0&&(xr[dr]=sn[dr])}),A.createElement(Xe,Object.assign({title:xt,className:"".concat(Ut,"-overflowed-submenu"),popupClassName:Zn},xr,{key:Nn,eventKey:Vn,disabled:!1,style:Gn}),Ke)},rt.setChildrenWidthAndResize=function(){if(rt.props.mode!=="horizontal")return;var De=se.findDOMNode(Object(b.a)(rt));if(!De)return;var Ke=De.children;if(!Ke||Ke.length===0)return;var Ct=De.children[Ke.length-1];ce(Ct,"display","inline-block");var ft=rt.getMenuItemNodes(),xt=ft.filter(function(Mt){return Mt.className.split(" ").indexOf(tt)>=0});xt.forEach(function(Mt){ce(Mt,"display","inline-block")}),rt.menuItemSizes=ft.map(function(Mt){return Te(Mt,!0)}),xt.forEach(function(Mt){ce(Mt,"display","none")}),rt.overflowedIndicatorWidth=Te(De.children[De.children.length-1],!0),rt.originalTotalWidth=rt.menuItemSizes.reduce(function(Mt,ct){return Mt+ct},0),rt.handleResize(),ce(Ct,"display","none")},rt.handleResize=function(){if(rt.props.mode!=="horizontal")return;var De=se.findDOMNode(Object(b.a)(rt));if(!De)return;var Ke=Te(De);rt.overflowedItems=[];var Ct=0,ft;rt.originalTotalWidth>Ke+lt&&(ft=-1,rt.menuItemSizes.forEach(function(xt){Ct+=xt,Ct+rt.overflowedIndicatorWidth<=Ke&&(ft+=1)})),rt.setState({lastVisibleIndex:ft})},rt}return Object(O.a)(nt,[{key:"componentDidMount",value:function(){var De=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ke=se.findDOMNode(this);if(!Ke)return;this.resizeObserver=new $.default(function(Ct){Ct.forEach(function(){var ft=De.cancelFrameId;cancelAnimationFrame(ft),De.cancelFrameId=requestAnimationFrame(De.setChildrenWidthAndResize)})}),[].slice.call(Ke.children).concat(Ke).forEach(function(Ct){De.resizeObserver.observe(Ct)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){De.resizeObserver.disconnect(),[].slice.call(Ke.children).concat(Ke).forEach(function(Ct){De.resizeObserver.observe(Ct)}),De.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ke,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(De){var Ke=this,Ct=this.state.lastVisibleIndex;return(De||[]).reduce(function(ft,xt,Mt){var ct=xt;if(Ke.props.mode==="horizontal"){var Ut=Ke.getOverflowedSubMenuItem(xt.props.eventKey,[]);Ct!==void 0&&Ke.props.className.indexOf("".concat(Ke.props.prefixCls,"-root"))!==-1&&(Mt>Ct&&(ct=A.cloneElement(xt,{style:{display:"none"},eventKey:"".concat(xt.props.eventKey,"-hidden"),className:"".concat(tt)})),Mt===Ct+1&&(Ke.overflowedItems=De.slice(Ct+1).map(function(on){return A.cloneElement(on,{key:on.props.eventKey,mode:"vertical-left"})}),Ut=Ke.getOverflowedSubMenuItem(xt.props.eventKey,Ke.overflowedItems)));var Ft=[].concat(Object(Ee.a)(ft),[Ut,ct]);return Mt===De.length-1&&Ft.push(Ke.getOverflowedSubMenuItem(xt.props.eventKey,[],!0)),Ft}return[].concat(Object(Ee.a)(ft),[ct])},[])}},{key:"render",value:function(){var De=this.props,Ke=De.visible,Ct=De.prefixCls,ft=De.overflowedIndicator,xt=De.mode,Mt=De.level,ct=De.tag,Ut=De.children,Ft=De.theme,on=Object(ue.a)(De,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),cn=ct;return A.createElement(cn,Object.assign({},on),this.renderChildren(Ut))}}]),nt}(A.Component);dt.defaultProps={tag:"div",className:""};var vt=dt;function _t(bt){return bt.length?bt.every(function(ke){return!!ke.props.disabled}):!0}function Ye(bt,ke,nt){var rt=bt.getState();bt.setState({activeKey:Object(M.a)(Object(M.a)({},rt.activeKey),{},Object(a.a)({},ke,nt))})}function je(bt){return bt.eventKey||"0-menu-"}function ht(bt,ke){var nt=ke,rt=bt.children,De=bt.eventKey;if(nt){var Ke;if(he(rt,function(Ct,ft){Ct&&Ct.props&&!Ct.props.disabled&&nt===K(Ct,De,ft)&&(Ke=!0)}),Ke)return nt}return nt=null,bt.defaultActiveFirst&&he(rt,function(Ct,ft){!nt&&Ct&&!Ct.props.disabled&&(nt=K(Ct,De,ft))}),nt}function Bt(bt){if(bt){var ke=this.instanceArray.indexOf(bt);ke!==-1?this.instanceArray[ke]=bt:this.instanceArray.push(bt)}}var Et=function(bt){Object(y.a)(nt,bt);var ke=Object(C.a)(nt);function nt(rt){var De;return Object(m.a)(this,nt),De=ke.call(this,rt),De.onKeyDown=function(Ke,Ct){var ft=Ke.keyCode,xt;if(De.getFlatInstanceArray().forEach(function(ct){ct&&ct.props.active&&ct.onKeyDown&&(xt=ct.onKeyDown(Ke))}),xt)return 1;var Mt=null;return(ft===l.a.UP||ft===l.a.DOWN)&&(Mt=De.step(ft===l.a.UP?-1:1)),Mt?(Ke.preventDefault(),Ye(De.props.store,je(De.props),Mt.props.eventKey),typeof Ct=="function"&&Ct(Mt),1):void 0},De.onItemHover=function(Ke){var Ct=Ke.key,ft=Ke.hover;Ye(De.props.store,je(De.props),ft?Ct:null)},De.onDeselect=function(Ke){De.props.onDeselect(Ke)},De.onSelect=function(Ke){De.props.onSelect(Ke)},De.onClick=function(Ke){De.props.onClick(Ke)},De.onOpenChange=function(Ke){De.props.onOpenChange(Ke)},De.onDestroy=function(Ke){De.props.onDestroy(Ke)},De.getFlatInstanceArray=function(){return De.instanceArray},De.step=function(Ke){var Ct=De.getFlatInstanceArray(),ft=De.props.store.getState().activeKey[je(De.props)],xt=Ct.length;if(!xt)return null;Ke<0&&(Ct=Ct.concat().reverse());var Mt=-1;if(Ct.every(function(on,cn){return on&&on.props.eventKey===ft?(Mt=cn,!1):!0}),!De.props.defaultActiveFirst&&Mt!==-1&&_t(Ct.slice(Mt,xt-1)))return;var ct=(Mt+1)%xt,Ut=ct;do{var Ft=Ct[Ut];if(!Ft||Ft.props.disabled)Ut=(Ut+1)%xt;else return Ft}while(Ut!==ct);return null},De.renderCommonMenuItem=function(Ke,Ct,ft){var xt=De.props.store.getState(),Mt=Object(b.a)(De),ct=Mt.props,Ut=K(Ke,ct.eventKey,Ct),Ft=Ke.props;if(!Ft||typeof Ke.type=="string")return Ke;var on=Ut===xt.activeKey,cn=Object(M.a)(Object(M.a)({mode:Ft.mode||ct.mode,level:ct.level,inlineIndent:ct.inlineIndent,renderMenuItem:De.renderMenuItem,rootPrefixCls:ct.prefixCls,index:Ct,parentMenu:ct.parentMenu,manualRef:Ft.disabled?void 0:Object(n.a)(Ke.ref,Bt.bind(Object(b.a)(De))),eventKey:Ut,active:!Ft.disabled&&on,multiple:ct.multiple,onClick:function(kn){(Ft.onClick||L)(kn),De.onClick(kn)},onItemHover:De.onItemHover,motion:ct.motion,subMenuOpenDelay:ct.subMenuOpenDelay,subMenuCloseDelay:ct.subMenuCloseDelay,forceSubMenuRender:ct.forceSubMenuRender,onOpenChange:De.onOpenChange,onDeselect:De.onDeselect,onSelect:De.onSelect,builtinPlacements:ct.builtinPlacements,itemIcon:Ft.itemIcon||De.props.itemIcon,expandIcon:Ft.expandIcon||De.props.expandIcon},ft),{},{direction:ct.direction});return(ct.mode==="inline"||ye())&&(cn.triggerSubMenuAction="click"),A.cloneElement(Ke,cn)},De.renderMenuItem=function(Ke,Ct,ft){if(!Ke)return null;var xt=De.props.store.getState(),Mt={openKeys:xt.openKeys,selectedKeys:xt.selectedKeys,triggerSubMenuAction:De.props.triggerSubMenuAction,subMenuKey:ft};return De.renderCommonMenuItem(Ke,Ct,Mt)},rt.store.setState({activeKey:Object(M.a)(Object(M.a)({},rt.store.getState().activeKey),{},Object(a.a)({},rt.eventKey,ht(rt,rt.activeKey)))}),De.instanceArray=[],De}return Object(O.a)(nt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(De){return this.props.visible||De.visible||this.props.className!==De.className||!r()(this.props.style,De.style)}},{key:"componentDidUpdate",value:function(De){var Ke=this.props,Ct="activeKey"in Ke?Ke.activeKey:Ke.store.getState().activeKey[je(Ke)],ft=ht(Ke,Ct);if(ft!==Ct)Ye(Ke.store,je(Ke),ft);else if("activeKey"in De){var xt=ht(De,De.activeKey);ft!==xt&&Ye(Ke.store,je(Ke),ft)}}},{key:"render",value:function(){var De=this,Ke=Object(f.a)({},this.props);this.instanceArray=[];var Ct=h()(Ke.prefixCls,Ke.className,"".concat(Ke.prefixCls,"-").concat(Ke.mode)),ft={className:Ct,role:Ke.role||"menu"};Ke.id&&(ft.id=Ke.id),Ke.focusable&&(ft.tabIndex=0,ft.onKeyDown=this.onKeyDown);var xt=Ke.prefixCls,Mt=Ke.eventKey,ct=Ke.visible,Ut=Ke.level,Ft=Ke.mode,on=Ke.overflowedIndicator,cn=Ke.theme;return Ce.forEach(function(ln){return delete Ke[ln]}),delete Ke.onClick,A.createElement(vt,Object.assign({},Ke,{prefixCls:xt,mode:Ft,tag:"ul",level:Ut,theme:cn,visible:ct,overflowedIndicator:on},ft),A.Children.map(Ke.children,function(ln,kn){return De.renderMenuItem(ln,kn,Mt||"0-menu-")}))}}]),nt}(A.Component);Et.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:L};var Pt=Object(g.b)()(Et),Ze=Pt,We=o("Kwbf");function Je(bt,ke,nt){var rt=bt.prefixCls,De=bt.motion,Ke=bt.defaultMotions,Ct=Ke===void 0?{}:Ke,ft=bt.openAnimation,xt=bt.openTransitionName,Mt=ke.switchingModeFromInline;if(De)return De;if(Object(d.a)(ft)==="object"&&ft)Object(We.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ft=="string")return{motionName:"".concat(rt,"-open-").concat(ft)};if(xt)return{motionName:xt};var ct=Ct[nt];return ct||(Mt?null:Ct.other)}var Ae=function(bt){Object(y.a)(nt,bt);var ke=Object(C.a)(nt);function nt(rt){var De;Object(m.a)(this,nt),De=ke.call(this,rt),De.inlineOpenKeys=[],De.onSelect=function(ft){var xt=Object(b.a)(De),Mt=xt.props;if(Mt.selectable){var ct=De.store.getState(),Ut=ct.selectedKeys,Ft=ft.key;Mt.multiple?Ut=Ut.concat([Ft]):Ut=[Ft],"selectedKeys"in Mt||De.store.setState({selectedKeys:Ut}),Mt.onSelect(Object(M.a)(Object(M.a)({},ft),{},{selectedKeys:Ut}))}},De.onClick=function(ft){var xt=De.getRealMenuMode(),Mt=Object(b.a)(De),ct=Mt.store,Ut=Mt.props.onOpenChange;xt!=="inline"&&!("openKeys"in De.props)&&(ct.setState({openKeys:[]}),Ut([])),De.props.onClick(ft)},De.onKeyDown=function(ft,xt){De.innerMenu.getWrappedInstance().onKeyDown(ft,xt)},De.onOpenChange=function(ft){var xt=Object(b.a)(De),Mt=xt.props,ct=De.store.getState().openKeys.concat(),Ut=!1,Ft=function(cn){var ln=!1;if(cn.open)ln=ct.indexOf(cn.key)===-1,ln&&ct.push(cn.key);else{var kn=ct.indexOf(cn.key);ln=kn!==-1,ln&&ct.splice(kn,1)}Ut=Ut||ln};Array.isArray(ft)?ft.forEach(Ft):Ft(ft),Ut&&("openKeys"in De.props||De.store.setState({openKeys:ct}),Mt.onOpenChange(ct))},De.onDeselect=function(ft){var xt=Object(b.a)(De),Mt=xt.props;if(Mt.selectable){var ct=De.store.getState().selectedKeys.concat(),Ut=ft.key,Ft=ct.indexOf(Ut);Ft!==-1&&ct.splice(Ft,1),"selectedKeys"in Mt||De.store.setState({selectedKeys:ct}),Mt.onDeselect(Object(M.a)(Object(M.a)({},ft),{},{selectedKeys:ct}))}},De.onMouseEnter=function(ft){De.restoreModeVerticalFromInline();var xt=De.props.onMouseEnter;xt&&xt(ft)},De.onTransitionEnd=function(ft){var xt=ft.propertyName==="width"&&ft.target===ft.currentTarget,Mt=ft.target.className,ct=Object.prototype.toString.call(Mt)==="[object SVGAnimatedString]"?Mt.animVal:Mt,Ut=ft.propertyName==="font-size"&&ct.indexOf("anticon")>=0;(xt||Ut)&&De.restoreModeVerticalFromInline()},De.setInnerMenu=function(ft){De.innerMenu=ft},De.isRootMenu=!0;var Ke=rt.defaultSelectedKeys,Ct=rt.defaultOpenKeys;return"selectedKeys"in rt&&(Ke=rt.selectedKeys||[]),"openKeys"in rt&&(Ct=rt.openKeys||[]),De.store=Object(g.c)({selectedKeys:Ke,openKeys:Ct,activeKey:{"0-menu-":ht(rt,rt.activeKey)}}),De.state={switchingModeFromInline:!1},De}return Object(O.a)(nt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(De){this.updateOpentKeysWhenSwitchMode(De),this.updateMiniStore();var Ke=this.props,Ct=Ke.siderCollapsed,ft=Ke.inlineCollapsed,xt=Ke.onOpenChange;(!De.inlineCollapsed&&ft||!De.siderCollapsed&&Ct)&&xt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(De){var Ke=this.props,Ct=this.store,ft=this.inlineOpenKeys,xt=Ct.getState(),Mt={};De.mode==="inline"&&Ke.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Ke||((Ke.inlineCollapsed&&!De.inlineCollapsed||Ke.siderCollapsed&&!De.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=xt.openKeys.concat(),Mt.openKeys=[]),(!Ke.inlineCollapsed&&De.inlineCollapsed||!Ke.siderCollapsed&&De.siderCollapsed)&&(Mt.openKeys=ft,this.inlineOpenKeys=[])),Object.keys(Mt).length&&Ct.setState(Mt)}},{key:"updateMenuDisplay",value:function(){var De=this.props.collapsedWidth,Ke=this.store,Ct=this.prevOpenKeys,ft=this.getInlineCollapsed()&&(De===0||De==="0"||De==="0px");ft?(this.prevOpenKeys=Ke.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ct&&(this.store.setState({openKeys:Ct}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var De=this.props.mode,Ke=this.state.switchingModeFromInline,Ct=this.getInlineCollapsed();return Ke&&Ct?"inline":Ct?"vertical":De}},{key:"getInlineCollapsed",value:function(){var De=this.props,Ke=De.inlineCollapsed,Ct=De.siderCollapsed;return Ct!==void 0?Ct:Ke}},{key:"restoreModeVerticalFromInline",value:function(){var De=this.state.switchingModeFromInline;De&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var De=Object(M.a)({},Object(e.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ke=this.getRealMenuMode();return De.className+=" ".concat(De.prefixCls,"-root"),De.direction==="rtl"&&(De.className+=" ".concat(De.prefixCls,"-rtl")),De=Object(M.a)(Object(M.a)({},De),{},{mode:Ke,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Je(this.props,this.state,Ke)}),delete De.openAnimation,delete De.openTransitionName,A.createElement(g.a,{store:this.store},A.createElement(Ze,Object.assign({},De,{ref:this.setInnerMenu}),this.props.children))}}]),nt}(A.Component);Ae.defaultProps={selectable:!0,onClick:L,onSelect:L,onOpenChange:L,onDeselect:L,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:A.createElement("span",null,"\xB7\xB7\xB7")};var Ue=Ae,He=function(bt){Object(y.a)(nt,bt);var ke=Object(C.a)(nt);function nt(){var rt;return Object(m.a)(this,nt),rt=ke.apply(this,arguments),rt.onKeyDown=function(De){var Ke=De.keyCode;return Ke===l.a.ENTER?(rt.onClick(De),!0):void 0},rt.onMouseLeave=function(De){var Ke=rt.props,Ct=Ke.eventKey,ft=Ke.onItemHover,xt=Ke.onMouseLeave;ft({key:Ct,hover:!1}),xt({key:Ct,domEvent:De})},rt.onMouseEnter=function(De){var Ke=rt.props,Ct=Ke.eventKey,ft=Ke.onItemHover,xt=Ke.onMouseEnter;ft({key:Ct,hover:!0}),xt({key:Ct,domEvent:De})},rt.onClick=function(De){var Ke=rt.props,Ct=Ke.eventKey,ft=Ke.multiple,xt=Ke.onClick,Mt=Ke.onSelect,ct=Ke.onDeselect,Ut=Ke.isSelected,Ft={key:Ct,keyPath:[Ct],item:Object(b.a)(rt),domEvent:De};xt(Ft),ft?Ut?ct(Ft):Mt(Ft):Ut||Mt(Ft)},rt.saveNode=function(De){rt.node=De},rt}return Object(O.a)(nt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var De=this.props;De.onDestroy&&De.onDestroy(De.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var De,Ke=Object(M.a)({},this.props),Ct=h()(this.getPrefixCls(),Ke.className,(De={},Object(a.a)(De,this.getActiveClassName(),!Ke.disabled&&Ke.active),Object(a.a)(De,this.getSelectedClassName(),Ke.isSelected),Object(a.a)(De,this.getDisabledClassName(),Ke.disabled),De)),ft=Object(M.a)(Object(M.a)({},Ke.attribute),{},{title:typeof Ke.title=="string"?Ke.title:void 0,className:Ct,role:Ke.role||"menuitem","aria-disabled":Ke.disabled});Ke.role==="option"?ft=Object(M.a)(Object(M.a)({},ft),{},{role:"option","aria-selected":Ke.isSelected}):(Ke.role===null||Ke.role==="none")&&(ft.role="none");var xt={onClick:Ke.disabled?null:this.onClick,onMouseLeave:Ke.disabled?null:this.onMouseLeave,onMouseEnter:Ke.disabled?null:this.onMouseEnter},Mt=Object(M.a)({},Ke.style);Ke.mode==="inline"&&(Ke.direction==="rtl"?Mt.paddingRight=Ke.inlineIndent*Ke.level:Mt.paddingLeft=Ke.inlineIndent*Ke.level),Ce.forEach(function(Ut){return delete Ke[Ut]}),delete Ke.direction;var ct=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ct=A.createElement(this.props.itemIcon,this.props)),A.createElement("li",Object.assign({},Object(e.default)(Ke,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ft,xt,{style:Mt,ref:this.saveNode}),Ke.children,ct)}}]),nt}(A.Component);He.isMenuItem=!0,He.defaultProps={onSelect:L,onMouseEnter:L,onMouseLeave:L,manualRef:L};var Fe=Object(g.b)(function(bt,ke){var nt=bt.activeKey,rt=bt.selectedKeys,De=ke.eventKey,Ke=ke.subMenuKey;return{active:nt[Ke]===De,isSelected:rt.indexOf(De)!==-1}})(He),et=Fe,mt=function(bt){Object(y.a)(nt,bt);var ke=Object(C.a)(nt);function nt(){var rt;return Object(m.a)(this,nt),rt=ke.apply(this,arguments),rt.renderInnerMenuItem=function(De){var Ke=rt.props,Ct=Ke.renderMenuItem,ft=Ke.index;return Ct(De,ft,rt.props.subMenuKey)},rt}return Object(O.a)(nt,[{key:"render",value:function(){var De=Object(f.a)({},this.props),Ke=De.className,Ct=Ke===void 0?"":Ke,ft=De.rootPrefixCls,xt="".concat(ft,"-item-group-title"),Mt="".concat(ft,"-item-group-list"),ct=De.title,Ut=De.children;return Ce.forEach(function(Ft){return delete De[Ft]}),delete De.onClick,delete De.direction,A.createElement("li",Object.assign({},De,{className:"".concat(Ct," ").concat(ft,"-item-group")}),A.createElement("div",{className:xt,title:typeof ct=="string"?ct:void 0},ct),A.createElement("ul",{className:Mt},A.Children.map(Ut,this.renderInnerMenuItem)))}}]),nt}(A.Component);mt.isMenuItemGroup=!0,mt.defaultProps={disabled:!0};var Lt=mt,Xt=function(ke){var nt=ke.className,rt=ke.rootPrefixCls,De=ke.style;return A.createElement("li",{className:"".concat(nt," ").concat(rt,"-item-divider"),style:De})};Xt.defaultProps={disabled:!0,className:"",style:{}};var rn=Xt,wt=z.e=Ue},"1nVM":function(k,z,o){k.exports={titlesize:"titlesize___3R6Gt",wrap:"wrap___33HQq",labelWrap:"labelWrap___1iqwF",label:"label___27cm-",labelContent:"labelContent___1fVMu",flexRow:"flexRow___PEsIJ",color999:"color999___2Yr8Q",radio:"radio___OcreT",color0152d9:"color0152d9___1FV6h",popover:"popover___2xk-c",serviceSettingName:"serviceSettingName___Ld9Mm",flexJustifyCenter:"flexJustifyCenter___18x9a",flexAlignEnd:"flexAlignEnd___1C-X3",flexAlignCenter:"flexAlignCenter___2oSmu",flexColumn:"flexColumn___2ysFR",formWrap:"formWrap___EPA-v",titleWrap:"titleWrap___3_rFr",fieldWrap:"fieldWrap___2jAZP",button:"button___3XvNW",buttonFixed:"buttonFixed___2Zm2R",buttonWrap:"buttonWrap___1OYLR",width180:"width180___jK9Il",width100:"width100___3krQH",width280:"width280___2XLRF",difficultyHint:"difficultyHint___haMiD",color888:"color888___N5haY",serviceSettingWrap:"serviceSettingWrap___2mA8Y",serviceSetLeft:"serviceSetLeft___15ZiZ",serviceSetInput:"serviceSetInput___1xV8R",serviceSetMemoryInput:"serviceSetMemoryInput___1b9Wn",serviceSetTip:"serviceSetTip___3OSZX",installPackage:"installPackage___2Q149",selectSchool:"selectSchool___3jjwJ",dataPicker:"dataPicker___3FMTF",bg:"bg___SWlll",content:"content___3UkVO",head:"head___35V3S",headCount:"headCount___2pjjr",itemWrap:"itemWrap___1yg5K",imgWrap:"imgWrap___R0ss7",img:"img___VI1B8",manager:"manager___8Zuo9",itemContent:"itemContent___2pnzz",nameWrap:"nameWrap___3Ntoy",name:"name___3v0W9",actionGroup:"actionGroup___nzwV5",deleteIcon:"deleteIcon___tZStC",schoolWrap:"schoolWrap___qVkuP",school:"school___2WDSB",countWrap:"countWrap___1ZPyo",deletetitle:"deletetitle___3PnVP",yseTitle:"yseTitle___2rGJC",modal:"modal___TzuWu",colorOrange:"colorOrange___WAQOi",colorYellow:"colorYellow___giatj",graaytitle:"graaytitle___1xud8",graaymingl:"graaymingl___KdIA9",graayminglthree:"graayminglthree___1To0y",graaymingltow:"graaymingltow___2ZE_h"}},"1uat":function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("MlIO"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.Hasher,y=m.x64,C=y.Word,A=y.WordArray,g=m.algo;function e(){return C.create.apply(C,arguments)}var f=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],a=[];(function(){for(var n=0;n<80;n++)a[n]=e()})();var l=g.SHA512=b.extend({_doReset:function(){this._hash=new A.init([new C.init(1779033703,4089235720),new C.init(3144134277,2227873595),new C.init(1013904242,4271175723),new C.init(2773480762,1595750129),new C.init(1359893119,2917565137),new C.init(2600822924,725511199),new C.init(528734635,4215389547),new C.init(1541459225,327033209)])},_doProcessBlock:function(n,i){for(var r=this._hash.words,c=r[0],h=r[1],d=r[2],s=r[3],u=r[4],w=r[5],E=r[6],_=r[7],P=c.high,R=c.low,x=h.high,S=h.low,v=d.high,T=d.low,U=s.high,I=s.low,N=u.high,V=u.low,H=w.high,D=w.low,W=E.high,F=E.low,L=_.high,K=_.low,ee=P,he=R,fe=x,Ce=S,Te=v,ce=T,ye=U,Ee=I,ue=N,se=V,$=H,me=D,re=W,ae=F,we=L,le=K,te=0;te<80;te++){var Q,J,ve=a[te];if(te<16)J=ve.high=n[i+te*2]|0,Q=ve.low=n[i+te*2+1]|0;else{var _e=a[te-15],Oe=_e.high,Xe=_e.low,tt=(Oe>>>1|Xe<<31)^(Oe>>>8|Xe<<24)^Oe>>>7,lt=(Xe>>>1|Oe<<31)^(Xe>>>8|Oe<<24)^(Xe>>>7|Oe<<25),dt=a[te-2],vt=dt.high,_t=dt.low,Ye=(vt>>>19|_t<<13)^(vt<<3|_t>>>29)^vt>>>6,je=(_t>>>19|vt<<13)^(_t<<3|vt>>>29)^(_t>>>6|vt<<26),ht=a[te-7],Bt=ht.high,Et=ht.low,Pt=a[te-16],Ze=Pt.high,We=Pt.low;Q=lt+Et,J=tt+Bt+(Q>>>0<lt>>>0?1:0),Q=Q+je,J=J+Ye+(Q>>>0<je>>>0?1:0),Q=Q+We,J=J+Ze+(Q>>>0<We>>>0?1:0),ve.high=J,ve.low=Q}var Je=ue&$^~ue&re,Ae=se&me^~se&ae,Ue=ee&fe^ee&Te^fe&Te,He=he&Ce^he&ce^Ce&ce,Fe=(ee>>>28|he<<4)^(ee<<30|he>>>2)^(ee<<25|he>>>7),et=(he>>>28|ee<<4)^(he<<30|ee>>>2)^(he<<25|ee>>>7),mt=(ue>>>14|se<<18)^(ue>>>18|se<<14)^(ue<<23|se>>>9),Lt=(se>>>14|ue<<18)^(se>>>18|ue<<14)^(se<<23|ue>>>9),Xt=f[te],rn=Xt.high,wt=Xt.low,bt=le+Lt,ke=we+mt+(bt>>>0<le>>>0?1:0),bt=bt+Ae,ke=ke+Je+(bt>>>0<Ae>>>0?1:0),bt=bt+wt,ke=ke+rn+(bt>>>0<wt>>>0?1:0),bt=bt+Q,ke=ke+J+(bt>>>0<Q>>>0?1:0),nt=et+He,rt=Fe+Ue+(nt>>>0<et>>>0?1:0);we=re,le=ae,re=$,ae=me,$=ue,me=se,se=Ee+bt|0,ue=ye+ke+(se>>>0<Ee>>>0?1:0)|0,ye=Te,Ee=ce,Te=fe,ce=Ce,fe=ee,Ce=he,he=bt+nt|0,ee=ke+rt+(he>>>0<bt>>>0?1:0)|0}R=c.low=R+he,c.high=P+ee+(R>>>0<he>>>0?1:0),S=h.low=S+Ce,h.high=x+fe+(S>>>0<Ce>>>0?1:0),T=d.low=T+ce,d.high=v+Te+(T>>>0<ce>>>0?1:0),I=s.low=I+Ee,s.high=U+ye+(I>>>0<Ee>>>0?1:0),V=u.low=V+se,u.high=N+ue+(V>>>0<se>>>0?1:0),D=w.low=D+me,w.high=H+$+(D>>>0<me>>>0?1:0),F=E.low=F+ae,E.high=W+re+(F>>>0<ae>>>0?1:0),K=_.low=K+le,_.high=L+we+(K>>>0<le>>>0?1:0)},_doFinalize:function(){var n=this._data,i=n.words,r=this._nDataBytes*8,c=n.sigBytes*8;i[c>>>5]|=128<<24-c%32,i[(c+128>>>10<<5)+30]=Math.floor(r/4294967296),i[(c+128>>>10<<5)+31]=r,n.sigBytes=i.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var n=b.clone.call(this);return n._hash=this._hash.clone(),n},blockSize:1024/32});m.SHA512=b._createHelper(l),m.HmacSHA512=b._createHmacHelper(l)}(),M.SHA512})},"24hK":function(k,z,o){"use strict";o.d(z,"a",function(){return m});class M{constructor(O){this.element=O,this.next=M.Undefined,this.prev=M.Undefined}}M.Undefined=new M(void 0);class m{constructor(){this._first=M.Undefined,this._last=M.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===M.Undefined}clear(){let O=this._first;for(;O!==M.Undefined;){const b=O.next;O.prev=M.Undefined,O.next=M.Undefined,O=b}this._first=M.Undefined,this._last=M.Undefined,this._size=0}unshift(O){return this._insert(O,!1)}push(O){return this._insert(O,!0)}_insert(O,b){const y=new M(O);if(this._first===M.Undefined)this._first=y,this._last=y;else if(b){const A=this._last;this._last=y,y.prev=A,A.next=y}else{const A=this._first;this._first=y,y.next=A,A.prev=y}this._size+=1;let C=!1;return()=>{C||(C=!0,this._remove(y))}}shift(){if(this._first===M.Undefined)return;{const O=this._first.element;return this._remove(this._first),O}}pop(){if(this._last===M.Undefined)return;{const O=this._last.element;return this._remove(this._last),O}}_remove(O){if(O.prev!==M.Undefined&&O.next!==M.Undefined){const b=O.prev;b.next=O.next,O.next.prev=b}else O.prev===M.Undefined&&O.next===M.Undefined?(this._first=M.Undefined,this._last=M.Undefined):O.next===M.Undefined?(this._last=this._last.prev,this._last.next=M.Undefined):O.prev===M.Undefined&&(this._first=this._first.next,this._first.prev=M.Undefined);this._size-=1}*[Symbol.iterator](){let O=this._first;for(;O!==M.Undefined;)yield O.element,O=O.next}}},"3/fG":function(k,z,o){"use strict";o.d(z,"a",function(){return m});function M(O,b){let y;return b.length===0?y=O:y=O.replace(/\{(\d+)\}/g,function(C,A){const g=A[0];return typeof b[g]!="undefined"?b[g]:C}),y}function m(O,b,...y){return M(b,y)}},"3d99":function(k,z,o){k.exports={flex_box_center:"flex_box_center___29402",flex_space_between:"flex_space_between___1DQkL",flex_box_vertical_center:"flex_box_vertical_center___2c5rw",flex_box_center_end:"flex_box_center_end___31UwQ",flex_box_column:"flex_box_column___27HfP",dataset:"dataset___1COtX",header:"header___3oVtK",title:"title___pTdL6",dataPath:"dataPath___2IjLi",pathTitle:"pathTitle___3y3r0",btns:"btns___3HrP1",content:"content___2DtrV",customTable:"customTable____cu3-",row:"row___18XmF",empty:"empty___1WFDJ",path:"path___2fzVn",text:"text___5NWvD",actionsBtns:"actionsBtns___YB-ud",customModal:"customModal___S24dW",shareModal:"shareModal___1fTc3",fileName:"fileName___3b0gK",renameModal:"renameModal___3antI",errorDes:"errorDes___3PXc9",uploadFileModal:"uploadFileModal___3cGWq"}},"3wET":function(k,z){k.exports="data:image/png;base64,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"},"3y9D":function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.WordArray,y=O.Hasher,C=m.algo,A=[],g=C.SHA1=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,f){for(var a=this._hash.words,l=a[0],n=a[1],i=a[2],r=a[3],c=a[4],h=0;h<80;h++){if(h<16)A[h]=e[f+h]|0;else{var d=A[h-3]^A[h-8]^A[h-14]^A[h-16];A[h]=d<<1|d>>>31}var s=(l<<5|l>>>27)+c+A[h];h<20?s+=(n&i|~n&r)+1518500249:h<40?s+=(n^i^r)+1859775393:h<60?s+=(n&i|n&r|i&r)-1894007588:s+=(n^i^r)-899497514,c=r,r=i,i=n<<30|n>>>2,n=l,l=s}a[0]=a[0]+l|0,a[1]=a[1]+n|0,a[2]=a[2]+i|0,a[3]=a[3]+r|0,a[4]=a[4]+c|0},_doFinalize:function(){var e=this._data,f=e.words,a=this._nDataBytes*8,l=e.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=Math.floor(a/4294967296),f[(l+64>>>9<<4)+15]=a,e.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var e=y.clone.call(this);return e._hash=this._hash.clone(),e}});m.SHA1=y._createHelper(g),m.HmacSHA1=y._createHmacHelper(g)}(),M.SHA1})},4:function(k,z){},"498V":function(k,z,o){k.exports=o.p+"static/logo.59b28eb0.svg"},"4SAo":function(k,z,o){k.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(k,z,o){"use strict";o.d(z,"a",function(){return s});var M=o("Ty5D"),m=o("dI71"),O=o("q1tI"),b=o.n(O),y=o("YS25"),C=o("17x9"),A=o.n(C),g=o("wx14"),e=o("zLVn"),f=o("9R94"),a=function(S){Object(m.a)(v,S);function v(){for(var U,I=arguments.length,N=new Array(I),V=0;V<I;V++)N[V]=arguments[V];return U=S.call.apply(S,[this].concat(N))||this,U.history=Object(y.a)(U.props),U}var T=v.prototype;return T.render=function(){return b.a.createElement(M.c,{history:this.history,children:this.props.children})},v}(b.a.Component),l=function(S){Object(m.a)(v,S);function v(){for(var U,I=arguments.length,N=new Array(I),V=0;V<I;V++)N[V]=arguments[V];return U=S.call.apply(S,[this].concat(N))||this,U.history=Object(y.b)(U.props),U}var T=v.prototype;return T.render=function(){return b.a.createElement(M.c,{history:this.history,children:this.props.children})},v}(b.a.Component),n=function(v,T){return typeof v=="function"?v(T):v},i=function(v,T){return typeof v=="string"?Object(y.c)(v,null,null,T):v},r=function(v){return v},c=b.a.forwardRef;typeof c=="undefined"&&(c=r);function h(S){return!!(S.metaKey||S.altKey||S.ctrlKey||S.shiftKey)}var d=c(function(S,v){var T=S.innerRef,U=S.navigate,I=S.onClick,N=Object(e.a)(S,["innerRef","navigate","onClick"]),V=N.target,H=Object(g.a)({},N,{onClick:function(W){try{I&&I(W)}catch(F){throw W.preventDefault(),F}!W.defaultPrevented&&W.button===0&&(!V||V==="_self")&&!h(W)&&(W.preventDefault(),U())}});return r!==c?H.ref=v||T:H.ref=T,b.a.createElement("a",H)}),s=c(function(S,v){var T=S.component,U=T===void 0?d:T,I=S.replace,N=S.to,V=S.innerRef,H=Object(e.a)(S,["component","replace","to","innerRef"]);return b.a.createElement(M.e.Consumer,null,function(D){D||Object(f.a)(!1);var W=D.history,F=i(n(N,D.location),D.location),L=F?W.createHref(F):"",K=Object(g.a)({},H,{href:L,navigate:function(){var he=n(N,D.location),fe=I?W.replace:W.push;fe(he)}});return r!==c?K.ref=v||V:K.innerRef=V,b.a.createElement(U,K)})});if(!1)var u,w;var E=function(v){return v},_=b.a.forwardRef;typeof _=="undefined"&&(_=E);function P(){for(var S=arguments.length,v=new Array(S),T=0;T<S;T++)v[T]=arguments[T];return v.filter(function(U){return U}).join(" ")}var R=_(function(S,v){var T=S["aria-current"],U=T===void 0?"page":T,I=S.activeClassName,N=I===void 0?"active":I,V=S.activeStyle,H=S.className,D=S.exact,W=S.isActive,F=S.location,L=S.sensitive,K=S.strict,ee=S.style,he=S.to,fe=S.innerRef,Ce=Object(e.a)(S,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return b.a.createElement(M.e.Consumer,null,function(Te){Te||Object(f.a)(!1);var ce=F||Te.location,ye=i(n(he,ce),ce),Ee=ye.pathname,ue=Ee&&Ee.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),se=ue?Object(M.f)(ce.pathname,{path:ue,exact:D,sensitive:L,strict:K}):null,$=!!(W?W(se,ce):se),me=$?P(H,N):H,re=$?Object(g.a)({},ee,{},V):ee,ae=Object(g.a)({"aria-current":$&&U||null,className:me,style:re,to:ye},Ce);return E!==_?ae.ref=v||fe:ae.innerRef=fe,b.a.createElement(s,ae)})});if(!1)var x},"5D2P":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbMmTNnb3d39+k0mKkcMMZsBiC/W9IYSSH7K4C9Wuu9rjpODoyMjNxQq9VGADzuCpxT7gPP83p7e3v/TMJJdCAIgoVEdBDAzUlgBX8/ycwrfd//Pg431gFr7RPM/HbBxFLBEdGTSql3opQiHQiCoI+IXk9lrU3CzLzR9/3BVvAtHbDWPsrMH7aJTyZYInpMKfVRs/JFDlQqlduq1eoxIro2k6U2KTHzX+VyeXFPT8/PjSYucsBae4iZH24Tj1ywRHRYKfVIpANhnt+Ty0r7lbc0rhMzI2CMuRHAlwBubT+HXBZ+AbBEa/3HrFLCWruTmV/MBZ1N+TiAdyNUX2qZeYh2KaW2zThQqVTumZqaOlZgbePqynEiWquU+qFZwRjzBoBnIoAmS6WSTOhvp0PIGPMcgN2uVguSiyQfBIFPRMMJdrZqrV+bdsBa+x4zryqImAtMJHlr7RJmPgxgbhwQEb2vlFpNAwMDV3Z2dp7JUM+7EG0lE0l+dHS089y5c4dkkjqAVycmJq4ma+0yZv7YQaEIkUjyAh4EwTAR+a6GiGg5BUGwg4i2uyrlkEsi7xL3s8wz88syAm8x89M5iLmoxpIP4348bRYkolEyxowBkA25S1sLQJbyHhfhUCaWvMT9+fPnx5h5cQrMuugRceAEgDsdlKfTVph2rwMgC4mk37gWSz5L3DcZ+1EckAw0L44FM4/4vq+aZfr7+zu6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"5VLF":function(k,z,o){"use strict";var M,m;function O(b,y,C){var A=function(g,e){return b.js_beautify(g,e)};return A.js=b.js_beautify,A.css=y.css_beautify,A.html=C.html_beautify,A.js_beautify=b.js_beautify,A.css_beautify=y.css_beautify,A.html_beautify=C.html_beautify,A}!(M=[o("6UM0"),o("TXwP"),o("psGv")],m=function(b,y,C){return O(b,y,C)}.apply(z,M),m!==void 0&&(k.exports=m))},"5Y4S":function(k,z,o){"use strict";o.d(z,"a",function(){return O});var M=o("MNsG");const m=M.b.performance&&typeof M.b.performance.now=="function";class O{constructor(b){this._highResolution=m&&b,this._startTime=this._now(),this._stopTime=-1}static create(b=!0){return new O(b)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?M.b.performance.now():Date.now()}}},"5hvy":function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("MlIO"))})(this,function(M){return function(m){var O=M,b=O.lib,y=b.WordArray,C=b.Hasher,A=O.x64,g=A.Word,e=O.algo,f=[],a=[],l=[];(function(){for(var r=1,c=0,h=0;h<24;h++){f[r+5*c]=(h+1)*(h+2)/2%64;var d=c%5,s=(2*r+3*c)%5;r=d,c=s}for(var r=0;r<5;r++)for(var c=0;c<5;c++)a[r+5*c]=c+(2*r+3*c)%5*5;for(var u=1,w=0;w<24;w++){for(var E=0,_=0,P=0;P<7;P++){if(u&1){var R=(1<<P)-1;R<32?_^=1<<R:E^=1<<R-32}u&128?u=u<<1^113:u<<=1}l[w]=g.create(E,_)}})();var n=[];(function(){for(var r=0;r<25;r++)n[r]=g.create()})();var i=e.SHA3=C.extend({cfg:C.cfg.extend({outputLength:512}),_doReset:function(){for(var r=this._state=[],c=0;c<25;c++)r[c]=new g.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(r,c){for(var h=this._state,d=this.blockSize/2,s=0;s<d;s++){var u=r[c+2*s],w=r[c+2*s+1];u=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var E=h[s];E.high^=w,E.low^=u}for(var _=0;_<24;_++){for(var P=0;P<5;P++){for(var R=0,x=0,S=0;S<5;S++){var E=h[P+5*S];R^=E.high,x^=E.low}var v=n[P];v.high=R,v.low=x}for(var P=0;P<5;P++)for(var T=n[(P+4)%5],U=n[(P+1)%5],I=U.high,N=U.low,R=T.high^(I<<1|N>>>31),x=T.low^(N<<1|I>>>31),S=0;S<5;S++){var E=h[P+5*S];E.high^=R,E.low^=x}for(var V=1;V<25;V++){var R,x,E=h[V],H=E.high,D=E.low,W=f[V];W<32?(R=H<<W|D>>>32-W,x=D<<W|H>>>32-W):(R=D<<W-32|H>>>64-W,x=H<<W-32|D>>>64-W);var F=n[a[V]];F.high=R,F.low=x}var L=n[0],K=h[0];L.high=K.high,L.low=K.low;for(var P=0;P<5;P++)for(var S=0;S<5;S++){var V=P+5*S,E=h[V],ee=n[V],he=n[(P+1)%5+5*S],fe=n[(P+2)%5+5*S];E.high=ee.high^~he.high&fe.high,E.low=ee.low^~he.low&fe.low}var E=h[0],Ce=l[_];E.high^=Ce.high,E.low^=Ce.low}},_doFinalize:function(){var r=this._data,c=r.words,h=this._nDataBytes*8,d=r.sigBytes*8,s=this.blockSize*32;c[d>>>5]|=1<<24-d%32,c[(m.ceil((d+1)/s)*s>>>5)-1]|=128,r.sigBytes=c.length*4,this._process();for(var u=this._state,w=this.cfg.outputLength/8,E=w/8,_=[],P=0;P<E;P++){var R=u[P],x=R.high,S=R.low;x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,_.push(S),_.push(x)}return new y.init(_,w)},clone:function(){for(var r=C.clone.call(this),c=r._state=this._state.slice(0),h=0;h<25;h++)c[h]=c[h].clone();return r}});O.SHA3=C._createHelper(i),O.HmacSHA3=C._createHmacHelper(i)}(Math),M.SHA3})},"6+eU":function(k,z,o){"use strict";o.d(z,"a",function(){return _});var M=o("wx14"),m=o("rePB"),O=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),C=o("Ji7U"),A=o("LK+K"),g=o("q1tI"),e=o.n(g),f=o("TSYQ"),a=o.n(f),l=function(R){var x,S="".concat(R.rootPrefixCls,"-item"),v=a()(S,"".concat(S,"-").concat(R.page),(x={},Object(m.a)(x,"".concat(S,"-active"),R.active),Object(m.a)(x,R.className,!!R.className),Object(m.a)(x,"".concat(S,"-disabled"),!R.page),x)),T=function(){R.onClick(R.page)},U=function(N){R.onKeyPress(N,R.onClick,R.page)};return e.a.createElement("li",{title:R.showTitle?R.page:null,className:v,onClick:T,onKeyPress:U,tabIndex:"0"},R.itemRender(R.page,"page",e.a.createElement("a",{rel:"nofollow"},R.page)))},n=l,i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},r=function(P){Object(C.a)(x,P);var R=Object(A.a)(x);function x(){var S;Object(b.a)(this,x);for(var v=arguments.length,T=new Array(v),U=0;U<v;U++)T[U]=arguments[U];return S=R.call.apply(R,[this].concat(T)),S.state={goInputText:""},S.buildOptionText=function(I){return"".concat(I," ").concat(S.props.locale.items_per_page)},S.changeSize=function(I){S.props.changeSize(Number(I))},S.handleChange=function(I){S.setState({goInputText:I.target.value})},S.handleBlur=function(I){var N=S.props,V=N.goButton,H=N.quickGo,D=N.rootPrefixCls,W=S.state.goInputText;if(V||W==="")return;if(I.relatedTarget&&(I.relatedTarget.className.indexOf("".concat(D,"-prev"))>=0||I.relatedTarget.className.indexOf("".concat(D,"-next"))>=0))return;S.setState({goInputText:""}),H(S.getValidValue())},S.go=function(I){var N=S.state.goInputText;if(N==="")return;(I.keyCode===i.ENTER||I.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(y.a)(x,[{key:"getValidValue",value:function(){var v=this.state,T=v.goInputText,U=v.current;return!T||isNaN(T)?U:Number(T)}},{key:"getPageSizeOptions",value:function(){var v=this.props,T=v.pageSize,U=v.pageSizeOptions;return U.some(function(I){return I.toString()===T.toString()})?U:U.concat([T.toString()]).sort(function(I,N){var V=isNaN(Number(I))?0:Number(I),H=isNaN(Number(N))?0:Number(N);return V-H})}},{key:"render",value:function(){var v=this,T=this.props,U=T.pageSize,I=T.locale,N=T.rootPrefixCls,V=T.changeSize,H=T.quickGo,D=T.goButton,W=T.selectComponentClass,F=T.buildOptionText,L=T.selectPrefixCls,K=T.disabled,ee=this.state.goInputText,he="".concat(N,"-options"),fe=W,Ce=null,Te=null,ce=null;if(!V&&!H)return null;var ye=this.getPageSizeOptions();if(V&&fe){var Ee=ye.map(function(ue,se){return e.a.createElement(fe.Option,{key:se,value:ue.toString()},(F||v.buildOptionText)(ue))});Ce=e.a.createElement(fe,{disabled:K,prefixCls:L,showSearch:!1,className:"".concat(he,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(U||ye[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},Ee)}return H&&(D&&(ce=typeof D=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(he,"-quick-jumper-button")},I.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},D)),Te=e.a.createElement("div",{className:"".concat(he,"-quick-jumper")},I.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),I.page,ce)),e.a.createElement("li",{className:"".concat(he)},Ce,Te)}}]),x}(e.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=r,h=o("N2Kk");function d(){}function s(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function u(P,R,x){return x}function w(P,R,x){var S=typeof P=="undefined"?R.pageSize:P;return Math.floor((x.total-1)/S)+1}var E=function(P){Object(C.a)(x,P);var R=Object(A.a)(x);function x(S){var v;Object(b.a)(this,x),v=R.call(this,S),v.getJumpPrevPage=function(){return Math.max(1,v.state.current-(v.props.showLessItems?3:5))},v.getJumpNextPage=function(){return Math.min(w(void 0,v.state,v.props),v.state.current+(v.props.showLessItems?3:5))},v.getItemIcon=function(V,H){var D=v.props.prefixCls,W=V||e.a.createElement("button",{type:"button","aria-label":H,className:"".concat(D,"-item-link")});return typeof V=="function"&&(W=e.a.createElement(V,Object(O.a)({},v.props))),W},v.savePaginationNode=function(V){v.paginationNode=V},v.isValid=function(V){return s(V)&&V!==v.state.current},v.shouldDisplayQuickJumper=function(){var V=v.props,H=V.showQuickJumper,D=V.pageSize,W=V.total;return W<=D?!1:H},v.handleKeyDown=function(V){(V.keyCode===i.ARROW_UP||V.keyCode===i.ARROW_DOWN)&&V.preventDefault()},v.handleKeyUp=function(V){var H=v.getValidValue(V),D=v.state.currentInputValue;H!==D&&v.setState({currentInputValue:H}),V.keyCode===i.ENTER?v.handleChange(H):V.keyCode===i.ARROW_UP?v.handleChange(H-1):V.keyCode===i.ARROW_DOWN&&v.handleChange(H+1)},v.changePageSize=function(V){var H=v.state.current,D=w(V,v.state,v.props);H=H>D?D:H,D===0&&(H=v.state.current),typeof V=="number"&&("pageSize"in v.props||v.setState({pageSize:V}),"current"in v.props||v.setState({current:H,currentInputValue:H})),v.props.onShowSizeChange(H,V),"onChange"in v.props&&v.props.onChange&&v.props.onChange(H,V)},v.handleChange=function(V){var H=v.props.disabled,D=V;if(v.isValid(D)&&!H){var W=w(void 0,v.state,v.props);D>W?D=W:D<1&&(D=1),"current"in v.props||v.setState({current:D,currentInputValue:D});var F=v.state.pageSize;return v.props.onChange(D,F),D}return v.state.current},v.prev=function(){v.hasPrev()&&v.handleChange(v.state.current-1)},v.next=function(){v.hasNext()&&v.handleChange(v.state.current+1)},v.jumpPrev=function(){v.handleChange(v.getJumpPrevPage())},v.jumpNext=function(){v.handleChange(v.getJumpNextPage())},v.hasPrev=function(){return v.state.current>1},v.hasNext=function(){return v.state.current<w(void 0,v.state,v.props)},v.runIfEnter=function(V,H){if(V.key==="Enter"||V.charCode===13){for(var D=arguments.length,W=new Array(D>2?D-2:0),F=2;F<D;F++)W[F-2]=arguments[F];H.apply(void 0,W)}},v.runIfEnterPrev=function(V){v.runIfEnter(V,v.prev)},v.runIfEnterNext=function(V){v.runIfEnter(V,v.next)},v.runIfEnterJumpPrev=function(V){v.runIfEnter(V,v.jumpPrev)},v.runIfEnterJumpNext=function(V){v.runIfEnter(V,v.jumpNext)},v.handleGoTO=function(V){(V.keyCode===i.ENTER||V.type==="click")&&v.handleChange(v.state.currentInputValue)};var T=S.onChange!==d,U="current"in S;U&&!T&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var I=S.defaultCurrent;"current"in S&&(I=S.current);var N=S.defaultPageSize;return"pageSize"in S&&(N=S.pageSize),I=Math.min(I,w(N,void 0,S)),v.state={current:I,currentInputValue:I,pageSize:N},v}return Object(y.a)(x,[{key:"componentDidUpdate",value:function(v,T){var U=this.props.prefixCls;if(T.current!==this.state.current&&this.paginationNode){var I=this.paginationNode.querySelector(".".concat(U,"-item-").concat(T.current));I&&document.activeElement===I&&I.blur()}}},{key:"getValidValue",value:function(v){var T=v.target.value,U=w(void 0,this.state,this.props),I=this.state.currentInputValue,N;return T===""?N=T:isNaN(Number(T))?N=I:T>=U?N=U:N=Number(T),N}},{key:"getShowSizeChanger",value:function(){var v=this.props,T=v.showSizeChanger,U=v.total,I=v.totalBoundaryShowSizeChanger;return typeof T!="undefined"?T:U>I}},{key:"renderPrev",value:function(v){var T=this.props,U=T.prevIcon,I=T.itemRender,N=I(v,"prev",this.getItemIcon(U,"prev page")),V=!this.hasPrev();return Object(g.isValidElement)(N)?Object(g.cloneElement)(N,{disabled:V}):N}},{key:"renderNext",value:function(v){var T=this.props,U=T.nextIcon,I=T.itemRender,N=I(v,"next",this.getItemIcon(U,"next page")),V=!this.hasNext();return Object(g.isValidElement)(N)?Object(g.cloneElement)(N,{disabled:V}):N}},{key:"render",value:function(){var v=this,T=this.props,U=T.prefixCls,I=T.className,N=T.style,V=T.disabled,H=T.hideOnSinglePage,D=T.total,W=T.locale,F=T.showQuickJumper,L=T.showLessItems,K=T.showTitle,ee=T.showTotal,he=T.simple,fe=T.itemRender,Ce=T.showPrevNextJumpers,Te=T.jumpPrevIcon,ce=T.jumpNextIcon,ye=T.selectComponentClass,Ee=T.selectPrefixCls,ue=T.pageSizeOptions,se=this.state,$=se.current,me=se.pageSize,re=se.currentInputValue;if(H===!0&&D<=me)return null;var ae=w(void 0,this.state,this.props),we=[],le=null,te=null,Q=null,J=null,ve=null,_e=F&&F.goButton,Oe=L?1:2,Xe=$-1>0?$-1:0,tt=$+1<ae?$+1:ae,lt=Object.keys(this.props).reduce(function(Ae,Ue){return(Ue.substr(0,5)==="data-"||Ue.substr(0,5)==="aria-"||Ue==="role")&&(Ae[Ue]=v.props[Ue]),Ae},{});if(he)return _e&&(typeof _e=="boolean"?ve=e.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},W.jump_to_confirm):ve=e.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_e),ve=e.a.createElement("li",{title:K?"".concat(W.jump_to).concat($,"/").concat(ae):null,className:"".concat(U,"-simple-pager")},ve)),e.a.createElement("ul",Object(M.a)({className:a()(U,"".concat(U,"-simple"),Object(m.a)({},"".concat(U,"-disabled"),V),I),style:N,ref:this.savePaginationNode},lt),e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(U,"-prev"),Object(m.a)({},"".concat(U,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Xe)),e.a.createElement("li",{title:K?"".concat($,"/").concat(ae):null,className:"".concat(U,"-simple-pager")},e.a.createElement("input",{type:"text",value:re,disabled:V,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),e.a.createElement("span",{className:"".concat(U,"-slash")},"/"),ae),e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(U,"-next"),Object(m.a)({},"".concat(U,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(tt)),ve);if(ae<=3+Oe*2){var dt={locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:K,itemRender:fe};ae||we.push(e.a.createElement(n,Object(M.a)({},dt,{key:"noPager",page:ae,className:"".concat(U,"-disabled")})));for(var vt=1;vt<=ae;vt+=1){var _t=$===vt;we.push(e.a.createElement(n,Object(M.a)({},dt,{key:vt,page:vt,active:_t})))}}else{var Ye=L?W.prev_3:W.prev_5,je=L?W.next_3:W.next_5;Ce&&(le=e.a.createElement("li",{title:K?Ye:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(U,"-jump-prev"),Object(m.a)({},"".concat(U,"-jump-prev-custom-icon"),!!Te))},fe(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Te,"prev page"))),te=e.a.createElement("li",{title:K?je:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(U,"-jump-next"),Object(m.a)({},"".concat(U,"-jump-next-custom-icon"),!!ce))},fe(this.getJumpNextPage(),"jump-next",this.getItemIcon(ce,"next page")))),J=e.a.createElement(n,{locale:W,last:!0,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ae,page:ae,active:!1,showTitle:K,itemRender:fe}),Q=e.a.createElement(n,{locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:K,itemRender:fe});var ht=Math.max(1,$-Oe),Bt=Math.min($+Oe,ae);$-1<=Oe&&(Bt=1+Oe*2),ae-$<=Oe&&(ht=ae-Oe*2);for(var Et=ht;Et<=Bt;Et+=1){var Pt=$===Et;we.push(e.a.createElement(n,{locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Et,page:Et,active:Pt,showTitle:K,itemRender:fe}))}$-1>=Oe*2&&$!==1+2&&(we[0]=Object(g.cloneElement)(we[0],{className:"".concat(U,"-item-after-jump-prev")}),we.unshift(le)),ae-$>=Oe*2&&$!==ae-2&&(we[we.length-1]=Object(g.cloneElement)(we[we.length-1],{className:"".concat(U,"-item-before-jump-next")}),we.push(te)),ht!==1&&we.unshift(Q),Bt!==ae&&we.push(J)}var Ze=null;ee&&(Ze=e.a.createElement("li",{className:"".concat(U,"-total-text")},ee(D,[D===0?0:($-1)*me+1,$*me>D?D:$*me])));var We=!this.hasPrev()||!ae,Je=!this.hasNext()||!ae;return e.a.createElement("ul",Object(M.a)({className:a()(U,I,Object(m.a)({},"".concat(U,"-disabled"),V)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},lt),Ze,e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:We?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(U,"-prev"),Object(m.a)({},"".concat(U,"-disabled"),We)),"aria-disabled":We},this.renderPrev(Xe)),we,e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:Je?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(U,"-next"),Object(m.a)({},"".concat(U,"-disabled"),Je)),"aria-disabled":Je},this.renderNext(tt)),e.a.createElement(c,{disabled:V,locale:W,rootPrefixCls:U,selectComponentClass:ye,selectPrefixCls:Ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$,pageSize:me,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(v,T){var U={};if("current"in v&&(U.current=v.current,v.current!==T.current&&(U.currentInputValue=U.current)),"pageSize"in v&&v.pageSize!==T.pageSize){var I=T.current,N=w(v.pageSize,T,v);I=I>N?N:I,"current"in v||(U.current=I,U.currentInputValue=I),U.pageSize=v.pageSize}return U}}]),x}(e.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:d,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:d,locale:h.a,style:{},itemRender:u,totalBoundaryShowSizeChanger:50};var _=E},"6Fuo":function(k,z,o){k.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6RRn":function(k,z,o){"use strict";var M=o("wCXF"),m=o("n6Qo");o.d(z,"b",function(){return m.a});var O=o("IBYe"),b=o("6eGT"),y=o("hW8S");o.d(z,"a",function(){return y.a}),z.c=M.b},"6UM0":function(k,z,o){var M,m;(function(){var O;(function(){"use strict";var y=[function(e,f,a){var l=a(1).Beautifier,n=a(5).Options;function i(r,c){var h=new l(r,c);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new n}},function(e,f,a){var l=a(2).Output,n=a(3).Token,i=a(4),r=a(5).Options,c=a(7).Tokenizer,h=a(7).line_starters,d=a(7).positionable_operators,s=a(7).TOKEN;function u(L,K){return K.indexOf(L)!==-1}function w(L){return L.replace(/^\s+/g,"")}function E(L){for(var K={},ee=0;ee<L.length;ee++)K[L[ee].replace(/-/g,"_")]=L[ee];return K}function _(L,K){return L&&L.type===s.RESERVED&&L.text===K}function P(L,K){return L&&L.type===s.RESERVED&&u(L.text,K)}var R=["case","return","do","if","throw","else","await","break","continue","async"],x=["before-newline","after-newline","preserve-newline"],S=E(x),v=[S.before_newline,S.preserve_newline],T={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function U(L,K){if(K.multiline_frame||K.mode===T.ForInitializer||K.mode===T.Conditional)return;L.remove_indent(K.start_line_index)}function I(L){L=L.replace(i.allLineBreaks,`
`);for(var K=[],ee=L.indexOf(`
`);ee!==-1;)K.push(L.substring(0,ee)),L=L.substring(ee+1),ee=L.indexOf(`
`);return L.length&&K.push(L),K}function N(L){return L===T.ArrayLiteral}function V(L){return u(L,[T.Expression,T.ForInitializer,T.Conditional])}function H(L,K){for(var ee=0;ee<L.length;ee++){var he=L[ee].trim();if(he.charAt(0)!==K)return!1}return!0}function D(L,K){for(var ee=0,he=L.length,fe;ee<he;ee++)if(fe=L[ee],fe&&fe.indexOf(K)!==0)return!1;return!0}function W(L,K){K=K||{},this._source_text=L||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(K)}W.prototype.create_flags=function(L,K){var ee=0;L&&(ee=L.indentation_level,!this._output.just_added_newline()&&L.line_indent_level>ee&&(ee=L.line_indent_level));var he={mode:K,parent:L,last_token:L?L.last_token:new n(s.START_BLOCK,""),last_word:L?L.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:ee,alignment:0,line_indent_level:L?L.line_indent_level:ee,start_line_index:this._output.get_line_number(),ternary_depth:0};return he},W.prototype._reset=function(L){var K=L.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new l(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(T.BlockStatement);var ee=new c(L,this._options);return this._tokens=ee.tokenize(),L},W.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var L,K=this._reset(this._source_text),ee=this._options.eol;this._options.eol==="auto"&&(ee=`
`,K&&i.lineBreak.test(K||"")&&(ee=K.match(i.lineBreak)[0]));for(var he=this._tokens.next();he;)this.handle_token(he),this._last_last_text=this._flags.last_token.text,this._flags.last_token=he,he=this._tokens.next();return L=this._output.get_code(ee),L},W.prototype.handle_token=function(L,K){L.type===s.START_EXPR?this.handle_start_expr(L):L.type===s.END_EXPR?this.handle_end_expr(L):L.type===s.START_BLOCK?this.handle_start_block(L):L.type===s.END_BLOCK?this.handle_end_block(L):L.type===s.WORD?this.handle_word(L):L.type===s.RESERVED?this.handle_word(L):L.type===s.SEMICOLON?this.handle_semicolon(L):L.type===s.STRING?this.handle_string(L):L.type===s.EQUALS?this.handle_equals(L):L.type===s.OPERATOR?this.handle_operator(L):L.type===s.COMMA?this.handle_comma(L):L.type===s.BLOCK_COMMENT?this.handle_block_comment(L,K):L.type===s.COMMENT?this.handle_comment(L,K):L.type===s.DOT?this.handle_dot(L):L.type===s.EOF?this.handle_eof(L):L.type===s.UNKNOWN?this.handle_unknown(L,K):this.handle_unknown(L,K)},W.prototype.handle_whitespace_and_comments=function(L,K){var ee=L.newlines,he=this._options.keep_array_indentation&&N(this._flags.mode);if(L.comments_before)for(var fe=L.comments_before.next();fe;)this.handle_whitespace_and_comments(fe,K),this.handle_token(fe,K),fe=L.comments_before.next();if(he)for(var Ce=0;Ce<ee;Ce+=1)this.print_newline(Ce>0,K);else if(this._options.max_preserve_newlines&&ee>this._options.max_preserve_newlines&&(ee=this._options.max_preserve_newlines),this._options.preserve_newlines&&ee>1){this.print_newline(!1,K);for(var Te=1;Te<ee;Te+=1)this.print_newline(!0,K)}};var F=["async","break","continue","return","throw","yield"];W.prototype.allow_wrap_or_preserved_newline=function(L,K){if(K=K===void 0?!1:K,this._output.just_added_newline())return;var ee=this._options.preserve_newlines&&L.newlines||K,he=u(this._flags.last_token.text,d)||u(L.text,d);if(he){var fe=u(this._flags.last_token.text,d)&&u(this._options.operator_position,v)||u(L.text,d);ee=ee&&fe}if(ee)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(P(this._flags.last_token,F))return;this._output.set_wrap_point()}},W.prototype.print_newline=function(L,K){if(!K&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var ee=this._tokens.peek();this._flags.mode===T.Statement&&!(this._flags.if_block&&_(ee,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(L)&&(this._flags.multiline_frame=!0)},W.prototype.print_token_line_indentation=function(L){this._output.just_added_newline()&&(this._options.keep_array_indentation&&L.newlines&&(L.text==="["||N(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(L.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},W.prototype.print_token=function(L){if(this._output.raw){this._output.add_raw_token(L);return}if(this._options.comma_first&&L.previous&&L.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var K=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(K),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(L),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(L),this._output.non_breaking_space=!0,this._output.add_token(L.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},W.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},W.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},W.prototype.set_mode=function(L){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,L),this._flags=this.create_flags(this._previous_flags,L),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===T.Statement&&U(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===T.ObjectLiteral&&this._flags.mode===T.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},W.prototype.start_of_statement=function(L){var K=!1;return K=K||P(this._flags.last_token,["var","let","const"])&&L.type===s.WORD,K=K||_(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===T.ObjectLiteral&&this._flags.mode===T.Statement)&&P(this._flags.last_token,F)&&!L.newlines,K=K||_(this._flags.last_token,"else")&&!(_(L,"if")&&!L.comments_before),K=K||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===T.ForInitializer||this._previous_flags.mode===T.Conditional),K=K||this._flags.last_token.type===s.WORD&&this._flags.mode===T.BlockStatement&&!this._flags.in_case&&!(L.text==="--"||L.text==="++")&&this._last_last_text!=="function"&&L.type!==s.WORD&&L.type!==s.RESERVED,K=K||this._flags.mode===T.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),K?(this.set_mode(T.Statement),this.indent(),this.handle_whitespace_and_comments(L,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(L,P(L,["do","for","if","while"])),!0):!1},W.prototype.handle_start_expr=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L);var K=T.Expression;if(L.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,h)&&(this._output.space_before_token=!0),this.print_token(L),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=T.ArrayLiteral,N(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())),u(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,K=T.ForInitializer):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=T.Conditional):u(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&L.whitespace_before===""?this._output.space_before_token=!1:(u(this._flags.last_token.text,h)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(L);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var ee=this._tokens.peek(-3);if(this._options.space_after_named_function&&ee){var he=this._tokens.peek(-4);P(ee,["async","function"])||ee.text==="*"&&P(he,["async","function"])?this._output.space_before_token=!0:this._flags.mode===T.ObjectLiteral?(ee.text==="{"||ee.text===","||ee.text==="*"&&(he.text==="{"||he.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(L);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&u(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===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(L,L.newlines),this.print_token(L),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},W.prototype.handle_end_expr=function(L){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(L),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(L,L.text==="]"&&N(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.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(L),this.restore_mode(),U(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===T.Conditional&&(this._previous_flags.mode=T.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},W.prototype.handle_start_block=function(L){this.handle_whitespace_and_comments(L);var K=this._tokens.peek(),ee=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(T.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(T.BlockStatement):ee&&(u(ee.text,[":",","])&&u(K.type,[s.STRING,s.WORD,s.RESERVED])||u(K.text,["get","set","..."])&&u(ee.type,[s.WORD,s.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(ee.text,[":",","])?this.set_mode(T.BlockStatement):this.set_mode(T.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(T.BlockStatement):u(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||P(this._flags.last_token,["return","throw","import","default"])?this.set_mode(T.ObjectLiteral):this.set_mode(T.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var he=!K.comments_before&&K.text==="}",fe=he&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var Ce=0,Te=null;this._flags.inline_frame=!0;do if(Ce+=1,Te=this._tokens.peek(Ce-1),Te.newlines){this._flags.inline_frame=!1;break}while(Te.type!==s.EOF&&!(Te.type===s.END_BLOCK&&Te.opened===L))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&L.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(fe||this._flags.last_token.type===s.EQUALS||P(this._flags.last_token,R)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(N(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(L),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(this._flags.last_token.type===s.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(L),this.indent(),!he&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},W.prototype.handle_end_block=function(L){for(this.handle_whitespace_and_comments(L);this._flags.mode===T.Statement;)this.restore_mode();var K=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(N(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(L)},W.prototype.handle_word=function(L){if(L.type===s.RESERVED){if(u(L.text,["set","get"])&&this._flags.mode!==T.ObjectLiteral)L.type=s.WORD;else if(L.text==="import"&&u(this._tokens.peek().text,["(","."]))L.type=s.WORD;else if(u(L.text,["as","from"])&&!this._flags.import_block)L.type=s.WORD;else if(this._flags.mode===T.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(L.type=s.WORD)}}if(this.start_of_statement(L)?P(this._flags.last_token,["var","let","const"])&&L.type===s.WORD&&(this._flags.declaration_statement=!0):L.newlines&&!V(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!P(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(L),this.print_newline()):this.handle_whitespace_and_comments(L),this._flags.do_block&&!this._flags.do_while)if(_(L,"while")){this._output.space_before_token=!0,this.print_token(L),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&&_(L,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===T.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&P(L,["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(L),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(L)),_(L,"function")){(u(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(u(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!L.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?P(this._flags.last_token,["get","set","new","export"])||P(this._flags.last_token,F)?this._output.space_before_token=!0:_(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===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(V(this._flags.mode)||N(this._flags.mode))||this.print_newline(),this.print_token(L),this._flags.last_word=L.text;return}var ee="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?ee="SPACE":P(L,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&L.newlines?ee="NEWLINE":(ee="SPACE",this._output.space_before_token=!0):ee="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===T.BlockStatement?ee="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&V(this._flags.mode)?ee="SPACE":this._flags.last_token.type===s.STRING?ee="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&u(this._last_last_text,["{",","]))?ee="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?ee="SPACE":ee="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,ee="NEWLINE"),P(L,h)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ee="SPACE":ee="NEWLINE"),P(L,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===T.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&L.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var he=this._output.current_line;he.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ee==="NEWLINE"?P(this._flags.last_token,R)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&P(L,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!P(L,["var","let","const"]))&&this._flags.last_token.text!==":"&&(_(L,"if")&&_(L.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(L,h)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&N(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ee==="SPACE"&&(this._output.space_before_token=!0);L.previous&&(L.previous.type===s.WORD||L.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(L),this._flags.last_word=L.text,L.type===s.RESERVED&&(L.text==="do"?this._flags.do_block=!0:L.text==="if"?this._flags.if_block=!0:L.text==="import"?this._flags.import_block=!0:this._flags.import_block&&_(L,"from")&&(this._flags.import_block=!1))},W.prototype.handle_semicolon=function(L){this.start_of_statement(L)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(L);for(var K=this._tokens.peek();this._flags.mode===T.Statement&&!(this._flags.if_block&&_(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(L)},W.prototype.handle_string=function(L){L.text.startsWith("`")&&L.newlines===0&&L.whitespace_before===""&&(L.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(L)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(L),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(L):L.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(L.previous.text==="]"||L.previous.text===")")&&L.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(L)},W.prototype.handle_equals=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(L),this._output.space_before_token=!0},W.prototype.handle_comma=function(L){this.handle_whitespace_and_comments(L,!0),this.print_token(L),this._output.space_before_token=!0,this._flags.declaration_statement?(V(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(L)):this._flags.mode===T.ObjectLiteral||this._flags.mode===T.Statement&&this._flags.parent.mode===T.ObjectLiteral?(this._flags.mode===T.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(L)},W.prototype.handle_operator=function(L){var K=L.text==="*"&&(P(this._flags.last_token,["function","yield"])||u(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),ee=u(L.text,["-","+"])&&(u(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||u(this._flags.last_token.text,h)||this._flags.last_token.text===",");if(!this.start_of_statement(L)){var he=!K;this.handle_whitespace_and_comments(L,he)}if(L.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(L);return}if(L.text==="::"){this.print_token(L);return}if(this._flags.last_token.type===s.OPERATOR&&u(this._options.operator_position,v)&&this.allow_wrap_or_preserved_newline(L),L.text===":"&&this._flags.in_case){this.print_token(L),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.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 fe=!0,Ce=!0,Te=!1;if(L.text===":"?this._flags.ternary_depth===0?fe=!1:(this._flags.ternary_depth-=1,Te=!0):L.text==="?"&&(this._flags.ternary_depth+=1),!ee&&!K&&this._options.preserve_newlines&&u(L.text,d)){var ce=L.text===":",ye=ce&&Te,Ee=ce&&!Te;switch(this._options.operator_position){case S.before_newline:this._output.space_before_token=!Ee,this.print_token(L),(!ce||ye)&&this.allow_wrap_or_preserved_newline(L),this._output.space_before_token=!0;return;case S.after_newline:this._output.space_before_token=!0,!ce||ye?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(L):this._output.space_before_token=!1,this.print_token(L),this._output.space_before_token=!0;return;case S.preserve_newline:Ee||this.allow_wrap_or_preserved_newline(L),fe=!(this._output.just_added_newline()||Ee),this._output.space_before_token=fe,this.print_token(L),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(L),fe=!1;var ue=this._tokens.peek();Ce=ue&&u(ue.type,[s.WORD,s.RESERVED])}else if(L.text==="...")this.allow_wrap_or_preserved_newline(L),fe=this._flags.last_token.type===s.START_BLOCK,Ce=!1;else if(u(L.text,["--","++","!","~"])||ee){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(L),fe=!1,Ce=!1,L.newlines&&(L.text==="--"||L.text==="++"||L.text==="~")){var se=P(this._flags.last_token,R)&&L.newlines;se&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(se,!0)}this._flags.last_token.text===";"&&V(this._flags.mode)&&(fe=!0),this._flags.last_token.type===s.RESERVED?fe=!0:this._flags.last_token.type===s.END_EXPR?fe=!(this._flags.last_token.text==="]"&&(L.text==="--"||L.text==="++")):this._flags.last_token.type===s.OPERATOR&&(fe=u(L.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(L.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(Ce=!0)),(this._flags.mode===T.BlockStatement&&!this._flags.inline_frame||this._flags.mode===T.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||fe,this.print_token(L),this._output.space_before_token=Ce},W.prototype.handle_block_comment=function(L,K){if(this._output.raw){this._output.add_raw_token(L),L.directives&&L.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(L.directives){this.print_newline(!1,K),this.print_token(L),L.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i.newline.test(L.text)&&!L.newlines){this._output.space_before_token=!0,this.print_token(L),this._output.space_before_token=!0;return}else this.print_block_commment(L,K)},W.prototype.print_block_commment=function(L,K){var ee=I(L.text),he,fe=!1,Ce=!1,Te=L.whitespace_before,ce=Te.length;if(this.print_newline(!1,K),this.print_token_line_indentation(L),this._output.add_token(ee[0]),this.print_newline(!1,K),ee.length>1){for(ee=ee.slice(1),fe=H(ee,"*"),Ce=D(ee,Te),fe&&(this._flags.alignment=1),he=0;he<ee.length;he++)fe?(this.print_token_line_indentation(L),this._output.add_token(w(ee[he]))):Ce&&ee[he]?(this.print_token_line_indentation(L),this._output.add_token(ee[he].substring(ce))):(this._output.current_line.set_indent(-1),this._output.add_token(ee[he])),this.print_newline(!1,K);this._flags.alignment=0}},W.prototype.handle_comment=function(L,K){L.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(L),this.print_newline(!1,K)},W.prototype.handle_dot=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),P(this._flags.last_token,R)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(L,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(L)},W.prototype.handle_unknown=function(L,K){this.print_token(L),L.text[L.text.length-1]===`
`&&this.print_newline(!1,K)},W.prototype.handle_eof=function(L){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(L)},e.exports.Beautifier=W},function(e){function f(n){this.__parent=n,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}f.prototype.clone_empty=function(){var n=new f(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},f.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},f.prototype.has_match=function(n){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(n))return!0;return!1},f.prototype.set_indent=function(n,i){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},f.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)},f.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},f.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var n=this.__parent.current_line;return n.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),n.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),n.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,n.__items[0]===" "&&(n.__items.splice(0,1),n.__character_count-=1),!0}return!1},f.prototype.is_empty=function(){return this.__items.length===0},f.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},f.prototype.push=function(n){this.__items.push(n);var i=n.lastIndexOf(`
`);i!==-1?this.__character_count=n.length-i:this.__character_count+=n.length},f.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},f.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},f.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},f.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},f.prototype.toString=function(){var n="";return this.is_empty()?this.__parent.indent_empty_lines&&(n=this.__parent.get_indent_string(this.__indent_count)):(n=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),n+=this.__items.join("")),n};function a(n,i){this.__cache=[""],this.__indent_size=n.indent_size,this.__indent_string=n.indent_char,n.indent_with_tabs||(this.__indent_string=new Array(n.indent_size+1).join(n.indent_char)),i=i||"",n.indent_level>0&&(i=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}a.prototype.get_indent_size=function(n,i){var r=this.__base_string_length;return i=i||0,n<0&&(r=0),r+=n*this.__indent_size,r+=i,r},a.prototype.get_indent_string=function(n,i){var r=this.__base_string;return i=i||0,n<0&&(n=0,r=""),i+=n*this.__indent_size,this.__ensure_cache(i),r+=this.__cache[i],r},a.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var n=this.__cache.length,i=0,r="";this.__indent_size&&n>=this.__indent_size&&(i=Math.floor(n/this.__indent_size),n-=i*this.__indent_size,r=new Array(i+1).join(this.__indent_string)),n&&(r+=new Array(n+1).join(" ")),this.__cache.push(r)};function l(n,i){this.__indent_cache=new a(n,i),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new f(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(n,i){return this.__indent_cache.get_indent_string(n,i)},l.prototype.get_indent_size=function(n,i){return this.__indent_cache.get_indent_size(n,i)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(n){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var r=this.__lines.join(`
`);return n!==`
`&&(r=r.replace(/[\n]/g,n)),r},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(n,i){return n=n||0,i=i||0,this.next_line.set_indent(n,i),this.__lines.length>1?(this.current_line.set_indent(n,i),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(n){for(var i=0;i<n.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(n.whitespace_before),this.current_line.push(n.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(n){this.__add_space_before_token(),this.current_line.push(n),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(n){for(var i=this.__lines.length;n<i;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(n){for(n=n===void 0?!1:n,this.current_line.trim();n&&this.__lines.length>1&&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},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(n,i){for(var r=this.__lines.length-2;r>=0;){var c=this.__lines[r];if(c.is_empty())break;if(c.item(0).indexOf(n)!==0&&c.item(-1)!==i){this.__lines.splice(r+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=l},function(e){function f(a,l,n,i){this.type=a,this.text=l,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=f},function(e,f){var a="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",l="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\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",i="\\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",r="(?:\\\\u[0-9a-fA-F]{4}|["+a+n+"])",c="(?:\\\\u[0-9a-fA-F]{4}|["+l+n+i+"])*";f.identifier=new RegExp(r+c,"g"),f.identifierStart=new RegExp(r),f.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+l+n+i+"])+");var h=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;f.newline=/[\n\r\u2028\u2029]/,f.lineBreak=new RegExp(`\r
|`+f.newline.source),f.allLineBreaks=new RegExp(f.lineBreak.source,"g")},function(e,f,a){var l=a(6).Options,n=["before-newline","after-newline","preserve-newline"];function i(r){l.call(this,r,"js");var c=this.raw_options.brace_style||null;c==="expand-strict"?this.raw_options.brace_style="expand":c==="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 h=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var d=0;d<h.length;d++)h[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=h[d];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}i.prototype=new l,e.exports.Options=i},function(e){function f(n,i){this.raw_options=a(n,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}f.prototype._get_array=function(n,i){var r=this.raw_options[n],c=i||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(c=r.concat()):typeof r=="string"&&(c=r.split(/[^a-zA-Z0-9_\/\-]+/)),c},f.prototype._get_boolean=function(n,i){var r=this.raw_options[n],c=r===void 0?!!i:!!r;return c},f.prototype._get_characters=function(n,i){var r=this.raw_options[n],c=i||"";return typeof r=="string"&&(c=r.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),c},f.prototype._get_number=function(n,i){var r=this.raw_options[n];i=parseInt(i,10),isNaN(i)&&(i=0);var c=parseInt(r,10);return isNaN(c)&&(c=i),c},f.prototype._get_selection=function(n,i,r){var c=this._get_selection_list(n,i,r);if(c.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
`+i+`
You passed in: '`+this.raw_options[n]+"'");return c[0]},f.prototype._get_selection_list=function(n,i,r){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(r=r||[i[0]],!this._is_valid_selection(r,i))throw new Error("Invalid Default Value!");var c=this._get_array(n,r);if(!this._is_valid_selection(c,i))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
`+i+`
You passed in: '`+this.raw_options[n]+"'");return c},f.prototype._is_valid_selection=function(n,i){return n.length&&i.length&&!n.some(function(r){return i.indexOf(r)===-1})};function a(n,i){var r={};n=l(n);var c;for(c in n)c!==i&&(r[c]=n[c]);if(i&&n[i])for(c in n[i])r[c]=n[i][c];return r}function l(n){var i={},r;for(r in n){var c=r.replace(/-/g,"_");i[c]=n[r]}return i}e.exports.Options=f,e.exports.normalizeOpts=l,e.exports.mergeOpts=a},function(e,f,a){var l=a(8).InputScanner,n=a(9).Tokenizer,i=a(9).TOKEN,r=a(13).Directives,c=a(4),h=a(12).Pattern,d=a(14).TemplatablePattern;function s(H,D){return D.indexOf(H)!==-1}var u={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},w=new r(/\/\*/,/\*\//),E=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,_=/[0-9]/,P=/[^\d\.]/,R=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),x=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";x=x.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),x="\\?\\.(?!\\d) "+x,x=x.replace(/ /g,"|");var S=new RegExp(x),v="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),T=v.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),U=new RegExp("^(?:"+T.join("|")+")$"),I,N=function(H,D){n.call(this,H,D),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var W=new h(this._input),F=new d(this._input).read_options(this._options);this.__patterns={template:F,identifier:F.starting_with(c.identifier).matching(c.identifierMatch),number:W.matching(E),punct:W.matching(S),comment:W.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:W.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:W.matching(/<!--/),html_comment_end:W.matching(/-->/),include:W.starting_with(/#include/).until_after(c.lineBreak),shebang:W.starting_with(/#!/).until_after(c.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:F.until(/['\\\n\r\u2028\u2029]/),double_quote:F.until(/["\\\n\r\u2028\u2029]/),template_text:F.until(/[`\\$]/),template_expression:F.until(/[`}\\]/)}};N.prototype=new n,N.prototype._is_comment=function(H){return H.type===u.COMMENT||H.type===u.BLOCK_COMMENT||H.type===u.UNKNOWN},N.prototype._is_opening=function(H){return H.type===u.START_BLOCK||H.type===u.START_EXPR},N.prototype._is_closing=function(H,D){return(H.type===u.END_BLOCK||H.type===u.END_EXPR)&&D&&(H.text==="]"&&D.text==="["||H.text===")"&&D.text==="("||H.text==="}"&&D.text==="{")},N.prototype._reset=function(){I=!1},N.prototype._get_next_token=function(H,D){var W=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(u.EOF,""):(W=W||this._read_non_javascript(F),W=W||this._read_string(F),W=W||this._read_word(H),W=W||this._read_singles(F),W=W||this._read_comment(F),W=W||this._read_regexp(F,H),W=W||this._read_xml(F,H),W=W||this._read_punctuation(),W=W||this._create_token(u.UNKNOWN,this._input.next()),W)},N.prototype._read_word=function(H){var D;if(D=this.__patterns.identifier.read(),D!=="")return D=D.replace(c.allLineBreaks,`
`),!(H.type===u.DOT||H.type===u.RESERVED&&(H.text==="set"||H.text==="get"))&&U.test(D)?(D==="in"||D==="of")&&(H.type===u.WORD||H.type===u.STRING)?this._create_token(u.OPERATOR,D):this._create_token(u.RESERVED,D):this._create_token(u.WORD,D);if(D=this.__patterns.number.read(),D!=="")return this._create_token(u.WORD,D)},N.prototype._read_singles=function(H){var D=null;return H==="("||H==="["?D=this._create_token(u.START_EXPR,H):H===")"||H==="]"?D=this._create_token(u.END_EXPR,H):H==="{"?D=this._create_token(u.START_BLOCK,H):H==="}"?D=this._create_token(u.END_BLOCK,H):H===";"?D=this._create_token(u.SEMICOLON,H):H==="."&&P.test(this._input.peek(1))?D=this._create_token(u.DOT,H):H===","&&(D=this._create_token(u.COMMA,H)),D&&this._input.next(),D},N.prototype._read_punctuation=function(){var H=this.__patterns.punct.read();if(H!=="")return H==="="?this._create_token(u.EQUALS,H):H==="?."?this._create_token(u.DOT,H):this._create_token(u.OPERATOR,H)},N.prototype._read_non_javascript=function(H){var D="";if(H==="#"){if(this._is_first_token()&&(D=this.__patterns.shebang.read(),D))return this._create_token(u.UNKNOWN,D.trim()+`
`);if(D=this.__patterns.include.read(),D)return this._create_token(u.UNKNOWN,D.trim()+`
`);H=this._input.next();var W="#";if(this._input.hasNext()&&this._input.testChar(_)){do H=this._input.next(),W+=H;while(this._input.hasNext()&&H!=="#"&&H!=="=");return H==="#"||(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(u.WORD,W)}this._input.back()}else if(H==="<"&&this._is_first_token()){if(D=this.__patterns.html_comment_start.read(),D){for(;this._input.hasNext()&&!this._input.testChar(c.newline);)D+=this._input.next();return I=!0,this._create_token(u.COMMENT,D)}}else if(I&&H==="-"&&(D=this.__patterns.html_comment_end.read(),D))return I=!1,this._create_token(u.COMMENT,D);return null},N.prototype._read_comment=function(H){var D=null;if(H==="/"){var W="";if(this._input.peek(1)==="*"){W=this.__patterns.block_comment.read();var F=w.get_directives(W);F&&F.ignore==="start"&&(W+=w.readIgnored(this._input)),W=W.replace(c.allLineBreaks,`
`),D=this._create_token(u.BLOCK_COMMENT,W),D.directives=F}else this._input.peek(1)==="/"&&(W=this.__patterns.comment.read(),D=this._create_token(u.COMMENT,W))}return D},N.prototype._read_string=function(H){if(H==="`"||H==="'"||H==='"'){var D=this._input.next();return this.has_char_escapes=!1,H==="`"?D+=this._read_string_recursive("`",!0,"${"):D+=this._read_string_recursive(H),this.has_char_escapes&&this._options.unescape_strings&&(D=V(D)),this._input.peek()===H&&(D+=this._input.next()),D=D.replace(c.allLineBreaks,`
`),this._create_token(u.STRING,D)}return null},N.prototype._allow_regexp_or_xml=function(H){return H.type===u.RESERVED&&s(H.text,["return","case","throw","else","do","typeof","yield"])||H.type===u.END_EXPR&&H.text===")"&&H.opened.previous.type===u.RESERVED&&s(H.opened.previous.text,["if","while","for"])||s(H.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},N.prototype._read_regexp=function(H,D){if(H==="/"&&this._allow_regexp_or_xml(D)){for(var W=this._input.next(),F=!1,L=!1;this._input.hasNext()&&(F||L||this._input.peek()!==H)&&!this._input.testChar(c.newline);)W+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?L=!0:this._input.peek()==="]"&&(L=!1)),this._input.next();return this._input.peek()===H&&(W+=this._input.next(),W+=this._input.read(c.identifier)),this._create_token(u.STRING,W)}return null},N.prototype._read_xml=function(H,D){if(this._options.e4x&&H==="<"&&this._allow_regexp_or_xml(D)){var W="",F=this.__patterns.xml.read_match();if(F){for(var L=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=L.indexOf("{")===0,ee=0;F;){var he=!!F[1],fe=F[2],Ce=!!F[F.length-1]||fe.slice(0,8)==="![CDATA[";if(!Ce&&(fe===L||K&&fe.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(he?--ee:++ee),W+=F[0],ee<=0)break;F=this.__patterns.xml.read_match()}return F||(W+=this._input.match(/[\s\S]*/g)[0]),W=W.replace(c.allLineBreaks,`
`),this._create_token(u.STRING,W)}}return null};function V(H){for(var D="",W=0,F=new l(H),L=null;F.hasNext();)if(L=F.match(/([\s]|[^\\]|\\\\)+/g),L&&(D+=L[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")L=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")L=F.match(/u([0-9A-Fa-f]{4})/g);else{D+="\\",F.hasNext()&&(D+=F.next());continue}if(!L)return H;if(W=parseInt(L[1],16),W>126&&W<=255&&L[0].indexOf("x")===0)return H;if(W>=0&&W<32){D+="\\"+L[0];continue}else W===34||W===39||W===92?D+="\\"+String.fromCharCode(W):D+=String.fromCharCode(W)}return D}N.prototype._read_string_recursive=function(H,D,W){var F,L;H==="'"?L=this.__patterns.single_quote:H==='"'?L=this.__patterns.double_quote:H==="`"?L=this.__patterns.template_text:H==="}"&&(L=this.__patterns.template_expression);for(var K=L.read(),ee="";this._input.hasNext();){if(ee=this._input.next(),ee===H||!D&&c.newline.test(ee)){this._input.back();break}else ee==="\\"&&this._input.hasNext()?(F=this._input.peek(),F==="x"||F==="u"?this.has_char_escapes=!0:F==="\r"&&this._input.peek(1)===`
`&&this._input.next(),ee+=this._input.next()):W&&(W==="${"&&ee==="$"&&this._input.peek()==="{"&&(ee+=this._input.next()),W===ee&&(H==="`"?ee+=this._read_string_recursive("}",D,"`"):ee+=this._read_string_recursive("`",D,"${"),this._input.hasNext()&&(ee+=this._input.next())));ee+=L.read(),K+=ee}return K},e.exports.Tokenizer=N,e.exports.TOKEN=u,e.exports.positionable_operators=R.slice(),e.exports.line_starters=v.slice()},function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var n=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(n=this.__input.charAt(l)),n},a.prototype.__match=function(l,n){l.lastIndex=n;var i=l.exec(this.__input);return i&&!(f&&l.sticky)&&(i.index!==n&&(i=null)),i},a.prototype.test=function(l,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(l,n):!1},a.prototype.testChar=function(l,n){var i=this.peek(n);return l.lastIndex=0,i!==null&&l.test(i)},a.prototype.match=function(l){var n=this.__match(l,this.__position);return n?this.__position+=n[0].length:n=null,n},a.prototype.read=function(l,n,i){var r="",c;return l&&(c=this.match(l),c&&(r+=c[0])),n&&(c||!l)&&(r+=this.readUntil(n,i)),r},a.prototype.readUntil=function(l,n){var i="",r=this.__position;l.lastIndex=this.__position;var c=l.exec(this.__input);return c?(r=c.index,n&&(r+=c[0].length)):r=this.__input_length,i=this.__input.substring(this.__position,r),this.__position=r,i},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,n){var i=null,r="g";return n&&f&&(r="y"),typeof l=="string"&&l!==""?i=new RegExp(l,r):l&&(i=new RegExp(l.source,r)),i},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var n=this.__position,i=this.readUntilAfter(l);return this.__position=n,i},a.prototype.lookBack=function(l){var n=this.__position-1;return n>=l.length&&this.__input.substring(n-l.length,n).toLowerCase()===l},e.exports.InputScanner=a},function(e,f,a){var l=a(8).InputScanner,n=a(3).Token,i=a(10).TokenStream,r=a(11).WhitespacePattern,c={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},h=function(d,s){this._input=new l(d),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};h.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var d,s=new n(c.START,""),u=null,w=[],E=new i;s.type!==c.EOF;){for(d=this._get_next_token(s,u);this._is_comment(d);)E.add(d),d=this._get_next_token(s,u);E.isEmpty()||(d.comments_before=E,E=new i),d.parent=u,this._is_opening(d)?(w.push(u),u=d):u&&this._is_closing(d,u)&&(d.opened=u,u.closed=d,u=w.pop(),d.parent=u),d.previous=s,s.next=d,this.__tokens.add(d),s=d}return this.__tokens},h.prototype._is_first_token=function(){return this.__tokens.isEmpty()},h.prototype._reset=function(){},h.prototype._get_next_token=function(d,s){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(c.RAW,u):this._create_token(c.EOF,"")},h.prototype._is_comment=function(d){return!1},h.prototype._is_opening=function(d){return!1},h.prototype._is_closing=function(d,s){return!1},h.prototype._create_token=function(d,s){var u=new n(d,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},h.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=h,e.exports.TOKEN=c},function(e){function f(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}f.prototype.restart=function(){this.__position=0},f.prototype.isEmpty=function(){return this.__tokens_length===0},f.prototype.hasNext=function(){return this.__position<this.__tokens_length},f.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},f.prototype.peek=function(a){var l=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(l=this.__tokens[a]),l},f.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},e.exports.TokenStream=f},function(e,f,a){var l=a(12).Pattern;function n(i,r){l.call(this,i,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new l,n.prototype.__set_whitespace_patterns=function(i,r){i+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var i=this._input.read(this._match_pattern);if(i===" ")this.whitespace_before_token=" ";else if(i){var r=this.__split(this._newline_regexp,i);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return i},n.prototype.matching=function(i,r){var c=this._create();return c.__set_whitespace_patterns(i,r),c._update(),c},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(i,r){i.lastIndex=0;for(var c=0,h=[],d=i.exec(r);d;)h.push(r.substring(c,d.index)),c=d.index+d[0].length,d=i.exec(r);return c<r.length?h.push(r.substring(c,r.length)):h.push(""),h},e.exports.WhitespacePattern=n},function(e){function f(a,l){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}f.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},f.prototype.read_match=function(){return this._input.match(this._match_pattern)},f.prototype.until_after=function(a){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(a),l._update(),l},f.prototype.until=function(a){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(a),l._update(),l},f.prototype.starting_with=function(a){var l=this._create();return l._starting_pattern=this._input.get_regexp(a,!0),l._update(),l},f.prototype.matching=function(a){var l=this._create();return l._match_pattern=this._input.get_regexp(a,!0),l._update(),l},f.prototype._create=function(){return new f(this._input,this)},f.prototype._update=function(){},e.exports.Pattern=f},function(e){function f(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}f.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(a);n;)l[n[1]]=n[2],n=this.__directive_pattern.exec(a);return l},f.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},function(e,f,a){var l=a(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(r,c){l.call(this,r,c),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),c&&(this.__template_pattern=this._input.get_regexp(c.__template_pattern),this._excluded=Object.assign(this._excluded,c._excluded),this._disabled=Object.assign(this._disabled,c._disabled));var h=new l(r);this.__patterns={handlebars_comment:h.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:h.starting_with(/{{{/).until_after(/}}}/),handlebars:h.starting_with(/{{/).until_after(/}}/),php:h.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:h.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:h.starting_with(/{%/).until_after(/%}/),django_value:h.starting_with(/{{/).until_after(/}}/),django_comment:h.starting_with(/{#/).until_after(/#}/),smarty:h.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:h.starting_with(/{\*/).until_after(/\*}/),smarty_literal:h.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new l,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(r){var c=this._create();return c._disabled[r]=!0,c._update(),c},i.prototype.read_options=function(r){var c=this._create();for(var h in n)c._disabled[h]=r.templating.indexOf(h)===-1;return c._update(),c},i.prototype.exclude=function(r){var c=this._create();return c._excluded[r]=!0,c._update(),c},i.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var c=this._read_template();c;)this._match_pattern?c+=this._input.read(this._match_pattern):c+=this._input.readUntil(this.__template_pattern),r+=c,c=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},i.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},i.prototype._read_template=function(){var r="",c=this._input.peek();if(c==="<"){var h=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&h==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&h==="%"&&(r=r||this.__patterns.erb.read())}else c==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},e.exports.TemplatablePattern=i}],C={};function A(e){var f=C[e];if(f!==void 0)return f.exports;var a=C[e]={exports:{}};return y[e](a,a.exports,A),a.exports}var g=A(0);O=g})();var b=O;!(M=[],m=function(){return{js_beautify:b}}.apply(z,M),m!==void 0&&(k.exports=m))})()},"6eGT":function(k,z,o){"use strict";function M(m){return null}z.a=M},"6nfa":function(k,z,o){k.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"}},"746U":function(k,z,o){"use strict";o.d(z,"f",function(){return M}),o.d(z,"l",function(){return m}),o.d(z,"k",function(){return O}),o.d(z,"j",function(){return b}),o.d(z,"g",function(){return y}),o.d(z,"m",function(){return C}),o.d(z,"h",function(){return A}),o.d(z,"n",function(){return g}),o.d(z,"c",function(){return e}),o.d(z,"a",function(){return f}),o.d(z,"i",function(){return a}),o.d(z,"o",function(){return l}),o.d(z,"e",function(){return r}),o.d(z,"d",function(){return c}),o.d(z,"p",function(){return h}),o.d(z,"b",function(){return d});function M(s){return Array.isArray(s)}function m(s){return typeof s=="string"}function O(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function b(s){return typeof s=="number"&&!isNaN(s)}function y(s){return s===!0||s===!1}function C(s){return typeof s=="undefined"}function A(s){return!g(s)}function g(s){return C(s)||s===null}function e(s,u){if(!s)throw new Error(u?`Unexpected type, expected '${u}'`:"Unexpected type")}function f(s){if(g(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function a(s){return typeof s=="function"}function l(s,u){const w=Math.min(s.length,u.length);for(let E=0;E<w;E++)n(s[E],u[E])}function n(s,u){if(m(u)){if(typeof s!==u)throw new Error(`argument does not match constraint: typeof ${u}`)}else if(a(u)){try{if(s instanceof u)return}catch(w){}if(!g(s)&&s.constructor===u)return;if(u.length===1&&u.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function i(s){let u=[],w=Object.getPrototypeOf(s);for(;Object.prototype!==w;)u=u.concat(Object.getOwnPropertyNames(w)),w=Object.getPrototypeOf(w);return u}function r(s){const u=[];for(const w of i(s))typeof s[w]=="function"&&u.push(w);return u}function c(s,u){const w=_=>function(){const P=Array.prototype.slice.call(arguments,0);return u(_,P)};let E={};for(const _ of s)E[_]=w(_);return E}function h(s){return s===null?void 0:s}function d(s,u="Unreachable"){throw new Error(u)}},"7Cbv":function(k,z,o){"use strict";var M=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),m=new Uint8Array(16);function O(){if(!M)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return M(m)}var b=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function y(n){return typeof n=="string"&&b.test(n)}for(var C=y,A=[],g=0;g<256;++g)A.push((g+256).toString(16).substr(1));function e(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(A[n[i+0]]+A[n[i+1]]+A[n[i+2]]+A[n[i+3]]+"-"+A[n[i+4]]+A[n[i+5]]+"-"+A[n[i+6]]+A[n[i+7]]+"-"+A[n[i+8]]+A[n[i+9]]+"-"+A[n[i+10]]+A[n[i+11]]+A[n[i+12]]+A[n[i+13]]+A[n[i+14]]+A[n[i+15]]).toLowerCase();if(!C(r))throw TypeError("Stringified UUID is invalid");return r}var f=e;function a(n,i,r){n=n||{};var c=n.random||(n.rng||O)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,i){r=r||0;for(var h=0;h<16;++h)i[r+h]=c[h];return i}return f(c)}var l=z.a=a},"7ZXX":function(k,z,o){k.exports=o.p+"static/err.6e7c5817.png"},"7ahc":function(k,z,o){"use strict";o.d(z,"a",function(){return w});var M=o("k1fw"),m=o("0Owb"),O=o("+L6B"),b=o("2/Rp"),y=o("y8nQ"),C=o("Vl3Y"),A=o("tJVT"),g=o("OaEy"),e=o("2fM7"),f=o("q1tI"),a=o.n(f),l=o("VrN/"),n=o.n(l),i=o("p77/"),r=o.n(i),c=o("c5Ni"),h=o.n(c),d=e.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},u={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};z.b=function(E){var _=E.callback,P=E.onCancel,R=Object(f.useState)("python"),x=Object(A.a)(R,2),S=x[0],v=x[1];function T(I){v(u[I][1])}function U(I){_(I)}return a.a.createElement(C.a,Object(m.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:U}),a.a.createElement(C.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},a.a.createElement(e.a,{onChange:T},Object.keys(u).map(function(I){return a.a.createElement(d,{key:I,value:I},u[I][0])}))),a.a.createElement(C.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},a.a.createElement(w,{mode:S})),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(b.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(b.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function w(E){var _=E.value,P=E.onChange,R=E.mode,x=E.options,S=x===void 0?{}:x,v=Object(f.useRef)(),T=Object(f.useState)(),U=Object(A.a)(T,2),I=U[0],N=U[1];return Object(f.useEffect)(function(){if(I){function V(H){var D=H.getValue();P&&P(D)}return I.on("change",V),function(){I.off("change",V)}}},[I,P]),Object(f.useEffect)(function(){I&&I.setOption("mode",R)},[I,R]),Object(f.useEffect)(function(){I&&((_!==I.getValue()||_==="")&&setTimeout(function(){I.setValue(_||" ")},300))},[I,_]),Object(f.useEffect)(function(){if(v.current&&!I){var V=n.a.fromTextArea(v.current,Object(M.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},S));N(V)}},[v.current,I]),a.a.createElement("div",{className:"my-codemirror-container"},a.a.createElement("textarea",{ref:v}))}},"7ixt":function(k,z,o){"use strict";o.d(z,"a",function(){return O});var M={adjustX:1,adjustY:1},m=[0,0],O={left:{points:["cr","cl"],overflow:M,offset:[-4,0],targetOffset:m},right:{points:["cl","cr"],overflow:M,offset:[4,0],targetOffset:m},top:{points:["bc","tc"],overflow:M,offset:[0,-4],targetOffset:m},bottom:{points:["tc","bc"],overflow:M,offset:[0,4],targetOffset:m},topLeft:{points:["bl","tl"],overflow:M,offset:[0,-4],targetOffset:m},leftTop:{points:["tr","tl"],overflow:M,offset:[-4,0],targetOffset:m},topRight:{points:["br","tr"],overflow:M,offset:[0,-4],targetOffset:m},rightTop:{points:["tl","tr"],overflow:M,offset:[4,0],targetOffset:m},bottomRight:{points:["tr","br"],overflow:M,offset:[0,4],targetOffset:m},rightBottom:{points:["bl","br"],overflow:M,offset:[4,0],targetOffset:m},bottomLeft:{points:["tl","bl"],overflow:M,offset:[0,4],targetOffset:m},leftBottom:{points:["br","bl"],overflow:M,offset:[-4,0],targetOffset:m}},b=O},"7v3h":function(k,z,o){k.exports=o.p+"static/empty2.dd73f390.png"},"8/bI":function(k,z,o){k.exports=o.p+"static/empty.8918e228.png"},"815F":function(k,z,o){"use strict";o.d(z,"e",function(){return A}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return l}),o.d(z,"f",function(){return n}),o.d(z,"b",function(){return i});var M=o("KQm4"),m=o("VTBJ"),O=o("Ff2n"),b=o("Zm9Q"),y=o("Kwbf"),C=o("OZM5");function A(r,c){return r!=null?r:c}function g(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function h(d){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(u){var w=u.key,E=u.children;Object(y.a)(w!=null,"Tree node must have a certain key: [".concat(s).concat(w,"]"));var _=String(w);Object(y.a)(!c.has(_)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(_)),c.set(_,!0),h(E,"".concat(s).concat(_," > "))})}h(r)}function e(r){function c(h){var d=Object(b.a)(h);return d.map(function(s){if(!Object(C.i)(s))return Object(y.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var u=s.key,w=s.props,E=w.children,_=Object(O.a)(w,["children"]),P=Object(m.a)({key:u},_),R=c(E);return R.length&&(P.children=R),P}).filter(function(s){return s})}return c(r)}function f(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=new Set(c===!0?[]:c),d=[];function s(u){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(E,_){var P=Object(C.h)(w?w.pos:"0",_),R=A(E.key,P),x=Object(m.a)(Object(m.a)({},E),{},{parent:w,pos:P,children:null,data:E,isStart:[].concat(Object(M.a)(w?w.isStart:[]),[_===0]),isEnd:[].concat(Object(M.a)(w?w.isEnd:[]),[_===u.length-1])});return d.push(x),c===!0||h.has(R)?x.children=s(E.children||[],x):x.children=[],x})}return s(r),d}function a(r,c,h){var d;h?typeof h=="string"?d=function(w){return w[h]}:typeof h=="function"&&(d=function(w){return h(w)}):d=function(w,E){return A(w.key,E)};function s(u,w,E){var _=u?u.children:r,P=u?Object(C.h)(E.pos,w):"0";if(u){var R=d(u,P),x={node:u,index:w,pos:P,key:R,parentPos:E.node?E.pos:null,level:E.level+1};c(x)}_&&_.forEach(function(S,v){s(S,v,{node:u,pos:P,level:E?E.level+1:-1})})}s(null)}function l(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=c.initWrapper,d=c.processEntity,s=c.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,w={},E={},_={posEntities:w,keyEntities:E};return h&&(_=h(_)||_),a(r,function(P){var R=P.node,x=P.index,S=P.pos,v=P.key,T=P.parentPos,U=P.level,I={node:R,index:x,key:v,pos:S,level:U},N=A(v,S);w[S]=I,E[N]=I,I.parent=w[T],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),d&&d(I,_)},u),s&&s(_),_}function n(r,c){var h=c.expandedKeys,d=c.selectedKeys,s=c.loadedKeys,u=c.loadingKeys,w=c.checkedKeys,E=c.halfCheckedKeys,_=c.dragOverNodeKey,P=c.dropPosition,R=c.keyEntities,x=R[r],S={eventKey:r,expanded:h.indexOf(r)!==-1,selected:d.indexOf(r)!==-1,loaded:s.indexOf(r)!==-1,loading:u.indexOf(r)!==-1,checked:w.indexOf(r)!==-1,halfChecked:E.indexOf(r)!==-1,pos:String(x?x.pos:""),dragOver:_===r&&P===0,dragOverGapTop:_===r&&P===-1,dragOverGapBottom:_===r&&P===1};return S}function i(r){var c=r.data,h=r.expanded,d=r.selected,s=r.checked,u=r.loaded,w=r.loading,E=r.halfChecked,_=r.dragOver,P=r.dragOverGapTop,R=r.dragOverGapBottom,x=r.pos,S=r.active,v=Object(m.a)(Object(m.a)({},c),{},{expanded:h,selected:d,checked:s,loaded:u,loading:w,halfChecked:E,dragOver:_,dragOverGapTop:P,dragOverGapBottom:R,pos:x,active:S});return"props"in v||Object.defineProperty(v,"props",{get:function(){return Object(y.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),v}},"8EBN":function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";M.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var m=0;m<M.modeInfo.length;m++){var O=M.modeInfo[m];O.mimes&&(O.mime=O.mimes[0])}M.findModeByMIME=function(b){b=b.toLowerCase();for(var y=0;y<M.modeInfo.length;y++){var C=M.modeInfo[y];if(C.mime==b)return C;if(C.mimes){for(var A=0;A<C.mimes.length;A++)if(C.mimes[A]==b)return C}}if(/\+xml$/.test(b))return M.findModeByMIME("application/xml");if(/\+json$/.test(b))return M.findModeByMIME("application/json")},M.findModeByExtension=function(b){b=b.toLowerCase();for(var y=0;y<M.modeInfo.length;y++){var C=M.modeInfo[y];if(C.ext){for(var A=0;A<C.ext.length;A++)if(C.ext[A]==b)return C}}},M.findModeByFileName=function(b){for(var y=0;y<M.modeInfo.length;y++){var C=M.modeInfo[y];if(C.file&&C.file.test(b))return C}var A=b.lastIndexOf("."),g=A>-1&&b.substring(A+1,b.length);if(g)return M.findModeByExtension(g)},M.findModeByName=function(b){b=b.toLowerCase();for(var y=0;y<M.modeInfo.length;y++){var C=M.modeInfo[y];if(C.name.toLowerCase()==b)return C;if(C.alias){for(var A=0;A<C.alias.length;A++)if(C.alias[A].toLowerCase()==b)return C}}}})},"8HAY":function(k,z,o){"use strict";o.d(z,"a",function(){return y}),o.d(z,"b",function(){return C}),o.d(z,"d",function(){return A}),o.d(z,"e",function(){return g}),o.d(z,"c",function(){return e});var M=o("MI8n"),m=o("pmY6"),O=o("3/fG"),b=function(f,a,l,n){function i(r){return r instanceof l?r:new l(function(c){c(r)})}return new(l||(l=Promise))(function(r,c){function h(u){try{s(n.next(u))}catch(w){c(w)}}function d(u){try{s(n.throw(u))}catch(w){c(w)}}function s(u){u.done?r(u.value):i(u.value).then(h,d)}s((n=n.apply(f,a||[])).next())})};class y extends m.a{constructor(f,a="",l="",n=!0,i){super();this._onDidChange=this._register(new M.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=f,this._label=a,this._cssClass=l,this._enabled=n,this._actionCallback=i}get id(){return this._id}get label(){return this._label}set label(f){this._setLabel(f)}_setLabel(f){this._label!==f&&(this._label=f,this._onDidChange.fire({label:f}))}get tooltip(){return this._tooltip||""}set tooltip(f){this._setTooltip(f)}_setTooltip(f){this._tooltip!==f&&(this._tooltip=f,this._onDidChange.fire({tooltip:f}))}get class(){return this._cssClass}set class(f){this._setClass(f)}_setClass(f){this._cssClass!==f&&(this._cssClass=f,this._onDidChange.fire({class:f}))}get enabled(){return this._enabled}set enabled(f){this._setEnabled(f)}_setEnabled(f){this._enabled!==f&&(this._enabled=f,this._onDidChange.fire({enabled:f}))}get checked(){return this._checked}set checked(f){this._setChecked(f)}_setChecked(f){this._checked!==f&&(this._checked=f,this._onDidChange.fire({checked:f}))}run(f,a){return b(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(f))})}}class C extends m.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new M.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new M.b),this.onDidRun=this._onDidRun.event}run(f,a){return b(this,void 0,void 0,function*(){if(!f.enabled)return;this._onBeforeRun.fire({action:f});let l;try{yield this.runAction(f,a)}catch(n){l=n}this._onDidRun.fire({action:f,error:l})})}runAction(f,a){return b(this,void 0,void 0,function*(){yield f.run(a)})}}class A extends y{constructor(f){super(A.ID,f,f?"separator text":"separator");this.checked=!1,this.enabled=!1}}A.ID="vs.actions.separator";class g{constructor(f,a,l,n){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=f,this.label=a,this.class=n,this._actions=l}get actions(){return this._actions}dispose(){}run(){return b(this,void 0,void 0,function*(){})}}class e extends y{constructor(){super(e.ID,O.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8WcF":function(k,z,o){k.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(k,z,o){k.exports={button:"button___1wy9m"}},"8j3D":function(k,z,o){"use strict";var M=o("2qtc"),m=o("kLXV"),O=o("5NDa"),b=o("5rEg"),y=o("miYZ"),C=o("tsqr"),A=o("k1fw"),g=o("9og8"),e=o("y8nQ"),f=o("Vl3Y"),a=o("tJVT"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),r=o.n(i),c=o("Ty5D"),h=o("9kvl"),d=o("KVXO"),s=o.n(d),u=function(E){var _=E.shixunsDetail,P=E.globalSetting,R=E.loading,x=E.dispatch,S=E.title,v=E.pathList,T=v===void 0?[]:v,U=E.showInputPath,I=U===void 0?!1:U,N=E.isMergeSelectFile,V=N===void 0?!1:N,H=E.onFinish,D=H===void 0?function(){}:H,W=f.a.useForm(),F=Object(a.a)(W,1),L=F[0],K=Object(c.i)(),ee=Object(c.h)(),he=Object(i.useRef)(),fe=Object(i.useState)(""),Ce=Object(a.a)(fe,2),Te=Ce[0],ce=Ce[1],ye=Object(i.useState)(""),Ee=Object(a.a)(ye,2),ue=Ee[0],se=Ee[1],$=Object(i.useState)([]),me=Object(a.a)($,2),re=me[0],ae=me[1],we=Object(i.useState)([]),le=Object(a.a)(we,2),te=le[0],Q=le[1];Object(i.useEffect)(function(){var tt,lt;he.current=((tt=ee.pathname)===null||tt===void 0||((lt=tt.split("/"))===null||lt===void 0)?void 0:lt[3])==="repository"},[]),Object(i.useEffect)(function(){if(_.actionTabs.key!=="Repository-SelectFilePath")return;var tt=T.join("/"),lt=[];T.map(function(dt,vt){vt===0?lt.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(dt),path:tt}):lt.push({val:"/".concat(dt),path:tt})}),ae(lt),ce(tt),se(tt),J(tt)},[_.actionTabs.key]);var J=function(){var tt=Object(g.a)(n.a.mark(function lt(dt){var vt;return n.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,x({type:he.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:K.id,path:dt}});case 2:vt=Ye.sent,vt&&Q(vt.trees||[]);case 4:case"end":return Ye.stop()}},lt)}));return function(dt){return tt.apply(this,arguments)}}(),ve=function(lt){var dt=Te;lt.type==="tree"&&(re.length?re.push({val:"/".concat(lt.name),path:lt.name}):re.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(lt.name),path:lt.name}),ae(re),dt=Te?"".concat(Te,"/").concat(lt.name):lt.name,ce(dt)),J(dt)},_e=function(lt,dt){var vt=re.filter(function(Ye,je){return je<=dt});ae(vt);var _t=vt.filter(function(Ye,je){return je!==0}).map(function(Ye){return Ye.val}).join("").substr(1);ce(_t),J(_t)},Oe=function(){var tt=Object(g.a)(n.a.mark(function lt(){var dt,vt,_t;return n.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(dt=L==null?void 0:L.getFieldsValue(),vt=Te?"".concat(Te).concat(dt!=null&&dt.name?"/".concat(dt==null?void 0:dt.name):""):dt==null?void 0:dt.name,!V){je.next=6;break}return D(vt),Xe(),je.abrupt("return");case 6:if(!I){je.next=16;break}return je.next=9,L.validateFields();case 9:return je.next=11,x({type:"shixunsDetail/uploadGitFolder",payload:Object(A.a)(Object(A.a)({},{id:K.id,path:vt}),he.current?{}:{secret_repository:!0})});case 11:_t=je.sent,D(ue),_t.status===0&&C.b.info("\u65B0\u5EFA\u6210\u529F"),je.next=18;break;case 16:D(vt),C.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Xe();case 19:case"end":return je.stop()}},lt)}));return function(){return tt.apply(this,arguments)}}(),Xe=function(){x({type:"shixunsDetail/setActionTabs",payload:{}}),L.resetFields()};return r.a.createElement(m.a,{centered:!0,title:S||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:_.actionTabs.key==="Repository-SelectFilePath",onOk:Oe,onCancel:Xe},r.a.createElement("div",{className:s.a.wrap},r.a.createElement("div",{className:s.a.content},r.a.createElement("div",{className:s.a.mainPathWrap},!!(re!=null&&re.length)&&re.map(function(tt,lt){return r.a.createElement("a",{key:lt,onClick:function(){return _e(tt,lt)}},tt.val)})),!!(te!=null&&te.length)&&te.map(function(tt,lt){return tt.type==="tree"&&r.a.createElement("a",{key:lt,onClick:function(){return ve(tt)}},r.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(s.a.colorBlue)}),tt.name)})),r.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),r.a.createElement("div",{className:"mt5 mb5"},Te),I&&r.a.createElement(f.a,{form:L,scrollToFirstError:!0,className:"mt20"},r.a.createElement(f.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},r.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};z.a=Object(h.a)(function(w){var E=w.shixunsDetail,_=w.loading,P=w.globalSetting;return{shixunsDetail:E,globalSetting:P,loading:_.models.index}})(u)},"8mKB":function(k,z,o){"use strict";var M=o("rePB"),m=o("1OyB"),O=o("vuIU"),b=o("Ji7U"),y=o("md7G"),C=o("foSv"),A=o("q1tI"),g=o.n(A),e=o("m+aA"),f=o("TSYQ"),a=o.n(f),l=o("4IlW");function n(S){var v=S.pageXOffset,T="scrollLeft";if(typeof v!="number"){var U=S.document;v=U.documentElement[T],typeof v!="number"&&(v=U.body[T])}return v}function i(S){var v,T,U=S.ownerDocument,I=U.body,N=U&&U.documentElement,V=S.getBoundingClientRect();return v=V.left,T=V.top,v-=N.clientLeft||I.clientLeft||0,T-=N.clientTop||I.clientTop||0,{left:v,top:T}}function r(S){var v=i(S),T=S.ownerDocument,U=T.defaultView||T.parentWindow;return v.left+=n(U),v.left}function c(S){var v=h();return function(){var U=Object(C.a)(S),I;if(v){var N=Object(C.a)(this).constructor;I=Reflect.construct(U,arguments,N)}else I=U.apply(this,arguments);return Object(y.a)(this,I)}}function h(){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(S){return!1}}var d=function(S){Object(b.a)(T,S);var v=c(T);function T(){var U;return Object(m.a)(this,T),U=v.apply(this,arguments),U.onHover=function(I){var N=U.props,V=N.onHover,H=N.index;V(I,H)},U.onClick=function(I){var N=U.props,V=N.onClick,H=N.index;V(I,H)},U.onKeyDown=function(I){var N=U.props,V=N.onClick,H=N.index;I.keyCode===13&&V(I,H)},U}return Object(O.a)(T,[{key:"getClassName",value:function(){var I=this.props,N=I.prefixCls,V=I.index,H=I.value,D=I.allowHalf,W=I.focused,F=V+1,L=N;return H===0&&V===0&&W?L+=" ".concat(N,"-focused"):D&&H+.5>=F&&H<F?(L+=" ".concat(N,"-half ").concat(N,"-active"),W&&(L+=" ".concat(N,"-focused"))):(L+=F<=H?" ".concat(N,"-full"):" ".concat(N,"-zero"),F===H&&W&&(L+=" ".concat(N,"-focused"))),L}},{key:"render",value:function(){var I=this.onHover,N=this.onClick,V=this.onKeyDown,H=this.props,D=H.disabled,W=H.prefixCls,F=H.character,L=H.characterRender,K=H.index,ee=H.count,he=H.value,fe=typeof F=="function"?F(this.props):F,Ce=g.a.createElement("li",{className:this.getClassName()},g.a.createElement("div",{onClick:D?null:N,onKeyDown:D?null:V,onMouseMove:D?null:I,role:"radio","aria-checked":he>K?"true":"false","aria-posinset":K+1,"aria-setsize":ee,tabIndex:D?-1:0},g.a.createElement("div",{className:"".concat(W,"-first")},fe),g.a.createElement("div",{className:"".concat(W,"-second")},fe)));return L&&(Ce=L(Ce,this.props)),Ce}}]),T}(g.a.Component);function s(S,v){var T=Object.keys(S);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(S);v&&(U=U.filter(function(I){return Object.getOwnPropertyDescriptor(S,I).enumerable})),T.push.apply(T,U)}return T}function u(S){for(var v=1;v<arguments.length;v++){var T=arguments[v]!=null?arguments[v]:{};v%2?s(Object(T),!0).forEach(function(U){Object(M.a)(S,U,T[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(T)):s(Object(T)).forEach(function(U){Object.defineProperty(S,U,Object.getOwnPropertyDescriptor(T,U))})}return S}function w(S){var v=E();return function(){var U=Object(C.a)(S),I;if(v){var N=Object(C.a)(this).constructor;I=Reflect.construct(U,arguments,N)}else I=U.apply(this,arguments);return Object(y.a)(this,I)}}function E(){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(S){return!1}}function _(){}var P=function(S){Object(b.a)(T,S);var v=w(T);function T(U){var I;Object(m.a)(this,T),I=v.call(this,U),I.onHover=function(V,H){var D=I.props.onHoverChange,W=I.getStarValue(H,V.pageX),F=I.state.cleanedValue;W!==F&&I.setState({hoverValue:W,cleanedValue:null}),D(W)},I.onMouseLeave=function(){var V=I.props.onHoverChange;I.setState({hoverValue:void 0,cleanedValue:null}),V(void 0)},I.onClick=function(V,H){var D=I.props.allowClear,W=I.state.value,F=I.getStarValue(H,V.pageX),L=!1;D&&(L=F===W),I.onMouseLeave(),I.changeValue(L?0:F),I.setState({cleanedValue:L?F:null})},I.onFocus=function(){var V=I.props.onFocus;I.setState({focused:!0}),V&&V()},I.onBlur=function(){var V=I.props.onBlur;I.setState({focused:!1}),V&&V()},I.onKeyDown=function(V){var H=V.keyCode,D=I.props,W=D.count,F=D.allowHalf,L=D.onKeyDown,K=D.direction,ee=K==="rtl",he=I.state.value;H===l.a.RIGHT&&he<W&&!ee?(F?he+=.5:he+=1,I.changeValue(he),V.preventDefault()):H===l.a.LEFT&&he>0&&!ee||H===l.a.RIGHT&&he>0&&ee?(F?he-=.5:he-=1,I.changeValue(he),V.preventDefault()):H===l.a.LEFT&&he<W&&ee&&(F?he+=.5:he+=1,I.changeValue(he),V.preventDefault()),L&&L(V)},I.saveRef=function(V){return function(H){I.stars[V]=H}},I.saveRate=function(V){I.rate=V};var N=U.value;return N===void 0&&(N=U.defaultValue),I.stars={},I.state={value:N,focused:!1,cleanedValue:null},I}return Object(O.a)(T,[{key:"componentDidMount",value:function(){var I=this.props,N=I.autoFocus,V=I.disabled;N&&!V&&this.focus()}},{key:"getStarDOM",value:function(I){return Object(e.a)(this.stars[I])}},{key:"getStarValue",value:function(I,N){var V=this.props,H=V.allowHalf,D=V.direction,W=D==="rtl",F=I+1;if(H){var L=this.getStarDOM(I),K=r(L),ee=L.clientWidth;(W&&N-K>ee/2||!W&&N-K<ee/2)&&(F-=.5)}return F}},{key:"focus",value:function(){var I=this.props.disabled;I||this.rate.focus()}},{key:"blur",value:function(){var I=this.props.disabled;I||this.rate.blur()}},{key:"changeValue",value:function(I){var N=this.props.onChange;"value"in this.props||this.setState({value:I}),N(I)}},{key:"render",value:function(){for(var I=this.props,N=I.count,V=I.allowHalf,H=I.style,D=I.prefixCls,W=I.disabled,F=I.className,L=I.character,K=I.characterRender,ee=I.tabIndex,he=I.direction,fe=this.state,Ce=fe.value,Te=fe.hoverValue,ce=fe.focused,ye=[],Ee=W?"".concat(D,"-disabled"):"",ue=0;ue<N;ue+=1)ye.push(g.a.createElement(d,{ref:this.saveRef(ue),index:ue,count:N,disabled:W,prefixCls:"".concat(D,"-star"),allowHalf:V,value:Te===void 0?Ce:Te,onClick:this.onClick,onHover:this.onHover,key:ue,character:L,characterRender:K,focused:ce}));var se=a()(D,Ee,F,Object(M.a)({},"".concat(D,"-rtl"),he==="rtl"));return g.a.createElement("ul",{className:se,style:H,onMouseLeave:W?null:this.onMouseLeave,tabIndex:W?-1:ee,onFocus:W?null:this.onFocus,onBlur:W?null:this.onBlur,onKeyDown:W?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},ye)}}],[{key:"getDerivedStateFromProps",value:function(I,N){return"value"in I&&I.value!==void 0?u(u({},N),{},{value:I.value}):N}}]),T}(g.a.Component);P.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var R=P,x=z.a=R},"9Bee":function(k,z,o){"use strict";var M=o("DYRE"),m=o("zeV3"),O=o("+L6B"),b=o("2/Rp"),y=o("k1fw"),C=o("9og8"),A=o("tJVT"),g=o("WmNS"),e=o.n(g),f=o("q1tI"),a=o.n(f),l=o("vg9a"),n=o("DlQD"),i=o.n(n),r=o("rUJ1");function c(pe,X){var q=pe.match(/^(\s+)(?:```)/);if(q===null)return X;var oe=q[1];return X.split(`
`).map(function(Re){var de=Re.match(/^\s+/);if(de===null)return Re;var ot=Object(A.a)(de,1),Qt=ot[0];return Qt.length>=oe.length?Re.slice(oe.length):Re}).join(`
`)}var h=[],d=["<ul>"],s=new i.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){h.length=0,d=["<ul>"]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _(pe,X,q,oe){if(X>=pe.length||pe[X].level<=q)return X;var Re=pe[X];oe.push("<li><a href='#"+Re.anchor+"'>"+Re.text+"</a>"),X++;var de=[];return X=_(pe,X,Re.level,de),de.length>0&&(oe.push("<ul>"),de.forEach(function(ot){oe.push(ot)}),oe.push("</ul>")),oe.push("</li>"),X=_(pe,X,q,oe),X}function P(){return _(h,0,0,d),d.push("</ul>"),d.join("")}var R={heading:function(X){var q=u.exec(X);if(q)return{type:"heading",raw:q[0],depth:q[1].length,text:q[2]}},fences:function(X){var q=this.rules.block.fences.exec(X);if(q){var oe=q[0],Re=c(oe,q[3]||""),de=q[2]?q[2].trim():q[2];if(["latex","katex","math"].indexOf(de)>=0){var ot=v(),Qt=Re;Re=ot,T[ot]={type:"block",expression:Qt}}return{type:"code",raw:oe,lang:de,text:Re}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,S=0,v=function(){return"__special_katext_id_".concat(S++,"__")},T={};function U(){return T}function I(){S=0,T={}}function N(pe){return pe=pe.replace(x,function(X,q){var oe=v();return T[oe]={type:"inline",expression:q},oe}),pe}var V=s.listitem;s.listitem=function(pe){return V(N(pe))};var H=s.paragraph;s.paragraph=function(pe){return H(N(pe))};var D=s.tablecell;s.tablecell=function(pe,X){return D(N(pe),X)},s.code=function(pe,X,q){var oe=(X||"").match(/\S*/)[0];return oe?["latex","katex","math"].indexOf(oe)>=0?"<p class='editormd-tex'>".concat(pe,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(X,'">').concat(q?pe:Object(r.escape)(pe,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(q?pe:Object(r.escape)(pe,!0))+"</code></pre>"},s.heading=function(pe,X,q){var oe=this.options.headerPrefix+q.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return h.push({anchor:oe,level:X,text:pe}),"<h"+X+' id="'+oe+'">'+pe+"</h"+X+">"},i.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),i.a.use({tokenizer:R,renderer:s});var W=i.a,F=o("SJMd"),L=o("ulZh"),K=o.n(L),ee=o("m3rI"),he=o("Oy/b"),fe=o("p5ED"),Ce=o("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 Te=function(pe,X){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,oe){q.__proto__=oe}||function(q,oe){for(var Re in oe)Object.prototype.hasOwnProperty.call(oe,Re)&&(q[Re]=oe[Re])})(pe,X)};function ce(pe,X){function q(){this.constructor=pe}Te(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function ye(pe,X,q,oe){return new(q||(q=Promise))(function(Re,de){function ot(Jn){try{Ln(oe.next(Jn))}catch(Zt){de(Zt)}}function Qt(Jn){try{Ln(oe.throw(Jn))}catch(Zt){de(Zt)}}function Ln(Jn){var Zt;Jn.done?Re(Jn.value):(Zt=Jn.value,Zt instanceof q?Zt:new q(function(En){En(Zt)})).then(ot,Qt)}Ln((oe=oe.apply(pe,X||[])).next())})}function Ee(pe,X){var q,oe,Re,de,ot={label:0,sent:function(){if(1&Re[0])throw Re[1];return Re[1]},trys:[],ops:[]};return de={next:Qt(0),throw:Qt(1),return:Qt(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function Qt(Ln){return function(Jn){return function(Zt){if(q)throw new TypeError("Generator is already executing.");for(;ot;)try{if(q=1,oe&&(Re=2&Zt[0]?oe.return:Zt[0]?oe.throw||((Re=oe.return)&&Re.call(oe),0):oe.next)&&!(Re=Re.call(oe,Zt[1])).done)return Re;switch(oe=0,Re&&(Zt=[2&Zt[0],Re.value]),Zt[0]){case 0:case 1:Re=Zt;break;case 4:return ot.label++,{value:Zt[1],done:!1};case 5:ot.label++,oe=Zt[1],Zt=[0];continue;case 7:Zt=ot.ops.pop(),ot.trys.pop();continue;default:if(!(Re=ot.trys,(Re=Re.length>0&&Re[Re.length-1])||Zt[0]!==6&&Zt[0]!==2)){ot=0;continue}if(Zt[0]===3&&(!Re||Zt[1]>Re[0]&&Zt[1]<Re[3])){ot.label=Zt[1];break}if(Zt[0]===6&&ot.label<Re[1]){ot.label=Re[1],Re=Zt;break}if(Re&&ot.label<Re[2]){ot.label=Re[2],ot.ops.push(Zt);break}Re[2]&&ot.ops.pop(),ot.trys.pop();continue}Zt=X.call(pe,ot)}catch(En){Zt=[6,En],oe=0}finally{q=Re=0}if(5&Zt[0])throw Zt[1];return{value:Zt[0]?Zt[1]:void 0,done:!0}}([Ln,Jn])}}}function ue(){for(var pe=0,X=0,q=arguments.length;X<q;X++)pe+=arguments[X].length;var oe=Array(pe),Re=0;for(X=0;X<q;X++)for(var de=arguments[X],ot=0,Qt=de.length;ot<Qt;ot++,Re++)oe[Re]=de[ot];return oe}var se=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(X,q){for(var oe=0,Re=q;oe<Re.length;oe++){var de=Re[oe],ot=de[0],Qt=de[1];X.setAttribute(ot,Qt)}},pe.createRect=function(X,q,oe){var Re=document.createElementNS("http://www.w3.org/2000/svg","rect");return Re.setAttribute("width",X.toString()),Re.setAttribute("height",q.toString()),oe&&pe.setAttributes(Re,oe),Re},pe.createLine=function(X,q,oe,Re,de){var ot=document.createElementNS("http://www.w3.org/2000/svg","line");return ot.setAttribute("x1",X.toString()),ot.setAttribute("y1",q.toString()),ot.setAttribute("x2",oe.toString()),ot.setAttribute("y2",Re.toString()),de&&pe.setAttributes(ot,de),ot},pe.createPolygon=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",X),q&&pe.setAttributes(oe,q),oe},pe.createCircle=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(X/2).toString()),oe.setAttribute("cy",(X/2).toString()),oe.setAttribute("r",X.toString()),q&&pe.setAttributes(oe,q),oe},pe.createEllipse=function(X,q,oe){var Re=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Re.setAttribute("cx",(X/2).toString()),Re.setAttribute("cy",(q/2).toString()),Re.setAttribute("rx",(X/2).toString()),Re.setAttribute("ry",(q/2).toString()),oe&&pe.setAttributes(Re,oe),Re},pe.createGroup=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","g");return X&&pe.setAttributes(q,X),q},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(X,q,oe,Re,de,ot,Qt){var Ln=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Ln,[["id",X],["orient",q],["markerWidth",oe.toString()],["markerHeight",Re.toString()],["refX",de.toString()],["refY",ot.toString()]]),Ln.appendChild(Qt),Ln},pe.createText=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","text");return q.setAttribute("x","0"),q.setAttribute("y","0"),X&&pe.setAttributes(q,X),q},pe.createTSpan=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=X,q&&pe.setAttributes(oe,q),oe},pe.createImage=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","image");return X&&pe.setAttributes(q,X),q},pe.createPoint=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=X,oe.y=q,oe},pe.createPath=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",X),q&&pe.setAttributes(oe,q),oe},pe}(),$=function(){function pe(){}return pe.addKey=function(X){pe.key=X},Object.defineProperty(pe,"isLicensed",{get:function(){return!!pe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(pe.key)},enumerable:!1,configurable:!0}),pe}(),me=function(){function pe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return pe.prototype.rasterize=function(X,q,oe){var Re=this;return new Promise(function(de){var ot=oe!==void 0?oe:document.createElement("canvas");X===null&&(Re.markersOnly=!0,Re.naturalSize=!1);var Qt=document.createElementNS("http://www.w3.org/2000/svg","svg");Qt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Qt.setAttribute("width",q.width.baseVal.valueAsString),Qt.setAttribute("height",q.height.baseVal.valueAsString),Qt.setAttribute("viewBox","0 0 "+q.viewBox.baseVal.width.toString()+" "+q.viewBox.baseVal.height.toString()),Qt.innerHTML=q.innerHTML,Re.naturalSize===!0?(Qt.width.baseVal.value=X.naturalWidth,Qt.height.baseVal.value=X.naturalHeight):Re.width!==void 0&&Re.height!==void 0&&(Qt.width.baseVal.value=Re.width,Qt.height.baseVal.value=Re.height),ot.width=Qt.width.baseVal.value,ot.height=Qt.height.baseVal.value;var Ln=Qt.outerHTML,Jn=ot.getContext("2d");Re.markersOnly!==!0&&Jn.drawImage(X,0,0,ot.width,ot.height);var Zt=window.URL,En=new Image(ot.width,ot.height);En.setAttribute("crossOrigin","anonymous");var fn=new Blob([Ln],{type:"image/svg+xml"}),Br=Zt.createObjectURL(fn);En.onload=function(){Jn.drawImage(En,0,0),Zt.revokeObjectURL(Br);var ra=ot.toDataURL(Re.imageType,Re.imageQuality);de(ra)},En.src=Br})},pe}(),re=function(){},ae=function(){function pe(X){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+X+"_"}return Object.defineProperty(pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),pe.prototype.addClass=function(X){return this.styleSheet===void 0&&this.addStyleSheet(),X.name=""+this.classNamePrefix+X.localName,this.classes.push(X),this.styleSheet.sheet.insertRule("."+X.name+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length),X},pe.prototype.addRule=function(X){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(X),this.styleSheet.sheet.insertRule(X.selector+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var X;this.styleSheet=document.createElement("style"),((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).appendChild(this.styleSheet),this.addRule(new we("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new we("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new we("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new le("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new le("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},pe.prototype.removeStyleSheet=function(){var X;this.styleSheet&&(((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),we=function(pe,X){this.selector=pe,this.style=X},le=function(pe,X){this.localName=pe,this.style=X},te=function(){function pe(X,q,oe,Re,de){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=X,this.displayMode=q,this.markerItems=oe,this.uiStyleSettings=Re,this.styles=de,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return pe.prototype.show=function(X){var q=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=X,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"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(de){var ot=document.createElement("div");ot.className=""+q.toolbarButtonStyleClass.name,ot.setAttribute("data-type-name",de.typeName),ot.innerHTML=de.icon,ot.addEventListener("click",function(){q.markerToolbarButtonClicked(ot,de)}),q.buttons.push(ot),q.markerButtons.push(ot)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Re=document.createElement("div");Re.className=this.toolbarBlockStyleClass.name,Re.style.whiteSpace="nowrap",Re.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Re),this.addActionButton(Re,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Re,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},pe.prototype.addButtonClickListener=function(X){this.buttonClickListeners.push(X)},pe.prototype.removeButtonClickListener=function(X){this.buttonClickListeners.indexOf(X)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(X),1)},pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},pe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var X=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var q=0;q<this.markerButtons.length;q++)q<X||q===X&&this.markerButtons.length-1===X?this.markerButtonBlock.appendChild(this.markerButtons[q]):(q===X&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[q]))}},pe.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},pe.prototype.resetButtonStyles=function(){var X=this;this.buttons.forEach(function(q){q.className=q.className.replace(X.uiStyleSettings.toolbarButtonStyleColorsClassName?X.uiStyleSettings.toolbarButtonStyleColorsClassName:X.toolbarButtonStyleColorsClass.name,"").trim(),q.className=q.className.replace(X.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?X.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:X.toolbarActiveButtonStyleColorsClass.name,"").trim(),q.className+=" "+(X.uiStyleSettings.toolbarButtonStyleColorsClassName?X.uiStyleSettings.toolbarButtonStyleColorsClassName:X.toolbarButtonStyleColorsClass.name)})},pe.prototype.addActionButton=function(X,q,oe){var Re=this,de=document.createElement("div");switch(de.className=""+this.toolbarButtonStyleClass.name,de.innerHTML=q,de.setAttribute("data-action",oe),de.addEventListener("click",function(){Re.actionToolbarButtonClicked(de,oe)}),oe){case"select":de.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":de.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":de.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":de.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":de.style.fill=this.uiStyleSettings.closeButtonColor}X.appendChild(de),this.buttons.push(de)},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new le("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new le("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new le("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new le("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new le("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var X=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new le("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*X)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*X)+`px;
padding: `+X+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new le("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new we("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new we("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},pe.prototype.markerToolbarButtonClicked=function(X,q){this.setActiveButton(X),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",q)}),this.markerButtonOverflowBlock.style.display="none"},pe.prototype.actionToolbarButtonClicked=function(X,q){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",q)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},pe.prototype.setActiveButton=function(X){this.resetButtonStyles(),X.className=X.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),X.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},pe.prototype.setActiveMarkerButton=function(X){var q=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===X});q&&this.setActiveButton(q)},pe.prototype.setCurrentMarker=function(X){var q=this;this.currentMarker=X,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){q.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},pe}(),Q=function(){function pe(X,q,oe,Re){this.panels=[],this.panelButtons=[],this.markerjsContainer=X,this.displayMode=q,this.uiStyleSettings=oe,this.styles=Re,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return pe.prototype.addStyles=function(){var X;this.toolboxStyleClass=this.styles.addClass(new le("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 le("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var q=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new le("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new le("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new le("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 le("toolbox-panel-row_colors",`
background-color: `+((X=this.uiStyleSettings.toolboxBackgroundColor)!==null&&X!==void 0?X:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new le("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*q)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*q)+`px;
padding: `+q+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new le("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new we("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new we("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},pe.prototype.show=function(X){var q;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=X,this.uiContainer.className=this.toolboxStyleClass.name+" "+((q=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&q!==void 0?q:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},pe.prototype.setPanelButtons=function(X){var q,oe,Re=this;this.panels=X,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((q=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&q!==void 0?q:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(de){var ot;de.uiStyleSettings=Re.uiStyleSettings;var Qt=document.createElement("div");Qt.className=Re.toolboxButtonStyleClass.name+" "+((ot=Re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ot!==void 0?ot:Re.toolboxButtonStyleColorsClass.name),Qt.innerHTML=de.icon,Qt.title=de.title,Qt.addEventListener("click",function(){Re.panelButtonClick(de)}),Re.panelButtons.push(Qt),Re.buttonRow.appendChild(Qt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},pe.prototype.panelButtonClick=function(X){var q=this,oe=-1;if(X!==this.activePanel){oe=this.panels.indexOf(X),this.panelRow.innerHTML="";var Re=X.getUi();Re.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Re),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=X}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){q.displayMode==="inline"?q.panelRow.style.display="none":q.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(de,ot){var Qt,Ln;de.className=q.toolboxButtonStyleClass.name+" "+(ot===oe?""+((Qt=q.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Qt!==void 0?Qt:q.toolboxActiveButtonStyleColorsClass.name):""+((Ln=q.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ln!==void 0?Ln:q.toolboxButtonStyleColorsClass.name))})},pe}(),J=function(pe,X){this.title=pe,this.icon=X},ve=function(pe){function X(q,oe,Re,de){var ot=pe.call(this,q,de||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ot.colors=[],ot.addTransparent=!1,ot.colorBoxes=[],ot.colors=oe,ot.currentColor=Re,ot.setCurrentColor=ot.setCurrentColor.bind(ot),ot.getColorBox=ot.getColorBox.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(Re){var de=q.getColorBox(Re);oe.appendChild(de),q.colorBoxes.push(de)}),oe},X.prototype.getColorBox=function(q){var oe=this,Re=this.uiStyleSettings.toolbarHeight/4,de=this.uiStyleSettings.toolbarHeight-Re,ot=document.createElement("div");ot.style.display="inline-block",ot.style.boxSizing="content-box",ot.style.width=de-2+"px",ot.style.height=de-2+"px",ot.style.padding="1px",ot.style.marginRight="2px",ot.style.marginBottom="2px",ot.style.borderWidth="2px",ot.style.borderStyle="solid",ot.style.borderRadius=(de+2)/2+"px",ot.style.borderColor=q===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ot.addEventListener("click",function(){oe.setCurrentColor(q,ot)});var Qt=document.createElement("div");return Qt.style.display="inline-block",Qt.style.width=de-2+"px",Qt.style.height=de-2+"px",Qt.style.backgroundColor=q,Qt.style.borderRadius=de/2+"px",q==="transparent"&&(Qt.style.fill=this.uiStyleSettings.toolboxAccentColor,Qt.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ot.appendChild(Qt),ot},X.prototype.setCurrentColor=function(q,oe){var Re=this;this.currentColor=q,this.colorBoxes.forEach(function(de){de.style.borderColor=de===oe?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(q)},X}(J),_e=function(){function pe(X,q,oe){this._state="new",this._isSelected=!1,this._container=X,this._overlayContainer=q,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(pe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(X){return!1},Object.defineProperty(pe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),pe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},pe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},pe.prototype.pointerDown=function(X,q){},pe.prototype.dblClick=function(X,q){},pe.prototype.manipulate=function(X){},pe.prototype.pointerUp=function(X){this.stateChanged()},pe.prototype.dispose=function(){},pe.prototype.addMarkerVisualToContainer=function(X){this.container.childNodes.length>0?this.container.insertBefore(X,this.container.childNodes[0]):this.container.appendChild(X)},pe.prototype.getState=function(){return{typeName:pe.typeName,state:this.state,notes:this.notes}},pe.prototype.restoreState=function(X){this._state=X.state,this.notes=X.notes},pe.prototype.scale=function(X,q){},pe.prototype.colorChanged=function(X){this.onColorChanged&&this.onColorChanged(X),this.stateChanged()},pe.prototype.fillColorChanged=function(X){this.onFillColorChanged&&this.onFillColorChanged(X),this.stateChanged()},pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var X=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),X.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(X)&&this.onStateChanged(this)}},pe.typeName="MarkerBase",pe}(),Oe=function(){function pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return pe.prototype.findGripByVisual=function(X){return this.topLeft.ownsTarget(X)?this.topLeft:this.topCenter.ownsTarget(X)?this.topCenter:this.topRight.ownsTarget(X)?this.topRight:this.centerLeft.ownsTarget(X)?this.centerLeft:this.centerRight.ownsTarget(X)?this.centerRight:this.bottomLeft.ownsTarget(X)?this.bottomLeft:this.bottomCenter.ownsTarget(X)?this.bottomCenter:this.bottomRight.ownsTarget(X)?this.bottomRight:void 0},pe}(),Xe=function(){function pe(){this.GRIP_SIZE=10,this.visual=se.createGroup(),this.visual.appendChild(se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(se.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe}(),tt=function(){function pe(){}return pe.toITransformMatrix=function(X){return{a:X.a,b:X.b,c:X.c,d:X.d,e:X.e,f:X.f}},pe.toSVGMatrix=function(X,q){return X.a=q.a,X.b=q.b,X.c=q.c,X.d=q.d,X.e=q.e,X.f=q.f,X},pe}(),lt=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.left=0,de.top=0,de.width=0,de.height=0,de.defaultSize={x:50,y:20},de.offsetX=0,de.offsetY=0,de.rotationAngle=0,de.CB_DISTANCE=10,de._suppressMarkerCreateEvent=!1,de.container.transform.baseVal.appendItem(se.createTransform()),de.setupControlBox(),de}return ce(X,pe),Object.defineProperty(X.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"visual",{get:function(){return this._visual},set:function(q){this._visual=q;var oe=se.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!!(this.controlGrips.findGripByVisual(q)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.left=q.x,this.top=q.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Re=this.unrotatePoint(q);if(this.manipulationStartX=Re.x,this.manipulationStartY=Re.y,this.offsetX=Re.x-this.left,this.offsetY=Re.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var de=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=de.x-this.width/2,this.top=de.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ot=this.container.transform.baseVal.getItem(0);ot.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ot,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},X.prototype.moveVisual=function(q){this.visual.style.transform="translate("+q.x+"px, "+q.y+"px)"},X.prototype.manipulate=function(q){var oe=this.unrotatePoint(q);this.state==="creating"?this.resize(q):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(q)},X.prototype.resize=function(q){var oe=this.manipulationStartLeft,Re=this.manipulationStartWidth,de=this.manipulationStartTop,ot=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+q.x-this.manipulationStartX,Re=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Re=this.manipulationStartWidth+q.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:de=this.manipulationStartTop+q.y-this.manipulationStartY,ot=this.manipulationStartHeight+this.manipulationStartTop-de;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ot=this.manipulationStartHeight+q.y-this.manipulationStartY}Re>=0?(this.left=oe,this.width=Re):(this.left=oe+Re,this.width=-Re),ot>=0?(this.top=de,this.height=ot):(this.top=de+ot,this.height=-ot),this.setSize()},X.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},X.prototype.rotate=function(q){if(Math.abs(q.x-this.centerX)>.1){var oe=Math.sign(q.x-this.centerX);this.rotationAngle=180*Math.atan((q.y-this.centerY)/(q.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},X.prototype.applyRotation=function(){var q=this.container.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(q,0)},X.prototype.rotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM(),Re=se.createPoint(q.x,q.y);return{x:(Re=Re.matrixTransform(oe)).x,y:Re.y}},X.prototype.unrotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM();oe=oe.inverse();var Re=se.createPoint(q.x,q.y);return{x:(Re=Re.matrixTransform(oe)).x,y:Re.y}},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=se.createGroup();var q=se.createTransform();q.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(q),this.container.appendChild(this.controlBox),this.controlRect=se.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=se.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 Oe,this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){var q=this.controlBox.transform.baseVal.getItem(0);q.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(q,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()},X.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()},X.prototype.createGrip=function(){var q=new Xe;return q.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.controlGrips.topLeft.GRIP_SIZE,oe=-q/2,Re=oe,de=(this.width+this.CB_DISTANCE)/2-q/2,ot=(this.height+this.CB_DISTANCE)/2-q/2,Qt=this.height+this.CB_DISTANCE-q/2,Ln=this.width+this.CB_DISTANCE-q/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,Re),this.positionGrip(this.controlGrips.topCenter.visual,de,Re),this.positionGrip(this.controlGrips.topRight.visual,Ln,Re),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ot),this.positionGrip(this.controlGrips.centerRight.visual,Ln,ot),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Qt),this.positionGrip(this.controlGrips.bottomCenter.visual,de,Qt),this.positionGrip(this.controlGrips.bottomRight.visual,Ln,Qt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,de,Re-3*this.CB_DISTANCE)},X.prototype.positionGrip=function(q,oe,Re){var de=q.transform.baseVal.getItem(0);de.setTranslate(oe,Re),q.transform.baseVal.replaceItem(de,0)},X.prototype.hideControlBox=function(){this.controlBox.style.display="none"},X.prototype.showControlBox=function(){this.controlBox.style.display=""},X.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:tt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:tt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe);var Re=this.rotatePoint({x:this.left,y:this.top}),de=this.unrotatePoint({x:Re.x*q,y:Re.y*oe});this.left=de.x,this.top=de.y,this.width=this.width*q,this.height=this.height*oe,this.adjustControlBox()},X}(_e),dt=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.fillColor="transparent",de.strokeColor="transparent",de.strokeWidth=0,de.strokeDasharray="",de.opacity=1,de.setStrokeColor=de.setStrokeColor.bind(de),de.setFillColor=de.setFillColor.bind(de),de.setStrokeWidth=de.setStrokeWidth.bind(de),de.setStrokeDasharray=de.setStrokeDasharray.bind(de),de.createVisual=de.createVisual.bind(de),de}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual)},X.prototype.createVisual=function(){this.visual=se.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.setSize()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){pe.prototype.pointerUp.call(this,q),this.setSize()},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},X.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){var oe=q;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize()},X.title="Rectangle marker",X}(lt),vt=function(pe){function X(q,oe,Re,de){var ot=pe.call(this,q,de||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ot.widths=[],ot.widthBoxes=[],ot.widths=oe,ot.currentWidth=Re,ot.setCurrentWidth=ot.setCurrentWidth.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(Re){var de=document.createElement("div");de.style.display="flex",de.style.flexGrow="2",de.style.alignItems="center",de.style.justifyContent="space-between",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.borderColor=Re===q.currentWidth?q.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){q.setCurrentWidth(Re,de)}),oe.appendChild(de);var ot=document.createElement("div");ot.innerText=Re.toString(),ot.style.marginRight="5px",de.appendChild(ot);var Qt=document.createElement("div");Qt.style.minHeight="20px",Qt.style.flexGrow="2",Qt.style.display="flex",Qt.style.alignItems="center";var Ln=document.createElement("hr");Ln.style.minWidth="20px",Ln.style.border="0px",Ln.style.borderTop=Re+"px solid "+q.uiStyleSettings.toolboxColor,Ln.style.flexGrow="2",Qt.appendChild(Ln),de.appendChild(Qt),q.widthBoxes.push(de)}),oe},X.prototype.setCurrentWidth=function(q,oe){var Re=this;this.currentWidth=q,this.widthBoxes.forEach(function(de){de.style.borderColor=de===oe?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},X}(J),_t=function(pe){function X(q,oe,Re,de){var ot=pe.call(this,q,de||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ot.styles=[],ot.styleBoxes=[],ot.styles=oe,ot.currentStyle=Re,ot.setCurrentStyle=ot.setCurrentStyle.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(Re){var de=document.createElement("div");de.style.display="flex",de.style.alignItems="center",de.style.justifyContent="space-between",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.overflow="hidden",de.style.maxWidth=100/q.styles.length-5+"%",de.style.borderColor=Re===q.currentStyle?q.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){q.setCurrentStyle(Re,de)}),oe.appendChild(de);var ot=document.createElement("div");ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.overflow="hidden";var Qt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+q.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Re!==""?'stroke-dasharray="'+Re+'"':"")+` />
</svg>`;ot.innerHTML=Qt,de.appendChild(ot),q.styleBoxes.push(de)}),oe},X.prototype.setCurrentStyle=function(q,oe){var Re=this;this.currentStyle=q,this.styleBoxes.forEach(function(de){de.style.borderColor=de===oe?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},X}(J),Ye=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.strokeColor=Re.defaultColor,de.strokeWidth=Re.defaultStrokeWidth,de.strokeDasharray=Re.defaultStrokeDasharray,de.strokePanel=new ve("Line color",Re.defaultColorSet,Re.defaultColor),de.strokePanel.onColorChanged=de.setStrokeColor,de.strokeWidthPanel=new vt("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),de.strokeWidthPanel.onWidthChanged=de.setStrokeWidth,de.strokeStylePanel=new _t("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),de.strokeStylePanel.onStyleChanged=de.setStrokeDasharray,de}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="FrameMarker",X.title="Frame marker",X.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',X}(dt),je=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},ht=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.x1=0,de.y1=0,de.x2=0,de.y2=0,de.defaultLength=50,de.manipulationStartX=0,de.manipulationStartY=0,de.manipulationStartX1=0,de.manipulationStartY1=0,de.manipulationStartX2=0,de.manipulationStartY2=0,de.setupControlBox(),de}return ce(X,pe),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!(!this.grip1.ownsTarget(q)&&!this.grip2.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartX=q.x,this.manipulationStartY=q.y,this.state==="new"&&(this.x1=q.x,this.y1=q.y,this.x2=q.x,this.y2=q.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(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),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(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},X.prototype.adjustVisual=function(){},X.prototype.manipulate=function(q){this.state==="creating"?this.resize(q):this.state==="move"?(this.x1=this.manipulationStartX1+q.x-this.manipulationStartX,this.y1=this.manipulationStartY1+q.y-this.manipulationStartY,this.x2=this.manipulationStartX2+q.x-this.manipulationStartX,this.y2=this.manipulationStartY2+q.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(q)},X.prototype.resize=function(q){switch(this.activeGrip){case this.grip1:this.x1=q.x,this.y1=q.y;break;case this.grip2:case void 0:this.x2=q.x,this.y2=q.y}this.adjustVisual(),this.adjustControlBox()},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){this.positionGrips()},X.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},X.prototype.createGrip=function(){var q=new Xe;return q.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-q/2,this.y1-q/2),this.positionGrip(this.grip2.visual,this.x2-q/2,this.y2-q/2)},X.prototype.positionGrip=function(q,oe,Re){var de=q.transform.baseVal.getItem(0);de.setTranslate(oe,Re),q.transform.baseVal.replaceItem(de,0)},X.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.x1=this.x1*q,this.y1=this.y1*oe,this.x2=this.x2*q,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},X}(_e),Bt=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.strokeColor="transparent",de.strokeWidth=0,de.strokeDasharray="",de.setStrokeColor=de.setStrokeColor.bind(de),de.setStrokeWidth=de.setStrokeWidth.bind(de),de.setStrokeDasharray=de.setStrokeDasharray.bind(de),de.strokeColor=Re.defaultColor,de.strokeWidth=Re.defaultStrokeWidth,de.strokeDasharray=Re.defaultStrokeDasharray,de.strokePanel=new ve("Line color",Re.defaultColorSet,Re.defaultColor),de.strokePanel.onColorChanged=de.setStrokeColor,de.strokeWidthPanel=new vt("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),de.strokeWidthPanel.onWidthChanged=de.setStrokeWidth,de.strokeStylePanel=new _t("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),de.strokeStylePanel.onStyleChanged=de.setStrokeDasharray,de}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorLine&&q!==this.visibleLine)},X.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorLine=se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=se.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},X.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()),se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},X.typeName="LineMarker",X.title="Line marker",X.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',X}(ht),Et=function(pe){function X(q,oe,Re,de){var ot=pe.call(this,q,de||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ot.fonts=[],ot.fontBoxes=[],ot.fonts=oe,ot.currentFont=Re,ot.setCurrentFont=ot.setCurrentFont.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(Re){var de=document.createElement("div");de.style.display="inline-block",de.style.alignItems="center",de.style.justifyContent="space-between",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.overflow="hidden",de.style.maxWidth=100/q.fonts.length-5+"%",de.style.borderColor=Re===q.currentFont?q.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){q.setCurrentFont(Re,de)}),oe.appendChild(de);var ot=document.createElement("div");ot.style.display="flex",ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.fontFamily=Re,ot.style.overflow="hidden";var Qt=document.createElement("div");Qt.style.whiteSpace="nowrap",Qt.style.overflow="hidden",Qt.style.textOverflow="ellipsis",Qt.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Qt),de.appendChild(ot),q.fontBoxes.push(de)}),oe},X.prototype.setCurrentFont=function(q,oe){var Re=this;this.currentFont=q,this.fontBoxes.forEach(function(de){de.style.borderColor=de===oe?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},X}(J),Pt=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.color="transparent",de.padding=5,de.DEFAULT_TEXT="your text here",de.text=de.DEFAULT_TEXT,de.isMoved=!1,de.color=Re.defaultColor,de.fontFamily=Re.defaultFontFamily,de.defaultSize={x:100,y:30},de.setColor=de.setColor.bind(de),de.setFont=de.setFont.bind(de),de.renderText=de.renderText.bind(de),de.sizeText=de.sizeText.bind(de),de.textEditDivClicked=de.textEditDivClicked.bind(de),de.showTextEditor=de.showTextEditor.bind(de),de.setSize=de.setSize.bind(de),de.positionTextEditor=de.positionTextEditor.bind(de),de.colorPanel=new ve("Color",Re.defaultColorSet,Re.defaultColor),de.colorPanel.onColorChanged=de.setColor,de.fontFamilyPanel=new Et("Font",Re.defaultFontFamilies,Re.defaultFontFamily),de.fontFamilyPanel.onFontChanged=de.setFont,de}return ce(X,pe),X.prototype.ownsTarget=function(q){if(pe.prototype.ownsTarget.call(this,q)||q===this.visual||q===this.textElement||q===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(Re){Re===q&&(oe=!0)}),oe},X.prototype.createVisual=function(){this.visual=se.createGroup(),this.bgRectangle=se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.isMoved=!1,this.pointerDownPoint=q,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.renderText=function(){var q=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(oe){q.textElement.appendChild(se.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},X.prototype.getTextScale=function(){var q=this.textElement.getBBox(),oe=1;if(q.width>0&&q.height>0){var Re=(1*this.width-this.width*this.padding*2/100)/q.width,de=(1*this.height-this.height*this.padding*2/100)/q.height;oe=Math.min(Re,de)}return oe},X.prototype.getTextPosition=function(q){var oe=this.textElement.getBBox(),Re=0,de=0;return oe.width>0&&oe.height>0&&(Re=(this.width-oe.width*q)/2,de=this.height/2-oe.height*q/2),{x:Re,y:de}},X.prototype.sizeText=function(){var q=this.textElement.getBBox(),oe=this.getTextScale(),Re=this.getTextPosition(oe);Re.y-=q.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Re.x+"px, "+Re.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Re.x,Re.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(q.x-this.pointerDownPoint.x)>5||Math.abs(q.y-this.pointerDownPoint.y)>5)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.isMoved=!0,this.setSize(),this.sizeText()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},X.prototype.pointerUp=function(q){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),pe.prototype.pointerUp.call(this,q),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},X.prototype.showTextEditor=function(){var q=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(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(q.textEditor.style.fontSize);q.textEditor.clientWidth>=Number.parseInt(q.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,q.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var Re=oe.clipboardData.getData("text"),de=window.getSelection();if(!de.rangeCount)return!1;de.deleteFromDocument(),de.getRangeAt(0).insertNode(document.createTextNode(Re)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){q.textEditDivClicked(q.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},X.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var q=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Re=this.textElement.getBBox(),de={x:Re.width*q,y:Re.height*q};oe.x-=de.x/2,oe.y-=de.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*q,12)+"px",this.textElement.style.display="none"}},X.prototype.textEditDivClicked=function(q){this.text=q.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},X.prototype.select=function(){pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},X.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),pe.prototype.deselect.call(this)},X.prototype.dblClick=function(q,oe){pe.prototype.dblClick.call(this,q,oe),this.showTextEditor()},X.prototype.setColor=function(q){this.textElement&&se.setAttributes(this.textElement,[["fill",q]]),this.color=q,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(q)},X.prototype.setFont=function(q){this.textElement&&se.setAttributes(this.textElement,[["font-family",q]]),this.fontFamily=q,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},X.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},X.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},X.typeName="TextMarker",X.title="Text marker",X.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',X}(lt),Ze=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.color="transparent",de.lineWidth=3,de.drawing=!1,de.pixelRatio=1,de.color=Re.defaultColor,de.lineWidth=Re.defaultStrokeWidth,de.pixelRatio=Re.freehandPixelRatio,de.setColor=de.setColor.bind(de),de.addCanvas=de.addCanvas.bind(de),de.finishCreation=de.finishCreation.bind(de),de.setLineWidth=de.setLineWidth.bind(de),de.colorPanel=new ve("Color",Re.defaultColorSet,Re.defaultColor),de.colorPanel.onColorChanged=de.setColor,de.lineWidthPanel=new vt("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),de.lineWidthPanel.onWidthChanged=de.setLineWidth,de}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.drawingImage)},X.prototype.createVisual=function(){this.visual=se.createGroup(),this.drawingImage=se.createImage(),this.visual.appendChild(this.drawingImage);var q=se.createTransform();this.visual.transform.baseVal.appendItem(q),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,oe){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(q.x,q.y),this.drawing=!0):pe.prototype.pointerDown.call(this,q,oe)},X.prototype.manipulate=function(q){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(q.x,q.y),this.canvasContext.stroke()):pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):pe.prototype.pointerUp.call(this,q)},X.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)},X.prototype.select=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.select.call(this)},X.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.deselect.call(this)},X.prototype.finishCreation=function(){for(var q=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Re=oe[0],de=oe[1],ot=oe[2],Qt=oe[3],Ln=!1,Jn=0;Jn<this.canvasElement.height;Jn++)for(var Zt=0;Zt<this.canvasElement.width;Zt++)q.data[Jn*this.canvasElement.width*4+4*Zt+3]>0&&(Ln=!0,Jn<de&&(de=Jn),Zt<Re&&(Re=Zt),Jn>Qt&&(Qt=Jn),Zt>ot&&(ot=Zt));if(Ln){this.left=Re/this.pixelRatio,this.top=de/this.pixelRatio,this.width=(ot-Re)/this.pixelRatio,this.height=(Qt-de)/this.pixelRatio;var En=document.createElement("canvas");En.width=ot-Re,En.height=Qt-de,En.getContext("2d").putImageData(this.canvasContext.getImageData(Re,de,ot-Re,Qt-de),0,0),this.drawingImgUrl=En.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},X.prototype.setDrawingImage=function(){se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},X.prototype.setColor=function(q){this.color=q,this.colorChanged(q)},X.prototype.setLineWidth=function(q){this.lineWidth=q},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({drawingImgUrl:this.drawingImgUrl},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){this.createVisual(),pe.prototype.restoreState.call(this,q),this.drawingImgUrl=q.drawingImgUrl,this.setDrawingImage()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setDrawingImage()},X.typeName="FreehandMarker",X.title="Freehand marker",X.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',X}(lt),We=function(pe){function X(q,oe,Re){var de=pe.call(this,q,Re||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return de.typeBoxes=[],de.currentType=oe,de.setCurrentType=de.setCurrentType.bind(de),de}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var Re=function(Qt){var Ln="both";switch(Qt){case 0:Ln="both";break;case 1:Ln="start";break;case 2:Ln="end";break;case 3:Ln="none"}var Jn=document.createElement("div");if(Jn.style.display="flex",Jn.style.flexGrow="2",Jn.style.alignItems="center",Jn.style.justifyContent="space-between",Jn.style.padding="5px",Jn.style.borderWidth="2px",Jn.style.borderStyle="solid",Jn.style.borderColor=Ln===de.currentType?de.uiStyleSettings.toolboxAccentColor:"transparent",Jn.addEventListener("click",function(){q.setCurrentType(Ln,Jn)}),oe.appendChild(Jn),Ln==="both"||Ln==="start"){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.minHeight="20px",Zt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Zt.style.marginLeft="5px",Jn.appendChild(Zt)}var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.style.flexGrow="2";var fn=document.createElement("hr");if(fn.style.minWidth="20px",fn.style.border="0px",fn.style.borderTop="3px solid "+(de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxColor:"#eeeeee"),fn.style.flexGrow="2",En.appendChild(fn),Jn.appendChild(En),Ln==="both"||Ln==="end"){var Br=document.createElement("div");Br.style.display="flex",Br.style.alignItems="center",Br.style.minHeight="20px",Br.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Br.style.marginRight="5px",Jn.appendChild(Br)}de.typeBoxes.push(Jn)},de=this,ot=0;ot<4;ot++)Re(ot);return oe},X.prototype.setCurrentType=function(q,oe){var Re=this;this.currentType=q,this.typeBoxes.forEach(function(de){de.style.borderColor=de===oe?Re.uiStyleSettings!==void 0?Re.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},X}(J),Je=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.arrowType="end",de.arrowBaseHeight=10,de.arrowBaseWidth=10,de.getArrowPoints=de.getArrowPoints.bind(de),de.setArrowType=de.setArrowType.bind(de),de.arrowTypePanel=new We("Arrow type","end"),de.arrowTypePanel.onArrowTypeChanged=de.setArrowType,de}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.arrow1&&q!==this.arrow2)},X.prototype.getArrowPoints=function(q,oe){var Re=this.arrowBaseWidth+2*this.strokeWidth,de=this.arrowBaseHeight+2*this.strokeWidth;return q-Re/2+","+(oe+de/2)+" "+q+","+(oe-de/2)+" "+(q+Re/2)+","+(oe+de/2)},X.prototype.createTips=function(){this.arrow1=se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow2)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"&&this.createTips()},X.prototype.adjustVisual=function(){if(pe.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",se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),se.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var q=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(q,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var Re=this.arrow2.transform.baseVal.getItem(0);Re.setRotate(q+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Re,0)}},X.prototype.setArrowType=function(q){this.arrowType=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({arrowType:this.arrowType},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},X.typeName="ArrowMarker",X.title="Arrow marker",X.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',X}(Bt),Ae=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.fillColor=Re.defaultFillColor,de.strokeWidth=0,de.fillPanel=new ve("Color",Re.defaultColorSet,Re.defaultFillColor),de.fillPanel.onColorChanged=de.setFillColor,de}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="CoverMarker",X.title="Cover marker",X.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',X}(dt),Ue=function(pe){function X(q,oe,Re,de){var ot=pe.call(this,q,de||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ot.opacities=[],ot.opacityBoxes=[],ot.opacities=oe,ot.currentOpacity=Re,ot.setCurrentOpacity=ot.setCurrentOpacity.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(Re){var de=document.createElement("div");de.style.display="flex",de.style.alignItems="center",de.style.justifyContent="center",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.borderColor=Re===q.currentOpacity?q.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){q.setCurrentOpacity(Re,de)}),oe.appendChild(de);var ot=document.createElement("div");ot.innerText=100*Re+"%",de.appendChild(ot),q.opacityBoxes.push(de)}),oe},X.prototype.setCurrentOpacity=function(q,oe){var Re=this;this.currentOpacity=q,this.opacityBoxes.forEach(function(de){de.style.borderColor=de===oe?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},X}(J),He=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.setOpacity=de.setOpacity.bind(de),de.fillColor=Re.defaultHighlightColor,de.strokeWidth=0,de.opacity=Re.defaultHighlightOpacity,de.fillPanel=new ve("Color",Re.defaultColorSet,de.fillColor),de.fillPanel.onColorChanged=de.setFillColor,de.opacityPanel=new Ue("Opacity",Re.defaultOpacitySteps,de.opacity),de.opacityPanel.onOpacityChanged=de.setOpacity,de}return ce(X,pe),X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="HighlightMarker",X.title="Highlight marker",X.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',X}(Ae),Fe='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',et=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.bgColor="transparent",de.tipPosition={x:0,y:0},de.tipBase1Position={x:0,y:0},de.tipBase2Position={x:0,y:0},de.tipMoving=!1,de.color=Re.defaultStrokeColor,de.bgColor=Re.defaultFillColor,de.fontFamily=Re.defaultFontFamily,de.defaultSize={x:100,y:30},de.setBgColor=de.setBgColor.bind(de),de.getTipPoints=de.getTipPoints.bind(de),de.positionTip=de.positionTip.bind(de),de.setTipPoints=de.setTipPoints.bind(de),de.colorPanel=new ve("Text color",Re.defaultColorSet,de.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),de.colorPanel.onColorChanged=de.setColor,de.bgColorPanel=new ve("Fill color",Re.defaultColorSet,de.bgColor,Fe),de.bgColorPanel.onColorChanged=de.setBgColor,de.fontFamilyPanel=new Et("Font",Re.defaultFontFamilies,Re.defaultFontFamily),de.fontFamilyPanel.onFontChanged=de.setFont,de.tipGrip=new Xe,de.tipGrip.visual.transform.baseVal.appendItem(se.createTransform()),de.controlBox.appendChild(de.tipGrip.visual),de}return ce(X,pe),X.prototype.ownsTarget=function(q){return pe.prototype.ownsTarget.call(this,q)||this.tipGrip.ownsTarget(q)||this.tip===q},X.prototype.createTip=function(){se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=se.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},X.prototype.pointerDown=function(q,oe){this.state==="new"&&pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):pe.prototype.pointerDown.call(this,q,oe)},X.prototype.pointerUp=function(q){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,pe.prototype.pointerUp.call(this,q);else{var oe=this.state==="creating";pe.prototype.pointerUp.call(this,q),this.setTipPoints(oe),this.positionTip()}},X.prototype.manipulate=function(q){if(this.tipMoving){var oe=this.unrotatePoint(q);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else pe.prototype.manipulate.call(this,q)},X.prototype.setBgColor=function(q){this.bgRectangle&&this.tip&&(se.setAttributes(this.bgRectangle,[["fill",q]]),se.setAttributes(this.tip,[["fill",q]])),this.bgColor=q,this.fillColorChanged(q)},X.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},X.prototype.setTipPoints=function(q){q===void 0&&(q=!1);var oe=Math.min(this.height/2,15),Re=this.height/5;q&&(this.tipPosition={x:oe+Re/2,y:this.height+20});var de=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?de<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Re=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+Re,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+Re}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?de<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Re=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-Re,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+Re}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?de<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Re=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-Re,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-Re},this.tipBase2Position={x:this.width,y:this.height-oe}):de<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Re=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+Re,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-Re})},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.positionTip()},X.prototype.positionTip=function(){se.setAttributes(this.tip,[["points",this.getTipPoints()]]);var q=this.tipGrip.visual.transform.baseVal.getItem(0);q.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(q,0)},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),X.prototype.select=function(){this.positionTip(),pe.prototype.select.call(this)},X.prototype.getState=function(){var q=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,pe.prototype.restoreState.call(this,q),this.createTip(),this.setTipPoints()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.tipPosition={x:this.tipPosition.x*q,y:this.tipPosition.y*oe},this.positionTip()},X.typeName="CalloutMarker",X.title="Callout marker",X.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',X}(Pt),mt=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.fillColor="transparent",de.strokeColor="transparent",de.strokeWidth=0,de.strokeDasharray="",de.opacity=1,de.strokeColor=Re.defaultColor,de.strokeWidth=Re.defaultStrokeWidth,de.strokeDasharray=Re.defaultStrokeDasharray,de.fillColor=Re.defaultFillColor,de.setStrokeColor=de.setStrokeColor.bind(de),de.setFillColor=de.setFillColor.bind(de),de.setStrokeWidth=de.setStrokeWidth.bind(de),de.setStrokeDasharray=de.setStrokeDasharray.bind(de),de.setOpacity=de.setOpacity.bind(de),de.createVisual=de.createVisual.bind(de),de.strokePanel=new ve("Line color",ue(Re.defaultColorSet,["transparent"]),Re.defaultColor),de.strokePanel.onColorChanged=de.setStrokeColor,de.fillPanel=new ve("Fill color",ue(Re.defaultColorSet,["transparent"]),de.fillColor,Fe),de.fillPanel.onColorChanged=de.setFillColor,de.strokeWidthPanel=new vt("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),de.strokeWidthPanel.onWidthChanged=de.setStrokeWidth,de.strokeStylePanel=new _t("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),de.strokeStylePanel.onStyleChanged=de.setStrokeDasharray,de.opacityPanel=new Ue("Opacity",Re.defaultOpacitySteps,de.opacity),de.opacityPanel.onOpacityChanged=de.setOpacity,de}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual)},X.prototype.createVisual=function(){this.visual=se.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.setSize()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),se.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},X.prototype.pointerUp=function(q){pe.prototype.pointerUp.call(this,q),this.setSize()},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(q),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize()},X.typeName="EllipseMarker",X.title="Ellipse marker",X.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',X}(lt),Lt=function(pe){function X(q,oe,Re){return pe.call(this,q,oe,Re)||this}return ce(X,pe),Object.defineProperty(X.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.tip1&&q!==this.tip2)},X.prototype.createTips=function(){this.tip1=se.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(se.createTransform()),this.visual.appendChild(this.tip1),this.tip2=se.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(se.createTransform()),this.visual.appendChild(this.tip2)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"&&this.createTips()},X.prototype.adjustVisual=function(){if(pe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(se.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()]]),se.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 q=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(q,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var Re=this.tip2.transform.baseVal.getItem(0);Re.setRotate(q+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Re,0)}},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q),this.createTips(),this.adjustVisual()},X.typeName="MeasurementMarker",X.title="Measurement marker",X.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',X}(Bt),Xt=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.strokePanel.colors=Re.defaultColorSet,de.fillColor="transparent",de}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="EllipseFrameMarker",X.title="Ellipse frame marker",X.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',X}(mt),rn=function(){function pe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),pe.prototype.addUndoStep=function(X){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(X)||(this.undoStack.push(X),JSON.stringify(this.lastRedoStep)!==JSON.stringify(X)&&this.redoStack.splice(0,this.redoStack.length))},pe.prototype.replaceLastUndoStep=function(X){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=X)},pe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},pe.prototype.undo=function(){if(this.undoStack.length>1){var X=this.undoStack.pop();return X!==void 0&&this.redoStack.push(X),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},pe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},pe}(),wt=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe,Re)||this;return de.strokeColor="transparent",de.strokeWidth=0,de.strokeDasharray="",de.curveX=0,de.curveY=0,de.manipulationStartCurveX=0,de.manipulationStartCurveY=0,de.setStrokeColor=de.setStrokeColor.bind(de),de.setStrokeWidth=de.setStrokeWidth.bind(de),de.setStrokeDasharray=de.setStrokeDasharray.bind(de),de.positionGrips=de.positionGrips.bind(de),de.addControlGrips=de.addControlGrips.bind(de),de.adjustVisual=de.adjustVisual.bind(de),de.setupControlBox=de.setupControlBox.bind(de),de.resize=de.resize.bind(de),de.strokeColor=Re.defaultColor,de.strokeWidth=Re.defaultStrokeWidth,de.strokeDasharray=Re.defaultStrokeDasharray,de.strokePanel=new ve("Line color",Re.defaultColorSet,Re.defaultColor),de.strokePanel.onColorChanged=de.setStrokeColor,de.strokeWidthPanel=new vt("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),de.strokeWidthPanel.onWidthChanged=de.setStrokeWidth,de.strokeStylePanel=new _t("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),de.strokeStylePanel.onStyleChanged=de.setStrokeDasharray,de}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorCurve&&q!==this.visibleCurve&&!this.curveGrip.ownsTarget(q))},X.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},X.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorCurve=se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=se.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=q.x,this.curveY=q.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},X.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setupControlBox=function(){pe.prototype.setupControlBox.call(this),this.curveControlLine1=se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=se.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)},X.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,pe.prototype.addControlGrips.call(this)},X.prototype.positionGrips=function(){pe.prototype.positionGrips.call(this);var q=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-q/2,this.curveY-q/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()))},X.prototype.manipulate=function(q){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+q.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+q.y-this.manipulationStartY),pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){this.activeGrip===this.curveGrip&&(this.curveX=q.x,this.curveY=q.y),pe.prototype.resize.call(this,q),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual()},X.prototype.scale=function(q,oe){this.curveX=this.curveX*q,this.curveY=this.curveY*oe,pe.prototype.scale.call(this,q,oe)},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},X.typeName="CurveMarker",X.title="Curve marker",X.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',X}(ht),bt=function(){function pe(X,q){q===void 0&&(q=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=X,this.cancelable=q}return Object.defineProperty(pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),pe.prototype.preventDefault=function(){this._defaultPrevented=!0},pe}(),ke=function(pe){function X(q,oe,Re){var de=pe.call(this,q,!1)||this;return de.dataUrl=oe,de.state=Re,de}return ce(X,pe),X}(bt),nt=function(pe){function X(q,oe,Re){Re===void 0&&(Re=!1);var de=pe.call(this,q,Re)||this;return de.marker=oe,de}return ce(X,pe),X}(bt),rt=function(){function pe(){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 pe.prototype.addEventListener=function(X,q){this[X].push(q)},pe.prototype.removeEventListener=function(X,q){var oe=this[X].indexOf(q);oe>-1&&this[X].splice(oe,1)},pe}(),De=function(){function pe(X){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new je,this._isOpen=!1,this.undoRedoManager=new rn,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 rt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=pe.instanceCounter++,this.styles=new ae(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=X,this.targetRoot=document.body,this.width=X.clientWidth,this.height=X.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(pe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ye,Ze,Je,Pt,Xt,mt,He,et,Lt,Ae,Bt,wt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ye,Ze,Je,Pt,mt,He,et]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ye,Ze,Je,Pt,He]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(X){var q=this;this._availableMarkerTypes.splice(0),X.forEach(function(oe){if(typeof oe=="string"){var Re=q.ALL_MARKER_TYPES.find(function(de){return de.typeName===oe});Re!==void 0&&q._availableMarkerTypes.push(Re)}else q._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(X){this._zoomLevel=X,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(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),pe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),$.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},pe.prototype.show=function(){var X=this;this.styles.styleSheetRoot===void 0&&re.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=re.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(q){return q(new bt(X))})},pe.prototype.render=function(){return ye(this,void 0,void 0,function(){var X;return Ee(this,function(q){switch(q.label){case 0:return this.setCurrentMarker(),(X=new me).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.markersOnly=this.renderMarkersOnly,X.width=this.renderWidth,X.height=this.renderHeight,[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return q.sent(),[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,q.sent()]}})})},pe.prototype.close=function(X){var q=this;if(X===void 0&&(X=!1),this.isOpen){var oe=!1;X||this.eventListeners.beforeclose.forEach(function(Re){var de=new bt(q,!0);Re(de),de.defaultPrevented&&(oe=!0)}),oe||(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(Re){return Re(new bt(q))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var X,q=[],oe=0;oe<arguments.length;oe++)q[oe]=arguments[oe];(X=this._availableMarkerTypes).push.apply(X,q)},pe.prototype.addRenderEventListener=function(X){this.addEventListener("render",function(q){X(q.dataUrl,q.state)})},pe.prototype.removeRenderEventListener=function(X){},pe.prototype.addCloseEventListener=function(X){this.addEventListener("close",function(){X()})},pe.prototype.removeCloseEventListener=function(X){},pe.prototype.setupResizeObserver=function(){var X=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){X.resize(X.target.clientWidth,X.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return X.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},pe.prototype.onPopupTargetResize=function(){var X=1*this.target.clientWidth/this.target.clientHeight,q=this.editorCanvas.clientWidth/X>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*X:this.editorCanvas.clientWidth,oe=q<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/X;this.resize(q,oe)},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.resize=function(X,q){this._isResizing=!0;var oe=X/this.imageWidth,Re=q/this.imageHeight;this.imageWidth=Math.round(X),this.imageHeight=Math.round(q),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(oe,Re),this._isResizing=!1},pe.prototype.scaleMarkers=function(X,q){var oe,Re=this;this._currentMarker&&this._currentMarker instanceof Pt?this._currentMarker.scale(X,q):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(de){de!==Re._currentMarker&&de.scale(X,q)}),oe!==void 0&&this.setCurrentMarker(oe)},pe.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},pe.prototype.setTopLeft=function(){var X=this.editingTarget.getBoundingClientRect(),q=this.editorCanvas.getBoundingClientRect();this.left=X.left-q.left,this.top=X.top-q.top},pe.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},pe.prototype.addDefs=function(){for(var X,q=[],oe=0;oe<arguments.length;oe++)q[oe]=arguments[oe];this.defs=se.createDefs(),this.addDefsToImage(),(X=this.defs).append.apply(X,q)},pe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},pe.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},pe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},pe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},pe.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},pe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},pe.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},pe.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var X=document.createElement("a");X.href="https://markerjs.com/",X.target="_blank",X.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',X.title="Powered by marker.js",X.style.display="grid",X.style.alignItems="center",X.style.justifyItems="center",X.style.padding="3px",X.style.width="20px",X.style.height="20px",this.logoUI.appendChild(X),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},pe.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")},pe.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"},pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},pe.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 X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"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 te(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<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Q(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},pe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.removeMarker=function(X){this.markerImage.removeChild(X.container),this.markers.indexOf(X)>-1&&this.markers.splice(this.markers.indexOf(X),1),X.dispose()},pe.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())},pe.prototype.toolbarButtonClicked=function(X,q){if(X==="marker"&&q!==void 0)this.createNewMarker(q);else if(X==="action")switch(q){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()}},pe.prototype.deleteSelectedMarker=function(){var X=this;if(this._currentMarker!==void 0){var q=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Re){var de=new nt(X,X._currentMarker,!0);Re(de),de.defaultPrevented&&(q=!0)}),!q){var oe=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(Re){return Re(new nt(X,oe))})}}},pe.prototype.clear=function(){var X=this,q=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ot){var Qt=new nt(X,void 0,!0);ot(Qt),Qt.defaultPrevented&&(q=!0)}),!q)){this.setCurrentMarker();for(var oe=function(ot){var Qt=Re.markers[ot];Re.setCurrentMarker(Re.markers[ot]),Re._currentMarker.dispose(),Re.markerImage.removeChild(Re._currentMarker.container),Re.markers.splice(Re.markers.indexOf(Re._currentMarker),1),Re.eventListeners.markerdelete.forEach(function(Ln){return Ln(new nt(X,Qt))})},Re=this,de=this.markers.length-1;de>=0;de--)oe(de);this.addUndoStep()}},Object.defineProperty(pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),pe.prototype.showNotesEditor=function(){var X;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=(X=this._currentMarker.notes)!==null&&X!==void 0?X:"",this.overlayContainer.appendChild(this.notesArea))},pe.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)},pe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},pe.prototype.addUndoStep=function(){var X=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var q=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===q.width&&oe.height===q.height){var Re=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(q),Re<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(de){return de(new bt(X))})}else this.undoRedoManager.replaceLastUndoStep(q),this.eventListeners.statechange.forEach(function(de){return de(new bt(X))})}},pe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},pe.prototype.undoStep=function(){var X=this,q=this.undoRedoManager.undo();q!==void 0&&(this.restoreState(q),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new bt(X))}))},pe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},pe.prototype.redoStep=function(){var X=this,q=this.undoRedoManager.redo();q!==void 0&&(this.restoreState(q),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new bt(X))}))},pe.prototype.stepZoom=function(){var X=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=X<this.zoomSteps.length-1?this.zoomSteps[X+1]:this.zoomSteps[0]},pe.prototype.panTo=function(X){this.contentDiv.scrollBy({left:this.prevPanPoint.x-X.x,top:this.prevPanPoint.y-X.y}),this.prevPanPoint=X},pe.prototype.startRenderAndClose=function(){return ye(this,void 0,void 0,function(){var X,q,oe=this;return Ee(this,function(Re){switch(Re.label){case 0:return[4,this.render()];case 1:return X=Re.sent(),q=this.getState(),this.eventListeners.render.forEach(function(de){return de(new ke(oe,X,q))}),this.close(!0),[2]}})})},pe.prototype.getState=function(X){X===!0&&this.setCurrentMarker();var q={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return q.markers.push(oe.getState())}),q},pe.prototype.restoreState=function(X){var q=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);X.markers.forEach(function(oe){var Re=q._availableMarkerTypes.find(function(ot){return ot.typeName===oe.typeName});if(Re!==void 0){var de=q.addNewMarker(Re);de.restoreState(oe),q.markers.push(de)}}),X.width&&X.height&&(X.width!==this.imageWidth||X.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/X.width,this.imageHeight/X.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new bt(q))})},pe.prototype.addNewMarker=function(X){var q=se.createGroup();return this.markerImage.appendChild(q),new X(q,this.overlayContainer,this.settings)},pe.prototype.createNewMarker=function(X){var q,oe=this;(q=typeof X=="string"?this._availableMarkerTypes.find(function(Re){return Re.typeName===X}):X)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(q),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(q.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Re){return Re(new nt(oe,oe._currentMarker))}))},pe.prototype.markerCreated=function(X){var q=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(X),this.setCurrentMarker(X),X instanceof Ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new nt(q,q._currentMarker))})},pe.prototype.colorChanged=function(X){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=X,this.settings.defaultStrokeColor=X)},pe.prototype.fillColorChanged=function(X){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=X)},pe.prototype.markerStateChanged=function(X){var q=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new nt(q,X))})},pe.prototype.setCurrentMarker=function(X){var q=this;this._currentMarker!==X&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new nt(q,q._currentMarker))})),this._currentMarker=X,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(oe){return oe(new nt(q,q._currentMarker))}))},pe.prototype.onPointerDown=function(X){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||X.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var q=this.markers.find(function(oe){return oe.ownsTarget(X.target)});q!==void 0?(this.setCurrentMarker(q),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(X.clientX,X.clientY),X.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:X.clientX,y:X.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(X.clientX,X.clientY))},pe.prototype.onDblClick=function(X){if(this._isFocused||this.focus(),this.mode==="select"){var q=this.markers.find(function(oe){return oe.ownsTarget(X.target)});q!==void 0&&q!==this._currentMarker&&this.setCurrentMarker(q),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(X.clientX,X.clientY),X.target):this.setCurrentMarker()}},pe.prototype.onPointerMove=function(X){this.touchPoints!==1&&X.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||X.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(X.clientX,X.clientY)):this.zoomLevel>1&&this.panTo({x:X.clientX,y:X.clientY}))},pe.prototype.onPointerUp=function(X){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(X.clientX,X.clientY)),this.isDragging=!1,this.addUndoStep()},pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},pe.prototype.onKeyUp=function(X){this._currentMarker===void 0||this.notesArea!==void 0||X.key!=="Delete"&&X.key!=="Backspace"||this.deleteSelectedMarker()},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.markerImage.getBoundingClientRect();return{x:(X-oe.left)/this.zoomLevel,y:(q-oe.top)/this.zoomLevel}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"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()},pe.prototype.addLicenseKey=function(X){$.addKey(X)},pe.prototype.addEventListener=function(X,q){this.eventListeners.addEventListener(X,q)},pe.prototype.removeEventListener=function(X,q){this.eventListeners.removeEventListener(X,q)},pe.prototype.renderState=function(X){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(X),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),pe.prototype.focus=function(){var X=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(q){return q(new bt(X))}))},pe.prototype.blur=function(){var X=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(q){return q(new bt(X))}))},pe.instanceCounter=0,pe}();/* **********************************
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 Ke=function(pe,X){return(Ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,oe){q.__proto__=oe}||function(q,oe){for(var Re in oe)Object.prototype.hasOwnProperty.call(oe,Re)&&(q[Re]=oe[Re])})(pe,X)};function Ct(pe,X){if(typeof X!="function"&&X!==null)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function q(){this.constructor=pe}Ke(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function ft(pe,X,q,oe){return new(q||(q=Promise))(function(Re,de){function ot(Jn){try{Ln(oe.next(Jn))}catch(Zt){de(Zt)}}function Qt(Jn){try{Ln(oe.throw(Jn))}catch(Zt){de(Zt)}}function Ln(Jn){var Zt;Jn.done?Re(Jn.value):(Zt=Jn.value,Zt instanceof q?Zt:new q(function(En){En(Zt)})).then(ot,Qt)}Ln((oe=oe.apply(pe,X||[])).next())})}function xt(pe,X){var q,oe,Re,de,ot={label:0,sent:function(){if(1&Re[0])throw Re[1];return Re[1]},trys:[],ops:[]};return de={next:Qt(0),throw:Qt(1),return:Qt(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function Qt(Ln){return function(Jn){return function(Zt){if(q)throw new TypeError("Generator is already executing.");for(;ot;)try{if(q=1,oe&&(Re=2&Zt[0]?oe.return:Zt[0]?oe.throw||((Re=oe.return)&&Re.call(oe),0):oe.next)&&!(Re=Re.call(oe,Zt[1])).done)return Re;switch(oe=0,Re&&(Zt=[2&Zt[0],Re.value]),Zt[0]){case 0:case 1:Re=Zt;break;case 4:return ot.label++,{value:Zt[1],done:!1};case 5:ot.label++,oe=Zt[1],Zt=[0];continue;case 7:Zt=ot.ops.pop(),ot.trys.pop();continue;default:if(!(Re=ot.trys,(Re=Re.length>0&&Re[Re.length-1])||Zt[0]!==6&&Zt[0]!==2)){ot=0;continue}if(Zt[0]===3&&(!Re||Zt[1]>Re[0]&&Zt[1]<Re[3])){ot.label=Zt[1];break}if(Zt[0]===6&&ot.label<Re[1]){ot.label=Re[1],Re=Zt;break}if(Re&&ot.label<Re[2]){ot.label=Re[2],ot.ops.push(Zt);break}Re[2]&&ot.ops.pop(),ot.trys.pop();continue}Zt=X.call(pe,ot)}catch(En){Zt=[6,En],oe=0}finally{q=Re=0}if(5&Zt[0])throw Zt[1];return{value:Zt[0]?Zt[1]:void 0,done:!0}}([Ln,Jn])}}}var Mt=function(){function pe(){}return pe.addKey=function(X){pe.key=X},Object.defineProperty(pe,"isLicensed",{get:function(){return!!pe.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(pe.key)},enumerable:!1,configurable:!0}),pe}(),ct=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(X,q){for(var oe=0,Re=q;oe<Re.length;oe++){var de=Re[oe],ot=de[0],Qt=de[1];X.setAttribute(ot,Qt)}},pe.createRect=function(X,q,oe){var Re=document.createElementNS("http://www.w3.org/2000/svg","rect");return Re.setAttribute("width",X.toString()),Re.setAttribute("height",q.toString()),oe&&pe.setAttributes(Re,oe),Re},pe.createLine=function(X,q,oe,Re,de){var ot=document.createElementNS("http://www.w3.org/2000/svg","line");return ot.setAttribute("x1",X.toString()),ot.setAttribute("y1",q.toString()),ot.setAttribute("x2",oe.toString()),ot.setAttribute("y2",Re.toString()),de&&pe.setAttributes(ot,de),ot},pe.createPolygon=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",X),q&&pe.setAttributes(oe,q),oe},pe.createCircle=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(X/2).toString()),oe.setAttribute("cy",(X/2).toString()),oe.setAttribute("r",X.toString()),q&&pe.setAttributes(oe,q),oe},pe.createEllipse=function(X,q,oe){var Re=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Re.setAttribute("cx",(X/2).toString()),Re.setAttribute("cy",(q/2).toString()),Re.setAttribute("rx",(X/2).toString()),Re.setAttribute("ry",(q/2).toString()),oe&&pe.setAttributes(Re,oe),Re},pe.createGroup=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","g");return X&&pe.setAttributes(q,X),q},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(X,q,oe,Re,de,ot,Qt){var Ln=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Ln,[["id",X],["orient",q],["markerWidth",oe.toString()],["markerHeight",Re.toString()],["refX",de.toString()],["refY",ot.toString()]]),Ln.appendChild(Qt),Ln},pe.createText=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","text");return q.setAttribute("x","0"),q.setAttribute("y","0"),X&&pe.setAttributes(q,X),q},pe.createTSpan=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=X,q&&pe.setAttributes(oe,q),oe},pe.createImage=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","image");return X&&pe.setAttributes(q,X),q},pe.createPoint=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=X,oe.y=q,oe},pe.createPath=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",X),q&&pe.setAttributes(oe,q),oe},pe.createElement=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg",X);return q&&pe.setAttributes(oe,q),oe},pe.getHollowRectanglePath=function(X,q,oe,Re,de,ot,Qt,Ln){return"M"+X+","+q+"V"+(q+Re)+"H"+(X+oe)+"V"+q+"H"+de+"V"+ot+"H"+(de+Qt)+"V"+(ot+Ln)+"H"+de+"V"+q+"Z"},pe}(),Ut=function(){function pe(X){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+X+"_"}return Object.defineProperty(pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),pe.prototype.addClass=function(X){return this.styleSheet===void 0&&this.addStyleSheet(),X.name=""+this.classNamePrefix+X.localName,this.classes.push(X),this.styleSheet.sheet.insertRule("."+X.name+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length),X},pe.prototype.addRule=function(X){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(X),this.styleSheet.sheet.insertRule(X.selector+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var X;this.styleSheet=document.createElement("style"),((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).appendChild(this.styleSheet),this.addRule(new Ft("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ft("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ft("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new on("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new on("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},pe.prototype.removeStyleSheet=function(){var X;this.styleSheet&&(((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Ft=function(pe,X){this.selector=pe,this.style=X},on=function(pe,X){this.localName=pe,this.style=X},cn=function(){function pe(){this.blocks=[],this.display=""}return pe.prototype.addButtonBlock=function(X){X.className=this.blockClassName,X.buttonClassName=this.buttonClassName,X.buttonColorsClassName=this.buttonColorsClassName,X.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(X)},pe.prototype.addElementBlock=function(X){X.className===void 0&&(X.className=this.blockClassName),this.blocks.push(X)},pe.prototype.getUI=function(){var X=document.createElement("div");return X.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,X.style.display=this.display,this.blocks.forEach(function(q){return X.appendChild(q.getUI())}),X},pe}(),ln=function(){function pe(){}return pe.prototype.getUI=function(){var X=document.createElement("div");if(X.className=this.className,this.minWidth!==void 0&&(X.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":X.style.justifyContent="flex-start";break;case"center":X.style.justifyContent="center";break;case"end":X.style.justifyContent="flex-end"}return X.style.whiteSpace="nowrap",X},pe}(),kn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.buttons=[],q}return Ct(X,pe),X.prototype.addButton=function(q){q.className=this.buttonClassName,q.colorsClassName=this.buttonColorsClassName,q.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(q)},X.prototype.getUI=function(){var q=pe.prototype.getUI.call(this);return this.buttons.forEach(function(oe){return q.appendChild(oe.getUI())}),q},X}(ln),In=function(){function pe(X,q){this._isActive=!1,this._isHidden=!1,this._icon=X,this.title=q,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(pe.prototype,"icon",{get:function(){return this._icon},set:function(X){this._icon=X,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isActive",{get:function(){return this._isActive},set:function(X){this._isActive=X,this.adjustClassName()},enumerable:!1,configurable:!0}),pe.prototype.getUI=function(){var X=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return X.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},pe.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},pe.prototype.hide=function(){this._isHidden=!0},pe}(),sn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.elements=[],q}return Ct(X,pe),X.prototype.addElement=function(q){this.elements.push(q)},X.prototype.getUI=function(){var q=pe.prototype.getUI.call(this);return this.elements.forEach(function(oe){return q.appendChild(oe)}),q},X}(ln),Gn=function(){function pe(X,q){this.horizontal=X,this.vertical=q}return Object.defineProperty(pe.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),pe.prototype.getVerticalLength=function(X){return X/this.ratio},pe.prototype.getHorizontalLength=function(X){return X*this.ratio},pe}(),Nn=function(){function pe(){}return pe.getIcon=function(X,q){if(X>0&&q>0){var oe=new Gn(X,q),Re=oe.ratio>=1?20:oe.getHorizontalLength(20),de=oe.ratio<1?20:oe.getVerticalLength(20),ot=document.createElementNS("http://www.w3.org/2000/svg","svg");ot.setAttribute("xmlns","http://www.w3.org/2000/svg"),ot.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ot);var Qt=ct.createDefs();ot.appendChild(Qt);var Ln=ct.createElement("clipPath",[["id","text-bg-clip"]]);Qt.appendChild(Ln);var Jn=ct.createPath(ct.getHollowRectanglePath((24-Re)/2,(24-de)/2,Re,de,(24-Re)/2+2,(24-de)/2+2,Re-4,de-4));ot.appendChild(Jn);var Zt=ct.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Zt.appendChild(ct.createTSpan(X+":"+q)),ot.appendChild(Zt);var En=Zt.getBBox();ct.setAttributes(Zt,[["x",((24-En.width)/2).toString()],["y",((24-En.height)/2-En.y).toString()]]);var fn=ct.createPath(ct.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(En.width))/2,(24-Math.ceil(En.height))/2,Math.ceil(En.width),Math.ceil(En.height)));return Ln.appendChild(fn),ct.setAttributes(Jn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ot),ot.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},pe}(),Vn=function(pe){function X(q,oe,Re){var de=pe.call(this,q,oe)||this;return de.isDropdownOpen=!1,de.onClick=de.dropdownButtonClicked,de.dropdownButtons=Re,de}return Ct(X,pe),X.prototype.setupDropdown=function(){var q=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(oe){oe.className=q.className,oe.colorsClassName=q.colorsClassName,q.dropdownBlock.appendChild(oe.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},X.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},X.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},X.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},X.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},X.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},X}(In),Zn=function(){function pe(X,q){this.GRIP_SIZE=10,this.color=X,this.fillColor=q,this.visual=ct.createGroup(),this.visual.appendChild(ct.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ct.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe.prototype.setCenter=function(X,q){this.visual.childNodes.forEach(function(oe){return ct.setAttributes(oe,[["cx",X.toString()],["cy",q.toString()]])})},pe}(),xr=function(){function pe(X,q,oe,Re){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=X,this.canvasHeight=q,this.margin=oe,this.container=Re,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(pe.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(X){this._aspectRatio=X,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.gridContainer&&ct.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(X){this._zoomFactor=X,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),pe.prototype.open=function(){var X=this;this.cropShadeElement=ct.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=ct.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var q=0;q<this.numberOfGridLines;q++)this.horizontalGridLines.push(ct.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(ct.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(oe){return X.gridContainer.appendChild(oe)}),this.verticalGridLines.forEach(function(oe){return X.gridContainer.appendChild(oe)}),this.cropRectElement=ct.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Zn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Zn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Zn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Zn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},pe.prototype.setCropRectangle=function(X){this.cropRect=X;var q=Object.assign({},this.cropRect);this.zoomFactor!==1&&(q.width=this.cropRect.width*this.zoomFactor,q.height=this.cropRect.height*this.zoomFactor,q.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-q.width/2,q.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-q.height/2),ct.setAttributes(this.cropRectElement,[["x",q.x.toString()],["y",q.y.toString()],["width",q.width.toString()],["height",q.height.toString()]]);var oe=q.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(de,ot){var Qt=q.y+oe*(ot+1);ct.setAttributes(de,[["x1",""+q.x],["y1",""+Qt],["x2",""+(q.x+q.width)],["y2",""+Qt]])});var Re=q.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(de,ot){var Qt=q.x+Re*(ot+1);ct.setAttributes(de,[["x1",""+Qt],["y1",""+q.y],["x2",""+Qt],["y2",""+(q.y+q.height)]])}),ct.setAttributes(this.cropShadeElement,[["d",ct.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,q.x,q.y,q.width,q.height)]]),this.topLeftGrip.setCenter(q.x,q.y),this.topRightGrip.setCenter(q.x+q.width,q.y),this.bottomLeftGrip.setCenter(q.x,q.y+q.height),this.bottomRightGrip.setCenter(q.x+q.width,q.y+q.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},pe.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)},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.container.getBoundingClientRect();return{x:X-oe.left+this.margin,y:q-oe.top+this.margin}},pe.prototype.onPointerDown=function(X){this.container.setPointerCapture(X.pointerId),this.previousPoint=this.clientToLocalCoordinates(X.clientX,X.clientY),this.cropRectElement===X.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(X.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(X.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(X.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(X.target)&&(this.activeGrip=this.bottomRightGrip)},pe.prototype.onPointerMove=function(X){if(this.isMoving)this.move(this.clientToLocalCoordinates(X.clientX,X.clientY));else if(this.activeGrip){var q=this.clientToLocalCoordinates(X.clientX,X.clientY);this.resize(q)}X.preventDefault()},pe.prototype.onPointerUp=function(X){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(X.pointerId)},pe.prototype.move=function(X){var q=X.x-this.previousPoint.x,oe=X.y-this.previousPoint.y;this.zoomFactor!==1&&(q=-q/this.zoomFactor,oe=-oe/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+q),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+oe),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=X},pe.prototype.resize=function(X){var q=Object.assign({},this.cropRect),oe=X.x-this.previousPoint.x,Re=X.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:q.x+oe<this.margin&&(oe=this.margin-q.x),q.x+=oe,q.width=this.cropRect.x+this.cropRect.width-q.x;break;case this.bottomRightGrip:case this.topRightGrip:q.width+oe>this.canvasWidth*this.zoomFactor&&(oe=this.canvasWidth*this.zoomFactor-q.width),q.width+=oe}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(q.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(oe),q.height=this.aspectRatio.getVerticalLength(q.width)):(q.y+=Re,q.height=this.cropRect.y+this.cropRect.height-q.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?q.height=this.aspectRatio.getVerticalLength(q.width):q.height+=Re}q.width<10&&(q.x=this.cropRect.x,q.width=10),q.height<10&&(q.y=this.cropRect.y,q.height=10),this.previousPoint=X,q.x>=this.margin&&q.y>=this.margin&&q.x-this.margin+q.width<=this.canvasWidth&&q.y-this.margin+q.height<=this.canvasHeight&&(this.cropRect=q,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},pe.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var X=this.cropRect.x+this.cropRect.width/2,q=this.cropRect.y+this.cropRect.height/2,oe=this.aspectRatio.getHorizontalLength(this.cropRect.height),Re=this.aspectRatio.getVerticalLength(this.cropRect.width);oe/this.canvasWidth<Re/this.canvasHeight?this.cropRect.width=oe:this.cropRect.height=Re,this.cropRect.width>this.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=X-this.cropRect.width/2,this.cropRect.y=q-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)}},pe.prototype.getRescaledRect=function(X,q,oe,Re,de,ot){var Qt=oe/X,Ln=Re/q;return{x:(de.x-ot)*Qt+ot,y:(de.y-ot)*Ln+ot,width:de.width*Qt,height:de.height*Ln}},pe.prototype.scaleCanvas=function(X,q){var oe=this.getRescaledRect(this.canvasWidth,this.canvasHeight,X,q,this.cropRect,this.margin);this.canvasWidth=X,this.canvasHeight=q,this.onCropChange&&this.onCropChange(oe),this.setCropRectangle(oe)},pe}(),dr=function(){function pe(X){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=X,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(pe.prototype,"angle",{get:function(){return this._angle},set:function(X){this._angle=X,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),pe.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},pe.prototype.onPointerDown=function(X){this.controlContainer.setPointerCapture(X.pointerId),this.isDragging=!0,this.previousPoint={x:X.clientX,y:X.clientY}},pe.prototype.onPointerMove=function(X){this.isDragging&&(this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.previousPoint.x=X.clientX)},pe.prototype.onPointerUp=function(X){this.isDragging&&this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(X.pointerId)},pe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var X=this.angleLabelText.getBBox();ct.setAttributes(this.angleLabelElement,[["x",((this.width-X.width)/2).toString()],["y",(this.height/2).toString()]])}},pe.prototype.positionScaleShape=function(){if(this.scaleShape){var X=this.scaleShape.transform.baseVal.getItem(0);X.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(X,0)}},pe.prototype.getVisual=function(){var X=document.createElementNS("http://www.w3.org/2000/svg","svg");X.setAttribute("xmlns","http://www.w3.org/2000/svg"),X.setAttribute("width",this.width+"px"),X.setAttribute("height",this.height+"px"),X.setAttribute("viewBox","0 0 "+this.width+" "+this.height),X.style.flexShrink="0",document.body.appendChild(X);for(var q="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,oe=1;oe<=this.width/5+10;oe++){var Re=oe%5==0?this.height/3:this.height/6;q+="h4v"+-Re+"h1v"+Re}q+="v1H0Z",this.scaleShape=ct.createPath(q);var de=ct.createTransform();this.scaleShape.transform.baseVal.appendItem(de),X.appendChild(this.scaleShape),this.angleLabelElement=ct.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=ct.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ot=ct.createTSpan("");return ot.innerHTML="&deg;",this.angleLabelElement.appendChild(ot),X.appendChild(this.angleLabelElement),document.body.removeChild(X),X},pe}(),un=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(X,q,oe,Re,de,ot,Qt){var Ln=this;return new Promise(function(Jn){var Zt=document.createElement("canvas");Zt.width=X.width.baseVal.value-2*Re,Zt.height=X.height.baseVal.value-2*Re;var En=1,fn=1;Ln.naturalSize===!0?(En=q.naturalWidth/(X.width.baseVal.value-2*Re)/ot,fn=q.naturalHeight/(X.height.baseVal.value-2*Re)/Qt,Zt.width=q.naturalWidth/ot,Zt.height=q.naturalHeight/Qt):Ln.width!==void 0&&Ln.height!==void 0&&(En=Ln.width/oe.width,fn=Ln.height/oe.height,Zt.width*=En,Zt.height*=fn);var Br=Zt.getContext("2d");Br.translate(Zt.width/2,Zt.height/2),Br.rotate(de*Math.PI/180),Br.scale(ot,Qt),Br.translate(-Zt.width/2,-Zt.height/2),Br.drawImage(q,0,0,Zt.width,Zt.height);var ra=document.createElement("canvas");ra.width=oe.width*En,ra.height=oe.height*fn,ra.getContext("2d").putImageData(Br.getImageData((oe.x-Re)*En,(oe.y-Re)*fn,oe.width*En,oe.height*fn),0,0),Jn(ra.toDataURL(Ln.imageType,Ln.imageQuality))})},pe}(),$t=function(){function pe(X){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=pe.instanceCounter++,this.styles=new Ut(this.instanceNo),this.target=X,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(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(X){this._zoomToCropEnabled=X,X?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(X){this._gridLines=X,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(X){this._rotationAngle=X,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"aspectRatio",{get:function(){var X;return(X=this._aspectRatio)!==null&&X!==void 0?X:this.aspectRatios[0]},set:function(X){this._aspectRatio=X},enumerable:!1,configurable:!0}),pe.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},pe.prototype.show=function(){this.showUI(),this.open()},pe.prototype.close=function(X){X===void 0&&(X=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),X||this.closeEventListeners.forEach(function(q){return q()}),this._isOpen=!1)},pe.prototype.addRenderEventListener=function(X){this.renderEventListeners.push(X)},pe.prototype.removeRenderEventListener=function(X){this.renderEventListeners.indexOf(X)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(X),1)},pe.prototype.addCloseEventListener=function(X){this.closeEventListeners.push(X)},pe.prototype.removeCloseEventListener=function(X){this.closeEventListeners.indexOf(X)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(X),1)},pe.prototype.setupResizeObserver=function(){var X=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){X.resize(X.target.clientWidth,X.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))},pe.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var X=1*this.target.clientWidth/this.target.clientHeight,q=this.contentDiv.clientWidth/X>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*X:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,oe=q+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/X;this.resize(q,oe)}},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",ct.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},pe.prototype.resize=function(X,q){this.imageWidth=Math.round(X),this.imageHeight=Math.round(q),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},pe.prototype.setEditingTarget=function(){var X=document.createElement("canvas");X.width=this.target.naturalWidth,X.height=this.target.naturalHeight,X.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var q=X.toDataURL();ct.setAttributes(this.editingTarget,[["href",q]]),this.setEditingTargetSize()},pe.prototype.setTopLeft=function(){var X=this.target.getBoundingClientRect(),q=this.editorCanvas.getBoundingClientRect();this.left=X.left-q.left-this.CANVAS_MARGIN,this.top=X.top-q.top-this.CANVAS_MARGIN},pe.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=ct.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=ct.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=ct.createGroup(),this.editingTargetRotationScaleContainer=ct.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var X=ct.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(X);var q=ct.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(q),this.editingTargetContainer=ct.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},pe.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},pe.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=ct.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new xr(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},pe.prototype.zoomToCrop=function(){if(this.cropRect){var X=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,q=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=X+"px "+q+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-X+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-q+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},pe.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},pe.prototype.cropRectChanged=function(X){this.cropRect=X,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},pe.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},pe.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"},pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},pe.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var X=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,q=this.target.offsetTop>X+this.CANVAS_MARGIN?this.target.offsetTop-(X+this.CANVAS_MARGIN):0;this.coverDiv.style.top=q+"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},pe.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},pe.prototype.addTopToolbar=function(){var X=this;this.topToolbar=new cn,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 q=new kn;q.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(q);var oe=[];this.aspectRatios.forEach(function(fn){var Br=new In(Nn.getIcon(fn.horizontal,fn.vertical),fn.horizontal===0&&fn.vertical===0?"FREE":fn.horizontal+":"+fn.vertical);Br.onClick=function(){return X.ratioButtonClicked(fn)},oe.push(Br)}),this.aspectRatioButton=new Vn(Nn.getIcon(0,0),"Aspect ratio",oe),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,q.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var Re=new In('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");Re.isActive=this.isGridVisible,Re.onClick=function(){X.isGridVisible=!X.isGridVisible,Re.isActive=X.isGridVisible},q.addButton(Re);var de=new In('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(de.isActive=this.zoomToCropEnabled,de.onClick=function(){X.zoomToCropEnabled=!X.zoomToCropEnabled,de.isActive=X.zoomToCropEnabled},q.addButton(de),!Mt.isLicensed){var ot=new sn;this.topToolbar.addElementBlock(ot);var Qt=document.createElement("div");Qt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Ln=document.createElement("a");Ln.style.color="currentColor",Ln.href="https://markerjs.com/products/cropro",Ln.target="_blank",Ln.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Qt.appendChild(Ln),ot.addElement(Qt)}var Jn=new kn;Jn.minWidth=3*this.toolbarHeight+"px",Jn.contentAlign="end",this.topToolbar.addButtonBlock(Jn);var Zt=new In('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Zt.onClick=this.startRenderAndClose,Jn.addButton(Zt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Zt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var En=new In('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");En.onClick=this.close,Jn.addButton(En),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(En.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var X=this;this.bottomToolbar=new cn,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 q=new kn;q.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(q);var oe=new In('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");oe.onClick=this.rotateLeftButtonClicked,q.addButton(oe);var Re=new In('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");Re.onClick=this.rotateRightButtonClicked,q.addButton(Re);var de=new sn;de.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(de),this.straightener=new dr("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(Jn){X.rotateBy(Jn),X.straightener.angle=X.rotationAngle},de.addElement(this.straightener.getUI());var ot=new kn;ot.minWidth=2*this.toolbarHeight+"px",ot.contentAlign="end",this.bottomToolbar.addButtonBlock(ot);var Qt=new In('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Qt.onClick=this.flipHorizontallyButtonClicked,ot.addButton(Qt);var Ln=new In('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");Ln.onClick=this.flipVerticallyButtonClicked,ot.addButton(Ln)},pe.prototype.ratioButtonClicked=function(X){this.aspectRatio=X,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Nn.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},pe.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Gn(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},pe.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},pe.prototype.restoreState=function(X){if(X){var q=this.cropLayer.getRescaledRect(X.width,X.height,this.imageWidth,this.imageHeight,X.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(q),this.cropRectChanged(q),this.flippedHorizontally=X.flippedHorizontally,this.flippedVertically=X.flippedVertically,this.applyFlip(),this.rotationAngle=X.rotationAngle,this.applyRotation()}},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.cropImage.getBoundingClientRect();return{x:X-oe.left,y:q-oe.top}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var X=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=X+"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()},pe.prototype.rotateLeftButtonClicked=function(){var X=this.rotationAngle-90;this.rotationAngle%90!=0&&(X+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateRightButtonClicked=function(){var X=this.rotationAngle+90;this.rotationAngle%90!=0&&(X-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateTo=function(X){X=(X=X>180?X-360:X)<=-180?X+360:X,this.rotationAngle=X,this.applyRotation()},pe.prototype.rotateBy=function(X){this.rotateTo((this.rotationAngle+X)%360)},pe.prototype.applyRotation=function(){var X=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var q=this.editingTargetRotationContainer.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(q,0);var oe=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/oe.width,this.imageHeight/oe.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=X},pe.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},pe.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},pe.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},pe.prototype.startRenderAndClose=function(){return ft(this,void 0,void 0,function(){var X,q;return xt(this,function(oe){switch(oe.label){case 0:return[4,this.render()];case 1:return X=oe.sent(),q=this.getState(),this.renderEventListeners.forEach(function(Re){return Re(X,q)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return ft(this,void 0,void 0,function(){var X;return xt(this,function(q){switch(q.label){case 0:return(X=new un).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.width=this.renderWidth,X.height=this.renderHeight,this.unzoomFromCrop(),ct.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,X.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 q.sent(),[4,X.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,q.sent()]}})})},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new on("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 on("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new on("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var X=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new on("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*X)+`px;
height: `+(this.toolbarHeight-2*X)+`px;
padding: `+X+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new on("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new on("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new Ft("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ft("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new on("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 on("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new on("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 on("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*X)+`px;
padding: `+X+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new on("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},pe.instanceCounter=0,pe}(),An=o("8hTe"),Ur=o.n(An),Ar=/<pre[^>]*>/g;function Cr(pe){var X=document.createElement("div");return X.innerHTML=pe,X.childNodes.length===0?"":X.childNodes[0].nodeValue}var gr=z.a=function(pe){var X=pe.value,q=X===void 0?"":X,oe=pe.edit,Re=oe===void 0?!1:oe,de=pe.className,ot=pe.showTextOnly,Qt=pe.showLines,Ln=pe.replaces,Jn=pe.zoomImg,Zt=pe.hasMask,En=pe.style,fn=En===void 0?{}:En,Br=pe.stylesPrev,ra=Br===void 0?{}:Br,oa=String(q),rr=Object(f.useRef)(),Ba=Object(f.useRef)(),Ea=Object(f.useState)(""),ca=Object(A.a)(Ea,2),Ka=ca[0],Ta=ca[1],Ja=Object(f.useState)("office"),Ua=Object(A.a)(Ja,2),li=Ua[0],oi=Ua[1],fa=function(){var Nt=new $t(Ba.current);Nt.displayMode="popup",Nt.addRenderEventListener(function(){var Vt=Object(C.a)(e.a.mark(function nn(xn){var _n;return e.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return rr.current.style.display="none",Dn.next=3,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:xn}});case 3:_n=Dn.sent,_n!=null&&_n.id&&Ln(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(_n==null?void 0:_n.id,"?type=").concat(_n.content_type));case 5:case"end":return Dn.stop()}},nn)}));return function(nn){return Vt.apply(this,arguments)}}()),Nt.show()},ma=function(){var Nt=new De(Ba.current);Nt.settings.displayMode="popup",Nt.addEventListener("render",function(){var Vt=Object(C.a)(e.a.mark(function nn(xn){var _n;return e.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(rr.current.style.display="none",!Ba.current){Dn.next=6;break}return Dn.next=4,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:xn.dataUrl}});case 4:_n=Dn.sent,_n!=null&&_n.id&&Ln(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(_n==null?void 0:_n.id,"?type=").concat(_n.content_type));case 6:case"end":return Dn.stop()}},nn)}));return function(nn){return Vt.apply(this,arguments)}}()),Nt.show(),window.markerArea=Nt},la=Object(f.useMemo)(function(){rr.current&&(rr.current.style.zIndex=-1);try{var Ht=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Nt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Vt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;oa=oa.replace(Ht,"("+ee.a.API_SERVER+"/api/attachments/").replace(Nt,'"'+ee.a.API_SERVER+"/api/attachments/").replace(Vt,'"'+ee.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(Bn){}var nn=W(oa),xn=U();if(oa.match(/\[TOC\]/)&&(nn=nn.replace("<p>[TOC]</p>",P()),w()),nn=nn.replace(/(__special_katext_id_\d+__)/g,function(Bn,Dn){var an=xn[Dn],Mn=an.type,yn=an.expression;return Object(he.renderToString)(Cr(yn)||"",{displayMode:Mn==="block",throwOnError:!1,output:"html"})}),nn=nn.replace(/▁/g,"\u2581\u2581\u2581"),I(),ot){var _n=document.createElement("div");return _n.innerHTML=nn,_n.innerText}return setTimeout(function(){return Rt()},500),nn},[oa]),xe=Object(f.useRef)();E.WebkitLineClamp=Qt,Qt&&(fn=Object(y.a)(Object(y.a)({},fn),E));function st(Ht){var Nt=Ht.target;if(Nt.tagName.toUpperCase()==="IMG"){if(Jn){var Vt=Nt.getAttribute("src");Ta(Vt),oi("image")}}else if(Nt.tagName.toUpperCase()==="A"){var nn=Nt.getAttribute("href");if(nn.indexOf("office")>-1)Ht.preventDefault(),Ta(nn),oi("office");else if(nn.indexOf("application/pdf")>-1)Ht.preventDefault(),Ta(nn),oi("pdf");else if(nn.indexOf("text/html")>-1)Ht.preventDefault(),Ta(nn),oi("html");else if(nn.startsWith("#")){Ht.preventDefault();var xn=document.getElementById(nn.replace("#",""));xn&&xn.scrollIntoView(!0)}}}var Rt=function(){var Nt,Vt=(Nt=xe.current)===null||Nt===void 0?void 0:Nt.querySelectorAll("video");Vt==null||Vt.forEach(function(nn){if(nn.oncontextmenu=function(){return!1},nn.src.indexOf(".m3u8")>-1&&!nn.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var xn=new K.a;xn.loadSource(nn.src),xn.attachMedia(nn)}}})};Object(f.useEffect)(function(){if(xe.current&&la&&(la.match(Ar)&&window.PR.prettyPrint()),xe.current)return xe.current.addEventListener("click",st),function(){xe.current.removeEventListener("click",st),I(),w()}},[la,xe.current,st]);var Ot=function(Nt){if(!Re)return;Nt.target.nodeName==="IMG"?(rr.current.style.zIndex=1,rr.current.style.display="flex",rr.current.style.width=Nt.target.clientWidth+"px",rr.current.style.height=Nt.target.clientHeight+"px",rr.current.style.top=Nt.target.offsetTop+"px",rr.current.style.left=Nt.target.offsetLeft+"px",Ba.current.src=Nt.target.getAttribute("src")):rr.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:xe,style:Object(y.a)({},fn),className:"".concat(de||""," markdown-body ").concat(Ur.a.mdBody),onMouseOver:Ot,dangerouslySetInnerHTML:{__html:la}}),a.a.createElement("div",{ref:rr,className:Ur.a.button},a.a.createElement(m.a,null,a.a.createElement(b.a,{onClick:function(){return fa()}},"\u88C1\u526A"),a.a.createElement(b.a,{onClick:function(){return ma()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:Ba,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),a.a.createElement(fe.a,{close:!0,data:Ka,type:Ka!=null&&Ka.length?li:"",style:Object(y.a)({},ra),onClose:function(){return Ta("")}}))}},"9JIy":function(k,z,o){k.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"}},"9OqN":function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CTR=function(){var m=M.lib.BlockCipherMode.extend(),O=m.Encryptor=m.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,g=this._iv,e=this._counter;g&&(e=this._counter=g.slice(0),this._iv=void 0);var f=e.slice(0);C.encryptBlock(f,0),e[A-1]=e[A-1]+1|0;for(var a=0;a<A;a++)b[y+a]^=f[a]}});return m.Decryptor=O,m}(),M.mode.CTR})},"9VGf":function(k,z,o){"use strict";o.d(z,"a",function(){return O});var M=o("q1tI"),m=o.n(M);function O(b,y){var C=Object(M.useRef)();Object(M.useEffect)(function(){C.current=b}),Object(M.useEffect)(function(){function A(){C.current()}if(y!==null){var g=setInterval(A,y);return function(){return clearInterval(g)}}},[y])}},"9ZNV":function(k,z,o){"use strict";o.d(z,"a",function(){return f});var M=o("0Owb"),m=o("+L6B"),O=o("2/Rp"),b=o("q1tI"),y=o.n(b),C=o("UUDw"),A=o.n(C),g=o("TSYQ"),e=o.n(g),f=function(l){var n=l.cancelText,i=n===void 0?"\u53D6\u6D88":n,r=l.okText,c=r===void 0?"\u786E\u5B9A":r,h=l.loading,d=h===void 0?!1:h,s=l.hasOkBtn,u=s===void 0?!0:s,w=l.okButtonProps,E=w===void 0?{}:w,_=l.onCancel,P=_===void 0?function(){}:_,R=l.onOk,x=R===void 0?function(){}:R,S=l.className,v=S===void 0?"":S;return y.a.createElement("div",{className:e()(A.a.buttonFixed,v)},y.a.createElement("div",{className:A.a.buttonWrap},y.a.createElement(O.a,{size:"large",className:"".concat(A.a.button," mr20"),onClick:P},i),u&&y.a.createElement(O.a,Object(M.a)({size:"large",type:"primary",className:"".concat(A.a.button," mr20"),loading:d,onClick:x},E),c)))}},"A/g1":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},ALsQ:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CFB=function(){var m=M.lib.BlockCipherMode.extend();m.Encryptor=m.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize;O.call(this,b,y,A,C),this._prevBlock=b.slice(y,y+A)}}),m.Decryptor=m.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,g=b.slice(y,y+A);O.call(this,b,y,A,C),this._prevBlock=g}});function O(b,y,C,A){var g,e=this._iv;e?(g=e.slice(0),this._iv=void 0):g=this._prevBlock,A.encryptBlock(g,0);for(var f=0;f<C;f++)b[y+f]^=g[f]}return m}(),M.mode.CFB})},B6bo:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1czbK",flex_space_between:"flex_space_between___NcbCS",flex_box_vertical_center:"flex_box_vertical_center___3bgyw",flex_box_center_end:"flex_box_center_end___1RYM-",flex_box_column:"flex_box_column___siFqq",menu:"menu___3LJ87",warehouse:"warehouse___1AVuS",header:"header___2hqXC",title:"title___2N2dQ",content:"content___252cM",left:"left___DCxzF",right:"right___3XU0c",loading:"loading___393Js",empty:"empty___-D3br",tabs:"tabs___1B5_7",line:"line___1qrlH",footer:"footer___1MBb_",commit:"commit___aa_yX",blueLight:"blueLight___oW1lR",filePathWrp:"filePathWrp___sw_To",filePath:"filePath___2Xa_Q",bottom0:"bottom0___3zeb-"}},BMKw:function(k,z,o){k.exports={wrap:"wrap___1gcMR",content:"content___31AN8",mainPathWrap:"mainPathWrap___1HrSg",colorBlue:"colorBlue___2eq2Y"}},BU3w:function(k,z,o){"use strict";o.d(z,"a",function(){return C});var M=o("MNnm"),m="rc-util-key";function O(A){if(A.attachTo)return A.attachTo;var g=document.querySelector("head");return g||document.body}function b(A){var g,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(M.a)())return null;var f=document.createElement("style");if((g=e.csp)===null||g===void 0?void 0:g.nonce){var a;f.nonce=(a=e.csp)===null||a===void 0?void 0:a.nonce}f.innerHTML=A;var l=O(e),n=l.firstChild;return e.prepend&&l.prepend?l.prepend(f):e.prepend&&n?l.insertBefore(f,n):l.appendChild(f),f}var y=new Map;function C(A,g){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=O(e);if(!y.has(f)){var a=b("",e),l=a.parentNode;y.set(f,l),l.removeChild(a)}var n=Array.from(y.get(f).children).find(function(d){return d.tagName==="STYLE"&&d[m]===g});if(n){var i,r;if(((i=e.csp)===null||i===void 0?void 0:i.nonce)&&n.nonce!==((r=e.csp)===null||r===void 0?void 0:r.nonce)){var c;n.nonce=(c=e.csp)===null||c===void 0?void 0:c.nonce}return n.innerHTML!==A&&(n.innerHTML=A),n}var h=b(A,e);return h[m]=g,h}},Bbdw:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1d7HC",flex_space_between:"flex_space_between___2tGvG",flex_box_vertical_center:"flex_box_vertical_center___3lO4f",flex_box_center_end:"flex_box_center_end___22Avr",flex_box_column:"flex_box_column___3SksD",headLeft:"headLeft___9XMDS",colorBlue:"colorBlue___1Qpec",wrap:"wrap___1u-Va",nodata:"nodata___V_2Oo",nodataText:"nodataText___1G_zo",content:"content___314Bx",gitCode:"gitCode___2GwFG",ellipsis:"ellipsis___2M7s4",menu:"menu___3Tf01",overlayClass:"overlayClass___3ckGv",tips:"tips___-Fisb"}},Bd2K:function(k,z,o){(function(M){M(o("VrN/"),o("osHv"))})(function(M){M.defineOption("autoCloseTags",!1,function(e,f,a){if(a!=M.Init&&a&&e.removeKeyMap("autoCloseTags"),!f)return;var l={name:"autoCloseTags"};(typeof f!="object"||f.whenClosing!==!1)&&(l["'/'"]=function(n){return C(n)}),(typeof f!="object"||f.whenOpening!==!1)&&(l["'>'"]=function(n){return b(n)}),e.addKeyMap(l)});var m=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],O=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function b(e){if(e.getOption("disableInput"))return M.Pass;for(var f=e.listSelections(),a=[],l=e.getOption("autoCloseTags"),n=0;n<f.length;n++){if(!f[n].empty())return M.Pass;var i=f[n].head,r=e.getTokenAt(i),c=M.innerMode(e.getMode(),r.state),h=c.state,d=c.mode.xmlCurrentTag&&c.mode.xmlCurrentTag(h),s=d&&d.name;if(!s)return M.Pass;var u=c.mode.configuration=="html",w=typeof l=="object"&&l.dontCloseTags||u&&m,E=typeof l=="object"&&l.indentTags||u&&O;r.end>i.ch&&(s=s.slice(0,s.length-r.end+i.ch));var _=s.toLowerCase();if(!s||r.type=="string"&&(r.end!=i.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||r.string.length==1)||r.type=="tag"&&d.close||r.string.indexOf("/")==i.ch-r.start-1||w&&A(w,_)>-1||g(e,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(h)||[],s,i,!0))return M.Pass;var P=typeof l=="object"&&l.emptyTags;if(P&&A(P,s)>-1){a[n]={text:"/>",newPos:M.Pos(i.line,i.ch+2)};continue}var R=E&&A(E,_)>-1;a[n]={indent:R,text:">"+(R?`
`:"")+"</"+s+">",newPos:R?M.Pos(i.line+1,0):M.Pos(i.line,i.ch+1)}}for(var x=typeof l=="object"&&l.dontIndentOnAutoClose,n=f.length-1;n>=0;n--){var S=a[n];e.replaceRange(S.text,f[n].head,f[n].anchor,"+insert");var v=e.listSelections().slice(0);v[n]={head:S.newPos,anchor:S.newPos},e.setSelections(v),!x&&S.indent&&(e.indentLine(S.newPos.line,null,!0),e.indentLine(S.newPos.line+1,null,!0))}}function y(e,f){for(var a=e.listSelections(),l=[],n=f?"/":"</",i=e.getOption("autoCloseTags"),r=typeof i=="object"&&i.dontIndentOnSlash,c=0;c<a.length;c++){if(!a[c].empty())return M.Pass;var h=a[c].head,d=e.getTokenAt(h),s=M.innerMode(e.getMode(),d.state),u=s.state;if(f&&(d.type=="string"||d.string.charAt(0)!="<"||d.start!=h.ch-1))return M.Pass;var w,E=s.mode.name!="xml"&&e.getMode().name=="htmlmixed";if(E&&s.mode.name=="javascript")w=n+"script";else if(E&&s.mode.name=="css")w=n+"style";else{var _=s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(u);if(!_||_.length&&g(e,_,_[_.length-1],h))return M.Pass;w=n+_[_.length-1]}e.getLine(h.line).charAt(d.end)!=">"&&(w+=">"),l[c]=w}if(e.replaceSelections(l),a=e.listSelections(),!r)for(var c=0;c<a.length;c++)(c==a.length-1||a[c].head.line<a[c+1].head.line)&&e.indentLine(a[c].head.line)}function C(e){return e.getOption("disableInput")?M.Pass:y(e,!0)}M.commands.closeTag=function(e){return y(e)};function A(e,f){if(e.indexOf)return e.indexOf(f);for(var a=0,l=e.length;a<l;++a)if(e[a]==f)return a;return-1}function g(e,f,a,l,n){if(!M.scanForClosingTag)return!1;var i=Math.min(e.lastLine()+1,l.line+500),r=M.scanForClosingTag(e,l,null,i);if(!r||r.tag!=a)return!1;for(var c=n?1:0,h=f.length-1;h>=0&&f[h]==a;h--)++c;l=r.to;for(var h=1;h<c;h++){var d=M.scanForClosingTag(e,l,null,i);if(!d||d.tag!=a)return!1;l=d.to}return!0}})},BdwD:function(k,z,o){"use strict";var M=o("+L6B"),m=o("2/Rp"),O=o("0Owb"),b=o("k1fw"),y=o("q1tI"),C=o.n(y),A=o("FOrL"),g=o.n(A),e=function(a){var l=a.buttonProps,n=l===void 0?{}:l,i=a.styles,r=i===void 0?{}:i,c=a.customText,h=a.ButtonText,d=a.ButtonClick,s=a.Buttonclass,u=a.ButtonTwo;return C.a.createElement("section",{className:"tc animated fadeIn",style:Object(b.a)(Object(b.a)({},{color:"#999",margin:"200px auto"}),r)},C.a.createElement("img",{src:g.a}),C.a.createElement("p",{className:"mt20 font14"},c||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),h&&C.a.createElement(m.a,Object(O.a)({className:s,onClick:d},n),h),u&&u)};z.a=e},BjJ7:function(k,z,o){"use strict";o.d(z,"d",function(){return m}),o.d(z,"c",function(){return O}),o.d(z,"e",function(){return b}),o.d(z,"b",function(){return y}),o.d(z,"a",function(){return A});var M=o("m3rI");function m(g){var e=!0;if(g.length>0){for(var f=0;f<g.length;f++)if(g[f].compile_success==0||!g[f].compile_success){e=!1;break}}else e=!1;return e}function O(g){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",f=[],a=0;a<g.length;a++){var l=g[a],n=e?"".concat(e,"/").concat(l.name):"".concat(l.name);f.push({title:l.name,isLeaf:!(l.type==="tree"),key:n})}return f}function b(g,e,f){for(var a=0;a<g.length;a++){var l=g[a];if(l.key===e){l.children=f;break}l.children&&b(l.children,e,f)}return g}function y(g,e,f){var a;return function(){var l=this,n=arguments,i=function(){a=null,f||g.apply(l,n)},r=f&&!a;clearTimeout(a),a=setTimeout(i,e),r&&g.apply(l,n)}}var C=!0,A=M.a.API_SERVER},Bq7L:function(k,z){k.exports="data:image/png;base64,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"},"C+DQ":function(k,z,o){},"C/vA":function(k,z,o){"use strict";o.d(z,"a",function(){return M});function M(m){const O=this;let b=!1,y;return function(){return b||(b=!0,y=m.apply(O,arguments)),y}}},"Cg/j":function(k,z,o){"use strict";o.d(z,"b",function(){return M}),o.d(z,"a",function(){return m}),o.d(z,"c",function(){return b}),o.d(z,"d",function(){return y});var M;(function(C){C.serviceIds=new Map,C.DI_TARGET="$di$target",C.DI_DEPENDENCIES="$di$dependencies";function A(g){return g[C.DI_DEPENDENCIES]||[]}C.getServiceDependencies=A})(M||(M={}));const m=b("instantiationService");function O(C,A,g,e){A[M.DI_TARGET]===A?A[M.DI_DEPENDENCIES].push({id:C,index:g,optional:e}):(A[M.DI_DEPENDENCIES]=[{id:C,index:g,optional:e}],A[M.DI_TARGET]=A)}function b(C){if(M.serviceIds.has(C))return M.serviceIds.get(C);const A=function(g,e,f){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");O(A,g,f,!1)};return A.toString=()=>C,M.serviceIds.set(C,A),A}function y(C){return function(A,g,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");O(C,A,e,!0)}}},"Cs+z":function(k,z,o){k.exports=o.p+"static/jqr.b801d45b.png"},"Ct/S":function(k,z,o){k.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},"DDK+":function(k,z,o){"use strict";var M=o("+L6B"),m=o("2/Rp"),O=o("y8nQ"),b=o("Vl3Y"),y=o("cWXX"),C=o("/ezw"),A=o("rAM+"),g=o("9og8"),e=o("tJVT"),f=o("7Kak"),a=o("9yH6"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),r=o.n(i),c=o("ErOA"),h=o("2qtc"),d=o("kLXV"),s=o("k1fw"),u=o("Se0u"),w=o("pUFm"),E=o.n(w);function _(){return Object(c.c)("teach_groups.json")}function P($){return Object(c.f)("teach_groups.json",$)}function R($,me){return Object(c.g)("teach_groups/".concat($,".json"),me)}function x($){return Object(c.f)("teach_group_members.json",$)}function S($){return Object(c.b)("teach_group_members/".concat($,".json"))}function v($,me){return Object(c.b)("teach_groups/".concat($,"/del_member.json?member_id=").concat(me))}function T($){return Object(c.b)("teach_groups/".concat($,".json"))}var U=o("5NDa"),I=o("5rEg"),N=function($){var me=$.callback,re=$.visible,ae=$.onCancel,we=$.id,le=$.name;function te(_e){me(_e)}var Q=b.a.useForm(),J=Object(e.a)(Q,1),ve=J[0];return Object(i.useEffect)(function(){ve.setFieldsValue({name:le})},[le]),r.a.createElement(d.a,{centered:!0,title:we?"\u6539\u540D":"\u65B0\u5EFA",visible:re,onCancel:ae,footer:null},r.a.createElement(b.a,{layout:"vertical",form:ve,initialValues:{name:le},onFinish:te},r.a.createElement(b.a.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},r.a.createElement(I.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),r.a.createElement(b.a.Item,null,r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(m.a,{type:"ghost",onClick:ae,style:{marginRight:20}}," ","\u53D6\u6D88"," ")," ",r.a.createElement(m.a,{type:"primary",htmlType:"submit"}," ","\u786E\u5B9A"," ")))))},V=o("Fxgj"),H=o("3ouR"),D=o("xGfz"),W=50,F=function($){var me=$.data,re=$.isAdminOrTeacher,ae=$.onDelGroup,we=$.onChangeGroupName,le=$.onPlusMember,te=$.onDelMember,Q=$.onExitGroup,J=Object(i.useState)(0),ve=Object(e.a)(J,2),_e=ve[0],Oe=ve[1],Xe=Object(i.useState)(0),tt=Object(e.a)(Xe,2),lt=tt[0],dt=tt[1];function vt(je){var ht=parseInt(je.target.id,10);d.a.confirm({title:"\u89E3\u6563\u63D0\u793A",content:"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F",onOk:function(){ae(ht)}})}function _t(je){var ht=parseInt(je.target.id,10);d.a.confirm({title:"\u9000\u51FA\u63D0\u793A",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:function(){Q(ht)}})}function Ye(je,ht){d.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){te(je,ht)}})}return r.a.createElement("ul",{className:"teaching-list"},me.map(function(je,ht){return r.a.createElement("li",{key:je.id,onClick:function(){return Oe(ht)}},r.a.createElement("div",{className:"item-group"},r.a.createElement("span",null,je.name," \xA0"," ",ht!==_e&&r.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),r.a.createElement("div",{className:"action-group"},re?r.a.createElement("a",{onClick:function(){we(je)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,je.is_creat?r.a.createElement("a",{id:je.id+"",className:"c-grey-c",onClick:vt},"\u89E3\u6563"):r.a.createElement("a",{id:je.id+"",className:"c-grey-c",onClick:_t},"\u9000\u51FA"))),ht===_e?r.a.createElement("ul",{className:"info"},je.memers.map(function(Bt){return r.a.createElement("li",{key:Bt.id||Bt.name,onClick:function(){dt(Bt.id)},className:lt===Bt.id?"active":""},r.a.createElement("div",null,Bt.name),je.is_creat&&Bt.id&&lt===Bt.id?r.a.createElement("a",{className:"btn-del",onClick:function(Pt){Pt.preventDefault(),Pt.stopPropagation(),Ye(je.id,lt)}},r.a.createElement(H.a,null)):null)}),re?r.a.createElement("li",null,r.a.createElement(m.a,{type:"link",disabled:je.memers.length>=50,title:je.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:function(){le(je)}}," ",r.a.createElement(D.a,null)," \u6DFB\u52A0\u7EC4\u5458"," ")):null):null)}))},L=o("9kvl"),K=o("ju9d");function ee($){var me=$.children;return r.a.createElement("div",{className:"no-data"},r.a.createElement("img",{src:E.a,alt:"no-data",width:300}),me)}var he={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},fe;(function($){$[$.INITDATA=0]="INITDATA",$[$.SHOWLOADING=1]="SHOWLOADING",$[$.SHOWFORMPANEL=2]="SHOWFORMPANEL",$[$.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",$[$.SELECTGROUP=4]="SELECTGROUP",$[$.SETINDEX=5]="SETINDEX"})(fe||(fe={}));function Ce($,me){switch(me.type){case fe.INITDATA:return Object(s.a)(Object(s.a)({},$),me.payload);case fe.SHOWLOADING:return Object(s.a)(Object(s.a)({},$),{},{loading:me.payload});case fe.SETINDEX:return Object(s.a)(Object(s.a)({},$),{},{index:me.payload});case fe.SHOWFORMPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case fe.SHOWMEMBERPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case fe.SELECTGROUP:return Object(s.a)(Object(s.a)({},$),{},{selectedGroup:me.payload,showFormPanel:!0});default:throw new Error}}function Te($){var me,re=$.user,ae=Object(i.useReducer)(Ce,he),we=Object(e.a)(ae,2),le=we[0],te=we[1],Q=le.data,J=le.index,ve=le.loading,_e=le.showFormPanel,Oe=le.selectedGroup,Xe=le.showMemberPanel,tt=(me=re.userInfo)===null||me===void 0?void 0:me.role,lt=Object(i.useMemo)(function(){var Lt=[],Xt=[],rn=Object(A.a)(Q),wt;try{for(rn.s();!(wt=rn.n()).done;){var bt=wt.value;bt.is_creat?Lt.push(bt):Xt.push(bt)}}catch(ke){rn.e(ke)}finally{rn.f()}return[Lt,Xt]},[Q]);Object(i.useEffect)(function(){tt===15&&te({type:fe.SETINDEX,payload:1})},[tt]);function dt(){return vt.apply(this,arguments)}function vt(){return vt=Object(g.a)(n.a.mark(function Lt(){var Xt;return n.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,_();case 2:Xt=wt.sent,te({type:fe.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Xt.groups}});case 4:case"end":return wt.stop()}},Lt)})),vt.apply(this,arguments)}Object(i.useEffect)(function(){dt()},[]);function _t(Lt){return Ye.apply(this,arguments)}function Ye(){return Ye=Object(g.a)(n.a.mark(function Lt(Xt){return n.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(!Oe.id){wt.next=5;break}return wt.next=3,R(Oe.id,Xt);case 3:wt.next=7;break;case 5:return wt.next=7,P(Xt);case 7:dt();case 8:case"end":return wt.stop()}},Lt)})),Ye.apply(this,arguments)}function je(){te({type:fe.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ht(Lt){te({type:fe.SELECTGROUP,payload:Lt})}function Bt(){te({type:fe.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function Et(){te({type:fe.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function Pt(Lt){te({type:fe.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Lt}})}function Ze(Lt,Xt){return We.apply(this,arguments)}function We(){return We=Object(g.a)(n.a.mark(function Lt(Xt,rn){return n.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,v(Xt,rn);case 2:dt();case 3:case"end":return bt.stop()}},Lt)})),We.apply(this,arguments)}function Je(Lt){return Ae.apply(this,arguments)}function Ae(){return Ae=Object(g.a)(n.a.mark(function Lt(Xt){return n.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,T(Xt);case 2:dt();case 3:case"end":return wt.stop()}},Lt)})),Ae.apply(this,arguments)}function Ue(Lt){return He.apply(this,arguments)}function He(){return He=Object(g.a)(n.a.mark(function Lt(Xt){return n.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,S(Xt);case 2:dt();case 3:case"end":return wt.stop()}},Lt)})),He.apply(this,arguments)}function Fe(Lt){te({type:fe.SETINDEX,payload:parseInt(Lt.target.id,10)})}function et(Lt,Xt){return mt.apply(this,arguments)}function mt(){return mt=Object(g.a)(n.a.mark(function Lt(Xt,rn){return n.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return Et(),bt.next=3,x({user_ids:Xt,group_id:rn});case 3:dt();case 4:case"end":return bt.stop()}},Lt)})),mt.apply(this,arguments)}return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"teaching-circling-container"},r.a.createElement("h3",null," ","\u6559\u7814\u56E2\u961F"," ",tt<=12&&r.a.createElement(m.a,{type:"primary",disabled:Q.length>=50,title:Q.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:je},"\u65B0\u5EFA")," "),r.a.createElement("div",{className:"teaching-circling-body"},tt===15?null:r.a.createElement("ul",{className:"navs"},r.a.createElement("li",{className:J===0?"active":""},r.a.createElement("a",{id:"0",onClick:Fe},"\u6211\u521B\u5EFA\u7684")),r.a.createElement("li",{className:J===1?"active":""},r.a.createElement("a",{id:"1",onClick:Fe},"\u6211\u52A0\u5165\u7684"))),r.a.createElement("div",{className:lt[J].length===0?"nodata-content":"main-content"},lt[J].length===0?r.a.createElement(ee,null,tt<=12?r.a.createElement(r.a.Fragment,null," ",r.a.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",r.a.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):r.a.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):r.a.createElement(F,{onExitGroup:Ue,onPlusMember:Pt,onDelMember:Ze,onDelGroup:Je,isAdminOrTeacher:tt<=12,onChangeGroupName:ht,data:lt[J]}))),r.a.createElement("p",{style:{width:1200,margin:"0 auto 40px auto"},className:"desc"}," ","* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"," ")),r.a.createElement(N,{callback:_t,visible:_e,onCancel:Bt,id:Oe.id,name:Oe.name}),r.a.createElement(d.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Xe,onCancel:Et,footer:null,width:1100,bodyStyle:{minHeight:200}},r.a.createElement(K.a,{container_id:Oe.id,container_type:4,onSelect:et,onCancel:Et})))}var ce=Object(L.a)(function($){var me=$.user;return{user:me}})(Te),ye=o("SLjR"),Ee=o("55Ip"),ue=a.a.Group,se=z.a=function($){var me=$.onSelect,re=$.onCancel,ae=Object(i.useState)([]),we=Object(e.a)(ae,2),le=we[0],te=we[1],Q=Object(i.useState)(!0),J=Object(e.a)(Q,2),ve=J[0],_e=J[1];Object(i.useEffect)(function(){function tt(){return lt.apply(this,arguments)}function lt(){return lt=Object(g.a)(n.a.mark(function dt(){var vt,_t;return n.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,Object(c.c)("teach_groups/my.json");case 2:vt=je.sent,_t=vt.groups,te(_t),_e(!1);case 6:case"end":return je.stop()}},dt)})),lt.apply(this,arguments)}tt()},[]);var Oe=Object(i.useMemo)(function(){var tt=[],lt=[],dt=Object(A.a)(le),vt;try{for(dt.s();!(vt=dt.n()).done;){var _t=vt.value;_t.is_creat?tt.push(_t):lt.push(_t)}}catch(Ye){dt.e(Ye)}finally{dt.f()}return[tt,lt]},[le]);function Xe(tt){me(tt)}return r.a.createElement(b.a,{className:"select-teach-group",onFinish:Xe},ve?r.a.createElement(C.a,{paragraph:!0}):le.length===0?r.a.createElement(ee,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",r.a.createElement(Ee.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):r.a.createElement(r.a.Fragment,null,r.a.createElement(b.a.Item,{name:"group_id"},r.a.createElement(ue,null,r.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),r.a.createElement("ul",{className:"groups"},Oe[0].map(function(tt){return r.a.createElement("li",{key:tt.id},r.a.createElement(a.a,{value:tt.id},tt.name))})),r.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),r.a.createElement("ul",{className:"groups"},Oe[1].map(function(tt){return r.a.createElement("li",{key:tt.id},r.a.createElement(a.a,{value:tt.id},tt.name))})))),r.a.createElement("div",{className:"btn-actions"},r.a.createElement(m.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),r.a.createElement(m.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(k,z,o){(function(M,m){k.exports=m()})(this,function(){"use strict";function M(Ze,We){for(var Je=0;Je<We.length;Je++){var Ae=We[Je];Ae.enumerable=Ae.enumerable||!1,Ae.configurable=!0,"value"in Ae&&(Ae.writable=!0),Object.defineProperty(Ze,Ae.key,Ae)}}function m(Ze,We,Je){return We&&M(Ze.prototype,We),Je&&M(Ze,Je),Ze}function O(Ze,We){if(!Ze)return;if(typeof Ze=="string")return b(Ze,We);var Je=Object.prototype.toString.call(Ze).slice(8,-1);if(Je==="Object"&&Ze.constructor&&(Je=Ze.constructor.name),Je==="Map"||Je==="Set")return Array.from(Ze);if(Je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Je))return b(Ze,We)}function b(Ze,We){(We==null||We>Ze.length)&&(We=Ze.length);for(var Je=0,Ae=new Array(We);Je<We;Je++)Ae[Je]=Ze[Je];return Ae}function y(Ze,We){var Je;if(typeof Symbol=="undefined"||Ze[Symbol.iterator]==null){if(Array.isArray(Ze)||(Je=O(Ze))||We&&Ze&&typeof Ze.length=="number"){Je&&(Ze=Je);var Ae=0;return function(){return Ae>=Ze.length?{done:!0}:{done:!1,value:Ze[Ae++]}}}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 Je=Ze[Symbol.iterator](),Je.next.bind(Je)}function C(Ze,We){return We={exports:{}},Ze(We,We.exports),We.exports}var A=C(function(Ze){function We(){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 Je(Ae){Ze.exports.defaults=Ae}Ze.exports={defaults:We(),getDefaults:We,changeDefaults:Je}}),g=A.defaults,e=A.getDefaults,f=A.changeDefaults,a=/[&<>"']/,l=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=function(We){return r[We]};function h(Ze,We){if(We){if(a.test(Ze))return Ze.replace(l,c)}else if(n.test(Ze))return Ze.replace(i,c);return Ze}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ze){return Ze.replace(d,function(We,Je){return Je=Je.toLowerCase(),Je==="colon"?":":Je.charAt(0)==="#"?Je.charAt(1)==="x"?String.fromCharCode(parseInt(Je.substring(2),16)):String.fromCharCode(+Je.substring(1)):""})}var u=/(^|[^\[])\^/g;function w(Ze,We){Ze=Ze.source||Ze,We=We||"";var Je={replace:function(Ue,He){return He=He.source||He,He=He.replace(u,"$1"),Ze=Ze.replace(Ue,He),Je},getRegex:function(){return new RegExp(Ze,We)}};return Je}var E=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Ze,We,Je){if(Ze){var Ae;try{Ae=decodeURIComponent(s(Je)).replace(E,"").toLowerCase()}catch(Ue){return null}if(Ae.indexOf("javascript:")===0||Ae.indexOf("vbscript:")===0||Ae.indexOf("data:")===0)return null}We&&!_.test(Je)&&(Je=T(We,Je));try{Je=encodeURI(Je).replace(/%25/g,"%")}catch(Ue){return null}return Je}var R={},x=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(Ze,We){R[" "+Ze]||(x.test(Ze)?R[" "+Ze]=Ze+"/":R[" "+Ze]=V(Ze,"/",!0)),Ze=R[" "+Ze];var Je=Ze.indexOf(":")===-1;return We.substring(0,2)==="//"?Je?We:Ze.replace(S,"$1")+We:We.charAt(0)==="/"?Je?We:Ze.replace(v,"$1")+We:Ze+We}var U={exec:function(){}};function I(Ze){for(var We=1,Je,Ae;We<arguments.length;We++){Je=arguments[We];for(Ae in Je)Object.prototype.hasOwnProperty.call(Je,Ae)&&(Ze[Ae]=Je[Ae])}return Ze}function N(Ze,We){var Je=Ze.replace(/\|/g,function(He,Fe,et){for(var mt=!1,Lt=Fe;--Lt>=0&&et[Lt]==="\\";)mt=!mt;return mt?"|":" |"}),Ae=Je.split(/ \|/),Ue=0;if(Ae.length>We)Ae.splice(We);else for(;Ae.length<We;)Ae.push("");for(;Ue<Ae.length;Ue++)Ae[Ue]=Ae[Ue].trim().replace(/\\\|/g,"|");return Ae}function V(Ze,We,Je){var Ae=Ze.length;if(Ae===0)return"";for(var Ue=0;Ue<Ae;){var He=Ze.charAt(Ae-Ue-1);if(He===We&&!Je)Ue++;else if(He!==We&&Je)Ue++;else break}return Ze.substr(0,Ae-Ue)}function H(Ze,We){if(Ze.indexOf(We[1])===-1)return-1;for(var Je=Ze.length,Ae=0,Ue=0;Ue<Je;Ue++)if(Ze[Ue]==="\\")Ue++;else if(Ze[Ue]===We[0])Ae++;else if(Ze[Ue]===We[1]&&(Ae--,Ae<0))return Ue;return-1}function D(Ze){Ze&&Ze.sanitize&&!Ze.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var W={escape:h,unescape:s,edit:w,cleanUrl:P,resolveUrl:T,noopTest:U,merge:I,splitCells:N,rtrim:V,findClosingBracket:H,checkSanitizeDeprecation:D},F=A.defaults,L=W.rtrim,K=W.splitCells,ee=W.escape,he=W.findClosingBracket;function fe(Ze,We,Je){var Ae=We.href,Ue=We.title?ee(We.title):null,He=Ze[1].replace(/\\([\[\]])/g,"$1");return Ze[0].charAt(0)!=="!"?{type:"link",raw:Je,href:Ae,title:Ue,text:He}:{type:"image",raw:Je,href:Ae,title:Ue,text:ee(He)}}function Ce(Ze,We){var Je=Ze.match(/^(\s+)(?:```)/);if(Je===null)return We;var Ae=Je[1];return We.split(`
`).map(function(Ue){var He=Ue.match(/^\s+/);if(He===null)return Ue;var Fe=He[0];return Fe.length>=Ae.length?Ue.slice(Ae.length):Ue}).join(`
`)}var Te=function(){function Ze(Je){this.options=Je||F}var We=Ze.prototype;return We.space=function(Ae){var Ue=this.rules.block.newline.exec(Ae);if(Ue)return Ue[0].length>1?{type:"space",raw:Ue[0]}:{raw:`
`}},We.code=function(Ae,Ue){var He=this.rules.block.code.exec(Ae);if(He){var Fe=Ue[Ue.length-1];if(Fe&&Fe.type==="paragraph")return{raw:He[0],text:He[0].trimRight()};var et=He[0].replace(/^ {4}/gm,"");return{type:"code",raw:He[0],codeBlockStyle:"indented",text:this.options.pedantic?et:L(et,`
`)}}},We.fences=function(Ae){var Ue=this.rules.block.fences.exec(Ae);if(Ue){var He=Ue[0],Fe=Ce(He,Ue[3]||"");return{type:"code",raw:He,lang:Ue[2]?Ue[2].trim():Ue[2],text:Fe}}},We.heading=function(Ae){var Ue=this.rules.block.heading.exec(Ae);if(Ue)return{type:"heading",raw:Ue[0],depth:Ue[1].length,text:Ue[2]}},We.nptable=function(Ae){var Ue=this.rules.block.nptable.exec(Ae);if(Ue){var He={type:"table",header:K(Ue[1].replace(/^ *| *\| *$/g,"")),align:Ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ue[3]?Ue[3].replace(/\n$/,"").split(`
`):[],raw:Ue[0]};if(He.header.length===He.align.length){var Fe=He.align.length,et;for(et=0;et<Fe;et++)/^ *-+: *$/.test(He.align[et])?He.align[et]="right":/^ *:-+: *$/.test(He.align[et])?He.align[et]="center":/^ *:-+ *$/.test(He.align[et])?He.align[et]="left":He.align[et]=null;for(Fe=He.cells.length,et=0;et<Fe;et++)He.cells[et]=K(He.cells[et],He.header.length);return He}}},We.hr=function(Ae){var Ue=this.rules.block.hr.exec(Ae);if(Ue)return{type:"hr",raw:Ue[0]}},We.blockquote=function(Ae){var Ue=this.rules.block.blockquote.exec(Ae);if(Ue){var He=Ue[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ue[0],text:He}}},We.list=function(Ae){var Ue=this.rules.block.list.exec(Ae);if(Ue){for(var He=Ue[0],Fe=Ue[2],et=Fe.length>1,mt=Fe[Fe.length-1]===")",Lt={type:"list",raw:He,ordered:et,start:et?+Fe.slice(0,-1):"",loose:!1,items:[]},Xt=Ue[0].match(this.rules.block.item),rn=!1,wt,bt,ke,nt,rt,De,Ke,Ct=Xt.length,ft=0;ft<Ct;ft++)wt=Xt[ft],He=wt,bt=wt.length,wt=wt.replace(/^ *([*+-]|\d+[.)]) */,""),~wt.indexOf(`
`)&&(bt-=wt.length,wt=this.options.pedantic?wt.replace(/^ {1,4}/gm,""):wt.replace(new RegExp("^ {1,"+bt+"}","gm"),"")),ft!==Ct-1&&(ke=this.rules.block.bullet.exec(Xt[ft+1])[0],(et?ke.length===1||!mt&&ke[ke.length-1]===")":ke.length>1||this.options.smartLists&&ke!==Fe)&&(nt=Xt.slice(ft+1).join(`
`),Lt.raw=Lt.raw.substring(0,Lt.raw.length-nt.length),ft=Ct-1)),rt=rn||/\n\n(?!\s*$)/.test(wt),ft!==Ct-1&&(rn=wt.charAt(wt.length-1)===`
`,rt||(rt=rn)),rt&&(Lt.loose=!0),De=/^\[[ xX]\] /.test(wt),Ke=void 0,De&&(Ke=wt[1]!==" ",wt=wt.replace(/^\[[ xX]\] +/,"")),Lt.items.push({type:"list_item",raw:He,task:De,checked:Ke,loose:rt,text:wt});return Lt}},We.html=function(Ae){var Ue=this.rules.block.html.exec(Ae);if(Ue)return{type:this.options.sanitize?"paragraph":"html",raw:Ue[0],pre:!this.options.sanitizer&&(Ue[1]==="pre"||Ue[1]==="script"||Ue[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ue[0]):ee(Ue[0]):Ue[0]}},We.def=function(Ae){var Ue=this.rules.block.def.exec(Ae);if(Ue){Ue[3]&&(Ue[3]=Ue[3].substring(1,Ue[3].length-1));var He=Ue[1].toLowerCase().replace(/\s+/g," ");return{tag:He,raw:Ue[0],href:Ue[2],title:Ue[3]}}},We.table=function(Ae){var Ue=this.rules.block.table.exec(Ae);if(Ue){var He={type:"table",header:K(Ue[1].replace(/^ *| *\| *$/g,"")),align:Ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ue[3]?Ue[3].replace(/\n$/,"").split(`
`):[]};if(He.header.length===He.align.length){He.raw=Ue[0];var Fe=He.align.length,et;for(et=0;et<Fe;et++)/^ *-+: *$/.test(He.align[et])?He.align[et]="right":/^ *:-+: *$/.test(He.align[et])?He.align[et]="center":/^ *:-+ *$/.test(He.align[et])?He.align[et]="left":He.align[et]=null;for(Fe=He.cells.length,et=0;et<Fe;et++)He.cells[et]=K(He.cells[et].replace(/^ *\| *| *\| *$/g,""),He.header.length);return He}}},We.lheading=function(Ae){var Ue=this.rules.block.lheading.exec(Ae);if(Ue)return{type:"heading",raw:Ue[0],depth:Ue[2].charAt(0)==="="?1:2,text:Ue[1]}},We.paragraph=function(Ae){var Ue=this.rules.block.paragraph.exec(Ae);if(Ue)return{type:"paragraph",raw:Ue[0],text:Ue[1].charAt(Ue[1].length-1)===`
`?Ue[1].slice(0,-1):Ue[1]}},We.text=function(Ae,Ue){var He=this.rules.block.text.exec(Ae);if(He){var Fe=Ue[Ue.length-1];return Fe&&Fe.type==="text"?{raw:He[0],text:He[0]}:{type:"text",raw:He[0],text:He[0]}}},We.escape=function(Ae){var Ue=this.rules.inline.escape.exec(Ae);if(Ue)return{type:"escape",raw:Ue[0],text:ee(Ue[1])}},We.tag=function(Ae,Ue,He){var Fe=this.rules.inline.tag.exec(Ae);if(Fe)return!Ue&&/^<a /i.test(Fe[0])?Ue=!0:Ue&&/^<\/a>/i.test(Fe[0])&&(Ue=!1),!He&&/^<(pre|code|kbd|script)(\s|>)/i.test(Fe[0])?He=!0:He&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Fe[0])&&(He=!1),{type:this.options.sanitize?"text":"html",raw:Fe[0],inLink:Ue,inRawBlock:He,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Fe[0]):ee(Fe[0]):Fe[0]}},We.link=function(Ae){var Ue=this.rules.inline.link.exec(Ae);if(Ue){var He=he(Ue[2],"()");if(He>-1){var Fe=Ue[0].indexOf("!")===0?5:4,et=Fe+Ue[1].length+He;Ue[2]=Ue[2].substring(0,He),Ue[0]=Ue[0].substring(0,et).trim(),Ue[3]=""}var mt=Ue[2],Lt="";if(this.options.pedantic){var Xt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(mt);Xt?(mt=Xt[1],Lt=Xt[3]):Lt=""}else Lt=Ue[3]?Ue[3].slice(1,-1):"";mt=mt.trim().replace(/^<([\s\S]*)>$/,"$1");var rn=fe(Ue,{href:mt&&mt.replace(this.rules.inline._escapes,"$1"),title:Lt&&Lt.replace(this.rules.inline._escapes,"$1")},Ue[0]);return rn}},We.reflink=function(Ae,Ue){var He;if((He=this.rules.inline.reflink.exec(Ae))||(He=this.rules.inline.nolink.exec(Ae))){var Fe=(He[2]||He[1]).replace(/\s+/g," ");if(Fe=Ue[Fe.toLowerCase()],!Fe||!Fe.href){var et=He[0].charAt(0);return{type:"text",raw:et,text:et}}var mt=fe(He,Fe,He[0]);return mt}},We.strong=function(Ae,Ue,He){He===void 0&&(He="");var Fe=this.rules.inline.strong.start.exec(Ae);if(Fe&&(!Fe[1]||Fe[1]&&(He===""||this.rules.inline.punctuation.exec(He)))){Ue=Ue.slice(-1*Ae.length);var et=Fe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;et.lastIndex=0;for(var mt;(Fe=et.exec(Ue))!=null;)if(mt=this.rules.inline.strong.middle.exec(Ue.slice(0,Fe.index+3)),mt)return{type:"strong",raw:Ae.slice(0,mt[0].length),text:Ae.slice(2,mt[0].length-2)}}},We.em=function(Ae,Ue,He){He===void 0&&(He="");var Fe=this.rules.inline.em.start.exec(Ae);if(Fe&&(!Fe[1]||Fe[1]&&(He===""||this.rules.inline.punctuation.exec(He)))){Ue=Ue.slice(-1*Ae.length);var et=Fe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;et.lastIndex=0;for(var mt;(Fe=et.exec(Ue))!=null;)if(mt=this.rules.inline.em.middle.exec(Ue.slice(0,Fe.index+2)),mt)return{type:"em",raw:Ae.slice(0,mt[0].length),text:Ae.slice(1,mt[0].length-1)}}},We.codespan=function(Ae){var Ue=this.rules.inline.code.exec(Ae);if(Ue){var He=Ue[2].replace(/\n/g," "),Fe=/[^ ]/.test(He),et=He.startsWith(" ")&&He.endsWith(" ");return Fe&&et&&(He=He.substring(1,He.length-1)),He=ee(He,!0),{type:"codespan",raw:Ue[0],text:He}}},We.br=function(Ae){var Ue=this.rules.inline.br.exec(Ae);if(Ue)return{type:"br",raw:Ue[0]}},We.del=function(Ae){var Ue=this.rules.inline.del.exec(Ae);if(Ue)return{type:"del",raw:Ue[0],text:Ue[1]}},We.autolink=function(Ae,Ue){var He=this.rules.inline.autolink.exec(Ae);if(He){var Fe,et;return He[2]==="@"?(Fe=ee(this.options.mangle?Ue(He[1]):He[1]),et="mailto:"+Fe):(Fe=ee(He[1]),et=Fe),{type:"link",raw:He[0],text:Fe,href:et,tokens:[{type:"text",raw:Fe,text:Fe}]}}},We.url=function(Ae,Ue){var He;if(He=this.rules.inline.url.exec(Ae)){var Fe,et;if(He[2]==="@")Fe=ee(this.options.mangle?Ue(He[0]):He[0]),et="mailto:"+Fe;else{var mt;do mt=He[0],He[0]=this.rules.inline._backpedal.exec(He[0])[0];while(mt!==He[0]);Fe=ee(He[0]),He[1]==="www."?et="http://"+Fe:et=Fe}return{type:"link",raw:He[0],text:Fe,href:et,tokens:[{type:"text",raw:Fe,text:Fe}]}}},We.inlineText=function(Ae,Ue,He){var Fe=this.rules.inline.text.exec(Ae);if(Fe){var et;return Ue?et=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Fe[0]):ee(Fe[0]):Fe[0]:et=ee(this.options.smartypants?He(Fe[0]):Fe[0]),{type:"text",raw:Fe[0],text:et}}},Ze}(),ce=W.noopTest,ye=W.edit,Ee=W.merge,ue={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*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\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:ce,table:ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ue.def=ye(ue.def).replace("label",ue._label).replace("title",ue._title).getRegex(),ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ue.item=ye(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=ye(ue.list).replace(/bull/g,ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ue.def.source+")").getRegex(),ue._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",ue._comment=/<!--(?!-?>)[\s\S]*?-->/,ue.html=ye(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=ye(ue._paragraph).replace("hr",ue.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",ue._tag).getRegex(),ue.blockquote=ye(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=Ee({},ue),ue.gfm=Ee({},ue.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*|$)"}),ue.gfm.nptable=ye(ue.gfm.nptable).replace("hr",ue.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",ue._tag).getRegex(),ue.gfm.table=ye(ue.gfm.table).replace("hr",ue.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",ue._tag).getRegex(),ue.pedantic=Ee({},ue.normal,{html:ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ue._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:ce,paragraph:ye(ue.normal._paragraph).replace("hr",ue.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ue.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var se={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ce,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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:ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};se._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",se.punctuation=ye(se.punctuation).replace(/punctuation/g,se._punctuation).getRegex(),se._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",se._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",se.em.start=ye(se.em.start).replace(/punctuation/g,se._punctuation).getRegex(),se.em.middle=ye(se.em.middle).replace(/punctuation/g,se._punctuation).replace(/overlapSkip/g,se._overlapSkip).getRegex(),se.em.endAst=ye(se.em.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.em.endUnd=ye(se.em.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.start=ye(se.strong.start).replace(/punctuation/g,se._punctuation).getRegex(),se.strong.middle=ye(se.strong.middle).replace(/punctuation/g,se._punctuation).replace(/blockSkip/g,se._blockSkip).getRegex(),se.strong.endAst=ye(se.strong.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.endUnd=ye(se.strong.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.blockSkip=ye(se._blockSkip,"g").getRegex(),se.overlapSkip=ye(se._overlapSkip,"g").getRegex(),se._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,se._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,se._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])?)+(?![-_])/,se.autolink=ye(se.autolink).replace("scheme",se._scheme).replace("email",se._email).getRegex(),se._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,se.tag=ye(se.tag).replace("comment",ue._comment).replace("attribute",se._attribute).getRegex(),se._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,se._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,se._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,se.link=ye(se.link).replace("label",se._label).replace("href",se._href).replace("title",se._title).getRegex(),se.reflink=ye(se.reflink).replace("label",se._label).getRegex(),se.reflinkSearch=ye(se.reflinkSearch,"g").replace("reflink",se.reflink).replace("nolink",se.nolink).getRegex(),se.normal=Ee({},se),se.pedantic=Ee({},se.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:ye(/^!?\[(label)\]\((.*?)\)/).replace("label",se._label).getRegex(),reflink:ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",se._label).getRegex()}),se.gfm=Ee({},se.normal,{escape:ye(se.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]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),se.gfm.url=ye(se.gfm.url,"i").replace("email",se.gfm._extended_email).getRegex(),se.breaks=Ee({},se.gfm,{br:ye(se.br).replace("{2,}","*").getRegex(),text:ye(se.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var $={block:ue,inline:se},me=A.defaults,re=$.block,ae=$.inline;function we(Ze){return Ze.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function le(Ze){var We="",Je,Ae,Ue=Ze.length;for(Je=0;Je<Ue;Je++)Ae=Ze.charCodeAt(Je),Math.random()>.5&&(Ae="x"+Ae.toString(16)),We+="&#"+Ae+";";return We}var te=function(){function Ze(Je){this.tokens=[],this.tokens.links=Object.create(null),this.options=Je||me,this.options.tokenizer=this.options.tokenizer||new Te,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ae={block:re.normal,inline:ae.normal};this.options.pedantic?(Ae.block=re.pedantic,Ae.inline=ae.pedantic):this.options.gfm&&(Ae.block=re.gfm,this.options.breaks?Ae.inline=ae.breaks:Ae.inline=ae.gfm),this.tokenizer.rules=Ae}Ze.lex=function(Ae,Ue){var He=new Ze(Ue);return He.lex(Ae)};var We=Ze.prototype;return We.lex=function(Ae){return Ae=Ae.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ae,this.tokens,!0),this.inline(this.tokens),this.tokens},We.blockTokens=function(Ae,Ue,He){Ue===void 0&&(Ue=[]),He===void 0&&(He=!0),Ae=Ae.replace(/^ +$/gm,"");for(var Fe,et,mt,Lt;Ae;){if(Fe=this.tokenizer.space(Ae)){Ae=Ae.substring(Fe.raw.length),Fe.type&&Ue.push(Fe);continue}if(Fe=this.tokenizer.code(Ae,Ue)){Ae=Ae.substring(Fe.raw.length),Fe.type?Ue.push(Fe):(Lt=Ue[Ue.length-1],Lt.raw+=`
`+Fe.raw,Lt.text+=`
`+Fe.text);continue}if(Fe=this.tokenizer.fences(Ae)){Ae=Ae.substring(Fe.raw.length),Ue.push(Fe);continue}if(Fe=this.tokenizer.heading(Ae)){Ae=Ae.substring(Fe.raw.length),Ue.push(Fe);continue}if(Fe=this.tokenizer.nptable(Ae)){Ae=Ae.substring(Fe.raw.length),Ue.push(Fe);continue}if(Fe=this.tokenizer.hr(Ae)){Ae=Ae.substring(Fe.raw.length),Ue.push(Fe);continue}if(Fe=this.tokenizer.blockquote(Ae)){Ae=Ae.substring(Fe.raw.length),Fe.tokens=this.blockTokens(Fe.text,[],He),Ue.push(Fe);continue}if(Fe=this.tokenizer.list(Ae)){for(Ae=Ae.substring(Fe.raw.length),mt=Fe.items.length,et=0;et<mt;et++)Fe.items[et].tokens=this.blockTokens(Fe.items[et].text,[],!1);Ue.push(Fe);continue}if(Fe=this.tokenizer.html(Ae)){Ae=Ae.substring(Fe.raw.length),Ue.push(Fe);continue}if(He&&(Fe=this.tokenizer.def(Ae))){Ae=Ae.substring(Fe.raw.length),this.tokens.links[Fe.tag]||(this.tokens.links[Fe.tag]={href:Fe.href,title:Fe.title});continue}if(Fe=this.tokenizer.table(Ae)){Ae=Ae.substring(Fe.raw.length),Ue.push(Fe);continue}if(Fe=this.tokenizer.lheading(Ae)){Ae=Ae.substring(Fe.raw.length),Ue.push(Fe);continue}if(He&&(Fe=this.tokenizer.paragraph(Ae))){Ae=Ae.substring(Fe.raw.length),Ue.push(Fe);continue}if(Fe=this.tokenizer.text(Ae,Ue)){Ae=Ae.substring(Fe.raw.length),Fe.type?Ue.push(Fe):(Lt=Ue[Ue.length-1],Lt.raw+=`
`+Fe.raw,Lt.text+=`
`+Fe.text);continue}if(Ae){var Xt="Infinite loop on byte: "+Ae.charCodeAt(0);if(this.options.silent){console.error(Xt);break}else throw new Error(Xt)}}return Ue},We.inline=function(Ae){var Ue,He,Fe,et,mt,Lt,Xt=Ae.length;for(Ue=0;Ue<Xt;Ue++){Lt=Ae[Ue];switch(Lt.type){case"paragraph":case"text":case"heading":{Lt.tokens=[],this.inlineTokens(Lt.text,Lt.tokens);break}case"table":{for(Lt.tokens={header:[],cells:[]},et=Lt.header.length,He=0;He<et;He++)Lt.tokens.header[He]=[],this.inlineTokens(Lt.header[He],Lt.tokens.header[He]);for(et=Lt.cells.length,He=0;He<et;He++)for(mt=Lt.cells[He],Lt.tokens.cells[He]=[],Fe=0;Fe<mt.length;Fe++)Lt.tokens.cells[He][Fe]=[],this.inlineTokens(mt[Fe],Lt.tokens.cells[He][Fe]);break}case"blockquote":{this.inline(Lt.tokens);break}case"list":{for(et=Lt.items.length,He=0;He<et;He++)this.inline(Lt.items[He].tokens);break}}}return Ae},We.inlineTokens=function(Ae,Ue,He,Fe,et){Ue===void 0&&(Ue=[]),He===void 0&&(He=!1),Fe===void 0&&(Fe=!1),et===void 0&&(et="");var mt,Lt=Ae,Xt;if(this.tokens.links){var rn=Object.keys(this.tokens.links);if(rn.length>0)for(;(Xt=this.tokenizer.rules.inline.reflinkSearch.exec(Lt))!=null;)rn.includes(Xt[0].slice(Xt[0].lastIndexOf("[")+1,-1))&&(Lt=Lt.slice(0,Xt.index)+"["+"a".repeat(Xt[0].length-2)+"]"+Lt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Xt=this.tokenizer.rules.inline.blockSkip.exec(Lt))!=null;)Lt=Lt.slice(0,Xt.index)+"["+"a".repeat(Xt[0].length-2)+"]"+Lt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ae;){if(mt=this.tokenizer.escape(Ae)){Ae=Ae.substring(mt.raw.length),Ue.push(mt);continue}if(mt=this.tokenizer.tag(Ae,He,Fe)){Ae=Ae.substring(mt.raw.length),He=mt.inLink,Fe=mt.inRawBlock,Ue.push(mt);continue}if(mt=this.tokenizer.link(Ae)){Ae=Ae.substring(mt.raw.length),mt.type==="link"&&(mt.tokens=this.inlineTokens(mt.text,[],!0,Fe)),Ue.push(mt);continue}if(mt=this.tokenizer.reflink(Ae,this.tokens.links)){Ae=Ae.substring(mt.raw.length),mt.type==="link"&&(mt.tokens=this.inlineTokens(mt.text,[],!0,Fe)),Ue.push(mt);continue}if(mt=this.tokenizer.strong(Ae,Lt,et)){Ae=Ae.substring(mt.raw.length),mt.tokens=this.inlineTokens(mt.text,[],He,Fe),Ue.push(mt);continue}if(mt=this.tokenizer.em(Ae,Lt,et)){Ae=Ae.substring(mt.raw.length),mt.tokens=this.inlineTokens(mt.text,[],He,Fe),Ue.push(mt);continue}if(mt=this.tokenizer.codespan(Ae)){Ae=Ae.substring(mt.raw.length),Ue.push(mt);continue}if(mt=this.tokenizer.br(Ae)){Ae=Ae.substring(mt.raw.length),Ue.push(mt);continue}if(mt=this.tokenizer.del(Ae)){Ae=Ae.substring(mt.raw.length),mt.tokens=this.inlineTokens(mt.text,[],He,Fe),Ue.push(mt);continue}if(mt=this.tokenizer.autolink(Ae,le)){Ae=Ae.substring(mt.raw.length),Ue.push(mt);continue}if(!He&&(mt=this.tokenizer.url(Ae,le))){Ae=Ae.substring(mt.raw.length),Ue.push(mt);continue}if(mt=this.tokenizer.inlineText(Ae,Fe,we)){Ae=Ae.substring(mt.raw.length),et=mt.raw.slice(-1),Ue.push(mt);continue}if(Ae){var wt="Infinite loop on byte: "+Ae.charCodeAt(0);if(this.options.silent){console.error(wt);break}else throw new Error(wt)}}return Ue},m(Ze,null,[{key:"rules",get:function(){return{block:re,inline:ae}}}]),Ze}(),Q=A.defaults,J=W.cleanUrl,ve=W.escape,_e=function(){function Ze(Je){this.options=Je||Q}var We=Ze.prototype;return We.code=function(Ae,Ue,He){var Fe=(Ue||"").match(/\S*/)[0];if(this.options.highlight){var et=this.options.highlight(Ae,Fe);et!=null&&et!==Ae&&(He=!0,Ae=et)}return Fe?'<pre><code class="'+this.options.langPrefix+ve(Fe,!0)+'">'+(He?Ae:ve(Ae,!0))+`</code></pre>
`:"<pre><code>"+(He?Ae:ve(Ae,!0))+`</code></pre>
`},We.blockquote=function(Ae){return`<blockquote>
`+Ae+`</blockquote>
`},We.html=function(Ae){return Ae},We.heading=function(Ae,Ue,He,Fe){return this.options.headerIds?"<h"+Ue+' id="'+this.options.headerPrefix+Fe.slug(He)+'">'+Ae+"</h"+Ue+`>
`:"<h"+Ue+">"+Ae+"</h"+Ue+`>
`},We.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},We.list=function(Ae,Ue,He){var Fe=Ue?"ol":"ul",et=Ue&&He!==1?' start="'+He+'"':"";return"<"+Fe+et+`>
`+Ae+"</"+Fe+`>
`},We.listitem=function(Ae){return"<li>"+Ae+`</li>
`},We.checkbox=function(Ae){return"<input "+(Ae?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},We.paragraph=function(Ae){return"<p>"+Ae+`</p>
`},We.table=function(Ae,Ue){return Ue&&(Ue="<tbody>"+Ue+"</tbody>"),`<table>
<thead>
`+Ae+`</thead>
`+Ue+`</table>
`},We.tablerow=function(Ae){return`<tr>
`+Ae+`</tr>
`},We.tablecell=function(Ae,Ue){var He=Ue.header?"th":"td",Fe=Ue.align?"<"+He+' align="'+Ue.align+'">':"<"+He+">";return Fe+Ae+"</"+He+`>
`},We.strong=function(Ae){return"<strong>"+Ae+"</strong>"},We.em=function(Ae){return"<em>"+Ae+"</em>"},We.codespan=function(Ae){return"<code>"+Ae+"</code>"},We.br=function(){return this.options.xhtml?"<br/>":"<br>"},We.del=function(Ae){return"<del>"+Ae+"</del>"},We.link=function(Ae,Ue,He){if(Ae=J(this.options.sanitize,this.options.baseUrl,Ae),Ae===null)return He;var Fe='<a href="'+ve(Ae)+'"';return Ue&&(Fe+=' title="'+Ue+'"'),Fe+=">"+He+"</a>",Fe},We.image=function(Ae,Ue,He){if(Ae=J(this.options.sanitize,this.options.baseUrl,Ae),Ae===null)return He;var Fe='<img src="'+Ae+'" alt="'+He+'"';return Ue&&(Fe+=' title="'+Ue+'"'),Fe+=this.options.xhtml?"/>":">",Fe},We.text=function(Ae){return Ae},Ze}(),Oe=function(){function Ze(){}var We=Ze.prototype;return We.strong=function(Ae){return Ae},We.em=function(Ae){return Ae},We.codespan=function(Ae){return Ae},We.del=function(Ae){return Ae},We.html=function(Ae){return Ae},We.text=function(Ae){return Ae},We.link=function(Ae,Ue,He){return""+He},We.image=function(Ae,Ue,He){return""+He},We.br=function(){return""},Ze}(),Xe=function(){function Ze(){this.seen={}}var We=Ze.prototype;return We.slug=function(Ae){var Ue=Ae.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ue)){var He=Ue;do this.seen[He]++,Ue=He+"-"+this.seen[He];while(this.seen.hasOwnProperty(Ue))}return this.seen[Ue]=0,Ue},Ze}(),tt=A.defaults,lt=W.unescape,dt=function(){function Ze(Je){this.options=Je||tt,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Oe,this.slugger=new Xe}Ze.parse=function(Ae,Ue){var He=new Ze(Ue);return He.parse(Ae)};var We=Ze.prototype;return We.parse=function(Ae,Ue){Ue===void 0&&(Ue=!0);var He="",Fe,et,mt,Lt,Xt,rn,wt,bt,ke,nt,rt,De,Ke,Ct,ft,xt,Mt,ct,Ut=Ae.length;for(Fe=0;Fe<Ut;Fe++){nt=Ae[Fe];switch(nt.type){case"space":continue;case"hr":{He+=this.renderer.hr();continue}case"heading":{He+=this.renderer.heading(this.parseInline(nt.tokens),nt.depth,lt(this.parseInline(nt.tokens,this.textRenderer)),this.slugger);continue}case"code":{He+=this.renderer.code(nt.text,nt.lang,nt.escaped);continue}case"table":{for(bt="",wt="",Lt=nt.header.length,et=0;et<Lt;et++)wt+=this.renderer.tablecell(this.parseInline(nt.tokens.header[et]),{header:!0,align:nt.align[et]});for(bt+=this.renderer.tablerow(wt),ke="",Lt=nt.cells.length,et=0;et<Lt;et++){for(rn=nt.tokens.cells[et],wt="",Xt=rn.length,mt=0;mt<Xt;mt++)wt+=this.renderer.tablecell(this.parseInline(rn[mt]),{header:!1,align:nt.align[mt]});ke+=this.renderer.tablerow(wt)}He+=this.renderer.table(bt,ke);continue}case"blockquote":{ke=this.parse(nt.tokens),He+=this.renderer.blockquote(ke);continue}case"list":{for(rt=nt.ordered,De=nt.start,Ke=nt.loose,Lt=nt.items.length,ke="",et=0;et<Lt;et++)ft=nt.items[et],xt=ft.checked,Mt=ft.task,Ct="",ft.task&&(ct=this.renderer.checkbox(xt),Ke?ft.tokens.length>0&&ft.tokens[0].type==="text"?(ft.tokens[0].text=ct+" "+ft.tokens[0].text,ft.tokens[0].tokens&&ft.tokens[0].tokens.length>0&&ft.tokens[0].tokens[0].type==="text"&&(ft.tokens[0].tokens[0].text=ct+" "+ft.tokens[0].tokens[0].text)):ft.tokens.unshift({type:"text",text:ct}):Ct+=ct),Ct+=this.parse(ft.tokens,Ke),ke+=this.renderer.listitem(Ct,Mt,xt);He+=this.renderer.list(ke,rt,De);continue}case"html":{He+=this.renderer.html(nt.text);continue}case"paragraph":{He+=this.renderer.paragraph(this.parseInline(nt.tokens));continue}case"text":{for(ke=nt.tokens?this.parseInline(nt.tokens):nt.text;Fe+1<Ut&&Ae[Fe+1].type==="text";)nt=Ae[++Fe],ke+=`
`+(nt.tokens?this.parseInline(nt.tokens):nt.text);He+=Ue?this.renderer.paragraph(ke):ke;continue}default:{var Ft='Token with "'+nt.type+'" type was not found.';if(this.options.silent){console.error(Ft);return}else throw new Error(Ft)}}}return He},We.parseInline=function(Ae,Ue){Ue=Ue||this.renderer;var He="",Fe,et,mt=Ae.length;for(Fe=0;Fe<mt;Fe++){et=Ae[Fe];switch(et.type){case"escape":{He+=Ue.text(et.text);break}case"html":{He+=Ue.html(et.text);break}case"link":{He+=Ue.link(et.href,et.title,this.parseInline(et.tokens,Ue));break}case"image":{He+=Ue.image(et.href,et.title,et.text);break}case"strong":{He+=Ue.strong(this.parseInline(et.tokens,Ue));break}case"em":{He+=Ue.em(this.parseInline(et.tokens,Ue));break}case"codespan":{He+=Ue.codespan(et.text);break}case"br":{He+=Ue.br();break}case"del":{He+=Ue.del(this.parseInline(et.tokens,Ue));break}case"text":{He+=Ue.text(et.text);break}default:{var Lt='Token with "'+et.type+'" type was not found.';if(this.options.silent){console.error(Lt);return}else throw new Error(Lt)}}}return He},Ze}(),vt=W.merge,_t=W.checkSanitizeDeprecation,Ye=W.escape,je=A.getDefaults,ht=A.changeDefaults,Bt=A.defaults;function Et(Ze,We,Je){if(typeof Ze=="undefined"||Ze===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ze!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ze)+", string expected");if(typeof We=="function"&&(Je=We,We=null),We=vt({},Et.defaults,We||{}),_t(We),Je){var Ae=We.highlight,Ue;try{Ue=te.lex(Ze,We)}catch(mt){return Je(mt)}var He=function(Lt){var Xt;if(!Lt)try{Xt=dt.parse(Ue,We)}catch(rn){Lt=rn}return We.highlight=Ae,Lt?Je(Lt):Je(null,Xt)};if(!Ae||Ae.length<3)return He();if(delete We.highlight,!Ue.length)return He();var Fe=0;Et.walkTokens(Ue,function(mt){mt.type==="code"&&(Fe++,setTimeout(function(){Ae(mt.text,mt.lang,function(Lt,Xt){if(Lt)return He(Lt);Xt!=null&&Xt!==mt.text&&(mt.text=Xt,mt.escaped=!0),Fe--,Fe===0&&He()})},0))}),Fe===0&&He();return}try{var et=te.lex(Ze,We);return We.walkTokens&&Et.walkTokens(et,We.walkTokens),dt.parse(et,We)}catch(mt){if(mt.message+=`
Please report this to https://github.com/markedjs/marked.`,We.silent)return"<p>An error occurred:</p><pre>"+Ye(mt.message+"",!0)+"</pre>";throw mt}}Et.options=Et.setOptions=function(Ze){return vt(Et.defaults,Ze),ht(Et.defaults),Et},Et.getDefaults=je,Et.defaults=Bt,Et.use=function(Ze){var We=vt({},Ze);if(Ze.renderer&&function(){var Ae=Et.defaults.renderer||new _e,Ue=function(et){var mt=Ae[et];Ae[et]=function(){for(var Lt=arguments.length,Xt=new Array(Lt),rn=0;rn<Lt;rn++)Xt[rn]=arguments[rn];var wt=Ze.renderer[et].apply(Ae,Xt);return wt===!1&&(wt=mt.apply(Ae,Xt)),wt}};for(var He in Ze.renderer)Ue(He);We.renderer=Ae}(),Ze.tokenizer&&function(){var Ae=Et.defaults.tokenizer||new Te,Ue=function(et){var mt=Ae[et];Ae[et]=function(){for(var Lt=arguments.length,Xt=new Array(Lt),rn=0;rn<Lt;rn++)Xt[rn]=arguments[rn];var wt=Ze.tokenizer[et].apply(Ae,Xt);return wt===!1&&(wt=mt.apply(Ae,Xt)),wt}};for(var He in Ze.tokenizer)Ue(He);We.tokenizer=Ae}(),Ze.walkTokens){var Je=Et.defaults.walkTokens;We.walkTokens=function(Ae){Ze.walkTokens(Ae),Je&&Je(Ae)}}Et.setOptions(We)},Et.walkTokens=function(Ze,We){for(var Je=y(Ze),Ae;!(Ae=Je()).done;){var Ue=Ae.value;We(Ue);switch(Ue.type){case"table":{for(var He=y(Ue.tokens.header),Fe;!(Fe=He()).done;){var et=Fe.value;Et.walkTokens(et,We)}for(var mt=y(Ue.tokens.cells),Lt;!(Lt=mt()).done;)for(var Xt=Lt.value,rn=y(Xt),wt;!(wt=rn()).done;){var bt=wt.value;Et.walkTokens(bt,We)}break}case"list":{Et.walkTokens(Ue.items,We);break}default:Ue.tokens&&Et.walkTokens(Ue.tokens,We)}}},Et.Parser=dt,Et.parser=dt.parse,Et.Renderer=_e,Et.TextRenderer=Oe,Et.Lexer=te,Et.lexer=te.lex,Et.Tokenizer=Te,Et.Slugger=Xe,Et.parse=Et;var Pt=Et;return Pt})},E4JC:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.StreamCipher,y=m.algo,C=[],A=[],g=[],e=y.Rabbit=b.extend({_doReset:function(){for(var a=this._key.words,l=this.cfg.iv,n=0;n<4;n++)a[n]=(a[n]<<8|a[n]>>>24)&16711935|(a[n]<<24|a[n]>>>8)&4278255360;var i=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],r=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var n=0;n<4;n++)f.call(this);for(var n=0;n<8;n++)r[n]^=i[n+4&7];if(l){var c=l.words,h=c[0],d=c[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,u=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|u&4294901760,E=u<<16|s&65535;r[0]^=s,r[1]^=w,r[2]^=u,r[3]^=E,r[4]^=s,r[5]^=w,r[6]^=u,r[7]^=E;for(var n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(a,l){var n=this._X;f.call(this),C[0]=n[0]^n[5]>>>16^n[3]<<16,C[1]=n[2]^n[7]>>>16^n[5]<<16,C[2]=n[4]^n[1]>>>16^n[7]<<16,C[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)C[i]=(C[i]<<8|C[i]>>>24)&16711935|(C[i]<<24|C[i]>>>8)&4278255360,a[l+i]^=C[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,l=this._C,n=0;n<8;n++)A[n]=l[n];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<A[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<A[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<A[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<A[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<A[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<A[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<A[6]>>>0?1:0)|0,this._b=l[7]>>>0<A[7]>>>0?1:0;for(var n=0;n<8;n++){var i=a[n]+l[n],r=i&65535,c=i>>>16,h=((r*r>>>17)+r*c>>>15)+c*c,d=((i&4294901760)*i|0)+((i&65535)*i|0);g[n]=h^d}a[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,a[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,a[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,a[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,a[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,a[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,a[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,a[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}m.Rabbit=b._createHelper(e)}(),M.Rabbit})},E7E6:function(k,z){k.exports="data:image/png;base64,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"},E9nw:function(k,z){k.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var M=document.activeElement,m=[],O=0;O<o.rangeCount;O++)m.push(o.getRangeAt(O));switch(M.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":M.blur();break;default:M=null;break}return o.removeAllRanges(),function(){o.type==="Caret"&&o.removeAllRanges(),o.rangeCount||m.forEach(function(b){o.addRange(b)}),M&&M.focus()}}},EGTK:function(k,z,o){"use strict";var M=o("R9oj"),m=o("ECub"),O=o("T2oS"),b=o("W9HT"),y=o("5NDa"),C=o("5rEg"),A=o("k1fw"),g=o("9og8"),e=o("tJVT"),f=o("WmNS"),a=o.n(f),l=o("q1tI"),n=o.n(l),i=o("TSYQ"),r=o.n(i),c=o("dGDm"),h=o.n(c),d=o("Lai7"),s=o.n(d),u=o("ErOA"),w=o("LvDl"),E=o.n(w),_=function(x){var S=x.className,v=x.dispatch,T=x.skin,U=T===void 0?"white":T,I=x.value,N=I===void 0?null:I,V=x.loading,H=V===void 0?!1:V,D=x.data,W=D===void 0?[]:D,F=x.otherData,L=F===void 0?[]:F,K=x.tags,ee=K===void 0?[]:K,he=x.onChange,fe=he===void 0?function(){}:he,Ce=Object(l.useState)(""),Te=Object(e.a)(Ce,2),ce=Te[0],ye=Te[1],Ee=Object(l.useState)(!1),ue=Object(e.a)(Ee,2),se=ue[0],$=ue[1],me=Object(l.useState)([]),re=Object(e.a)(me,2),ae=re[0],we=re[1],le=Object(l.useState)(0),te=Object(e.a)(le,2),Q=te[0],J=te[1],ve=Object(l.useRef)(null),_e=Object(l.useRef)(String(Math.floor(Math.random()*1e6))).current,Oe=Object(l.useRef)(),Xe=Object(l.useRef)(null),tt=Object(l.useRef)(0),lt=Object(l.useRef)([]);Object(l.useEffect)(function(){return window.addEventListener("keydown",dt),function(){window.removeEventListener("keydown",dt)}},[ce,se,ae]);var dt=function(et){if(!se||et.keyCode!==40&&et.keyCode!==38)return;var mt=0;et.keyCode===40&&se&&(Q<ae.length-1?mt=Q+1:mt=0,console.log("\u4E0B"),je(mt,"down")),et.keyCode===38&&se&&(Q===0?mt=ae.length-1:mt=Q-1,je(mt,"up")),J(mt),_t(ce,mt,!0)},vt=function(et,mt){var Lt=function(wt){var bt=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,ke={};return ke["^"]="\\^",ke["."]="\\.",ke["\\"]="\\\\",ke["|"]="\\|",ke["("]="\\(",ke[")"]="\\)",ke["*"]="\\*",ke["+"]="\\+",ke["-"]="\\-",ke.$="$",ke["["]="\\[",ke["]"]="\\]",ke["?"]="\\?",wt=wt.replace(bt,function(nt){return ke[nt]}),wt},Xt=new RegExp(Lt(mt),"gi");return et=et.replace(Xt,function(rn){return"<span style='color:#0152d9;'>"+rn+"</span>"}),et},_t=function(){var Fe=Object(g.a)(a.a.mark(function et(mt,Lt,Xt){var rn,wt,bt;return a.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(rn=tt.current+1,tt.current=rn,wt=function(De){var Ke=De==null?void 0:De.map(function(Ct,ft){var xt=Ct.id,Mt=Ct.name,ct=Object(A.a)(Object(A.a)({},Ct),{},{label:n.a.createElement("ul",{id:"search-".concat(_e,"-").concat(ft),onClick:function(){return Et(xt,ct)},className:ft===Lt?h.a.searchListActive:h.a.searchList},n.a.createElement("li",{className:h.a.name,dangerouslySetInnerHTML:{__html:vt(Mt,mt)}}),Ct.private&&n.a.createElement("li",{className:h.a.tag},"\u79C1\u6709"))});return ct});return Ke},!Xt){nt.next=7;break}return bt=wt(lt.current),we(bt),nt.abrupt("return");case 7:clearTimeout(Xe.current),Xe.current=setTimeout(Object(g.a)(a.a.mark(function rt(){var De,Ke,Ct,ft;return a.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Object(u.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:mt,page:1,limit:1e5}});case 2:De=Mt.sent,(De==null?void 0:De.status)===0&&(Ct=wt((De==null||((Ke=De.data)===null||Ke===void 0)?void 0:Ke.mirrors)||[]),rn===tt.current&&(we(Ct),lt.current=Object(w.cloneDeep)((De==null||((ft=De.data)===null||ft===void 0)?void 0:ft.mirrors)||[])));case 4:case"end":return Mt.stop()}},rt)})),300);case 9:case"end":return nt.stop()}},et)}));return function(mt,Lt,Xt){return Fe.apply(this,arguments)}}(),Ye=function(et){var mt=document.getElementById("scroll-".concat(_e,"-").concat(et));if(!mt)return;var Lt=document.getElementById("scroll-".concat(_e));Lt.scrollTo(0,mt.offsetTop)},je=function(et,mt){var Lt=document.getElementById("search-".concat(_e,"-").concat(et));if(!Lt)return;var Xt=document.getElementById("search-".concat(_e)),rn=Lt.offsetTop-Xt.scrollTop>0&&Lt.offsetTop-Xt.scrollTop<Xt.clientHeight;if(rn)return;mt==="down"?Xt.scrollTo(0,Lt.offsetTop-Xt.clientHeight+Lt.clientHeight):Xt.scrollTo(0,Lt.offsetTop)},ht=function(et){_t(et,0),ye(et)},Bt=function(et){var mt,Lt;if(!ae.length)return;var Xt=ae==null||((mt=ae[Q])===null||mt===void 0)?void 0:mt.id;fe(Xt),we([]),J(0),ye(ae==null||((Lt=ae[Q])===null||Lt===void 0)?void 0:Lt.name),Ye(Xt),Oe.current.blur()},Et=function(et,mt){fe(et),we([]),J(0),ye(mt==null?void 0:mt.name),Ye(et)},Pt=function(){we([]),ye("")},Ze=function(et){fe(et),we([]),ye("")},We=function(){return ce===""?n.a.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):n.a.createElement("i",{onClick:Pt,className:"iconfont icon-shanchu4 c-grey-c"})},Je=function(){v({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Ae=function(){v({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},Ue=function(){ve.current=setTimeout(function(){$(!1),J(0)},200)},He=!(W!=null&&W.length)&&!(L!=null&&L.length);return n.a.createElement("div",{className:r()(U==="night"?h.a.darklySelectEnvironment:h.a.selectEnvironment,S)},!He&&n.a.createElement("div",{className:h.a.search},n.a.createElement(C.a,{suffix:We(),bordered:!1,ref:Oe,value:ce,onKeyDown:function(et){(et.keyCode===40||et.keyCode===38)&&et.preventDefault()},size:"large",onFocus:function(){clearTimeout(ve.current),ht(ce),$(!0)},onBlur:Ue,onChange:function(et){return ht(et.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:Bt}),se&&n.a.createElement("div",{id:"search-".concat(_e),className:h.a.searchListWrap},ae.map(function(Fe,et){return n.a.createElement(n.a.Fragment,{key:et}," ",Fe.label)}))),H?n.a.createElement(b.a,{className:h.a.spin}):n.a.createElement(n.a.Fragment,null,He&&n.a.createElement(m.a,{style:{margin:"60px 0"},image:s.a,description:n.a.createElement("span",{className:"c-grey-999"},"\u6682\u65E0\u5B9E\u9A8C\u73AF\u5883")}),!!ee.length&&n.a.createElement("aside",{className:h.a.common},n.a.createElement("div",{className:h.a.title},"\u63A8\u8350\u73AF\u5883:"),n.a.createElement("ul",{className:h.a.tags},ee.map(function(Fe,et){return n.a.createElement("li",{key:et,onClick:function(){return Ze(Fe.id)},className:N===Fe.id?"".concat(h.a.tag," ").concat(h.a.tagActive):h.a.tag},Fe.name)}))),n.a.createElement("aside",{className:h.a.wrap,id:"scroll-".concat(_e)},W.map(function(Fe,et){var mt;return Fe!=null&&(mt=Fe.image)!==null&&mt!==void 0&&mt.length?n.a.createElement(P,{key:et,data:Fe,id:N,handleClick:function(Xt){return Ze(Xt)}}):null}),n.a.createElement("ul",{className:h.a.allList},L.map(function(Fe){return n.a.createElement("li",{key:"key-".concat(Fe.id),id:"scroll-".concat(_e,"-").concat(Fe.id),className:Fe.id===N?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return fe(Fe.id)}},n.a.createElement("div",{className:h.a.name},Fe.name),Fe.private&&n.a.createElement("div",{className:h.a.tag},"\u79C1\u6709"))})))),n.a.createElement("div",{className:h.a.apply},n.a.createElement("span",{className:h.a.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),n.a.createElement("span",{className:h.a.p2,onClick:Je}," ","\u7533\u8BF7\u65B0\u5EFA"),n.a.createElement("span",{className:h.a.p2,onClick:Ae}," ","\u5728\u7EBF\u521B\u5EFA")))},P=function(x){var S=x.data,v=x.id,T=x.handleClick,U=Object(l.useState)(!0),I=Object(e.a)(U,2),N=I[0],V=I[1],H=S.name,D=S.image;return n.a.createElement("div",{className:h.a.list},n.a.createElement("header",{onClick:function(){return V(!N)}},n.a.createElement("div",{className:h.a.title},H),n.a.createElement("i",{style:{transition:"0.5s",transform:N?"rotate(0deg)":"rotate(180deg)"},className:"iconfont icon-shangjiantou c-grey-999"})),n.a.createElement("ul",{className:h.a.items,style:{height:N?"auto":0}},D.map(function(W){return n.a.createElement("li",{key:W.id,className:W.id===v?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return T(W.id)}},n.a.createElement("div",{className:h.a.name},W.name),W.private&&n.a.createElement("div",{className:h.a.tag},"\u79C1\u6709"))}),n.a.createElement("li",{className:h.a.line})))};z.a=_},ELLl:function(k,z,o){(function(M){M(o("VrN/"))})(function(M){var m={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},O=M.Pos;M.defineOption("autoCloseBrackets",!1,function(r,c,h){h&&h!=M.Init&&(r.removeKeyMap(y),r.state.closeBrackets=null),c&&(C(b(c,"pairs")),r.state.closeBrackets=c,r.addKeyMap(y))});function b(r,c){return c=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[c]!=null?r[c]:m[c]}var y={Backspace:e,Enter:f};function C(r){for(var c=0;c<r.length;c++){var h=r.charAt(c),d="'"+h+"'";y[d]||(y[d]=A(h))}}C(m.pairs+"`");function A(r){return function(c){return l(c,r)}}function g(r){var c=r.state.closeBrackets;if(!c||c.override)return c;var h=r.getModeAt(r.getCursor());return h.closeBrackets||c}function e(r){var c=g(r);if(!c||r.getOption("disableInput"))return M.Pass;for(var h=b(c,"pairs"),d=r.listSelections(),s=0;s<d.length;s++){if(!d[s].empty())return M.Pass;var u=n(r,d[s].head);if(!u||h.indexOf(u)%2!=0)return M.Pass}for(var s=d.length-1;s>=0;s--){var w=d[s].head;r.replaceRange("",O(w.line,w.ch-1),O(w.line,w.ch+1),"+delete")}}function f(r){var c=g(r),h=c&&b(c,"explode");if(!h||r.getOption("disableInput"))return M.Pass;for(var d=r.listSelections(),s=0;s<d.length;s++){if(!d[s].empty())return M.Pass;var u=n(r,d[s].head);if(!u||h.indexOf(u)%2!=0)return M.Pass}r.operation(function(){var w=r.lineSeparator()||`
`;r.replaceSelection(w+w,null),r.execCommand("goCharLeft"),d=r.listSelections();for(var E=0;E<d.length;E++){var _=d[E].head.line;r.indentLine(_,null,!0),r.indentLine(_+1,null,!0)}})}function a(r){var c=M.cmpPos(r.anchor,r.head)>0;return{anchor:new O(r.anchor.line,r.anchor.ch+(c?-1:1)),head:new O(r.head.line,r.head.ch+(c?1:-1))}}function l(r,c){var h=g(r);if(!h||r.getOption("disableInput"))return M.Pass;var d=b(h,"pairs"),s=d.indexOf(c);if(s==-1)return M.Pass;for(var u=b(h,"closeBefore"),w=b(h,"triples"),E=d.charAt(s+1)==c,_=r.listSelections(),P=s%2==0,R,x=0;x<_.length;x++){var S=_[x],v=S.head,T,U=r.getRange(v,O(v.line,v.ch+1));if(P&&!S.empty())T="surround";else if((E||!P)&&U==c)E&&i(r,v)?T="both":w.indexOf(c)>=0&&r.getRange(v,O(v.line,v.ch+3))==c+c+c?T="skipThree":T="skip";else if(E&&v.ch>1&&w.indexOf(c)>=0&&r.getRange(O(v.line,v.ch-2),v)==c+c){if(v.ch>2&&/\bstring/.test(r.getTokenTypeAt(O(v.line,v.ch-2))))return M.Pass;T="addFour"}else if(E){var I=v.ch==0?" ":r.getRange(O(v.line,v.ch-1),v);if(!M.isWordChar(U)&&I!=c&&!M.isWordChar(I))T="both";else return M.Pass}else if(P&&(U.length===0||/\s/.test(U)||u.indexOf(U)>-1))T="both";else return M.Pass;if(!R)R=T;else if(R!=T)return M.Pass}var N=s%2?d.charAt(s-1):c,V=s%2?c:d.charAt(s+1);r.operation(function(){if(R=="skip")r.execCommand("goCharRight");else if(R=="skipThree")for(var H=0;H<3;H++)r.execCommand("goCharRight");else if(R=="surround"){for(var D=r.getSelections(),H=0;H<D.length;H++)D[H]=N+D[H]+V;r.replaceSelections(D,"around"),D=r.listSelections().slice();for(var H=0;H<D.length;H++)D[H]=a(D[H]);r.setSelections(D)}else R=="both"?(r.replaceSelection(N+V,null),r.triggerElectric(N+V),r.execCommand("goCharLeft")):R=="addFour"&&(r.replaceSelection(N+N+N+N,"before"),r.execCommand("goCharRight"))})}function n(r,c){var h=r.getRange(O(c.line,c.ch-1),O(c.line,c.ch+1));return h.length==2?h:null}function i(r,c){var h=r.getTokenAt(O(c.line,c.ch+1));return/\bstring/.test(h.type)&&h.start==c.ch&&(c.ch==0||!/\bstring/.test(r.getTokenTypeAt(c)))}})},ELcG:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(m){var O=M,b=O.lib,y=b.WordArray,C=b.Hasher,A=O.algo,g=y.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),e=y.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=y.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=y.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=y.create([0,1518500249,1859775393,2400959708,2840853838]),n=y.create([1352829926,1548603684,1836072691,2053994217,0]),i=A.RIPEMD160=C.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,E){for(var _=0;_<16;_++){var P=E+_,R=w[P];w[P]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var x=this._hash.words,S=l.words,v=n.words,T=g.words,U=e.words,I=f.words,N=a.words,V,H,D,W,F,L,K,ee,he,fe;L=V=x[0],K=H=x[1],ee=D=x[2],he=W=x[3],fe=F=x[4];for(var Ce,_=0;_<80;_+=1)Ce=V+w[E+T[_]]|0,_<16?Ce+=r(H,D,W)+S[0]:_<32?Ce+=c(H,D,W)+S[1]:_<48?Ce+=h(H,D,W)+S[2]:_<64?Ce+=d(H,D,W)+S[3]:Ce+=s(H,D,W)+S[4],Ce=Ce|0,Ce=u(Ce,I[_]),Ce=Ce+F|0,V=F,F=W,W=u(D,10),D=H,H=Ce,Ce=L+w[E+U[_]]|0,_<16?Ce+=s(K,ee,he)+v[0]:_<32?Ce+=d(K,ee,he)+v[1]:_<48?Ce+=h(K,ee,he)+v[2]:_<64?Ce+=c(K,ee,he)+v[3]:Ce+=r(K,ee,he)+v[4],Ce=Ce|0,Ce=u(Ce,N[_]),Ce=Ce+fe|0,L=fe,fe=he,he=u(ee,10),ee=K,K=Ce;Ce=x[1]+D+he|0,x[1]=x[2]+W+fe|0,x[2]=x[3]+F+L|0,x[3]=x[4]+V+K|0,x[4]=x[0]+H+ee|0,x[0]=Ce},_doFinalize:function(){var w=this._data,E=w.words,_=this._nDataBytes*8,P=w.sigBytes*8;E[P>>>5]|=128<<24-P%32,E[(P+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var R=this._hash,x=R.words,S=0;S<5;S++){var v=x[S];x[S]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return R},clone:function(){var w=C.clone.call(this);return w._hash=this._hash.clone(),w}});function r(w,E,_){return w^E^_}function c(w,E,_){return w&E|~w&_}function h(w,E,_){return(w|~E)^_}function d(w,E,_){return w&_|E&~_}function s(w,E,_){return w^(E|~_)}function u(w,E){return w<<E|w>>>32-E}O.RIPEMD160=C._createHelper(i),O.HmacRIPEMD160=C._createHmacHelper(i)}(Math),M.RIPEMD160})},ETIr:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.WordArray,y=m.enc,C=y.Base64={stringify:function(g){var e=g.words,f=g.sigBytes,a=this._map;g.clamp();for(var l=[],n=0;n<f;n+=3)for(var i=e[n>>>2]>>>24-n%4*8&255,r=e[n+1>>>2]>>>24-(n+1)%4*8&255,c=e[n+2>>>2]>>>24-(n+2)%4*8&255,h=i<<16|r<<8|c,d=0;d<4&&n+d*.75<f;d++)l.push(a.charAt(h>>>6*(3-d)&63));var s=a.charAt(64);if(s)for(;l.length%4;)l.push(s);return l.join("")},parse:function(g){var e=g.length,f=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var l=0;l<f.length;l++)a[f.charCodeAt(l)]=l}var n=f.charAt(64);if(n){var i=g.indexOf(n);i!==-1&&(e=i)}return A(g,e,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function A(g,e,f){for(var a=[],l=0,n=0;n<e;n++)if(n%4){var i=f[g.charCodeAt(n-1)]<<n%4*2,r=f[g.charCodeAt(n)]>>>6-n%4*2,c=i|r;a[l>>>2]|=c<<24-l%4*8,l++}return b.create(a,l)}}(),M.enc.Base64})},EkPF:function(k,z,o){k.exports={practiceSetting:"practiceSetting___2ttNt",wrapHeader:"wrapHeader___2dgOY",wrapLayout:"wrapLayout___3zol1",wrapSidebar:"wrapSidebar___3imKs",wrapContent:"wrapContent___3L8H_"}},"F+F2":function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){if(typeof ArrayBuffer!="function")return;var m=M,O=m.lib,b=O.WordArray,y=b.init,C=b.init=function(A){if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),(A instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array)&&(A=new Uint8Array(A.buffer,A.byteOffset,A.byteLength)),A instanceof Uint8Array){for(var g=A.byteLength,e=[],f=0;f<g;f++)e[f>>>2]|=A[f]<<24-f%4*8;y.call(this,e,g)}else y.apply(this,arguments)};C.prototype=b}(),M.lib.WordArray})},FOrL:function(k,z,o){k.exports=o.p+"static/nodata.a6b3f948.png"},FPkq:function(k,z,o){k.exports=o.p+"static/qrCode.dd0fe9b2.png"},FTkQ:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg=="},FWmy:function(k,z,o){"use strict";o.d(z,"a",function(){return M});function M(m,O){if(!m)throw new Error(O?`Assertion failed (${O})`:"Assertion Failed")}},Fhpe:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1W7Bl",flex_space_between:"flex_space_between___3S4Sp",flex_box_vertical_center:"flex_box_vertical_center___5mGEA",flex_box_center_end:"flex_box_center_end___1blqp",flex_box_column:"flex_box_column___4i1E0",CustomCss:"CustomCss___3thFA",CustomTipsModalCss:"CustomTipsModalCss___2aNwC",dropdownmenus:"dropdownmenus___19dGk",popupClassNames:"popupClassNames___3LOFQ",selectdown:"selectdown___1_utH"}},FrRK:function(k,z,o){"use strict";var M=o("+L6B"),m=o("2/Rp"),O=o("DZo9"),b=o("8z0m"),y=o("miYZ"),C=o("tsqr"),A=o("9og8"),g=o("2qtc"),e=o("kLXV"),f=o("y8nQ"),a=o("Vl3Y"),l=o("tJVT"),n=o("PpiC"),i=o("5NDa"),r=o("5rEg"),c=o("WmNS"),h=o.n(c),d=o("q1tI"),s=o.n(d),u=o("9kvl"),w=o("m3rI"),E=o("FPkq"),_=o.n(E),P=o("qB8g"),R=o.n(P),x=r.a.TextArea,S=function(T){var U=T.newShixuns,I=T.globalSetting,N=T.loading,V=T.dispatch,H=Object(n.a)(T,["newShixuns","globalSetting","loading","dispatch"]),D=a.a.useForm(),W=Object(l.a)(D,1),F=W[0],L=Object(d.useState)([]),K=Object(l.a)(L,2),ee=K[0],he=K[1],fe=function(ue){var se=["uploading","done","removed"];se.includes(ue.file.status)&&he(ue.fileList)},Ce=function(ue){if(!ue.percent||ue.percent==100){var se,$=(se=ue.response)===null||se===void 0?void 0:se.id;return e.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var me=Object(A.a)(h.a.mark(function ae(){var we;return h.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,V({type:"newShixuns/deleteAttachment",payload:{id:$}});case 2:we=te.sent,we&&he(ee.filter(function(Q){var J;return((J=Q.response)===null||J===void 0?void 0:J.id)!==$}));case 4:case"end":return te.stop()}},ae)}));function re(){return me.apply(this,arguments)}return re}()}),!1}},Te=function(ue){if(ee.length)return!1;var se=ue.size/1024/1024>50;return se?(C.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},ce=function(){var Ee=Object(A.a)(h.a.mark(function ue(se){var $,me,re,ae,we,le,te,Q;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=se||{},ae=re.language,we=re.env,le=re.mode,te=re.code,ve.next=3,V({type:"newShixuns/applyShixunMirror",payload:{language:ae,runtime:we,run_method:le,attachment_id:ee==null||(($=ee[0])===null||$===void 0||((me=$.response)===null||me===void 0))?void 0:me.id}});case 3:Q=ve.sent,V({type:"newShixuns/setActionTabs",payload:{}}),Q&&C.b.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002");case 6:case"end":return ve.stop()}},ue)}));return function(se){return Ee.apply(this,arguments)}}(),ye=function(){F.resetFields(),he([])};return s.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:U.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:ye},s.a.createElement("section",{className:R.a.qrCode},s.a.createElement("aside",{className:R.a.a1},s.a.createElement("div",{className:R.a.code},s.a.createElement("img",{width:120,height:120,src:_.a,alt:"\u4E8C\u7EF4\u7801"})),s.a.createElement("div",{className:R.a.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),s.a.createElement("div",{className:R.a.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),s.a.createElement("aside",{className:R.a.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",s.a.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),s.a.createElement(a.a,{className:R.a.formWrap,form:F,labelCol:{span:4},wrapperCol:{span:20},onFinish:ce},s.a.createElement(a.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},s.a.createElement(x,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),s.a.createElement(a.a.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},s.a.createElement(x,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),s.a.createElement(a.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},s.a.createElement(x,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),s.a.createElement(a.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},s.a.createElement("div",{className:R.a.upload},s.a.createElement(b.a,{fileList:ee,action:"".concat(w.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:fe,onRemove:Ce,beforeUpload:Te,withCredentials:!0},s.a.createElement("span",{className:"".concat(R.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),s.a.createElement("span",{className:"".concat(R.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),s.a.createElement("div",{className:R.a.footerWrap},s.a.createElement(a.a.Item,null,s.a.createElement(m.a,{className:"mr5",size:"large",onClick:function(){V({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(m.a,{size:"large",type:"primary",htmlType:"submit",loading:N["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};z.a=Object(u.a)(function(v){var T=v.newShixuns,U=v.loading,I=v.globalSetting;return{newShixuns:T,globalSetting:I,loading:U.effects}})(S)},Fxgj:function(k,z,o){},GABl:function(k,z){k.exports="data:image/png;base64,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"},GRuw:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("lPiR"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.WordArray,y=m.algo,C=y.SHA256,A=y.SHA224=C.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var g=C._doFinalize.call(this);return g.sigBytes-=4,g}});m.SHA224=C._createHelper(A),m.HmacSHA224=C._createHmacHelper(A)}(),M.SHA224})},GfqC:function(k,z,o){"use strict";var M=o("q1tI"),m=o.n(M),O=o("TSYQ"),b=o.n(O);function y(W,F){var L="cannot "+W.method+" "+W.action+" "+F.status+"'",K=new Error(L);return K.status=F.status,K.method=W.method,K.url=W.action,K}function C(W){var F=W.responseText||W.response;if(!F)return F;try{return JSON.parse(F)}catch(L){return F}}function A(W){var F=new XMLHttpRequest;W.onProgress&&F.upload&&(F.upload.onprogress=function(he){he.total>0&&(he.percent=he.loaded/he.total*100),W.onProgress(he)});var L=new FormData;W.data&&Object.keys(W.data).forEach(function(ee){var he=W.data[ee];if(Array.isArray(he)){he.forEach(function(fe){L.append(ee+"[]",fe)});return}L.append(ee,W.data[ee])}),W.file instanceof Blob?L.append(W.filename,W.file,W.file.name):L.append(W.filename,W.file),F.onerror=function(he){W.onError(he)},F.onload=function(){return F.status<200||F.status>=300?W.onError(y(W,F),C(F)):W.onSuccess(C(F),F)},F.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in F&&(F.withCredentials=!0);var K=W.headers||{};return K["X-Requested-With"]!==null&&F.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(K).forEach(function(ee){K[ee]!==null&&F.setRequestHeader(ee,K[ee])}),F.send(L),{abort:function(){F.abort()}}}var g=+new Date,e=0;function f(){return"rc-upload-"+g+"-"+ ++e}function a(W,F){return W.indexOf(F,W.length-F.length)!==-1}var l=function(W,F){if(W&&F){var L=Array.isArray(F)?F:F.split(","),K=W.name||"",ee=W.type||"",he=ee.replace(/\/.*$/,"");return L.some(function(fe){var Ce=fe.trim();return Ce.charAt(0)==="."?a(K.toLowerCase(),Ce.toLowerCase()):/\/\*$/.test(Ce)?he===Ce.replace(/\/.*$/,""):ee===Ce})}return!0};function n(W,F){var L=W.createReader(),K=[];function ee(){L.readEntries(function(he){var fe=Array.prototype.slice.apply(he);K=K.concat(fe);var Ce=!fe.length;Ce?F(K):ee()})}ee()}var i=function(F,L,K){var ee=function he(fe,Ce){Ce=Ce||"",fe.isFile?fe.file(function(Te){K(Te)&&(fe.fullPath&&!Te.webkitRelativePath&&(Object.defineProperties(Te,{webkitRelativePath:{writable:!0}}),Te.webkitRelativePath=fe.fullPath.replace(/^\//,""),Object.defineProperties(Te,{webkitRelativePath:{writable:!1}})),L([Te]))}):fe.isDirectory&&n(fe,function(Te){Te.forEach(function(ce){he(ce,""+Ce+fe.name+"/")})})};F.forEach(function(he){ee(he.webkitGetAsEntry())})},r=i,c=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var L=arguments[F];for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&(W[K]=L[K])}return W},h=function(){function W(F,L){var K=[],ee=!0,he=!1,fe=void 0;try{for(var Ce=F[Symbol.iterator](),Te;!(ee=(Te=Ce.next()).done)&&!(K.push(Te.value),L&&K.length===L);ee=!0);}catch(ce){he=!0,fe=ce}finally{try{!ee&&Ce.return&&Ce.return()}finally{if(he)throw fe}}return K}return function(F,L){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return W(F,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(F,L){for(var K=0;K<L.length;K++){var ee=L[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(F,ee.key,ee)}}return function(F,L,K){return L&&W(F.prototype,L),K&&W(F,K),F}}();function s(W,F,L){return F in W?Object.defineProperty(W,F,{value:L,enumerable:!0,configurable:!0,writable:!0}):W[F]=L,W}function u(W,F){var L={};for(var K in W){if(F.indexOf(K)>=0)continue;if(!Object.prototype.hasOwnProperty.call(W,K))continue;L[K]=W[K]}return L}function w(W,F){if(!(W instanceof F))throw new TypeError("Cannot call a class as a function")}function E(W,F){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:W}function _(W,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);W.prototype=Object.create(F&&F.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(W,F):W.__proto__=F)}var P=function(F){return Object.keys(F).reduce(function(L,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-"||K==="role")&&(L[K]=F[K]),L},{})},R=function(W){_(F,W);function F(){var L,K,ee,he;w(this,F);for(var fe=arguments.length,Ce=Array(fe),Te=0;Te<fe;Te++)Ce[Te]=arguments[Te];return he=(K=(ee=E(this,(L=F.__proto__||Object.getPrototypeOf(F)).call.apply(L,[this].concat(Ce))),ee),ee.state={uid:f()},ee.reqs={},ee.onChange=function(ce){var ye=ce.target.files;ee.uploadFiles(ye),ee.reset()},ee.onClick=function(ce){var ye=ee.fileInput;if(!ye)return;var Ee=ee.props,ue=Ee.children,se=Ee.onClick;ue&&ue.type==="button"&&(ye.parentNode.focus(),ye.parentNode.querySelector("button").blur()),ye.click(),se&&se(ce)},ee.onKeyDown=function(ce){ce.key==="Enter"&&ee.onClick()},ee.onFileDrop=function(ce){var ye=ee.props.multiple;if(ce.preventDefault(),ce.type==="dragover")return;if(ee.props.directory)r(Array.prototype.slice.call(ce.dataTransfer.items),ee.uploadFiles,function(ue){return l(ue,ee.props.accept)});else{var Ee=Array.prototype.slice.call(ce.dataTransfer.files).filter(function(ue){return l(ue,ee.props.accept)});ye===!1&&(Ee=Ee.slice(0,1)),ee.uploadFiles(Ee)}},ee.uploadFiles=function(ce){var ye=Array.prototype.slice.call(ce);ye.map(function(Ee){return Ee.uid=f(),Ee}).forEach(function(Ee){ee.upload(Ee,ye)})},ee.saveFileInput=function(ce){ee.fileInput=ce},K),E(ee,he)}return d(F,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(K,ee){var he=this,fe=this.props;if(!fe.beforeUpload)return setTimeout(function(){return he.post(K)},0);var Ce=fe.beforeUpload(K,ee);Ce&&Ce.then?Ce.then(function(Te){var ce=Object.prototype.toString.call(Te);return ce==="[object File]"||ce==="[object Blob]"?he.post(Te):he.post(K)}).catch(function(Te){console.log(Te)}):Ce!==!1&&setTimeout(function(){return he.post(K)},0);return}},{key:"post",value:function(K){var ee=this;if(!this._isMounted)return;var he=this.props,fe=he.onStart,Ce=he.onProgress,Te=he.transformFile,ce=Te===void 0?function(ye){return ye}:Te;new Promise(function(ye){var Ee=he.action;return typeof Ee=="function"&&(Ee=Ee(K)),ye(Ee)}).then(function(ye){var Ee=K.uid,ue=he.customRequest||A,se=Promise.resolve(ce(K)).then(function($){var me=he.data;return typeof me=="function"&&(me=me($)),Promise.all([$,me])}).catch(function($){console.error($)});se.then(function($){var me=h($,2),re=me[0],ae=me[1],we={action:ye,filename:he.name,data:ae,file:re,headers:he.headers,withCredentials:he.withCredentials,method:he.method||"post",onProgress:Ce?function(le){Ce(le,K)}:null,onSuccess:function(te,Q){delete ee.reqs[Ee],he.onSuccess(te,K,Q)},onError:function(te,Q){delete ee.reqs[Ee],he.onError(te,Q,K)}};fe(K),ee.reqs[Ee]=ue(we)})})}},{key:"reset",value:function(){this.setState({uid:f()})}},{key:"abort",value:function(K){var ee=this.reqs;if(K){var he=K;K&&K.uid&&(he=K.uid),ee[he]&&ee[he].abort&&ee[he].abort(),delete ee[he]}else Object.keys(ee).forEach(function(fe){ee[fe]&&ee[fe].abort&&ee[fe].abort(),delete ee[fe]})}},{key:"render",value:function(){var K,ee=this.props,he=ee.component,fe=ee.prefixCls,Ce=ee.className,Te=ee.disabled,ce=ee.id,ye=ee.style,Ee=ee.multiple,ue=ee.accept,se=ee.children,$=ee.directory,me=ee.openFileDialogOnClick,re=ee.onMouseEnter,ae=ee.onMouseLeave,we=u(ee,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),le=b()((K={},s(K,fe,!0),s(K,fe+"-disabled",Te),s(K,Ce,Ce),K)),te=Te?{}:{onClick:me?this.onClick:function(){},onKeyDown:me?this.onKeyDown:function(){},onMouseEnter:re,onMouseLeave:ae,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return m.a.createElement(he,c({},te,{className:le,role:"button",style:ye}),m.a.createElement("input",c({},P(we),{id:ce,type:"file",ref:this.saveFileInput,onClick:function(J){return J.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ue,directory:$?"directory":null,webkitdirectory:$?"webkitdirectory":null,multiple:Ee,onChange:this.onChange})),se)}}]),F}(M.Component),x=R,S=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var L=arguments[F];for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&(W[K]=L[K])}return W},v=function(){function W(F,L){for(var K=0;K<L.length;K++){var ee=L[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(F,ee.key,ee)}}return function(F,L,K){return L&&W(F.prototype,L),K&&W(F,K),F}}();function T(W,F){if(!(W instanceof F))throw new TypeError("Cannot call a class as a function")}function U(W,F){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:W}function I(W,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);W.prototype=Object.create(F&&F.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(W,F):W.__proto__=F)}function N(){}var V=function(W){I(F,W);function F(){var L,K,ee,he;T(this,F);for(var fe=arguments.length,Ce=Array(fe),Te=0;Te<fe;Te++)Ce[Te]=arguments[Te];return he=(K=(ee=U(this,(L=F.__proto__||Object.getPrototypeOf(F)).call.apply(L,[this].concat(Ce))),ee),ee.saveUploader=function(ce){ee.uploader=ce},K),U(ee,he)}return v(F,[{key:"abort",value:function(K){this.uploader.abort(K)}},{key:"render",value:function(){return m.a.createElement(x,S({},this.props,{ref:this.saveUploader}))}}]),F}(M.Component);V.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:N,onError:N,onSuccess:N,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var H=V,D=z.a=H},Gytx:function(k,z){k.exports=function(M,m,O,b){var y=O?O.call(b,M,m):void 0;if(y!==void 0)return!!y;if(M===m)return!0;if(typeof M!="object"||!M||typeof m!="object"||!m)return!1;var C=Object.keys(M),A=Object.keys(m);if(C.length!==A.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(m),e=0;e<C.length;e++){var f=C[e];if(!g(f))return!1;var a=M[f],l=m[f];if(y=O?O.call(b,a,l,f):void 0,y===!1||y===void 0&&a!==l)return!1}return!0}},HjOm:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var M={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},m=M;z.default=m},HmJG:function(k,z,o){},HpTS:function(k,z,o){k.exports=o.p+"static/small_program.f74069ec.png"},HpfO:function(k,z,o){k.exports={wrap:"wrap___r5XlG",content:"content___1KVgv",mainPathWrap:"mainPathWrap___256K2",colorBlue:"colorBlue___3S7DM"}},I8Z2:function(k,z,o){"use strict";o.d(z,"a",function(){return b}),o.d(z,"b",function(){return n}),o.d(z,"c",function(){return r});var M=o("q1tI"),m=function(){var c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var w in u)u.hasOwnProperty(w)&&(s[w]=u[w])},c(h,d)};return function(h,d){c(h,d);function s(){this.constructor=h}h.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}}(),O=M.createContext(null),b=function(c){m(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.render=function(){return M.createElement(O.Provider,{value:this.props.store},this.props.children)},h}(M.Component),y=o("Gytx"),C=o.n(y),A=o("2mql"),g=o.n(A),e=function(){var c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var w in u)u.hasOwnProperty(w)&&(s[w]=u[w])},c(h,d)};return function(h,d){c(h,d);function s(){this.constructor=h}h.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}}(),f=function(){return f=Object.assign||function(c){for(var h,d=1,s=arguments.length;d<s;d++){h=arguments[d];for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(c[u]=h[u])}return c},f.apply(this,arguments)};function a(c){return c.displayName||c.name||"Component"}var l=function(){return{}};function n(c,h){h===void 0&&(h={});var d=!!c,s=c||l;return function(w){var E=function(P){e(R,P);function R(x,S){var v=P.call(this,x,S)||this;return v.unsubscribe=null,v.handleChange=function(){if(!v.unsubscribe)return;var T=s(v.store.getState(),v.props);v.setState({subscribed:T})},v.store=v.context,v.state={subscribed:s(v.store.getState(),x),store:v.store,props:x},v}return R.getDerivedStateFromProps=function(x,S){return c&&c.length===2&&x!==S.props?{subscribed:s(S.store.getState(),x),props:x}:{props:x}},R.prototype.componentDidMount=function(){this.trySubscribe()},R.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},R.prototype.shouldComponentUpdate=function(x,S){return!C()(this.props,x)||!C()(this.state.subscribed,S.subscribed)},R.prototype.trySubscribe=function(){d&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},R.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},R.prototype.render=function(){var x=f(f(f({},this.props),this.state.subscribed),{store:this.store});return M.createElement(w,f({},x,{ref:this.props.miniStoreForwardedRef}))},R.displayName="Connect("+a(w)+")",R.contextType=O,R}(M.Component);if(h.forwardRef){var _=M.forwardRef(function(P,R){return M.createElement(E,f({},P,{miniStoreForwardedRef:R}))});return g()(_,w)}return g()(E,w)}}var i=function(){return i=Object.assign||function(c){for(var h,d=1,s=arguments.length;d<s;d++){h=arguments[d];for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(c[u]=h[u])}return c},i.apply(this,arguments)};function r(c){var h=c,d=[];function s(E){h=i(i({},h),E);for(var _=0;_<d.length;_++)d[_]()}function u(){return h}function w(E){return d.push(E),function(){var P=d.indexOf(E);d.splice(P,1)}}return{setState:s,getState:u,subscribe:w}}},IBYe:function(k,z,o){"use strict";function M(m){return null}z.a=M},Ib8C:function(k,z,o){(function(M){(function(m,O){k.exports=z=O()})(this,function(){var m=m||function(O,b){var y;if(typeof window!="undefined"&&window.crypto&&(y=window.crypto),typeof self!="undefined"&&self.crypto&&(y=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(y=globalThis.crypto),!y&&typeof window!="undefined"&&window.msCrypto&&(y=window.msCrypto),!y&&typeof M!="undefined"&&M.crypto&&(y=M.crypto),!y&&!0)try{y=o(4)}catch(s){}var C=function(){if(y){if(typeof y.getRandomValues=="function")try{return y.getRandomValues(new Uint32Array(1))[0]}catch(s){}if(typeof y.randomBytes=="function")try{return y.randomBytes(4).readInt32LE()}catch(s){}}throw new Error("Native crypto module could not be used to get secure random number.")},A=Object.create||function(){function s(){}return function(u){var w;return s.prototype=u,w=new s,s.prototype=null,w}}(),g={},e=g.lib={},f=e.Base=function(){return{extend:function(s){var u=A(this);return s&&u.mixIn(s),(!u.hasOwnProperty("init")||this.init===u.init)&&(u.init=function(){u.$super.init.apply(this,arguments)}),u.init.prototype=u,u.$super=this,u},create:function(){var s=this.extend();return s.init.apply(s,arguments),s},init:function(){},mixIn:function(s){for(var u in s)s.hasOwnProperty(u)&&(this[u]=s[u]);s.hasOwnProperty("toString")&&(this.toString=s.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=e.WordArray=f.extend({init:function(s,u){s=this.words=s||[],u!=b?this.sigBytes=u:this.sigBytes=s.length*4},toString:function(s){return(s||n).stringify(this)},concat:function(s){var u=this.words,w=s.words,E=this.sigBytes,_=s.sigBytes;if(this.clamp(),E%4)for(var P=0;P<_;P++){var R=w[P>>>2]>>>24-P%4*8&255;u[E+P>>>2]|=R<<24-(E+P)%4*8}else for(var x=0;x<_;x+=4)u[E+x>>>2]=w[x>>>2];return this.sigBytes+=_,this},clamp:function(){var s=this.words,u=this.sigBytes;s[u>>>2]&=4294967295<<32-u%4*8,s.length=O.ceil(u/4)},clone:function(){var s=f.clone.call(this);return s.words=this.words.slice(0),s},random:function(s){for(var u=[],w=0;w<s;w+=4)u.push(C());return new a.init(u,s)}}),l=g.enc={},n=l.Hex={stringify:function(s){for(var u=s.words,w=s.sigBytes,E=[],_=0;_<w;_++){var P=u[_>>>2]>>>24-_%4*8&255;E.push((P>>>4).toString(16)),E.push((P&15).toString(16))}return E.join("")},parse:function(s){for(var u=s.length,w=[],E=0;E<u;E+=2)w[E>>>3]|=parseInt(s.substr(E,2),16)<<24-E%8*4;return new a.init(w,u/2)}},i=l.Latin1={stringify:function(s){for(var u=s.words,w=s.sigBytes,E=[],_=0;_<w;_++){var P=u[_>>>2]>>>24-_%4*8&255;E.push(String.fromCharCode(P))}return E.join("")},parse:function(s){for(var u=s.length,w=[],E=0;E<u;E++)w[E>>>2]|=(s.charCodeAt(E)&255)<<24-E%4*8;return new a.init(w,u)}},r=l.Utf8={stringify:function(s){try{return decodeURIComponent(escape(i.stringify(s)))}catch(u){throw new Error("Malformed UTF-8 data")}},parse:function(s){return i.parse(unescape(encodeURIComponent(s)))}},c=e.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(s){typeof s=="string"&&(s=r.parse(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes},_process:function(s){var u,w=this._data,E=w.words,_=w.sigBytes,P=this.blockSize,R=P*4,x=_/R;s?x=O.ceil(x):x=O.max((x|0)-this._minBufferSize,0);var S=x*P,v=O.min(S*4,_);if(S){for(var T=0;T<S;T+=P)this._doProcessBlock(E,T);u=E.splice(0,S),w.sigBytes-=v}return new a.init(u,v)},clone:function(){var s=f.clone.call(this);return s._data=this._data.clone(),s},_minBufferSize:0}),h=e.Hasher=c.extend({cfg:f.extend(),init:function(s){this.cfg=this.cfg.extend(s),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(s){return this._append(s),this._process(),this},finalize:function(s){s&&this._append(s);var u=this._doFinalize();return u},blockSize:512/32,_createHelper:function(s){return function(u,w){return new s.init(w).finalize(u)}},_createHmacHelper:function(s){return function(u,w){return new d.HMAC.init(s,w).finalize(u)}}}),d=g.algo={};return g}(Math);return m})}).call(this,o("IyRk"))},JAbv:function(k,z){k.exports="data:image/png;base64,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"},JFl9:function(k,z,o){k.exports={footerWrap:"footerWrap___3bmMI"}},JWDV:function(k,z,o){k.exports=o.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(k,z,o){"use strict";o.d(z,"a",function(){return M});var M;(function(m){function O(u){return u&&typeof u=="object"&&typeof u[Symbol.iterator]=="function"}m.is=O;const b=Object.freeze([]);function y(){return b}m.empty=y;function*C(u){yield u}m.single=C;function A(u){return u||b}m.from=A;function g(u){return!u||u[Symbol.iterator]().next().done===!0}m.isEmpty=g;function e(u){return u[Symbol.iterator]().next().value}m.first=e;function f(u,w){for(const E of u)if(w(E))return!0;return!1}m.some=f;function a(u,w){for(const E of u)if(w(E))return E;return}m.find=a;function*l(u,w){for(const E of u)w(E)&&(yield E)}m.filter=l;function*n(u,w){let E=0;for(const _ of u)yield w(_,E++)}m.map=n;function*i(...u){for(const w of u)for(const E of w)yield E}m.concat=i;function*r(u){for(const w of u)for(const E of w)yield E}m.concatNested=r;function c(u,w,E){let _=E;for(const P of u)_=w(_,P);return _}m.reduce=c;function*h(u,w,E=u.length){for(w<0&&(w+=u.length),E<0?E+=u.length:E>u.length&&(E=u.length);w<E;w++)yield u[w]}m.slice=h;function d(u,w=Number.POSITIVE_INFINITY){const E=[];if(w===0)return[E,u];const _=u[Symbol.iterator]();for(let P=0;P<w;P++){const R=_.next();if(R.done)return[E,m.empty()];E.push(R.value)}return[E,{[Symbol.iterator](){return _}}]}m.consume=d;function s(u,w,E=(_,P)=>_===P){const _=u[Symbol.iterator](),P=w[Symbol.iterator]();for(;;){const R=_.next(),x=P.next();if(R.done!==x.done)return!1;if(R.done)return!0;if(!E(R.value,x.value))return!1}}m.equals=s})(M||(M={}))},JeFH:function(k,z){k.exports="data:image/png;base64,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"},Jky8:function(k,z,o){"use strict";var M=o("sRBo"),m=o("kaz8"),O=o("5NDa"),b=o("5rEg"),y=o("miYZ"),C=o("tsqr"),A=o("9og8"),g=o("2qtc"),e=o("kLXV"),f=o("tJVT"),a=o("WmNS"),l=o.n(a),n=o("q1tI"),i=o.n(n),r=o("9kvl"),c=o("6CvP"),h=o("1XHU"),d=o("1vsH"),s;(function(w){w[w.Professor=1]="Professor",w[w.AssistantProfessor=2]="AssistantProfessor",w[w.Student=3]="Student"})(s||(s={}));var u=function(E){var _=E.visible,P=E.user,R=E.onCancel,x=R===void 0?function(){}:R,S=Object(n.useState)(),v=Object(f.a)(S,2),T=v[0],U=v[1],I=Object(n.useState)([]),N=Object(f.a)(I,2),V=N[0],H=N[1],D=Object(n.useState)(!1),W=Object(f.a)(D,2),F=W[0],L=W[1],K=Object(n.useState)(!1),ee=Object(f.a)(K,2),he=ee[0],fe=ee[1],Ce=Object(n.useState)(),Te=Object(f.a)(Ce,2),ce=Te[0],ye=Te[1];Object(n.useEffect)(function(){var $;if(P!=null&&($=P.userInfo)!==null&&$!==void 0&&$.identity){var me;H([(P==null||((me=P.userInfo)===null||me===void 0)?void 0:me.identity)==="student"?3:1])}},[P]);var Ee=function(me,re){if(V.includes(s.Professor)){e.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:i.a.createElement("div",{className:"tc"},re||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){r.d.push("/classrooms/".concat(me,"/students"))}});return}r.d.push("/classrooms/".concat(me,"/students"))},ue=function(){var $=Object(A.a)(l.a.mark(function me(){var re;return l.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(T){we.next=3;break}return C.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),we.abrupt("return");case 3:return L(!0),we.next=6,Object(c.c)({invite_code:T,professor:V.includes(s.Professor)?1:null,assistant_professor:V.includes(s.AssistantProfessor)?1:null,student:V.includes(s.Student)?1:null});case 6:if(re=we.sent,L(!1),!((re==null?void 0:re.status)===-2)){we.next=22;break}if(se(),!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){we.next=14;break}return fe(!0),ye(1),we.abrupt("return");case 14:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){we.next=18;break}return fe(!0),ye(2),we.abrupt("return");case 18:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){we.next=22;break}return fe(!0),ye(3),we.abrupt("return");case 22:if(!((re==null?void 0:re.status)===0)){we.next=27;break}return Object(d.cb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),se(),(re==null?void 0:re.course_id)&&Ee(re.course_id,re.message),we.abrupt("return");case 27:case"end":return we.stop()}},me)}));return function(){return $.apply(this,arguments)}}(),se=function(){var $=Object(A.a)(l.a.mark(function me(){return l.a.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:x();case 1:case"end":return ae.stop()}},me)}));return function(){return $.apply(this,arguments)}}();return i.a.createElement(i.a.Fragment,null,i.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:_,confirmLoading:F,onOk:ue,onCancel:se},i.a.createElement("div",{className:"tc"},i.a.createElement("div",null,i.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),i.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:T,onChange:function(me){if(me.target.value.length>=7){C.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}U(me.target.value)}})),i.a.createElement("div",{className:"mt10 font14"},i.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),i.a.createElement(m.a.Group,{value:V,onChange:function(me){return H(me)}},i.a.createElement(m.a,{value:s.Professor,disabled:V.includes(2)||V.includes(3)},"\u6559\u5E08"),i.a.createElement(m.a,{value:s.AssistantProfessor,disabled:V.includes(1)},"\u52A9\u6559"),i.a.createElement(m.a,{value:s.Student,disabled:V.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),i.a.createElement(h.a,{visible:he,onCancel:function(){return fe(!1)},occupationValue:ce}))};z.a=Object(r.a)(function(w){var E=w.user;return{user:E}})(u)},Jq4h:function(k,z,o){k.exports=o.p+"static/qrcode.2267e4d5.png"},Jv0p:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2RVge",flex_space_between:"flex_space_between___2f-dJ",flex_box_vertical_center:"flex_box_vertical_center___2UjfS",flex_box_center_end:"flex_box_center_end___1RfMW",flex_box_column:"flex_box_column___3uuIq",sidebar:"sidebar___Ik5Ae",items:"items___2qrP5",item:"item___24ylH",name:"name___1UcvU",itemActive:"itemActive___1Bj1D",question:"question___2fGw1"}},K3mO:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.Base,y=O.WordArray,C=m.algo,A=C.MD5,g=C.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:A,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var a,l=this.cfg,n=l.hasher.create(),i=y.create(),r=i.words,c=l.keySize,h=l.iterations;r.length<c;){a&&n.update(a),a=n.update(e).finalize(f),n.reset();for(var d=1;d<h;d++)a=n.finalize(a),n.reset();i.concat(a)}return i.sigBytes=c*4,i}});m.EvpKDF=function(e,f,a){return g.create(a).compute(e,f)}}(),M.EvpKDF})},KOXS:function(k,z,o){k.exports={flex_box_center:"flex_box_center___4BHX-",flex_space_between:"flex_space_between___fH2oM",flex_box_vertical_center:"flex_box_vertical_center___TgSS9",flex_box_center_end:"flex_box_center_end___1vKaD",flex_box_column:"flex_box_column___1kCgI",input:"input___2mV-b",dropdown:"dropdown___1QKW2",menu:"menu___37CBn",text:"text___159fF",b1:"b1___2uGyF",b2:"b2___2DXw1"}},KVXO:function(k,z,o){k.exports={wrap:"wrap___1VfLE",content:"content___20B4M",mainPathWrap:"mainPathWrap___3qDeg",colorBlue:"colorBlue___2ZjUq"}},KeGQ:function(k,z,o){k.exports=o.p+"static/noLevelData.36460f71.png"},KhGG:function(k,z,o){"use strict";o.d(z,"a",function(){return _}),o.d(z,"c",function(){return x});var M=o("0Owb"),m=o("miYZ"),O=o("tsqr"),b=o("oBTY"),y=o("tJVT"),C=o("PpiC"),A=o("k1fw"),g=o("9og8"),e=o("DZo9"),f=o("8z0m"),a=o("WmNS"),l=o.n(a),n=o("q1tI"),i=o.n(n),r=o("ErOA"),c=o("NFKh"),h=o.n(c),d=o("7Cbv"),s=o("9kvl"),u=o("mxV5"),w=o.n(u),E=f.a.Dragger,_=function(T){var U="bf3c199c2470cb477d907b1e0917c17b",I="5183666c72eec9e4",N=h.a.enc.Utf8.parse(U),V=h.a.enc.Utf8.parse(I),H=h.a.AES.decrypt(T,N,{iv:V,mode:h.a.mode.CBC});return H.toString(h.a.enc.Utf8)},P,R=function(){var v=Object(g.a)(l.a.mark(function T(U){var I,N,V,H,D,W,F,L,K,ee,he;return l.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return F=U.identifier,L=U.oldFilename,K=U.newFilename,Ce.next=3,Object(r.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 3:return ee=Ce.sent,ee.data=JSON.parse(_(ee.data)),he=new w.a({endpoint:ee==null||((I=ee.data)===null||I===void 0)?void 0:I.end_point,region:ee==null||((N=ee.data)===null||N===void 0)?void 0:N.region,accessKeyId:ee==null||((V=ee.data)===null||V===void 0)?void 0:V.access_key_id,accessKeySecret:ee==null||((H=ee.data)===null||H===void 0)?void 0:H.access_key_secret,bucket:ee==null||((D=ee.data)===null||D===void 0)?void 0:D.bucket,stsToken:ee==null||((W=ee.data)===null||W===void 0)?void 0:W.security_token}),Ce.abrupt("return",new Promise(function(Te,ce){console.log(11111,"".concat(F,"/").concat(L),"".concat(F,"/").concat(K),ee.data),he.copy("/".concat(F,"/").concat(L),"/".concat(F,"/").concat(K)).then(function(ye){console.log("\u62F7\u8D1D\u6210\u529F",ye)}).catch(function(ye){console.log(ye)})}));case 7:case"end":return Ce.stop()}},T)}));return function(U){return v.apply(this,arguments)}}(),x=function(){var v=Object(g.a)(l.a.mark(function T(U,I,N){var V,H,D,W,F,L,K,ee,he,fe;return l.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return I.file_name=U.name,Te.next=3,Object(r.a)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return K=Te.sent,console.log("decrypt(res.data):",_(K.data)),K.data=JSON.parse(_(K.data)),ee=U.name.split("."),ee.pop(),he=I.realFileName?ee:Object(d.a)(),fe=new w.a({endpoint:K==null||((V=K.data)===null||V===void 0)?void 0:V.end_point,region:K==null||((H=K.data)===null||H===void 0)?void 0:H.region,accessKeyId:K==null||((D=K.data)===null||D===void 0)?void 0:D.access_key_id,accessKeySecret:K==null||((W=K.data)===null||W===void 0)?void 0:W.access_key_secret,bucket:K==null||((F=K.data)===null||F===void 0)?void 0:F.bucket,stsToken:K==null||((L=K.data)===null||L===void 0)?void 0:L.security_token}),Te.abrupt("return",new Promise(function(ce,ye){var Ee;fe.multipartUpload("".concat(he),new Blob([U],{type:U.type}),Object(A.a)(Object(A.a)({timeout:200*1e3,partSize:102400},N),{},{callback:{url:K==null||((Ee=K.data)===null||Ee===void 0)?void 0:Ee.callback_url,host:K==null?void 0:K.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(r.e)(I)}})).then(function(ue){var se;U.response=(se=ue.data)===null||se===void 0?void 0:se.data,ce(ue==null?void 0:ue.data)}).catch(function(ue){ye(ue),console.log("err:",ue)})}));case 11:case"end":return Te.stop()}},T)}));return function(U,I,N){return v.apply(this,arguments)}}(),S=function(T){var U=T.user,I=T.cancelUpload,N=Object(C.a)(T,["user","cancelUpload"]),V=Object(n.useState)([]),H=Object(y.a)(V,2),D=H[0],W=H[1],F=Object(n.useState)(),L=Object(y.a)(F,2),K=L[0],ee=L[1],he={onRemove:function(Te){W(Object(b.a)(D.filter(function(ce){return ce.name!==Te.name}))),N.onChange(D.filter(function(ce){return ce.name!==Te.name}))},disabled:N.disabled,multiple:!0,fileList:D==null?void 0:D.map(function(Ce){return Ce.file}),customRequest:function(){},beforeUpload:function(){var Ce=Object(g.a)(l.a.mark(function ce(ye){var Ee;return l.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(Ee=N.maxSize||1024*1024*1024*1,!D.filter(function($){return $.name===ye.name}).length){se.next=4;break}return O.b.info("".concat(ye.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),se.abrupt("return");case 4:if(!((ye==null?void 0:ye.size)>Ee)){se.next=7;break}return O.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Ee/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),se.abrupt("return",!1);case 7:return D.push({name:ye.name,file:ye}),W(Object(b.a)(D)),N.onChange(D),se.abrupt("return",!1);case 11:case"end":return se.stop()}},ce)}));function Te(ce){return Ce.apply(this,arguments)}return Te}()},fe=function(){var Ce=Object(g.a)(l.a.mark(function Te(ce,ye){var Ee,ue,se,$,me,re,ae,we,le,te;return l.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return ye.file_name=ce.name,ae=ce.name,J.next=4,Object(r.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(we=J.sent,we.data=JSON.parse(_(we.data)),!((we==null?void 0:we.status)!==0)){J.next=12;break}return D[D.findIndex(function(ve){return ve.name===ae})].status="error",D[D.findIndex(function(ve){return ve.name===ae})].file.status="error",N.onChange(D),O.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),J.abrupt("return");case 12:return K=new w.a({endpoint:we==null||((Ee=we.data)===null||Ee===void 0)?void 0:Ee.end_point,region:we==null||((ue=we.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:we==null||((se=we.data)===null||se===void 0)?void 0:se.access_key_id,accessKeySecret:we==null||(($=we.data)===null||$===void 0)?void 0:$.access_key_secret,bucket:we==null||((me=we.data)===null||me===void 0)?void 0:me.bucket,stsToken:we==null||((re=we.data)===null||re===void 0)?void 0:re.security_token}),console.log(ce,"file"),ee(K),le=ce.name.split("."),le.pop(),te=ye.realFileName?le:Object(d.a)(),J.abrupt("return",new Promise(function(ve,_e){try{var Oe;K.multipartUpload("".concat(N.identifier,"/").concat(te).concat(ae.indexOf(".")>-1?"."+ae.split(".").pop():""),new Blob([ce.file],{type:ce.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(tt,lt,dt){try{console.log("\u8FDB\u5EA6",tt,lt,dt);var vt=D.findIndex(function(_t){return _t.name===ae});D[vt].file.percent=tt*100,D[vt].tempCheckpoint=lt,W(Object(b.a)(D))}catch(_t){}},checkpoint:D[D.findIndex(function(Xe){return Xe.name===ae})].tempCheckpoint,callback:{customValue:{id:ae+""},url:we==null||((Oe=we.data)===null||Oe===void 0)?void 0:Oe.callback_url,host:we==null?void 0:we.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(r.e)(ye)}}).then(function(Xe){var tt,lt=D.findIndex(function(je){return je.name===ae}),dt="done";if(((tt=Xe.data)===null||tt===void 0?void 0:tt.status)===0){var vt;ce.response=(vt=Xe.data)===null||vt===void 0?void 0:vt.data;var _t=D.findIndex(function(je){return je.name===ae});D[_t].status="done",D[_t].file.status="done"}else{var Ye;O.b.warn((Ye=Xe.data)===null||Ye===void 0?void 0:Ye.message),dt="error"}D[lt].status=dt,D[lt].file.status=dt,N.onChange(D),ve(Xe==null?void 0:Xe.data)}).catch(function(Xe){D[D.findIndex(function(tt){return tt.name===ae})].status="error",D[D.findIndex(function(tt){return tt.name===ae})].file.status="error",O.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),W(Object(b.a)(D)),N.onChange(D),_e(Xe),console.log("err:",Xe)})}catch(Xe){}}));case 19:case"end":return J.stop()}},Te)}));return function(ce,ye){return Ce.apply(this,arguments)}}();return Object(n.useEffect)(function(){D.every(function(Ce){return Ce==="done"||Ce==="error"})&&N.onComplete(D)},[D]),Object(n.useEffect)(function(){if(I){var Ce;(Ce=K)===null||Ce===void 0||Ce.cancel()}},[I]),Object(n.useEffect)(function(){N.uploading&&D.map(function(){var Ce=Object(g.a)(l.a.mark(function Te(ce){var ye,Ee;return l.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!((!ce.status||ce.status==="error")&&!I)){se.next=6;break}return ce.status="uploading",ce.file.status="uploading",se.next=5,fe(ce,{login:U==null||((ye=U.userInfo)===null||ye===void 0)?void 0:ye.login,container_type:N.container_type,container_id:N.container_id,description:N.description,realFileName:N.realFileName});case 5:Ee=se.sent;case 6:case"end":return se.stop()}},Te)}));return function(Te){return Ce.apply(this,arguments)}}())},[N.uploading]),i.a.createElement(E,Object(M.a)({},he,{height:N.height,className:N.className}),i.a.createElement("p",{className:"ant-upload-hint"},N.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};z.b=Object(s.a)(function(v){var T=v.loading,U=v.globalSetting,I=v.user;return{globalSetting:U,loading:T.models.competitions,user:I}})(S)},KmYQ:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.ZeroPadding={pad:function(m,O){var b=O*4;m.clamp(),m.sigBytes+=b-(m.sigBytes%b||b)},unpad:function(m){for(var O=m.words,b=m.sigBytes-1,b=m.sigBytes-1;b>=0;b--)if(O[b>>>2]>>>24-b%4*8&255){m.sigBytes=b+1;break}}},M.pad.ZeroPadding})},"L+Ii":function(k,z,o){k.exports={wrap:"wrap___3xyR8",labelWrap:"labelWrap___1IxCy",label:"label___22JJP",labelContent:"labelContent___3L5_8",flexRow:"flexRow___15gwv",color999:"color999___i4XxJ",radio:"radio___2Vrn9",selectSchool:"selectSchool___20PAH",dataPicker:"dataPicker___3ZrBg",modal:"modal___3_BbV",colorOrange:"colorOrange___3BuSt",colorYellow:"colorYellow___brbb2"}},LSTS:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var M=function(){function l(n,i){for(var r=0;r<i.length;r++){var c=i[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(n,c.key,c)}}return function(n,i,r){return i&&l(n.prototype,i),r&&l(n,r),n}}(),m=o("q1tI"),O=C(m),b=o("17x9"),y=C(b);function C(l){return l&&l.__esModule?l:{default:l}}function A(l,n){var i={};for(var r in l){if(n.indexOf(r)>=0)continue;if(!Object.prototype.hasOwnProperty.call(l,r))continue;i[r]=l[r]}return i}function g(l,n){if(!(l instanceof n))throw new TypeError("Cannot call a class as a function")}function e(l,n){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:l}function f(l,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);l.prototype=Object.create(n&&n.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(l,n):l.__proto__=n)}var a=function(l){f(n,l);function n(i){g(this,n);var r=e(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,i));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}return M(n,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var r=this.getParentElement(this.scrollComponent);r.scrollTop=r.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var r=!1,c={get passive(){r=!0}};try{document.addEventListener("test",null,c),document.removeEventListener("test",null,c)}catch(h){}return r}},{key:"eventListenerOptions",value:function(){var r=this.props.useCapture;return this.isPassiveSupported()&&(r={useCapture:this.props.useCapture,passive:!0}),r}},{key:"setDefaultLoader",value:function(r){this.defaultLoader=r}},{key:"detachMousewheelListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.scrollComponent.parentNode),r.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.getParentElement(this.scrollComponent)),r.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(r){var c=this.props.getScrollParent&&this.props.getScrollParent();return c!=null?c:r&&r.parentNode}},{key:"filterProps",value:function(r){return r}},{key:"attachScrollListener",value:function(){var r=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!r)return;var c=window;this.props.useWindow===!1&&(c=r),c.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),c.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),c.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(r){r.deltaY===1&&!this.isPassiveSupported()&&r.preventDefault()}},{key:"scrollListener",value:function(){var r=this.scrollComponent,c=window,h=this.getParentElement(r),d=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,u=c.pageYOffset!==void 0?c.pageYOffset:s.scrollTop;this.props.isReverse?d=u:d=this.calculateOffset(r,u)}else this.props.isReverse?d=h.scrollTop:d=r.scrollHeight-h.scrollTop-h.clientHeight;d<Number(this.props.threshold)&&r&&r.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=h.scrollHeight,this.beforeScrollTop=h.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(r,c){return r?this.calculateTopPosition(r)+(r.offsetHeight-c-window.innerHeight):0}},{key:"calculateTopPosition",value:function(r){return r?r.offsetTop+this.calculateTopPosition(r.offsetParent):0}},{key:"render",value:function(){var r=this,c=this.filterProps(this.props),h=c.children,d=c.element,s=c.hasMore,u=c.initialLoad,w=c.isReverse,E=c.loader,_=c.loadMore,P=c.pageStart,R=c.ref,x=c.threshold,S=c.useCapture,v=c.useWindow,T=c.getScrollParent,U=A(c,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);U.ref=function(N){r.scrollComponent=N,R&&R(N)};var I=[h];return s&&(E?w?I.unshift(E):I.push(E):this.defaultLoader&&(w?I.unshift(this.defaultLoader):I.push(this.defaultLoader))),O.default.createElement(d,U,I)}}]),n}(m.Component);a.propTypes={children:y.default.node.isRequired,element:y.default.node,hasMore:y.default.bool,initialLoad:y.default.bool,isReverse:y.default.bool,loader:y.default.node,loadMore:y.default.func.isRequired,pageStart:y.default.number,ref:y.default.func,getScrollParent:y.default.func,threshold:y.default.number,useCapture:y.default.bool,useWindow:y.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},z.default=a,k.exports=z.default},Lai7:function(k,z,o){k.exports=o.p+"static/noEnvData.6108fa6c.png"},LdHM:function(k,z,o){"use strict";o.d(z,"b",function(){return u}),o.d(z,"a",function(){return E});var M=o("1OyB"),m=o("vuIU"),O=o("Ji7U"),b=o("LK+K"),y=o("q1tI"),C=o("rePB"),A=o("Ff2n"),g=o("ODXe"),e=o("4IlW"),f=o("bX4T"),a=o("YrtM"),l=o("TSYQ"),n=o.n(l),i=o("+nKL"),r=o("8OUc"),c=function(K,ee){var he=K.prefixCls,fe=K.id,Ce=K.flattenOptions,Te=K.childrenAsData,ce=K.values,ye=K.searchValue,Ee=K.multiple,ue=K.defaultActiveFirstOption,se=K.height,$=K.itemHeight,me=K.notFoundContent,re=K.open,ae=K.menuItemSelectedIcon,we=K.virtual,le=K.onSelect,te=K.onToggleOpen,Q=K.onActiveValue,J=K.onScroll,ve=K.onMouseEnter,_e="".concat(he,"-item"),Oe=Object(a.a)(function(){return Ce},[re,Ce],function(Pt,Ze){return Ze[0]&&Pt[1]!==Ze[1]}),Xe=y.useRef(null),tt=function(Ze){Ze.preventDefault()},lt=function(Ze){Xe.current&&Xe.current.scrollTo({index:Ze})},dt=function(Ze){for(var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Je=Oe.length,Ae=0;Ae<Je;Ae+=1){var Ue=(Ze+Ae*We+Je)%Je,He=Oe[Ue],Fe=He.group,et=He.data;if(!Fe&&!et.disabled)return Ue}return-1},vt=y.useState(function(){return dt(0)}),_t=Object(g.a)(vt,2),Ye=_t[0],je=_t[1],ht=function(Ze){je(Ze);var We=Oe[Ze];if(!We){Q(null,-1);return}Q(We.data.value,Ze)};y.useEffect(function(){ht(ue!==!1?dt(0):-1)},[Oe.length,ye]),y.useEffect(function(){var Pt=setTimeout(function(){if(!Ee&&re&&ce.size===1){var Ze=Array.from(ce)[0],We=Oe.findIndex(function(Je){var Ae=Je.data;return Ae.value===Ze});ht(We),lt(We)}});return function(){return clearTimeout(Pt)}},[re]);var Bt=function(Ze){Ze!==void 0&&le(Ze,{selected:!ce.has(Ze)}),Ee||te(!1)};if(y.useImperativeHandle(ee,function(){return{onKeyDown:function(Ze){var We=Ze.which;switch(We){case e.a.UP:case e.a.DOWN:{var Je=0;if(We===e.a.UP?Je=-1:We===e.a.DOWN&&(Je=1),Je!==0){var Ae=dt(Ye+Je,Je);lt(Ae),ht(Ae)}break}case e.a.ENTER:{var Ue=Oe[Ye];Ue&&!Ue.data.disabled?Bt(Ue.data.value):Bt(void 0),re&&Ze.preventDefault();break}case e.a.ESC:te(!1)}},onKeyUp:function(){},scrollTo:function(Ze){lt(Ze)}}}),Oe.length===0)return y.createElement("div",{role:"listbox",id:"".concat(fe,"_list"),className:"".concat(_e,"-empty"),onMouseDown:tt},me);function Et(Pt){var Ze=Oe[Pt];if(!Ze)return null;var We=Ze.data||{},Je=We.value,Ae=We.label,Ue=We.children,He=Object(f.a)(We,!0),Fe=Te?Ue:Ae;return Ze?y.createElement("div",Object.assign({"aria-label":typeof Fe=="string"?Fe:null},He,{key:Pt,role:"option",id:"".concat(fe,"_list_").concat(Pt),"aria-selected":ce.has(Je)}),Je):null}return y.createElement(y.Fragment,null,y.createElement("div",{role:"listbox",id:"".concat(fe,"_list"),style:{height:0,width:0,overflow:"hidden"}},Et(Ye-1),Et(Ye),Et(Ye+1)),y.createElement(i.a,{itemKey:"key",ref:Xe,data:Oe,height:se,itemHeight:$,fullHeight:!1,onMouseDown:tt,onScroll:J,virtual:we,onMouseEnter:ve},function(Pt,Ze){var We,Je=Pt.group,Ae=Pt.groupOption,Ue=Pt.data,He=Ue.label,Fe=Ue.key;if(Je)return y.createElement("div",{className:n()(_e,"".concat(_e,"-group"))},He!==void 0?He:Fe);var et=Ue.disabled,mt=Ue.value,Lt=Ue.title,Xt=Ue.children,rn=Ue.style,wt=Ue.className,bt=Object(A.a)(Ue,["disabled","value","title","children","style","className"]),ke=ce.has(mt),nt="".concat(_e,"-option"),rt=n()(_e,nt,wt,(We={},Object(C.a)(We,"".concat(nt,"-grouped"),Ae),Object(C.a)(We,"".concat(nt,"-active"),Ye===Ze&&!et),Object(C.a)(We,"".concat(nt,"-disabled"),et),Object(C.a)(We,"".concat(nt,"-selected"),ke),We)),De=Te?Xt:He,Ke=!ae||typeof ae=="function"||ke;return y.createElement("div",Object.assign({},bt,{"aria-selected":ke,className:rt,title:Lt,onMouseMove:function(){if(Ye===Ze||et)return;ht(Ze)},onClick:function(){et||Bt(mt)},style:rn}),y.createElement("div",{className:"".concat(nt,"-content")},De||mt),y.isValidElement(ae)||ke,Ke&&y.createElement(r.a,{className:"".concat(_e,"-option-state"),customizeIcon:ae,customizeIconProps:{isSelected:ke}},ke?"\u2713":null))}))},h=y.forwardRef(c);h.displayName="OptionList";var d=h,s=function(){return null};s.isSelectOption=!0;var u=s,w=function(){return null};w.isSelectOptGroup=!0;var E=w,_=o("VTBJ"),P=o("Zm9Q");function R(L){var K=L.key,ee=L.props,he=ee.children,fe=ee.value,Ce=Object(A.a)(ee,["children","value"]);return Object(_.a)({key:K,value:fe!==void 0?fe:K,children:he},Ce)}function x(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(L).map(function(ee,he){if(!y.isValidElement(ee)||!ee.type)return null;var fe=ee.type.isSelectOptGroup,Ce=ee.key,Te=ee.props,ce=Te.children,ye=Object(A.a)(Te,["children"]);return K||!fe?R(ee):Object(_.a)(Object(_.a)({key:"__RC_SELECT_GRP__".concat(Ce===null?he:Ce,"__"),label:Ce},ye),{},{options:x(ce)})}).filter(function(ee){return ee})}var S=o("2Qr1"),v=o("qNPg"),T=o("U8pU"),U=o("Kwbf"),I=o("WKfj");function N(L){var K=L.mode,ee=L.options,he=L.children,fe=L.backfill,Ce=L.allowClear,Te=L.placeholder,ce=L.getInputElement,ye=L.showSearch,Ee=L.onSearch,ue=L.defaultOpen,se=L.autoFocus,$=L.labelInValue,me=L.value,re=L.inputValue,ae=L.optionLabelProp,we=K==="multiple"||K==="tags",le=ye!==void 0?ye:we||K==="combobox",te=ee||x(he);if(Object(U.a)(K!=="tags"||te.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var Q=te.some(function(_e){return _e.options?_e.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(U.a)(!Q,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(U.a)(K!=="combobox"||!ae,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(U.a)(K==="combobox"||!fe,"`backfill` only works with `combobox` mode."),Object(U.a)(K==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(U.b)(K!=="combobox"||!ce||!Ce||!Te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ee&&!le&&K!=="combobox"&&K!=="tags"&&Object(U.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(U.b)(!ue||se,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),me!=null){var J=Object(I.d)(me);Object(U.a)(!$||J.every(function(_e){return Object(T.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(U.a)(!we||Array.isArray(me),"`value` should be array when `mode` is `multiple` or `tags`")}if(he){var ve=null;Object(P.a)(he).some(function(_e){if(!y.isValidElement(_e)||!_e.type)return!1;var Oe=_e.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var Xe=Object(P.a)(_e.props.children).every(function(tt){return!y.isValidElement(tt)||!_e.type||tt.type.isSelectOption?!0:(ve=tt.type,!1)});return!Xe}return ve=Oe,!0}),ve&&Object(U.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(U.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var V=N,H=Object(v.a)({prefixCls:"rc-select",components:{optionList:d},convertChildrenToData:x,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:V,fillOptionsWithMissingValue:S.a}),D=function(L){Object(O.a)(ee,L);var K=Object(b.a)(ee);function ee(){var he;return Object(M.a)(this,ee),he=K.apply(this,arguments),he.selectRef=y.createRef(),he.focus=function(){he.selectRef.current.focus()},he.blur=function(){he.selectRef.current.blur()},he}return Object(m.a)(ee,[{key:"render",value:function(){return y.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),ee}(y.Component);D.Option=u,D.OptGroup=E;var W=D,F=z.c=W},Lf5v:function(k,z,o){"use strict";var M=o("5NDa"),m=o("5rEg"),O=o("2qtc"),b=o("kLXV"),y=o("k1fw"),C=o("oBTY"),A=o("9og8"),g=o("miYZ"),e=o("tsqr"),f=o("y8nQ"),a=o("Vl3Y"),l=o("tJVT"),n=o("DZo9"),i=o("8z0m"),r=o("WmNS"),c=o.n(r),h=o("q1tI"),d=o.n(h),s=o("m3rI"),u=o("ErOA"),w=o("sckv"),E=o.n(w),_=o("KhGG"),P=o("1vsH"),R=i.a.Dragger,x=function(v){var T,U=v.dispatch,I=v.id,N=v.onClose,V=v.onOK,H=v.visible,D=v.wrapClassName,W=v.local,F=v.containerId,L=v.rootIdentifier,K=Object(h.useState)({}),ee=Object(l.a)(K,2),he=ee[0],fe=ee[1],Ce=Object(h.useState)([]),Te=Object(l.a)(Ce,2),ce=Te[0],ye=Te[1],Ee=Object(h.useState)([]),ue=Object(l.a)(Ee,2),se=ue[0],$=ue[1],me=Object(h.useState)(0),re=Object(l.a)(me,2),ae=re[0],we=re[1],le=Object(h.useState)(!1),te=Object(l.a)(le,2),Q=te[0],J=te[1],ve=Object(h.useState)(!1),_e=Object(l.a)(ve,2),Oe=_e[0],Xe=_e[1],tt=a.a.useForm(),lt=Object(l.a)(tt,1),dt=lt[0],vt=Object(h.useState)([]),_t=Object(l.a)(vt,2),Ye=_t[0],je=_t[1],ht=Object(h.useRef)([]);Object(h.useEffect)(function(){H&&(dt.resetFields(),je([]),$([]),ye([]),we(0),Xe(!1),J(!1))},[H]);var Bt=function(ke){if(ke.file.status==="done"||ke.file.status==="uploading"){var nt,rt,De;if(je(ke.fileList),!ke.file.response)return;if((nt=ke.file.response)!==null&&nt!==void 0&&nt.id){e.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}je(Ye.filter(function(Ke){return Ke.uid!==ke.file.uid})),((rt=ke.file.response)===null||rt===void 0?void 0:rt.message)&&e.b.info((De=ke.file.response)===null||De===void 0?void 0:De.message)}},Et=function(){var bt=Object(A.a)(c.a.mark(function ke(nt){var rt,De,Ke;return c.a.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(ae){ft.next=8;break}return De=Ye.filter(function(xt){return xt.uid!==nt.uid}),je(De),ht.current=Object(C.a)(De),ye(ce.filter(function(xt){return xt!==nt.name})),e.b.info("\u5220\u9664\u6210\u529F"),De.length||(dt.setFieldsValue({file:void 0}),dt.validateFields()),ft.abrupt("return");case 8:if(nt.response){ft.next=11;break}return e.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),ft.abrupt("return");case 11:return ft.next=13,Object(u.a)("/api/shixuns/".concat(I,"/destroy_data_sets.json"),{method:"Delete",body:{id:[nt==null||((rt=nt.response)===null||rt===void 0)?void 0:rt.id]}});case 13:Ke=ft.sent,Ke.status===0&&(je(Ye.filter(function(xt){return xt.uid!==nt.uid})),e.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return ft.stop()}},ke)}));return function(nt){return bt.apply(this,arguments)}}(),Pt=function(ke){if(Ye!=null&&Ye.some(function(rt){return rt.name===ke.name}))return e.b.info("".concat(ke.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var nt={name:ke.name,uid:ke.uid,file:ke,percent:0};return Ye.push(nt),ht.current=Object(C.a)(Ye),je(Object(C.a)(Ye)),!1},Ze={height:300,multiple:!0,disabled:ae>0,withCredentials:!0,fileList:Ye,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:Bt,onRemove:Et,beforeUpload:Pt},We=function(ke,nt,rt,De,Ke,Ct){var ft=new FormData;Object.keys(ke).forEach(function(Mt){ft.append(Mt,ke[Mt])});var xt=new window.XMLHttpRequest;return xt.withCredentials=!0,xt.addEventListener("load",function(Mt){var ct;rt(JSON.parse(Mt==null||((ct=Mt.target)===null||ct===void 0)?void 0:ct.response))},!1),xt.addEventListener("error",function(Mt){Ke&&Ke(Mt)},!1),xt.upload.onprogress=function(Mt){De&&De(Mt)},xt.open("POST",nt),xt.send(ft),xt},Je=function(ke,nt){if(ke.lengthComputable){var rt=Math.floor(ke.loaded/ke.total*100),De=Object(y.a)(Object(y.a)({},nt),{},{percent:rt,status:rt===100?"done":"uploading"});console.log(ht.current,333),ht.current=ht.current.map(function(Ke){return Ke.uid===nt.uid?De:Ke}),je(ht.current)}},Ae=function(ke,nt){var rt=Object(y.a)(Object(y.a)({},nt),{},{status:"error"});e.b.warn("\u4E0A\u4F20\u5931\u8D25"),ht.current=ht.current.map(function(De){return De.uid===nt.uid?rt:De}),ht.current.every(function(De){return De.status==="done"||De.status==="error"})&&(Xe(!1),we(2)),je(ht.current)},Ue=function(ke,nt){var rt=Object(y.a)(Object(y.a)({},nt),{},{status:"done"});if(ke.status===0||(rt=Object(y.a)(Object(y.a)({},nt),{},{status:"error"}),e.b.error(ke==null?void 0:ke.message)),ht.current=ht.current.map(function(De){return De.uid===nt.uid?rt:De}),ht.current.every(function(De){return De.status==="done"})){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Lt(!0);return}ht.current.every(function(De){return De.status==="done"||De.status==="error"})&&(Xe(!1),we(2)),je(ht.current)},He=function(){var ke=!0;return window.navigator.onLine==!0?ke=!0:ke=!1,ke},Fe=function(){var bt=Object(A.a)(c.a.mark(function ke(nt){var rt,De,Ke,Ct,ft,xt,Mt,ct;return c.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(Xe(!0),!(ae===3)){Ft.next=4;break}return we(2),Ft.abrupt("return");case 4:if(!(ae===2||ae===1)){Ft.next=7;break}return et(),Ft.abrupt("return");case 7:return rt=nt||{},De=rt.commitMessage,Ke=De===void 0?"":De,Ct=rt.fileOss,ft=Ct===void 0?[]:Ct,xt=W?Ye:ft,Mt=xt.map(function(on){return on.name}),Ft.next=12,Object(u.a)("/api/shixuns/".concat(I,"/check_data_sets"),{method:"post",body:{files_name:Mt}});case 12:if(ct=Ft.sent,!(ct.status===-3)){Ft.next=17;break}return ye(ct==null?void 0:ct.exist_files),Xe(!1),Ft.abrupt("return");case 17:if(!(JSON.stringify(ct)==="{}")){Ft.next=21;break}return Xe(!1),e.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Ft.abrupt("return");case 21:ct.status===0&&(Ye.forEach(function(on){var cn=We({file:on.file,description:Ke,message:ct.message},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(I,"/upload_data_sets.json"),function(ln){return Ue(ln,on)},function(ln){return Je(ln,on)},function(ln){return Ae(ln,on)});se.push(cn)}),we(1));case 22:case"end":return Ft.stop()}},ke)}));return function(nt){return bt.apply(this,arguments)}}(),et=function(){var ke=Object(y.a)({},dt.getFieldsValue())||{},nt=ke.commitMessage,rt=nt===void 0?"":nt,De=ht.current.filter(function(Ct){return Ct.status==="error"}),Ke=ht.current.map(function(Ct){return Object(y.a)(Object(y.a)({},Ct),{},{status:Ct.status==="error"?"uploading":Ct.status})});je(Ke),De.forEach(function(Ct){var ft=We({file:Ct.file,description:rt},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(I,"/upload_data_sets.json"),function(xt){return Ue(xt,Ct)},function(xt){return Je(xt,Ct)},function(xt){return Ae(xt,Ct)});se.push(ft)})},mt=function(ke){if(console.log(ke,"changedValues"),"fileOss"in ke){var nt,rt;if(ke!=null&&ke.fileOss.every(function(De){return De.status==="done"})&&ke!==null&&ke!==void 0&&(nt=ke.fileOss)!==null&&nt!==void 0&&nt.length){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Lt(!0);return}if(ke!=null&&ke.fileOss.every(function(De){return De.status==="done"||De.status==="error"})&&ke!==null&&ke!==void 0&&(rt=ke.fileOss)!==null&&rt!==void 0&&rt.length){we(3),Xe(!1);return}ye(ce.filter(function(De){var Ke;return ke==null||((Ke=ke.fileOss)===null||Ke===void 0)?void 0:Ke.some(function(Ct){return Ct.name===De})}))}fe(Object(y.a)({},dt.getFieldsValue()))},Lt=function(ke){ke||(J(!0),se.forEach(function(nt){nt.abort()})),V(),N()},Xt=function(){var ke=Object(y.a)({},dt.getFieldsValue())||{},nt=ke.fileOss,rt=nt===void 0?[]:nt,De=Ye==null?void 0:Ye.every(function(Ct){return Ct.status==="done"}),Ke=rt==null?void 0:rt.every(function(Ct){return Ct.status==="done"});if(!De||!Ke){b.a.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Lt()}});return}Lt()},rn=function(){return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",null,d.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(E.a.colorBlue)})),d.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",d.a.createElement("span",{className:"".concat(E.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},wt=function(ke){console.log(ke,444)};return d.a.createElement(b.a,{visible:H,wrapClassName:D,onOk:function(){Object(P.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),dt.submit()},centered:!0,okText:ae===0?"\u786E\u5B9A":ae===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Oe},onCancel:Xt,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},d.a.createElement("div",{className:E.a.wrap},d.a.createElement(a.a,{className:"mt10",form:dt,scrollToFirstError:!0,layout:"vertical",onFinish:Fe,onValuesChange:mt},W?d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.a.createElement("span",{style:{visibility:"hidden"},className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},d.a.createElement(R,Ze," ",rn())):d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.a.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},d.a.createElement(_.b,{identifier:L,cancelUpload:Q,container_type:"Shixun",container_id:F,uploading:ae<3?ae:0,disabled:ae>0,height:300,maxSize:100*1024*1024*1024,description:he.commitMessage||"",text:rn(),onComplete:wt,realFileName:!0})),!!ce.length&&d.a.createElement("span",{className:E.a.repeatedName},ce.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),d.a.createElement(a.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},d.a.createElement(m.a,{bordered:!1,disabled:ae>0,maxLength:100,suffix:"".concat(((T=he.commitMessage)===null||T===void 0?void 0:T.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};z.a=x},M8RZ:function(k,z,o){"use strict";o.d(z,"a",function(){return e});var M=o("fWQN"),m=o("mtLc"),O=o("yKVA"),b=o("879j"),y=o("q1tI"),C=o.n(y),A=o("i8i4"),g=o.n(A),e=function(f){Object(O.a)(l,f);var a=Object(b.a)(l);function l(n){var i;Object(M.a)(this,l),i=a.call(this,n);var r=window.document;return i.node=r.createElement("div"),r.body.appendChild(i.node),i}return Object(m.a)(l,[{key:"render",value:function(){var i=this.props.children;return Object(A.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),l}(C.a.Component)},MEgm:function(k,z){k.exports="data:image/png;base64,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"},MI8n:function(k,z,o){"use strict";o.d(z,"c",function(){return y}),o.d(z,"b",function(){return e}),o.d(z,"e",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"d",function(){return l}),o.d(z,"f",function(){return n});var M=o("/cxE"),m=o("pmY6"),O=o("24hK"),b=o("5Y4S"),y;(function(i){i.None=()=>m.a.None;function r(N){return(V,H=null,D)=>{let W=!1,F;return F=N(L=>W?void 0:(F?F.dispose():W=!0,V.call(H,L)),null,D),W&&F.dispose(),F}}i.once=r;function c(N,V){return E((H,D=null,W)=>N(F=>H.call(D,V(F)),null,W))}i.map=c;function h(N,V){return E((H,D=null,W)=>N(F=>{V(F),H.call(D,F)},null,W))}i.forEach=h;function d(N,V){return E((H,D=null,W)=>N(F=>V(F)&&H.call(D,F),null,W))}i.filter=d;function s(N){return N}i.signal=s;function u(...N){return(V,H=null,D)=>Object(m.e)(...N.map(W=>W(F=>V.call(H,F),null,D)))}i.any=u;function w(N,V,H){let D=H;return c(N,W=>(D=V(D,W),D))}i.reduce=w;function E(N){let V;const H=new e({onFirstListenerAdd(){V=N(H.fire,H)},onLastListenerRemove(){V.dispose()}});return H.event}function _(N,V,H=100,D=!1,W){let F,L,K,ee=0;const he=new e({leakWarningThreshold:W,onFirstListenerAdd(){F=N(fe=>{ee++,L=V(L,fe),D&&!K&&(he.fire(L),L=void 0),clearTimeout(K),K=setTimeout(()=>{const Ce=L;L=void 0,K=void 0,(!D||ee>1)&&he.fire(Ce),ee=0},H)})},onLastListenerRemove(){F.dispose()}});return he.event}i.debounce=_;function P(N,V=(H,D)=>H===D){let H=!0,D;return d(N,W=>{const F=H||!V(W,D);return H=!1,D=W,F})}i.latch=P;function R(N,V){return[i.filter(N,V),i.filter(N,H=>!V(H))]}i.split=R;function x(N,V=!1,H=[]){let D=H.slice(),W=N(K=>{D?D.push(K):L.fire(K)});const F=()=>{D&&D.forEach(K=>L.fire(K)),D=null},L=new e({onFirstListenerAdd(){W||(W=N(K=>L.fire(K)))},onFirstListenerDidAdd(){D&&(V?setTimeout(F):F())},onLastListenerRemove(){W&&W.dispose(),W=null}});return L.event}i.buffer=x;class S{constructor(N){this.event=N}map(N){return new S(c(this.event,N))}forEach(N){return new S(h(this.event,N))}filter(N){return new S(d(this.event,N))}reduce(N,V){return new S(w(this.event,N,V))}latch(){return new S(P(this.event))}debounce(N,V=100,H=!1,D){return new S(_(this.event,N,V,H,D))}on(N,V,H){return this.event(N,V,H)}once(N,V,H){return r(this.event)(N,V,H)}}function v(N){return new S(N)}i.chain=v;function T(N,V,H=D=>D){const D=(...K)=>L.fire(H(...K)),W=()=>N.on(V,D),F=()=>N.removeListener(V,D),L=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return L.event}i.fromNodeEventEmitter=T;function U(N,V,H=D=>D){const D=(...K)=>L.fire(H(...K)),W=()=>N.addEventListener(V,D),F=()=>N.removeEventListener(V,D),L=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return L.event}i.fromDOMEventEmitter=U;function I(N){return new Promise(V=>r(N)(V))}i.toPromise=I})(y||(y={}));class C{constructor(i){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${i}_${C._idPool++}`}start(i){this._stopWatch=new b.a(!0),this._listenerCount=i}stop(){if(this._stopWatch){const i=this._stopWatch.elapsed();this._elapsedOverall+=i,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${i.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}C._idPool=0;let A=-1;class g{constructor(i,r=Math.random().toString(18).slice(2,5)){this.customThreshold=i,this.name=r,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(i){let r=A;if(typeof this.customThreshold=="number"&&(r=this.customThreshold),r<=0||i<r)return;this._stacks||(this._stacks=new Map);const c=new Error().stack.split(`
`).slice(3).join(`
`),h=this._stacks.get(c)||0;if(this._stacks.set(c,h+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let d,s=0;for(const[u,w]of this._stacks)(!d||s<w)&&(d=u,s=w);console.warn(`[${this.name}] potential listener LEAK detected, having ${i} listeners already. MOST frequent listener (${s}):`),console.warn(d)}return()=>{const d=this._stacks.get(c)||0;this._stacks.set(c,d-1)}}}class e{constructor(i){var r;this._disposed=!1,this._options=i,this._leakageMon=A>0?new g(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((r=this._options)===null||r===void 0?void 0:r._profName)?new C(this._options._profName):void 0}get event(){return this._event||(this._event=(i,r,c)=>{var h;this._listeners||(this._listeners=new O.a);const d=this._listeners.isEmpty();d&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(r?[i,r]:i);d&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,r);const u=(h=this._leakageMon)===null||h===void 0?void 0:h.check(this._listeners.size),w=Object(m.i)(()=>{if(u&&u(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return c instanceof m.b?c.add(w):Array.isArray(c)&&c.push(w),w}),this._event}fire(i){var r,c;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new O.a);for(let h of this._listeners)this._deliveryQueue.push([h,i]);for((r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[h,d]=this._deliveryQueue.shift();try{typeof h=="function"?h.call(void 0,d):h[0].call(h[1],d)}catch(s){Object(M.f)(s)}}(c=this._perfMon)===null||c===void 0||c.stop()}}dispose(){var i,r,c,h,d;this._disposed||(this._disposed=!0,(i=this._listeners)===null||i===void 0||i.clear(),(r=this._deliveryQueue)===null||r===void 0||r.clear(),(h=(c=this._options)===null||c===void 0?void 0:c.onLastListenerRemove)===null||h===void 0||h.call(c),(d=this._leakageMon)===null||d===void 0||d.dispose())}}class f extends e{constructor(i){super(i);this._isPaused=0,this._eventQueue=new O.a,this._mergeFn=i==null?void 0:i.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const i=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(i))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(i){this._listeners&&(this._isPaused!==0?this._eventQueue.push(i):super.fire(i))}}class a extends f{constructor(i){var r;super(i);this._delay=(r=i.delay)!==null&&r!==void 0?r:100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}class l{constructor(){this.buffers=[]}wrapEvent(i){return(r,c,h)=>i(d=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>r.call(c,d)):r.call(c,d)},void 0,h)}bufferEvents(i){const r=[];this.buffers.push(r);const c=i();return this.buffers.pop(),r.forEach(h=>h()),c}}class n{constructor(){this.listening=!1,this.inputEvent=y.None,this.inputEventListener=m.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(i){this.inputEvent=i,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=i(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(k,z,o){"use strict";(function(M,m){o.d(z,"b",function(){return c}),o.d(z,"i",function(){return u}),o.d(z,"f",function(){return w}),o.d(z,"d",function(){return E}),o.d(z,"g",function(){return _}),o.d(z,"h",function(){return P}),o.d(z,"c",function(){return R}),o.d(z,"k",function(){return x}),o.d(z,"j",function(){return S}),o.d(z,"a",function(){return v}),o.d(z,"e",function(){return I});var O;const b="en";let y=!1,C=!1,A=!1,g=!1,e=!1,f=!1,a=!1,l,n=b,i,r;const c=typeof self=="object"?self:typeof M=="object"?M:{};let h;typeof c.vscode!="undefined"&&typeof c.vscode.process!="undefined"?h=c.vscode.process:typeof m!="undefined"&&(h=m);const d=typeof((O=h==null?void 0:h.versions)===null||O===void 0?void 0:O.electron)=="string"&&h.type==="renderer";if(typeof navigator=="object"&&!d)r=navigator.userAgent,y=r.indexOf("Windows")>=0,C=r.indexOf("Macintosh")>=0,a=(r.indexOf("Macintosh")>=0||r.indexOf("iPad")>=0||r.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,A=r.indexOf("Linux")>=0,f=!0,l=navigator.language,n=l;else if(typeof h=="object"){y=h.platform==="win32",C=h.platform==="darwin",A=h.platform==="linux",g=A&&!!h.env.SNAP&&!!h.env.SNAP_REVISION,l=b,n=b;const N=h.env.VSCODE_NLS_CONFIG;if(N)try{const V=JSON.parse(N),H=V.availableLanguages["*"];l=V.locale,n=H||b,i=V._translationsConfigFile}catch(V){}e=!0}else console.error("Unable to resolve platform.");let s=0;C?s=1:y?s=3:A&&(s=2);const u=y,w=C,E=A,_=e,P=f,R=a,x=r,S=function(){if(c.setImmediate)return c.setImmediate.bind(c);if(typeof c.postMessage=="function"&&!c.importScripts){let H=[];c.addEventListener("message",W=>{if(W.data&&W.data.vscodeSetImmediateId)for(let F=0,L=H.length;F<L;F++){const K=H[F];if(K.id===W.data.vscodeSetImmediateId){H.splice(F,1),K.callback();return}}});let D=0;return W=>{const F=++D;H.push({id:F,callback:W}),c.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(h==null?void 0:h.nextTick)=="function")return h.nextTick.bind(h);const V=Promise.resolve();return H=>V.then(H)}(),v=C||a?2:y?1:3;let T=!0,U=!1;function I(){if(!U){U=!0;const N=new Uint8Array(2);N[0]=1,N[1]=2;const V=new Uint16Array(N.buffer);T=V[0]===(2<<8)+1}return T}}).call(this,o("IyRk"),o("Q2Ig"))},MlIO:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(m){var O=M,b=O.lib,y=b.Base,C=b.WordArray,A=O.x64={},g=A.Word=y.extend({init:function(f,a){this.high=f,this.low=a}}),e=A.WordArray=y.extend({init:function(f,a){f=this.words=f||[],a!=m?this.sigBytes=a:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,a=f.length,l=[],n=0;n<a;n++){var i=f[n];l.push(i.high),l.push(i.low)}return C.create(l,this.sigBytes)},clone:function(){for(var f=y.clone.call(this),a=f.words=this.words.slice(0),l=a.length,n=0;n<l;n++)a[n]=a[n].clone();return f}})}(),M})},N0LK:function(k,z,o){"use strict";o.d(z,"C",function(){return M}),o.d(z,"v",function(){return O}),o.d(z,"s",function(){return b}),o.d(z,"t",function(){return y}),o.d(z,"U",function(){return C}),o.d(z,"J",function(){return A}),o.d(z,"O",function(){return g}),o.d(z,"p",function(){return e}),o.d(z,"T",function(){return f}),o.d(z,"q",function(){return a}),o.d(z,"N",function(){return l}),o.d(z,"M",function(){return n}),o.d(z,"Q",function(){return i}),o.d(z,"u",function(){return r}),o.d(z,"x",function(){return c}),o.d(z,"I",function(){return h}),o.d(z,"f",function(){return d}),o.d(z,"h",function(){return s}),o.d(z,"g",function(){return u}),o.d(z,"i",function(){return w}),o.d(z,"G",function(){return E}),o.d(z,"H",function(){return _}),o.d(z,"r",function(){return P}),o.d(z,"R",function(){return R}),o.d(z,"d",function(){return x}),o.d(z,"e",function(){return S}),o.d(z,"E",function(){return v}),o.d(z,"F",function(){return T}),o.d(z,"j",function(){return U}),o.d(z,"z",function(){return I}),o.d(z,"K",function(){return V}),o.d(z,"L",function(){return H}),o.d(z,"m",function(){return W}),o.d(z,"k",function(){return L}),o.d(z,"A",function(){return ee}),o.d(z,"a",function(){return he}),o.d(z,"n",function(){return fe}),o.d(z,"l",function(){return Ce}),o.d(z,"D",function(){return Te}),o.d(z,"B",function(){return ce}),o.d(z,"b",function(){return ye}),o.d(z,"S",function(){return Ee}),o.d(z,"o",function(){return ue}),o.d(z,"P",function(){return se}),o.d(z,"w",function(){return $}),o.d(z,"c",function(){return me}),o.d(z,"y",function(){return we});function M(J){return!J||typeof J!="string"?!0:J.trim().length===0}const m=/{(\d+)}/g;function O(J,...ve){return ve.length===0?J:J.replace(m,function(_e,Oe){const Xe=parseInt(Oe,10);return isNaN(Xe)||Xe<0||Xe>=ve.length?_e:ve[Xe]})}function b(J){return J.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return ve}})}function y(J){return J.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function C(J,ve=" "){const _e=A(J,ve);return g(_e,ve)}function A(J,ve){if(!J||!ve)return J;const _e=ve.length;if(_e===0||J.length===0)return J;let Oe=0;for(;J.indexOf(ve,Oe)===Oe;)Oe=Oe+_e;return J.substring(Oe)}function g(J,ve){if(!J||!ve)return J;const _e=ve.length,Oe=J.length;if(_e===0||Oe===0)return J;let Xe=Oe,tt=-1;for(;!(tt=J.lastIndexOf(ve,Xe-1),tt===-1||tt+_e!==Xe);){if(tt===0)return"";Xe=tt}return J.substring(0,Xe)}function e(J){return J.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(J){return J.replace(/\*/g,"")}function a(J,ve,_e={}){if(!J)throw new Error("Cannot create regex from empty string");ve||(J=y(J)),_e.wholeWord&&(/\B/.test(J.charAt(0))||(J="\\b"+J),/\B/.test(J.charAt(J.length-1))||(J=J+"\\b"));let Oe="";return _e.global&&(Oe+="g"),_e.matchCase||(Oe+="i"),_e.multiline&&(Oe+="m"),_e.unicode&&(Oe+="u"),new RegExp(J,Oe)}function l(J){if(J.source==="^"||J.source==="^$"||J.source==="$"||J.source==="^\\s*$")return!1;const ve=J.exec("");return!!(ve&&J.lastIndex===0)}function n(J){return(J.global?"g":"")+(J.ignoreCase?"i":"")+(J.multiline?"m":"")+(J.unicode?"u":"")}function i(J){return J.split(/\r\n|\r|\n/)}function r(J){for(let ve=0,_e=J.length;ve<_e;ve++){const Oe=J.charCodeAt(ve);if(Oe!==32&&Oe!==9)return ve}return-1}function c(J,ve=0,_e=J.length){for(let Oe=ve;Oe<_e;Oe++){const Xe=J.charCodeAt(Oe);if(Xe!==32&&Xe!==9)return J.substring(ve,Oe)}return J.substring(ve,_e)}function h(J,ve=J.length-1){for(let _e=ve;_e>=0;_e--){const Oe=J.charCodeAt(_e);if(Oe!==32&&Oe!==9)return _e}return-1}function d(J,ve){return J<ve?-1:J>ve?1:0}function s(J,ve,_e=0,Oe=J.length,Xe=0,tt=ve.length){for(;_e<Oe&&Xe<tt;_e++,Xe++){let vt=J.charCodeAt(_e),_t=ve.charCodeAt(Xe);if(vt<_t)return-1;if(vt>_t)return 1}const lt=Oe-_e,dt=tt-Xe;return lt<dt?-1:lt>dt?1:0}function u(J,ve){return w(J,ve,0,J.length,0,ve.length)}function w(J,ve,_e=0,Oe=J.length,Xe=0,tt=ve.length){for(;_e<Oe&&Xe<tt;_e++,Xe++){let vt=J.charCodeAt(_e),_t=ve.charCodeAt(Xe);if(vt===_t)continue;if(vt>=128||_t>=128)return s(J.toLowerCase(),ve.toLowerCase(),_e,Oe,Xe,tt);E(vt)&&(vt-=32),E(_t)&&(_t-=32);const Ye=vt-_t;if(Ye===0)continue;return Ye}const lt=Oe-_e,dt=tt-Xe;return lt<dt?-1:lt>dt?1:0}function E(J){return J>=97&&J<=122}function _(J){return J>=65&&J<=90}function P(J,ve){return J.length===ve.length&&w(J,ve)===0}function R(J,ve){const _e=ve.length;return ve.length>J.length?!1:w(J,ve,0,_e)===0}function x(J,ve){let _e,Oe=Math.min(J.length,ve.length);for(_e=0;_e<Oe;_e++)if(J.charCodeAt(_e)!==ve.charCodeAt(_e))return _e;return Oe}function S(J,ve){let _e,Oe=Math.min(J.length,ve.length);const Xe=J.length-1,tt=ve.length-1;for(_e=0;_e<Oe;_e++)if(J.charCodeAt(Xe-_e)!==ve.charCodeAt(tt-_e))return _e;return Oe}function v(J){return 55296<=J&&J<=56319}function T(J){return 56320<=J&&J<=57343}function U(J,ve){return(J-55296<<10)+(ve-56320)+65536}function I(J,ve,_e){const Oe=J.charCodeAt(_e);if(v(Oe)&&_e+1<ve){const Xe=J.charCodeAt(_e+1);if(T(Xe))return U(Oe,Xe)}return Oe}function N(J,ve){const _e=J.charCodeAt(ve-1);if(T(_e)&&ve>1){const Oe=J.charCodeAt(ve-2);if(v(Oe))return U(Oe,_e)}return _e}function V(J,ve){const _e=re.getInstance(),Oe=ve,Xe=J.length,tt=I(J,Xe,ve);ve+=tt>=65536?2:1;let lt=_e.getGraphemeBreakType(tt);for(;ve<Xe;){const dt=I(J,Xe,ve),vt=_e.getGraphemeBreakType(dt);if(me(lt,vt))break;ve+=dt>=65536?2:1,lt=vt}return ve-Oe}function H(J,ve){const _e=re.getInstance(),Oe=ve,Xe=N(J,ve);ve-=Xe>=65536?2:1;let tt=_e.getGraphemeBreakType(Xe);for(;ve>0;){const lt=N(J,ve),dt=_e.getGraphemeBreakType(lt);if(me(dt,tt))break;ve-=lt>=65536?2:1,tt=dt}return Oe-ve}const D=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function W(J){return D.test(J)}const F=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function L(J){return F.test(J)}const K=/^[\t\n\r\x20-\x7E]*$/;function ee(J){return K.test(J)}const he=/[\u2028\u2029]/;function fe(J){return he.test(J)}function Ce(J){for(let ve=0,_e=J.length;ve<_e;ve++)if(Te(J.charCodeAt(ve)))return!0;return!1}function Te(J){return J=+J,J>=11904&&J<=55215||J>=63744&&J<=64255||J>=65281&&J<=65374}function ce(J){return J>=127462&&J<=127487||J===8986||J===8987||J===9200||J===9203||J>=9728&&J<=10175||J===11088||J===11093||J>=127744&&J<=128591||J>=128640&&J<=128764||J>=128992&&J<=129003||J>=129280&&J<=129535||J>=129648&&J<=129750}const ye=String.fromCharCode(65279);function Ee(J){return!!(J&&J.length>0&&J.charCodeAt(0)===65279)}function ue(J,ve=!1){return J?(ve&&(J=J.replace(/\\./g,"")),J.toLowerCase()!==J):!1}function se(J){const ve=90-65+1;return J=J%(2*ve),J<ve?String.fromCharCode(97+J):String.fromCharCode(65+J-ve)}function $(J){const ve=re.getInstance();return ve.getGraphemeBreakType(J)}function me(J,ve){return J===0?ve!==5&&ve!==7:J===2&&ve===3?!1:J===4||J===2||J===3||(ve===4||ve===2||ve===3)?!0:J===8&&(ve===8||ve===9||ve===11||ve===12)||((J===11||J===9)&&(ve===9||ve===10)||((J===12||J===10)&&ve===10||(ve===5||ve===13||(ve===7||(J===1||J===13&&ve===14)))))?!1:!(J===6&&ve===6)}class re{constructor(){this._data=ae()}static getInstance(){return re._INSTANCE||(re._INSTANCE=new re),re._INSTANCE}getGraphemeBreakType(J){if(J<32)return J===10?3:J===13?2:4;if(J<127)return 0;const ve=this._data,_e=ve.length/3;let Oe=1;for(;Oe<=_e;)if(J<ve[3*Oe])Oe=2*Oe;else if(J>ve[3*Oe+1])Oe=2*Oe+1;else return ve[3*Oe+2];return 0}}re._INSTANCE=null;function ae(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function we(J,ve){if(J===0)return 0;const _e=le(J,ve);if(_e!==void 0)return _e;const Oe=N(ve,J);return J-=te(Oe),J}function le(J,ve){let _e=N(ve,J);for(J-=te(_e);Q(_e)||_e===65039||_e===8419;){if(J===0)return;_e=N(ve,J),J-=te(_e)}if(!ce(_e))return;if(J>=0){const Oe=N(ve,J);Oe===8205&&(J-=te(Oe))}return J}function te(J){return J>=65536?2:1}function Q(J){return 127995<=J&&J<=127999}},N3QO:function(k,z,o){"use strict";var M=o("2qtc"),m=o("kLXV"),O=o("tJVT"),b=o("q1tI"),y=o.n(b),C=o("9kvl"),A=o("FPkq"),g=o.n(A),e=function(a){var l,n=a.newShixuns,i=a.dispatch,r=a.user,c=Object(b.useState)(!1),h=Object(O.a)(c,2),d=h[0],s=h[1];Object(b.useEffect)(function(){n.actionTabs.key==="Create-Environment"&&w()},[n==null||((l=n.actionTabs)===null||l===void 0)?void 0:l.key]);var u=function(){i({type:"newShixuns/setActionTabs",payload:{}})},w=function(){var _,P,R;u(),((_=r.userInfo)===null||_===void 0?void 0:_.mirror_marker_status)===0?s(!0):((P=r.userInfo)===null||P===void 0?void 0:P.mirror_marker_status)===1?C.d.push("/shixuns/new/CreateImg"):((R=r.userInfo)===null||R===void 0?void 0:R.mirror_marker_status)===2&&m.a.confirm({title:"\u60A8\u4ECA\u65E5\u5DF2\u8FBE\u5230\u7533\u8BF7\u4E0A\u9650\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u4E91\u4E3B\u673A\u5217\u8868\uFF1F",content:"\u63D0\u793A\uFF1A\u6BCF\u5929\u6700\u591A\u5141\u8BB8\u7533\u8BF7\u4E00\u53F0\u4E91\u4E3B\u673A",okText:"\u8DF3\u8F6C",cancelText:"\u53D6\u6D88",onOk:function(){var S;C.d.push("/users/".concat((S=r.userInfo)===null||S===void 0?void 0:S.login,"/experiment-img"))}})};return y.a.createElement(m.a,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",visible:d,footer:null,onCancel:function(){s(!1)}},y.a.createElement("div",{style:{textAlign:"center"}},y.a.createElement("br",null),y.a.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:g.a,alt:"\u4E8C\u7EF4\u7801"})),y.a.createElement("img",null))};z.a=Object(C.a)(function(f){var a=f.newShixuns,l=f.user,n=f.globalSetting;return{newShixuns:a,globalSetting:n,user:l}})(e)},NFKh:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("MlIO"),o("F+F2"),o("qM6L"),o("ETIr"),o("wbyO"),o("cv67"),o("3y9D"),o("lPiR"),o("GRuw"),o("1uat"),o("uGsb"),o("5hvy"),o("ELcG"),o("WYAk"),o("e7zE"),o("K3mO"),o("OLod"),o("ALsQ"),o("9OqN"),o("qu8F"),o("S6kV"),o("gb/T"),o("qBft"),o("oRuE"),o("jO9C"),o("KmYQ"),o("uGxW"),o("bQjk"),o("wZgz"),o("pA7S"),o("w7YG"),o("E4JC"),o("PVpz"))})(this,function(M){return M})},NLgs:function(k,z,o){"use strict";o.d(z,"e",function(){return h}),o.d(z,"f",function(){return d}),o.d(z,"d",function(){return u}),o.d(z,"c",function(){return w}),o.d(z,"a",function(){return E}),o.d(z,"b",function(){return _});var M=o("miYZ"),m=o("tsqr"),O=o("9og8"),b=o("2qtc"),y=o("kLXV"),C=o("WmNS"),A=o.n(C),g=o("q1tI"),e=o.n(g),f=o("9kvl"),a=o("xKgJ"),l=o("1vsH"),n=o("RCxd"),i=o("yTi+"),r=o.n(i),c=o("m3rI"),h=function(R){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(d(R)&&s(x))},d=function(R){return Object(a.p)()?!0:(R({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},s=function(){var R,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,S=Object(f.c)()._store.getState(),v=S.user;return(R=v.userInfo)!==null&&R!==void 0&&R.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:x?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){f.d.push("/account/profile/edit")}}),!1)},u=function(){var R,x=Object(f.c)()._store.getState(),S=x.user;return(R=S.userInfo)!==null&&R!==void 0&&R.professional_certification?!0:(y.a.confirm({title:"\u63D0\u793A",centered:!0,content:e.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(l.S)("/account/certification")}}),!1)},w=function(){var R;if(Object(a.a)())return!0;var x=Object(f.c)()._store.getState(),S=x.user,v=x.globalSetting;return y.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),e.a.createElement("img",{src:c.a.IMG_SERVER+(v==null||((R=v.setting)===null||R===void 0)?void 0:R.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},E=function(R,x){var S;if(R)return!0;var v=Object(f.c)()._store.getState(),T=v.user,U=v.globalSetting;return y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("p",null,x||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),e.a.createElement("div",{style:{marginLeft:"110px"}},e.a.createElement("img",{src:c.a.IMG_SERVER+(U==null||((S=U.setting)===null||S===void 0)?void 0:S.authority_qrcode_url),width:200}),e.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(l.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},_=function(R){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",S=Object(f.c)()._store.getState(),v=S.shixunsDetail.detail;return(v==null?void 0:v.public)===2||(v==null?void 0:v.public)===1||(v==null?void 0:v.shixun_status)===3?(y.a.info({centered:!0,icon:e.a.createElement(n.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(v==null?void 0:v.public)===2?"\u5DF2\u516C\u5F00":(v==null?void 0:v.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",x,"\u3002"),e.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),e.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:r.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(v==null?void 0:v.shixun_status)===2?(y.a.confirm({centered:!0,icon:e.a.createElement(n.a,null),title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",x,"\u3002"),e.a.createElement("br",null),e.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){y.a.confirm({width:440,centered:!0,icon:e.a.createElement(n.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var U=Object(O.a)(A.a.mark(function N(){var V;return A.a.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,R({type:"shixunsDetail/cancelRelease",payload:{id:v==null?void 0:v.identifier}});case 2:V=D.sent,V.status!==401&&(m.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),R({type:"shixunsDetail/getShixunsDetail",payload:{id:v==null?void 0:v.identifier}}),R({type:"practiceSetting/getCommonData",payload:{id:v==null?void 0:v.identifier}}));case 4:case"end":return D.stop()}},N)}));function I(){return U.apply(this,arguments)}return I}()})}}),!0):!1}},NQs2:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return g}),o.d(z,"h",function(){return r}),o.d(z,"l",function(){return s}),o.d(z,"e",function(){return R}),o.d(z,"i",function(){return T}),o.d(z,"j",function(){return ue}),o.d(z,"c",function(){return J}),o.d(z,"b",function(){return tt}),o.d(z,"g",function(){return _t}),o.d(z,"f",function(){return Bt}),o.d(z,"k",function(){return Fe}),o.d(z,"d",function(){return Xt});var M=o("q1tI"),m=o.n(M),O=o("NQs2"),b=o.n(O),y=o("ygoZ"),C=o.n(y),A=function(wt){var bt=wt.dataSource,ke=bt===void 0?[]:bt,nt=wt.img,rt=wt.imgWidth,De=rt===void 0?346:rt,Ke=wt.title,Ct=wt.sunTitle,ft=wt.bannerExtraContent;return m.a.createElement("div",{className:b.a.banner},m.a.createElement("div",{className:b.a.content},m.a.createElement("aside",null,m.a.createElement("p",null,m.a.createElement("b",null,Ke),m.a.createElement("span",null,Ct)),ke.length>0&&m.a.createElement("div",{className:b.a.btns},ke.map(function(xt,Mt){return m.a.createElement("div",{key:Mt,onClick:xt.click},xt.name,xt.sign?m.a.createElement("img",{src:C.a,width:39}):null)})),ft),m.a.createElement("img",{style:{marginTop:33,marginRight:38},src:nt,width:De})))},g=A,e=o("tJVT"),f=o("6nfa"),a=o.n(f),l=o("TSYQ"),n=o.n(l),i=function(wt){var bt=wt.dataSource,ke=bt===void 0?[]:bt,nt=wt.value,rt=wt.onChange,De=wt.className,Ke=wt.title,Ct=wt.titleWidth,ft=Ct===void 0?41:Ct,xt=wt.style,Mt=xt===void 0?{}:xt,ct=wt.fontColor,Ut=ct===void 0?"#6A7283":ct,Ft=Object(M.useState)(0),on=Object(e.a)(Ft,2),cn=on[0],ln=on[1],kn=Object(M.useState)(!1),In=Object(e.a)(kn,2),sn=In[0],Gn=In[1],Nn=Object(M.useRef)(null);return Object(M.useEffect)(function(){if(ke.length!==0){var Vn;(Nn==null||((Vn=Nn.current)===null||Vn===void 0)?void 0:Vn.clientHeight)>92?ln(1):ln(0)}ke.length===0&&ln(0)},[ke]),m.a.createElement("div",{className:n()(a.a.row,De),style:Mt},m.a.createElement("div",{style:{width:ft,marginTop:sn?12:4},className:a.a.title},Ke),m.a.createElement("div",{className:sn?"".concat(a.a.tagsWrap," ").concat(a.a.tagsBorderWrap):a.a.tagsWrap},m.a.createElement("div",{className:a.a.bar,style:cn>0?{height:cn===1?92:"auto",overflow:cn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},m.a.createElement("div",{className:a.a.name,ref:Nn},ke==null?void 0:ke.map(function(Vn){return m.a.createElement("span",{onClick:function(){return rt(Vn.id)},key:Vn.id,title:Vn.name,style:{color:Ut},className:nt===Vn.id?a.a.active:""},Vn.name)}))),!!cn&&m.a.createElement(M.Fragment,null,cn===1?m.a.createElement("div",{onClick:function(){var Zn;ln(2),(Nn==null||((Zn=Nn.current)===null||Zn===void 0)?void 0:Zn.clientHeight)>205?Gn(!0):Gn(!1)},className:a.a.action},"\u5C55\u5F00",m.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):m.a.createElement("div",{onClick:function(){ln(1),Gn(!1)},className:a.a.action},"\u6536\u8D77",m.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},r=i,c=o("cz0n"),h=o.n(c),d=function(wt){var bt=wt.dataSource,ke=bt===void 0?[]:bt,nt=wt.value,rt=wt.onChange,De=wt.className;return m.a.createElement("div",{className:n()(h.a.tabs,De)},ke.map(function(Ke){return m.a.createElement("span",{onClick:function(){return rt(Ke.id)},className:nt===Ke.id?h.a.active:"",key:Ke.id},Ke.name)}))},s=d,u=o("5NDa"),w=o("5rEg"),E=o("KOXS"),_=o.n(E),P=function(wt){var bt,ke=wt.dataSource,nt=ke===void 0?[]:ke,rt=wt.value,De=wt.onChange,Ke=wt.className,Ct=wt.style,ft=Ct===void 0?{}:Ct,xt=wt.placeholder,Mt=Object(M.useState)(""),ct=Object(e.a)(Mt,2),Ut=ct[0],Ft=ct[1],on=Object(M.useState)(""),cn=Object(e.a)(on,2),ln=cn[0],kn=cn[1];Object(M.useEffect)(function(){var Gn;(Gn=JSON.stringify(rt))!==null&&Gn!==void 0&&Gn.includes("{")?(Ft(rt.id),kn(rt.value)):kn(rt)},[rt]);var In=function(){De(ln||null,Ut||"")},sn=function(Nn){if(Nn===Ut)return;Ft(Nn),De(ln,Nn)};return m.a.createElement("div",{className:n()(_.a.input,Ke),style:ft},!!nt.length&&m.a.createElement("div",{className:_.a.dropdown},m.a.createElement("div",{className:_.a.text},(bt=nt.find(function(Gn){return Gn.id===Ut}))===null||bt===void 0?void 0:bt.name,m.a.createElement("i",{className:"iconfont icon-zhankai4"}),m.a.createElement("b",{className:_.a.b1}),m.a.createElement("b",{className:_.a.b2})),m.a.createElement("div",{className:_.a.menu},nt.map(function(Gn,Nn){return m.a.createElement("div",{key:Nn,onClick:function(){return sn(Gn.id)}},Gn.name)}))),m.a.createElement(w.a,{onPressEnter:In,value:ln,onChange:function(Nn){return kn(Nn.target.value||"")},bordered:!1,placeholder:xt}),m.a.createElement("i",{onClick:In,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=P,x=o("f9pc"),S=o.n(x),v=function(wt){var bt=wt.value,ke=wt.onChange,nt=wt.className,rt=wt.total,De=wt.pageSize,Ke=wt.style,Ct=Ke===void 0?{}:Ke,ft=bt<2,xt=bt>=Math.ceil(rt/De);return rt<=De?m.a.createElement(m.a.Fragment,null):m.a.createElement("div",{className:n()(S.a.quickPager,nt),style:Ct},m.a.createElement("div",{onClick:function(){ft||ke(bt-1,"prev")},className:ft?S.a.disabled:""},"\u4E0A\u4E00\u9875"),m.a.createElement("div",{onClick:function(){xt||ke(bt+1,"next")},className:xt?S.a.disabled:""},"\u4E0B\u4E00\u9875"))},T=v,U=o("T2oS"),I=o("W9HT"),N=o("pC0b"),V=o("GzdX"),H=o("5Dmo"),D=o("3S7+"),W=o("Oe0F"),F=o.n(W),L=o("m3rI"),K=o("1vsH"),ee=o("JAbv"),he=o.n(ee),fe=o("Bq7L"),Ce=o.n(fe),Te=o("MEgm"),ce=o.n(Te),ye=o("BdwD"),Ee=function(wt){var bt=wt.className,ke=wt.dataSource,nt=ke===void 0?[]:ke,rt=wt.col,De=rt===void 0?4:rt,Ke=wt.right,Ct=wt.bottom,ft=Ct===void 0?23:Ct,xt=wt.precision,Mt=xt===void 0?0:xt,ct=wt.wrapWidth,Ut=ct===void 0?1200:ct,Ft=wt.trackEventItems,on=wt.loading,cn=Math.floor((Ut-(De-1)*Ke)/De);return m.a.createElement(I.a,{spinning:on},m.a.createElement("div",{className:n()(F.a.list,bt)},!!nt.length&&nt.map(function(ln,kn){var In=ln.name,sn=ln.id,Gn=ln.identifier,Nn=ln.power,Vn=ln.cover_image_id,Zn=ln.pic;return m.a.createElement("div",{className:F.a.wrap,key:sn,style:{width:cn,marginRight:(1+kn)%De===0?0:Ke+Mt,marginBottom:ft}},m.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Gn,"/challenges"),className:F.a.li,onClick:function(dr){dr.preventDefault(),Ft&&Object(K.cb)([Ft]),Nn&&Object(K.S)("/shixuns/".concat(Gn,"/challenges"))}},m.a.createElement("div",{className:F.a.img},m.a.createElement("img",{className:F.a.cover,src:Vn?"".concat(L.a.API_SERVER,"/api/attachments/").concat(Vn):"".concat(L.a.IMG_SERVER,"/").concat(Zn)}),ln.is_jupyter&&m.a.createElement("img",{className:F.a.sign,src:he.a}),ln.is_jupyter_lab&&m.a.createElement("img",{className:F.a.sign,src:Ce.a}),ln.is_unity_3d&&m.a.createElement("img",{className:F.a.sign,src:ce.a})),m.a.createElement("div",{className:F.a.name},m.a.createElement(D.a,{title:In||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},m.a.createElement("span",{className:F.a.e},In||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),m.a.createElement("div",{className:F.a.tags},m.a.createElement(D.a,{placement:"bottom",title:"\u5173\u5361\u6570"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),m.a.createElement("span",null,ln.challenges_count))),!!ln.myshixuns_count&&m.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),m.a.createElement("span",null,ln.myshixuns_count))),m.a.createElement(D.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},m.a.createElement("span",null,m.a.createElement("span",null,ln.level))),m.a.createElement("div",{className:F.a.rate},m.a.createElement(V.a,{allowHalf:!0,disabled:!0,defaultValue:ln.score_info}),m.a.createElement("span",null,"\xA0",ln.score_info?"".concat(ln.score_info,"\u5206"):"5\u5206")))),!Nn&&m.a.createElement("div",{className:F.a.lockWrap},m.a.createElement("img",{src:"".concat(L.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),m.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!nt.length&&m.a.createElement(ye.a,null)))},ue=Ee,se=o("ZJlW"),$=o.n(se),me=o("z4EP"),re=o.n(me),ae=o("+GGh"),we=o.n(ae),le=o("cFMs"),te=o.n(le),Q=function(wt){var bt=wt.className,ke=wt.dataSource,nt=ke===void 0?[]:ke,rt=wt.col,De=rt===void 0?4:rt,Ke=wt.right,Ct=wt.bottom,ft=Ct===void 0?23:Ct,xt=wt.precision,Mt=xt===void 0?0:xt,ct=wt.wrapWidth,Ut=ct===void 0?1200:ct,Ft=wt.trackEventItems,on=wt.loading,cn=Math.floor((Ut-(De-1)*Ke)/De);return m.a.createElement(I.a,{spinning:on},m.a.createElement("div",{className:n()($.a.list,bt)},!!nt.length&&nt.map(function(ln,kn){var In=ln.name,sn=ln.id,Gn=ln.identifier,Nn=ln.featured,Vn=ln.school_name,Zn=ln.image_url,xr=ln.excellent;return m.a.createElement("div",{key:sn,className:$.a.wrap,style:{width:cn,marginRight:(1+kn)%De===0?0:Ke+Mt,marginBottom:ft}},m.a.createElement("a",{target:"_blank",href:"/paths/".concat(Gn),className:$.a.li,onClick:function(un){un.preventDefault(),Ft&&Object(K.cb)([Ft]),Object(K.S)("/paths/".concat(Gn))}},m.a.createElement("div",{className:$.a.img},m.a.createElement("img",{className:$.a.cover,src:"".concat(L.a.IMG_SERVER,"/").concat(Zn)}),Nn===1&&m.a.createElement("img",{className:$.a.sign,src:re.a}),Nn===2&&m.a.createElement("img",{className:$.a.sign,src:""}),Nn===3&&m.a.createElement("img",{className:$.a.sign,src:we.a}),Nn===4&&m.a.createElement("img",{className:$.a.sign,src:""}),Nn===5&&m.a.createElement("img",{className:$.a.sign,src:te.a})),m.a.createElement("div",{className:$.a.name},m.a.createElement(D.a,{title:In},m.a.createElement("span",{className:$.a.e},In))),m.a.createElement(D.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Vn)},m.a.createElement("div",{className:$.a.unit},m.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Vn)),m.a.createElement("div",{className:$.a.tags},m.a.createElement(D.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),m.a.createElement("span",null,ln.stages_count))),m.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),m.a.createElement("span",null,ln.members_count))),xr&&m.a.createElement("div",{className:$.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!nt.length&&m.a.createElement(ye.a,null)))},J=Q,ve=o("iL++"),_e=o.n(ve),Oe=o("xiVL"),Xe=function(wt){var bt=wt.className,ke=wt.dataSource,nt=ke===void 0?[]:ke,rt=wt.col,De=rt===void 0?4:rt,Ke=wt.right,Ct=wt.bottom,ft=Ct===void 0?23:Ct,xt=wt.precision,Mt=xt===void 0?0:xt,ct=wt.wrapWidth,Ut=ct===void 0?1200:ct,Ft=wt.trackEventItems,on=wt.loading,cn=Math.floor((Ut-(De-1)*Ke)/De);return m.a.createElement(I.a,{spinning:on},m.a.createElement("div",{className:n()(_e.a.list,bt)},!!nt.length&&nt.map(function(ln,kn){var In=ln.subject_identifier,sn=ln.id,Gn=ln.identifier,Nn=ln.power,Vn=ln.is_public!=0&&ln.is_public;return m.a.createElement("div",{className:_e.a.wrap,key:sn,style:{width:cn,marginRight:(1+kn)%De===0?0:Ke+Mt,marginBottom:ft}},m.a.createElement("a",{className:_e.a.li,onClick:function(xr){xr.preventDefault()}},m.a.createElement("div",{className:_e.a.top},m.a.createElement(D.a,{title:ln.name},m.a.createElement("div",{className:_e.a.name},ln.name)),m.a.createElement("img",{className:_e.a.img,src:L.a.IMG_SERVER+"/images/"+ln.avatar_url}),m.a.createElement("div",{className:_e.a.text},ln.creator),In&&m.a.createElement("div",{className:_e.a.btns},m.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),m.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Vn&&m.a.createElement("div",{className:_e.a.sign},"\u516C\u5F00")),m.a.createElement("div",{className:_e.a.bottom},ln.visits>0&&m.a.createElement(D.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-liulanyan"}),m.a.createElement("span",null,ln.visits))),ln.course_members_count>0&&m.a.createElement(D.a,{title:"\u6210\u5458",placement:"bottom"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-chengyuan"}),ln.course_members_count)),ln.tasks_count>0&&m.a.createElement(D.a,{title:"\u4F5C\u4E1A",placement:"bottom"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-zuoye"}),ln.tasks_count)),ln.is_end?m.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):m.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),m.a.createElement("div",{className:_e.a.lockWrap},ln.is_accessible?m.a.createElement(m.a.Fragment,null,In&&m.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(In))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),m.a.createElement("div",{onClick:function(xr){Ft&&Object(K.cb)([Ft]),Object(K.S)(ln.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):m.a.createElement(m.a.Fragment,null,m.a.createElement("img",{src:"".concat(L.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),m.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!nt.length&&m.a.createElement(ye.a,null)))},tt=Xe,lt=o("f0W+"),dt=o.n(lt),vt=function(wt){var bt=wt.dataSource,ke=bt===void 0?[]:bt,nt=wt.value,rt=wt.onChange,De=wt.className,Ke=wt.style,Ct=Ke===void 0?{}:Ke,ft=wt.tabBarExtraContent;return m.a.createElement("div",{className:n()(dt.a.tabs,De),style:Ct},m.a.createElement("div",{className:dt.a.tabsWrap},ke.map(function(xt,Mt){return m.a.createElement("div",{onClick:function(){return rt(xt.id)},className:nt===xt.id?dt.a.active:"",key:Mt},xt.name)})),m.a.createElement("div",{className:dt.a.tabBar},ft))},_t=vt,Ye=o("9JIy"),je=o.n(Ye),ht=function(wt){var bt=wt.className,ke=wt.style,nt=ke===void 0?{}:ke,rt=wt.children;return m.a.createElement("div",{className:n()(je.a.table,bt),style:nt},rt)},Bt=ht,Et=o("qVdP"),Pt=o("jsC+"),Ze=o("lUTK"),We=o("BvKs"),Je=o("8WcF"),Ae=o.n(Je),Ue=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],He=function(wt){var bt,ke=wt.sortValue,nt=wt.dropValue,rt=wt.className,De=wt.onSort,Ke=wt.onDrop,Ct=wt.dataSource,ft=Ct===void 0?Ue:Ct;return m.a.createElement("div",{className:n()(Ae.a.orderWrap,rt)},m.a.createElement(Pt.a,{overlay:m.a.createElement(We.a,null,ft.map(function(xt,Mt){return m.a.createElement(We.a.Item,{key:Mt,onClick:function(){return Ke(xt.id)}},xt.name)}))},m.a.createElement("span",{className:Ae.a.orderTextWrap},(bt=ft.find(function(xt){return nt===xt.id}))===null||bt===void 0?void 0:bt.name)),m.a.createElement("span",{className:Ae.a.orderIconWrap},m.a.createElement("span",{className:Ae.a.orderAsc},m.a.createElement("i",{className:ke==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Ae.a.cursorPointer," ").concat(Ae.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Ae.a.cursorPointer),onClick:function(){return De(ke==="asc"?"desc":"asc")}})),m.a.createElement("span",{className:Ae.a.orderDesc},m.a.createElement("i",{className:ke==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Ae.a.cursorPointer," ").concat(Ae.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Ae.a.cursorPointer),onClick:function(){return De(ke==="asc"?"desc":"asc")}}))))},Fe=He,et=o("siWv"),mt=o.n(et),Lt=function(wt){var bt=wt.className,ke=wt.style,nt=wt.children,rt=wt.onClick;return m.a.createElement("div",{onClick:rt,className:n()(mt.a.btn,bt),style:ke},nt)},Xt=Lt},Nmxd:function(k,z){k.exports="data:image/png;base64,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"},NvD2:function(k,z,o){"use strict";o.d(z,"a",function(){return C});var M=o("Kwbf");function m(A,g){var e=new Set;return A.forEach(function(f){g.has(f)||e.add(f)}),e}function O(A){var g=A||{},e=g.disabled,f=g.disableCheckbox,a=g.checkable;return!!(e||f)||a===!1}function b(A,g,e,f){for(var a=new Set(A),l=new Set,n=0;n<=e;n+=1){var i=g.get(n)||new Set;i.forEach(function(d){var s=d.key,u=d.node,w=d.children,E=w===void 0?[]:w;a.has(s)&&!f(u)&&E.filter(function(_){return!f(_.node)}).forEach(function(_){a.add(_.key)})})}for(var r=new Set,c=e;c>=0;c-=1){var h=g.get(c)||new Set;h.forEach(function(d){var s=d.parent,u=d.node;if(f(u)||!d.parent||r.has(d.parent.key))return;if(f(d.parent.node)){r.add(s.key);return}var w=!0,E=!1;(s.children||[]).filter(function(_){return!f(_.node)}).forEach(function(_){var P=_.key,R=a.has(P);w&&!R&&(w=!1),!E&&(R||l.has(P))&&(E=!0)}),w&&a.add(s.key),E&&l.add(s.key),r.add(s.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(m(l,a))}}function y(A,g,e,f,a){for(var l=new Set(A),n=new Set(g),i=0;i<=f;i+=1){var r=e.get(i)||new Set;r.forEach(function(s){var u=s.key,w=s.node,E=s.children,_=E===void 0?[]:E;!l.has(u)&&!n.has(u)&&!a(w)&&_.filter(function(P){return!a(P.node)}).forEach(function(P){l.delete(P.key)})})}n=new Set;for(var c=new Set,h=f;h>=0;h-=1){var d=e.get(h)||new Set;d.forEach(function(s){var u=s.parent,w=s.node;if(a(w)||!s.parent||c.has(s.parent.key))return;if(a(s.parent.node)){c.add(u.key);return}var E=!0,_=!1;(u.children||[]).filter(function(P){return!a(P.node)}).forEach(function(P){var R=P.key,x=l.has(R);E&&!x&&(E=!1),!_&&(x||n.has(R))&&(_=!0)}),E||l.delete(u.key),_&&n.add(u.key),c.add(u.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(m(n,l))}}function C(A,g,e,f){var a=[],l;f?l=f:l=O;var n=new Set(A.filter(function(h){var d=!!e[h];return d||a.push(h),d})),i=new Map,r=0;Object.keys(e).forEach(function(h){var d=e[h],s=d.level,u=i.get(s);u||(u=new Set,i.set(s,u)),u.add(d),r=Math.max(r,s)}),Object(M.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var c;return g===!0?c=b(n,i,r,l):c=y(n,g.halfCheckedKeys,i,r,l),c}},OLES:function(k,z,o){"use strict";var M=o("U8pU"),m=o("VTBJ"),O=o("Ff2n"),b=o("q1tI"),y=o("uciX"),C=o("7ixt"),A=function(n){var i=n.overlay,r=n.prefixCls,c=n.id,h=n.overlayInnerStyle;return b.createElement("div",{className:"".concat(r,"-inner"),id:c,role:"tooltip",style:h},typeof i=="function"?i():i)},g=A,e=function(n,i){var r=n.overlayClassName,c=n.trigger,h=c===void 0?["hover"]:c,d=n.mouseEnterDelay,s=d===void 0?0:d,u=n.mouseLeaveDelay,w=u===void 0?.1:u,E=n.overlayStyle,_=n.prefixCls,P=_===void 0?"rc-tooltip":_,R=n.children,x=n.onVisibleChange,S=n.afterVisibleChange,v=n.transitionName,T=n.animation,U=n.placement,I=U===void 0?"right":U,N=n.align,V=N===void 0?{}:N,H=n.destroyTooltipOnHide,D=H===void 0?!1:H,W=n.defaultVisible,F=n.getTooltipContainer,L=n.overlayInnerStyle,K=Object(O.a)(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ee=Object(b.useRef)(null);Object(b.useImperativeHandle)(i,function(){return ee.current});var he=Object(m.a)({},K);"visible"in n&&(he.popupVisible=n.visible);var fe=function(){var Ee=n.arrowContent,ue=Ee===void 0?null:Ee,se=n.overlay,$=n.id;return[b.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},ue),b.createElement(g,{key:"content",prefixCls:P,id:$,overlay:se,overlayInnerStyle:L})]},Ce=!1,Te=!1;if(typeof D=="boolean")Ce=D;else if(D&&Object(M.a)(D)==="object"){var ce=D.keepParent;Ce=ce===!0,Te=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:r,prefixCls:P,popup:fe,action:h,builtinPlacements:C.a,popupPlacement:I,ref:ee,popupAlign:V,getPopupContainer:F,onPopupVisibleChange:x,afterPopupVisibleChange:S,popupTransitionName:v,popupAnimation:T,defaultPopupVisible:W,destroyPopupOnHide:Ce,autoDestroy:Te,mouseLeaveDelay:w,popupStyle:E,mouseEnterDelay:s},he),R)},f=Object(b.forwardRef)(e),a=z.a=f},OLod:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("K3mO"))})(this,function(M){M.lib.Cipher||function(m){var O=M,b=O.lib,y=b.Base,C=b.WordArray,A=b.BufferedBlockAlgorithm,g=O.enc,e=g.Utf8,f=g.Base64,a=O.algo,l=a.EvpKDF,n=b.Cipher=A.extend({cfg:y.extend(),createEncryptor:function(v,T){return this.create(this._ENC_XFORM_MODE,v,T)},createDecryptor:function(v,T){return this.create(this._DEC_XFORM_MODE,v,T)},init:function(v,T,U){this.cfg=this.cfg.extend(U),this._xformMode=v,this._key=T,this.reset()},reset:function(){A.reset.call(this),this._doReset()},process:function(v){return this._append(v),this._process()},finalize:function(v){v&&this._append(v);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function v(T){return typeof T=="string"?S:P}return function(T){return{encrypt:function(U,I,N){return v(I).encrypt(T,U,I,N)},decrypt:function(U,I,N){return v(I).decrypt(T,U,I,N)}}}}()}),i=b.StreamCipher=n.extend({_doFinalize:function(){var v=this._process(!0);return v},blockSize:1}),r=O.mode={},c=b.BlockCipherMode=y.extend({createEncryptor:function(v,T){return this.Encryptor.create(v,T)},createDecryptor:function(v,T){return this.Decryptor.create(v,T)},init:function(v,T){this._cipher=v,this._iv=T}}),h=r.CBC=function(){var v=c.extend();v.Encryptor=v.extend({processBlock:function(U,I){var N=this._cipher,V=N.blockSize;T.call(this,U,I,V),N.encryptBlock(U,I),this._prevBlock=U.slice(I,I+V)}}),v.Decryptor=v.extend({processBlock:function(U,I){var N=this._cipher,V=N.blockSize,H=U.slice(I,I+V);N.decryptBlock(U,I),T.call(this,U,I,V),this._prevBlock=H}});function T(U,I,N){var V,H=this._iv;H?(V=H,this._iv=m):V=this._prevBlock;for(var D=0;D<N;D++)U[I+D]^=V[D]}return v}(),d=O.pad={},s=d.Pkcs7={pad:function(v,T){for(var U=T*4,I=U-v.sigBytes%U,N=I<<24|I<<16|I<<8|I,V=[],H=0;H<I;H+=4)V.push(N);var D=C.create(V,I);v.concat(D)},unpad:function(v){var T=v.words[v.sigBytes-1>>>2]&255;v.sigBytes-=T}},u=b.BlockCipher=n.extend({cfg:n.cfg.extend({mode:h,padding:s}),reset:function(){var v;n.reset.call(this);var T=this.cfg,U=T.iv,I=T.mode;this._xformMode==this._ENC_XFORM_MODE?v=I.createEncryptor:(v=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,U&&U.words):(this._mode=v.call(I,this,U&&U.words),this._mode.__creator=v)},_doProcessBlock:function(v,T){this._mode.processBlock(v,T)},_doFinalize:function(){var v,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),v=this._process(!0)):(v=this._process(!0),T.unpad(v)),v},blockSize:128/32}),w=b.CipherParams=y.extend({init:function(v){this.mixIn(v)},toString:function(v){return(v||this.formatter).stringify(this)}}),E=O.format={},_=E.OpenSSL={stringify:function(v){var T,U=v.ciphertext,I=v.salt;return I?T=C.create([1398893684,1701076831]).concat(I).concat(U):T=U,T.toString(f)},parse:function(v){var T,U=f.parse(v),I=U.words;return I[0]==1398893684&&I[1]==1701076831&&(T=C.create(I.slice(2,4)),I.splice(0,4),U.sigBytes-=16),w.create({ciphertext:U,salt:T})}},P=b.SerializableCipher=y.extend({cfg:y.extend({format:_}),encrypt:function(v,T,U,I){I=this.cfg.extend(I);var N=v.createEncryptor(U,I),V=N.finalize(T),H=N.cfg;return w.create({ciphertext:V,key:U,iv:H.iv,algorithm:v,mode:H.mode,padding:H.padding,blockSize:v.blockSize,formatter:I.format})},decrypt:function(v,T,U,I){I=this.cfg.extend(I),T=this._parse(T,I.format);var N=v.createDecryptor(U,I).finalize(T.ciphertext);return N},_parse:function(v,T){return typeof v=="string"?T.parse(v,this):v}}),R=O.kdf={},x=R.OpenSSL={execute:function(v,T,U,I){I||(I=C.random(64/8));var N=l.create({keySize:T+U}).compute(v,I),V=C.create(N.words.slice(T),U*4);return N.sigBytes=T*4,w.create({key:N,iv:V,salt:I})}},S=b.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:x}),encrypt:function(v,T,U,I){I=this.cfg.extend(I);var N=I.kdf.execute(U,v.keySize,v.ivSize);I.iv=N.iv;var V=P.encrypt.call(this,v,T,N.key,I);return V.mixIn(N),V},decrypt:function(v,T,U,I){I=this.cfg.extend(I),T=this._parse(T,I.format);var N=I.kdf.execute(U,v.keySize,v.ivSize,T.salt);I.iv=N.iv;var V=P.decrypt.call(this,v,T,N.key,I);return V}})}()})},OZM5:function(k,z,o){"use strict";o.d(z,"b",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"k",function(){return l}),o.d(z,"h",function(){return n}),o.d(z,"i",function(){return i}),o.d(z,"g",function(){return r}),o.d(z,"c",function(){return c}),o.d(z,"d",function(){return h}),o.d(z,"j",function(){return u}),o.d(z,"e",function(){return w}),o.d(z,"f",function(){return E});var M=o("KQm4"),m=o("U8pU"),O=o("Ff2n"),b=o("q1tI"),y=o.n(b),C=o("Kwbf"),A=o("WaYH"),g=.25,e=2;function f(_,P){var R=_.slice(),x=R.indexOf(P);return x>=0&&R.splice(x,1),R}function a(_,P){var R=_.slice();return R.indexOf(P)===-1&&R.push(P),R}function l(_){return _.split("-")}function n(_,P){return"".concat(_,"-").concat(P)}function i(_){return _&&_.type&&_.type.isTreeNode}function r(_,P){var R=[_],x=P[_];function S(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];v.forEach(function(T){var U=T.key,I=T.children;R.push(U),S(I)})}return S(x.children),R}function c(_,P){var R=_.clientY,x=P.selectHandle.getBoundingClientRect(),S=x.top,v=x.bottom,T=x.height,U=Math.max(T*g,e);return R<=S+U?-1:R>=v-U?1:0}function h(_,P){if(!_)return;var R=P.multiple;return R?_.slice():_.length?[_[0]]:_}var d=function(P){return P};function s(_,P){if(!_)return[];var R=P||{},x=R.processProps,S=x===void 0?d:x,v=Array.isArray(_)?_:[_];return v.map(function(T){var U=T.children,I=Object(O.a)(T,["children"]),N=s(U,P);return y.a.createElement(A.a,Object.assign({},S(I)),N)})}function u(_){if(!_)return null;var P;if(Array.isArray(_))P={checkedKeys:_,halfCheckedKeys:void 0};else if(Object(m.a)(_)==="object")P={checkedKeys:_.checked||void 0,halfCheckedKeys:_.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function w(_,P){var R=new Set;function x(S){if(R.has(S))return;var v=P[S];if(!v)return;R.add(S);var T=v.parent,U=v.node;if(U.disabled)return;T&&x(T.key)}return(_||[]).forEach(function(S){x(S)}),Object(M.a)(R)}function E(_){var P={};return Object.keys(_).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(P[R]=_[R])}),P}},Oe0F:function(k,z,o){k.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"}},Ohmc:function(k,z,o){k.exports=o.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(k,z,o){"use strict";var M=o("2qtc"),m=o("kLXV"),O=o("rAM+"),b=o("miYZ"),y=o("tsqr"),C=o("9og8"),A=o("tJVT"),g=o("jrin"),e=o("WmNS"),f=o.n(e),a=o("q1tI"),l=o.n(a),n=o("VrN/"),i=o.n(n),r=o("bdgK"),c=o("p77/"),h=o("Bd2K"),d=o("ELLl"),s=o("19Vz"),u=o("lZu9"),w=o("+NIl"),E=o("kSUc"),_=o("9Bee"),P=function(et){var mt=et.value,Lt=mt===void 0?"":mt,Xt=et.className,rn=et.showTextOnly,wt=et.showLines,bt=et.style,ke=bt===void 0?{}:bt,nt=Object(a.useMemo)(function(){return""},[Lt]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:nt}}))},R=o("0Owb"),x=o("dejd"),S=o("C+DQ"),v=o("1vsH"),T=o("m3rI"),U=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function I(et){var mt=et.onActionCallback,Lt=et.title,Xt=et.icon,rn=et.actionName,wt=et.className,bt=wt===void 0?"":wt,ke=et.children;function nt(){mt(rn)}return l.a.createElement("a",{title:Lt,className:bt,onClick:nt},l.a.createElement("i",{className:"md-iconfont ".concat(Xt)}),ke)}var N=function(et){var mt=et.watch,Lt=et.showNullButton,Xt=et.onActionCallback,rn=et.fullScreen,wt=et.insertTemp,bt=et.hidetoolBar,ke=et.uuid,nt=et.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(v.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(v.F)("_educoder_session"),"&key=").concat(ke,"&api=").concat(encodeURIComponent(T.a.PROXY_SERVER)));var rt=[].concat(U,[{title:"".concat(mt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(mt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},!bt&&rt.map(function(De,Ke){return l.a.createElement("li",{key:Ke},De.actionName?l.a.createElement(I,Object(R.a)({},De,{onActionCallback:Xt})):l.a.createElement("span",{className:"v-line"}))}),Lt?l.a.createElement("li",null,l.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Xt},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,wt&&l.a.createElement("li",null,l.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(wt),onActionCallback:Xt},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(I,{icon:"".concat(rn?"icon-shrink":"icon-enlarge"),title:rn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Xt})))},V=o("M8RZ"),H=o("+L6B"),D=o("2/Rp"),W=o("y8nQ"),F=o("Vl3Y"),L=o("5NDa"),K=o("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},he=function(et){var mt=et.callback,Lt=et.onCancel;function Xt(rn){mt(rn)}return l.a.createElement(F.a,Object(R.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Xt}),l.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(K.a,null)),l.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(K.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(D.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))},fe=o("7ahc"),Ce=o("HmJG"),Te=o("BjJ7"),ce=F.a.useForm,ye={width:280,marginRight:10},Ee={labelCol:{span:5},wrapperCol:{span:19}},ue=function(et){var mt=et.callback,Lt=et.onCancel,Xt=ce(),rn=Object(A.a)(Xt,1),wt=rn[0];function bt(rt){mt(rt)}function ke(rt,De){if(rt.status===-1){y.b.error(rt.message);return}wt.setFieldsValue({src:"/api/attachments/".concat(rt.id),type:De.type})}function nt(rt){var De=rt.target.files[0];$(De,ke)}return l.a.createElement(F.a,Object(R.a)({form:wt},Ee,{className:"upload-image-panel",onFinish:bt}),l.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},l.a.createElement(K.a,{style:ye})),l.a.createElement(se,{onFileChange:nt}))),l.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},l.a.createElement(K.a,{style:{width:264}})),l.a.createElement(F.a.Item,{style:{textAlign:"right"}},l.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(D.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))};function se(et){var mt=et.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:mt}))}function $(et,mt){if(!et)throw new String("\u6CA1\u6709\u6587\u4EF6");var Lt=new FormData;Lt.append("editormd-image-file",et),Lt.append("file_param_name","editormd-image-file"),Lt.append("byxhr","true");var Xt=new window.XMLHttpRequest;Xt.withCredentials=!0,Xt.addEventListener("load",function(rn){mt(JSON.parse(rn.target.responseText),et)},!1),Xt.addEventListener("error",function(rn){console.error(rn)},!1),Xt.open("POST","".concat(Te.a,"/api/attachments.json")),Xt.send(Lt)}var me=o("giR+"),re=o("fyUT"),ae=o("7Kak"),we=o("9yH6"),le=we.a.Group,te={margin:"0 8px"},Q=function(et){var mt=et.callback,Lt=et.onCancel;function Xt(rn){mt(rn)}return l.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Xt},l.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},l.a.createElement("span",{style:te},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:te},"\u884C\u6570"),l.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement(re.a,null)),l.a.createElement("span",{style:te},"\u5217\u6570"),l.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement(re.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},l.a.createElement("span",{style:te},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(F.a.Item,{name:"align"},l.a.createElement(le,null,l.a.createElement(we.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(we.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(we.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(we.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(D.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))},J=o("ErOA"),ve=o("7Cbv"),_e="link",Oe="upload-image",Xe="code-block",tt="add-table",lt="------------",dt={default:lt,left:":".concat(lt),center:":".concat(lt,":"),right:"".concat(lt,":")},vt=o("9VGf"),_t,Ye;function je(){}var ht=0,Bt=1e4,Et="\u2581",Pt=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ze(et){return/^\d+$/.test(et)?"".concat(et,"px"):et}var We=navigator.platform.toUpperCase().indexOf("MAC")>=0,Je=We?"Cmd":"Ctrl",Ae=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Ue=(_t={},Object(g.a)(_t,Je+"-B","bold"),Object(g.a)(_t,Je+"-I","italic"),_t),He=(Ye={},Object(g.a)(Ye,_e,"\u6DFB\u52A0\u94FE\u63A5"),Object(g.a)(Ye,Xe,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(g.a)(Ye,Oe,"\u6DFB\u52A0\u6587\u4EF6"),Object(g.a)(Ye,tt,"\u6DFB\u52A0\u8868\u683C"),Ye),Fe=z.a=function(et){var mt=et.defaultValue,Lt=mt===void 0?"":mt,Xt=et.onChange,rn=et.width,wt=rn===void 0?"100%":rn,bt=et.height,ke=bt===void 0?400:bt,nt=et.miniToolbar,rt=nt===void 0?!1:nt,De=et.isFocus,Ke=De===void 0?!1:De,Ct=et.watch,ft=et.insertTemp,xt=et.mode,Mt=xt===void 0?"markdown":xt,ct=et.id,Ut=ct===void 0?"markdown-editor-id":ct,Ft=et.showResizeBar,on=Ft===void 0?!1:Ft,cn=et.noStorage,ln=cn===void 0?!1:cn,kn=et.showNullButton,In=kn===void 0?!1:kn,sn=et.hidetoolBar,Gn=sn===void 0?!1:sn,Nn=et.fullScreen,Vn=Nn===void 0?!1:Nn,Zn=et.onBlur,xr=et.onCMBeforeChange,dr=et.onFullScreen,un=et.className,$t=un===void 0?"":un,An=et.disablePaste,Ur=An===void 0?!1:An,Ar=et.placeholder,Cr=Ar===void 0?"":Ar,gr=et.values,pe=gr===void 0?"":gr,X=Object(a.useState)(null),q=Object(A.a)(X,2),oe=q[0],Re=q[1],de=Object(a.useState)(Lt),ot=Object(A.a)(de,2),Qt=ot[0],Ln=ot[1],Jn=Object(a.useState)(Ct),Zt=Object(A.a)(Jn,2),En=Zt[0],fn=Zt[1],Br=Object(a.useState)(Vn),ra=Object(A.a)(Br,2),oa=ra[0],rr=ra[1],Ba=Object(a.useState)(""),Ea=Object(A.a)(Ba,2),ca=Ea[0],Ka=Ea[1],Ta=Object(a.useState)(0),Ja=Object(A.a)(Ta,2),Ua=Ja[0],li=Ja[1],oi=Object(a.useState)(ke),fa=Object(A.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(a.useState)(!1),st=Object(A.a)(xe,2),Rt=st[0],Ot=st[1],Ht=Object(a.useRef)(Object(ve.a)()),Nt=Object(a.useRef)(!1),Vt=Object(a.useRef)(),nn=Object(a.useRef)(),xn=Object(a.useRef)(),_n=Object(a.useRef)(),Bn=Object(a.useRef)(),Dn=function(){var en=Object(C.a)(f.a.mark(function Tn(){var bn,Un;return f.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ht.current}});case 2:Un=sr.sent,Un!=null&&(bn=Un.attachments)!==null&&bn!==void 0&&bn.length&&(console.log("cm:",oe,nn),Un.attachments.map(function(tr){tr.content_type.indexOf("image")>-1?oe.replaceSelection("![,](/api/attachments/".concat(tr.id,"?type=").concat(tr.content_type,")")):tr.content_type.indexOf("video")>-1?oe.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):tr.content_type.indexOf("pdf")>-1?oe.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(tr.id,"?type=").concat(tr.content_type,'&disposition=inline" target="_blank">').concat(tr.name,"</a>")):oe.replaceSelection("[".concat(tr.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(tr.id,"?type=").concat(tr.content_type,")"))}));case 4:case"end":return sr.stop()}},Tn)}));return function(){return en.apply(this,arguments)}}();Object(a.useEffect)(function(){Ln(pe),oe==null||oe.setValue(pe)},[pe]),Object(a.useEffect)(function(){dr==null||dr(oa)},[oa]),Object(a.useEffect)(function(){if(nn.current){var en=i.a.fromTextArea(nn.current,{mode:Mt,lineNumbers:!rt,lineWrapping:!0,value:Lt,autoCloseTags:!0,autoCloseBrackets:!0});Ke&&en.focus();function Tn(bn,Un){if(Ur){Un.preventDefault();return}var Wn=Un.clipboardData;if(Wn){var sr=Wn.types.toString(),tr=Wn.items;if(sr==="Files"||Wn.types.indexOf("Files")>-1){if(Un.preventDefault(),Mt=="stex")return;try{var Rr,Ir=tr[1];((Rr=tr[0])===null||Rr===void 0?void 0:Rr.kind)==="file"&&(Ir=tr[0]);var $n=Ir.getAsFile(),Dr=$n.name.split(".").pop();$($n,function(vr){if(vr.id){var zr,Lr,$r;($n==null||((zr=$n.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?en.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):($n==null||((Lr=$n.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?en.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,'"></video>')):($n==null||(($r=$n.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?en.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat($n.type,'&disposition=inline" target="_blank">').concat($n.name,"</a>")):Ae.includes(Dr)?en.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,'?type=office&disposition=inline" target="_blank">').concat($n.name,"</a>")):en.replaceSelection("[".concat($n.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})}catch(vr){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return en.on("paste",Tn),en.on("dragleave",function(bn,Un){xn.current.classList.remove("mouse-hover-md")}),en.on("dragover",function(bn,Un){xn.current.classList.add("mouse-hover-md")}),en.on("drop",function(bn,Un){xn.current.classList.add("mouse-hover-md");var Wn;if(Wn=Un.dataTransfer.files,Wn.length>0){Un.preventDefault(),Un.stopPropagation();for(var sr=function(Ir){var $n=Wn[Ir],Dr=$n.name.split(".").pop();$($n,function(vr){if(vr.id){var zr,Lr,$r;($n==null||((zr=$n.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?en.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):($n==null||((Lr=$n.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?en.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,'"></video>')):($n==null||(($r=$n.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?en.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat($n.type,'&disposition=inline" target="_blank">').concat($n.name,"</a>")):Ae.includes(Dr)?en.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,'?type=office&disposition=inline" target="_blank">').concat($n.name,"</a>")):en.replaceSelection("[".concat($n.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})},tr=0;tr<Wn.length;tr++)sr(tr)}}),Re(en),function(){en.off("paste",Tn)}}},[]);var an=Object(a.useCallback)(function(){if(xn.current)try{}catch(en){console.log(en,"---- to set md editor body height")}},[ma,xn,oa]);Object(a.useEffect)(function(){function en(){var bn=new r.default(function(Un){var Wn=Object(O.a)(Un),sr;try{for(Wn.s();!(sr=Wn.n()).done;){var tr=sr.value;(tr.target.offsetHeight>0||tr.target.offsetWidth>0)&&(an(),oe.setSize("100%","100%"),oe.refresh())}}catch(Rr){Wn.e(Rr)}finally{Wn.f()}});return bn.observe(nn.current.parentElement),bn}if(oe){var Tn=en();return function(){Tn.unobserve(nn.current.parentElement)}}},[oe,an]),Object(a.useEffect)(function(){if(oe){for(var en=[],Tn=function(){var tr=Un[bn];Wn=Object(A.a)(tr,2);var Rr=Wn[0],Ir=Wn[1],$n=Object(g.a)({},Rr,function(){Mn(Ir)});en.push($n),oe.addKeyMap($n)},bn=0,Un=Object.entries(Ue);bn<Un.length;bn++){var Wn;Tn()}return Vt.current=setInterval(function(){Nt.current&&Dn()},4e3),function(){clearInterval(Vt.current);var sr=Object(O.a)(en),tr;try{for(sr.s();!(tr=sr.n()).done;){var Rr=tr.value;oe.removeKeyMap(Rr)}}catch(Ir){sr.e(Ir)}finally{sr.f()}}}},[oe]),Object(a.useEffect)(function(){Vn!==oa&&rr(Vn)},[Vn]),Object(vt.a)(function(){if(!ln&&Ua>0){var en=new Date().getTime(),Tn=window.sessionStorage.getItem(Ut);en>=Ua+Bt&&(!Tn||Tn!==Qt)&&(window.sessionStorage.setItem(Ut,Qt),Ot(!0))}},Bt),Object(a.useEffect)(function(){fn(Ct)},[oe,Ct]),Object(a.useEffect)(function(){oe&&(Ke&&oe.focus())},[oe,Ke]),Object(a.useEffect)(function(){if(En&&oe){var en=oe.getScrollerElement();function Tn(bn){var Un=bn.target;if(Bn.current){var Wn=Un.scrollTop/Un.scrollHeight;Bn.current.scrollTop=Bn.current.scrollHeight*Wn}}return en.addEventListener("scroll",Tn),function(){en.removeEventListener("scroll",Tn)}}},[oe,En]),Object(a.useEffect)(function(){if(oe&&xr){function en(Tn,bn){xr(Tn,bn)}return oe.on("beforeChange",en),function(){oe.off("beforeChange",en)}}},[oe,xr]),Object(a.useEffect)(function(){if(oe&&Zn){function en(){Zn(oe.getValue())}return oe.on("blur",en),function(){oe.off("blur",en)}}},[oe,Zn]),Object(a.useEffect)(function(){if(oe){function en(Tn){var bn=Tn.getValue();Ln(bn),li(new Date().getTime()),Tn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Xt&&Xt(bn)}return oe.on("change",en),function(){oe.off("change",en)}}},[oe,Xt]),Object(a.useEffect)(function(){oe&&(Lt==null?(oe.setValue(""),Ln("")):Lt!==oe.getValue()&&(oe.setValue(Lt),Ln(Lt),oe.setCursor(oe.lineCount(),0)))},[oe,Lt]);var Mn=Object(a.useCallback)(function(en){var Tn=oe.getCursor(),bn=oe.getSelection(),Un=bn.split(`
`);switch(en){case"bold":return oe.replaceSelection("**"+bn+"**"),bn===""&&oe.setCursor(Tn.line,Tn.ch+2),oe.focus();case"italic":return oe.replaceSelection("*"+bn+"*"),bn===""&&oe.setCursor(Tn.line,Tn.ch+1),oe.focus();case"code":return oe.replaceSelection("`"+bn+"`"),bn===""&&oe.setCursor(Tn.line,Tn.ch+1),oe.focus();case"inline-latex":return oe.replaceSelection("`$$"+bn+"$$`"),bn===""&&oe.setCursor(Tn.line,Tn.ch+3),oe.focus();case"latex":return oe.replaceSelection("```latex\n"+bn+"\n```"),oe.setCursor(Tn.line+1,bn.length+1),oe.focus();case"line-break":return oe.replaceSelection(`<br/>
`),oe.focus();case"list-ul":return bn===""?oe.replaceSelection("- "+bn):oe.replaceSelection(Un.map(function(Wn){return Wn===""?"":"- ".concat(Wn)}).join(`
`)),oe.focus();case"list-ol":return bn===""?oe.replaceSelection("1. "+bn):oe.replaceSelection(Un.map(function(Wn,sr){return Wn===""?"":"".concat(sr+1,". ").concat(Wn)}).join(`
`)),oe.focus();case"add-null-ch":return bn===""&&oe.setCursor(Tn.line,Tn.ch+1),oe.replaceSelection(Et),oe.focus();case"inster-template-1":return bn===""&&oe.setCursor(Tn.line,Tn.ch),oe.replaceSelection(Pt),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return fn(!En),oe.focus();case"trigger-full-screen":return rr(!oa),oe.focus();case _e:Ka(_e);return;case Xe:Ka(Xe);return;case Oe:Ka(Oe);return;case tt:Ka(tt);return;default:throw new Error}},[oe,En,oa]),yn=Object(a.useCallback)(function(en){Ka("");switch(ca){case _e:var Tn=en.title,bn=en.link;return oe.replaceSelection("[".concat(Tn,"](").concat(bn,")")),oe.focus();case Xe:var Un=en.language,Wn=en.content;return oe.replaceSelection(["```"+Un,Wn,"```"].join(`
`)),oe.focus();case Oe:var sr=en.src,tr=en.alt;return tr?oe.replaceSelection("![ ".concat(tr," ]( ").concat(sr,' "').concat(tr,'" )')):oe.replaceSelection("![,](".concat(sr,")")),oe.focus();case tt:for(var Rr=en.row,Ir=en.col,$n=en.align,Dr=`
`,vr=0;vr<Rr;vr++){for(var zr=[],Lr=[],$r=0;$r<Ir;$r++)vr===1&&Lr.push(dt[$n]),zr.push(" ");vr===1&&(Dr+="| ".concat(Lr.join(" | "),` |
`)),Dr+="| ".concat(zr.join(Ir===1?"":" | "),` |
`)}return oe.replaceSelection(Dr+`
`),oe.focus();default:throw new Error}},[oe,ca]),Fn=Object(a.useMemo)(function(){switch(ca){case _e:return l.a.createElement(he,{callback:yn,onCancel:Pn});case Xe:return l.a.createElement(fe.b,{callback:yn,onCancel:Pn});case Oe:return l.a.createElement(ue,{callback:yn,onCancel:Pn});case tt:return l.a.createElement(Q,{callback:yn,onCancel:Pn});default:return null}},[ca]);function Pn(){Ka("")}Object(a.useEffect)(function(){if(_n.current){var en=_n.current,Tn=!1,bn=0;function Un(tr){Tn=!0,bn=tr.pageY}function Wn(){Tn=!1}function sr(tr){if(Tn){var Rr=tr.pageY-bn;Rr<0&&(Rr=0),Rr>300&&(Rr=300);var Ir=ke+Rr+"px";la(Ir)}}return en.addEventListener("mousedown",Un),document.addEventListener("mousemove",sr),document.addEventListener("mouseup",Wn),function(){en.removeEventListener("mousedown",Un),document.removeEventListener("mousemove",sr),document.removeEventListener("mouseup",Wn)}}},[oe,_n]),Object(a.useEffect)(function(){la(ke)},[ke]);var qn=Ze(wt),pr=Ze(ma),Fr={width:qn,height:pr},wn=Object(a.useMemo)(function(){if(Ua){var en=new Date(Ua),Tn=en.getHours(),bn=en.getMinutes(),Un=en.getSeconds();return Tn=Tn<10?"0"+Tn:Tn,bn=bn<10?"0"+bn:bn,Un=Un<10?"0"+Un:Un,"".concat(Tn,":").concat(bn,":").concat(Un)}return 0},[Ua]);function Yt(){window.sessionStorage.removeItem(Ut),Ot(!1),li(0)}function mn(){Ot(!1),li(0),oe.setValue(window.sessionStorage.getItem(Ut))}function Rn(en,Tn){var bn=oe.getValue();bn=bn.replace(en,Tn),Ln(bn),oe==null||oe.setValue(bn)}return l.a.createElement(a.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:xn},l.a.createElement("div",{className:"markdown-editor-container ".concat($t," ").concat(En?"on-preview":""," ").concat(rt?"mini":""," ").concat(oa?"full-screen":""),style:Fr},l.a.createElement(N,{insertTemp:ft,watch:En,fullScreen:oa,showNullButton:In,onActionCallback:Mn,hidetoolBar:Gn,uuid:Ht.current,setOpenPhones:function(){Nt.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:nn,placeholder:Cr})),En?l.a.createElement("div",{ref:Bn,className:"preview-container"},Mt==="stex"&&l.a.createElement(P,{value:Qt}),Mt!=="stex"&&l.a.createElement(_.a,{edit:!0,value:Qt,replaces:Rn})):null))),on?l.a.createElement("a",{ref:_n,className:"editor-resize"}):null,l.a.createElement(V.a,null,He[ca]?l.a.createElement(m.a,{centered:!0,title:He[ca],visible:!0,onCancel:Pn,footer:null,className:"markdown-popup-form"},Fn):null))}},P5Jw:function(k,z,o){"use strict";var M=o("rHrb"),m=M.CopyToClipboard;m.CopyToClipboard=m,k.exports=m},PVpz:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.StreamCipher,y=m.algo,C=[],A=[],g=[],e=y.RabbitLegacy=b.extend({_doReset:function(){var a=this._key.words,l=this.cfg.iv,n=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],i=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var r=0;r<4;r++)f.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(l){var c=l.words,h=c[0],d=c[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,u=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|u&4294901760,E=u<<16|s&65535;i[0]^=s,i[1]^=w,i[2]^=u,i[3]^=E,i[4]^=s,i[5]^=w,i[6]^=u,i[7]^=E;for(var r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(a,l){var n=this._X;f.call(this),C[0]=n[0]^n[5]>>>16^n[3]<<16,C[1]=n[2]^n[7]>>>16^n[5]<<16,C[2]=n[4]^n[1]>>>16^n[7]<<16,C[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)C[i]=(C[i]<<8|C[i]>>>24)&16711935|(C[i]<<24|C[i]>>>8)&4278255360,a[l+i]^=C[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,l=this._C,n=0;n<8;n++)A[n]=l[n];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<A[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<A[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<A[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<A[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<A[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<A[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<A[6]>>>0?1:0)|0,this._b=l[7]>>>0<A[7]>>>0?1:0;for(var n=0;n<8;n++){var i=a[n]+l[n],r=i&65535,c=i>>>16,h=((r*r>>>17)+r*c>>>15)+c*c,d=((i&4294901760)*i|0)+((i&65535)*i|0);g[n]=h^d}a[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,a[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,a[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,a[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,a[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,a[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,a[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,a[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}m.RabbitLegacy=b._createHelper(e)}(),M.RabbitLegacy})},QNag:function(k,z,o){"use strict";var M=o("2qtc"),m=o("kLXV"),O=o("+L6B"),b=o("2/Rp"),y=o("9og8"),C=o("y8nQ"),A=o("Vl3Y"),g=o("tJVT"),e=o("PpiC"),f=o("5NDa"),a=o("5rEg"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),r=o.n(i),c=o("9kvl"),h=o("JFl9"),d=o.n(h),s=a.a.TextArea,u=function(E){var _=E.shixunsDetail,P=E.globalSetting,R=E.loading,x=E.dispatch,S=E.onFinish,v=S===void 0?function(){}:S,T=Object(e.a)(E,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),U=A.a.useForm(),I=Object(g.a)(U,1),N=I[0],V=function(){var D=Object(y.a)(n.a.mark(function W(F){var L,K;return n.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,x({type:"shixunsDetail/getCustomScript",payload:{id:(L=_.actionTabs.params)===null||L===void 0?void 0:L.id,compile:F.execute,excutive:F.compile}});case 2:K=he.sent,H(),K&&v(K==null?void 0:K.shixun_script);case 5:case"end":return he.stop()}},W)}));return function(F){return D.apply(this,arguments)}}(),H=function(){x({type:"shixunsDetail/setActionTabs",payload:{}})};return r.a.createElement(m.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:_.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:H},r.a.createElement(A.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:V},r.a.createElement(A.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},r.a.createElement(s,{rows:4})),r.a.createElement(A.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},r.a.createElement(s,{rows:4})),r.a.createElement("div",{className:d.a.footerWrap},r.a.createElement(A.a.Item,null,r.a.createElement(b.a,{className:"mr5",size:"large",onClick:H},"\u53D6\u6D88"),r.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:R.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};z.a=Object(c.a)(function(w){var E=w.shixunsDetail,_=w.loading,P=w.globalSetting;return{shixunsDetail:E,globalSetting:P,loading:_}})(u)},Qvpy:function(k,z,o){k.exports={title:"title___39Oep",content:"content___Xl7wK",add:"add___1luKB",colorBlue:"colorBlue___c0Swt",radio:"radio___OK4CQ"}},RC3E:function(k,z,o){k.exports={wrap:"wrap___2zh4E",title:"title___Os-Oa",path:"path___eUXXC",colorBlue:"colorBlue___2IORo"}},RMFE:function(k,z){k.exports="data:image/png;base64,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"},RotF:function(k,z,o){k.exports=o("LSTS")},RxwV:function(k,z,o){"use strict";var M=o("q1tI"),m=o("uciX"),O=o("2W6z"),b=o.n(O),y=o("4IlW"),C=o("uK0f"),A=o.n(C);function g(ye,Ee){if(ye===Ee)return!0;if(!ye||!Ee)return!1;var ue=ye.length;if(Ee.length!==ue)return!1;for(var se=0;se<ue;se++)if(ye[se]!==Ee[se])return!1;return!0}function e(ye){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(ue){return typeof ue}:e=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},e(ye)}function f(ye,Ee){if(!(ye instanceof Ee))throw new TypeError("Cannot call a class as a function")}function a(ye,Ee){for(var ue=0;ue<Ee.length;ue++){var se=Ee[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(ye,se.key,se)}}function l(ye,Ee,ue){return Ee&&a(ye.prototype,Ee),ue&&a(ye,ue),ye}function n(ye,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function");ye.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:ye,writable:!0,configurable:!0}}),Ee&&i(ye,Ee)}function i(ye,Ee){return i=Object.setPrototypeOf||function(se,$){return se.__proto__=$,se},i(ye,Ee)}function r(ye){var Ee=d();return function(){var ue=s(ye),se;if(Ee){var $=s(this).constructor;se=Reflect.construct(ue,arguments,$)}else se=ue.apply(this,arguments);return c(this,se)}}function c(ye,Ee){return Ee&&(e(Ee)==="object"||typeof Ee=="function")?Ee:h(ye)}function h(ye){if(ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye}function d(){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(ye){return!1}}function s(ye){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},s(ye)}var u=function(){var ye=function(Ee){n(se,Ee);var ue=r(se);function se(){var $;return f(this,se),$=ue.apply(this,arguments),$.menuItems={},$.saveMenuItem=function(me){return function(re){$.menuItems[me]=re}},$}return l(se,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(me){!me.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(me){var re=this.props,ae=re.fieldNames,we=re.defaultFieldNames;return ae[me]||we[me]}},{key:"getOption",value:function(me,re){var ae=this.props,we=ae.prefixCls,le=ae.expandTrigger,te=ae.expandIcon,Q=ae.loadingIcon,J=this.props.onSelect.bind(this,me,re),ve=this.props.onItemDoubleClick.bind(this,me,re),_e={onClick:J,onDoubleClick:ve},Oe="".concat(we,"-menu-item"),Xe=null,tt=me[this.getFieldName("children")]&&me[this.getFieldName("children")].length>0;(tt||me.isLeaf===!1)&&(Oe+=" ".concat(we,"-menu-item-expand"),me.loading||(Xe=M.createElement("span",{className:"".concat(we,"-menu-item-expand-icon")},te))),le==="hover"&&(tt||me.isLeaf===!1)&&(_e={onMouseEnter:this.delayOnSelect.bind(this,J),onMouseLeave:this.delayOnSelect.bind(this),onClick:J}),this.isActiveOption(me,re)&&(Oe+=" ".concat(we,"-menu-item-active"),_e.ref=this.saveMenuItem(re)),me.disabled&&(Oe+=" ".concat(we,"-menu-item-disabled"));var lt=null;me.loading&&(Oe+=" ".concat(we,"-menu-item-loading"),lt=Q||null);var dt="";return"title"in me?dt=me.title:typeof me[this.getFieldName("label")]=="string"&&(dt=me[this.getFieldName("label")]),M.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:Oe,title:dt},_e,{role:"menuitem",onMouseDown:function(_t){return _t.preventDefault()}}),me[this.getFieldName("label")],Xe,lt)}},{key:"getActiveOptions",value:function(me){var re=this,ae=this.props.options,we=me||this.props.activeValue;return A()(ae,function(le,te){return le[re.getFieldName("value")]===we[te]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ae=this.getActiveOptions().map(function(we){return we[me.getFieldName("children")]}).filter(function(we){return!!we});return ae.unshift(re),ae}},{key:"delayOnSelect",value:function(me){for(var re=this,ae=arguments.length,we=new Array(ae>1?ae-1:0),le=1;le<ae;le++)we[le-1]=arguments[le];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof me=="function"&&(this.delayTimer=window.setTimeout(function(){me(we),re.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var me=this.getShowOptions().length,re=0;re<me;re++){var ae=this.menuItems[re];ae&&ae.parentElement&&(ae.parentElement.scrollTop=ae.offsetTop)}}},{key:"isActiveOption",value:function(me,re){var ae=this.props.activeValue,we=ae===void 0?[]:ae;return we[re]===me[this.getFieldName("value")]}},{key:"render",value:function(){var me=this,re=this.props,ae=re.prefixCls,we=re.dropdownMenuColumnStyle;return M.createElement("div",null,this.getShowOptions().map(function(le,te){return M.createElement("ul",{className:"".concat(ae,"-menu"),key:te,style:we},le.map(function(Q){return me.getOption(Q,te)}))}))}}]),se}(M.Component);return ye.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},ye}(),w=u,E={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},_=E;function P(ye){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(ue){return typeof ue}:P=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},P(ye)}function R(ye,Ee){if(ye==null)return{};var ue=x(ye,Ee),se,$;if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(ye);for($=0;$<me.length;$++){if(se=me[$],Ee.indexOf(se)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ye,se))continue;ue[se]=ye[se]}}return ue}function x(ye,Ee){if(ye==null)return{};var ue={},se=Object.keys(ye),$,me;for(me=0;me<se.length;me++){if($=se[me],Ee.indexOf($)>=0)continue;ue[$]=ye[$]}return ue}function S(ye){return I(ye)||U(ye)||T(ye)||v()}function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(ye,Ee){if(!ye)return;if(typeof ye=="string")return N(ye,Ee);var ue=Object.prototype.toString.call(ye).slice(8,-1);if(ue==="Object"&&ye.constructor&&(ue=ye.constructor.name),ue==="Map"||ue==="Set")return Array.from(ye);if(ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return N(ye,Ee)}function U(ye){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ye))return Array.from(ye)}function I(ye){if(Array.isArray(ye))return N(ye)}function N(ye,Ee){(Ee==null||Ee>ye.length)&&(Ee=ye.length);for(var ue=0,se=new Array(Ee);ue<Ee;ue++)se[ue]=ye[ue];return se}function V(ye,Ee){if(!(ye instanceof Ee))throw new TypeError("Cannot call a class as a function")}function H(ye,Ee){for(var ue=0;ue<Ee.length;ue++){var se=Ee[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(ye,se.key,se)}}function D(ye,Ee,ue){return Ee&&H(ye.prototype,Ee),ue&&H(ye,ue),ye}function W(ye,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function");ye.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:ye,writable:!0,configurable:!0}}),Ee&&F(ye,Ee)}function F(ye,Ee){return F=Object.setPrototypeOf||function(se,$){return se.__proto__=$,se},F(ye,Ee)}function L(ye){var Ee=he();return function(){var ue=fe(ye),se;if(Ee){var $=fe(this).constructor;se=Reflect.construct(ue,arguments,$)}else se=ue.apply(this,arguments);return K(this,se)}}function K(ye,Ee){return Ee&&(P(Ee)==="object"||typeof Ee=="function")?Ee:ee(ye)}function ee(ye){if(ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye}function he(){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(ye){return!1}}function fe(ye){return fe=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},fe(ye)}var Ce=function(){var ye=function(Ee){W(se,Ee);var ue=L(se);function se($){var me;V(this,se),me=ue.call(this,$),me.setPopupVisible=function(ae){var we=me.state.value;"popupVisible"in me.props||me.setState({popupVisible:ae}),ae&&!me.state.popupVisible&&me.setState({activeValue:we}),me.props.onPopupVisibleChange(ae)},me.handleChange=function(ae,we,le){var te=we.visible;(le.type!=="keydown"||le.keyCode===y.a.ENTER)&&(me.props.onChange(ae.map(function(Q){return Q[me.getFieldName("value")]}),ae),me.setPopupVisible(te))},me.handlePopupVisibleChange=function(ae){me.setPopupVisible(ae)},me.handleMenuSelect=function(ae,we,le){var te=me.trigger.getRootDomNode();te&&te.focus&&te.focus();var Q=me.props,J=Q.changeOnSelect,ve=Q.loadData,_e=Q.expandTrigger;if(!ae||ae.disabled)return;var Oe=me.state.activeValue;Oe=Oe.slice(0,we+1),Oe[we]=ae[me.getFieldName("value")];var Xe=me.getActiveOptions(Oe);if(ae.isLeaf===!1&&!ae[me.getFieldName("children")]&&ve){J&&me.handleChange(Xe,{visible:!0},le),me.setState({activeValue:Oe}),ve(Xe);return}var tt={};!ae[me.getFieldName("children")]||!ae[me.getFieldName("children")].length?(me.handleChange(Xe,{visible:!1},le),tt.value=Oe):J&&(le.type==="click"||le.type==="keydown")&&(_e==="hover"?me.handleChange(Xe,{visible:!1},le):me.handleChange(Xe,{visible:!0},le),tt.value=Oe),tt.activeValue=Oe,("value"in me.props||le.type==="keydown"&&le.keyCode!==y.a.ENTER)&&delete tt.value,me.setState(tt)},me.handleItemDoubleClick=function(){var ae=me.props.changeOnSelect;ae&&me.setPopupVisible(!1)},me.handleKeyDown=function(ae){var we=me.props.children;if(we&&we.props.onKeyDown){we.props.onKeyDown(ae);return}var le=S(me.state.activeValue),te=le.length-1<0?0:le.length-1,Q=me.getCurrentLevelOptions(),J=Q.map(function(Xe){return Xe[me.getFieldName("value")]}).indexOf(le[te]);if(ae.keyCode!==y.a.DOWN&&ae.keyCode!==y.a.UP&&ae.keyCode!==y.a.LEFT&&ae.keyCode!==y.a.RIGHT&&ae.keyCode!==y.a.ENTER&&ae.keyCode!==y.a.SPACE&&ae.keyCode!==y.a.BACKSPACE&&ae.keyCode!==y.a.ESC&&ae.keyCode!==y.a.TAB)return;if(!me.state.popupVisible&&ae.keyCode!==y.a.BACKSPACE&&ae.keyCode!==y.a.LEFT&&ae.keyCode!==y.a.RIGHT&&ae.keyCode!==y.a.ESC&&ae.keyCode!==y.a.TAB){me.setPopupVisible(!0);return}if(ae.keyCode===y.a.DOWN||ae.keyCode===y.a.UP){ae.preventDefault();var ve=J;ve!==-1?ae.keyCode===y.a.DOWN?(ve+=1,ve=ve>=Q.length?0:ve):(ve-=1,ve=ve<0?Q.length-1:ve):ve=0,le[te]=Q[ve][me.getFieldName("value")]}else if(ae.keyCode===y.a.LEFT||ae.keyCode===y.a.BACKSPACE)ae.preventDefault(),le.splice(le.length-1,1);else if(ae.keyCode===y.a.RIGHT)ae.preventDefault(),Q[J]&&Q[J][me.getFieldName("children")]&&le.push(Q[J][me.getFieldName("children")][0][me.getFieldName("value")]);else if(ae.keyCode===y.a.ESC||ae.keyCode===y.a.TAB){me.setPopupVisible(!1);return}(!le||le.length===0)&&me.setPopupVisible(!1);var _e=me.getActiveOptions(le),Oe=_e[_e.length-1];me.handleMenuSelect(Oe,_e.length-1,ae),me.props.onKeyDown&&me.props.onKeyDown(ae)},me.saveTrigger=function(ae){me.trigger=ae};var re=[];return"value"in $?re=$.value||[]:"defaultValue"in $&&(re=$.defaultValue||[]),b()(!("filedNames"in $),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),me.state={popupVisible:$.popupVisible,activeValue:re,value:re,prevProps:$},me.defaultFieldNames={label:"label",value:"value",children:"children"},me}return D(se,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(me){var re=this.defaultFieldNames,ae=this.props,we=ae.fieldNames,le=ae.filedNames;return"filedNames"in this.props?le[me]||re[me]:we[me]||re[me]}},{key:"getFieldNames",value:function(){var me=this.props,re=me.fieldNames,ae=me.filedNames;return"filedNames"in this.props?ae:re}},{key:"getCurrentLevelOptions",value:function(){var me=this,re=this.props.options,ae=re===void 0?[]:re,we=this.state.activeValue,le=we===void 0?[]:we,te=A()(ae,function(Q,J){return Q[me.getFieldName("value")]===le[J]},{childrenKeyName:this.getFieldName("children")});return te[te.length-2]?te[te.length-2][this.getFieldName("children")]:S(ae).filter(function(Q){return!Q.disabled})}},{key:"getActiveOptions",value:function(me){var re=this;return A()(this.props.options||[],function(ae,we){return ae[re.getFieldName("value")]===me[we]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var me=this.props,re=me.prefixCls,ae=me.transitionName,we=me.popupClassName,le=me.options,te=le===void 0?[]:le,Q=me.disabled,J=me.builtinPlacements,ve=me.popupPlacement,_e=me.children,Oe=me.dropdownRender,Xe=R(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),tt=M.createElement("div",null),lt="";te&&te.length>0?tt=M.createElement(w,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):lt=" ".concat(re,"-menus-empty");var dt=tt;return Oe&&(dt=Oe(tt)),M.createElement(m.a,Object.assign({ref:this.saveTrigger},Xe,{popupPlacement:ve,builtinPlacements:J,popupTransitionName:ae,action:Q?[]:["click"],popupVisible:Q?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:we+lt,popup:dt}),M.cloneElement(_e,{onKeyDown:this.handleKeyDown,tabIndex:Q?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(me,re){var ae=re.prevProps,we=ae===void 0?{}:ae,le={prevProps:me};return"value"in me&&!g(we.value,me.value)&&(le.value=me.value||[],"loadData"in me||(le.activeValue=me.value||[])),"popupVisible"in me&&(le.popupVisible=me.popupVisible),le}}]),se}(M.Component);return ye.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:_,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},ye}(),Te=Ce,ce=z.a=Te},S6kV:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.OFB=function(){var m=M.lib.BlockCipherMode.extend(),O=m.Encryptor=m.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,g=this._iv,e=this._keystream;g&&(e=this._keystream=g.slice(0),this._iv=void 0),C.encryptBlock(e,0);for(var f=0;f<A;f++)b[y+f]^=e[f]}});return m.Decryptor=O,m}(),M.mode.OFB})},"SA+Z":function(k,z,o){var M=o("wTVA"),m=o("EbDI"),O=o("ZhPi"),b=o("wkBT");function y(C){return M(C)||m(C)||O(C)||b()}k.exports=y,k.exports.__esModule=!0,k.exports.default=k.exports},SJMd:function(k,z){/**
* @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 o,M,m,O=!1,b,y;window.PR_SHOULD_USE_CONTINUATION=!0;var C,A;(function(){var g=window,e=["break,continue,do,else,for,if,return,while"],f=[e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],a=[f,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],l=[a,"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"],n=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],i=[a,"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"],r="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",c=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],h="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",d=[e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],s=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],u=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],w=[l,i,n,c,h,d,s,u],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,_="str",P="kwd",R="com",x="typ",S="lit",v="pun",T="pln",U="tag",I="dec",N="src",V="atn",H="atv",D="nocode",W="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(le){for(var te=0,Q=!1,J=!1,ve=0,_e=le.length;ve<_e;++ve){var Oe=le[ve];if(Oe.ignoreCase)J=!0;else if(/[a-z]/i.test(Oe.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Q=!0,J=!1;break}}var Xe={b:8,t:9,n:10,v:11,f:12,r:13};function tt(Ye){var je=Ye.charCodeAt(0);if(je!==92)return je;var ht=Ye.charAt(1);return je=Xe[ht],je||("0"<=ht&&ht<="7"?parseInt(Ye.substring(1),8):ht==="u"||ht==="x"?parseInt(Ye.substring(2),16):Ye.charCodeAt(1))}function lt(Ye){if(Ye<32)return(Ye<16?"\\x0":"\\x")+Ye.toString(16);var je=String.fromCharCode(Ye);return je==="\\"||je==="-"||je==="]"||je==="^"?"\\"+je:je}function dt(Ye){var je=Ye.substring(1,Ye.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ht=[],Bt=je[0]==="^",Et=["["];Bt&&Et.push("^");for(var Pt=Bt?1:0,Ze=je.length;Pt<Ze;++Pt){var We=je[Pt];if(/\\[bdsw]/i.test(We))Et.push(We);else{var Je=tt(We),Ae;Pt+2<Ze&&je[Pt+1]==="-"?(Ae=tt(je[Pt+2]),Pt+=2):Ae=Je,ht.push([Je,Ae]),Ae<65||Je>122||(Ae<65||Je>90||ht.push([Math.max(65,Je)|32,Math.min(Ae,90)|32]),Ae<97||Je>122||ht.push([Math.max(97,Je)&~32,Math.min(Ae,122)&~32]))}}ht.sort(function(et,mt){return et[0]-mt[0]||mt[1]-et[1]});for(var Ue=[],He=[],Pt=0;Pt<ht.length;++Pt){var Fe=ht[Pt];Fe[0]<=He[1]+1?He[1]=Math.max(He[1],Fe[1]):Ue.push(He=Fe)}for(var Pt=0;Pt<Ue.length;++Pt){var Fe=Ue[Pt];Et.push(lt(Fe[0])),Fe[1]>Fe[0]&&(Fe[1]+1>Fe[0]&&Et.push("-"),Et.push(lt(Fe[1])))}return Et.push("]"),Et.join("")}function vt(Ye){for(var je=Ye.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")),ht=je.length,Bt=[],Et=0,Pt=0;Et<ht;++Et){var Ze=je[Et];if(Ze==="(")++Pt;else if(Ze.charAt(0)==="\\"){var We=+Ze.substring(1);We&&(We<=Pt?Bt[We]=-1:je[Et]=lt(We))}}for(var Et=1;Et<Bt.length;++Et)Bt[Et]===-1&&(Bt[Et]=++te);for(var Et=0,Pt=0;Et<ht;++Et){var Ze=je[Et];if(Ze==="(")++Pt,Bt[Pt]||(je[Et]="(?:");else if(Ze.charAt(0)==="\\"){var We=+Ze.substring(1);We&&We<=Pt&&(je[Et]="\\"+Bt[We])}}for(var Et=0;Et<ht;++Et)je[Et]==="^"&&je[Et+1]!=="^"&&(je[Et]="");if(Ye.ignoreCase&&Q)for(var Et=0;Et<ht;++Et){var Ze=je[Et],Je=Ze.charAt(0);Ze.length>=2&&Je==="["?je[Et]=dt(Ze):Je!=="\\"&&(je[Et]=Ze.replace(/[a-zA-Z]/g,function(He){var Fe=He.charCodeAt(0);return"["+String.fromCharCode(Fe&~32,Fe|32)+"]"}))}return je.join("")}for(var _t=[],ve=0,_e=le.length;ve<_e;++ve){var Oe=le[ve];if(Oe.global||Oe.multiline)throw new Error(""+Oe);_t.push("(?:"+vt(Oe)+")")}return new RegExp(_t.join("|"),J?"gi":"g")}function L(le,te){var Q=/(?:^|\s)nocode(?:\s|$)/,J=[],ve=0,_e=[],Oe=0;function Xe(tt){var lt=tt.nodeType;if(lt==1){if(Q.test(tt.className))return;for(var dt=tt.firstChild;dt;dt=dt.nextSibling)Xe(dt);var vt=tt.nodeName.toLowerCase();(vt==="br"||vt==="li")&&(J[Oe]=`
`,_e[Oe<<1]=ve++,_e[Oe++<<1|1]=tt)}else if(lt==3||lt==4){var _t=tt.nodeValue;_t.length&&(te?_t=_t.replace(/\r\n?/g,`
`):_t=_t.replace(/[ \t\r\n]+/g," "),J[Oe]=_t,_e[Oe<<1]=ve,ve+=_t.length,_e[Oe++<<1|1]=tt)}}return Xe(le),{sourceCode:J.join("").replace(/\n$/,""),spans:_e}}function K(le,te,Q,J,ve){if(!Q)return;var _e={sourceNode:le,pre:1,langExtension:null,numberLines:null,sourceCode:Q,spans:null,basePos:te,decorations:null};J(_e),ve.push.apply(ve,_e.decorations)}var ee=/\S/;function he(le){for(var te=void 0,Q=le.firstChild;Q;Q=Q.nextSibling){var J=Q.nodeType;te=J===1?te?le:Q:J===3&&ee.test(Q.nodeValue)?le:te}return te===le?void 0:te}function fe(le,te){var Q={},J;(function(){for(var Oe=le.concat(te),Xe=[],tt={},lt=0,dt=Oe.length;lt<dt;++lt){var vt=Oe[lt],_t=vt[3];if(_t)for(var Ye=_t.length;--Ye>=0;)Q[_t.charAt(Ye)]=vt;var je=vt[1],ht=""+je;tt.hasOwnProperty(ht)||(Xe.push(je),tt[ht]=null)}Xe.push(/[\0-\uffff]/),J=F(Xe)})();var ve=te.length,_e=function(Oe){for(var Xe=Oe.sourceCode,tt=Oe.basePos,lt=Oe.sourceNode,dt=[tt,T],vt=0,_t=Xe.match(J)||[],Ye={},je=0,ht=_t.length;je<ht;++je){var Bt=_t[je],Et=Ye[Bt],Pt=void 0,Ze;if(typeof Et=="string")Ze=!1;else{var We=Q[Bt.charAt(0)];if(We)Pt=Bt.match(We[1]),Et=We[0];else{for(var Je=0;Je<ve;++Je)if(We=te[Je],Pt=Bt.match(We[1]),Pt){Et=We[0];break}Pt||(Et=T)}Ze=Et.length>=5&&Et.substring(0,5)==="lang-",Ze&&!(Pt&&typeof Pt[1]=="string")&&(Ze=!1,Et=N),Ze||(Ye[Bt]=Et)}var Ae=vt;if(vt+=Bt.length,!Ze)dt.push(tt+Ae,Et);else{var Ue=Pt[1],He=Bt.indexOf(Ue),Fe=He+Ue.length;Pt[2]&&(Fe=Bt.length-Pt[2].length,He=Fe-Ue.length);var et=Et.substring(5);K(lt,tt+Ae,Bt.substring(0,He),_e,dt),K(lt,tt+Ae+He,Ue,se(et,Ue),dt),K(lt,tt+Ae+Fe,Bt.substring(Fe),_e,dt)}}Oe.decorations=dt};return _e}function Ce(le){var te=[],Q=[];le.tripleQuotedStrings?te.push([_,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):le.multiLineStrings?te.push([_,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):te.push([_,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),le.verbatimStrings&&Q.push([_,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var J=le.hashComments;J&&(le.cStyleComments?(J>1?te.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):te.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Q.push([_,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):te.push([R,/^#[^\r\n]*/,null,"#"])),le.cStyleComments&&(Q.push([R,/^\/\/[^\r\n]*/,null]),Q.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=le.regexLiterals;if(ve){var _e=ve>1?"":`
\r`,Oe=_e?".":"[\\S\\s]",Xe="/(?=[^/*"+_e+"])(?:[^/\\x5B\\x5C"+_e+"]|\\x5C"+Oe+"|\\x5B(?:[^\\x5C\\x5D"+_e+"]|\\x5C"+Oe+")*(?:\\x5D|$))+/";Q.push(["lang-regex",RegExp("^"+W+"("+Xe+")")])}var tt=le.types;tt&&Q.push([x,tt]);var lt=(""+le.keywords).replace(/^ | $/g,"");lt.length&&Q.push([P,new RegExp("^(?:"+lt.replace(/[\s,]+/g,"|")+")\\b"),null]),te.push([T,/^\s+/,null,` \r
\xA0`]);var dt="^.[^\\s\\w.$@'\"`/\\\\]*";return le.regexLiterals&&(dt+="(?!s*/)"),Q.push([S,/^@[a-z_$][a-z_$@0-9]*/i,null],[x,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[T,/^[a-z_$][a-z_$@0-9]*/i,null],[S,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[T,/^\\[\s\S]?/,null],[v,new RegExp(dt),null]),fe(te,Q)}var Te=Ce({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(le,te,Q){for(var J=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,_e=le.ownerDocument,Oe=_e.createElement("li");le.firstChild;)Oe.appendChild(le.firstChild);var Xe=[Oe];function tt(je){var ht=je.nodeType;if(ht==1&&!J.test(je.className))if(je.nodeName==="br")lt(je),je.parentNode&&je.parentNode.removeChild(je);else for(var Bt=je.firstChild;Bt;Bt=Bt.nextSibling)tt(Bt);else if((ht==3||ht==4)&&Q){var Et=je.nodeValue,Pt=Et.match(ve);if(Pt){var Ze=Et.substring(0,Pt.index);je.nodeValue=Ze;var We=Et.substring(Pt.index+Pt[0].length);if(We){var Je=je.parentNode;Je.insertBefore(_e.createTextNode(We),je.nextSibling)}lt(je),Ze||je.parentNode.removeChild(je)}}}function lt(je){for(;!je.nextSibling;)if(je=je.parentNode,!je)return;function ht(Pt,Ze){var We=Ze?Pt.cloneNode(!1):Pt,Je=Pt.parentNode;if(Je){var Ae=ht(Je,1),Ue=Pt.nextSibling;Ae.appendChild(We);for(var He=Ue;He;He=Ue)Ue=He.nextSibling,Ae.appendChild(He)}return We}for(var Bt=ht(je.nextSibling,0),Et;(Et=Bt.parentNode)&&Et.nodeType===1;)Bt=Et;Xe.push(Bt)}for(var dt=0;dt<Xe.length;++dt)tt(Xe[dt]);te===(te|0)&&Xe[0].setAttribute("value",te);var vt=_e.createElement("ol");vt.className="linenums";for(var _t=Math.max(0,te-1|0)||0,dt=0,Ye=Xe.length;dt<Ye;++dt)Oe=Xe[dt],Oe.className="L"+(dt+_t)%10,Oe.firstChild||Oe.appendChild(_e.createTextNode("\xA0")),vt.appendChild(Oe);le.appendChild(vt)}function ye(le){var te=/\bMSIE\s(\d+)/.exec(navigator.userAgent);te=te&&+te[1]<=8;var Q=/\n/g,J=le.sourceCode,ve=J.length,_e=0,Oe=le.spans,Xe=Oe.length,tt=0,lt=le.decorations,dt=lt.length,vt=0;lt[dt]=ve;var _t,Ye;for(Ye=_t=0;Ye<dt;)lt[Ye]!==lt[Ye+2]?(lt[_t++]=lt[Ye++],lt[_t++]=lt[Ye++]):Ye+=2;for(dt=_t,Ye=_t=0;Ye<dt;){for(var je=lt[Ye],ht=lt[Ye+1],Bt=Ye+2;Bt+2<=dt&&lt[Bt+1]===ht;)Bt+=2;lt[_t++]=je,lt[_t++]=ht,Ye=Bt}dt=lt.length=_t;var Et=le.sourceNode,Pt="";Et&&(Pt=Et.style.display,Et.style.display="none");try{for(var Ze=null;tt<Xe;){var We=Oe[tt],Je=Oe[tt+2]||ve,Ae=lt[vt+2]||ve,Bt=Math.min(Je,Ae),Ue=Oe[tt+1],He;if(Ue.nodeType!==1&&(He=J.substring(_e,Bt))){te&&(He=He.replace(Q,"\r")),Ue.nodeValue=He;var Fe=Ue.ownerDocument,et=Fe.createElement("span");et.className=lt[vt+1];var mt=Ue.parentNode;mt.replaceChild(et,Ue),et.appendChild(Ue),_e<Je&&(Oe[tt+1]=Ue=Fe.createTextNode(J.substring(Bt,Je)),mt.insertBefore(Ue,et.nextSibling))}_e=Bt,_e>=Je&&(tt+=2),_e>=Ae&&(vt+=2)}}finally{Et&&(Et.style.display=Pt)}}var Ee={};function ue(le,te){for(var Q=te.length;--Q>=0;){var J=te[Q];Ee.hasOwnProperty(J)?g.console&&console.warn("cannot override language handler %s",J):Ee[J]=le}}function se(le,te){return le&&Ee.hasOwnProperty(le)||(le=/^\s*</.test(te)?"default-markup":"default-code"),Ee[le]}ue(Te,["default-code"]),ue(fe([],[[T,/^[^<?]+/],[I,/^<!\w[^>]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[v,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ue(fe([[T,/^[\s]+/,null,` \r
`],[H,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[U,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[V,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[v,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ue(fe([],[[H,/^[\s\S]+/]]),["uq.val"]),ue(Ce({keywords:l,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ue(Ce({keywords:"null,true,false"}),["json"]),ue(Ce({keywords:i,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ue(Ce({keywords:n,cStyleComments:!0}),["java"]),ue(Ce({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Ce({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Ce({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Ce({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Ce({keywords:c,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Ce({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(fe([],[[_,/^[\s\S]+/]]),["regex"]);function $(le){var te=le.langExtension;try{var Q=L(le.sourceNode,le.pre),J=Q.sourceCode;le.sourceCode=J,le.spans=Q.spans,le.basePos=0,se(te,J)(le),ye(le)}catch(ve){g.console&&console.log(ve&&ve.stack||ve)}}function me(le,te,Q){var J=Q||!1,ve=te||null,_e=document.createElement("div");_e.innerHTML="<pre>"+le+"</pre>",_e=_e.firstChild,J&&ce(_e,J,!0);var Oe={langExtension:ve,numberLines:J,sourceNode:_e,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return $(Oe),_e.innerHTML}function re(le,te){var Q=te||document.body,J=Q.ownerDocument||document;function ve(We){return Q.getElementsByTagName(We)}for(var _e=[ve("pre"),ve("code"),ve("xmp")],Oe=[],Xe=0;Xe<_e.length;++Xe)for(var tt=0,lt=_e[Xe].length;tt<lt;++tt)Oe.push(_e[Xe][tt]);_e=null;var dt=Date;dt.now||(dt={now:function(){return+new Date}});var vt=0,_t=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ye=/\bprettyprint\b/,je=/\bprettyprinted\b/,ht=/pre|xmp/i,Bt=/^code$/i,Et=/^(?:pre|code|xmp)$/i,Pt={};function Ze(){for(var We=g.PR_SHOULD_USE_CONTINUATION?dt.now()+250:Infinity;vt<Oe.length&&dt.now()<We;vt++){for(var Je=Oe[vt],Ae=Pt,Ue=Je;Ue=Ue.previousSibling;){var He=Ue.nodeType,Fe=(He===7||He===8)&&Ue.nodeValue;if(Fe?!/^\??prettify\b/.test(Fe):He!==3||/\S/.test(Ue.nodeValue))break;if(Fe){Ae={},Fe.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ct,ft,xt){Ae[ft]=xt});break}}var et=Je.className;if((Ae!==Pt||Ye.test(et))&&!je.test(et)){for(var mt=!1,Lt=Je.parentNode;Lt;Lt=Lt.parentNode){var Xt=Lt.tagName;if(Et.test(Xt)&&Lt.className&&Ye.test(Lt.className)){mt=!0;break}}if(!mt){Je.className+=" prettyprinted";var rn=Ae.lang;if(!rn){rn=et.match(_t);var wt;!rn&&(wt=he(Je))&&Bt.test(wt.tagName)&&(rn=wt.className.match(_t)),rn&&(rn=rn[1])}var bt;if(ht.test(Je.tagName))bt=1;else{var ke=Je.currentStyle,nt=J.defaultView,rt=ke?ke.whiteSpace:nt&&nt.getComputedStyle?nt.getComputedStyle(Je,null).getPropertyValue("white-space"):0;bt=rt&&rt.substring(0,3)==="pre"}var De=Ae.linenums;(De=De==="true"||+De)||(De=et.match(/\blinenums\b(?::(\d+))?/),De=De?De[1]&&De[1].length?+De[1]:!0:!1),De&&ce(Je,De,bt);var Ke={langExtension:rn,sourceNode:Je,numberLines:De,pre:bt,sourceCode:null,basePos:null,spans:null,decorations:null};$(Ke)}}}vt<Oe.length?g.setTimeout(Ze,250):typeof le=="function"&&le()}Ze()}var ae=g.PR={createSimpleLexer:fe,registerLangHandler:ue,sourceDecorator:Ce,PR_ATTRIB_NAME:V,PR_ATTRIB_VALUE:H,PR_COMMENT:R,PR_DECLARATION:I,PR_KEYWORD:P,PR_LITERAL:S,PR_NOCODE:D,PR_PLAIN:T,PR_PUNCTUATION:v,PR_SOURCE:N,PR_STRING:_,PR_TAG:U,PR_TYPE:x,prettyPrintOne:O?g.prettyPrintOne=me:C=me,prettyPrint:A=O?g.prettyPrint=re:A=re},we=g.define;typeof we=="function"&&we.amd&&we("google-code-prettify",[],function(){return ae})})()},SLjR:function(k,z,o){},SMhR:function(k,z){k.exports="data:image/png;base64,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"},Se0u:function(k,z,o){},T8No:function(k,z,o){"use strict";o.d(z,"a",function(){return A}),o.d(z,"e",function(){return g}),o.d(z,"c",function(){return v}),o.d(z,"b",function(){return T}),o.d(z,"d",function(){return U}),o.d(z,"f",function(){return V});var M=o("MNsG"),m=o("N0LK"),O=o("Cg/j");let b=M.k||"";const y=new Map;y.set("false",!1),y.set("true",!0),y.set("isMac",M.f),y.set("isLinux",M.d),y.set("isWindows",M.i),y.set("isWeb",M.h),y.set("isMacNative",M.f&&!M.h),y.set("isEdge",b.indexOf("Edg/")>=0),y.set("isFirefox",b.indexOf("Firefox")>=0),y.set("isChrome",b.indexOf("Chrome")>=0),y.set("isSafari",b.indexOf("Safari")>=0);const C=Object.prototype.hasOwnProperty;class A{static has(D){return l.create(D)}static equals(D,W){return n.create(D,W)}static regex(D,W){return _.create(D,W)}static not(D){return h.create(D)}static and(...D){return x.create(D,null)}static or(...D){return S.create(D,null,!0)}static deserialize(D,W=!1){return D?this._deserializeOrExpression(D,W):void 0}static _deserializeOrExpression(D,W){let F=D.split("||");return S.create(F.map(L=>this._deserializeAndExpression(L,W)),null,!0)}static _deserializeAndExpression(D,W){let F=D.split("&&");return x.create(F.map(L=>this._deserializeOne(L,W)),null)}static _deserializeOne(D,W){if(D=D.trim(),D.indexOf("!=")>=0){let F=D.split("!=");return c.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("==")>=0){let F=D.split("==");return n.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("=~")>=0){let F=D.split("=~");return _.create(F[0].trim(),this._deserializeRegexValue(F[1],W))}if(D.indexOf(" in ")>=0){let F=D.split(" in ");return i.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(D)){const F=D.split(">=");return u.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(D)){const F=D.split(">");return s.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(D)){const F=D.split("<=");return E.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(D)){const F=D.split("<");return w.create(F[0].trim(),F[1].trim())}return/^\!\s*/.test(D)?h.create(D.substr(1).trim()):l.create(D)}static _deserializeValue(D,W){if(D=D.trim(),D==="true")return!0;if(D==="false")return!1;let F=/^'([^']*)'$/.exec(D);return F?F[1].trim():D}static _deserializeRegexValue(D,W){if(Object(m.C)(D)){if(W)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let F=D.indexOf("/"),L=D.lastIndexOf("/");if(F===L||F<0){if(W)throw new Error(`bad regexp-value '${D}', missing /-enclosure`);return console.warn(`bad regexp-value '${D}', missing /-enclosure`),null}let K=D.slice(F+1,L),ee=D[L+1]==="i"?"i":"";try{return new RegExp(K,ee)}catch(he){if(W)throw new Error(`bad regexp-value '${D}', parse error: ${he}`);return console.warn(`bad regexp-value '${D}', parse error: ${he}`),null}}}function g(D,W){const F=D?D.substituteConstants():void 0,L=W?W.substituteConstants():void 0;return!F&&!L?!0:!F||!L?!1:F.equals(L)}function e(D,W){return D.cmp(W)}class f{constructor(){this.type=0}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!1}serialize(){return"false"}keys(){return[]}negate(){return a.INSTANCE}}f.INSTANCE=new f;class a{constructor(){this.type=1}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!0}serialize(){return"true"}keys(){return[]}negate(){return f.INSTANCE}}a.INSTANCE=new a;class l{constructor(D,W){this.key=D,this.negated=W,this.type=2}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?a.INSTANCE:f.INSTANCE:new l(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:I(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?a.INSTANCE:f.INSTANCE:this}evaluate(D){return!!D.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=h.create(this.key,this)),this.negated}}class n{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=4}static create(D,W,F=null){if(typeof W=="boolean")return W?l.create(D,F):h.create(D,F);const L=y.get(D);if(typeof L=="boolean"){const K=L?"true":"false";return W===K?a.INSTANCE:f.INSTANCE}return new n(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?a.INSTANCE:f.INSTANCE}return this}evaluate(D){return D.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class i{constructor(D,W){this.key=D,this.valueKey=W,this.type=10,this.negated=null}static create(D,W){return new i(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.valueKey,D.key,D.valueKey)}equals(D){return D.type===this.type?this.key===D.key&&this.valueKey===D.valueKey:!1}substituteConstants(){return this}evaluate(D){const W=D.getValue(this.valueKey),F=D.getValue(this.key);return Array.isArray(W)?W.indexOf(F)>=0:typeof F=="string"&&typeof W=="object"&&W!==null?C.call(W,F):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=r.create(this)),this.negated}}class r{constructor(D){this._actual=D,this.type=11}static create(D){return new r(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class c{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=5}static create(D,W,F=null){if(typeof W=="boolean")return W?h.create(D,F):l.create(D,F);const L=y.get(D);if(typeof L=="boolean"){const K=L?"true":"false";return W===K?f.INSTANCE:a.INSTANCE}return new c(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?f.INSTANCE:a.INSTANCE}return this}evaluate(D){return D.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=n.create(this.key,this.value,this)),this.negated}}class h{constructor(D,W){this.key=D,this.negated=W,this.type=3}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?f.INSTANCE:a.INSTANCE:new h(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:I(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?f.INSTANCE:a.INSTANCE:this}evaluate(D){return!D.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this)),this.negated}}function d(D,W){if(typeof D=="string"){const F=parseFloat(D);isNaN(F)||(D=F)}return typeof D=="string"||typeof D=="number"?W(D):f.INSTANCE}class s{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=12}static create(D,W,F=null){return d(W,L=>new s(D,L,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class u{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=13}static create(D,W,F=null){return d(W,L=>new u(D,L,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class w{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=14}static create(D,W,F=null){return d(W,L=>new w(D,L,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class E{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=15}static create(D,W,F=null){return d(W,L=>new E(D,L,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this.value,this)),this.negated}}class _{constructor(D,W){this.key=D,this.regexp=W,this.type=7,this.negated=null}static create(D,W){return new _(D,W)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.key<D.key)return-1;if(this.key>D.key)return 1;const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return W<F?-1:W>F?1:0}equals(D){if(D.type===this.type){const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return this.key===D.key&&W===F}return!1}substituteConstants(){return this}evaluate(D){let W=D.getValue(this.key);return this.regexp?this.regexp.test(W):!1}serialize(){const D=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${D}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this)),this.negated}}class P{constructor(D){this._actual=D,this.type=8}static create(D){return new P(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(D){let W=null;for(let F=0,L=D.length;F<L;F++){const K=D[F].substituteConstants();if(D[F]!==K&&W===null){W=[];for(let ee=0;ee<F;ee++)W[ee]=D[ee]}W!==null&&(W[F]=K)}return W===null?D:W}class x{constructor(D,W){this.expr=D,this.negated=W,this.type=6}static create(D,W){return x._normalizeArr(D,W)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.expr.length<D.expr.length)return-1;if(this.expr.length>D.expr.length)return 1;for(let W=0,F=this.expr.length;W<F;W++){const L=e(this.expr[W],D.expr[W]);if(L!==0)return L}return 0}equals(D){if(D.type===this.type){if(this.expr.length!==D.expr.length)return!1;for(let W=0,F=this.expr.length;W<F;W++)if(!this.expr[W].equals(D.expr[W]))return!1;return!0}return!1}substituteConstants(){const D=R(this.expr);return D===this.expr?this:x.create(D,this.negated)}evaluate(D){for(let W=0,F=this.expr.length;W<F;W++)if(!this.expr[W].evaluate(D))return!1;return!0}static _normalizeArr(D,W){const F=[];let L=!1;for(const K of D){if(!K)continue;if(K.type===1){L=!0;continue}if(K.type===0)return f.INSTANCE;if(K.type===6){F.push(...K.expr);continue}F.push(K)}if(F.length===0&&L)return a.INSTANCE;if(F.length===0)return;if(F.length===1)return F[0];F.sort(e);for(let K=1;K<F.length;K++)F[K-1].equals(F[K])&&(F.splice(K,1),K--);if(F.length===1)return F[0];for(;F.length>1;){const K=F[F.length-1];if(K.type!==9)break;F.pop();const ee=F.pop(),he=F.length===0,fe=S.create(K.expr.map(Ce=>x.create([Ce,ee],null)),null,he);fe&&(F.push(fe),F.sort(e))}return F.length===1?F[0]:new x(F,W)}serialize(){return this.expr.map(D=>D.serialize()).join(" && ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){const D=[];for(let W of this.expr)D.push(W.negate());this.negated=S.create(D,this,!0)}return this.negated}}class S{constructor(D,W){this.expr=D,this.negated=W,this.type=9}static create(D,W,F){return S._normalizeArr(D,W,F)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.expr.length<D.expr.length)return-1;if(this.expr.length>D.expr.length)return 1;for(let W=0,F=this.expr.length;W<F;W++){const L=e(this.expr[W],D.expr[W]);if(L!==0)return L}return 0}equals(D){if(D.type===this.type){if(this.expr.length!==D.expr.length)return!1;for(let W=0,F=this.expr.length;W<F;W++)if(!this.expr[W].equals(D.expr[W]))return!1;return!0}return!1}substituteConstants(){const D=R(this.expr);return D===this.expr?this:S.create(D,this.negated,!1)}evaluate(D){for(let W=0,F=this.expr.length;W<F;W++)if(this.expr[W].evaluate(D))return!0;return!1}static _normalizeArr(D,W,F){let L=[],K=!1;if(D){for(let ee=0,he=D.length;ee<he;ee++){const fe=D[ee];if(!fe)continue;if(fe.type===0){K=!0;continue}if(fe.type===1)return a.INSTANCE;if(fe.type===9){L=L.concat(fe.expr);continue}L.push(fe)}if(L.length===0&&K)return f.INSTANCE;L.sort(e)}if(L.length===0)return;if(L.length===1)return L[0];for(let ee=1;ee<L.length;ee++)L[ee-1].equals(L[ee])&&(L.splice(ee,1),ee--);if(L.length===1)return L[0];if(F){for(let ee=0;ee<L.length;ee++)for(let he=ee+1;he<L.length;he++)V(L[ee],L[he])&&(L.splice(he,1),he--);if(L.length===1)return L[0]}return new S(L,W)}serialize(){return this.expr.map(D=>D.serialize()).join(" || ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){let D=[];for(let W of this.expr)D.push(W.negate());for(;D.length>1;){const W=D.shift(),F=D.shift(),L=[];for(const ee of H(W))for(const he of H(F))L.push(x.create([ee,he],null));const K=D.length===0;D.unshift(S.create(L,null,K))}this.negated=D[0]}return this.negated}}class v extends l{constructor(D,W,F){super(D,null);this._defaultValue=W,typeof F=="object"?v._info.push(Object.assign(Object.assign({},F),{key:D})):F!==!0&&v._info.push({key:D,description:F,type:W!=null?typeof W:void 0})}static all(){return v._info.values()}bindTo(D){return D.createKey(this.key,this._defaultValue)}getValue(D){return D.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(D){return n.create(this.key,D)}}v._info=[];const T=Object(O.c)("contextKeyService"),U="setContext";function I(D,W){return D<W?-1:D>W?1:0}function N(D,W,F,L){return D<F?-1:D>F?1:W<L?-1:W>L?1:0}function V(D,W){if(W.type===6&&D.type!==9&&D.type!==6){for(const K of W.expr)if(D.equals(K))return!0}const F=D.negate(),L=H(F).concat(H(W));L.sort(e);for(let K=0;K<L.length;K++){const ee=L[K],he=ee.negate();for(let fe=K+1;fe<L.length;fe++){const Ce=L[fe];if(he.equals(Ce))return!0}}return!1}function H(D){return D.type===9?D.expr:[D]}},TGq3:function(k,z,o){k.exports=o.p+"static/lockclose.365036e8.svg"},TXwP:function(k,z,o){var M,m;(function(){var O;(function(){"use strict";var y=[,,function(e){function f(n){this.__parent=n,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}f.prototype.clone_empty=function(){var n=new f(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},f.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},f.prototype.has_match=function(n){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(n))return!0;return!1},f.prototype.set_indent=function(n,i){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},f.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)},f.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},f.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var n=this.__parent.current_line;return n.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),n.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),n.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,n.__items[0]===" "&&(n.__items.splice(0,1),n.__character_count-=1),!0}return!1},f.prototype.is_empty=function(){return this.__items.length===0},f.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},f.prototype.push=function(n){this.__items.push(n);var i=n.lastIndexOf(`
`);i!==-1?this.__character_count=n.length-i:this.__character_count+=n.length},f.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},f.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},f.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},f.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},f.prototype.toString=function(){var n="";return this.is_empty()?this.__parent.indent_empty_lines&&(n=this.__parent.get_indent_string(this.__indent_count)):(n=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),n+=this.__items.join("")),n};function a(n,i){this.__cache=[""],this.__indent_size=n.indent_size,this.__indent_string=n.indent_char,n.indent_with_tabs||(this.__indent_string=new Array(n.indent_size+1).join(n.indent_char)),i=i||"",n.indent_level>0&&(i=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}a.prototype.get_indent_size=function(n,i){var r=this.__base_string_length;return i=i||0,n<0&&(r=0),r+=n*this.__indent_size,r+=i,r},a.prototype.get_indent_string=function(n,i){var r=this.__base_string;return i=i||0,n<0&&(n=0,r=""),i+=n*this.__indent_size,this.__ensure_cache(i),r+=this.__cache[i],r},a.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var n=this.__cache.length,i=0,r="";this.__indent_size&&n>=this.__indent_size&&(i=Math.floor(n/this.__indent_size),n-=i*this.__indent_size,r=new Array(i+1).join(this.__indent_string)),n&&(r+=new Array(n+1).join(" ")),this.__cache.push(r)};function l(n,i){this.__indent_cache=new a(n,i),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new f(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(n,i){return this.__indent_cache.get_indent_string(n,i)},l.prototype.get_indent_size=function(n,i){return this.__indent_cache.get_indent_size(n,i)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(n){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var r=this.__lines.join(`
`);return n!==`
`&&(r=r.replace(/[\n]/g,n)),r},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(n,i){return n=n||0,i=i||0,this.next_line.set_indent(n,i),this.__lines.length>1?(this.current_line.set_indent(n,i),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(n){for(var i=0;i<n.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(n.whitespace_before),this.current_line.push(n.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(n){this.__add_space_before_token(),this.current_line.push(n),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(n){for(var i=this.__lines.length;n<i;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(n){for(n=n===void 0?!1:n,this.current_line.trim();n&&this.__lines.length>1&&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},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(n,i){for(var r=this.__lines.length-2;r>=0;){var c=this.__lines[r];if(c.is_empty())break;if(c.item(0).indexOf(n)!==0&&c.item(-1)!==i){this.__lines.splice(r+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=l},,,,function(e){function f(n,i){this.raw_options=a(n,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}f.prototype._get_array=function(n,i){var r=this.raw_options[n],c=i||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(c=r.concat()):typeof r=="string"&&(c=r.split(/[^a-zA-Z0-9_\/\-]+/)),c},f.prototype._get_boolean=function(n,i){var r=this.raw_options[n],c=r===void 0?!!i:!!r;return c},f.prototype._get_characters=function(n,i){var r=this.raw_options[n],c=i||"";return typeof r=="string"&&(c=r.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),c},f.prototype._get_number=function(n,i){var r=this.raw_options[n];i=parseInt(i,10),isNaN(i)&&(i=0);var c=parseInt(r,10);return isNaN(c)&&(c=i),c},f.prototype._get_selection=function(n,i,r){var c=this._get_selection_list(n,i,r);if(c.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
`+i+`
You passed in: '`+this.raw_options[n]+"'");return c[0]},f.prototype._get_selection_list=function(n,i,r){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(r=r||[i[0]],!this._is_valid_selection(r,i))throw new Error("Invalid Default Value!");var c=this._get_array(n,r);if(!this._is_valid_selection(c,i))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
`+i+`
You passed in: '`+this.raw_options[n]+"'");return c},f.prototype._is_valid_selection=function(n,i){return n.length&&i.length&&!n.some(function(r){return i.indexOf(r)===-1})};function a(n,i){var r={};n=l(n);var c;for(c in n)c!==i&&(r[c]=n[c]);if(i&&n[i])for(c in n[i])r[c]=n[i][c];return r}function l(n){var i={},r;for(r in n){var c=r.replace(/-/g,"_");i[c]=n[r]}return i}e.exports.Options=f,e.exports.normalizeOpts=l,e.exports.mergeOpts=a},,function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var n=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(n=this.__input.charAt(l)),n},a.prototype.__match=function(l,n){l.lastIndex=n;var i=l.exec(this.__input);return i&&!(f&&l.sticky)&&(i.index!==n&&(i=null)),i},a.prototype.test=function(l,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(l,n):!1},a.prototype.testChar=function(l,n){var i=this.peek(n);return l.lastIndex=0,i!==null&&l.test(i)},a.prototype.match=function(l){var n=this.__match(l,this.__position);return n?this.__position+=n[0].length:n=null,n},a.prototype.read=function(l,n,i){var r="",c;return l&&(c=this.match(l),c&&(r+=c[0])),n&&(c||!l)&&(r+=this.readUntil(n,i)),r},a.prototype.readUntil=function(l,n){var i="",r=this.__position;l.lastIndex=this.__position;var c=l.exec(this.__input);return c?(r=c.index,n&&(r+=c[0].length)):r=this.__input_length,i=this.__input.substring(this.__position,r),this.__position=r,i},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,n){var i=null,r="g";return n&&f&&(r="y"),typeof l=="string"&&l!==""?i=new RegExp(l,r):l&&(i=new RegExp(l.source,r)),i},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var n=this.__position,i=this.readUntilAfter(l);return this.__position=n,i},a.prototype.lookBack=function(l){var n=this.__position-1;return n>=l.length&&this.__input.substring(n-l.length,n).toLowerCase()===l},e.exports.InputScanner=a},,,,,function(e){function f(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}f.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(a);n;)l[n[1]]=n[2],n=this.__directive_pattern.exec(a);return l},f.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},,function(e,f,a){var l=a(16).Beautifier,n=a(17).Options;function i(r,c){var h=new l(r,c);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new n}},function(e,f,a){var l=a(17).Options,n=a(2).Output,i=a(8).InputScanner,r=a(13).Directives,c=new r(/\/\*/,/\*\//),h=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,s=/\s/,u=/(?:\s|\n)+/g,w=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,E=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function _(P,R){this._source_text=P||"",this._options=new l(R),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}_.prototype.eatString=function(P){var R="";for(this._ch=this._input.next();this._ch;){if(R+=this._ch,this._ch==="\\")R+=this._input.next();else if(P.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return R},_.prototype.eatWhitespace=function(P){for(var R=s.test(this._input.peek()),x=0;s.test(this._input.peek());)this._ch=this._input.next(),P&&this._ch===`
`&&((x===0||x<this._options.max_preserve_newlines)&&(x++,this._output.add_new_line(!0)));return R},_.prototype.foundNestedPseudoClass=function(){for(var P=0,R=1,x=this._input.peek(R);x;){if(x==="{")return!0;if(x==="(")P+=1;else if(x===")"){if(P===0)return!1;P-=1}else if(x===";"||x==="}")return!1;R++,x=this._input.peek(R)}return!1},_.prototype.print_string=function(P){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(P)},_.prototype.preserveSingleSpace=function(P){P&&(this._output.space_before_token=!0)},_.prototype.indent=function(){this._indentLevel++},_.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},_.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,R=this._options.eol;R==="auto"&&(R=`
`,P&&h.test(P||"")&&(R=P.match(h)[0])),P=P.replace(d,`
`);var x=P.match(/^[\t ]*/)[0];this._output=new n(this._options,x),this._input=new i(P),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var S=0,v=!1,T=!1,U=!1,I=!1,N=!1,V=!1,H=this._ch,D=!1,W,F,L;W=this._input.read(u),F=W!=="",L=H,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),H=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var K=this._input.read(w),ee=c.get_directives(K);ee&&ee.ignore==="start"&&(K+=c.readIgnored(this._input)),this.print_string(K),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(E)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(F),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var he=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);he.match(/[ :]$/)&&(he=this.eatString(": ").replace(/\s$/,""),this.print_string(he),this._output.space_before_token=!0),he=he.replace(/\s$/,""),he==="extend"?I=!0:he==="import"&&(N=!0),he in this.NESTED_AT_RULE?(this._nestedLevel+=1,he in this.CONDITIONAL_GROUP_RULE&&(U=!0)):!v&&S===0&&he.indexOf(":")!==-1&&(T=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(F),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")T&&(T=!1,this.outdent()),U?(U=!1,v=this._indentLevel>=this._nestedLevel):v=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&v&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(L==="("?this._output.space_before_token=!1:L!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),L==="{"&&this._output.trim(!0),N=!1,I=!1,T&&(this.outdent(),T=!1),this.print_string(this._ch),v=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var fe=0;fe<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;fe++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[fe])){D=!0;break}(v||U)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!I&&S===0?(this.print_string(":"),T||(T=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ce=L==='"'||L==="'";this.preserveSingleSpace(Ce||F),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,S===0?(T&&(this.outdent(),T=!1),I=!1,N=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),S++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),S&&(S--,this.outdent()));else{var Te=!1;this._input.lookBack("with")&&(Te=!0),this.preserveSingleSpace(F||Te),this.print_string(this._ch),T&&L==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),V=!0):(this.eatWhitespace(),S++,this.indent())}else if(this._ch===")")S&&(S--,this.outdent()),V&&this._input.peek()===";"&&this._options.selector_separator_newline&&(V=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!T||V)&&S===0&&!N&&!I?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!T&&S===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&s.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(F),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),s.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ce=L==='"'||L==="'";this.preserveSingleSpace(ce||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&D&&this._output.add_new_line()}var ye=this._output.get_code(R);return ye},e.exports.Beautifier=_},function(e,f,a){var l=a(6).Options;function n(i){l.call(this,i,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var h=0;h<c.length;h++)c[h]!=="expand"?this.brace_style="collapse":this.brace_style=c[h]}n.prototype=new l,e.exports.Options=n}],C={};function A(e){var f=C[e];if(f!==void 0)return f.exports;var a=C[e]={exports:{}};return y[e](a,a.exports,A),a.exports}var g=A(15);O=g})();var b=O;!(M=[],m=function(){return{css_beautify:b}}.apply(z,M),m!==void 0&&(k.exports=m))})()},UGPy:function(k,z,o){k.exports={practice:"practice___3ZVzw",right:"right___QGXbw",title:"title___1fvdS",content:"content___10SYj",des:"des___V2RYR",mainBody:"mainBody___3vP2d",selectBox:"selectBox___1vC0V",smallType:"smallType___2CvJP",evaluating:"evaluating___rLyh5",evaluatingLabel:"evaluatingLabel___3RsVg",mask:"mask___2kc6a",evaluatingS1:"evaluatingS1___2HzdH",serviceSettingWrap:"serviceSettingWrap___250aS",serviceBox:"serviceBox___1BL80",serviceSetLeft:"serviceSetLeft___2q-GU",serviceSetInput:"serviceSetInput___2hDqz",serviceSetTip:"serviceSetTip___29Bop",btns:"btns___1NoLi",popover:"popover___1Xuw5"}},UUDw:function(k,z,o){k.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},"Ufr+":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACL0lEQVRIS72WvU9TURTAf4e+qBUritRXoYkaB0w0alz4B3RQExTSbjpooouiddGVxf0hTjKQ+MkANhiVwYTNwcHFRuNgdIHGYiMmVWnja6+5La8ttq99Vesd3/n4nXPuOec+ocHpu6nCecVJFCcUHBDo0eoK0gKvEZ76hNnFy7Lg5kbqCXrGVa8vzyhwVsBoFIQCG5jM+xhNj0jyd90agGmpQVHcQwg0clwjU2SUcDoVk8fVsjUAc0yNiMICOlpyXlEuKCGWuiLjzqcyoBg5xP/CueOzoGDIyaQI0DU3bN61XBa3NBUZ22CvvpMiwLTUbYHzf1gWDpmw9B2S3yoeFEykYnJBdCvaBT4265Z6cEMgNgBn9sPQNHz4ugZgGx3sltCYuojiVqvRd/th4jjsC0J0BhKf63gQLknIUs+AY60A+rfB3UEIboTIDLz65Go9J6alFgT6vAIOboeHp2CrH64+h6m37pYKFnUGWWB9tZrfAOso5Gy4Ng/ZfEl62ISpYQisgzsJuD7fNKxcXUCoE+JR2NUFiSU49wQ2GDAbBV3798tw5D7kVsENMDnXEoUDEI9AeDN8WYGsDb0B0FM0PA0va7ZOLcYpkesl7+wqQXZsqhh7LI1jMNe0TfdsKUGCnfDjJwxMQnqlae1LCrpNvQxafzc8isCDN3DjhTfneo0XB83rqtADlczAsu45D6e8Kv7LslvNon3r2sm4rQ9OGdLOJ9OBtPXRr26Qf/Hb8gvtaezbqqd4vgAAAABJRU5ErkJggg=="},UqFu:function(k,z,o){"use strict";o.d(z,"a",function(){return M});var M=function(O){var b=document.createElement("textarea");return b.value=O,b.value}},Vhoy:function(k,z,o){"use strict";o.d(z,"d",function(){return b}),o.d(z,"e",function(){return y}),o.d(z,"c",function(){return C}),o.d(z,"b",function(){return A}),o.d(z,"a",function(){return g});var M=o("MI8n");class m{constructor(){this._icons=new Map,this._onDidRegister=new M.b}add(e){const f=this._icons.get(e.id);f?e.description?f.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const O=new m,b=O;function y(e,f){return new A(e,f)}function C(e){return e?e.replace(/\$\((.*?)\)/g,(f,a)=>` ${a} `).trim():""}class A{constructor(e,f,a){this.id=e,this.definition=f,this.description=a,O.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var g;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const f=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function a(i){if(i instanceof A)return["codicon","codicon-"+i.id];const r=f.exec(i.id);if(!r)return a(A.error);let[,c,h]=r;const d=["codicon","codicon-"+c];return h&&d.push("codicon-modifier-"+h.substr(1)),d}e.asClassNameArray=a;function l(i){return a(i).join(" ")}e.asClassName=l;function n(i){return"."+a(i).join(".")}e.asCSSSelector=n})(g||(g={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(A||(A={}))},"VrN/":function(k,z,o){(function(M,m){k.exports=m()})(this,function(){"use strict";var M=navigator.userAgent,m=navigator.platform,O=/gecko\/\d/i.test(M),b=/MSIE \d/.test(M),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(M),C=/Edge\/(\d+)/.exec(M),A=b||y||C,g=A&&(b?document.documentMode||6:+(C||y)[1]),e=!C&&/WebKit\//.test(M),f=e&&/Qt\/\d+\.\d+/.test(M),a=!C&&/Chrome\//.test(M),l=/Opera\//.test(M),n=/Apple Computer/.test(navigator.vendor),i=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(M),r=/PhantomJS/.test(M),c=!C&&/AppleWebKit/.test(M)&&/Mobile\/\w+/.test(M),h=/Android/.test(M),d=c||h||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(M),s=c||/Mac/.test(m),u=/\bCrOS\b/.test(M),w=/win/i.test(m),E=l&&M.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(l=!1,e=!0);var _=s&&(f||l&&(E==null||E<12.11)),P=O||A&&g>=9;function R(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var x=function(t,p){var B=t.className,j=R(p).exec(B);if(j){var G=B.slice(j.index+j[0].length);t.className=B.slice(0,j.index)+(G?j[1]+G:"")}};function S(t){for(var p=t.childNodes.length;p>0;--p)t.removeChild(t.firstChild);return t}function v(t,p){return S(t).appendChild(p)}function T(t,p,B,j){var G=document.createElement(t);if(B&&(G.className=B),j&&(G.style.cssText=j),typeof p=="string")G.appendChild(document.createTextNode(p));else if(p)for(var ne=0;ne<p.length;++ne)G.appendChild(p[ne]);return G}function U(t,p,B,j){var G=T(t,p,B,j);return G.setAttribute("role","presentation"),G}var I;document.createRange?I=function(t,p,B,j){var G=document.createRange();return G.setEnd(j||t,B),G.setStart(t,p),G}:I=function(t,p,B){var j=document.body.createTextRange();try{j.moveToElementText(t.parentNode)}catch(G){return j}return j.collapse(!0),j.moveEnd("character",B),j.moveStart("character",p),j};function N(t,p){if(p.nodeType==3&&(p=p.parentNode),t.contains)return t.contains(p);do if(p.nodeType==11&&(p=p.host),p==t)return!0;while(p=p.parentNode)}function V(){var t;try{t=document.activeElement}catch(p){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function H(t,p){var B=t.className;R(p).test(B)||(t.className+=(B?" ":"")+p)}function D(t,p){for(var B=t.split(" "),j=0;j<B.length;j++)B[j]&&!R(B[j]).test(p)&&(p+=" "+B[j]);return p}var W=function(t){t.select()};c?W=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:A&&(W=function(t){try{t.select()}catch(p){}});function F(t){var p=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,p)}}function L(t,p,B){p||(p={});for(var j in t)t.hasOwnProperty(j)&&(B!==!1||!p.hasOwnProperty(j))&&(p[j]=t[j]);return p}function K(t,p,B,j,G){p==null&&(p=t.search(/[^\s\u00a0]/),p==-1&&(p=t.length));for(var ne=j||0,ge=G||0;;){var Se=t.indexOf(" ",ne);if(Se<0||Se>=p)return ge+(p-ne);ge+=Se-ne,ge+=B-ge%B,ne=Se+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};ee.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},ee.prototype.set=function(t,p){this.f=p;var B=+new Date+t;(!this.id||B<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=B)};function he(t,p){for(var B=0;B<t.length;++B)if(t[B]==p)return B;return-1}var fe=50,Ce={toString:function(){return"CodeMirror.Pass"}},Te={scroll:!1},ce={origin:"*mouse"},ye={origin:"+move"};function Ee(t,p,B){for(var j=0,G=0;;){var ne=t.indexOf(" ",j);ne==-1&&(ne=t.length);var ge=ne-j;if(ne==t.length||G+ge>=p)return j+Math.min(ge,p-G);if(G+=ne-j,G+=B-G%B,j=ne+1,G>=p)return j}}var ue=[""];function se(t){for(;ue.length<=t;)ue.push($(ue)+" ");return ue[t]}function $(t){return t[t.length-1]}function me(t,p){for(var B=[],j=0;j<t.length;j++)B[j]=p(t[j],j);return B}function re(t,p,B){for(var j=0,G=B(p);j<t.length&&B(t[j])<=G;)j++;t.splice(j,0,p)}function ae(){}function we(t,p){var B;return Object.create?B=Object.create(t):(ae.prototype=t,B=new ae),p&&L(p,B),B}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||le.test(t))}function Q(t,p){return p?p.source.indexOf("\\w")>-1&&te(t)?!0:p.test(t):te(t)}function J(t){for(var p in t)if(t.hasOwnProperty(p)&&t[p])return!1;return!0}var ve=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(t){return t.charCodeAt(0)>=768&&ve.test(t)}function Oe(t,p,B){for(;(B<0?p>0:p<t.length)&&_e(t.charAt(p));)p+=B;return p}function Xe(t,p,B){for(var j=p>B?-1:1;;){if(p==B)return p;var G=(p+B)/2,ne=j<0?Math.ceil(G):Math.floor(G);if(ne==p)return t(ne)?p:B;t(ne)?B=ne:p=ne+j}}function tt(t,p,B,j){if(!t)return j(p,B,"ltr",0);for(var G=!1,ne=0;ne<t.length;++ne){var ge=t[ne];(ge.from<B&&ge.to>p||p==B&&ge.to==p)&&(j(Math.max(ge.from,p),Math.min(ge.to,B),ge.level==1?"rtl":"ltr",ne),G=!0)}G||j(p,B,"ltr")}var lt=null;function dt(t,p,B){var j;lt=null;for(var G=0;G<t.length;++G){var ne=t[G];if(ne.from<p&&ne.to>p)return G;ne.to==p&&(ne.from!=ne.to&&B=="before"?j=G:lt=G),ne.from==p&&(ne.from!=ne.to&&B!="before"?j=G:lt=G)}return j!=null?j:lt}var vt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function B(Be){return Be<=247?t.charAt(Be):1424<=Be&&Be<=1524?"R":1536<=Be&&Be<=1785?p.charAt(Be-1536):1774<=Be&&Be<=2220?"r":8192<=Be&&Be<=8203?"w":Be==8204?"b":"L"}var j=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,G=/[stwN]/,ne=/[LRr]/,ge=/[Lb1n]/,Se=/[1n]/;function Pe(Be,gt,Dt){this.level=Be,this.from=gt,this.to=Dt}return function(Be,gt){var Dt=gt=="ltr"?"L":"R";if(Be.length==0||gt=="ltr"&&!j.test(Be))return!1;for(var tn=Be.length,Gt=[],On=0;On<tn;++On)Gt.push(B(Be.charCodeAt(On)));for(var Kn=0,er=Dt;Kn<tn;++Kn){var yr=Gt[Kn];yr=="m"?Gt[Kn]=er:er=yr}for(var kr=0,Er=Dt;kr<tn;++kr){var Xr=Gt[kr];Xr=="1"&&Er=="r"?Gt[kr]="n":ne.test(Xr)&&(Er=Xr,Xr=="r"&&(Gt[kr]="R"))}for(var ia=1,ea=Gt[0];ia<tn-1;++ia){var wa=Gt[ia];wa=="+"&&ea=="1"&&Gt[ia+1]=="1"?Gt[ia]="1":wa==","&&ea==Gt[ia+1]&&(ea=="1"||ea=="n")&&(Gt[ia]=ea),ea=wa}for(var Va=0;Va<tn;++Va){var vi=Gt[Va];if(vi==",")Gt[Va]="N";else if(vi=="%"){var ti=void 0;for(ti=Va+1;ti<tn&&Gt[ti]=="%";++ti);for(var zi=Va&&Gt[Va-1]=="!"||ti<tn&&Gt[ti]=="1"?"1":"N",Ui=Va;Ui<ti;++Ui)Gt[Ui]=zi;Va=ti-1}}for(var ci=0,ji=Dt;ci<tn;++ci){var Ci=Gt[ci];ji=="L"&&Ci=="1"?Gt[ci]="L":ne.test(Ci)&&(ji=Ci)}for(var pi=0;pi<tn;++pi)if(G.test(Gt[pi])){var di=void 0;for(di=pi+1;di<tn&&G.test(Gt[di]);++di);for(var ii=(pi?Gt[pi-1]:Dt)=="L",Bi=(di<tn?Gt[di]:Dt)=="L",Ts=ii==Bi?ii?"L":"R":Dt,es=pi;es<di;++es)Gt[es]=Ts;pi=di-1}for(var Oi=[],Po,_i=0;_i<tn;)if(ge.test(Gt[_i])){var ru=_i;for(++_i;_i<tn&&ge.test(Gt[_i]);++_i);Oi.push(new Pe(0,ru,_i))}else{var Fo=_i,ds=Oi.length,fs=gt=="rtl"?1:0;for(++_i;_i<tn&&Gt[_i]!="L";++_i);for(var Mi=Fo;Mi<_i;)if(Se.test(Gt[Mi])){Fo<Mi&&(Oi.splice(ds,0,new Pe(1,Fo,Mi)),ds+=fs);var Os=Mi;for(++Mi;Mi<_i&&Se.test(Gt[Mi]);++Mi);Oi.splice(ds,0,new Pe(2,Os,Mi)),ds+=fs,Fo=Mi}else++Mi;Fo<_i&&Oi.splice(ds,0,new Pe(1,Fo,_i))}return gt=="ltr"&&(Oi[0].level==1&&(Po=Be.match(/^\s+/))&&(Oi[0].from=Po[0].length,Oi.unshift(new Pe(0,0,Po[0].length))),$(Oi).level==1&&(Po=Be.match(/\s+$/))&&($(Oi).to-=Po[0].length,Oi.push(new Pe(0,tn-Po[0].length,tn)))),gt=="rtl"?Oi.reverse():Oi}}();function _t(t,p){var B=t.order;return B==null&&(B=t.order=vt(t.text,p)),B}var Ye=[],je=function(t,p,B){if(t.addEventListener)t.addEventListener(p,B,!1);else if(t.attachEvent)t.attachEvent("on"+p,B);else{var j=t._handlers||(t._handlers={});j[p]=(j[p]||Ye).concat(B)}};function ht(t,p){return t._handlers&&t._handlers[p]||Ye}function Bt(t,p,B){if(t.removeEventListener)t.removeEventListener(p,B,!1);else if(t.detachEvent)t.detachEvent("on"+p,B);else{var j=t._handlers,G=j&&j[p];if(G){var ne=he(G,B);ne>-1&&(j[p]=G.slice(0,ne).concat(G.slice(ne+1)))}}}function Et(t,p){var B=ht(t,p);if(!B.length)return;for(var j=Array.prototype.slice.call(arguments,2),G=0;G<B.length;++G)B[G].apply(null,j)}function Pt(t,p,B){return typeof p=="string"&&(p={type:p,preventDefault:function(){this.defaultPrevented=!0}}),Et(t,B||p.type,t,p),He(p)||p.codemirrorIgnore}function Ze(t){var p=t._handlers&&t._handlers.cursorActivity;if(!p)return;for(var B=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),j=0;j<p.length;++j)he(B,p[j])==-1&&B.push(p[j])}function We(t,p){return ht(t,p).length>0}function Je(t){t.prototype.on=function(p,B){je(this,p,B)},t.prototype.off=function(p,B){Bt(this,p,B)}}function Ae(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ue(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function He(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Fe(t){Ae(t),Ue(t)}function et(t){return t.target||t.srcElement}function mt(t){var p=t.which;return p==null&&(t.button&1?p=1:t.button&2?p=3:t.button&4&&(p=2)),s&&t.ctrlKey&&p==1&&(p=3),p}var Lt=function(){if(A&&g<9)return!1;var t=T("div");return"draggable"in t||"dragDrop"in t}(),Xt;function rn(t){if(Xt==null){var p=T("span","\u200B");v(t,T("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Xt=p.offsetWidth<=1&&p.offsetHeight>2&&!(A&&g<8))}var B=Xt?T("span","\u200B"):T("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return B.setAttribute("cm-text",""),B}var wt;function bt(t){if(wt!=null)return wt;var p=v(t,document.createTextNode("A\u062EA")),B=I(p,0,1).getBoundingClientRect(),j=I(p,1,2).getBoundingClientRect();return S(t),!B||B.left==B.right?!1:wt=j.right-B.right<3}var ke=`
b`.split(/\n/).length!=3?function(t){for(var p=0,B=[],j=t.length;p<=j;){var G=t.indexOf(`
`,p);G==-1&&(G=t.length);var ne=t.slice(p,t.charAt(G-1)=="\r"?G-1:G),ge=ne.indexOf("\r");ge!=-1?(B.push(ne.slice(0,ge)),p+=ge+1):(B.push(ne),p=G+1)}return B}:function(t){return t.split(/\r\n?|\n/)},nt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(p){return!1}}:function(t){var p;try{p=t.ownerDocument.selection.createRange()}catch(B){}return!p||p.parentElement()!=t?!1:p.compareEndPoints("StartToEnd",p)!=0},rt=function(){var t=T("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),De=null;function Ke(t){if(De!=null)return De;var p=v(t,T("span","x")),B=p.getBoundingClientRect(),j=I(p,0,1).getBoundingClientRect();return De=Math.abs(B.left-j.left)>1}var Ct={},ft={};function xt(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),Ct[t]=p}function Mt(t,p){ft[t]=p}function ct(t){if(typeof t=="string"&&ft.hasOwnProperty(t))t=ft[t];else if(t&&typeof t.name=="string"&&ft.hasOwnProperty(t.name)){var p=ft[t.name];typeof p=="string"&&(p={name:p}),t=we(p,t),t.name=p.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return ct("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return ct("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Ut(t,p){p=ct(p);var B=Ct[p.name];if(!B)return Ut(t,"text/plain");var j=B(t,p);if(Ft.hasOwnProperty(p.name)){var G=Ft[p.name];for(var ne in G){if(!G.hasOwnProperty(ne))continue;j.hasOwnProperty(ne)&&(j["_"+ne]=j[ne]),j[ne]=G[ne]}}if(j.name=p.name,p.helperType&&(j.helperType=p.helperType),p.modeProps)for(var ge in p.modeProps)j[ge]=p.modeProps[ge];return j}var Ft={};function on(t,p){var B=Ft.hasOwnProperty(t)?Ft[t]:Ft[t]={};L(p,B)}function cn(t,p){if(p===!0)return p;if(t.copyState)return t.copyState(p);var B={};for(var j in p){var G=p[j];G instanceof Array&&(G=G.concat([])),B[j]=G}return B}function ln(t,p){for(var B;t.innerMode&&!(B=t.innerMode(p),!B||B.mode==t);)p=B.state,t=B.mode;return B||{mode:t,state:p}}function kn(t,p,B){return t.startState?t.startState(p,B):!0}var In=function(t,p,B){this.pos=this.start=0,this.string=t,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=B};In.prototype.eol=function(){return this.pos>=this.string.length},In.prototype.sol=function(){return this.pos==this.lineStart},In.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},In.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},In.prototype.eat=function(t){var p=this.string.charAt(this.pos),B;if(typeof t=="string"?B=p==t:B=p&&(t.test?t.test(p):t(p)),B)return++this.pos,p},In.prototype.eatWhile=function(t){for(var p=this.pos;this.eat(t););return this.pos>p},In.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},In.prototype.skipToEnd=function(){this.pos=this.string.length},In.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},In.prototype.backUp=function(t){this.pos-=t},In.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},In.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},In.prototype.match=function(t,p,B){if(typeof t=="string"){var j=function(ge){return B?ge.toLowerCase():ge},G=this.string.substr(this.pos,t.length);if(j(G)==j(t))return p!==!1&&(this.pos+=t.length),!0}else{var ne=this.string.slice(this.pos).match(t);return ne&&ne.index>0?null:(ne&&p!==!1&&(this.pos+=ne[0].length),ne)}},In.prototype.current=function(){return this.string.slice(this.start,this.pos)},In.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},In.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},In.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function sn(t,p){if(p-=t.first,p<0||p>=t.size)throw new Error("There is no line "+(p+t.first)+" in the document.");for(var B=t;!B.lines;)for(var j=0;;++j){var G=B.children[j],ne=G.chunkSize();if(p<ne){B=G;break}p-=ne}return B.lines[p]}function Gn(t,p,B){var j=[],G=p.line;return t.iter(p.line,B.line+1,function(ne){var ge=ne.text;G==B.line&&(ge=ge.slice(0,B.ch)),G==p.line&&(ge=ge.slice(p.ch)),j.push(ge),++G}),j}function Nn(t,p,B){var j=[];return t.iter(p,B,function(G){j.push(G.text)}),j}function Vn(t,p){var B=p-t.height;if(B)for(var j=t;j;j=j.parent)j.height+=B}function Zn(t){if(t.parent==null)return null;for(var p=t.parent,B=he(p.lines,t),j=p.parent;j;p=j,j=j.parent)for(var G=0;!(j.children[G]==p);++G)B+=j.children[G].chunkSize();return B+p.first}function xr(t,p){var B=t.first;e:do{for(var j=0;j<t.children.length;++j){var G=t.children[j],ne=G.height;if(p<ne){t=G;continue e}p-=ne,B+=G.chunkSize()}return B}while(!t.lines);for(var ge=0;ge<t.lines.length;++ge){var Se=t.lines[ge],Pe=Se.height;if(p<Pe)break;p-=Pe}return B+ge}function dr(t,p){return p>=t.first&&p<t.first+t.size}function un(t,p){return String(t.lineNumberFormatter(p+t.firstLineNumber))}function $t(t,p,B){if(B===void 0&&(B=null),!(this instanceof $t))return new $t(t,p,B);this.line=t,this.ch=p,this.sticky=B}function An(t,p){return t.line-p.line||t.ch-p.ch}function Ur(t,p){return t.sticky==p.sticky&&An(t,p)==0}function Ar(t){return $t(t.line,t.ch)}function Cr(t,p){return An(t,p)<0?p:t}function gr(t,p){return An(t,p)<0?t:p}function pe(t,p){return Math.max(t.first,Math.min(p,t.first+t.size-1))}function X(t,p){if(p.line<t.first)return $t(t.first,0);var B=t.first+t.size-1;return p.line>B?$t(B,sn(t,B).text.length):q(p,sn(t,p.line).text.length)}function q(t,p){var B=t.ch;return B==null||B>p?$t(t.line,p):B<0?$t(t.line,0):t}function oe(t,p){for(var B=[],j=0;j<p.length;j++)B[j]=X(t,p[j]);return B}var Re=function(t,p){this.state=t,this.lookAhead=p},de=function(t,p,B,j){this.state=p,this.doc=t,this.line=B,this.maxLookAhead=j||0,this.baseTokens=null,this.baseTokenPos=1};de.prototype.lookAhead=function(t){var p=this.doc.getLine(this.line+t);return p!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),p},de.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var p=this.baseTokens[this.baseTokenPos+1];return{type:p&&p.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},de.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},de.fromSaved=function(t,p,B){return p instanceof Re?new de(t,cn(t.mode,p.state),B,p.lookAhead):new de(t,cn(t.mode,p),B)},de.prototype.save=function(t){var p=t!==!1?cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Re(p,this.maxLookAhead):p};function ot(t,p,B,j){var G=[t.state.modeGen],ne={};oa(t,p.text,t.doc.mode,B,function(Be,gt){return G.push(Be,gt)},ne,j);for(var ge=B.state,Se=function(Be){B.baseTokens=G;var gt=t.state.overlays[Be],Dt=1,tn=0;B.state=!0,oa(t,p.text,gt.mode,B,function(Gt,On){for(var Kn=Dt;tn<Gt;){var er=G[Dt];er>Gt&&G.splice(Dt,1,Gt,G[Dt+1],er),Dt+=2,tn=Math.min(Gt,er)}if(!On)return;if(gt.opaque)G.splice(Kn,Dt-Kn,Gt,"overlay "+On),Dt=Kn+2;else for(;Kn<Dt;Kn+=2){var yr=G[Kn+1];G[Kn+1]=(yr?yr+" ":"")+"overlay "+On}},ne),B.state=ge,B.baseTokens=null,B.baseTokenPos=1},Pe=0;Pe<t.state.overlays.length;++Pe)Se(Pe);return{styles:G,classes:ne.bgClass||ne.textClass?ne:null}}function Qt(t,p,B){if(!p.styles||p.styles[0]!=t.state.modeGen){var j=Ln(t,Zn(p)),G=p.text.length>t.options.maxHighlightLength&&cn(t.doc.mode,j.state),ne=ot(t,p,j);G&&(j.state=G),p.stateAfter=j.save(!G),p.styles=ne.styles,ne.classes?p.styleClasses=ne.classes:p.styleClasses&&(p.styleClasses=null),B===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return p.styles}function Ln(t,p,B){var j=t.doc,G=t.display;if(!j.mode.startState)return new de(j,!0,p);var ne=rr(t,p,B),ge=ne>j.first&&sn(j,ne-1).stateAfter,Se=ge?de.fromSaved(j,ge,ne):new de(j,kn(j.mode),ne);return j.iter(ne,p,function(Pe){Jn(t,Pe.text,Se);var Be=Se.line;Pe.stateAfter=Be==p-1||Be%5==0||Be>=G.viewFrom&&Be<G.viewTo?Se.save():null,Se.nextLine()}),B&&(j.modeFrontier=Se.line),Se}function Jn(t,p,B,j){var G=t.doc.mode,ne=new In(p,t.options.tabSize,B);for(ne.start=ne.pos=j||0,p==""&&Zt(G,B.state);!ne.eol();)En(G,ne,B.state),ne.start=ne.pos}function Zt(t,p){if(t.blankLine)return t.blankLine(p);if(!t.innerMode)return;var B=ln(t,p);if(B.mode.blankLine)return B.mode.blankLine(B.state)}function En(t,p,B,j){for(var G=0;G<10;G++){j&&(j[0]=ln(t,B).mode);var ne=t.token(p,B);if(p.pos>p.start)return ne}throw new Error("Mode "+t.name+" failed to advance stream.")}var fn=function(t,p,B){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=B};function Br(t,p,B,j){var G=t.doc,ne=G.mode,ge;p=X(G,p);var Se=sn(G,p.line),Pe=Ln(t,p.line,B),Be=new In(Se.text,t.options.tabSize,Pe),gt;for(j&&(gt=[]);(j||Be.pos<p.ch)&&!Be.eol();)Be.start=Be.pos,ge=En(ne,Be,Pe.state),j&&gt.push(new fn(Be,ge,cn(G.mode,Pe.state)));return j?gt:new fn(Be,ge,Pe.state)}function ra(t,p){if(t)for(;;){var B=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!B)break;t=t.slice(0,B.index)+t.slice(B.index+B[0].length);var j=B[1]?"bgClass":"textClass";p[j]==null?p[j]=B[2]:new RegExp("(?:^|\\s)"+B[2]+"(?:$|\\s)").test(p[j])||(p[j]+=" "+B[2])}return t}function oa(t,p,B,j,G,ne,ge){var Se=B.flattenSpans;Se==null&&(Se=t.options.flattenSpans);var Pe=0,Be=null,gt=new In(p,t.options.tabSize,j),Dt,tn=t.options.addModeClass&&[null];for(p==""&&ra(Zt(B,j.state),ne);!gt.eol();){if(gt.pos>t.options.maxHighlightLength?(Se=!1,ge&&Jn(t,p,j,gt.pos),gt.pos=p.length,Dt=null):Dt=ra(En(B,gt,j.state,tn),ne),tn){var Gt=tn[0].name;Gt&&(Dt="m-"+(Dt?Gt+" "+Dt:Gt))}if(!Se||Be!=Dt){for(;Pe<gt.start;)Pe=Math.min(gt.start,Pe+5e3),G(Pe,Be);Be=Dt}gt.start=gt.pos}for(;Pe<gt.pos;){var On=Math.min(gt.pos,Pe+5e3);G(On,Be),Pe=On}}function rr(t,p,B){for(var j,G,ne=t.doc,ge=B?-1:p-(t.doc.mode.innerMode?1e3:100),Se=p;Se>ge;--Se){if(Se<=ne.first)return ne.first;var Pe=sn(ne,Se-1),Be=Pe.stateAfter;if(Be&&(!B||Se+(Be instanceof Re?Be.lookAhead:0)<=ne.modeFrontier))return Se;var gt=K(Pe.text,null,t.options.tabSize);(G==null||j>gt)&&(G=Se-1,j=gt)}return G}function Ba(t,p){if(t.modeFrontier=Math.min(t.modeFrontier,p),t.highlightFrontier<p-10)return;for(var B=t.first,j=p-1;j>B;j--){var G=sn(t,j).stateAfter;if(G&&(!(G instanceof Re)||j+G.lookAhead<p)){B=j+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,B)}var Ea=!1,ca=!1;function Ka(){Ea=!0}function Ta(){ca=!0}function Ja(t,p,B){this.marker=t,this.from=p,this.to=B}function Ua(t,p){if(t)for(var B=0;B<t.length;++B){var j=t[B];if(j.marker==p)return j}}function li(t,p){for(var B,j=0;j<t.length;++j)t[j]!=p&&(B||(B=[])).push(t[j]);return B}function oi(t,p){t.markedSpans=t.markedSpans?t.markedSpans.concat([p]):[p],p.marker.attachLine(t)}function fa(t,p,B){var j;if(t)for(var G=0;G<t.length;++G){var ne=t[G],ge=ne.marker,Se=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from<p);if(Se||ne.from==p&&ge.type=="bookmark"&&(!B||!ne.marker.insertLeft)){var Pe=ne.to==null||(ge.inclusiveRight?ne.to>=p:ne.to>p);(j||(j=[])).push(new Ja(ge,ne.from,Pe?null:ne.to))}}return j}function ma(t,p,B){var j;if(t)for(var G=0;G<t.length;++G){var ne=t[G],ge=ne.marker,Se=ne.to==null||(ge.inclusiveRight?ne.to>=p:ne.to>p);if(Se||ne.from==p&&ge.type=="bookmark"&&(!B||ne.marker.insertLeft)){var Pe=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from<p);(j||(j=[])).push(new Ja(ge,Pe?null:ne.from-p,ne.to==null?null:ne.to-p))}}return j}function la(t,p){if(p.full)return null;var B=dr(t,p.from.line)&&sn(t,p.from.line).markedSpans,j=dr(t,p.to.line)&&sn(t,p.to.line).markedSpans;if(!B&&!j)return null;var G=p.from.ch,ne=p.to.ch,ge=An(p.from,p.to)==0,Se=fa(B,G,ge),Pe=ma(j,ne,ge),Be=p.text.length==1,gt=$(p.text).length+(Be?G:0);if(Se)for(var Dt=0;Dt<Se.length;++Dt){var tn=Se[Dt];if(tn.to==null){var Gt=Ua(Pe,tn.marker);Gt?Be&&(tn.to=Gt.to==null?null:Gt.to+gt):tn.to=G}}if(Pe)for(var On=0;On<Pe.length;++On){var Kn=Pe[On];if(Kn.to!=null&&(Kn.to+=gt),Kn.from==null){var er=Ua(Se,Kn.marker);er||(Kn.from=gt,Be&&(Se||(Se=[])).push(Kn))}else Kn.from+=gt,Be&&(Se||(Se=[])).push(Kn)}Se&&(Se=xe(Se)),Pe&&Pe!=Se&&(Pe=xe(Pe));var yr=[Se];if(!Be){var kr=p.text.length-2,Er;if(kr>0&&Se)for(var Xr=0;Xr<Se.length;++Xr)Se[Xr].to==null&&(Er||(Er=[])).push(new Ja(Se[Xr].marker,null,null));for(var ia=0;ia<kr;++ia)yr.push(Er);yr.push(Pe)}return yr}function xe(t){for(var p=0;p<t.length;++p){var B=t[p];B.from!=null&&B.from==B.to&&B.marker.clearWhenEmpty!==!1&&t.splice(p--,1)}return t.length?t:null}function st(t,p,B){var j=null;if(t.iter(p.line,B.line+1,function(Gt){if(Gt.markedSpans)for(var On=0;On<Gt.markedSpans.length;++On){var Kn=Gt.markedSpans[On].marker;Kn.readOnly&&(!j||he(j,Kn)==-1)&&(j||(j=[])).push(Kn)}}),!j)return null;for(var G=[{from:p,to:B}],ne=0;ne<j.length;++ne)for(var ge=j[ne],Se=ge.find(0),Pe=0;Pe<G.length;++Pe){var Be=G[Pe];if(An(Be.to,Se.from)<0||An(Be.from,Se.to)>0)continue;var gt=[Pe,1],Dt=An(Be.from,Se.from),tn=An(Be.to,Se.to);(Dt<0||!ge.inclusiveLeft&&!Dt)&&gt.push({from:Be.from,to:Se.from}),(tn>0||!ge.inclusiveRight&&!tn)&&gt.push({from:Se.to,to:Be.to}),G.splice.apply(G,gt),Pe+=gt.length-3}return G}function Rt(t){var p=t.markedSpans;if(!p)return;for(var B=0;B<p.length;++B)p[B].marker.detachLine(t);t.markedSpans=null}function Ot(t,p){if(!p)return;for(var B=0;B<p.length;++B)p[B].marker.attachLine(t);t.markedSpans=p}function Ht(t){return t.inclusiveLeft?-1:0}function Nt(t){return t.inclusiveRight?1:0}function Vt(t,p){var B=t.lines.length-p.lines.length;if(B!=0)return B;var j=t.find(),G=p.find(),ne=An(j.from,G.from)||Ht(t)-Ht(p);if(ne)return-ne;var ge=An(j.to,G.to)||Nt(t)-Nt(p);return ge||p.id-t.id}function nn(t,p){var B=ca&&t.markedSpans,j;if(B)for(var G=void 0,ne=0;ne<B.length;++ne)G=B[ne],G.marker.collapsed&&(p?G.from:G.to)==null&&(!j||Vt(j,G.marker)<0)&&(j=G.marker);return j}function xn(t){return nn(t,!0)}function _n(t){return nn(t,!1)}function Bn(t,p){var B=ca&&t.markedSpans,j;if(B)for(var G=0;G<B.length;++G){var ne=B[G];ne.marker.collapsed&&(ne.from==null||ne.from<p)&&(ne.to==null||ne.to>p)&&(!j||Vt(j,ne.marker)<0)&&(j=ne.marker)}return j}function Dn(t,p,B,j,G){var ne=sn(t,p),ge=ca&&ne.markedSpans;if(ge)for(var Se=0;Se<ge.length;++Se){var Pe=ge[Se];if(!Pe.marker.collapsed)continue;var Be=Pe.marker.find(0),gt=An(Be.from,B)||Ht(Pe.marker)-Ht(G),Dt=An(Be.to,j)||Nt(Pe.marker)-Nt(G);if(gt>=0&&Dt<=0||gt<=0&&Dt>=0)continue;if(gt<=0&&(Pe.marker.inclusiveRight&&G.inclusiveLeft?An(Be.to,B)>=0:An(Be.to,B)>0)||gt>=0&&(Pe.marker.inclusiveRight&&G.inclusiveLeft?An(Be.from,j)<=0:An(Be.from,j)<0))return!0}}function an(t){for(var p;p=xn(t);)t=p.find(-1,!0).line;return t}function Mn(t){for(var p;p=_n(t);)t=p.find(1,!0).line;return t}function yn(t){for(var p,B;p=_n(t);)t=p.find(1,!0).line,(B||(B=[])).push(t);return B}function Fn(t,p){var B=sn(t,p),j=an(B);return B==j?p:Zn(j)}function Pn(t,p){if(p>t.lastLine())return p;var B=sn(t,p),j;if(!qn(t,B))return p;for(;j=_n(B);)B=j.find(1,!0).line;return Zn(B)+1}function qn(t,p){var B=ca&&p.markedSpans;if(B)for(var j=void 0,G=0;G<B.length;++G){if(j=B[G],!j.marker.collapsed)continue;if(j.from==null)return!0;if(j.marker.widgetNode)continue;if(j.from==0&&j.marker.inclusiveLeft&&pr(t,p,j))return!0}}function pr(t,p,B){if(B.to==null){var j=B.marker.find(1,!0);return pr(t,j.line,Ua(j.line.markedSpans,B.marker))}if(B.marker.inclusiveRight&&B.to==p.text.length)return!0;for(var G=void 0,ne=0;ne<p.markedSpans.length;++ne)if(G=p.markedSpans[ne],G.marker.collapsed&&!G.marker.widgetNode&&G.from==B.to&&(G.to==null||G.to!=B.from)&&(G.marker.inclusiveLeft||B.marker.inclusiveRight)&&pr(t,p,G))return!0}function Fr(t){t=an(t);for(var p=0,B=t.parent,j=0;j<B.lines.length;++j){var G=B.lines[j];if(G==t)break;p+=G.height}for(var ne=B.parent;ne;B=ne,ne=B.parent)for(var ge=0;ge<ne.children.length;++ge){var Se=ne.children[ge];if(Se==B)break;p+=Se.height}return p}function wn(t){if(t.height==0)return 0;for(var p=t.text.length,B,j=t;B=xn(j);){var G=B.find(0,!0);j=G.from.line,p+=G.from.ch-G.to.ch}for(j=t;B=_n(j);){var ne=B.find(0,!0);p-=j.text.length-ne.from.ch,j=ne.to.line,p+=j.text.length-ne.to.ch}return p}function Yt(t){var p=t.display,B=t.doc;p.maxLine=sn(B,B.first),p.maxLineLength=wn(p.maxLine),p.maxLineChanged=!0,B.iter(function(j){var G=wn(j);G>p.maxLineLength&&(p.maxLineLength=G,p.maxLine=j)})}var mn=function(t,p,B){this.text=t,Ot(this,p),this.height=B?B(this):1};mn.prototype.lineNo=function(){return Zn(this)},Je(mn);function Rn(t,p,B,j){t.text=p,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Rt(t),Ot(t,B);var G=j?j(t):1;G!=t.height&&Vn(t,G)}function en(t){t.parent=null,Rt(t)}var Tn={},bn={};function Un(t,p){if(!t||/^\s*$/.test(t))return null;var B=p.addModeClass?bn:Tn;return B[t]||(B[t]=t.replace(/\S+/g,"cm-$&"))}function Wn(t,p){var B=U("span",null,null,e?"padding-right: .1px":null),j={pre:U("pre",[B],"CodeMirror-line"),content:B,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};p.measure={};for(var G=0;G<=(p.rest?p.rest.length:0);G++){var ne=G?p.rest[G-1]:p.line,ge=void 0;j.pos=0,j.addToken=tr,bt(t.display.measure)&&(ge=_t(ne,t.doc.direction))&&(j.addToken=Ir(j.addToken,ge)),j.map=[];var Se=p!=t.display.externalMeasured&&Zn(ne);Dr(ne,j,Qt(t,ne,Se)),ne.styleClasses&&(ne.styleClasses.bgClass&&(j.bgClass=D(ne.styleClasses.bgClass,j.bgClass||"")),ne.styleClasses.textClass&&(j.textClass=D(ne.styleClasses.textClass,j.textClass||""))),j.map.length==0&&j.map.push(0,0,j.content.appendChild(rn(t.display.measure))),G==0?(p.measure.map=j.map,p.measure.cache={}):((p.measure.maps||(p.measure.maps=[])).push(j.map),(p.measure.caches||(p.measure.caches=[])).push({}))}if(e){var Pe=j.content.lastChild;(/\bcm-tab\b/.test(Pe.className)||Pe.querySelector&&Pe.querySelector(".cm-tab"))&&(j.content.className="cm-tab-wrap-hack")}return Et(t,"renderLine",t,p.line,j.pre),j.pre.className&&(j.textClass=D(j.pre.className,j.textClass||"")),j}function sr(t){var p=T("span","\u2022","cm-invalidchar");return p.title="\\u"+t.charCodeAt(0).toString(16),p.setAttribute("aria-label",p.title),p}function tr(t,p,B,j,G,ne,ge){if(!p)return;var Se=t.splitSpaces?Rr(p,t.trailingSpace):p,Pe=t.cm.state.specialChars,Be=!1,gt;if(!Pe.test(p))t.col+=p.length,gt=document.createTextNode(Se),t.map.push(t.pos,t.pos+p.length,gt),A&&g<9&&(Be=!0),t.pos+=p.length;else{gt=document.createDocumentFragment();for(var Dt=0;;){Pe.lastIndex=Dt;var tn=Pe.exec(p),Gt=tn?tn.index-Dt:p.length-Dt;if(Gt){var On=document.createTextNode(Se.slice(Dt,Dt+Gt));A&&g<9?gt.appendChild(T("span",[On])):gt.appendChild(On),t.map.push(t.pos,t.pos+Gt,On),t.col+=Gt,t.pos+=Gt}if(!tn)break;Dt+=Gt+1;var Kn=void 0;if(tn[0]==" "){var er=t.cm.options.tabSize,yr=er-t.col%er;Kn=gt.appendChild(T("span",se(yr),"cm-tab")),Kn.setAttribute("role","presentation"),Kn.setAttribute("cm-text"," "),t.col+=yr}else tn[0]=="\r"||tn[0]==`
`?(Kn=gt.appendChild(T("span",tn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Kn.setAttribute("cm-text",tn[0]),t.col+=1):(Kn=t.cm.options.specialCharPlaceholder(tn[0]),Kn.setAttribute("cm-text",tn[0]),A&&g<9?gt.appendChild(T("span",[Kn])):gt.appendChild(Kn),t.col+=1);t.map.push(t.pos,t.pos+1,Kn),t.pos++}}if(t.trailingSpace=Se.charCodeAt(p.length-1)==32,B||j||G||Be||ne||ge){var kr=B||"";j&&(kr+=j),G&&(kr+=G);var Er=T("span",[gt],kr,ne);if(ge)for(var Xr in ge)ge.hasOwnProperty(Xr)&&Xr!="style"&&Xr!="class"&&Er.setAttribute(Xr,ge[Xr]);return t.content.appendChild(Er)}t.content.appendChild(gt)}function Rr(t,p){if(t.length>1&&!/ /.test(t))return t;for(var B=p,j="",G=0;G<t.length;G++){var ne=t.charAt(G);ne==" "&&B&&(G==t.length-1||t.charCodeAt(G+1)==32)&&(ne="\xA0"),j+=ne,B=ne==" "}return j}function Ir(t,p){return function(B,j,G,ne,ge,Se,Pe){G=G?G+" cm-force-border":"cm-force-border";for(var Be=B.pos,gt=Be+j.length;;){for(var Dt=void 0,tn=0;tn<p.length&&!(Dt=p[tn],Dt.to>Be&&Dt.from<=Be);tn++);if(Dt.to>=gt)return t(B,j,G,ne,ge,Se,Pe);t(B,j.slice(0,Dt.to-Be),G,ne,null,Se,Pe),ne=null,j=j.slice(Dt.to-Be),Be=Dt.to}}}function $n(t,p,B,j){var G=!j&&B.widgetNode;G&&t.map.push(t.pos,t.pos+p,G),!j&&t.cm.display.input.needsContentAttribute&&(G||(G=t.content.appendChild(document.createElement("span"))),G.setAttribute("cm-marker",B.id)),G&&(t.cm.display.input.setUneditable(G),t.content.appendChild(G)),t.pos+=p,t.trailingSpace=!1}function Dr(t,p,B){var j=t.markedSpans,G=t.text,ne=0;if(!j){for(var ge=1;ge<B.length;ge+=2)p.addToken(p,G.slice(ne,ne=B[ge]),Un(B[ge+1],p.cm.options));return}for(var Se=G.length,Pe=0,Be=1,gt="",Dt,tn,Gt=0,On,Kn,er,yr,kr;;){if(Gt==Pe){On=Kn=er=tn="",kr=null,yr=null,Gt=Infinity;for(var Er=[],Xr=void 0,ia=0;ia<j.length;++ia){var ea=j[ia],wa=ea.marker;if(wa.type=="bookmark"&&ea.from==Pe&&wa.widgetNode)Er.push(wa);else if(ea.from<=Pe&&(ea.to==null||ea.to>Pe||wa.collapsed&&ea.to==Pe&&ea.from==Pe)){if(ea.to!=null&&ea.to!=Pe&&Gt>ea.to&&(Gt=ea.to,Kn=""),wa.className&&(On+=" "+wa.className),wa.css&&(tn=(tn?tn+";":"")+wa.css),wa.startStyle&&ea.from==Pe&&(er+=" "+wa.startStyle),wa.endStyle&&ea.to==Gt&&(Xr||(Xr=[])).push(wa.endStyle,ea.to),wa.title&&((kr||(kr={})).title=wa.title),wa.attributes)for(var Va in wa.attributes)(kr||(kr={}))[Va]=wa.attributes[Va];wa.collapsed&&(!yr||Vt(yr.marker,wa)<0)&&(yr=ea)}else ea.from>Pe&&Gt>ea.from&&(Gt=ea.from)}if(Xr)for(var vi=0;vi<Xr.length;vi+=2)Xr[vi+1]==Gt&&(Kn+=" "+Xr[vi]);if(!yr||yr.from==Pe)for(var ti=0;ti<Er.length;++ti)$n(p,0,Er[ti]);if(yr&&(yr.from||0)==Pe){if($n(p,(yr.to==null?Se+1:yr.to)-Pe,yr.marker,yr.from==null),yr.to==null)return;yr.to==Pe&&(yr=!1)}}if(Pe>=Se)break;for(var zi=Math.min(Se,Gt);;){if(gt){var Ui=Pe+gt.length;if(!yr){var ci=Ui>zi?gt.slice(0,zi-Pe):gt;p.addToken(p,ci,Dt?Dt+On:On,er,Pe+ci.length==Gt?Kn:"",tn,kr)}if(Ui>=zi){gt=gt.slice(zi-Pe),Pe=zi;break}Pe=Ui,er=""}gt=G.slice(ne,ne=B[Be++]),Dt=Un(B[Be++],p.cm.options)}}}function vr(t,p,B){this.line=p,this.rest=yn(p),this.size=this.rest?Zn($(this.rest))-B+1:1,this.node=this.text=null,this.hidden=qn(t,p)}function zr(t,p,B){for(var j=[],G,ne=p;ne<B;ne=G){var ge=new vr(t.doc,sn(t.doc,ne),ne);G=ne+ge.size,j.push(ge)}return j}var Lr=null;function $r(t){Lr?Lr.ops.push(t):t.ownsGroup=Lr={ops:[t],delayedCallbacks:[]}}function ir(t){var p=t.delayedCallbacks,B=0;do{for(;B<p.length;B++)p[B].call(null);for(var j=0;j<t.ops.length;j++){var G=t.ops[j];if(G.cursorActivityHandlers)for(;G.cursorActivityCalled<G.cursorActivityHandlers.length;)G.cursorActivityHandlers[G.cursorActivityCalled++].call(null,G.cm)}}while(B<p.length)}function Kt(t,p){var B=t.ownsGroup;if(!B)return;try{ir(B)}finally{Lr=null,p(B)}}var qt=null;function Jt(t,p){var B=ht(t,p);if(!B.length)return;var j=Array.prototype.slice.call(arguments,2),G;Lr?G=Lr.delayedCallbacks:qt?G=qt:(G=qt=[],setTimeout(Qn,0));for(var ne=function(Se){G.push(function(){return B[Se].apply(null,j)})},ge=0;ge<B.length;++ge)ne(ge)}function Qn(){var t=qt;qt=null;for(var p=0;p<t.length;++p)t[p]()}function nr(t,p,B,j){for(var G=0;G<p.changes.length;G++){var ne=p.changes[G];ne=="text"?lr(t,p):ne=="gutter"?ur(t,p,B,j):ne=="class"?qr(t,p):ne=="widget"&&da(t,p,j)}p.changes=null}function jn(t){return t.node==t.text&&(t.node=T("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),A&&g<8&&(t.node.style.zIndex=2)),t.node}function or(t,p){var B=p.bgClass?p.bgClass+" "+(p.line.bgClass||""):p.line.bgClass;if(B&&(B+=" CodeMirror-linebackground"),p.background)B?p.background.className=B:(p.background.parentNode.removeChild(p.background),p.background=null);else if(B){var j=jn(p);p.background=j.insertBefore(T("div",null,B),j.firstChild),t.display.input.setUneditable(p.background)}}function fr(t,p){var B=t.display.externalMeasured;return B&&B.line==p.line?(t.display.externalMeasured=null,p.measure=B.measure,B.built):Wn(t,p)}function lr(t,p){var B=p.text.className,j=fr(t,p);p.text==p.node&&(p.node=j.pre),p.text.parentNode.replaceChild(j.pre,p.text),p.text=j.pre,j.bgClass!=p.bgClass||j.textClass!=p.textClass?(p.bgClass=j.bgClass,p.textClass=j.textClass,qr(t,p)):B&&(p.text.className=B)}function qr(t,p){or(t,p),p.line.wrapClass?jn(p).className=p.line.wrapClass:p.node!=p.text&&(p.node.className="");var B=p.textClass?p.textClass+" "+(p.line.textClass||""):p.line.textClass;p.text.className=B||""}function ur(t,p,B,j){if(p.gutter&&(p.node.removeChild(p.gutter),p.gutter=null),p.gutterBackground&&(p.node.removeChild(p.gutterBackground),p.gutterBackground=null),p.line.gutterClass){var G=jn(p);p.gutterBackground=T("div",null,"CodeMirror-gutter-background "+p.line.gutterClass,"left: "+(t.options.fixedGutter?j.fixedPos:-j.gutterTotalWidth)+"px; width: "+j.gutterTotalWidth+"px"),t.display.input.setUneditable(p.gutterBackground),G.insertBefore(p.gutterBackground,p.text)}var ne=p.line.gutterMarkers;if(t.options.lineNumbers||ne){var ge=jn(p),Se=p.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?j.fixedPos:-j.gutterTotalWidth)+"px");if(t.display.input.setUneditable(Se),ge.insertBefore(Se,p.text),p.line.gutterClass&&(Se.className+=" "+p.line.gutterClass),t.options.lineNumbers&&(!ne||!ne["CodeMirror-linenumbers"])&&(p.lineNumber=Se.appendChild(T("div",un(t.options,B),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+j.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),ne)for(var Pe=0;Pe<t.display.gutterSpecs.length;++Pe){var Be=t.display.gutterSpecs[Pe].className,gt=ne.hasOwnProperty(Be)&&ne[Be];gt&&Se.appendChild(T("div",[gt],"CodeMirror-gutter-elt","left: "+j.gutterLeft[Be]+"px; width: "+j.gutterWidth[Be]+"px"))}}}function da(t,p,B){p.alignable&&(p.alignable=null);for(var j=R("CodeMirror-linewidget"),G=p.node.firstChild,ne=void 0;G;G=ne)ne=G.nextSibling,j.test(G.className)&&p.node.removeChild(G);_r(t,p,B)}function Yr(t,p,B,j){var G=fr(t,p);return p.text=p.node=G.pre,G.bgClass&&(p.bgClass=G.bgClass),G.textClass&&(p.textClass=G.textClass),qr(t,p),ur(t,p,B,j),_r(t,p,j),p.node}function _r(t,p,B){if(wr(t,p.line,p,B,!0),p.rest)for(var j=0;j<p.rest.length;j++)wr(t,p.rest[j],p,B,!1)}function wr(t,p,B,j,G){if(!p.widgets)return;for(var ne=jn(B),ge=0,Se=p.widgets;ge<Se.length;++ge){var Pe=Se[ge],Be=T("div",[Pe.node],"CodeMirror-linewidget"+(Pe.className?" "+Pe.className:""));Pe.handleMouseEvents||Be.setAttribute("cm-ignore-events","true"),Kr(Pe,Be,B,j),t.display.input.setUneditable(Be),G&&Pe.above?ne.insertBefore(Be,B.gutter||B.text):ne.appendChild(Be),Jt(Pe,"redraw")}}function Kr(t,p,B,j){if(t.noHScroll){(B.alignable||(B.alignable=[])).push(p);var G=j.wrapperWidth;p.style.left=j.fixedPos+"px",t.coverGutter||(G-=j.gutterTotalWidth,p.style.paddingLeft=j.gutterTotalWidth+"px"),p.style.width=G+"px"}t.coverGutter&&(p.style.zIndex=5,p.style.position="relative",t.noHScroll||(p.style.marginLeft=-j.gutterTotalWidth+"px"))}function Jr(t){if(t.height!=null)return t.height;var p=t.doc.cm;if(!p)return 0;if(!N(document.body,t.node)){var B="position: relative;";t.coverGutter&&(B+="margin-left: -"+p.display.gutters.offsetWidth+"px;"),t.noHScroll&&(B+="width: "+p.display.wrapper.clientWidth+"px;"),v(p.display.measure,T("div",[t.node],null,B))}return t.height=t.node.parentNode.offsetHeight}function Oa(t,p){for(var B=et(p);B!=t.wrapper;B=B.parentNode)if(!B||B.nodeType==1&&B.getAttribute("cm-ignore-events")=="true"||B.parentNode==t.sizer&&B!=t.mover)return!0}function _a(t){return t.lineSpace.offsetTop}function Qe(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function ut(t){if(t.cachedPaddingH)return t.cachedPaddingH;var p=v(t.measure,T("pre","x","CodeMirror-line-like")),B=window.getComputedStyle?window.getComputedStyle(p):p.currentStyle,j={left:parseInt(B.paddingLeft),right:parseInt(B.paddingRight)};return!isNaN(j.left)&&!isNaN(j.right)&&(t.cachedPaddingH=j),j}function yt(t){return fe-t.display.nativeBarWidth}function at(t){return t.display.scroller.clientWidth-yt(t)-t.display.barWidth}function Me(t){return t.display.scroller.clientHeight-yt(t)-t.display.barHeight}function Ve(t,p,B){var j=t.options.lineWrapping,G=j&&at(t);if(!p.measure.heights||j&&p.measure.width!=G){var ne=p.measure.heights=[];if(j){p.measure.width=G;for(var ge=p.text.firstChild.getClientRects(),Se=0;Se<ge.length-1;Se++){var Pe=ge[Se],Be=ge[Se+1];Math.abs(Pe.bottom-Be.bottom)>2&&ne.push((Pe.bottom+Be.top)/2-B.top)}}ne.push(B.bottom-B.top)}}function Ie(t,p,B){if(t.line==p)return{map:t.measure.map,cache:t.measure.cache};for(var j=0;j<t.rest.length;j++)if(t.rest[j]==p)return{map:t.measure.maps[j],cache:t.measure.caches[j]};for(var G=0;G<t.rest.length;G++)if(Zn(t.rest[G])>B)return{map:t.measure.maps[G],cache:t.measure.caches[G],before:!0}}function $e(t,p){p=an(p);var B=Zn(p),j=t.display.externalMeasured=new vr(t.doc,p,B);j.lineN=B;var G=j.built=Wn(t,j);return j.text=G.pre,v(t.display.lineMeasure,G.pre),j}function qe(t,p,B,j){return It(t,it(t,p),B,j)}function pt(t,p){if(p>=t.display.viewFrom&&p<t.display.viewTo)return t.display.view[ga(t,p)];var B=t.display.externalMeasured;if(B&&p>=B.lineN&&p<B.lineN+B.size)return B}function it(t,p){var B=Zn(p),j=pt(t,B);j&&!j.text?j=null:j&&j.changes&&(nr(t,j,B,ar(t)),t.curOp.forceUpdate=!0),j||(j=$e(t,p));var G=Ie(j,p,B);return{line:p,view:j,rect:null,map:G.map,cache:G.cache,before:G.before,hasHeights:!1}}function It(t,p,B,j,G){p.before&&(B=-1);var ne=B+(j||""),ge;return p.cache.hasOwnProperty(ne)?ge=p.cache[ne]:(p.rect||(p.rect=p.view.text.getBoundingClientRect()),p.hasHeights||(Ve(t,p.view,p.rect),p.hasHeights=!0),ge=pn(t,p,B,j),ge.bogus||(p.cache[ne]=ge)),{left:ge.left,right:ge.right,top:G?ge.rtop:ge.top,bottom:G?ge.rbottom:ge.bottom}}var zt={left:0,right:0,top:0,bottom:0};function gn(t,p,B){for(var j,G,ne,ge,Se,Pe,Be=0;Be<t.length;Be+=3)if(Se=t[Be],Pe=t[Be+1],p<Se?(G=0,ne=1,ge="left"):p<Pe?(G=p-Se,ne=G+1):(Be==t.length-3||p==Pe&&t[Be+3]>p)&&(ne=Pe-Se,G=ne-1,p>=Pe&&(ge="right")),G!=null){if(j=t[Be+2],Se==Pe&&B==(j.insertLeft?"left":"right")&&(ge=B),B=="left"&&G==0)for(;Be&&t[Be-2]==t[Be-3]&&t[Be-1].insertLeft;)j=t[(Be-=3)+2],ge="left";if(B=="right"&&G==Pe-Se)for(;Be<t.length-3&&t[Be+3]==t[Be+4]&&!t[Be+5].insertLeft;)j=t[(Be+=3)+2],ge="right";break}return{node:j,start:G,end:ne,collapse:ge,coverStart:Se,coverEnd:Pe}}function dn(t,p){var B=zt;if(p=="left")for(var j=0;j<t.length&&!((B=t[j]).left!=B.right);j++);else for(var G=t.length-1;G>=0&&!((B=t[G]).left!=B.right);G--);return B}function pn(t,p,B,j){var G=gn(p.map,B,j),ne=G.node,ge=G.start,Se=G.end,Pe=G.collapse,Be;if(ne.nodeType==3){for(var gt=0;gt<4;gt++){for(;ge&&_e(p.line.text.charAt(G.coverStart+ge));)--ge;for(;G.coverStart+Se<G.coverEnd&&_e(p.line.text.charAt(G.coverStart+Se));)++Se;if(A&&g<9&&ge==0&&Se==G.coverEnd-G.coverStart?Be=ne.parentNode.getBoundingClientRect():Be=dn(I(ne,ge,Se).getClientRects(),j),Be.left||Be.right||ge==0)break;Se=ge,ge=ge-1,Pe="right"}A&&g<11&&(Be=hn(t.display.measure,Be))}else{ge>0&&(Pe=j="right");var Dt;t.options.lineWrapping&&(Dt=ne.getClientRects()).length>1?Be=Dt[j=="right"?Dt.length-1:0]:Be=ne.getBoundingClientRect()}if(A&&g<9&&!ge&&(!Be||!Be.left&&!Be.right)){var tn=ne.parentNode.getClientRects()[0];tn?Be={left:tn.left,right:tn.left+Mr(t.display),top:tn.top,bottom:tn.bottom}:Be=zt}for(var Gt=Be.top-p.rect.top,On=Be.bottom-p.rect.top,Kn=(Gt+On)/2,er=p.view.measure.heights,yr=0;yr<er.length-1&&!(Kn<er[yr]);yr++);var kr=yr?er[yr-1]:0,Er=er[yr],Xr={left:(Pe=="right"?Be.right:Be.left)-p.rect.left,right:(Pe=="left"?Be.left:Be.right)-p.rect.left,top:kr,bottom:Er};return!Be.left&&!Be.right&&(Xr.bogus=!0),t.options.singleCursorHeightPerLine||(Xr.rtop=Gt,Xr.rbottom=On),Xr}function hn(t,p){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ke(t))return p;var B=screen.logicalXDPI/screen.deviceXDPI,j=screen.logicalYDPI/screen.deviceYDPI;return{left:p.left*B,right:p.right*B,top:p.top*j,bottom:p.bottom*j}}function zn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var p=0;p<t.rest.length;p++)t.measure.caches[p]={}}function Sn(t){t.display.externalMeasure=null,S(t.display.lineMeasure);for(var p=0;p<t.display.view.length;p++)zn(t.display.view[p])}function jr(t){Sn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Pr(){return a&&h?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qr(){return a&&h?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Wr(t){var p=0;if(t.widgets)for(var B=0;B<t.widgets.length;++B)t.widgets[B].above&&(p+=Jr(t.widgets[B]));return p}function ta(t,p,B,j,G){if(!G){var ne=Wr(p);B.top+=ne,B.bottom+=ne}if(j=="line")return B;j||(j="local");var ge=Fr(p);if(j=="local"?ge+=_a(t.display):ge-=t.display.viewOffset,j=="page"||j=="window"){var Se=t.display.lineSpace.getBoundingClientRect();ge+=Se.top+(j=="window"?0:Qr());var Pe=Se.left+(j=="window"?0:Pr());B.left+=Pe,B.right+=Pe}return B.top+=ge,B.bottom+=ge,B}function Xn(t,p,B){if(B=="div")return p;var j=p.left,G=p.top;if(B=="page")j-=Pr(),G-=Qr();else if(B=="local"||!B){var ne=t.display.sizer.getBoundingClientRect();j+=ne.left,G+=ne.top}var ge=t.display.lineSpace.getBoundingClientRect();return{left:j-ge.left,top:G-ge.top}}function Tr(t,p,B,j,G){return j||(j=sn(t.doc,p.line)),ta(t,j,qe(t,j,p.ch,G),B)}function Yn(t,p,B,j,G,ne){j=j||sn(t.doc,p.line),G||(G=it(t,j));function ge(On,Kn){var er=It(t,G,On,Kn?"right":"left",ne);return Kn?er.left=er.right:er.right=er.left,ta(t,j,er,B)}var Se=_t(j,t.doc.direction),Pe=p.ch,Be=p.sticky;if(Pe>=j.text.length?(Pe=j.text.length,Be="before"):Pe<=0&&(Pe=0,Be="after"),!Se)return ge(Be=="before"?Pe-1:Pe,Be=="before");function gt(On,Kn,er){var yr=Se[Kn],kr=yr.level==1;return ge(er?On-1:On,kr!=er)}var Dt=dt(Se,Pe,Be),tn=lt,Gt=gt(Pe,Dt,Be=="before");return tn!=null&&(Gt.other=gt(Pe,tn,Be!="before")),Gt}function Cn(t,p){var B=0;p=X(t.doc,p),t.options.lineWrapping||(B=Mr(t.display)*p.ch);var j=sn(t.doc,p.line),G=Fr(j)+_a(t.display);return{left:B,right:B,top:G,bottom:G+j.height}}function Hn(t,p,B,j,G){var ne=$t(t,p,B);return ne.xRel=G,j&&(ne.outside=j),ne}function Vr(t,p,B){var j=t.doc;if(B+=t.display.viewOffset,B<0)return Hn(j.first,0,null,-1,-1);var G=xr(j,B),ne=j.first+j.size-1;if(G>ne)return Hn(j.first+j.size-1,sn(j,ne).text.length,null,1,1);p<0&&(p=0);for(var ge=sn(j,G);;){var Se=Ca(t,ge,G,p,B),Pe=Bn(ge,Se.ch+(Se.xRel>0||Se.outside>0?1:0));if(!Pe)return Se;var Be=Pe.find(1);if(Be.line==G)return Be;ge=sn(j,G=Be.line)}}function ua(t,p,B,j){j-=Wr(p);var G=p.text.length,ne=Xe(function(ge){return It(t,B,ge-1).bottom<=j},G,0);return G=Xe(function(ge){return It(t,B,ge).top>j},ne,G),{begin:ne,end:G}}function hr(t,p,B,j){B||(B=it(t,p));var G=ta(t,p,It(t,B,j),"line").top;return ua(t,p,B,G)}function aa(t,p,B,j){return t.bottom<=B?!1:t.top>B?!0:(j?t.left:t.right)>p}function Ca(t,p,B,j,G){G-=Fr(p);var ne=it(t,p),ge=Wr(p),Se=0,Pe=p.text.length,Be=!0,gt=_t(p,t.doc.direction);if(gt){var Dt=(t.options.lineWrapping?Sa:ha)(t,p,B,ne,gt,j,G);Be=Dt.level!=1,Se=Be?Dt.from:Dt.to-1,Pe=Be?Dt.to:Dt.from-1}var tn=null,Gt=null,On=Xe(function(ia){var ea=It(t,ne,ia);return ea.top+=ge,ea.bottom+=ge,aa(ea,j,G,!1)?(ea.top<=G&&ea.left<=j&&(tn=ia,Gt=ea),!0):!1},Se,Pe),Kn,er,yr=!1;if(Gt){var kr=j-Gt.left<Gt.right-j,Er=kr==Be;On=tn+(Er?0:1),er=Er?"after":"before",Kn=kr?Gt.left:Gt.right}else{!Be&&(On==Pe||On==Se)&&On++,er=On==0?"after":On==p.text.length?"before":It(t,ne,On-(Be?1:0)).bottom+ge<=G==Be?"after":"before";var Xr=Yn(t,$t(B,On,er),"line",p,ne);Kn=Xr.left,yr=G<Xr.top?-1:G>=Xr.bottom?1:0}return On=Oe(p.text,On,1),Hn(B,On,er,yr,j-Kn)}function ha(t,p,B,j,G,ne,ge){var Se=Xe(function(Dt){var tn=G[Dt],Gt=tn.level!=1;return aa(Yn(t,$t(B,Gt?tn.to:tn.from,Gt?"before":"after"),"line",p,j),ne,ge,!0)},0,G.length-1),Pe=G[Se];if(Se>0){var Be=Pe.level!=1,gt=Yn(t,$t(B,Be?Pe.from:Pe.to,Be?"after":"before"),"line",p,j);aa(gt,ne,ge,!0)&&gt.top>ge&&(Pe=G[Se-1])}return Pe}function Sa(t,p,B,j,G,ne,ge){var Se=ua(t,p,j,ge),Pe=Se.begin,Be=Se.end;/\s/.test(p.text.charAt(Be-1))&&Be--;for(var gt=null,Dt=null,tn=0;tn<G.length;tn++){var Gt=G[tn];if(Gt.from>=Be||Gt.to<=Pe)continue;var On=Gt.level!=1,Kn=It(t,j,On?Math.min(Be,Gt.to)-1:Math.max(Pe,Gt.from)).right,er=Kn<ne?ne-Kn+1e9:Kn-ne;(!gt||Dt>er)&&(gt=Gt,Dt=er)}return gt||(gt=G[G.length-1]),gt.from<Pe&&(gt={from:Pe,to:gt.to,level:gt.level}),gt.to>Be&&(gt={from:gt.from,to:Be,level:gt.level}),gt}var Or;function br(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Or==null){Or=T("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Or.appendChild(document.createTextNode("x")),Or.appendChild(T("br"));Or.appendChild(document.createTextNode("x"))}v(t.measure,Or);var B=Or.offsetHeight/50;return B>3&&(t.cachedTextHeight=B),S(t.measure),B||1}function Mr(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=T("span","xxxxxxxxxx"),B=T("pre",[p],"CodeMirror-line-like");v(t.measure,B);var j=p.getBoundingClientRect(),G=(j.right-j.left)/10;return G>2&&(t.cachedCharWidth=G),G||10}function ar(t){for(var p=t.display,B={},j={},G=p.gutters.clientLeft,ne=p.gutters.firstChild,ge=0;ne;ne=ne.nextSibling,++ge){var Se=t.display.gutterSpecs[ge].className;B[Se]=ne.offsetLeft+ne.clientLeft+G,j[Se]=ne.clientWidth}return{fixedPos:pa(p),gutterTotalWidth:p.gutters.offsetWidth,gutterLeft:B,gutterWidth:j,wrapperWidth:p.wrapper.clientWidth}}function pa(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function xa(t){var p=br(t.display),B=t.options.lineWrapping,j=B&&Math.max(5,t.display.scroller.clientWidth/Mr(t.display)-3);return function(G){if(qn(t.doc,G))return 0;var ne=0;if(G.widgets)for(var ge=0;ge<G.widgets.length;ge++)G.widgets[ge].height&&(ne+=G.widgets[ge].height);return B?ne+(Math.ceil(G.text.length/j)||1)*p:ne+p}}function ba(t){var p=t.doc,B=xa(t);p.iter(function(j){var G=B(j);G!=j.height&&Vn(j,G)})}function Aa(t,p,B,j){var G=t.display;if(!B&&et(p).getAttribute("cm-not-content")=="true")return null;var ne,ge,Se=G.lineSpace.getBoundingClientRect();try{ne=p.clientX-Se.left,ge=p.clientY-Se.top}catch(Dt){return null}var Pe=Vr(t,ne,ge),Be;if(j&&Pe.xRel>0&&(Be=sn(t.doc,Pe.line).text).length==Pe.ch){var gt=K(Be,Be.length,t.options.tabSize)-Be.length;Pe=$t(Pe.line,Math.max(0,Math.round((ne-ut(t.display).left)/Mr(t.display))-gt))}return Pe}function ga(t,p){if(p>=t.display.viewTo)return null;if(p-=t.display.viewFrom,p<0)return null;for(var B=t.display.view,j=0;j<B.length;j++)if(p-=B[j].size,p<0)return j}function Na(t,p,B,j){p==null&&(p=t.doc.first),B==null&&(B=t.doc.first+t.doc.size),j||(j=0);var G=t.display;if(j&&B<G.viewTo&&(G.updateLineNumbers==null||G.updateLineNumbers>p)&&(G.updateLineNumbers=p),t.curOp.viewChanged=!0,p>=G.viewTo)ca&&Fn(t.doc,p)<G.viewTo&&Fa(t);else if(B<=G.viewFrom)ca&&Pn(t.doc,B+j)>G.viewFrom?Fa(t):(G.viewFrom+=j,G.viewTo+=j);else if(p<=G.viewFrom&&B>=G.viewTo)Fa(t);else if(p<=G.viewFrom){var ne=ni(t,B,B+j,1);ne?(G.view=G.view.slice(ne.index),G.viewFrom=ne.lineN,G.viewTo+=j):Fa(t)}else if(B>=G.viewTo){var ge=ni(t,p,p,-1);ge?(G.view=G.view.slice(0,ge.index),G.viewTo=ge.lineN):Fa(t)}else{var Se=ni(t,p,p,-1),Pe=ni(t,B,B+j,1);Se&&Pe?(G.view=G.view.slice(0,Se.index).concat(zr(t,Se.lineN,Pe.lineN)).concat(G.view.slice(Pe.index)),G.viewTo+=j):Fa(t)}var Be=G.externalMeasured;Be&&(B<Be.lineN?Be.lineN+=j:p<Be.lineN+Be.size&&(G.externalMeasured=null))}function ka(t,p,B){t.curOp.viewChanged=!0;var j=t.display,G=t.display.externalMeasured;if(G&&p>=G.lineN&&p<G.lineN+G.size&&(j.externalMeasured=null),p<j.viewFrom||p>=j.viewTo)return;var ne=j.view[ga(t,p)];if(ne.node==null)return;var ge=ne.changes||(ne.changes=[]);he(ge,B)==-1&&ge.push(B)}function Fa(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ni(t,p,B,j){var G=ga(t,p),ne,ge=t.display.view;if(!ca||B==t.doc.first+t.doc.size)return{index:G,lineN:B};for(var Se=t.display.viewFrom,Pe=0;Pe<G;Pe++)Se+=ge[Pe].size;if(Se!=p){if(j>0){if(G==ge.length-1)return null;ne=Se+ge[G].size-p,G++}else ne=Se-p;p+=ne,B+=ne}for(;Fn(t.doc,B)!=B;){if(G==(j<0?0:ge.length-1))return null;B+=j*ge[G-(j<0?1:0)].size,G+=j}return{index:G,lineN:B}}function Fi(t,p,B){var j=t.display,G=j.view;G.length==0||p>=j.viewTo||B<=j.viewFrom?(j.view=zr(t,p,B),j.viewFrom=p):(j.viewFrom>p?j.view=zr(t,p,j.viewFrom).concat(j.view):j.viewFrom<p&&(j.view=j.view.slice(ga(t,p))),j.viewFrom=p,j.viewTo<B?j.view=j.view.concat(zr(t,j.viewTo,B)):j.viewTo>B&&(j.view=j.view.slice(0,ga(t,B)))),j.viewTo=B}function Ai(t){for(var p=t.display.view,B=0,j=0;j<p.length;j++){var G=p[j];!G.hidden&&(!G.node||G.changes)&&++B}return B}function La(t){t.display.input.showSelection(t.display.input.prepareSelection())}function bi(t,p){p===void 0&&(p=!0);for(var B=t.doc,j={},G=j.cursors=document.createDocumentFragment(),ne=j.selection=document.createDocumentFragment(),ge=0;ge<B.sel.ranges.length;ge++){if(!p&&ge==B.sel.primIndex)continue;var Se=B.sel.ranges[ge];if(Se.from().line>=t.display.viewTo||Se.to().line<t.display.viewFrom)continue;var Pe=Se.empty();(Pe||t.options.showCursorWhenSelecting)&&Si(t,Se.head,G),Pe||Ma(t,Se,ne)}return j}function Si(t,p,B){var j=Yn(t,p,"div",null,null,!t.options.singleCursorHeightPerLine),G=B.appendChild(T("div","\xA0","CodeMirror-cursor"));if(G.style.left=j.left+"px",G.style.top=j.top+"px",G.style.height=Math.max(0,j.bottom-j.top)*t.options.cursorHeight+"px",j.other){var ne=B.appendChild(T("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ne.style.display="",ne.style.left=j.other.left+"px",ne.style.top=j.other.top+"px",ne.style.height=(j.other.bottom-j.other.top)*.85+"px"}}function ja(t,p){return t.top-p.top||t.left-p.left}function Ma(t,p,B){var j=t.display,G=t.doc,ne=document.createDocumentFragment(),ge=ut(t.display),Se=ge.left,Pe=Math.max(j.sizerWidth,at(t)-j.sizer.offsetLeft)-ge.right,Be=G.direction=="ltr";function gt(Er,Xr,ia,ea){Xr<0&&(Xr=0),Xr=Math.round(Xr),ea=Math.round(ea),ne.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+Er+`px;
top: `+Xr+"px; width: "+(ia==null?Pe-Er:ia)+`px;
height: `+(ea-Xr)+"px"))}function Dt(Er,Xr,ia){var ea=sn(G,Er),wa=ea.text.length,Va,vi;function ti(ci,ji){return Tr(t,$t(Er,ci),"div",ea,ji)}function zi(ci,ji,Ci){var pi=hr(t,ea,null,ci),di=ji=="ltr"==(Ci=="after")?"left":"right",ii=Ci=="after"?pi.begin:pi.end-(/\s/.test(ea.text.charAt(pi.end-1))?2:1);return ti(ii,di)[di]}var Ui=_t(ea,G.direction);return tt(Ui,Xr||0,ia==null?wa:ia,function(ci,ji,Ci,pi){var di=Ci=="ltr",ii=ti(ci,di?"left":"right"),Bi=ti(ji-1,di?"right":"left"),Ts=Xr==null&&ci==0,es=ia==null&&ji==wa,Oi=pi==0,Po=!Ui||pi==Ui.length-1;if(Bi.top-ii.top<=3){var _i=(Be?Ts:es)&&Oi,ru=(Be?es:Ts)&&Po,Fo=_i?Se:(di?ii:Bi).left,ds=ru?Pe:(di?Bi:ii).right;gt(Fo,ii.top,ds-Fo,ii.bottom)}else{var fs,Mi,Os,au;di?(fs=Be&&Ts&&Oi?Se:ii.left,Mi=Be?Pe:zi(ci,Ci,"before"),Os=Be?Se:zi(ji,Ci,"after"),au=Be&&es&&Po?Pe:Bi.right):(fs=Be?zi(ci,Ci,"before"):Se,Mi=!Be&&Ts&&Oi?Pe:ii.right,Os=!Be&&es&&Po?Se:Bi.left,au=Be?zi(ji,Ci,"after"):Pe),gt(fs,ii.top,Mi-fs,ii.bottom),ii.bottom<Bi.top&&gt(Se,ii.bottom,null,Bi.top),gt(Os,Bi.top,au-Os,Bi.bottom)}(!Va||ja(ii,Va)<0)&&(Va=ii),ja(Bi,Va)<0&&(Va=Bi),(!vi||ja(ii,vi)<0)&&(vi=ii),ja(Bi,vi)<0&&(vi=Bi)}),{start:Va,end:vi}}var tn=p.from(),Gt=p.to();if(tn.line==Gt.line)Dt(tn.line,tn.ch,Gt.ch);else{var On=sn(G,tn.line),Kn=sn(G,Gt.line),er=an(On)==an(Kn),yr=Dt(tn.line,tn.ch,er?On.text.length+1:null).end,kr=Dt(Gt.line,er?0:null,Gt.ch).start;er&&(yr.top<kr.top-2?(gt(yr.right,yr.top,null,yr.bottom),gt(Se,kr.top,kr.left,kr.bottom)):gt(yr.right,yr.top,kr.left-yr.right,yr.bottom)),yr.bottom<kr.top&&gt(Se,yr.bottom,null,kr.top)}B.appendChild(ne)}function Za(t){if(!t.state.focused)return;var p=t.display;clearInterval(p.blinker);var B=!0;p.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?p.blinker=setInterval(function(){t.hasFocus()||no(t),p.cursorDiv.style.visibility=(B=!B)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}function to(t){t.state.focused||(t.display.input.focus(),Ii(t))}function Mo(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,no(t))},100)}function Ii(t,p){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(Et(t,"focus",t,p),t.state.focused=!0,H(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),e&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Za(t)}function no(t,p){if(t.state.delayingBlurEvent)return;t.state.focused&&(Et(t,"blur",t,p),t.state.focused=!1,x(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function ro(t){for(var p=t.display,B=p.lineDiv.offsetTop,j=0;j<p.view.length;j++){var G=p.view[j],ne=t.options.lineWrapping,ge=void 0,Se=0;if(G.hidden)continue;if(A&&g<8){var Pe=G.node.offsetTop+G.node.offsetHeight;ge=Pe-B,B=Pe}else{var Be=G.node.getBoundingClientRect();ge=Be.bottom-Be.top,!ne&&G.text.firstChild&&(Se=G.text.firstChild.getBoundingClientRect().right-Be.left-1)}var gt=G.line.height-ge;if((gt>.005||gt<-.005)&&(Vn(G.line,ge),mi(G.line),G.rest))for(var Dt=0;Dt<G.rest.length;Dt++)mi(G.rest[Dt]);if(Se>t.display.sizerWidth){var tn=Math.ceil(Se/Mr(t.display));tn>t.display.maxLineLength&&(t.display.maxLineLength=tn,t.display.maxLine=G.line,t.display.maxLineChanged=!0)}}}function mi(t){if(t.widgets)for(var p=0;p<t.widgets.length;++p){var B=t.widgets[p],j=B.node.parentNode;j&&(B.height=j.offsetHeight)}}function uo(t,p,B){var j=B&&B.top!=null?Math.max(0,B.top):t.scroller.scrollTop;j=Math.floor(j-_a(t));var G=B&&B.bottom!=null?B.bottom:j+t.wrapper.clientHeight,ne=xr(p,j),ge=xr(p,G);if(B&&B.ensure){var Se=B.ensure.from.line,Pe=B.ensure.to.line;Se<ne?(ne=Se,ge=xr(p,Fr(sn(p,Se))+t.wrapper.clientHeight)):Math.min(Pe,p.lastLine())>=ge&&(ne=xr(p,Fr(sn(p,Pe))-t.wrapper.clientHeight),ge=Pe)}return{from:ne,to:Math.max(ge,ne+1)}}function Io(t,p){if(Pt(t,"scrollCursorIntoView"))return;var B=t.display,j=B.sizer.getBoundingClientRect(),G=null;if(p.top+j.top<0?G=!0:p.bottom+j.top>(window.innerHeight||document.documentElement.clientHeight)&&(G=!1),G!=null&&!r){var ne=T("div","\u200B",null,`position: absolute;
top: `+(p.top-B.viewOffset-_a(t.display))+`px;
height: `+(p.bottom-p.top+yt(t)+B.barHeight)+`px;
left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");t.display.lineSpace.appendChild(ne),ne.scrollIntoView(G),t.display.lineSpace.removeChild(ne)}}function Lo(t,p,B,j){j==null&&(j=0);var G;!t.options.lineWrapping&&p==B&&(p=p.ch?$t(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,B=p.sticky=="before"?$t(p.line,p.ch+1,"before"):p);for(var ne=0;ne<5;ne++){var ge=!1,Se=Yn(t,p),Pe=!B||B==p?Se:Yn(t,B);G={left:Math.min(Se.left,Pe.left),top:Math.min(Se.top,Pe.top)-j,right:Math.max(Se.left,Pe.left),bottom:Math.max(Se.bottom,Pe.bottom)+j};var Be=Vi(t,G),gt=t.doc.scrollTop,Dt=t.doc.scrollLeft;if(Be.scrollTop!=null&&(Ji(t,Be.scrollTop),Math.abs(t.doc.scrollTop-gt)>1&&(ge=!0)),Be.scrollLeft!=null&&(ei(t,Be.scrollLeft),Math.abs(t.doc.scrollLeft-Dt)>1&&(ge=!0)),!ge)break}return G}function bo(t,p){var B=Vi(t,p);B.scrollTop!=null&&Ji(t,B.scrollTop),B.scrollLeft!=null&&ei(t,B.scrollLeft)}function Vi(t,p){var B=t.display,j=br(t.display);p.top<0&&(p.top=0);var G=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:B.scroller.scrollTop,ne=Me(t),ge={};p.bottom-p.top>ne&&(p.bottom=p.top+ne);var Se=t.doc.height+Qe(B),Pe=p.top<j,Be=p.bottom>Se-j;if(p.top<G)ge.scrollTop=Pe?0:p.top;else if(p.bottom>G+ne){var gt=Math.min(p.top,(Be?Se:p.bottom)-ne);gt!=G&&(ge.scrollTop=gt)}var Dt=t.options.fixedGutter?0:B.gutters.offsetWidth,tn=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:B.scroller.scrollLeft-Dt,Gt=at(t)-B.gutters.offsetWidth,On=p.right-p.left>Gt;return On&&(p.right=p.left+Gt),p.left<10?ge.scrollLeft=0:p.left<tn?ge.scrollLeft=Math.max(0,p.left+Dt-(On?0:10)):p.right>Gt+tn-3&&(ge.scrollLeft=p.right+(On?0:10)-Gt),ge}function co(t,p){if(p==null)return;yo(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+p}function Xi(t){yo(t);var p=t.getCursor();t.curOp.scrollToPos={from:p,to:p,margin:t.options.cursorScrollMargin}}function Yi(t,p,B){(p!=null||B!=null)&&yo(t),p!=null&&(t.curOp.scrollLeft=p),B!=null&&(t.curOp.scrollTop=B)}function No(t,p){yo(t),t.curOp.scrollToPos=p}function yo(t){var p=t.curOp.scrollToPos;if(p){t.curOp.scrollToPos=null;var B=Cn(t,p.from),j=Cn(t,p.to);ao(t,B,j,p.margin)}}function ao(t,p,B,j){var G=Vi(t,{left:Math.min(p.left,B.left),top:Math.min(p.top,B.top)-j,right:Math.max(p.right,B.right),bottom:Math.max(p.bottom,B.bottom)+j});Yi(t,G.scrollLeft,G.scrollTop)}function Ji(t,p){if(Math.abs(t.doc.scrollTop-p)<2)return;O||fo(t,{top:p}),Qi(t,p,!0),O&&fo(t),ai(t,100)}function Qi(t,p,B){if(p=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,p)),t.display.scroller.scrollTop==p&&!B)return;t.doc.scrollTop=p,t.display.scrollbars.setScrollTop(p),t.display.scroller.scrollTop!=p&&(t.display.scroller.scrollTop=p)}function ei(t,p,B,j){if(p=Math.max(0,Math.min(p,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(B?p==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-p)<2)&&!j)return;t.doc.scrollLeft=p,ya(t),t.display.scroller.scrollLeft!=p&&(t.display.scroller.scrollLeft=p),t.display.scrollbars.setScrollLeft(p)}function Li(t){var p=t.display,B=p.gutters.offsetWidth,j=Math.round(t.doc.height+Qe(t.display));return{clientHeight:p.scroller.clientHeight,viewHeight:p.wrapper.clientHeight,scrollWidth:p.scroller.scrollWidth,clientWidth:p.scroller.clientWidth,viewWidth:p.wrapper.clientWidth,barLeft:t.options.fixedGutter?B:0,docHeight:j,scrollHeight:j+yt(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:B}}var Di=function(t,p,B){this.cm=B;var j=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),G=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");j.tabIndex=G.tabIndex=-1,t(j),t(G),je(j,"scroll",function(){j.clientHeight&&p(j.scrollTop,"vertical")}),je(G,"scroll",function(){G.clientWidth&&p(G.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,A&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Di.prototype.update=function(t){var p=t.scrollWidth>t.clientWidth+1,B=t.scrollHeight>t.clientHeight+1,j=t.nativeBarWidth;if(B){this.vert.style.display="block",this.vert.style.bottom=p?j+"px":"0";var G=t.viewHeight-(p?j:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+G)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=B?j+"px":"0",this.horiz.style.left=t.barLeft+"px";var ne=t.viewWidth-t.barLeft-(B?j:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(j==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:B?j:0,bottom:p?j:0}},Di.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Di.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Di.prototype.zeroWidthHack=function(){var t=s&&!i?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},Di.prototype.enableZeroWidthBar=function(t,p,B){t.style.pointerEvents="auto";function j(){var G=t.getBoundingClientRect(),ne=B=="vert"?document.elementFromPoint(G.right-1,(G.top+G.bottom)/2):document.elementFromPoint((G.right+G.left)/2,G.bottom-1);ne!=t?t.style.pointerEvents="none":p.set(1e3,j)}p.set(1e3,j)},Di.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Zi=function(){};Zi.prototype.update=function(){return{bottom:0,right:0}},Zi.prototype.setScrollLeft=function(){},Zi.prototype.setScrollTop=function(){},Zi.prototype.clear=function(){};function Ri(t,p){p||(p=Li(t));var B=t.display.barWidth,j=t.display.barHeight;Eo(t,p);for(var G=0;G<4&&B!=t.display.barWidth||j!=t.display.barHeight;G++)B!=t.display.barWidth&&t.options.lineWrapping&&ro(t),Eo(t,Li(t)),B=t.display.barWidth,j=t.display.barHeight}function Eo(t,p){var B=t.display,j=B.scrollbars.update(p);B.sizer.style.paddingRight=(B.barWidth=j.right)+"px",B.sizer.style.paddingBottom=(B.barHeight=j.bottom)+"px",B.heightForcer.style.borderBottom=j.bottom+"px solid transparent",j.right&&j.bottom?(B.scrollbarFiller.style.display="block",B.scrollbarFiller.style.height=j.bottom+"px",B.scrollbarFiller.style.width=j.right+"px"):B.scrollbarFiller.style.display="",j.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(B.gutterFiller.style.display="block",B.gutterFiller.style.height=j.bottom+"px",B.gutterFiller.style.width=p.gutterWidth+"px"):B.gutterFiller.style.display=""}var xo={native:Di,null:Zi};function Co(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&x(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new xo[t.options.scrollbarStyle](function(p){t.display.wrapper.insertBefore(p,t.display.scrollbarFiller),je(p,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),p.setAttribute("cm-not-content","true")},function(p,B){B=="horizontal"?ei(t,p):Ji(t,p)},t),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)}var io=0;function Ni(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++io},$r(t.curOp)}function qi(t){var p=t.curOp;p&&Kt(p,function(B){for(var j=0;j<B.ops.length;j++)B.ops[j].cm.curOp=null;ko(B)})}function ko(t){for(var p=t.ops,B=0;B<p.length;B++)oo(p[B]);for(var j=0;j<p.length;j++)so(p[j]);for(var G=0;G<p.length;G++)So(p[G]);for(var ne=0;ne<p.length;ne++)Uo(p[ne]);for(var ge=0;ge<p.length;ge++)jo(p[ge])}function oo(t){var p=t.cm,B=p.display;Bo(p),t.updateMaxLine&&Yt(p),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<B.viewFrom||t.scrollToPos.to.line>=B.viewTo)||B.maxLineChanged&&p.options.lineWrapping,t.update=t.mustUpdate&&new yi(p,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function so(t){t.updatedDisplay=t.mustUpdate&&Wi(t.cm,t.update)}function So(t){var p=t.cm,B=p.display;t.updatedDisplay&&ro(p),t.barMeasure=Li(p),B.maxLineChanged&&!p.options.lineWrapping&&(t.adjustWidthTo=qe(p,B.maxLine,B.maxLine.text.length).left+3,p.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(B.scroller.clientWidth,B.sizer.offsetLeft+t.adjustWidthTo+yt(p)+p.display.barWidth),t.maxScrollLeft=Math.max(0,B.sizer.offsetLeft+t.adjustWidthTo-at(p))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=B.input.prepareSelection())}function Uo(t){var p=t.cm;t.adjustWidthTo!=null&&(p.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<p.doc.scrollLeft&&ei(p,Math.min(p.display.scroller.scrollLeft,t.maxScrollLeft),!0),p.display.maxLineChanged=!1);var B=t.focus&&t.focus==V();t.preparedSelection&&p.display.input.showSelection(t.preparedSelection,B),(t.updatedDisplay||t.startHeight!=p.doc.height)&&Ri(p,t.barMeasure),t.updatedDisplay&&Da(p,t.barMeasure),t.selectionChanged&&Za(p),p.state.focused&&t.updateInput&&p.display.input.reset(t.typing),B&&to(t.cm)}function jo(t){var p=t.cm,B=p.display,j=p.doc;if(t.updatedDisplay&&Oo(p,t.update),B.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(B.wheelStartX=B.wheelStartY=null),t.scrollTop!=null&&Qi(p,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ei(p,t.scrollLeft,!0,!0),t.scrollToPos){var G=Lo(p,X(j,t.scrollToPos.from),X(j,t.scrollToPos.to),t.scrollToPos.margin);Io(p,G)}var ne=t.maybeHiddenMarkers,ge=t.maybeUnhiddenMarkers;if(ne)for(var Se=0;Se<ne.length;++Se)ne[Se].lines.length||Et(ne[Se],"hide");if(ge)for(var Pe=0;Pe<ge.length;++Pe)ge[Pe].lines.length&&Et(ge[Pe],"unhide");B.wrapper.offsetHeight&&(j.scrollTop=p.display.scroller.scrollTop),t.changeObjs&&Et(p,"changes",p,t.changeObjs),t.update&&t.update.finish()}function fi(t,p){if(t.curOp)return p();Ni(t);try{return p()}finally{qi(t)}}function Ha(t,p){return function(){if(t.curOp)return p.apply(t,arguments);Ni(t);try{return p.apply(t,arguments)}finally{qi(t)}}}function ri(t){return function(){if(this.curOp)return t.apply(this,arguments);Ni(this);try{return t.apply(this,arguments)}finally{qi(this)}}}function Xa(t){return function(){var p=this.cm;if(!p||p.curOp)return t.apply(this,arguments);Ni(p);try{return t.apply(this,arguments)}finally{qi(p)}}}function ai(t,p){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(p,F(wo,t))}function wo(t){var p=t.doc;if(p.highlightFrontier>=t.display.viewTo)return;var B=+new Date+t.options.workTime,j=Ln(t,p.highlightFrontier),G=[];p.iter(j.line,Math.min(p.first+p.size,t.display.viewTo+500),function(ne){if(j.line>=t.display.viewFrom){var ge=ne.styles,Se=ne.text.length>t.options.maxHighlightLength?cn(p.mode,j.state):null,Pe=ot(t,ne,j,!0);Se&&(j.state=Se),ne.styles=Pe.styles;var Be=ne.styleClasses,gt=Pe.classes;gt?ne.styleClasses=gt:Be&&(ne.styleClasses=null);for(var Dt=!ge||ge.length!=ne.styles.length||Be!=gt&&(!Be||!gt||Be.bgClass!=gt.bgClass||Be.textClass!=gt.textClass),tn=0;!Dt&&tn<ge.length;++tn)Dt=ge[tn]!=ne.styles[tn];Dt&&G.push(j.line),ne.stateAfter=j.save(),j.nextLine()}else ne.text.length<=t.options.maxHighlightLength&&Jn(t,ne.text,j),ne.stateAfter=j.line%5==0?j.save():null,j.nextLine();if(+new Date>B)return ai(t,t.options.workDelay),!0}),p.highlightFrontier=j.line,p.modeFrontier=Math.max(p.modeFrontier,j.line),G.length&&fi(t,function(){for(var ne=0;ne<G.length;ne++)ka(t,G[ne],"text")})}var yi=function(t,p,B){var j=t.display;this.viewport=p,this.visible=uo(j,t.doc,p),this.editorIsHidden=!j.wrapper.offsetWidth,this.wrapperHeight=j.wrapper.clientHeight,this.wrapperWidth=j.wrapper.clientWidth,this.oldDisplayWidth=at(t),this.force=B,this.dims=ar(t),this.events=[]};yi.prototype.signal=function(t,p){We(t,p)&&this.events.push(arguments)},yi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Et.apply(null,this.events[t])};function Bo(t){var p=t.display;!p.scrollbarsClipped&&p.scroller.offsetWidth&&(p.nativeBarWidth=p.scroller.offsetWidth-p.scroller.clientWidth,p.heightForcer.style.height=yt(t)+"px",p.sizer.style.marginBottom=-p.nativeBarWidth+"px",p.sizer.style.borderRightWidth=yt(t)+"px",p.scrollbarsClipped=!0)}function To(t){if(t.hasFocus())return null;var p=V();if(!p||!N(t.display.lineDiv,p))return null;var B={activeElt:p};if(window.getSelection){var j=window.getSelection();j.anchorNode&&j.extend&&N(t.display.lineDiv,j.anchorNode)&&(B.anchorNode=j.anchorNode,B.anchorOffset=j.anchorOffset,B.focusNode=j.focusNode,B.focusOffset=j.focusOffset)}return B}function $i(t){if(!t||!t.activeElt||t.activeElt==V())return;if(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode)){var p=window.getSelection(),B=document.createRange();B.setEnd(t.anchorNode,t.anchorOffset),B.collapse(!1),p.removeAllRanges(),p.addRange(B),p.extend(t.focusNode,t.focusOffset)}}function Wi(t,p){var B=t.display,j=t.doc;if(p.editorIsHidden)return Fa(t),!1;if(!p.force&&p.visible.from>=B.viewFrom&&p.visible.to<=B.viewTo&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo)&&B.renderedView==B.view&&Ai(t)==0)return!1;Ga(t)&&(Fa(t),p.dims=ar(t));var G=j.first+j.size,ne=Math.max(p.visible.from-t.options.viewportMargin,j.first),ge=Math.min(G,p.visible.to+t.options.viewportMargin);B.viewFrom<ne&&ne-B.viewFrom<20&&(ne=Math.max(j.first,B.viewFrom)),B.viewTo>ge&&B.viewTo-ge<20&&(ge=Math.min(G,B.viewTo)),ca&&(ne=Fn(t.doc,ne),ge=Pn(t.doc,ge));var Se=ne!=B.viewFrom||ge!=B.viewTo||B.lastWrapHeight!=p.wrapperHeight||B.lastWrapWidth!=p.wrapperWidth;Fi(t,ne,ge),B.viewOffset=Fr(sn(t.doc,B.viewFrom)),t.display.mover.style.top=B.viewOffset+"px";var Pe=Ai(t);if(!Se&&Pe==0&&!p.force&&B.renderedView==B.view&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo))return!1;var Be=To(t);return Pe>4&&(B.lineDiv.style.display="none"),Wo(t,B.updateLineNumbers,p.dims),Pe>4&&(B.lineDiv.style.display=""),B.renderedView=B.view,$i(Be),S(B.cursorDiv),S(B.selectionDiv),B.gutters.style.height=B.sizer.style.minHeight=0,Se&&(B.lastWrapHeight=p.wrapperHeight,B.lastWrapWidth=p.wrapperWidth,ai(t,400)),B.updateLineNumbers=null,!0}function Oo(t,p){for(var B=p.viewport,j=!0;;j=!1){if(!j||!t.options.lineWrapping||p.oldDisplayWidth==at(t)){if(B&&B.top!=null&&(B={top:Math.min(t.doc.height+Qe(t.display)-Me(t),B.top)}),p.visible=uo(t.display,t.doc,B),p.visible.from>=t.display.viewFrom&&p.visible.to<=t.display.viewTo)break}else j&&(p.visible=uo(t.display,t.doc,B));if(!Wi(t,p))break;ro(t);var G=Li(t);La(t),Ri(t,G),Da(t,G),p.force=!1}p.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(p.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function fo(t,p){var B=new yi(t,p);if(Wi(t,B)){ro(t),Oo(t,B);var j=Li(t);La(t),Ri(t,j),Da(t,j),B.finish()}}function Wo(t,p,B){var j=t.display,G=t.options.lineNumbers,ne=j.lineDiv,ge=ne.firstChild;function Se(On){var Kn=On.nextSibling;return e&&s&&t.display.currentWheelTarget==On?On.style.display="none":On.parentNode.removeChild(On),Kn}for(var Pe=j.view,Be=j.viewFrom,gt=0;gt<Pe.length;gt++){var Dt=Pe[gt];if(!Dt.hidden)if(!Dt.node||Dt.node.parentNode!=ne){var tn=Yr(t,Dt,Be,B);ne.insertBefore(tn,ge)}else{for(;ge!=Dt.node;)ge=Se(ge);var Gt=G&&p!=null&&p<=Be&&Dt.lineNumber;Dt.changes&&(he(Dt.changes,"gutter")>-1&&(Gt=!1),nr(t,Dt,Be,B)),Gt&&(S(Dt.lineNumber),Dt.lineNumber.appendChild(document.createTextNode(un(t.options,Be)))),ge=Dt.node.nextSibling}Be+=Dt.size}for(;ge;)ge=Se(ge)}function lo(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function Da(t,p){t.display.sizer.style.minHeight=p.docHeight+"px",t.display.heightForcer.style.top=p.docHeight+"px",t.display.gutters.style.height=p.docHeight+t.display.barHeight+yt(t)+"px"}function ya(t){var p=t.display,B=p.view;if(!p.alignWidgets&&(!p.gutters.firstChild||!t.options.fixedGutter))return;for(var j=pa(p)-p.scroller.scrollLeft+t.doc.scrollLeft,G=p.gutters.offsetWidth,ne=j+"px",ge=0;ge<B.length;ge++)if(!B[ge].hidden){t.options.fixedGutter&&(B[ge].gutter&&(B[ge].gutter.style.left=ne),B[ge].gutterBackground&&(B[ge].gutterBackground.style.left=ne));var Se=B[ge].alignable;if(Se)for(var Pe=0;Pe<Se.length;Pe++)Se[Pe].style.left=ne}t.options.fixedGutter&&(p.gutters.style.left=j+G+"px")}function Ga(t){if(!t.options.lineNumbers)return!1;var p=t.doc,B=un(t.options,p.first+p.size-1),j=t.display;if(B.length!=j.lineNumChars){var G=j.measure.appendChild(T("div",[T("div",B)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ne=G.firstChild.offsetWidth,ge=G.offsetWidth-ne;return j.lineGutter.style.width="",j.lineNumInnerWidth=Math.max(ne,j.lineGutter.offsetWidth-ge)+1,j.lineNumWidth=j.lineNumInnerWidth+ge,j.lineNumChars=j.lineNumInnerWidth?B.length:-1,j.lineGutter.style.width=j.lineNumWidth+"px",lo(t.display),!0}return!1}function ui(t,p){for(var B=[],j=!1,G=0;G<t.length;G++){var ne=t[G],ge=null;if(typeof ne!="string"&&(ge=ne.style,ne=ne.className),ne=="CodeMirror-linenumbers")if(p)j=!0;else continue;B.push({className:ne,style:ge})}return p&&!j&&B.push({className:"CodeMirror-linenumbers",style:null}),B}function eo(t){var p=t.gutters,B=t.gutterSpecs;S(p),t.lineGutter=null;for(var j=0;j<B.length;++j){var G=B[j],ne=G.className,ge=G.style,Se=p.appendChild(T("div",null,"CodeMirror-gutter "+ne));ge&&(Se.style.cssText=ge),ne=="CodeMirror-linenumbers"&&(t.lineGutter=Se,Se.style.width=(t.lineNumWidth||1)+"px")}p.style.display=B.length?"":"none",lo(t)}function ki(t){eo(t.display),Na(t),ya(t)}function ho(t,p,B,j){var G=this;this.input=B,G.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),G.scrollbarFiller.setAttribute("cm-not-content","true"),G.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),G.gutterFiller.setAttribute("cm-not-content","true"),G.lineDiv=U("div",null,"CodeMirror-code"),G.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),G.cursorDiv=T("div",null,"CodeMirror-cursors"),G.measure=T("div",null,"CodeMirror-measure"),G.lineMeasure=T("div",null,"CodeMirror-measure"),G.lineSpace=U("div",[G.measure,G.lineMeasure,G.selectionDiv,G.cursorDiv,G.lineDiv],null,"position: relative; outline: none");var ne=U("div",[G.lineSpace],"CodeMirror-lines");G.mover=T("div",[ne],null,"position: relative"),G.sizer=T("div",[G.mover],"CodeMirror-sizer"),G.sizerWidth=null,G.heightForcer=T("div",null,null,"position: absolute; height: "+fe+"px; width: 1px;"),G.gutters=T("div",null,"CodeMirror-gutters"),G.lineGutter=null,G.scroller=T("div",[G.sizer,G.heightForcer,G.gutters],"CodeMirror-scroll"),G.scroller.setAttribute("tabIndex","-1"),G.wrapper=T("div",[G.scrollbarFiller,G.gutterFiller,G.scroller],"CodeMirror"),A&&g<8&&(G.gutters.style.zIndex=-1,G.scroller.style.paddingRight=0),!e&&!(O&&d)&&(G.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(G.wrapper):t(G.wrapper)),G.viewFrom=G.viewTo=p.first,G.reportedViewFrom=G.reportedViewTo=p.first,G.view=[],G.renderedView=null,G.externalMeasured=null,G.viewOffset=0,G.lastWrapHeight=G.lastWrapWidth=0,G.updateLineNumbers=null,G.nativeBarWidth=G.barHeight=G.barWidth=0,G.scrollbarsClipped=!1,G.lineNumWidth=G.lineNumInnerWidth=G.lineNumChars=null,G.alignWidgets=!1,G.cachedCharWidth=G.cachedTextHeight=G.cachedPaddingH=null,G.maxLine=null,G.maxLineLength=0,G.maxLineChanged=!1,G.wheelDX=G.wheelDY=G.wheelStartX=G.wheelStartY=null,G.shift=!1,G.selForContextMenu=null,G.activeTouch=null,G.gutterSpecs=ui(j.gutters,j.lineNumbers),eo(G),B.init(G)}var wi=0,qa=null;A?qa=-.53:O?qa=15:a?qa=-.7:n&&(qa=-1/3);function po(t){var p=t.wheelDeltaX,B=t.wheelDeltaY;return p==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(p=t.detail),B==null&&t.detail&&t.axis==t.VERTICAL_AXIS?B=t.detail:B==null&&(B=t.wheelDelta),{x:p,y:B}}function Hi(t){var p=po(t);return p.x*=qa,p.y*=qa,p}function mo(t,p){var B=po(p),j=B.x,G=B.y,ne=t.display,ge=ne.scroller,Se=ge.scrollWidth>ge.clientWidth,Pe=ge.scrollHeight>ge.clientHeight;if(!(j&&Se||G&&Pe))return;if(G&&s&&e){e:for(var Be=p.target,gt=ne.view;Be!=ge;Be=Be.parentNode)for(var Dt=0;Dt<gt.length;Dt++)if(gt[Dt].node==Be){t.display.currentWheelTarget=Be;break e}}if(j&&!O&&!l&&qa!=null){G&&Pe&&Ji(t,Math.max(0,ge.scrollTop+G*qa)),ei(t,Math.max(0,ge.scrollLeft+j*qa)),(!G||G&&Pe)&&Ae(p),ne.wheelStartX=null;return}if(G&&qa!=null){var tn=G*qa,Gt=t.doc.scrollTop,On=Gt+ne.wrapper.clientHeight;tn<0?Gt=Math.max(0,Gt+tn-50):On=Math.min(t.doc.height,On+tn+50),fo(t,{top:Gt,bottom:On})}wi<20&&(ne.wheelStartX==null?(ne.wheelStartX=ge.scrollLeft,ne.wheelStartY=ge.scrollTop,ne.wheelDX=j,ne.wheelDY=G,setTimeout(function(){if(ne.wheelStartX==null)return;var Kn=ge.scrollLeft-ne.wheelStartX,er=ge.scrollTop-ne.wheelStartY,yr=er&&ne.wheelDY&&er/ne.wheelDY||Kn&&ne.wheelDX&&Kn/ne.wheelDX;if(ne.wheelStartX=ne.wheelStartY=null,!yr)return;qa=(qa*wi+yr)/(wi+1),++wi},200)):(ne.wheelDX+=j,ne.wheelDY+=G))}var hi=function(t,p){this.ranges=t,this.primIndex=p};hi.prototype.primary=function(){return this.ranges[this.primIndex]},hi.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var p=0;p<this.ranges.length;p++){var B=this.ranges[p],j=t.ranges[p];if(!Ur(B.anchor,j.anchor)||!Ur(B.head,j.head))return!1}return!0},hi.prototype.deepCopy=function(){for(var t=[],p=0;p<this.ranges.length;p++)t[p]=new Pa(Ar(this.ranges[p].anchor),Ar(this.ranges[p].head));return new hi(t,this.primIndex)},hi.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},hi.prototype.contains=function(t,p){p||(p=t);for(var B=0;B<this.ranges.length;B++){var j=this.ranges[B];if(An(p,j.from())>=0&&An(t,j.to())<=0)return B}return-1};var Pa=function(t,p){this.anchor=t,this.head=p};Pa.prototype.from=function(){return gr(this.anchor,this.head)},Pa.prototype.to=function(){return Cr(this.anchor,this.head)},Pa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function sa(t,p,B){var j=t&&t.options.selectionsMayTouch,G=p[B];p.sort(function(tn,Gt){return An(tn.from(),Gt.from())}),B=he(p,G);for(var ne=1;ne<p.length;ne++){var ge=p[ne],Se=p[ne-1],Pe=An(Se.to(),ge.from());if(j&&!ge.empty()?Pe>0:Pe>=0){var Be=gr(Se.from(),ge.from()),gt=Cr(Se.to(),ge.to()),Dt=Se.empty()?ge.from()==ge.head:Se.from()==Se.head;ne<=B&&--B,p.splice(--ne,2,new Pa(Dt?gt:Be,Dt?Be:gt))}}return new hi(p,B)}function Sr(t,p){return new hi([new Pa(t,p||t)],0)}function Zr(t){return t.text?$t(t.from.line+t.text.length-1,$(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function va(t,p){if(An(t,p.from)<0)return t;if(An(t,p.to)<=0)return Zr(p);var B=t.line+p.text.length-(p.to.line-p.from.line)-1,j=t.ch;return t.line==p.to.line&&(j+=Zr(p).ch-p.to.ch),$t(B,j)}function Wa(t,p){for(var B=[],j=0;j<t.sel.ranges.length;j++){var G=t.sel.ranges[j];B.push(new Pa(va(G.anchor,p),va(G.head,p)))}return sa(t.cm,B,t.sel.primIndex)}function Ei(t,p,B){return t.line==p.line?$t(B.line,t.ch-p.ch+B.ch):$t(B.line+(t.line-p.line),t.ch)}function Pi(t,p,B){for(var j=[],G=$t(t.first,0),ne=G,ge=0;ge<p.length;ge++){var Se=p[ge],Pe=Ei(Se.from,G,ne),Be=Ei(Zr(Se),G,ne);if(G=Se.to,ne=Be,B=="around"){var gt=t.sel.ranges[ge],Dt=An(gt.head,gt.anchor)<0;j[ge]=new Pa(Dt?Be:Pe,Dt?Pe:Be)}else j[ge]=new Pa(Pe,Pe)}return new hi(j,t.sel.primIndex)}function $a(t){t.doc.mode=Ut(t.options,t.doc.modeOption),xi(t)}function xi(t){t.doc.iter(function(p){p.stateAfter&&(p.stateAfter=null),p.styles&&(p.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ai(t,100),t.state.modeGen++,t.curOp&&Na(t)}function Ki(t,p){return p.from.ch==0&&p.to.ch==0&&$(p.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function go(t,p,B,j){function G(kr){return B?B[kr]:null}function ne(kr,Er,Xr){Rn(kr,Er,Xr,j),Jt(kr,"change",kr,p)}function ge(kr,Er){for(var Xr=[],ia=kr;ia<Er;++ia)Xr.push(new mn(Be[ia],G(ia),j));return Xr}var Se=p.from,Pe=p.to,Be=p.text,gt=sn(t,Se.line),Dt=sn(t,Pe.line),tn=$(Be),Gt=G(Be.length-1),On=Pe.line-Se.line;if(p.full)t.insert(0,ge(0,Be.length)),t.remove(Be.length,t.size-Be.length);else if(Ki(t,p)){var Kn=ge(0,Be.length-1);ne(Dt,Dt.text,Gt),On&&t.remove(Se.line,On),Kn.length&&t.insert(Se.line,Kn)}else if(gt==Dt)if(Be.length==1)ne(gt,gt.text.slice(0,Se.ch)+tn+gt.text.slice(Pe.ch),Gt);else{var er=ge(1,Be.length-1);er.push(new mn(tn+gt.text.slice(Pe.ch),Gt,j)),ne(gt,gt.text.slice(0,Se.ch)+Be[0],G(0)),t.insert(Se.line+1,er)}else if(Be.length==1)ne(gt,gt.text.slice(0,Se.ch)+Be[0]+Dt.text.slice(Pe.ch),G(0)),t.remove(Se.line+1,On);else{ne(gt,gt.text.slice(0,Se.ch)+Be[0],G(0)),ne(Dt,tn+Dt.text.slice(Pe.ch),Gt);var yr=ge(1,Be.length-1);On>1&&t.remove(Se.line+1,On-1),t.insert(Se.line+1,yr)}Jt(t,"change",t,p)}function Qa(t,p,B){function j(G,ne,ge){if(G.linked)for(var Se=0;Se<G.linked.length;++Se){var Pe=G.linked[Se];if(Pe.doc==ne)continue;var Be=ge&&Pe.sharedHist;if(B&&!Be)continue;p(Pe.doc,Be),j(Pe.doc,G,Be)}}j(t,null,!0)}function As(t,p){if(p.cm)throw new Error("This document is already in use.");t.doc=p,p.cm=t,ba(t),$a(t),Ys(t),t.options.lineWrapping||Yt(t),t.options.mode=p.modeOption,Na(t)}function Ys(t){(t.doc.direction=="rtl"?H:x)(t.display.lineDiv,"CodeMirror-rtl")}function Pl(t){fi(t,function(){Ys(t),Na(t)})}function hs(t){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function Ds(t,p){var B={from:Ar(p.from),to:Zr(p),text:Gn(t,p.from,p.to)};return Rs(t,B,p.from.line,p.to.line+1),Qa(t,function(j){return Rs(j,B,p.from.line,p.to.line+1)},!0),B}function Js(t){for(;t.length;){var p=$(t);if(p.ranges)t.pop();else break}}function Ml(t,p){if(p)return Js(t.done),$(t.done);if(t.done.length&&!$(t.done).ranges)return $(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),$(t.done)}function Qs(t,p,B,j){var G=t.history;G.undone.length=0;var ne=+new Date,ge,Se;if((G.lastOp==j||G.lastOrigin==p.origin&&p.origin&&(p.origin.charAt(0)=="+"&&G.lastModTime>ne-(t.cm?t.cm.options.historyEventDelay:500)||p.origin.charAt(0)=="*"))&&(ge=Ml(G,G.lastOp==j)))Se=$(ge.changes),An(p.from,p.to)==0&&An(p.from,Se.to)==0?Se.to=Zr(p):ge.changes.push(Ds(t,p));else{var Pe=$(G.done);for((!Pe||!Pe.ranges)&&ms(t.sel,G.done),ge={changes:[Ds(t,p)],generation:G.generation},G.done.push(ge);G.done.length>G.undoDepth;)G.done.shift(),G.done[0].ranges||G.done.shift()}G.done.push(B),G.generation=++G.maxGeneration,G.lastModTime=G.lastSelTime=ne,G.lastOp=G.lastSelOp=j,G.lastOrigin=G.lastSelOrigin=p.origin,Se||Et(t,"historyAdded")}function Il(t,p,B,j){var G=p.charAt(0);return G=="*"||G=="+"&&B.ranges.length==j.ranges.length&&B.somethingSelected()==j.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ps(t,p,B,j){var G=t.history,ne=j&&j.origin;B==G.lastSelOp||ne&&G.lastSelOrigin==ne&&(G.lastModTime==G.lastSelTime&&G.lastOrigin==ne||Il(t,ne,$(G.done),p))?G.done[G.done.length-1]=p:ms(p,G.done),G.lastSelTime=+new Date,G.lastSelOrigin=ne,G.lastSelOp=B,j&&j.clearRedo!==!1&&Js(G.undone)}function ms(t,p){var B=$(p);B&&B.ranges&&B.equals(t)||p.push(t)}function Rs(t,p,B,j){var G=p["spans_"+t.id],ne=0;t.iter(Math.max(t.first,B),Math.min(t.first+t.size,j),function(ge){ge.markedSpans&&((G||(G=p["spans_"+t.id]={}))[ne]=ge.markedSpans),++ne})}function gs(t){if(!t)return null;for(var p,B=0;B<t.length;++B)t[B].marker.explicitlyCleared?p||(p=t.slice(0,B)):p&&p.push(t[B]);return p?p.length?p:null:t}function Zs(t,p){var B=p["spans_"+t.id];if(!B)return null;for(var j=[],G=0;G<p.text.length;++G)j.push(gs(B[G]));return j}function Ps(t,p){var B=Zs(t,p),j=la(t,p);if(!B)return j;if(!j)return B;for(var G=0;G<B.length;++G){var ne=B[G],ge=j[G];if(ne&&ge){e:for(var Se=0;Se<ge.length;++Se){for(var Pe=ge[Se],Be=0;Be<ne.length;++Be)if(ne[Be].marker==Pe.marker)continue e;ne.push(Pe)}}else ge&&(B[G]=ge)}return B}function Ho(t,p,B){for(var j=[],G=0;G<t.length;++G){var ne=t[G];if(ne.ranges){j.push(B?hi.prototype.deepCopy.call(ne):ne);continue}var ge=ne.changes,Se=[];j.push({changes:Se});for(var Pe=0;Pe<ge.length;++Pe){var Be=ge[Pe],gt=void 0;if(Se.push({from:Be.from,to:Be.to,text:Be.text}),p)for(var Dt in Be)(gt=Dt.match(/^spans_(\d+)$/))&&(he(p,Number(gt[1]))>-1&&($(Se)[Dt]=Be[Dt],delete Be[Dt]))}}return j}function vs(t,p,B,j){if(j){var G=t.anchor;if(B){var ne=An(p,G)<0;ne!=An(B,G)<0?(G=p,p=B):ne!=An(p,B)<0&&(p=B)}return new Pa(G,p)}else return new Pa(B||p,p)}function _s(t,p,B,j,G){G==null&&(G=t.cm&&(t.cm.display.shift||t.extend)),gi(t,new hi([vs(t.sel.primary(),p,B,G)],0),j)}function $s(t,p,B){for(var j=[],G=t.cm&&(t.cm.display.shift||t.extend),ne=0;ne<t.sel.ranges.length;ne++)j[ne]=vs(t.sel.ranges[ne],p[ne],null,G);var ge=sa(t.cm,j,t.sel.primIndex);gi(t,ge,B)}function Ao(t,p,B,j){var G=t.sel.ranges.slice(0);G[p]=B,gi(t,sa(t.cm,G,t.sel.primIndex),j)}function el(t,p,B,j){gi(t,Sr(p,B),j)}function Ll(t,p,B){var j={ranges:p.ranges,update:function(G){this.ranges=[];for(var ne=0;ne<G.length;ne++)this.ranges[ne]=new Pa(X(t,G[ne].anchor),X(t,G[ne].head))},origin:B&&B.origin};return Et(t,"beforeSelectionChange",t,j),t.cm&&Et(t.cm,"beforeSelectionChange",t.cm,j),j.ranges!=p.ranges?sa(t.cm,j.ranges,j.ranges.length-1):p}function tl(t,p,B){var j=t.history.done,G=$(j);G&&G.ranges?(j[j.length-1]=p,Ko(t,p,B)):gi(t,p,B)}function gi(t,p,B){Ko(t,p,B),ps(t,t.sel,t.cm?t.cm.curOp.id:NaN,B)}function Ko(t,p,B){(We(t,"beforeSelectionChange")||t.cm&&We(t.cm,"beforeSelectionChange"))&&(p=Ll(t,p,B));var j=B&&B.bias||(An(p.primary().head,t.sel.primary().head)<0?-1:1);nl(t,al(t,p,j,!0)),!(B&&B.scroll===!1)&&t.cm&&Xi(t.cm)}function nl(t,p){if(p.equals(t.sel))return;t.sel=p,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Ze(t.cm)),Jt(t,"cursorActivity",t)}function rl(t){nl(t,al(t,t.sel,null,!1))}function al(t,p,B,j){for(var G,ne=0;ne<p.ranges.length;ne++){var ge=p.ranges[ne],Se=p.ranges.length==t.sel.ranges.length&&t.sel.ranges[ne],Pe=bs(t,ge.anchor,Se&&Se.anchor,B,j),Be=bs(t,ge.head,Se&&Se.head,B,j);(G||Pe!=ge.anchor||Be!=ge.head)&&(G||(G=p.ranges.slice(0,ne)),G[ne]=new Pa(Pe,Be))}return G?sa(t.cm,G,p.primIndex):p}function Go(t,p,B,j,G){var ne=sn(t,p.line);if(ne.markedSpans)for(var ge=0;ge<ne.markedSpans.length;++ge){var Se=ne.markedSpans[ge],Pe=Se.marker,Be="selectLeft"in Pe?!Pe.selectLeft:Pe.inclusiveLeft,gt="selectRight"in Pe?!Pe.selectRight:Pe.inclusiveRight;if((Se.from==null||(Be?Se.from<=p.ch:Se.from<p.ch))&&(Se.to==null||(gt?Se.to>=p.ch:Se.to>p.ch))){if(G&&(Et(Pe,"beforeCursorEnter"),Pe.explicitlyCleared))if(ne.markedSpans){--ge;continue}else break;if(!Pe.atomic)continue;if(B){var Dt=Pe.find(j<0?1:-1),tn=void 0;if((j<0?gt:Be)&&(Dt=il(t,Dt,-j,Dt&&Dt.line==p.line?ne:null)),Dt&&Dt.line==p.line&&(tn=An(Dt,B))&&(j<0?tn<0:tn>0))return Go(t,Dt,p,j,G)}var Gt=Pe.find(j<0?-1:1);return(j<0?Be:gt)&&(Gt=il(t,Gt,j,Gt.line==p.line?ne:null)),Gt?Go(t,Gt,p,j,G):null}}return p}function bs(t,p,B,j,G){var ne=j||1,ge=Go(t,p,B,ne,G)||!G&&Go(t,p,B,ne,!0)||Go(t,p,B,-ne,G)||!G&&Go(t,p,B,-ne,!0);return ge||(t.cantEdit=!0,$t(t.first,0))}function il(t,p,B,j){return B<0&&p.ch==0?p.line>t.first?X(t,$t(p.line-1)):null:B>0&&p.ch==(j||sn(t,p.line)).text.length?p.line<t.first+t.size-1?$t(p.line+1,0):null:new $t(p.line,p.ch+B)}function ol(t){t.setSelection($t(t.firstLine(),0),$t(t.lastLine()),Te)}function Ms(t,p,B){var j={canceled:!1,from:p.from,to:p.to,text:p.text,origin:p.origin,cancel:function(){return j.canceled=!0}};return B&&(j.update=function(G,ne,ge,Se){G&&(j.from=X(t,G)),ne&&(j.to=X(t,ne)),ge&&(j.text=ge),Se!==void 0&&(j.origin=Se)}),Et(t,"beforeChange",t,j),t.cm&&Et(t.cm,"beforeChange",t.cm,j),j.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:j.from,to:j.to,text:j.text,origin:j.origin}}function zo(t,p,B){if(t.cm){if(!t.cm.curOp)return Ha(t.cm,zo)(t,p,B);if(t.cm.state.suppressEdits)return}if((We(t,"beforeChange")||t.cm&&We(t.cm,"beforeChange"))&&(p=Ms(t,p,!0),!p))return;var j=Ea&&!B&&st(t,p.from,p.to);if(j)for(var G=j.length-1;G>=0;--G)sl(t,{from:j[G].from,to:j[G].to,text:G?[""]:p.text,origin:p.origin});else sl(t,p)}function sl(t,p){if(p.text.length==1&&p.text[0]==""&&An(p.from,p.to)==0)return;var B=Wa(t,p);Qs(t,p,B,t.cm?t.cm.curOp.id:NaN),Vo(t,p,B,la(t,p));var j=[];Qa(t,function(G,ne){!ne&&he(j,G.history)==-1&&(dl(G.history,p),j.push(G.history)),Vo(G,p,null,la(G,p))})}function ys(t,p,B){var j=t.cm&&t.cm.state.suppressEdits;if(j&&!B)return;for(var G=t.history,ne,ge=t.sel,Se=p=="undo"?G.done:G.undone,Pe=p=="undo"?G.undone:G.done,Be=0;Be<Se.length&&!(ne=Se[Be],B?ne.ranges&&!ne.equals(t.sel):!ne.ranges);Be++);if(Be==Se.length)return;for(G.lastOrigin=G.lastSelOrigin=null;;)if(ne=Se.pop(),ne.ranges){if(ms(ne,Pe),B&&!ne.equals(t.sel)){gi(t,ne,{clearRedo:!1});return}ge=ne}else if(j){Se.push(ne);return}else break;var gt=[];ms(ge,Pe),Pe.push({changes:gt,generation:G.generation}),G.generation=ne.generation||++G.maxGeneration;for(var Dt=We(t,"beforeChange")||t.cm&&We(t.cm,"beforeChange"),tn=function(Kn){var er=ne.changes[Kn];if(er.origin=p,Dt&&!Ms(t,er,!1))return Se.length=0,{};gt.push(Ds(t,er));var yr=Kn?Wa(t,er):$(Se);Vo(t,er,yr,Ps(t,er)),!Kn&&t.cm&&t.cm.scrollIntoView({from:er.from,to:Zr(er)});var kr=[];Qa(t,function(Er,Xr){!Xr&&he(kr,Er.history)==-1&&(dl(Er.history,er),kr.push(Er.history)),Vo(Er,er,null,Ps(Er,er))})},Gt=ne.changes.length-1;Gt>=0;--Gt){var On=tn(Gt);if(On)return On.v}}function ll(t,p){if(p==0)return;if(t.first+=p,t.sel=new hi(me(t.sel.ranges,function(G){return new Pa($t(G.anchor.line+p,G.anchor.ch),$t(G.head.line+p,G.head.ch))}),t.sel.primIndex),t.cm){Na(t.cm,t.first,t.first-p,p);for(var B=t.cm.display,j=B.viewFrom;j<B.viewTo;j++)ka(t.cm,j,"gutter")}}function Vo(t,p,B,j){if(t.cm&&!t.cm.curOp)return Ha(t.cm,Vo)(t,p,B,j);if(p.to.line<t.first){ll(t,p.text.length-1-(p.to.line-p.from.line));return}if(p.from.line>t.lastLine())return;if(p.from.line<t.first){var G=p.text.length-1-(t.first-p.from.line);ll(t,G),p={from:$t(t.first,0),to:$t(p.to.line+G,p.to.ch),text:[$(p.text)],origin:p.origin}}var ne=t.lastLine();p.to.line>ne&&(p={from:p.from,to:$t(ne,sn(t,ne).text.length),text:[p.text[0]],origin:p.origin}),p.removed=Gn(t,p.from,p.to),B||(B=Wa(t,p)),t.cm?Nl(t.cm,p,j):go(t,p,j),Ko(t,B,Te),t.cantEdit&&bs(t,$t(t.firstLine(),0))&&(t.cantEdit=!1)}function Nl(t,p,B){var j=t.doc,G=t.display,ne=p.from,ge=p.to,Se=!1,Pe=ne.line;t.options.lineWrapping||(Pe=Zn(an(sn(j,ne.line))),j.iter(Pe,ge.line+1,function(Gt){if(Gt==G.maxLine)return Se=!0,!0})),j.sel.contains(p.from,p.to)>-1&&Ze(t),go(j,p,B,xa(t)),t.options.lineWrapping||(j.iter(Pe,ne.line+p.text.length,function(Gt){var On=wn(Gt);On>G.maxLineLength&&(G.maxLine=Gt,G.maxLineLength=On,G.maxLineChanged=!0,Se=!1)}),Se&&(t.curOp.updateMaxLine=!0)),Ba(j,ne.line),ai(t,400);var Be=p.text.length-(ge.line-ne.line)-1;p.full?Na(t):ne.line==ge.line&&p.text.length==1&&!Ki(t.doc,p)?ka(t,ne.line,"text"):Na(t,ne.line,ge.line+1,Be);var gt=We(t,"changes"),Dt=We(t,"change");if(Dt||gt){var tn={from:ne,to:ge,text:p.text,removed:p.removed,origin:p.origin};Dt&&Jt(t,"change",t,tn),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(tn)}t.display.selForContextMenu=null}function Xo(t,p,B,j,G){var ne;j||(j=B),An(j,B)<0&&(ne=[j,B],B=ne[0],j=ne[1]),typeof p=="string"&&(p=t.splitLines(p)),zo(t,{from:B,to:j,text:p,origin:G})}function ul(t,p,B,j){B<t.line?t.line+=j:p<t.line&&(t.line=p,t.ch=0)}function cl(t,p,B,j){for(var G=0;G<t.length;++G){var ne=t[G],ge=!0;if(ne.ranges){ne.copied||(ne=t[G]=ne.deepCopy(),ne.copied=!0);for(var Se=0;Se<ne.ranges.length;Se++)ul(ne.ranges[Se].anchor,p,B,j),ul(ne.ranges[Se].head,p,B,j);continue}for(var Pe=0;Pe<ne.changes.length;++Pe){var Be=ne.changes[Pe];if(B<Be.from.line)Be.from=$t(Be.from.line+j,Be.from.ch),Be.to=$t(Be.to.line+j,Be.to.ch);else if(p<=Be.to.line){ge=!1;break}}ge||(t.splice(0,G+1),G=0)}}function dl(t,p){var B=p.from.line,j=p.to.line,G=p.text.length-(j-B)-1;cl(t.done,B,j,G),cl(t.undone,B,j,G)}function ts(t,p,B,j){var G=p,ne=p;return typeof p=="number"?ne=sn(t,pe(t,p)):G=Zn(p),G==null?null:(j(ne,G)&&t.cm&&ka(t.cm,G,B),ne)}function Do(t){this.lines=t,this.parent=null;for(var p=0,B=0;B<t.length;++B)t[B].parent=this,p+=t[B].height;this.height=p}Do.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,p){for(var B=t,j=t+p;B<j;++B){var G=this.lines[B];this.height-=G.height,en(G),Jt(G,"delete")}this.lines.splice(t,p)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,p,B){this.height+=B,this.lines=this.lines.slice(0,t).concat(p).concat(this.lines.slice(t));for(var j=0;j<p.length;++j)p[j].parent=this},iterN:function(t,p,B){for(var j=t+p;t<j;++t)if(B(this.lines[t]))return!0}};function Yo(t){this.children=t;for(var p=0,B=0,j=0;j<t.length;++j){var G=t[j];p+=G.chunkSize(),B+=G.height,G.parent=this}this.size=p,this.height=B,this.parent=null}Yo.prototype={chunkSize:function(){return this.size},removeInner:function(t,p){this.size-=p;for(var B=0;B<this.children.length;++B){var j=this.children[B],G=j.chunkSize();if(t<G){var ne=Math.min(p,G-t),ge=j.height;if(j.removeInner(t,ne),this.height-=ge-j.height,G==ne&&(this.children.splice(B--,1),j.parent=null),(p-=ne)==0)break;t=0}else t-=G}if(this.size-p<25&&(this.children.length>1||!(this.children[0]instanceof Do))){var Se=[];this.collapse(Se),this.children=[new Do(Se)],this.children[0].parent=this}},collapse:function(t){for(var p=0;p<this.children.length;++p)this.children[p].collapse(t)},insertInner:function(t,p,B){this.size+=p.length,this.height+=B;for(var j=0;j<this.children.length;++j){var G=this.children[j],ne=G.chunkSize();if(t<=ne){if(G.insertInner(t,p,B),G.lines&&G.lines.length>50){for(var ge=G.lines.length%25+25,Se=ge;Se<G.lines.length;){var Pe=new Do(G.lines.slice(Se,Se+=25));G.height-=Pe.height,this.children.splice(++j,0,Pe),Pe.parent=this}G.lines=G.lines.slice(0,ge),this.maybeSpill()}break}t-=ne}},maybeSpill:function(){if(this.children.length<=10)return;var t=this;do{var p=t.children.splice(t.children.length-5,5),B=new Yo(p);if(t.parent){t.size-=B.size,t.height-=B.height;var G=he(t.parent.children,t);t.parent.children.splice(G+1,0,B)}else{var j=new Yo(t.children);j.parent=t,t.children=[j,B],t=j}B.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()},iterN:function(t,p,B){for(var j=0;j<this.children.length;++j){var G=this.children[j],ne=G.chunkSize();if(t<ne){var ge=Math.min(p,ne-t);if(G.iterN(t,ge,B))return!0;if((p-=ge)==0)break;t=0}else t-=ne}}};var ns=function(t,p,B){if(B)for(var j in B)B.hasOwnProperty(j)&&(this[j]=B[j]);this.doc=t,this.node=p};ns.prototype.clear=function(){var t=this.doc.cm,p=this.line.widgets,B=this.line,j=Zn(B);if(j==null||!p)return;for(var G=0;G<p.length;++G)p[G]==this&&p.splice(G--,1);p.length||(B.widgets=null);var ne=Jr(this);Vn(B,Math.max(0,B.height-ne)),t&&(fi(t,function(){fl(t,B,-ne),ka(t,j,"widget")}),Jt(t,"lineWidgetCleared",t,this,j))},ns.prototype.changed=function(){var t=this,p=this.height,B=this.doc.cm,j=this.line;this.height=null;var G=Jr(this)-p;if(!G)return;qn(this.doc,j)||Vn(j,j.height+G),B&&fi(B,function(){B.curOp.forceUpdate=!0,fl(B,j,G),Jt(B,"lineWidgetChanged",B,t,Zn(j))})},Je(ns);function fl(t,p,B){Fr(p)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&co(t,B)}function kl(t,p,B,j){var G=new ns(t,B,j),ne=t.cm;return ne&&G.noHScroll&&(ne.display.alignWidgets=!0),ts(t,p,"widget",function(ge){var Se=ge.widgets||(ge.widgets=[]);if(G.insertAt==null?Se.push(G):Se.splice(Math.min(Se.length-1,Math.max(0,G.insertAt)),0,G),G.line=ge,ne&&!qn(t,ge)){var Pe=Fr(ge)<t.scrollTop;Vn(ge,ge.height+Jr(G)),Pe&&co(ne,G.height),ne.curOp.forceUpdate=!0}return!0}),ne&&Jt(ne,"lineWidgetAdded",ne,G,typeof p=="number"?p:Zn(p)),G}var hl=0,Gi=function(t,p){this.lines=[],this.type=p,this.doc=t,this.id=++hl};Gi.prototype.clear=function(){if(this.explicitlyCleared)return;var t=this.doc.cm,p=t&&!t.curOp;if(p&&Ni(t),We(this,"clear")){var B=this.find();B&&Jt(this,"clear",B.from,B.to)}for(var j=null,G=null,ne=0;ne<this.lines.length;++ne){var ge=this.lines[ne],Se=Ua(ge.markedSpans,this);t&&!this.collapsed?ka(t,Zn(ge),"text"):t&&(Se.to!=null&&(G=Zn(ge)),Se.from!=null&&(j=Zn(ge))),ge.markedSpans=li(ge.markedSpans,Se),Se.from==null&&this.collapsed&&!qn(this.doc,ge)&&t&&Vn(ge,br(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var Pe=0;Pe<this.lines.length;++Pe){var Be=an(this.lines[Pe]),gt=wn(Be);gt>t.display.maxLineLength&&(t.display.maxLine=Be,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}j!=null&&t&&this.collapsed&&Na(t,j,G+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&rl(t.doc)),t&&Jt(t,"markerCleared",t,this,j,G),p&&qi(t),this.parent&&this.parent.clear()},Gi.prototype.find=function(t,p){t==null&&this.type=="bookmark"&&(t=1);for(var B,j,G=0;G<this.lines.length;++G){var ne=this.lines[G],ge=Ua(ne.markedSpans,this);if(ge.from!=null&&(B=$t(p?ne:Zn(ne),ge.from),t==-1))return B;if(ge.to!=null&&(j=$t(p?ne:Zn(ne),ge.to),t==1))return j}return B&&{from:B,to:j}},Gi.prototype.changed=function(){var t=this,p=this.find(-1,!0),B=this,j=this.doc.cm;if(!p||!j)return;fi(j,function(){var G=p.line,ne=Zn(p.line),ge=pt(j,ne);if(ge&&(zn(ge),j.curOp.selectionChanged=j.curOp.forceUpdate=!0),j.curOp.updateMaxLine=!0,!qn(B.doc,G)&&B.height!=null){var Se=B.height;B.height=null;var Pe=Jr(B)-Se;Pe&&Vn(G,G.height+Pe)}Jt(j,"markerChanged",j,t)})},Gi.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(!p.maybeHiddenMarkers||he(p.maybeHiddenMarkers,this)==-1)&&(p.maybeUnhiddenMarkers||(p.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Gi.prototype.detachLine=function(t){if(this.lines.splice(he(this.lines,t),1),!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(p.maybeHiddenMarkers||(p.maybeHiddenMarkers=[])).push(this)}},Je(Gi);function Jo(t,p,B,j,G){if(j&&j.shared)return Ul(t,p,B,j,G);if(t.cm&&!t.cm.curOp)return Ha(t.cm,Jo)(t,p,B,j,G);var ne=new Gi(t,G),ge=An(p,B);if(j&&L(j,ne,!1),ge>0||ge==0&&ne.clearWhenEmpty!==!1)return ne;if(ne.replacedWith&&(ne.collapsed=!0,ne.widgetNode=U("span",[ne.replacedWith],"CodeMirror-widget"),j.handleMouseEvents||ne.widgetNode.setAttribute("cm-ignore-events","true"),j.insertLeft&&(ne.widgetNode.insertLeft=!0)),ne.collapsed){if(Dn(t,p.line,p,B,ne)||p.line!=B.line&&Dn(t,B.line,p,B,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ta()}ne.addToHistory&&Qs(t,{from:p,to:B,origin:"markText"},t.sel,NaN);var Se=p.line,Pe=t.cm,Be;if(t.iter(Se,B.line+1,function(Dt){Pe&&ne.collapsed&&!Pe.options.lineWrapping&&an(Dt)==Pe.display.maxLine&&(Be=!0),ne.collapsed&&Se!=p.line&&Vn(Dt,0),oi(Dt,new Ja(ne,Se==p.line?p.ch:null,Se==B.line?B.ch:null)),++Se}),ne.collapsed&&t.iter(p.line,B.line+1,function(Dt){qn(t,Dt)&&Vn(Dt,0)}),ne.clearOnEnter&&je(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(Ka(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),ne.collapsed&&(ne.id=++hl,ne.atomic=!0),Pe){if(Be&&(Pe.curOp.updateMaxLine=!0),ne.collapsed)Na(Pe,p.line,B.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var gt=p.line;gt<=B.line;gt++)ka(Pe,gt,"text");ne.atomic&&rl(Pe.doc),Jt(Pe,"markerAdded",Pe,ne)}return ne}var Qo=function(t,p){this.markers=t,this.primary=p;for(var B=0;B<t.length;++B)t[B].parent=this};Qo.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Jt(this,"clear")},Qo.prototype.find=function(t,p){return this.primary.find(t,p)},Je(Qo);function Ul(t,p,B,j,G){j=L(j),j.shared=!1;var ne=[Jo(t,p,B,j,G)],ge=ne[0],Se=j.widgetNode;return Qa(t,function(Pe){Se&&(j.widgetNode=Se.cloneNode(!0)),ne.push(Jo(Pe,X(Pe,p),X(Pe,B),j,G));for(var Be=0;Be<Pe.linked.length;++Be)if(Pe.linked[Be].isParent)return;ge=$(ne)}),new Qo(ne,ge)}function pl(t){return t.findMarks($t(t.first,0),t.clipPos($t(t.lastLine())),function(p){return p.parent})}function iu(t,p){for(var B=0;B<p.length;B++){var j=p[B],G=j.find(),ne=t.clipPos(G.from),ge=t.clipPos(G.to);if(An(ne,ge)){var Se=Jo(t,ne,ge,j.primary,j.primary.type);j.markers.push(Se),Se.parent=j}}}function jl(t){for(var p=function(j){var G=t[j],ne=[G.primary.doc];Qa(G.primary.doc,function(Pe){return ne.push(Pe)});for(var ge=0;ge<G.markers.length;ge++){var Se=G.markers[ge];he(ne,Se.doc)==-1&&(Se.parent=null,G.markers.splice(ge--,1))}},B=0;B<t.length;B++)p(B)}var Is=0,Ti=function(t,p,B,j,G){if(!(this instanceof Ti))return new Ti(t,p,B,j,G);B==null&&(B=0),Yo.call(this,[new Do([new mn("",null)])]),this.first=B,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=B;var ne=$t(B,0);this.sel=Sr(ne),this.history=new hs(null),this.id=++Is,this.modeOption=p,this.lineSep=j,this.direction=G=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),go(this,{from:ne,to:ne,text:t}),gi(this,Sr(ne),Te)};Ti.prototype=we(Yo.prototype,{constructor:Ti,iter:function(t,p,B){B?this.iterN(t-this.first,p-t,B):this.iterN(this.first,this.first+this.size,t)},insert:function(t,p){for(var B=0,j=0;j<p.length;++j)B+=p[j].height;this.insertInner(t-this.first,p,B)},remove:function(t,p){this.removeInner(t-this.first,p)},getValue:function(t){var p=Nn(this,this.first,this.first+this.size);return t===!1?p:p.join(t||this.lineSeparator())},setValue:Xa(function(t){var p=$t(this.first,0),B=this.first+this.size-1;zo(this,{from:p,to:$t(B,sn(this,B).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Yi(this.cm,0,0),gi(this,Sr(p),Te)}),replaceRange:function(t,p,B,j){p=X(this,p),B=B?X(this,B):p,Xo(this,t,p,B,j)},getRange:function(t,p,B){var j=Gn(this,X(this,t),X(this,p));return B===!1?j:j.join(B||this.lineSeparator())},getLine:function(t){var p=this.getLineHandle(t);return p&&p.text},getLineHandle:function(t){if(dr(this,t))return sn(this,t)},getLineNumber:function(t){return Zn(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=sn(this,t)),an(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return X(this,t)},getCursor:function(t){var p=this.sel.primary(),B;return t==null||t=="head"?B=p.head:t=="anchor"?B=p.anchor:t=="end"||t=="to"||t===!1?B=p.to():B=p.from(),B},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Xa(function(t,p,B){el(this,X(this,typeof t=="number"?$t(t,p||0):t),null,B)}),setSelection:Xa(function(t,p,B){el(this,X(this,t),X(this,p||t),B)}),extendSelection:Xa(function(t,p,B){_s(this,X(this,t),p&&X(this,p),B)}),extendSelections:Xa(function(t,p){$s(this,oe(this,t),p)}),extendSelectionsBy:Xa(function(t,p){var B=me(this.sel.ranges,t);$s(this,oe(this,B),p)}),setSelections:Xa(function(t,p,B){if(!t.length)return;for(var j=[],G=0;G<t.length;G++)j[G]=new Pa(X(this,t[G].anchor),X(this,t[G].head));p==null&&(p=Math.min(t.length-1,this.sel.primIndex)),gi(this,sa(this.cm,j,p),B)}),addSelection:Xa(function(t,p,B){var j=this.sel.ranges.slice(0);j.push(new Pa(X(this,t),X(this,p||t))),gi(this,sa(this.cm,j,j.length-1),B)}),getSelection:function(t){for(var p=this.sel.ranges,B,j=0;j<p.length;j++){var G=Gn(this,p[j].from(),p[j].to());B=B?B.concat(G):G}return t===!1?B:B.join(t||this.lineSeparator())},getSelections:function(t){for(var p=[],B=this.sel.ranges,j=0;j<B.length;j++){var G=Gn(this,B[j].from(),B[j].to());t!==!1&&(G=G.join(t||this.lineSeparator())),p[j]=G}return p},replaceSelection:function(t,p,B){for(var j=[],G=0;G<this.sel.ranges.length;G++)j[G]=t;this.replaceSelections(j,p,B||"+input")},replaceSelections:Xa(function(t,p,B){for(var j=[],G=this.sel,ne=0;ne<G.ranges.length;ne++){var ge=G.ranges[ne];j[ne]={from:ge.from(),to:ge.to(),text:this.splitLines(t[ne]),origin:B}}for(var Se=p&&p!="end"&&Pi(this,j,p),Pe=j.length-1;Pe>=0;Pe--)zo(this,j[Pe]);Se?tl(this,Se):this.cm&&Xi(this.cm)}),undo:Xa(function(){ys(this,"undo")}),redo:Xa(function(){ys(this,"redo")}),undoSelection:Xa(function(){ys(this,"undo",!0)}),redoSelection:Xa(function(){ys(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,p=0,B=0,j=0;j<t.done.length;j++)t.done[j].ranges||++p;for(var G=0;G<t.undone.length;G++)t.undone[G].ranges||++B;return{undo:p,redo:B}},clearHistory:function(){var t=this;this.history=new hs(this.history.maxGeneration),Qa(this,function(p){return p.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ho(this.history.done),undone:Ho(this.history.undone)}},setHistory:function(t){var p=this.history=new hs(this.history.maxGeneration);p.done=Ho(t.done.slice(0),null,!0),p.undone=Ho(t.undone.slice(0),null,!0)},setGutterMarker:Xa(function(t,p,B){return ts(this,t,"gutter",function(j){var G=j.gutterMarkers||(j.gutterMarkers={});return G[p]=B,!B&&J(G)&&(j.gutterMarkers=null),!0})}),clearGutter:Xa(function(t){var p=this;this.iter(function(B){B.gutterMarkers&&B.gutterMarkers[t]&&ts(p,B,"gutter",function(){return B.gutterMarkers[t]=null,J(B.gutterMarkers)&&(B.gutterMarkers=null),!0})})}),lineInfo:function(t){var p;if(typeof t=="number"){if(!dr(this,t))return null;if(p=t,t=sn(this,t),!t)return null}else if(p=Zn(t),p==null)return null;return{line:p,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Xa(function(t,p,B){return ts(this,t,p=="gutter"?"gutter":"class",function(j){var G=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass";if(!j[G])j[G]=B;else{if(R(B).test(j[G]))return!1;j[G]+=" "+B}return!0})}),removeLineClass:Xa(function(t,p,B){return ts(this,t,p=="gutter"?"gutter":"class",function(j){var G=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass",ne=j[G];if(ne)if(B==null)j[G]=null;else{var ge=ne.match(R(B));if(!ge)return!1;var Se=ge.index+ge[0].length;j[G]=ne.slice(0,ge.index)+(!ge.index||Se==ne.length?"":" ")+ne.slice(Se)||null}else return!1;return!0})}),addLineWidget:Xa(function(t,p,B){return kl(this,t,p,B)}),removeLineWidget:function(t){t.clear()},markText:function(t,p,B){return Jo(this,X(this,t),X(this,p),B,B&&B.type||"range")},setBookmark:function(t,p){var B={replacedWith:p&&(p.nodeType==null?p.widget:p),insertLeft:p&&p.insertLeft,clearWhenEmpty:!1,shared:p&&p.shared,handleMouseEvents:p&&p.handleMouseEvents};return t=X(this,t),Jo(this,t,t,B,"bookmark")},findMarksAt:function(t){t=X(this,t);var p=[],B=sn(this,t.line).markedSpans;if(B)for(var j=0;j<B.length;++j){var G=B[j];(G.from==null||G.from<=t.ch)&&(G.to==null||G.to>=t.ch)&&p.push(G.marker.parent||G.marker)}return p},findMarks:function(t,p,B){t=X(this,t),p=X(this,p);var j=[],G=t.line;return this.iter(t.line,p.line+1,function(ne){var ge=ne.markedSpans;if(ge)for(var Se=0;Se<ge.length;Se++){var Pe=ge[Se];!(Pe.to!=null&&G==t.line&&t.ch>=Pe.to||Pe.from==null&&G!=t.line||Pe.from!=null&&G==p.line&&Pe.from>=p.ch)&&(!B||B(Pe.marker))&&j.push(Pe.marker.parent||Pe.marker)}++G}),j},getAllMarks:function(){var t=[];return this.iter(function(p){var B=p.markedSpans;if(B)for(var j=0;j<B.length;++j)B[j].from!=null&&t.push(B[j].marker)}),t},posFromIndex:function(t){var p,B=this.first,j=this.lineSeparator().length;return this.iter(function(G){var ne=G.text.length+j;if(ne>t)return p=t,!0;t-=ne,++B}),X(this,$t(B,p))},indexFromPos:function(t){t=X(this,t);var p=t.ch;if(t.line<this.first||t.ch<0)return 0;var B=this.lineSeparator().length;return this.iter(this.first,t.line,function(j){p+=j.text.length+B}),p},copy:function(t){var p=new Ti(Nn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return p.scrollTop=this.scrollTop,p.scrollLeft=this.scrollLeft,p.sel=this.sel,p.extend=!1,t&&(p.history.undoDepth=this.history.undoDepth,p.setHistory(this.getHistory())),p},linkedDoc:function(t){t||(t={});var p=this.first,B=this.first+this.size;t.from!=null&&t.from>p&&(p=t.from),t.to!=null&&t.to<B&&(B=t.to);var j=new Ti(Nn(this,p,B),t.mode||this.modeOption,p,this.lineSep,this.direction);return t.sharedHist&&(j.history=this.history),(this.linked||(this.linked=[])).push({doc:j,sharedHist:t.sharedHist}),j.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],iu(j,pl(this)),j},unlinkDoc:function(t){if(t instanceof Ya&&(t=t.doc),this.linked)for(var p=0;p<this.linked.length;++p){var B=this.linked[p];if(B.doc!=t)continue;this.linked.splice(p,1),t.unlinkDoc(this),jl(pl(this));break}if(t.history==this.history){var j=[t.id];Qa(t,function(G){return j.push(G.id)},!0),t.history=new hs(null),t.history.done=Ho(this.history.done,j),t.history.undone=Ho(this.history.undone,j)}},iterLinkedDocs:function(t){Qa(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):ke(t)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Xa(function(t){if(t!="rtl"&&(t="ltr"),t==this.direction)return;this.direction=t,this.iter(function(p){return p.order=null}),this.cm&&Pl(this.cm)})}),Ti.prototype.eachLine=Ti.prototype.iter;var ml=0;function Bl(t){var p=this;if(Ls(p),Pt(p,t)||Oa(p.display,t))return;Ae(t),A&&(ml=+new Date);var B=Aa(p,t,!0),j=t.dataTransfer.files;if(!B||p.isReadOnly())return;if(j&&j.length&&window.FileReader&&window.File)for(var G=j.length,ne=Array(G),ge=0,Se=function(){++ge==G&&Ha(p,function(){B=X(p.doc,B);var Gt={from:B,to:B,text:p.doc.splitLines(ne.filter(function(On){return On!=null}).join(p.doc.lineSeparator())),origin:"paste"};zo(p.doc,Gt),tl(p.doc,Sr(X(p.doc,B),X(p.doc,Zr(Gt))))})()},Pe=function(Gt,On){if(p.options.allowDropFileTypes&&he(p.options.allowDropFileTypes,Gt.type)==-1){Se();return}var Kn=new FileReader;Kn.onerror=function(){return Se()},Kn.onload=function(){var er=Kn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(er)){Se();return}ne[On]=er,Se()},Kn.readAsText(Gt)},Be=0;Be<j.length;Be++)Pe(j[Be],Be);else{if(p.state.draggingText&&p.doc.sel.contains(B)>-1){p.state.draggingText(t),setTimeout(function(){return p.display.input.focus()},20);return}try{var gt=t.dataTransfer.getData("Text");if(gt){var Dt;if(p.state.draggingText&&!p.state.draggingText.copy&&(Dt=p.listSelections()),Ko(p.doc,Sr(B,B)),Dt)for(var tn=0;tn<Dt.length;++tn)Xo(p.doc,"",Dt[tn].anchor,Dt[tn].head,"drag");p.replaceSelection(gt,"around","paste"),p.display.input.focus()}}catch(Gt){}}}function gl(t,p){if(A&&(!t.state.draggingText||+new Date-ml<100)){Fe(p);return}if(Pt(t,p)||Oa(t.display,p))return;if(p.dataTransfer.setData("Text",t.getSelection()),p.dataTransfer.effectAllowed="copyMove",p.dataTransfer.setDragImage&&!n){var B=T("img",null,null,"position: fixed; left: 0; top: 0;");B.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",l&&(B.width=B.height=1,t.display.wrapper.appendChild(B),B._top=B.offsetTop),p.dataTransfer.setDragImage(B,0,0),l&&B.parentNode.removeChild(B)}}function Fl(t,p){var B=Aa(t,p);if(!B)return;var j=document.createDocumentFragment();Si(t,B,j),t.display.dragCursor||(t.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),v(t.display.dragCursor,j)}function Ls(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function vl(t){if(!document.getElementsByClassName)return;for(var p=document.getElementsByClassName("CodeMirror"),B=[],j=0;j<p.length;j++){var G=p[j].CodeMirror;G&&B.push(G)}B.length&&B[0].operation(function(){for(var ne=0;ne<B.length;ne++)t(B[ne])})}var Ns=!1;function ou(){if(Ns)return;ks(),Ns=!0}function ks(){var t;je(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,vl(Wl)},100))}),je(window,"blur",function(){return vl(no)})}function Wl(t){var p=t.display;p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.scrollbarsClipped=!1,t.setSize()}for(var Ro={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},rs=0;rs<10;rs++)Ro[rs+48]=Ro[rs+96]=String(rs);for(var Es=65;Es<=90;Es++)Ro[Es]=String.fromCharCode(Es);for(var as=1;as<=12;as++)Ro[as+111]=Ro[as+63235]="F"+as;var vo={};vo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},vo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},vo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},vo.default=s?vo.macDefault:vo.pcDefault;function Hl(t){var p=t.split(/-(?!$)/);t=p[p.length-1];for(var B,j,G,ne,ge=0;ge<p.length-1;ge++){var Se=p[ge];if(/^(cmd|meta|m)$/i.test(Se))ne=!0;else if(/^a(lt)?$/i.test(Se))B=!0;else if(/^(c|ctrl|control)$/i.test(Se))j=!0;else if(/^s(hift)?$/i.test(Se))G=!0;else throw new Error("Unrecognized modifier name: "+Se)}return B&&(t="Alt-"+t),j&&(t="Ctrl-"+t),ne&&(t="Cmd-"+t),G&&(t="Shift-"+t),t}function _l(t){var p={};for(var B in t)if(t.hasOwnProperty(B)){var j=t[B];if(/^(name|fallthrough|(de|at)tach)$/.test(B))continue;if(j=="..."){delete t[B];continue}for(var G=me(B.split(" "),Hl),ne=0;ne<G.length;ne++){var ge=void 0,Se=void 0;ne==G.length-1?(Se=G.join(" "),ge=j):(Se=G.slice(0,ne+1).join(" "),ge="...");var Pe=p[Se];if(!Pe)p[Se]=ge;else if(Pe!=ge)throw new Error("Inconsistent bindings for "+Se)}delete t[B]}for(var Be in p)t[Be]=p[Be];return t}function _o(t,p,B,j){p=os(p);var G=p.call?p.call(t,j):p[t];if(G===!1)return"nothing";if(G==="...")return"multi";if(G!=null&&B(G))return"handled";if(p.fallthrough){if(Object.prototype.toString.call(p.fallthrough)!="[object Array]")return _o(t,p.fallthrough,B,j);for(var ne=0;ne<p.fallthrough.length;ne++){var ge=_o(t,p.fallthrough[ne],B,j);if(ge)return ge}}}function is(t){var p=typeof t=="string"?t:Ro[t.keyCode];return p=="Ctrl"||p=="Alt"||p=="Shift"||p=="Mod"}function bl(t,p,B){var j=t;return p.altKey&&j!="Alt"&&(t="Alt-"+t),(_?p.metaKey:p.ctrlKey)&&j!="Ctrl"&&(t="Ctrl-"+t),(_?p.ctrlKey:p.metaKey)&&j!="Mod"&&(t="Cmd-"+t),!B&&p.shiftKey&&j!="Shift"&&(t="Shift-"+t),t}function xs(t,p){if(l&&t.keyCode==34&&t.char)return!1;var B=Ro[t.keyCode];return B==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(B=t.code),bl(B,t,p))}function os(t){return typeof t=="string"?vo[t]:t}function Zo(t,p){for(var B=t.doc.sel.ranges,j=[],G=0;G<B.length;G++){for(var ne=p(B[G]);j.length&&An(ne.from,$(j).to)<=0;){var ge=j.pop();if(An(ge.from,ne.from)<0){ne.from=ge.from;break}}j.push(ne)}fi(t,function(){for(var Se=j.length-1;Se>=0;Se--)Xo(t.doc,"",j[Se].from,j[Se].to,"+delete");Xi(t)})}function Us(t,p,B){var j=Oe(t.text,p+B,B);return j<0||j>t.text.length?null:j}function js(t,p,B){var j=Us(t,p.ch,B);return j==null?null:new $t(p.line,j,B<0?"after":"before")}function Bs(t,p,B,j,G){if(t){p.doc.direction=="rtl"&&(G=-G);var ne=_t(B,p.doc.direction);if(ne){var ge=G<0?$(ne):ne[0],Se=G<0==(ge.level==1),Pe=Se?"after":"before",Be;if(ge.level>0||p.doc.direction=="rtl"){var gt=it(p,B);Be=G<0?B.text.length-1:0;var Dt=It(p,gt,Be).top;Be=Xe(function(tn){return It(p,gt,tn).top==Dt},G<0==(ge.level==1)?ge.from:ge.to-1,Be),Pe=="before"&&(Be=Us(B,Be,1))}else Be=G<0?ge.to:ge.from;return new $t(j,Be,Pe)}}return new $t(j,G<0?B.text.length:0,G<0?"before":"after")}function Fs(t,p,B,j){var G=_t(p,t.doc.direction);if(!G)return js(p,B,j);B.ch>=p.text.length?(B.ch=p.text.length,B.sticky="before"):B.ch<=0&&(B.ch=0,B.sticky="after");var ne=dt(G,B.ch,B.sticky),ge=G[ne];if(t.doc.direction=="ltr"&&ge.level%2==0&&(j>0?ge.to>B.ch:ge.from<B.ch))return js(p,B,j);var Se=function(yr,kr){return Us(p,yr instanceof $t?yr.ch:yr,kr)},Pe,Be=function(yr){return t.options.lineWrapping?(Pe=Pe||it(t,p),hr(t,p,Pe,yr)):{begin:0,end:p.text.length}},gt=Be(B.sticky=="before"?Se(B,-1):B.ch);if(t.doc.direction=="rtl"||ge.level==1){var Dt=ge.level==1==j<0,tn=Se(B,Dt?1:-1);if(tn!=null&&(Dt?tn<=ge.to&&tn<=gt.end:tn>=ge.from&&tn>=gt.begin)){var Gt=Dt?"before":"after";return new $t(B.line,tn,Gt)}}var On=function(yr,kr,Er){for(var Xr=function(Va,vi){return vi?new $t(B.line,Se(Va,1),"before"):new $t(B.line,Va,"after")};yr>=0&&yr<G.length;yr+=kr){var ia=G[yr],ea=kr>0==(ia.level!=1),wa=ea?Er.begin:Se(Er.end,-1);if(ia.from<=wa&&wa<ia.to)return Xr(wa,ea);if(wa=ea?ia.from:Se(ia.to,-1),Er.begin<=wa&&wa<Er.end)return Xr(wa,ea)}},Kn=On(ne+j,j,gt);if(Kn)return Kn;var er=j>0?gt.end:Se(gt.begin,-1);return er!=null&&!(j>0&&er==p.text.length)&&(Kn=On(j>0?0:G.length-1,j,Be(er)),Kn)?Kn:null}var qo={selectAll:ol,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Te)},killLine:function(t){return Zo(t,function(p){if(p.empty()){var B=sn(t.doc,p.head.line).text.length;return p.head.ch==B&&p.head.line<t.lastLine()?{from:p.head,to:$t(p.head.line+1,0)}:{from:p.head,to:$t(p.head.line,B)}}else return{from:p.from(),to:p.to()}})},deleteLine:function(t){return Zo(t,function(p){return{from:$t(p.from().line,0),to:X(t.doc,$t(p.to().line+1,0))}})},delLineLeft:function(t){return Zo(t,function(p){return{from:$t(p.from().line,0),to:p.from()}})},delWrappedLineLeft:function(t){return Zo(t,function(p){var B=t.charCoords(p.head,"div").top+5,j=t.coordsChar({left:0,top:B},"div");return{from:j,to:p.from()}})},delWrappedLineRight:function(t){return Zo(t,function(p){var B=t.charCoords(p.head,"div").top+5,j=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:B},"div");return{from:p.from(),to:j}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection($t(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection($t(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(p){return Cs(t,p.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(p){return yl(t,p.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(p){return Ws(t,p.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(p){var B=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:B},"div")},ye)},goLineLeft:function(t){return t.extendSelectionsBy(function(p){var B=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:0,top:B},"div")},ye)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(p){var B=t.cursorCoords(p.head,"div").top+5,j=t.coordsChar({left:0,top:B},"div");return j.ch<t.getLine(j.line).search(/\S/)?yl(t,p.head):j},ye)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var p=[],B=t.listSelections(),j=t.options.tabSize,G=0;G<B.length;G++){var ne=B[G].from(),ge=K(t.getLine(ne.line),ne.ch,j);p.push(se(j-ge%j))}t.replaceSelections(p)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return fi(t,function(){for(var p=t.listSelections(),B=[],j=0;j<p.length;j++){if(!p[j].empty())continue;var G=p[j].head,ne=sn(t.doc,G.line).text;if(ne){if(G.ch==ne.length&&(G=new $t(G.line,G.ch-1)),G.ch>0)G=new $t(G.line,G.ch+1),t.replaceRange(ne.charAt(G.ch-1)+ne.charAt(G.ch-2),$t(G.line,G.ch-2),G,"+transpose");else if(G.line>t.doc.first){var ge=sn(t.doc,G.line-1).text;ge&&(G=new $t(G.line,1),t.replaceRange(ne.charAt(0)+t.doc.lineSeparator()+ge.charAt(ge.length-1),$t(G.line-1,ge.length-1),G,"+transpose"))}}B.push(new Pa(G,G))}t.setSelections(B)})},newlineAndIndent:function(t){return fi(t,function(){for(var p=t.listSelections(),B=p.length-1;B>=0;B--)t.replaceRange(t.doc.lineSeparator(),p[B].anchor,p[B].head,"+input");p=t.listSelections();for(var j=0;j<p.length;j++)t.indentLine(p[j].from().line,null,!0);Xi(t)})},openLine:function(t){return t.replaceSelection(`
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Cs(t,p){var B=sn(t.doc,p),j=an(B);return j!=B&&(p=Zn(j)),Bs(!0,t,j,p,1)}function Ws(t,p){var B=sn(t.doc,p),j=Mn(B);return j!=B&&(p=Zn(j)),Bs(!0,t,B,p,-1)}function yl(t,p){var B=Cs(t,p.line),j=sn(t.doc,B.line),G=_t(j,t.doc.direction);if(!G||G[0].level==0){var ne=Math.max(B.ch,j.text.search(/\S/)),ge=p.line==B.line&&p.ch<=ne&&p.ch;return $t(B.line,ge?0:ne,B.sticky)}return B}function Ss(t,p,B){if(typeof p=="string"&&(p=qo[p],!p))return!1;t.display.input.ensurePolled();var j=t.display.shift,G=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),B&&(t.display.shift=!1),G=p(t)!=Ce}finally{t.display.shift=j,t.state.suppressEdits=!1}return G}function Kl(t,p,B){for(var j=0;j<t.state.keyMaps.length;j++){var G=_o(p,t.state.keyMaps[j],B,t);if(G)return G}return t.options.extraKeys&&_o(p,t.options.extraKeys,B,t)||_o(p,t.options.keyMap,B,t)}var Gl=new ee;function ss(t,p,B,j){var G=t.state.keySeq;if(G){if(is(p))return"handled";if(/\'$/.test(p)?t.state.keySeq=null:Gl.set(50,function(){t.state.keySeq==G&&(t.state.keySeq=null,t.display.input.reset())}),Hs(t,G+" "+p,B,j))return!0}return Hs(t,p,B,j)}function Hs(t,p,B,j){var G=Kl(t,p,j);return G=="multi"&&(t.state.keySeq=p),G=="handled"&&Jt(t,"keyHandled",t,p,B),(G=="handled"||G=="multi")&&(Ae(B),Za(t)),!!G}function El(t,p){var B=xs(p,!0);return B?p.shiftKey&&!t.state.keySeq?ss(t,"Shift-"+B,p,function(j){return Ss(t,j,!0)})||ss(t,B,p,function(j){if(typeof j=="string"?/^go[A-Z]/.test(j):j.motion)return Ss(t,j)}):ss(t,B,p,function(j){return Ss(t,j)}):!1}function zl(t,p,B){return ss(t,"'"+B+"'",p,function(j){return Ss(t,j,!0)})}var Ks=null;function xl(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(p.curOp.focus=V(),Pt(p,t))return;A&&g<11&&t.keyCode==27&&(t.returnValue=!1);var B=t.keyCode;p.display.shift=B==16||t.shiftKey;var j=El(p,t);l&&(Ks=j?B:null,!j&&B==88&&!rt&&(s?t.metaKey:t.ctrlKey)&&p.replaceSelection("",null,"cut")),O&&!s&&!j&&B==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),B==18&&!/\bCodeMirror-crosshair\b/.test(p.display.lineDiv.className)&&Vl(p)}function Vl(t){var p=t.display.lineDiv;H(p,"CodeMirror-crosshair");function B(j){(j.keyCode==18||!j.altKey)&&(x(p,"CodeMirror-crosshair"),Bt(document,"keyup",B),Bt(document,"mouseover",B))}je(document,"keyup",B),je(document,"mouseover",B)}function Cl(t){t.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,t)}function Sl(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(Oa(p.display,t)||Pt(p,t)||t.ctrlKey&&!t.altKey||s&&t.metaKey)return;var B=t.keyCode,j=t.charCode;if(l&&B==Ks){Ks=null,Ae(t);return}if(l&&(!t.which||t.which<10)&&El(p,t))return;var G=String.fromCharCode(j==null?B:j);if(G=="\b")return;if(zl(p,t,G))return;p.display.input.onKeyPress(t)}var Xl=400,Gs=function(t,p,B){this.time=t,this.pos=p,this.button=B};Gs.prototype.compare=function(t,p,B){return this.time+Xl>t&&An(p,this.pos)==0&&B==this.button};var ls,us;function Yl(t,p){var B=+new Date;return us&&us.compare(B,t,p)?(ls=us=null,"triple"):ls&&ls.compare(B,t,p)?(us=new Gs(B,t,p),ls=null,"double"):(ls=new Gs(B,t,p),us=null,"single")}function zs(t){var p=this,B=p.display;if(Pt(p,t)||B.activeTouch&&B.input.supportsTouch())return;if(B.input.ensurePolled(),B.shift=t.shiftKey,Oa(B,t)){e||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(Xs(p,t))return;var j=Aa(p,t),G=mt(t),ne=j?Yl(j,G):"single";if(window.focus(),G==1&&p.state.selectingText&&p.state.selectingText(t),j&&wl(p,G,j,ne,t))return;G==1?j?Ql(p,j,ne,t):et(t)==B.scroller&&Ae(t):G==2?(j&&_s(p.doc,j),setTimeout(function(){return B.input.focus()},20)):G==3&&(P?p.display.input.onContextMenu(t):Mo(p))}function wl(t,p,B,j,G){var ne="Click";return j=="double"?ne="Double"+ne:j=="triple"&&(ne="Triple"+ne),ne=(p==1?"Left":p==2?"Middle":"Right")+ne,ss(t,bl(ne,G),G,function(ge){if(typeof ge=="string"&&(ge=qo[ge]),!ge)return!1;var Se=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),Se=ge(t,B)!=Ce}finally{t.state.suppressEdits=!1}return Se})}function Jl(t,p,B){var j=t.getOption("configureMouse"),G=j?j(t,p,B):{};if(G.unit==null){var ne=u?B.shiftKey&&B.metaKey:B.altKey;G.unit=ne?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(G.extend==null||t.doc.extend)&&(G.extend=t.doc.extend||B.shiftKey),G.addNew==null&&(G.addNew=s?B.metaKey:B.ctrlKey),G.moveOnDrag==null&&(G.moveOnDrag=!(s?B.altKey:B.ctrlKey)),G}function Ql(t,p,B,j){A?setTimeout(F(to,t),0):t.curOp.focus=V();var G=Jl(t,B,j),ne=t.doc.sel,ge;t.options.dragDrop&&Lt&&!t.isReadOnly()&&B=="single"&&(ge=ne.contains(p))>-1&&(An((ge=ne.ranges[ge]).from(),p)<0||p.xRel>0)&&(An(ge.to(),p)>0||p.xRel<0)?Zl(t,j,p,G):ql(t,j,p,G)}function Zl(t,p,B,j){var G=t.display,ne=!1,ge=Ha(t,function(Be){e&&(G.scroller.draggable=!1),t.state.draggingText=!1,Bt(G.wrapper.ownerDocument,"mouseup",ge),Bt(G.wrapper.ownerDocument,"mousemove",Se),Bt(G.scroller,"dragstart",Pe),Bt(G.scroller,"drop",ge),ne||(Ae(Be),j.addNew||_s(t.doc,B,null,null,j.extend),e&&!n||A&&g==9?setTimeout(function(){G.wrapper.ownerDocument.body.focus({preventScroll:!0}),G.input.focus()},20):G.input.focus())}),Se=function(Be){ne=ne||Math.abs(p.clientX-Be.clientX)+Math.abs(p.clientY-Be.clientY)>=10},Pe=function(){return ne=!0};e&&(G.scroller.draggable=!0),t.state.draggingText=ge,ge.copy=!j.moveOnDrag,G.scroller.dragDrop&&G.scroller.dragDrop(),je(G.wrapper.ownerDocument,"mouseup",ge),je(G.wrapper.ownerDocument,"mousemove",Se),je(G.scroller,"dragstart",Pe),je(G.scroller,"drop",ge),Mo(t),setTimeout(function(){return G.input.focus()},20)}function Vs(t,p,B){if(B=="char")return new Pa(p,p);if(B=="word")return t.findWordAt(p);if(B=="line")return new Pa($t(p.line,0),X(t.doc,$t(p.line+1,0)));var j=B(t,p);return new Pa(j.from,j.to)}function ql(t,p,B,j){var G=t.display,ne=t.doc;Ae(p);var ge,Se,Pe=ne.sel,Be=Pe.ranges;if(j.addNew&&!j.extend?(Se=ne.sel.contains(B),Se>-1?ge=Be[Se]:ge=new Pa(B,B)):(ge=ne.sel.primary(),Se=ne.sel.primIndex),j.unit=="rectangle")j.addNew||(ge=new Pa(B,B)),B=Aa(t,p,!0,!0),Se=-1;else{var gt=Vs(t,B,j.unit);j.extend?ge=vs(ge,gt.anchor,gt.head,j.extend):ge=gt}j.addNew?Se==-1?(Se=Be.length,gi(ne,sa(t,Be.concat([ge]),Se),{scroll:!1,origin:"*mouse"})):Be.length>1&&Be[Se].empty()&&j.unit=="char"&&!j.extend?(gi(ne,sa(t,Be.slice(0,Se).concat(Be.slice(Se+1)),0),{scroll:!1,origin:"*mouse"}),Pe=ne.sel):Ao(ne,Se,ge,ce):(Se=0,gi(ne,new hi([ge],0),ce),Pe=ne.sel);var Dt=B;function tn(Er){if(An(Dt,Er)==0)return;if(Dt=Er,j.unit=="rectangle"){for(var Xr=[],ia=t.options.tabSize,ea=K(sn(ne,B.line).text,B.ch,ia),wa=K(sn(ne,Er.line).text,Er.ch,ia),Va=Math.min(ea,wa),vi=Math.max(ea,wa),ti=Math.min(B.line,Er.line),zi=Math.min(t.lastLine(),Math.max(B.line,Er.line));ti<=zi;ti++){var Ui=sn(ne,ti).text,ci=Ee(Ui,Va,ia);Va==vi?Xr.push(new Pa($t(ti,ci),$t(ti,ci))):Ui.length>ci&&Xr.push(new Pa($t(ti,ci),$t(ti,Ee(Ui,vi,ia))))}Xr.length||Xr.push(new Pa(B,B)),gi(ne,sa(t,Pe.ranges.slice(0,Se).concat(Xr),Se),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Er)}else{var ji=ge,Ci=Vs(t,Er,j.unit),pi=ji.anchor,di;An(Ci.anchor,pi)>0?(di=Ci.head,pi=gr(ji.from(),Ci.anchor)):(di=Ci.anchor,pi=Cr(ji.to(),Ci.head));var ii=Pe.ranges.slice(0);ii[Se]=$l(t,new Pa(X(ne,pi),di)),gi(ne,sa(t,ii,Se),ce)}}var Gt=G.wrapper.getBoundingClientRect(),On=0;function Kn(Er){var Xr=++On,ia=Aa(t,Er,!0,j.unit=="rectangle");if(!ia)return;if(An(ia,Dt)!=0){t.curOp.focus=V(),tn(ia);var ea=uo(G,ne);(ia.line>=ea.to||ia.line<ea.from)&&setTimeout(Ha(t,function(){On==Xr&&Kn(Er)}),150)}else{var wa=Er.clientY<Gt.top?-20:Er.clientY>Gt.bottom?20:0;wa&&setTimeout(Ha(t,function(){if(On!=Xr)return;G.scroller.scrollTop+=wa,Kn(Er)}),50)}}function er(Er){t.state.selectingText=!1,On=Infinity,Er&&(Ae(Er),G.input.focus()),Bt(G.wrapper.ownerDocument,"mousemove",yr),Bt(G.wrapper.ownerDocument,"mouseup",kr),ne.history.lastSelOrigin=null}var yr=Ha(t,function(Er){Er.buttons===0||!mt(Er)?er(Er):Kn(Er)}),kr=Ha(t,er);t.state.selectingText=kr,je(G.wrapper.ownerDocument,"mousemove",yr),je(G.wrapper.ownerDocument,"mouseup",kr)}function $l(t,p){var B=p.anchor,j=p.head,G=sn(t.doc,B.line);if(An(B,j)==0&&B.sticky==j.sticky)return p;var ne=_t(G);if(!ne)return p;var ge=dt(ne,B.ch,B.sticky),Se=ne[ge];if(Se.from!=B.ch&&Se.to!=B.ch)return p;var Pe=ge+(Se.from==B.ch==(Se.level!=1)?0:1);if(Pe==0||Pe==ne.length)return p;var Be;if(j.line!=B.line)Be=(j.line-B.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var gt=dt(ne,j.ch,j.sticky),Dt=gt-ge||(j.ch-B.ch)*(Se.level==1?-1:1);gt==Pe-1||gt==Pe?Be=Dt<0:Be=Dt>0}var tn=ne[Pe+(Be?-1:0)],Gt=Be==(tn.level==1),On=Gt?tn.from:tn.to,Kn=Gt?"after":"before";return B.ch==On&&B.sticky==Kn?p:new Pa(new $t(B.line,On,Kn),j)}function Tl(t,p,B,j){var G,ne;if(p.touches)G=p.touches[0].clientX,ne=p.touches[0].clientY;else try{G=p.clientX,ne=p.clientY}catch(tn){return!1}if(G>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;j&&Ae(p);var ge=t.display,Se=ge.lineDiv.getBoundingClientRect();if(ne>Se.bottom||!We(t,B))return He(p);ne-=Se.top-ge.viewOffset;for(var Pe=0;Pe<t.display.gutterSpecs.length;++Pe){var Be=ge.gutters.childNodes[Pe];if(Be&&Be.getBoundingClientRect().right>=G){var gt=xr(t.doc,ne),Dt=t.display.gutterSpecs[Pe];return Et(t,B,t,gt,Dt.className,p),He(p)}}}function Xs(t,p){return Tl(t,p,"gutterClick",!0)}function Ol(t,p){if(Oa(t.display,p)||Al(t,p))return;if(Pt(t,p,"contextmenu"))return;P||t.display.input.onContextMenu(p)}function Al(t,p){return We(t,"gutterContextMenu")?Tl(t,p,"gutterContextMenu",!1):!1}function Dl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jr(t)}var $o={toString:function(){return"CodeMirror.Init"}},ws={},cs={};function eu(t){var p=t.optionHandlers;function B(j,G,ne,ge){t.defaults[j]=G,ne&&(p[j]=ge?function(Se,Pe,Be){Be!=$o&&ne(Se,Pe,Be)}:ne)}t.defineOption=B,t.Init=$o,B("value","",function(j,G){return j.setValue(G)},!0),B("mode",null,function(j,G){j.doc.modeOption=G,$a(j)},!0),B("indentUnit",2,$a,!0),B("indentWithTabs",!1),B("smartIndent",!0),B("tabSize",4,function(j){xi(j),jr(j),Na(j)},!0),B("lineSeparator",null,function(j,G){if(j.doc.lineSep=G,!G)return;var ne=[],ge=j.doc.first;j.doc.iter(function(Pe){for(var Be=0;;){var gt=Pe.text.indexOf(G,Be);if(gt==-1)break;Be=gt+G.length,ne.push($t(ge,gt))}ge++});for(var Se=ne.length-1;Se>=0;Se--)Xo(j.doc,G,ne[Se],$t(ne[Se].line,ne[Se].ch+G.length))}),B("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(j,G,ne){j.state.specialChars=new RegExp(G.source+(G.test(" ")?"":"| "),"g"),ne!=$o&&j.refresh()}),B("specialCharPlaceholder",sr,function(j){return j.refresh()},!0),B("electricChars",!0),B("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),B("spellcheck",!1,function(j,G){return j.getInputField().spellcheck=G},!0),B("autocorrect",!1,function(j,G){return j.getInputField().autocorrect=G},!0),B("autocapitalize",!1,function(j,G){return j.getInputField().autocapitalize=G},!0),B("rtlMoveVisually",!w),B("wholeLineUpdateBefore",!0),B("theme","default",function(j){Dl(j),ki(j)},!0),B("keyMap","default",function(j,G,ne){var ge=os(G),Se=ne!=$o&&os(ne);Se&&Se.detach&&Se.detach(j,ge),ge.attach&&ge.attach(j,Se||null)}),B("extraKeys",null),B("configureMouse",null),B("lineWrapping",!1,nu,!0),B("gutters",[],function(j,G){j.display.gutterSpecs=ui(G,j.options.lineNumbers),ki(j)},!0),B("fixedGutter",!0,function(j,G){j.display.gutters.style.left=G?pa(j.display)+"px":"0",j.refresh()},!0),B("coverGutterNextToScrollbar",!1,function(j){return Ri(j)},!0),B("scrollbarStyle","native",function(j){Co(j),Ri(j),j.display.scrollbars.setScrollTop(j.doc.scrollTop),j.display.scrollbars.setScrollLeft(j.doc.scrollLeft)},!0),B("lineNumbers",!1,function(j,G){j.display.gutterSpecs=ui(j.options.gutters,G),ki(j)},!0),B("firstLineNumber",1,ki,!0),B("lineNumberFormatter",function(j){return j},ki,!0),B("showCursorWhenSelecting",!1,La,!0),B("resetSelectionOnContextMenu",!0),B("lineWiseCopyCut",!0),B("pasteLinesPerSelection",!0),B("selectionsMayTouch",!1),B("readOnly",!1,function(j,G){G=="nocursor"&&(no(j),j.display.input.blur()),j.display.input.readOnlyChanged(G)}),B("screenReaderLabel",null,function(j,G){G=G===""?null:G,j.display.input.screenReaderLabelChanged(G)}),B("disableInput",!1,function(j,G){G||j.display.input.reset()},!0),B("dragDrop",!0,tu),B("allowDropFileTypes",null),B("cursorBlinkRate",530),B("cursorScrollMargin",0),B("cursorHeight",1,La,!0),B("singleCursorHeightPerLine",!0,La,!0),B("workTime",100),B("workDelay",100),B("flattenSpans",!0,xi,!0),B("addModeClass",!1,xi,!0),B("pollInterval",100),B("undoDepth",200,function(j,G){return j.doc.history.undoDepth=G}),B("historyEventDelay",1250),B("viewportMargin",10,function(j){return j.refresh()},!0),B("maxHighlightLength",1e4,xi,!0),B("moveInputWithCursor",!0,function(j,G){G||j.display.input.resetPosition()}),B("tabindex",null,function(j,G){return j.display.input.getField().tabIndex=G||""}),B("autofocus",null),B("direction","ltr",function(j,G){return j.doc.setDirection(G)},!0),B("phrases",null)}function tu(t,p,B){var j=B&&B!=$o;if(!p!=!j){var G=t.display.dragFunctions,ne=p?je:Bt;ne(t.display.scroller,"dragstart",G.start),ne(t.display.scroller,"dragenter",G.enter),ne(t.display.scroller,"dragover",G.over),ne(t.display.scroller,"dragleave",G.leave),ne(t.display.scroller,"drop",G.drop)}}function nu(t){t.options.lineWrapping?(H(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(x(t.display.wrapper,"CodeMirror-wrap"),Yt(t)),ba(t),Na(t),jr(t),setTimeout(function(){return Ri(t)},100)}function Ya(t,p){var B=this;if(!(this instanceof Ya))return new Ya(t,p);this.options=p=p?L(p):{},L(ws,p,!1);var j=p.value;typeof j=="string"?j=new Ti(j,p.mode,null,p.lineSeparator,p.direction):p.mode&&(j.modeOption=p.mode),this.doc=j;var G=new Ya.inputStyles[p.inputStyle](this),ne=this.display=new ho(t,j,G,p);ne.wrapper.CodeMirror=this,Dl(this),p.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Co(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ee,keySeq:null,specialChars:null},p.autofocus&&!d&&ne.input.focus(),A&&g<11&&setTimeout(function(){return B.display.input.reset(!0)},20),Rl(this),ou(),Ni(this),this.curOp.forceUpdate=!0,As(this,j),p.autofocus&&!d||this.hasFocus()?setTimeout(function(){B.hasFocus()&&!B.state.focused&&Ii(B)},20):no(this);for(var ge in cs)cs.hasOwnProperty(ge)&&cs[ge](this,p[ge],$o);Ga(this),p.finishInit&&p.finishInit(this);for(var Se=0;Se<Y.length;++Se)Y[Se](this);qi(this),e&&p.lineWrapping&&getComputedStyle(ne.lineDiv).textRendering=="optimizelegibility"&&(ne.lineDiv.style.textRendering="auto")}Ya.defaults=ws,Ya.optionHandlers=cs;function Rl(t){var p=t.display;je(p.scroller,"mousedown",Ha(t,zs)),A&&g<11?je(p.scroller,"dblclick",Ha(t,function(Pe){if(Pt(t,Pe))return;var Be=Aa(t,Pe);if(!Be||Xs(t,Pe)||Oa(t.display,Pe))return;Ae(Pe);var gt=t.findWordAt(Be);_s(t.doc,gt.anchor,gt.head)})):je(p.scroller,"dblclick",function(Pe){return Pt(t,Pe)||Ae(Pe)}),je(p.scroller,"contextmenu",function(Pe){return Ol(t,Pe)}),je(p.input.getField(),"contextmenu",function(Pe){p.scroller.contains(Pe.target)||Ol(t,Pe)});var B,j={end:0};function G(){p.activeTouch&&(B=setTimeout(function(){return p.activeTouch=null},1e3),j=p.activeTouch,j.end=+new Date)}function ne(Pe){if(Pe.touches.length!=1)return!1;var Be=Pe.touches[0];return Be.radiusX<=1&&Be.radiusY<=1}function ge(Pe,Be){if(Be.left==null)return!0;var gt=Be.left-Pe.left,Dt=Be.top-Pe.top;return gt*gt+Dt*Dt>20*20}je(p.scroller,"touchstart",function(Pe){if(!Pt(t,Pe)&&!ne(Pe)&&!Xs(t,Pe)){p.input.ensurePolled(),clearTimeout(B);var Be=+new Date;p.activeTouch={start:Be,moved:!1,prev:Be-j.end<=300?j:null},Pe.touches.length==1&&(p.activeTouch.left=Pe.touches[0].pageX,p.activeTouch.top=Pe.touches[0].pageY)}}),je(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),je(p.scroller,"touchend",function(Pe){var Be=p.activeTouch;if(Be&&!Oa(p,Pe)&&Be.left!=null&&!Be.moved&&new Date-Be.start<300){var gt=t.coordsChar(p.activeTouch,"page"),Dt;!Be.prev||ge(Be,Be.prev)?Dt=new Pa(gt,gt):!Be.prev.prev||ge(Be,Be.prev.prev)?Dt=t.findWordAt(gt):Dt=new Pa($t(gt.line,0),X(t.doc,$t(gt.line+1,0))),t.setSelection(Dt.anchor,Dt.head),t.focus(),Ae(Pe)}G()}),je(p.scroller,"touchcancel",G),je(p.scroller,"scroll",function(){p.scroller.clientHeight&&(Ji(t,p.scroller.scrollTop),ei(t,p.scroller.scrollLeft,!0),Et(t,"scroll",t))}),je(p.scroller,"mousewheel",function(Pe){return mo(t,Pe)}),je(p.scroller,"DOMMouseScroll",function(Pe){return mo(t,Pe)}),je(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(Pe){Pt(t,Pe)||Fe(Pe)},over:function(Pe){Pt(t,Pe)||(Fl(t,Pe),Fe(Pe))},start:function(Pe){return gl(t,Pe)},drop:Ha(t,Bl),leave:function(Pe){Pt(t,Pe)||Ls(t)}};var Se=p.input.getField();je(Se,"keyup",function(Pe){return Cl.call(t,Pe)}),je(Se,"keydown",Ha(t,xl)),je(Se,"keypress",Ha(t,Sl)),je(Se,"focus",function(Pe){return Ii(t,Pe)}),je(Se,"blur",function(Pe){return no(t,Pe)})}var Y=[];Ya.defineInitHook=function(t){return Y.push(t)};function Z(t,p,B,j){var G=t.doc,ne;B==null&&(B="add"),B=="smart"&&(G.mode.indent?ne=Ln(t,p).state:B="prev");var ge=t.options.tabSize,Se=sn(G,p),Pe=K(Se.text,null,ge);Se.stateAfter&&(Se.stateAfter=null);var Be=Se.text.match(/^\s*/)[0],gt;if(!j&&!/\S/.test(Se.text))gt=0,B="not";else if(B=="smart"&&(gt=G.mode.indent(ne,Se.text.slice(Be.length),Se.text),gt==Ce||gt>150)){if(!j)return;B="prev"}B=="prev"?p>G.first?gt=K(sn(G,p-1).text,null,ge):gt=0:B=="add"?gt=Pe+t.options.indentUnit:B=="subtract"?gt=Pe-t.options.indentUnit:typeof B=="number"&&(gt=Pe+B),gt=Math.max(0,gt);var Dt="",tn=0;if(t.options.indentWithTabs)for(var Gt=Math.floor(gt/ge);Gt;--Gt)tn+=ge,Dt+=" ";if(tn<gt&&(Dt+=se(gt-tn)),Dt!=Be)return Xo(G,Dt,$t(p,0),$t(p,Be.length),"+input"),Se.stateAfter=null,!0;for(var On=0;On<G.sel.ranges.length;On++){var Kn=G.sel.ranges[On];if(Kn.head.line==p&&Kn.head.ch<Be.length){var er=$t(p,Be.length);Ao(G,On,new Pa(er,er));break}}}var ie=null;function be(t){ie=t}function Le(t,p,B,j,G){var ne=t.doc;t.display.shift=!1,j||(j=ne.sel);var ge=+new Date-200,Se=G=="paste"||t.state.pasteIncoming>ge,Pe=ke(p),Be=null;if(Se&&j.ranges.length>1)if(ie&&ie.text.join(`
`)==p){if(j.ranges.length%ie.text.length==0){Be=[];for(var gt=0;gt<ie.text.length;gt++)Be.push(ne.splitLines(ie.text[gt]))}}else Pe.length==j.ranges.length&&t.options.pasteLinesPerSelection&&(Be=me(Pe,function(yr){return[yr]}));for(var Dt=t.curOp.updateInput,tn=j.ranges.length-1;tn>=0;tn--){var Gt=j.ranges[tn],On=Gt.from(),Kn=Gt.to();Gt.empty()&&(B&&B>0?On=$t(On.line,On.ch-B):t.state.overwrite&&!Se?Kn=$t(Kn.line,Math.min(sn(ne,Kn.line).text.length,Kn.ch+$(Pe).length)):Se&&ie&&ie.lineWise&&ie.text.join(`
`)==Pe.join(`
`)&&(On=Kn=$t(On.line,0)));var er={from:On,to:Kn,text:Be?Be[tn%Be.length]:Pe,origin:G||(Se?"paste":t.state.cutIncoming>ge?"cut":"+input")};zo(t.doc,er),Jt(t,"inputRead",t,er)}p&&!Se&&Ge(t,p),Xi(t),t.curOp.updateInput<2&&(t.curOp.updateInput=Dt),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ne(t,p){var B=t.clipboardData&&t.clipboardData.getData("Text");if(B)return t.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&fi(p,function(){return Le(p,B,0,null,"paste")}),!0}function Ge(t,p){if(!t.options.electricChars||!t.options.smartIndent)return;for(var B=t.doc.sel,j=B.ranges.length-1;j>=0;j--){var G=B.ranges[j];if(G.head.ch>100||j&&B.ranges[j-1].head.line==G.head.line)continue;var ne=t.getModeAt(G.head),ge=!1;if(ne.electricChars){for(var Se=0;Se<ne.electricChars.length;Se++)if(p.indexOf(ne.electricChars.charAt(Se))>-1){ge=Z(t,G.head.line,"smart");break}}else ne.electricInput&&(ne.electricInput.test(sn(t.doc,G.head.line).text.slice(0,G.head.ch))&&(ge=Z(t,G.head.line,"smart")));ge&&Jt(t,"electricInput",t,G.head.line)}}function ze(t){for(var p=[],B=[],j=0;j<t.doc.sel.ranges.length;j++){var G=t.doc.sel.ranges[j].head.line,ne={anchor:$t(G,0),head:$t(G+1,0)};B.push(ne),p.push(t.getRange(ne.anchor,ne.head))}return{text:p,ranges:B}}function St(t,p,B,j){t.setAttribute("autocorrect",B?"":"off"),t.setAttribute("autocapitalize",j?"":"off"),t.setAttribute("spellcheck",!!p)}function jt(){var t=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),p=T("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return e?t.style.width="1000px":t.setAttribute("wrap","off"),c&&(t.style.border="1px solid black"),St(t),p}function Wt(t){var p=t.optionHandlers,B=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(j,G){var ne=this.options,ge=ne[j];if(ne[j]==G&&j!="mode")return;ne[j]=G,p.hasOwnProperty(j)&&Ha(this,p[j])(this,G,ge),Et(this,"optionChange",this,j)},getOption:function(j){return this.options[j]},getDoc:function(){return this.doc},addKeyMap:function(j,G){this.state.keyMaps[G?"push":"unshift"](os(j))},removeKeyMap:function(j){for(var G=this.state.keyMaps,ne=0;ne<G.length;++ne)if(G[ne]==j||G[ne].name==j)return G.splice(ne,1),!0},addOverlay:ri(function(j,G){var ne=j.token?j:t.getMode(this.options,j);if(ne.startState)throw new Error("Overlays may not be stateful.");re(this.state.overlays,{mode:ne,modeSpec:j,opaque:G&&G.opaque,priority:G&&G.priority||0},function(ge){return ge.priority}),this.state.modeGen++,Na(this)}),removeOverlay:ri(function(j){for(var G=this.state.overlays,ne=0;ne<G.length;++ne){var ge=G[ne].modeSpec;if(ge==j||typeof j=="string"&&ge.name==j){G.splice(ne,1),this.state.modeGen++,Na(this);return}}}),indentLine:ri(function(j,G,ne){typeof G!="string"&&typeof G!="number"&&(G==null?G=this.options.smartIndent?"smart":"prev":G=G?"add":"subtract"),dr(this.doc,j)&&Z(this,j,G,ne)}),indentSelection:ri(function(j){for(var G=this.doc.sel.ranges,ne=-1,ge=0;ge<G.length;ge++){var Se=G[ge];if(Se.empty())Se.head.line>ne&&(Z(this,Se.head.line,j,!0),ne=Se.head.line,ge==this.doc.sel.primIndex&&Xi(this));else{var Pe=Se.from(),Be=Se.to(),gt=Math.max(ne,Pe.line);ne=Math.min(this.lastLine(),Be.line-(Be.ch?0:1))+1;for(var Dt=gt;Dt<ne;++Dt)Z(this,Dt,j);var tn=this.doc.sel.ranges;Pe.ch==0&&G.length==tn.length&&tn[ge].from().ch>0&&Ao(this.doc,ge,new Pa(Pe,tn[ge].to()),Te)}}}),getTokenAt:function(j,G){return Br(this,j,G)},getLineTokens:function(j,G){return Br(this,$t(j),G,!0)},getTokenTypeAt:function(j){j=X(this.doc,j);var G=Qt(this,sn(this.doc,j.line)),ne=0,ge=(G.length-1)/2,Se=j.ch,Pe;if(Se==0)Pe=G[2];else for(;;){var Be=ne+ge>>1;if((Be?G[Be*2-1]:0)>=Se)ge=Be;else if(G[Be*2+1]<Se)ne=Be+1;else{Pe=G[Be*2+2];break}}var gt=Pe?Pe.indexOf("overlay "):-1;return gt<0?Pe:gt==0?null:Pe.slice(0,gt-1)},getModeAt:function(j){var G=this.doc.mode;return G.innerMode?t.innerMode(G,this.getTokenAt(j).state).mode:G},getHelper:function(j,G){return this.getHelpers(j,G)[0]},getHelpers:function(j,G){var ne=[];if(!B.hasOwnProperty(G))return ne;var ge=B[G],Se=this.getModeAt(j);if(typeof Se[G]=="string")ge[Se[G]]&&ne.push(ge[Se[G]]);else if(Se[G])for(var Pe=0;Pe<Se[G].length;Pe++){var Be=ge[Se[G][Pe]];Be&&ne.push(Be)}else Se.helperType&&ge[Se.helperType]?ne.push(ge[Se.helperType]):ge[Se.name]&&ne.push(ge[Se.name]);for(var gt=0;gt<ge._global.length;gt++){var Dt=ge._global[gt];Dt.pred(Se,this)&&he(ne,Dt.val)==-1&&ne.push(Dt.val)}return ne},getStateAfter:function(j,G){var ne=this.doc;return j=pe(ne,j==null?ne.first+ne.size-1:j),Ln(this,j+1,G).state},cursorCoords:function(j,G){var ne,ge=this.doc.sel.primary();return j==null?ne=ge.head:typeof j=="object"?ne=X(this.doc,j):ne=j?ge.from():ge.to(),Yn(this,ne,G||"page")},charCoords:function(j,G){return Tr(this,X(this.doc,j),G||"page")},coordsChar:function(j,G){return j=Xn(this,j,G||"page"),Vr(this,j.left,j.top)},lineAtHeight:function(j,G){return j=Xn(this,{top:j,left:0},G||"page").top,xr(this.doc,j+this.display.viewOffset)},heightAtLine:function(j,G,ne){var ge=!1,Se;if(typeof j=="number"){var Pe=this.doc.first+this.doc.size-1;j<this.doc.first?j=this.doc.first:j>Pe&&(j=Pe,ge=!0),Se=sn(this.doc,j)}else Se=j;return ta(this,Se,{top:0,left:0},G||"page",ne||ge).top+(ge?this.doc.height-Fr(Se):0)},defaultTextHeight:function(){return br(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(j,G,ne,ge,Se){var Pe=this.display;j=Yn(this,X(this.doc,j));var Be=j.bottom,gt=j.left;if(G.style.position="absolute",G.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(G),Pe.sizer.appendChild(G),ge=="over")Be=j.top;else if(ge=="above"||ge=="near"){var Dt=Math.max(Pe.wrapper.clientHeight,this.doc.height),tn=Math.max(Pe.sizer.clientWidth,Pe.lineSpace.clientWidth);(ge=="above"||j.bottom+G.offsetHeight>Dt)&&j.top>G.offsetHeight?Be=j.top-G.offsetHeight:j.bottom+G.offsetHeight<=Dt&&(Be=j.bottom),gt+G.offsetWidth>tn&&(gt=tn-G.offsetWidth)}G.style.top=Be+"px",G.style.left=G.style.right="",Se=="right"?(gt=Pe.sizer.clientWidth-G.offsetWidth,G.style.right="0px"):(Se=="left"?gt=0:Se=="middle"&&(gt=(Pe.sizer.clientWidth-G.offsetWidth)/2),G.style.left=gt+"px"),ne&&bo(this,{left:gt,top:Be,right:gt+G.offsetWidth,bottom:Be+G.offsetHeight})},triggerOnKeyDown:ri(xl),triggerOnKeyPress:ri(Sl),triggerOnKeyUp:Cl,triggerOnMouseDown:ri(zs),execCommand:function(j){if(qo.hasOwnProperty(j))return qo[j].call(null,this)},triggerElectric:ri(function(j){Ge(this,j)}),findPosH:function(j,G,ne,ge){var Se=1;G<0&&(Se=-1,G=-G);for(var Pe=X(this.doc,j),Be=0;Be<G&&!(Pe=At(this.doc,Pe,Se,ne,ge),Pe.hitSide);++Be);return Pe},moveH:ri(function(j,G){var ne=this;this.extendSelectionsBy(function(ge){return ne.display.shift||ne.doc.extend||ge.empty()?At(ne.doc,ge.head,j,G,ne.options.rtlMoveVisually):j<0?ge.from():ge.to()},ye)}),deleteH:ri(function(j,G){var ne=this.doc.sel,ge=this.doc;ne.somethingSelected()?ge.replaceSelection("",null,"+delete"):Zo(this,function(Se){var Pe=At(ge,Se.head,j,G,!1);return j<0?{from:Pe,to:Se.head}:{from:Se.head,to:Pe}})}),findPosV:function(j,G,ne,ge){var Se=1,Pe=ge;G<0&&(Se=-1,G=-G);for(var Be=X(this.doc,j),gt=0;gt<G;++gt){var Dt=Yn(this,Be,"div");if(Pe==null?Pe=Dt.left:Dt.left=Pe,Be=Tt(this,Dt,Se,ne),Be.hitSide)break}return Be},moveV:ri(function(j,G){var ne=this,ge=this.doc,Se=[],Pe=!this.display.shift&&!ge.extend&&ge.sel.somethingSelected();if(ge.extendSelectionsBy(function(gt){if(Pe)return j<0?gt.from():gt.to();var Dt=Yn(ne,gt.head,"div");gt.goalColumn!=null&&(Dt.left=gt.goalColumn),Se.push(Dt.left);var tn=Tt(ne,Dt,j,G);return G=="page"&&gt==ge.sel.primary()&&co(ne,Tr(ne,tn,"div").top-Dt.top),tn},ye),Se.length)for(var Be=0;Be<ge.sel.ranges.length;Be++)ge.sel.ranges[Be].goalColumn=Se[Be]}),findWordAt:function(j){var G=this.doc,ne=sn(G,j.line).text,ge=j.ch,Se=j.ch;if(ne){var Pe=this.getHelper(j,"wordChars");(j.sticky=="before"||Se==ne.length)&&ge?--ge:++Se;for(var Be=ne.charAt(ge),gt=Q(Be,Pe)?function(Dt){return Q(Dt,Pe)}:/\s/.test(Be)?function(Dt){return/\s/.test(Dt)}:function(Dt){return!/\s/.test(Dt)&&!Q(Dt)};ge>0&&gt(ne.charAt(ge-1));)--ge;for(;Se<ne.length&&gt(ne.charAt(Se));)++Se}return new Pa($t(j.line,ge),$t(j.line,Se))},toggleOverwrite:function(j){if(j!=null&&j==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?H(this.display.cursorDiv,"CodeMirror-overwrite"):x(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==V()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ri(function(j,G){Yi(this,j,G)}),getScrollInfo:function(){var j=this.display.scroller;return{left:j.scrollLeft,top:j.scrollTop,height:j.scrollHeight-yt(this)-this.display.barHeight,width:j.scrollWidth-yt(this)-this.display.barWidth,clientHeight:Me(this),clientWidth:at(this)}},scrollIntoView:ri(function(j,G){j==null?(j={from:this.doc.sel.primary().head,to:null},G==null&&(G=this.options.cursorScrollMargin)):typeof j=="number"?j={from:$t(j,0),to:null}:j.from==null&&(j={from:j,to:null}),j.to||(j.to=j.from),j.margin=G||0,j.from.line!=null?No(this,j):ao(this,j.from,j.to,j.margin)}),setSize:ri(function(j,G){var ne=this,ge=function(Pe){return typeof Pe=="number"||/^\d+$/.test(String(Pe))?Pe+"px":Pe};j!=null&&(this.display.wrapper.style.width=ge(j)),G!=null&&(this.display.wrapper.style.height=ge(G)),this.options.lineWrapping&&Sn(this);var Se=this.display.viewFrom;this.doc.iter(Se,this.display.viewTo,function(Pe){if(Pe.widgets){for(var Be=0;Be<Pe.widgets.length;Be++)if(Pe.widgets[Be].noHScroll){ka(ne,Se,"widget");break}}++Se}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(j){return fi(this,j)},startOperation:function(){return Ni(this)},endOperation:function(){return qi(this)},refresh:ri(function(){var j=this.display.cachedTextHeight;Na(this),this.curOp.forceUpdate=!0,jr(this),Yi(this,this.doc.scrollLeft,this.doc.scrollTop),lo(this.display),(j==null||Math.abs(j-br(this.display))>.5||this.options.lineWrapping)&&ba(this),Et(this,"refresh",this)}),swapDoc:ri(function(j){var G=this.doc;return G.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,j),jr(this),this.display.input.reset(),Yi(this,j.scrollLeft,j.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,G),G}),phrase:function(j){var G=this.options.phrases;return G&&Object.prototype.hasOwnProperty.call(G,j)?G[j]:j},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Je(t),t.registerHelper=function(j,G,ne){B.hasOwnProperty(j)||(B[j]=t[j]={_global:[]}),B[j][G]=ne},t.registerGlobalHelper=function(j,G,ne,ge){t.registerHelper(j,G,ge),B[j]._global.push({pred:ne,val:ge})}}function At(t,p,B,j,G){var ne=p,ge=B,Se=sn(t,p.line),Pe=G&&t.direction=="rtl"?-B:B;function Be(){var kr=p.line+Pe;return kr<t.first||kr>=t.first+t.size?!1:(p=new $t(kr,p.ch,p.sticky),Se=sn(t,kr))}function gt(kr){var Er;if(j=="codepoint"){var Xr=Se.text.charCodeAt(p.ch+(j>0?0:-1));isNaN(Xr)?Er=null:Er=new $t(p.line,Math.max(0,Math.min(Se.text.length,p.ch+B*(Xr>=55296&&Xr<56320?2:1))),-B)}else G?Er=Fs(t.cm,Se,p,B):Er=js(Se,p,B);if(Er==null)if(!kr&&Be())p=Bs(G,t.cm,Se,p.line,Pe);else return!1;else p=Er;return!0}if(j=="char"||j=="codepoint")gt();else if(j=="column")gt(!0);else if(j=="word"||j=="group")for(var Dt=null,tn=j=="group",Gt=t.cm&&t.cm.getHelper(p,"wordChars"),On=!0;!(B<0&&!gt(!On));On=!1){var Kn=Se.text.charAt(p.ch)||`
`,er=Q(Kn,Gt)?"w":tn&&Kn==`
`?"n":!tn||/\s/.test(Kn)?null:"p";if(tn&&!On&&!er&&(er="s"),Dt&&Dt!=er){B<0&&(B=1,gt(),p.sticky="after");break}if(er&&(Dt=er),B>0&&!gt(!On))break}var yr=bs(t,p,ne,ge,!0);return Ur(ne,yr)&&(yr.hitSide=!0),yr}function Tt(t,p,B,j){var G=t.doc,ne=p.left,ge;if(j=="page"){var Se=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Pe=Math.max(Se-.5*br(t.display),3);ge=(B>0?p.bottom:p.top)+B*Pe}else j=="line"&&(ge=B>0?p.bottom+3:p.top-3);for(var Be;!(Be=Vr(t,ne,ge),!Be.outside);){if(B<0?ge<=0:ge>=G.height){Be.hitSide=!0;break}ge+=B*5}return Be}var kt=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};kt.prototype.init=function(t){var p=this,B=this,j=B.cm,G=B.div=t.lineDiv;St(G,j.options.spellcheck,j.options.autocorrect,j.options.autocapitalize);function ne(Se){for(var Pe=Se.target;Pe;Pe=Pe.parentNode){if(Pe==G)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}je(G,"paste",function(Se){if(!ne(Se)||Pt(j,Se)||Ne(Se,j))return;g<=11&&setTimeout(Ha(j,function(){return p.updateFromDOM()}),20)}),je(G,"compositionstart",function(Se){p.composing={data:Se.data,done:!1}}),je(G,"compositionupdate",function(Se){p.composing||(p.composing={data:Se.data,done:!1})}),je(G,"compositionend",function(Se){p.composing&&(Se.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),je(G,"touchstart",function(){return B.forceCompositionEnd()}),je(G,"input",function(){p.composing||p.readFromDOMSoon()});function ge(Se){if(!ne(Se)||Pt(j,Se))return;if(j.somethingSelected())be({lineWise:!1,text:j.getSelections()}),Se.type=="cut"&&j.replaceSelection("",null,"cut");else if(j.options.lineWiseCopyCut){var Pe=ze(j);be({lineWise:!0,text:Pe.text}),Se.type=="cut"&&j.operation(function(){j.setSelections(Pe.ranges,0,Te),j.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Be=ie.text.join(`
`);if(Se.clipboardData.setData("Text",Be),Se.clipboardData.getData("Text")==Be){Se.preventDefault();return}}var gt=jt(),Dt=gt.firstChild;j.display.lineSpace.insertBefore(gt,j.display.lineSpace.firstChild),Dt.value=ie.text.join(`
`);var tn=document.activeElement;W(Dt),setTimeout(function(){j.display.lineSpace.removeChild(gt),tn.focus(),tn==G&&B.showPrimarySelection()},50)}je(G,"copy",ge),je(G,"cut",ge)},kt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},kt.prototype.prepareSelection=function(){var t=bi(this.cm,!1);return t.focus=document.activeElement==this.div,t},kt.prototype.showSelection=function(t,p){if(!t||!this.cm.display.view.length)return;(t.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(t)},kt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},kt.prototype.showPrimarySelection=function(){var t=this.getSelection(),p=this.cm,B=p.doc.sel.primary(),j=B.from(),G=B.to();if(p.display.viewTo==p.display.viewFrom||j.line>=p.display.viewTo||G.line<p.display.viewFrom){t.removeAllRanges();return}var ne=Gr(p,t.anchorNode,t.anchorOffset),ge=Gr(p,t.focusNode,t.focusOffset);if(ne&&!ne.bad&&ge&&!ge.bad&&An(gr(ne,ge),j)==0&&An(Cr(ne,ge),G)==0)return;var Se=p.display.view,Pe=j.line>=p.display.viewFrom&&vn(p,j)||{node:Se[0].measure.map[2],offset:0},Be=G.line<p.display.viewTo&&vn(p,G);if(!Be){var gt=Se[Se.length-1].measure,Dt=gt.maps?gt.maps[gt.maps.length-1]:gt.map;Be={node:Dt[Dt.length-1],offset:Dt[Dt.length-2]-Dt[Dt.length-3]}}if(!Pe||!Be){t.removeAllRanges();return}var tn=t.rangeCount&&t.getRangeAt(0),Gt;try{Gt=I(Pe.node,Pe.offset,Be.offset,Be.node)}catch(On){}Gt&&(!O&&p.state.focused?(t.collapse(Pe.node,Pe.offset),Gt.collapsed||(t.removeAllRanges(),t.addRange(Gt))):(t.removeAllRanges(),t.addRange(Gt)),tn&&t.anchorNode==null?t.addRange(tn):O&&this.startGracePeriod()),this.rememberSelection()},kt.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},kt.prototype.showMultipleSelections=function(t){v(this.cm.display.cursorDiv,t.cursors),v(this.cm.display.selectionDiv,t.selection)},kt.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},kt.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var p=t.getRangeAt(0).commonAncestorContainer;return N(this.div,p)},kt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},kt.prototype.blur=function(){this.div.blur()},kt.prototype.getField=function(){return this.div},kt.prototype.supportsTouch=function(){return!0},kt.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():fi(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function p(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,p))}this.polling.set(this.cm.options.pollInterval,p)},kt.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},kt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var t=this.getSelection(),p=this.cm;if(h&&a&&this.cm.display.gutterSpecs.length&&cr(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var B=Gr(p,t.anchorNode,t.anchorOffset),j=Gr(p,t.focusNode,t.focusOffset);B&&j&&fi(p,function(){gi(p.doc,Sr(B,j),Te),(B.bad||j.bad)&&(p.curOp.selectionChanged=!0)})},kt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,p=t.display,B=t.doc.sel.primary(),j=B.from(),G=B.to();if(j.ch==0&&j.line>t.firstLine()&&(j=$t(j.line-1,sn(t.doc,j.line-1).length)),G.ch==sn(t.doc,G.line).text.length&&G.line<t.lastLine()&&(G=$t(G.line+1,0)),j.line<p.viewFrom||G.line>p.viewTo-1)return!1;var ne,ge,Se;j.line==p.viewFrom||(ne=ga(t,j.line))==0?(ge=Zn(p.view[0].line),Se=p.view[0].node):(ge=Zn(p.view[ne].line),Se=p.view[ne-1].node.nextSibling);var Pe=ga(t,G.line),Be,gt;if(Pe==p.view.length-1?(Be=p.viewTo-1,gt=p.lineDiv.lastChild):(Be=Zn(p.view[Pe+1].line)-1,gt=p.view[Pe+1].node.previousSibling),!Se)return!1;for(var Dt=t.doc.splitLines(Nr(t,Se,gt,ge,Be)),tn=Gn(t.doc,$t(ge,0),$t(Be,sn(t.doc,Be).text.length));Dt.length>1&&tn.length>1;)if($(Dt)==$(tn))Dt.pop(),tn.pop(),Be--;else if(Dt[0]==tn[0])Dt.shift(),tn.shift(),ge++;else break;for(var Gt=0,On=0,Kn=Dt[0],er=tn[0],yr=Math.min(Kn.length,er.length);Gt<yr&&Kn.charCodeAt(Gt)==er.charCodeAt(Gt);)++Gt;for(var kr=$(Dt),Er=$(tn),Xr=Math.min(kr.length-(Dt.length==1?Gt:0),Er.length-(tn.length==1?Gt:0));On<Xr&&kr.charCodeAt(kr.length-On-1)==Er.charCodeAt(Er.length-On-1);)++On;if(Dt.length==1&&tn.length==1&&ge==j.line)for(;Gt&&Gt>j.ch&&kr.charCodeAt(kr.length-On-1)==Er.charCodeAt(Er.length-On-1);)Gt--,On++;Dt[Dt.length-1]=kr.slice(0,kr.length-On).replace(/^\u200b+/,""),Dt[0]=Dt[0].slice(Gt).replace(/\u200b+$/,"");var ia=$t(ge,Gt),ea=$t(Be,tn.length?$(tn).length-On:0);if(Dt.length>1||Dt[0]||An(ia,ea))return Xo(t.doc,Dt,ia,ea,"+input"),!0},kt.prototype.ensurePolled=function(){this.forceCompositionEnd()},kt.prototype.reset=function(){this.forceCompositionEnd()},kt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},kt.prototype.readFromDOMSoon=function(){var t=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80)},kt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&fi(this.cm,function(){return Na(t.cm)})},kt.prototype.setUneditable=function(t){t.contentEditable="false"},kt.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Ha(this.cm,Le)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},kt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},kt.prototype.onContextMenu=function(){},kt.prototype.resetPosition=function(){},kt.prototype.needsContentAttribute=!0;function vn(t,p){var B=pt(t,p.line);if(!B||B.hidden)return null;var j=sn(t.doc,p.line),G=Ie(B,j,p.line),ne=_t(j,t.doc.direction),ge="left";if(ne){var Se=dt(ne,p.ch);ge=Se%2?"right":"left"}var Pe=gn(G.map,p.ch,ge);return Pe.offset=Pe.collapse=="right"?Pe.end:Pe.start,Pe}function cr(t){for(var p=t;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function mr(t,p){return p&&(t.bad=!0),t}function Nr(t,p,B,j,G){var ne="",ge=!1,Se=t.doc.lineSeparator(),Pe=!1;function Be(Gt){return function(On){return On.id==Gt}}function gt(){ge&&(ne+=Se,Pe&&(ne+=Se),ge=Pe=!1)}function Dt(Gt){Gt&&(gt(),ne+=Gt)}function tn(Gt){if(Gt.nodeType==1){var On=Gt.getAttribute("cm-text");if(On){Dt(On);return}var Kn=Gt.getAttribute("cm-marker"),er;if(Kn){var yr=t.findMarks($t(j,0),$t(G+1,0),Be(+Kn));yr.length&&(er=yr[0].find(0))&&Dt(Gn(t.doc,er.from,er.to).join(Se));return}if(Gt.getAttribute("contenteditable")=="false")return;var kr=/^(pre|div|p|li|table|br)$/i.test(Gt.nodeName);if(!/^br$/i.test(Gt.nodeName)&&Gt.textContent.length==0)return;kr&&gt();for(var Er=0;Er<Gt.childNodes.length;Er++)tn(Gt.childNodes[Er]);/^(pre|p)$/i.test(Gt.nodeName)&&(Pe=!0),kr&&(ge=!0)}else Gt.nodeType==3&&Dt(Gt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(tn(p),p==B);)p=p.nextSibling,Pe=!1;return ne}function Gr(t,p,B){var j;if(p==t.display.lineDiv){if(j=t.display.lineDiv.childNodes[B],!j)return mr(t.clipPos($t(t.display.viewTo-1)),!0);p=null,B=0}else for(j=p;;j=j.parentNode){if(!j||j==t.display.lineDiv)return null;if(j.parentNode&&j.parentNode==t.display.lineDiv)break}for(var G=0;G<t.display.view.length;G++){var ne=t.display.view[G];if(ne.node==j)return na(ne,p,B)}}function na(t,p,B){var j=t.text.firstChild,G=!1;if(!p||!N(j,p))return mr($t(Zn(t.line),0),!0);if(p==j&&(G=!0,p=j.childNodes[B],B=0,!p)){var ne=t.rest?$(t.rest):t.line;return mr($t(Zn(ne),ne.text.length),G)}var ge=p.nodeType==3?p:null,Se=p;for(!ge&&p.childNodes.length==1&&p.firstChild.nodeType==3&&(ge=p.firstChild,B&&(B=ge.nodeValue.length));Se.parentNode!=j;)Se=Se.parentNode;var Pe=t.measure,Be=Pe.maps;function gt(er,yr,kr){for(var Er=-1;Er<(Be?Be.length:0);Er++)for(var Xr=Er<0?Pe.map:Be[Er],ia=0;ia<Xr.length;ia+=3){var ea=Xr[ia+2];if(ea==er||ea==yr){var wa=Zn(Er<0?t.line:t.rest[Er]),Va=Xr[ia]+kr;return(kr<0||ea!=er)&&(Va=Xr[ia+(kr?1:0)]),$t(wa,Va)}}}var Dt=gt(ge,Se,B);if(Dt)return mr(Dt,G);for(var tn=Se.nextSibling,Gt=ge?ge.nodeValue.length-B:0;tn;tn=tn.nextSibling){if(Dt=gt(tn,tn.firstChild,0),Dt)return mr($t(Dt.line,Dt.ch-Gt),G);Gt+=tn.textContent.length}for(var On=Se.previousSibling,Kn=B;On;On=On.previousSibling){if(Dt=gt(On,On.firstChild,-1),Dt)return mr($t(Dt.line,Dt.ch+Kn),G);Kn+=On.textContent.length}}var Hr=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new ee,this.hasSelection=!1,this.composing=null};Hr.prototype.init=function(t){var p=this,B=this,j=this.cm;this.createField(t);var G=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),c&&(G.style.width="0px"),je(G,"input",function(){A&&g>=9&&p.hasSelection&&(p.hasSelection=null),B.poll()}),je(G,"paste",function(ge){if(Pt(j,ge)||Ne(ge,j))return;j.state.pasteIncoming=+new Date,B.fastPoll()});function ne(ge){if(Pt(j,ge))return;if(j.somethingSelected())be({lineWise:!1,text:j.getSelections()});else if(j.options.lineWiseCopyCut){var Se=ze(j);be({lineWise:!0,text:Se.text}),ge.type=="cut"?j.setSelections(Se.ranges,null,Te):(B.prevInput="",G.value=Se.text.join(`
`),W(G))}else return;ge.type=="cut"&&(j.state.cutIncoming=+new Date)}je(G,"cut",ne),je(G,"copy",ne),je(t.scroller,"paste",function(ge){if(Oa(t,ge)||Pt(j,ge))return;if(!G.dispatchEvent){j.state.pasteIncoming=+new Date,B.focus();return}var Se=new Event("paste");Se.clipboardData=ge.clipboardData,G.dispatchEvent(Se)}),je(t.lineSpace,"selectstart",function(ge){Oa(t,ge)||Ae(ge)}),je(G,"compositionstart",function(){var ge=j.getCursor("from");B.composing&&B.composing.range.clear(),B.composing={start:ge,range:j.markText(ge,j.getCursor("to"),{className:"CodeMirror-composing"})}}),je(G,"compositionend",function(){B.composing&&(B.poll(),B.composing.range.clear(),B.composing=null)})},Hr.prototype.createField=function(t){this.wrapper=jt(),this.textarea=this.wrapper.firstChild},Hr.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Hr.prototype.prepareSelection=function(){var t=this.cm,p=t.display,B=t.doc,j=bi(t);if(t.options.moveInputWithCursor){var G=Yn(t,B.sel.primary().head,"div"),ne=p.wrapper.getBoundingClientRect(),ge=p.lineDiv.getBoundingClientRect();j.teTop=Math.max(0,Math.min(p.wrapper.clientHeight-10,G.top+ge.top-ne.top)),j.teLeft=Math.max(0,Math.min(p.wrapper.clientWidth-10,G.left+ge.left-ne.left))}return j},Hr.prototype.showSelection=function(t){var p=this.cm,B=p.display;v(B.cursorDiv,t.cursors),v(B.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Hr.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var p=this.cm;if(p.somethingSelected()){this.prevInput="";var B=p.getSelection();this.textarea.value=B,p.state.focused&&W(this.textarea),A&&g>=9&&(this.hasSelection=B)}else t||(this.prevInput=this.textarea.value="",A&&g>=9&&(this.hasSelection=null))},Hr.prototype.getField=function(){return this.textarea},Hr.prototype.supportsTouch=function(){return!1},Hr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||V()!=this.textarea))try{this.textarea.focus()}catch(t){}},Hr.prototype.blur=function(){this.textarea.blur()},Hr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Hr.prototype.receivedFocus=function(){this.slowPoll()},Hr.prototype.slowPoll=function(){var t=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Hr.prototype.fastPoll=function(){var t=!1,p=this;p.pollingFast=!0;function B(){var j=p.poll();!j&&!t?(t=!0,p.polling.set(60,B)):(p.pollingFast=!1,p.slowPoll())}p.polling.set(20,B)},Hr.prototype.poll=function(){var t=this,p=this.cm,B=this.textarea,j=this.prevInput;if(this.contextMenuPending||!p.state.focused||nt(B)&&!j&&!this.composing||p.isReadOnly()||p.options.disableInput||p.state.keySeq)return!1;var G=B.value;if(G==j&&!p.somethingSelected())return!1;if(A&&g>=9&&this.hasSelection===G||s&&/[\uf700-\uf7ff]/.test(G))return p.display.input.reset(),!1;if(p.doc.sel==p.display.selForContextMenu){var ne=G.charCodeAt(0);if(ne==8203&&!j&&(j="\u200B"),ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var ge=0,Se=Math.min(j.length,G.length);ge<Se&&j.charCodeAt(ge)==G.charCodeAt(ge);)++ge;return fi(p,function(){Le(p,G.slice(ge),j.length-ge,null,t.composing?"*compose":null),G.length>1e3||G.indexOf(`
`)>-1?B.value=t.prevInput="":t.prevInput=G,t.composing&&(t.composing.range.clear(),t.composing.range=p.markText(t.composing.start,p.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Hr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Hr.prototype.onKeyPress=function(){A&&g>=9&&(this.hasSelection=null),this.fastPoll()},Hr.prototype.onContextMenu=function(t){var p=this,B=p.cm,j=B.display,G=p.textarea;p.contextMenuPending&&p.contextMenuPending();var ne=Aa(B,t),ge=j.scroller.scrollTop;if(!ne||l)return;var Se=B.options.resetSelectionOnContextMenu;Se&&B.doc.sel.contains(ne)==-1&&Ha(B,gi)(B.doc,Sr(ne),Te);var Pe=G.style.cssText,Be=p.wrapper.style.cssText,gt=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",G.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(t.clientY-gt.top-5)+"px; left: "+(t.clientX-gt.left-5)+`px;
z-index: 1000; background: `+(A?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Dt;e&&(Dt=window.scrollY),j.input.focus(),e&&window.scrollTo(null,Dt),j.input.reset(),B.somethingSelected()||(G.value=p.prevInput=" "),p.contextMenuPending=Gt,j.selForContextMenu=B.doc.sel,clearTimeout(j.detectingSelectAll);function tn(){if(G.selectionStart!=null){var Kn=B.somethingSelected(),er="\u200B"+(Kn?G.value:"");G.value="\u21DA",G.value=er,p.prevInput=Kn?"":"\u200B",G.selectionStart=1,G.selectionEnd=er.length,j.selForContextMenu=B.doc.sel}}function Gt(){if(p.contextMenuPending!=Gt)return;if(p.contextMenuPending=!1,p.wrapper.style.cssText=Be,G.style.cssText=Pe,A&&g<9&&j.scrollbars.setScrollTop(j.scroller.scrollTop=ge),G.selectionStart!=null){(!A||A&&g<9)&&tn();var Kn=0,er=function(){j.selForContextMenu==B.doc.sel&&G.selectionStart==0&&G.selectionEnd>0&&p.prevInput=="\u200B"?Ha(B,ol)(B):Kn++<10?j.detectingSelectAll=setTimeout(er,500):(j.selForContextMenu=null,j.input.reset())};j.detectingSelectAll=setTimeout(er,200)}}if(A&&g>=9&&tn(),P){Fe(t);var On=function(){Bt(window,"mouseup",On),setTimeout(Gt,20)};je(window,"mouseup",On)}else setTimeout(Gt,50)},Hr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Hr.prototype.setUneditable=function(){},Hr.prototype.needsContentAttribute=!1;function Ia(t,p){if(p=p?L(p):{},p.value=t.value,!p.tabindex&&t.tabIndex&&(p.tabindex=t.tabIndex),!p.placeholder&&t.placeholder&&(p.placeholder=t.placeholder),p.autofocus==null){var B=V();p.autofocus=B==t||t.getAttribute("autofocus")!=null&&B==document.body}function j(){t.value=Se.getValue()}var G;if(t.form&&(je(t.form,"submit",j),!p.leaveSubmitMethodAlone)){var ne=t.form;G=ne.submit;try{var ge=ne.submit=function(){j(),ne.submit=G,ne.submit(),ne.submit=ge}}catch(Pe){}}p.finishInit=function(Pe){Pe.save=j,Pe.getTextArea=function(){return t},Pe.toTextArea=function(){Pe.toTextArea=isNaN,j(),t.parentNode.removeChild(Pe.getWrapperElement()),t.style.display="",t.form&&(Bt(t.form,"submit",j),!p.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=G))}},t.style.display="none";var Se=Ya(function(Pe){return t.parentNode.insertBefore(Pe,t.nextSibling)},p);return Se}function Ra(t){t.off=Bt,t.on=je,t.wheelEventPixels=Hi,t.Doc=Ti,t.splitLines=ke,t.countColumn=K,t.findColumn=Ee,t.isWordChar=te,t.Pass=Ce,t.signal=Et,t.Line=mn,t.changeEnd=Zr,t.scrollbarModel=xo,t.Pos=$t,t.cmpPos=An,t.modes=Ct,t.mimeModes=ft,t.resolveMode=ct,t.getMode=Ut,t.modeExtensions=Ft,t.extendMode=on,t.copyState=cn,t.startState=kn,t.innerMode=ln,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=In,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=Ae,t.e_stopPropagation=Ue,t.e_stop=Fe,t.addClass=H,t.contains=N,t.rmClass=x,t.keyNames=Ro}eu(Ya),Wt(Ya);var za="iter insert remove copy getEditor constructor".split(" ");for(var si in Ti.prototype)Ti.prototype.hasOwnProperty(si)&&he(za,si)<0&&(Ya.prototype[si]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ti.prototype[si]));return Je(Ti),Ya.inputStyles={textarea:Hr,contenteditable:kt},Ya.defineMode=function(t){!Ya.defaults.mode&&t!="null"&&(Ya.defaults.mode=t),xt.apply(this,arguments)},Ya.defineMIME=Mt,Ya.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Ya.defineMIME("text/plain","null"),Ya.defineExtension=function(t,p){Ya.prototype[t]=p},Ya.defineDocExtension=function(t,p){Ti.prototype[t]=p},Ya.fromTextArea=Ia,Ra(Ya),Ya.version="5.58.2",Ya})},W6BS:function(k,z){k.exports="data:image/png;base64,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"},WO9J:function(k,z,o){"use strict";o.r(z);var M=o("0Owb"),m=o("PpiC"),O=o("q1tI"),b=o.n(O),y=o("EkPF"),C=o.n(y),A=o("miYZ"),g=o("tsqr"),e=o("2qtc"),f=o("kLXV"),a=o("9og8"),l=o("WmNS"),n=o.n(l),i=o("auZk"),r=o.n(i),c=o("1vsH"),h=o("Ufr+"),d=o.n(h),s=o("HBuW"),u=o("ErOA"),w=o("Ty5D"),E=o("9kvl"),_=function(Yt){var mn,Rn,en=Yt.globalSetting,Tn=Yt.loading,bn=Yt.dispatch,Un=Yt.practiceSetting,Wn=Yt.shixunsDetail,sr=Object(m.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),tr=Object(w.h)(),Rr=Object(O.useRef)(""),Ir=Object(w.i)(),$n=Un.title,Dr=Un.base_info_warning,vr=Un.challenges_warning,zr=Un.service_warning,Lr=Un.repository_warning,$r=Un.mirror_warning;Object(O.useEffect)(function(){var fr;Rr.current=(fr=tr.pathname.split("/"))===null||fr===void 0?void 0:fr[2],bn({type:"practiceSetting/setParams",payload:{id:Rr.current}}),bn({type:"practiceSetting/getCommonData",payload:{id:Rr.current}})},[tr.pathname]),Object(O.useEffect)(function(){return Object(c.X)($n||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(c.X)()}});var ir=function(){var fr=Object(a.a)(n.a.mark(function lr(){return n.a.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:return ur.next=2,Kt();case 2:E.d.push("/shixuns/".concat(Rr.current,"/challenges"));case 3:case"end":return ur.stop()}},lr)}));return function(){return fr.apply(this,arguments)}}(),Kt=function(){return new Promise(function(lr,qr){var ur;Un!=null&&(ur=Un.sideBar)!==null&&ur!==void 0&&ur.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){bn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),lr()},onCancel:function(){qr()}}):lr()})},qt=function(lr){var qr;if(lr===(Un==null?void 0:Un.sideBar.tabsActive))return;var ur=function(){E.d.push("/shixuns/".concat(Rr.current,"/edit?tabId=").concat(lr)),bn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:lr,selectPath:"",confirmLeave:!1}})};Un!=null&&(qr=Un.sideBar)!==null&&qr!==void 0&&qr.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){ur()}}):ur()},Jt=function fr(lr){var qr;lr=(qr=lr)!==null&&qr!==void 0&&qr.includes(".json")?lr:"".concat(lr,".json"),f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var ur=Object(a.a)(n.a.mark(function Yr(){var _r,wr;return n.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(u.a)("/api"+lr,{method:"get"});case 2:if(_r=Jr.sent,_r){Jr.next=5;break}return Jr.abrupt("return");case 5:return g.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Jr.next=8,Object(s.E)({id:_r.shixun_identifier});case 8:if(wr=Jr.sent,!(wr!=null&&wr.game_identifier)){Jr.next=12;break}return Object(c.S)("/tasks/".concat(wr.game_identifier)),Jr.abrupt("return");case 12:(wr==null?void 0:wr.status)===2?fr(wr==null?void 0:wr.message):(wr==null?void 0:wr.status)===3&&Qn(wr==null?void 0:wr.message);case 13:case"end":return Jr.stop()}},Yr)}));function da(){return ur.apply(this,arguments)}return da}()})},Qn=function(lr){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",lr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},nr=function(){var fr=Object(a.a)(n.a.mark(function lr(qr,ur){var da,Yr,_r;return n.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Kt();case 2:if(Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((da=Wn.detail)!==null&&da!==void 0&&da.is_jupyter||(Yr=Wn.detail)!==null&&Yr!==void 0&&Yr.is_jupyter_lab)){Kr.next=6;break}return bn({type:"shixunsDetail/execJupyter",payload:{id:Rr.current}}).then(function(Jr){Jr!=null&&Jr.identifier&&(E.d===null||E.d===void 0||E.d.push("/tasks/".concat(Jr.identifier,"/jupyter")))}),Kr.abrupt("return");case 6:if(bn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!ur){Kr.next=13;break}return Kr.next=10,Object(s.D)({id:qr});case 10:Kr.t0=Kr.sent,Kr.next=16;break;case 13:return Kr.next=15,Object(s.E)({id:qr});case 15:Kr.t0=Kr.sent;case 16:if(_r=Kr.t0,bn({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(_r!=null&&_r.game_identifier||_r!=null&&_r.identifier)){Kr.next=21;break}return Object(c.S)(ur?"/tasks/".concat(_r==null?void 0:_r.identifier,"/jupyter"):"/tasks/".concat(_r.game_identifier)),Kr.abrupt("return");case 21:(_r==null?void 0:_r.status)===-3?Object(c.q)():(_r==null?void 0:_r.status)===2?Jt(_r==null?void 0:_r.message):(_r==null?void 0:_r.status)===3&&Qn(_r==null?void 0:_r.message);case 22:case"end":return Kr.stop()}},lr)}));return function(qr,ur){return fr.apply(this,arguments)}}(),jn=function(){var fr=Object(a.a)(n.a.mark(function lr(){return n.a.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:return ur.next=2,Kt();case 2:bn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return ur.stop()}},lr)}));return function(){return fr.apply(this,arguments)}}(),or=function(lr){var qr={borderBottomColor:(Un==null?void 0:Un.sideBar.tabsActive)===lr?"#0152d9":"transparent"};return qr};return b.a.createElement("div",{className:r.a.header},b.a.createElement("aside",{className:r.a.title},b.a.createElement("i",{onClick:ir,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:r.a.edit},$n||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),b.a.createElement("i",{onClick:jn,className:"icon iconfont icon-xiugai1"})),b.a.createElement("aside",{className:r.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:or("information"),className:r.a.clickWarp,onClick:function(){return qt("information")}},Dr?b.a.createElement("span",{className:r.a.num},"1"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u57FA\u672C\u4FE1\u606F")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:or("warehouse"),className:r.a.clickWarp,onClick:function(){return qt("warehouse")}},Lr?b.a.createElement("span",{className:r.a.num},"2"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Wn==null?void 0:Wn.detail)&&!(Wn!=null&&(mn=Wn.detail)!==null&&mn!==void 0&&mn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:or("level"),className:r.a.clickWarp,onClick:function(){return qt("level")}},vr?b.a.createElement("span",{className:r.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u4EFB\u52A1\u5173\u5361")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Wn==null?void 0:Wn.detail)&&(Wn==null||((Rn=Wn.detail)===null||Rn===void 0)?void 0:Rn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:or("service"),className:r.a.clickWarp,onClick:function(){return qt("service")}},zr?b.a.createElement("span",{className:r.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u670D\u52A1")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:or("environment"),className:r.a.clickWarp,onClick:function(){return qt("environment")}},$r?b.a.createElement("span",{className:r.a.num},"4"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),b.a.createElement("aside",{className:r.a.btns},b.a.createElement("div",{className:r.a.simulate,onClick:function(){return nr(Rr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},P=Object(E.a)(function(wn){var Yt=wn.loading,mn=wn.globalSetting,Rn=wn.practiceSetting,en=wn.shixunsDetail;return{globalSetting:mn,loading:Yt,practiceSetting:Rn,shixunsDetail:en}})(_),R=o("sRBo"),x=o("kaz8"),S=o("14J3"),v=o("BMrR"),T=o("jCWc"),U=o("kPKH"),I=o("DZo9"),N=o("8z0m"),V=o("6UJt"),H=o("DFOY"),D=o("5NDa"),W=o("5rEg"),F=o("+L6B"),L=o("2/Rp"),K=o("k1fw"),ee=o("y8nQ"),he=o("Vl3Y"),fe=o("tJVT"),Ce=o("h/E3"),Te=o.n(Ce),ce=o("Ot1p"),ye=o("oBTY"),Ee=o("+Xk9"),ue=o.n(Ee),se=o("FTkQ"),$=o.n(se),me=function(Yt){var mn=Yt.InputRight,Rn=Yt.value,en=Rn===void 0?[]:Rn,Tn=Yt.onChange,bn=Object(m.a)(Yt,["InputRight","value","onChange"]),Un=Object(O.useState)(),Wn=Object(fe.a)(Un,2),sr=Wn[0],tr=Wn[1],Rr=function(Dr){var vr=en.filter(function(zr,Lr){return Lr!==Dr});Tn(vr)},Ir=function(Dr){if(Dr.preventDefault(),!sr)return;if(en.findIndex(function(vr){return vr.name===sr})>-1){g.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}Tn([].concat(Object(ye.a)(en),[{id:null,name:sr}])),tr(null)};return b.a.createElement("div",null,b.a.createElement(W.a,Object(M.a)({bordered:!1,style:{width:600},value:sr,onChange:function(Dr){return tr(Dr.target.value)},onPressEnter:Ir,onBlur:Ir},bn)),mn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},en==null?void 0:en.map(function($n,Dr){return b.a.createElement("div",{key:Dr,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},$n.name),b.a.createElement("img",{src:$.a,className:ue.a.s2,onClick:function(){return Rr(Dr)}}))})))},re=me,ae=o("LvDl"),we=o("m3rI"),le=o("hW5Z"),te=o.n(le),Q=function(Yt){var mn=Yt.dispatch,Rn=Yt.onCancel,en=Yt.onSave,Tn=Yt.loading,bn=Tn===void 0?!1:Tn;return b.a.createElement("div",{className:te.a.complete},b.a.createElement("div",{onClick:Rn,className:te.a.cancel},"\u53D6\u6D88"),b.a.createElement(L.a,{type:"primary",loading:bn,onClick:en,className:te.a.save},"\u4FDD\u5B58"))},J=Object(E.a)()(Q),ve=o("UqFu"),_e=o("z7Xi"),Oe=o("jN4g"),Xe=function(Yt){var mn,Rn,en=Yt.globalSetting,Tn=Yt.loading,bn=Yt.dispatch,Un=Yt.practiceSetting,Wn=Yt.problemset,sr=Yt.shixunsDetail,tr=Object(m.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Rr=he.a.useForm(),Ir=Object(fe.a)(Rr,1),$n=Ir[0],Dr=Object(O.useState)({}),vr=Object(fe.a)(Dr,2),zr=vr[0],Lr=vr[1],$r=Object(O.useState)(!1),ir=Object(fe.a)($r,2),Kt=ir[0],qt=ir[1],Jt=Object(O.useState)(!1),Qn=Object(fe.a)(Jt,2),nr=Qn[0],jn=Qn[1],or=Object(O.useState)(""),fr=Object(fe.a)(or,2),lr=fr[0],qr=fr[1],ur=Object(O.useState)(""),da=Object(fe.a)(ur,2),Yr=da[0],_r=da[1],wr=Object(O.useRef)({}),Kr=Object(O.useRef)(""),Jr=Object(O.useRef)(null),Oa=Object(O.useRef)(Object(ae.throttle)(function(){return Me()},2e3,{leading:!0,trailing:!1})).current,_a=Un.id;Object(O.useEffect)(function(){if(!_a)return;ut()},[_a]),Object(O.useEffect)(function(){return JSON.stringify(zr)!=="{}"&&Qe(),function(){clearTimeout(Jr.current)}},[zr,lr,Yr]);var Qe=function(){clearTimeout(Jr.current),Jr.current=setTimeout(function(){!Object(ae.isEqual)(zr,wr.current)||lr!==Kr.current||Yr!==Kr.current?bn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):bn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},ut=function(){var pn=Object(a.a)(n.a.mark(function hn(){var zn,Sn,jr,Pr,Qr,Wr,ta,Xn,Tr;return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return bn({type:"problemset/getEditDisciplines",payload:{source:"shixun"}}),Cn.next=3,Object(u.a)("/api/shixuns/".concat(_a,"/edit_base_info.json"),{method:"get"});case 3:zn=Cn.sent,zn.status===0&&(Xn=Object(K.a)(Object(K.a)({},zn.data),{},{description:Object(ve.a)(zn.data.description)}),Tr={description:Xn.description,shixun_tags:Xn.shixun_tags,name:Xn.name,course:(Xn==null||((Sn=Xn.disciplines)===null||Sn===void 0)?void 0:Sn.length)>0?[Xn==null||((jr=Xn.disciplines)===null||jr===void 0||((Pr=jr[0])===null||Pr===void 0))?void 0:Pr.id,Xn==null||((Qr=Xn.disciplines)===null||Qr===void 0||((Wr=Qr[0])===null||Wr===void 0||((ta=Wr.sub_discipline)===null||ta===void 0)))?void 0:ta.id]:[],jupyter_show_description:zn.data.jupyter_show_description},$n.setFieldsValue(Tr),wr.current=Object(K.a)({},Tr),Kr.current=Xn.attachment_id||"",Lr(Object(K.a)({},Tr)),qr(Xn.attachment_id||""),_r(Xn.cover_image_id||""));case 5:case"end":return Cn.stop()}},hn)}));return function(){return pn.apply(this,arguments)}}(),yt=function(hn,zn){Lr(Object(K.a)({},zn))},at=function(){Ie()},Me=function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),$n.submit()},Ve=function(hn){var zn,Sn=hn.name,jr=hn.description,Pr=hn.shixun_tags,Qr=hn.course,Wr=hn.jupyter_show_description,ta=Wr===void 0?!1:Wr,Xn={name:Sn,description:jr,shixun_tags:Pr,attachment_id:lr,cover_image_id:Yr,sub_discipline_ids:Qr[1]};(zn=sr.detail)!==null&&zn!==void 0&&zn.is_jupyter_lab&&(Xn=Object(K.a)(Object(K.a)({},Xn),{},{jupyter_show_description:ta}));var Tr=Object(u.a)("/api/shixuns/".concat(_a,"/base_info_save.json"),{method:"post",body:{shixun:Object(K.a)({},Xn)}});Tr.then(function(Yn){Yn.status===0&&(g.b.success("\u4FDD\u5B58\u6210\u529F"),bn({type:"practiceSetting/getCommonData",payload:{id:_a}}),bn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),wr.current={description:zr.description,shixun_tags:zr.shixun_tags,name:zr.name},Kr.current=lr)})},Ie=function(){var hn,zn=function(){E.d.push("/shixuns/".concat(_a,"/challenges")),bn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};Un!=null&&(hn=Un.sideBar)!==null&&hn!==void 0&&hn.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){zn()}}):zn()};function $e(pn){var hn=pn.type==="image/jpeg"||pn.type==="image/png";return hn||g.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),hn}var qe=b.a.createElement(L.a,{loading:Kt,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),pt=b.a.createElement(L.a,{loading:nr,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function it(pn,hn){var zn=new FileReader;zn.addEventListener("load",function(){return hn(zn.result)}),zn.readAsDataURL(pn)}var It=function(hn){if(hn.file.status==="uploading"){qt(!0);return}if(hn.file.status==="done"){var zn,Sn;qt(!1),qr(hn==null||((zn=hn.file)===null||zn===void 0||((Sn=zn.response)===null||Sn===void 0))?void 0:Sn.id)}},zt=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:we.a.API_SERVER+"/api/attachments/"+lr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Oe.a,{onClick:function(){return qr("")},style:{fontSize:"16px",color:"red"}})))},gn=function(hn){if(hn.file.status==="uploading"){jn(!0);return}if(hn.file.status==="done"){var zn,Sn;jn(!1),_r(hn==null||((zn=hn.file)===null||zn===void 0||((Sn=zn.response)===null||Sn===void 0))?void 0:Sn.id)}},dn=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:we.a.API_SERVER+"/api/attachments/"+Yr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Oe.a,{onClick:function(){return _r("")},style:{fontSize:"16px",color:"red"}})))};return b.a.createElement("div",{className:Te.a.information},b.a.createElement("section",{className:Te.a.scroll},b.a.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),b.a.createElement("div",{className:Te.a.formWrap}," ",b.a.createElement(he.a,{form:$n,scrollToFirstError:!0,layout:"vertical",onValuesChange:yt,onFinish:Ve},b.a.createElement(he.a.Item,{name:"name",label:"\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.a.createElement(W.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((mn=zr.name)===null||mn===void 0?void 0:mn.length)||0,"/60")})),b.a.createElement(he.a.Item,{className:"customAddTags",name:"shixun_tags",label:b.a.createElement("div",null,"\u6280\u80FD\u6807\u7B7E :"," ",b.a.createElement("span",{className:"pl10 font14 c-light-black"},"\u5B66\u5458\u901A\u8FC7\u6240\u6709\u4EFB\u52A1\u5173\u5361\uFF0C\u5C06\u83B7\u5F97\u6280\u80FD\u6807\u7B7E")),rules:[{required:!0,message:"\u8BF7\u9009\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},b.a.createElement(re,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"})),b.a.createElement(he.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},b.a.createElement(H.a,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Wn.courseOptions})),b.a.createElement(v.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},lr?zt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(we.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:It},qe))),b.a.createElement(U.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u75281920*200\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(v.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Yr?dn():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(we.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:gn},pt))),b.a.createElement(U.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528290*218\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(he.a.Item,{name:"description",label:"\u7B80\u4ECB:"},b.a.createElement(ce.a,{defaultValue:zr.description||"",watch:!0})),((Rn=sr.detail)===null||Rn===void 0?void 0:Rn.is_jupyter_lab)&&b.a.createElement(he.a.Item,{name:"jupyter_show_description",valuePropName:"checked"},b.a.createElement(x.a,null,"\u663E\u793A\u4EFB\u52A1\u8981\u6C42\uFF08\u52FE\u9009\u540E\uFF0C\u5C06\u7B80\u4ECB\u4F5C\u4E3A\u4EFB\u52A1\u8981\u6C42\u663E\u793A\u5728\u5B9E\u8DF5\u9879\u76EE\u6311\u6218\u9875\u9762\uFF09"))))),b.a.createElement(J,{onSave:Oa,onCancel:at,loading:Kt||nr}))},tt=Object(E.a)(function(wn){var Yt=wn.problemset,mn=wn.loading,Rn=wn.globalSetting,en=wn.practiceSetting,Tn=wn.shixunsDetail;return{globalSetting:Rn,loading:mn,practiceSetting:en,problemset:Yt,shixunsDetail:Tn}})(Xe),lt=o("ch0t"),dt=o("R9oj"),vt=o("ECub"),_t=o("T2oS"),Ye=o("W9HT"),je=o("bKvZ"),ht=o.n(je),Bt=o("KeGQ"),Et=o.n(Bt),Pt=o("NLgs"),Ze=o("ngQI"),We=function(Yt){var mn=Yt.globalSetting,Rn=Yt.dispatch,en=Yt.practiceSetting,Tn=Object(m.a)(Yt,["globalSetting","dispatch","practiceSetting"]),bn=Object(O.useState)(!1),Un=Object(fe.a)(bn,2),Wn=Un[0],sr=Un[1],tr=Object(O.useState)({}),Rr=Object(fe.a)(tr,2),Ir=Rr[0],$n=Rr[1],Dr=Object(O.useState)(!0),vr=Object(fe.a)(Dr,2),zr=vr[0],Lr=vr[1],$r=Object(O.useState)(!1),ir=Object(fe.a)($r,2),Kt=ir[0],qt=ir[1],Jt=Object(O.useState)(null),Qn=Object(fe.a)(Jt,2),nr=Qn[0],jn=Qn[1],or=Object(O.useRef)(!1),fr=en.id,lr=en.updateIndex,qr=en.is_published,ur=en.newQuestion,da=Ir.challenge_list,Yr=da===void 0?[]:da;Object(O.useEffect)(function(){return fr?(wr(),function(){Rn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[fr,lr]),Object(O.useEffect)(function(){_r()},[Tn.location]);var _r=function(){var $e,qe=Tn.location,pt=qe.pathname.split("/");(pt.includes("newquestion")||pt.includes("new")||qe!=null&&($e=qe.query)!==null&&$e!==void 0&&$e.tabId)&&(or.current=!0)},wr=function(){var Ie=Object(a.a)(n.a.mark(function $e(){var qe,pt,it,It,zt,gn,dn;return n.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:return Lr(!0),hn.next=3,Object(s.J)({id:fr});case 3:it=hn.sent,it!=null&&(qe=it.challenge_list)!==null&&qe!==void 0&&qe.length&&(It=Tn.location.pathname.split("/"),zt=it.challenge_list.find(function(zn){return String(zn.challenge_id)===It[4]}),It.includes("newquestion")||It.includes("new")?(dn=it.challenge_list[((gn=it.challenge_list)===null||gn===void 0?void 0:gn.length)-1],Rn({type:"practiceSetting/setParams",payload:{newQuestion:{st:It.includes("new")?0:1,name:""}}}),jn(void 0),Qe(dn)):It[4]&&zt?Kr(zt,!1):Kr(it.challenge_list[0])),it!=null&&(pt=it.challenge_list)!==null&&pt!==void 0&&pt.length||jn(null),$n(it),Lr(!1);case 8:case"end":return hn.stop()}},$e)}));return function(){return Ie.apply(this,arguments)}}(),Kr=function($e){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(jn($e.challenge_id),Qe($e),qe){var pt="/shixuns/".concat(fr,"/edit/").concat($e.challenge_id,"/").concat($e.st===1?"editquestion":"editcheckpoint");E.d.push(pt)}},Jr=function($e,qe){qe.stopPropagation();var pt=$e.challenge_id,it=function(){var It=Object(a.a)(n.a.mark(function zt(){var gn,dn,pn,hn;return n.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Object(s.v)({id:fr,challengesId:pt});case 2:if(gn=Sn.sent,!(gn.status===1)){Sn.next=12;break}return Sn.next=6,Object(s.J)({id:fr});case 6:if(hn=Sn.sent,$n(hn),!(pt===nr&&(dn=hn.challenge_list)!==null&&dn!==void 0&&dn.length)){Sn.next=11;break}return Kr(hn.challenge_list[0]),Sn.abrupt("return");case 11:(pn=hn.challenge_list)!==null&&pn!==void 0&&pn.length||(jn(null),or.current=!0,Qe({}),E.d.push("/shixuns/".concat(fr,"/edit?tabId=level")));case 12:case"end":return Sn.stop()}},zt)}));return function(){return It.apply(this,arguments)}}();f.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:it})},Oa=function($e,qe,pt){var it=Array.from($e),It=it.splice(qe,1),zt=Object(fe.a)(It,1),gn=zt[0];return it.splice(pt,0,gn),it},_a=function($e,qe){if(!$e.destination)return;var pt=Oa(qe,$e.source.index,$e.destination.index);$n(Object(K.a)(Object(K.a)({},Ir),{},{challenge_list:pt}));var it=pt.map(function(It){return It.challenge_id});Object(s.Kb)({id:fr,ids:it}).then(function(It){It.status!==0&&$n(Object(K.a)(Object(K.a)({},Ir),{},{challenge_list:qe}))})},Qe=function($e){Rn({type:"practiceSetting/setParams",payload:{selectQuestionParams:$e}})},ut=function(){var Ie=Object(a.a)(n.a.mark(function $e(qe,pt){var it;return n.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:if(!(qe===nr)){zt.next=2;break}return zt.abrupt("return");case 2:return zt.next=4,yt();case 4:jn(qe),Qe(pt),Rn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),it="/shixuns/".concat(fr,"/edit/").concat(qe,"/").concat(pt.st===1?"editquestion":"editcheckpoint"),E.d.push(it);case 9:case"end":return zt.stop()}},$e)}));return function(qe,pt){return Ie.apply(this,arguments)}}(),yt=function(){return new Promise(function($e,qe){var pt;en!=null&&(pt=en.sideBar)!==null&&pt!==void 0&&pt.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Rn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),$e()},onCancel:function(){qe()}}):$e()})},at=function($e){return b.a.createElement(b.a.Fragment,null,b.a.createElement(Ze.a,{onDragEnd:function(pt){return _a(pt,$e)}},b.a.createElement(Ze.c,{droppableId:"droppable"},function(qe,pt){return b.a.createElement("div",Object(M.a)({ref:qe.innerRef},qe.droppableProps,{style:{width:"100%"}}),$e.map(function(it,It){var zt=it.st,gn=it.name,dn=it.challenge_id;return b.a.createElement(Ze.b,{key:dn,draggableId:dn.toString(),index:It,isDragDisabled:qr},function(pn,hn){return b.a.createElement("div",Object(M.a)({ref:pn.innerRef},pn.draggableProps,pn.dragHandleProps,{className:nr===dn?ht.a.listActive:ht.a.list,onClick:function(){return ut(dn,it)}}),b.a.createElement("span",{className:ht.a.s1},zt===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ht.a.s2},"\u7B2C",It+1,"\u5173: ",gn),!qr&&b.a.createElement("span",{className:ht.a.s3,onClick:function(Sn){return Jr(it,Sn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),ur&&b.a.createElement("div",{className:ht.a.listActive},b.a.createElement("span",{className:ht.a.s1},(ur==null?void 0:ur.st)===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ht.a.s2},"\u7B2C",$e.length+1,"\u5173: ",ur==null?void 0:ur.name)),!qr&&b.a.createElement("div",{className:ht.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Me=function(){var Ie=Object(a.a)(n.a.mark(function $e(qe){return n.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,yt();case 2:qe==="new"?E.d.push("/shixuns/".concat(fr,"/edit/new")):E.d.push("/shixuns/".concat(fr,"/edit/newquestion")),sr(!1),jn(void 0),Rn({type:"practiceSetting/setParams",payload:{newQuestion:{st:qe==="new"?0:1,name:""}}});case 6:case"end":return it.stop()}},$e)}));return function(qe){return Ie.apply(this,arguments)}}(),Ve=function(){if(Object(Pt.b)(Rn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;sr(!Wn)};return b.a.createElement("div",{className:ht.a.level},b.a.createElement("aside",{className:ht.a.left,style:{width:Kt?"0":"25%"}},b.a.createElement("div",{className:ht.a.container},b.a.createElement("div",{className:ht.a.title},"\u4EFB\u52A1\u5173\u5361(",Yr.length,")"),b.a.createElement("div",{className:ht.a.listWrap},zr?b.a.createElement(Ye.a,{size:"large"}):!!Yr.length||!!ur?at(Yr):b.a.createElement(vt.a,{image:Et.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Kt&&b.a.createElement("div",{className:ht.a.btns},b.a.createElement("aside",{className:ht.a.btnsWrap},b.a.createElement("div",{style:{transform:Wn?"rotate(45deg)":"rotate(0deg)"},className:ht.a.icon,onClick:Ve},"+"),b.a.createElement("div",{className:ht.a.btn,style:{left:Wn?20:-154}},b.a.createElement("div",{className:ht.a.d1,onClick:function(){return Me("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:ht.a.d2,onClick:function(){return Me("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Kt?ht.a.elseShrink:ht.a.shrink,onClick:function(){return qt(!Kt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:ht.a.right,id:"modal-level-question"},nr===null&&or.current?b.a.createElement("div",{className:ht.a.addIcon},b.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):Tn.children))},Je=Object(E.a)(function(wn){var Yt=wn.globalSetting,mn=wn.practiceSetting;return{globalSetting:Yt,practiceSetting:mn}})(We),Ae=o("DjyN"),Ue=o("NUBc"),He=o("cWXX"),Fe=o("/ezw"),et=o("qVdP"),mt=o("jsC+"),Lt=o("lUTK"),Xt=o("BvKs"),rn=o("7Kak"),wt=o("9yH6"),bt=o("Qvpy"),ke=o.n(bt),nt=function(Yt){var mn=Yt.shixunsDetail,Rn=Yt.globalSetting,en=Yt.loading,Tn=Yt.dispatch,bn=Yt.onReloadData,Un=Object(m.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Wn=Object(O.useState)(),sr=Object(fe.a)(Wn,2),tr=sr[0],Rr=sr[1],Ir=Object(O.useState)([]),$n=Object(fe.a)(Ir,2),Dr=$n[0],vr=$n[1];Object(O.useEffect)(function(){mn.actionTabs.key==="Collaborators-ChangeManager"&&zr()},[mn.actionTabs.key]);var zr=function(){var Kt=Object(a.a)(n.a.mark(function qt(){var Jt,Qn;return n.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,Tn({type:"shixunsDetail/getChangeManager",payload:{id:(Jt=mn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}});case 2:Qn=jn.sent,vr(Qn||[]);case 4:case"end":return jn.stop()}},qt)}));return function(){return Kt.apply(this,arguments)}}(),Lr=function(){var qt;Tn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(qt=mn.actionTabs.params)===null||qt===void 0?void 0:qt.id}}})},$r=function(){var Kt=Object(a.a)(n.a.mark(function qt(){var Jt,Qn;return n.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(tr){jn.next=3;break}return g.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),jn.abrupt("return");case 3:return jn.next=5,Tn({type:"shixunsDetail/changeManager",payload:{id:(Jt=mn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id,user_id:tr}});case 5:Qn=jn.sent,ir(),Qn&&(bn(),g.b.info(Qn.message));case 8:case"end":return jn.stop()}},qt)}));return function(){return Kt.apply(this,arguments)}}(),ir=function(){Tn({type:"shixunsDetail/setActionTabs",payload:{}}),Rr(null)};return b.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:mn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:en.effects["shixunsDetail/changeManager"],onOk:$r,onCancel:ir},b.a.createElement("div",null,b.a.createElement("div",{className:ke.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",b.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),b.a.createElement("div",{className:ke.a.content},Dr.length?b.a.createElement(wt.a.Group,{value:tr,onChange:function(qt){return Rr(qt.target.value)}},Dr.map(function(Kt,qt){return b.a.createElement(wt.a,{className:ke.a.radio,key:qt,value:Kt.user_id},Kt.name)})):b.a.createElement("div",{className:ke.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:ke.a.colorBlue,onClick:Lr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},rt=Object(E.a)(function(wn){var Yt=wn.shixunsDetail,mn=wn.loading,Rn=wn.globalSetting;return{shixunsDetail:Yt,globalSetting:Rn,loading:mn}})(nt),De=o("Znn+"),Ke=o("ZTPi"),Ct=o("ju9d"),ft=o("DDK+"),xt=Ke.a.TabPane,Mt=function(wn){var Yt=wn.visible,mn=wn.onCancel,Rn=wn.onSelectGroup,en=wn.shixunId,Tn=wn.onSelectCollaborator;return b.a.createElement(f.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Yt,width:1100,centered:!0,keyboard:!1,onCancel:mn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Ke.a,{defaultActiveKey:"1"},b.a.createElement(xt,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(Ct.a,{onCancel:mn,container_type:2,container_id:en,onSelect:Tn})),b.a.createElement(xt,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(ft.a,{onCancel:mn,onSelect:Rn}))))},ct=o("oaGz"),Ut=o.n(ct),Ft=o("8Skl"),on=o("ruvs"),cn=function(Yt){var mn,Rn,en,Tn,bn,Un,Wn=Yt.shixunsDetail,sr=Yt.globalSetting,tr=Yt.loading,Rr=Yt.user,Ir=Yt.dispatch,$n=Object(m.a)(Yt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Dr=Object(O.useRef)(),vr=Object(O.useState)(0),zr=Object(fe.a)(vr,2),Lr=zr[0],$r=zr[1],ir=Object(O.useState)([]),Kt=Object(fe.a)(ir,2),qt=Kt[0],Jt=Kt[1],Qn=Object(O.useState)({id:null,page:1}),nr=Object(fe.a)(Qn,2),jn=nr[0],or=nr[1],fr=(mn=Rr.userInfo)===null||mn===void 0||((Rn=mn.shixun)===null||Rn===void 0)?void 0:Rn.editable,lr=((en=Rr.userInfo)===null||en===void 0?void 0:en.role)<=2||((Tn=Rr.userInfo)===null||Tn===void 0||((bn=Tn.shixun)===null||bn===void 0)?void 0:bn.is_creator);Object(O.useEffect)(function(){Dr.current=$n.match.params.id,jn.id=Dr.current,or(jn),qr(jn)},[]);var qr=function(){var Qe=Object(a.a)(n.a.mark(function ut(yt){var at;return n.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,Ir({type:"shixunsDetail/getCollaboratorsData",payload:yt});case 2:at=Ve.sent,at&&(Jt(at.members||[]),$r(at.member_count));case 4:case"end":return Ve.stop()}},ut)}));return function(yt){return Qe.apply(this,arguments)}}(),ur=function(){var Qe=Object(a.a)(n.a.mark(function ut(){var yt;return n.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return jn.page=1,or(jn),yt=Object(on.b)(),Me.next=5,Ir({type:"user/getUserInfo",payload:yt});case 5:return Me.next=7,qr(jn);case 7:case"end":return Me.stop()}},ut)}));return function(){return Qe.apply(this,arguments)}}(),da=function(ut){jn.page=ut,or(jn),qr(jn)},Yr=function(ut){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Ut.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var yt=Object(a.a)(n.a.mark(function Me(){var Ve,Ie;return n.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Ir({type:"shixunsDetail/deleteCollaborators",payload:{id:Dr.current,userId:ut}});case 2:if(Ie=qe.sent,!(((Ve=Rr.userInfo)===null||Ve===void 0?void 0:Ve.user_id)===ut)){qe.next=6;break}return E.d.push("/shixuns"),qe.abrupt("return");case 6:g.b.info(Ie==null?void 0:Ie.message),jn.page=1,or(jn),qr(jn);case 10:case"end":return qe.stop()}},Me)}));function at(){return yt.apply(this,arguments)}return at}()})},_r=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Dr.current}}})};function wr(Qe,ut,yt,at){return Kr.apply(this,arguments)}function Kr(){return Kr=Object(a.a)(n.a.mark(function Qe(ut,yt,at,Me){return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,Ir({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:ut,user_id:yt,editable:at?0:1}});case 2:qr(jn);case 3:case"end":return Ie.stop()}},Qe)})),Kr.apply(this,arguments)}var Jr=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Dr.current}}})};function Oa(){Ir({type:"shixunsDetail/setActionTabs",payload:{}})}var _a={visible:Wn.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Oa,shixunId:Dr.current,onSelectCollaborator:function(){var Qe=Object(a.a)(n.a.mark(function yt(at){var Me;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Ir({type:"shixunsDetail/addCollaborator",payload:{id:Dr.current,user_ids:at}});case 3:Me=Ie.sent,Me&&(g.b.success("\u6DFB\u52A0\u6210\u529F"),ur());case 5:case"end":return Ie.stop()}},yt)}));function ut(yt){return Qe.apply(this,arguments)}return ut}(),onSelectGroup:function(){var Qe=Object(a.a)(n.a.mark(function yt(at){var Me;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Ir({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Dr.current,group_id:at.group_id}});case 3:Me=Ie.sent,Me&&(g.b.success("\u6DFB\u52A0\u6210\u529F"),ur());case 5:case"end":return Ie.stop()}},yt)}));function ut(yt){return Qe.apply(this,arguments)}return ut}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Ut.a.wrap},b.a.createElement("div",{className:Ut.a.content},((Un=Wn.detail)===null||Un===void 0?void 0:Un.identity)<5&&b.a.createElement("div",{className:Ut.a.head},b.a.createElement("span",{className:Ut.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Lr,"\u4EBA\uFF09"),b.a.createElement("div",null,lr&&b.a.createElement(L.a,{type:"primary",ghost:!0,className:Ut.a.button,style:{marginRight:"20px"},onClick:_r},"\u66F4\u6362\u7BA1\u7406\u5458"),fr&&b.a.createElement(L.a,{type:"primary",className:Ut.a.button,style:{marginRight:"40px"},onClick:Jr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Ut.a.list},b.a.createElement(Fe.a,{loading:tr.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},qt.map(function(Qe,ut){var yt,at,Me,Ve,Ie,$e,qe,pt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Ut.a.itemWrap,key:ut},b.a.createElement("a",{href:(yt=Qe.user)===null||yt===void 0?void 0:yt.user_url,target:"_blank",className:Ut.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Ut.a.img,src:"".concat(we.a.IMG_SERVER,"/images/").concat((at=Qe.user)===null||at===void 0?void 0:at.image_url)}),((Me=Qe.user)===null||Me===void 0?void 0:Me.shixun_manager)&&b.a.createElement("span",{className:Ut.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Ut.a.itemContent},b.a.createElement("p",{className:Ut.a.nameWrap},b.a.createElement("a",{href:Qe.user.user_url,target:"_blank",className:Ut.a.name},(Ve=Qe.user)===null||Ve===void 0?void 0:Ve.name,Qe.user.user_id===((Ie=Rr.userInfo)===null||Ie===void 0?void 0:Ie.user_id)?b.a.createElement("span",null,"\u6211"):null),b.a.createElement("div",{className:Ut.a.actionGroup},lr?($e=Qe.user)!==null&&$e!==void 0&&$e.shixun_manager?null:b.a.createElement(mt.a,{overlay:b.a.createElement(Xt.a,{selectedKeys:[Qe.editable?"1":"2"],onClick:function(){var It;wr(Wn.detail.identifier,Qe.user.user_id,Qe.editable,(It=Qe.user)===null||It===void 0?void 0:It.name)}},b.a.createElement(Xt.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Xt.a.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},b.a.createElement("div",null,Qe.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650")," ",b.a.createElement(Ft.a,{style:{fontSize:"14px",color:"#888888"}}))):Qe.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650"),!((qe=Qe.user)!==null&&qe!==void 0&&qe.shixun_manager)&&fr?b.a.createElement("a",{className:Ut.a.deletetitle,onClick:function(){var It;return Yr((It=Qe.user)===null||It===void 0?void 0:It.user_id)}},"\u5220\u9664"):null)),b.a.createElement("p",{className:Ut.a.schoolWrap},b.a.createElement("span",{className:Ut.a.school},(pt=Qe.user)===null||pt===void 0?void 0:pt.school_name)))))})))),Lr>10&&b.a.createElement("div",{className:Ut.a.countWrap},b.a.createElement(Ue.a,{showQuickJumper:!1,showSizeChanger:!1,total:Lr,onChange:function(ut){return da(ut)},pageSize:10,current:jn.page}))),b.a.createElement(rt,{onReloadData:ur}),b.a.createElement(Mt,_a))},ln=Object(E.a)(function(wn){var Yt=wn.shixunsDetail,mn=wn.loading,Rn=wn.globalSetting,en=wn.user;return{shixunsDetail:Yt,globalSetting:Rn,user:en,loading:mn}})(cn),kn=o("11/R"),In=o("Q9mQ"),sn=o("diRs"),Gn=o("jrin"),Nn=o("OaEy"),Vn=o("2fM7"),Zn=o("ZW9T"),xr=o("RCxd"),dr=o("4SAo"),un=o.n(dr),$t=W.a.TextArea,An=function(Yt){var mn=Yt.shixunsDetail,Rn=Yt.globalSetting,en=Yt.loading,Tn=Yt.dispatch,bn=Yt.onFinish,Un=bn===void 0?function(){}:bn,Wn=Object(m.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),sr=he.a.useForm(),tr=Object(fe.a)(sr,1),Rr=tr[0],Ir=function(){var Dr=Object(a.a)(n.a.mark(function vr(zr){var Lr,$r;return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,Tn({type:"shixunsDetail/getCustomScript",payload:{id:(Lr=mn.actionTabs.params)===null||Lr===void 0?void 0:Lr.id,compile:zr.execute,excutive:zr.compile}});case 2:$r=Kt.sent,$n(),$r&&Un($r==null?void 0:$r.shixun_script);case 5:case"end":return Kt.stop()}},vr)}));return function(zr){return Dr.apply(this,arguments)}}(),$n=function(){Tn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(f.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:mn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:$n},b.a.createElement(he.a,{form:Rr,scrollToFirstError:!0,layout:"vertical",onFinish:Ir},b.a.createElement(he.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},b.a.createElement($t,{rows:4})),b.a.createElement(he.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement($t,{rows:4})),b.a.createElement("div",{className:un.a.footerWrap},b.a.createElement(he.a.Item,null,b.a.createElement(L.a,{className:"mr5",size:"large",onClick:$n},"\u53D6\u6D88"),b.a.createElement(L.a,{size:"large",type:"primary",htmlType:"submit",loading:en.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},Ur=Object(E.a)(function(wn){var Yt=wn.shixunsDetail,mn=wn.loading,Rn=wn.globalSetting;return{shixunsDetail:Yt,globalSetting:Rn,loading:mn}})(An),Ar=o("Lai7"),Cr=o.n(Ar),gr=o("EGTK"),pe=o("UGPy"),X=o.n(pe),q=o("FrRK"),oe=o("9Bee"),Re=o("N3QO"),de=Vn.a.Option,ot=function(Yt){var mn,Rn,en=Yt.practiceSetting,Tn=Yt.dispatch,bn=Yt.shixunsDetail,Un=Yt.user,Wn=Object(O.useState)(null),sr=Object(fe.a)(Wn,2),tr=sr[0],Rr=sr[1],Ir=Object(O.useState)([]),$n=Object(fe.a)(Ir,2),Dr=$n[0],vr=$n[1],zr=Object(O.useState)(!0),Lr=Object(fe.a)(zr,2),$r=Lr[0],ir=Lr[1],Kt=Object(O.useState)({}),qt=Object(fe.a)(Kt,2),Jt=qt[0],Qn=qt[1],nr=Object(O.useState)([]),jn=Object(fe.a)(nr,2),or=jn[0],fr=jn[1],lr=Object(O.useState)(),qr=Object(fe.a)(lr,2),ur=qr[0],da=qr[1],Yr=Object(O.useState)(),_r=Object(fe.a)(Yr,2),wr=_r[0],Kr=_r[1],Jr=Object(O.useState)([]),Oa=Object(fe.a)(Jr,2),_a=Oa[0],Qe=Oa[1],ut=Object(O.useState)({}),yt=Object(fe.a)(ut,2),at=yt[0],Me=yt[1],Ve=Object(O.useRef)(null),Ie=Object(O.useRef)(!0),$e=Object(O.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),qe=Object(O.useRef)(null),pt=en.id,it=en.is_published,It=at.frequence_image,zt=It===void 0?[]:It,gn=at.environments,dn=gn===void 0?[]:gn,pn=at.choice_small_type,hn=pn===void 0?[]:pn,zn=at.other_image,Sn=zn===void 0?[]:zn,jr=Jt.name,Pr=Jt.description,Qr=Jt.authorization,Wr=Jt.small_type,ta=Wr===void 0?[]:Wr;Object(O.useEffect)(function(){if(tr===null)return;Yn(),Ve.current.scrollTop=0},[tr]),Object(O.useEffect)(function(){if(!pt)return;Tr()},[pt]),Object(O.useEffect)(function(){return tr===null?void 0:(Xn(),function(){clearTimeout(qe.current)})},[tr,Dr,or,ur,wr]);var Xn=function(){clearTimeout(qe.current),qe.current=setTimeout(function(){!Object(ae.isEqual)($e.current.activeId,tr)||!Object(ae.isEqual)($e.current.selectId,Dr)||!Object(ae.isEqual)($e.current.serviceConfigList,or)||!Object(ae.isEqual)($e.current.evaluateScript,ur)||!Object(ae.isEqual)($e.current.evaluationScript,wr)?Tn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):Tn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},Tr=function(){var Or=Object(a.a)(n.a.mark(function br(){var Mr,ar,pa,xa;return n.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return ir(!0),Aa.next=3,Object(u.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get"});case 3:Mr=Aa.sent,Mr.status===0&&(Me(Object(K.a)({},Mr.data)),ir(!1),Mr!=null&&(ar=Mr.data)!==null&&ar!==void 0&&ar.id?($e.current.activeId=Mr==null||((pa=Mr.data)===null||pa===void 0)?void 0:pa.id,Rr(Mr==null||((xa=Mr.data)===null||xa===void 0)?void 0:xa.id)):Rr(null));case 5:case"end":return Aa.stop()}},br)}));return function(){return Or.apply(this,arguments)}}(),Yn=function(){var Or=Object(a.a)(n.a.mark(function br(){var Mr,ar,pa,xa,ba;return n.a.wrap(function(ga){for(;;)switch(ga.prev=ga.next){case 0:return ga.next=2,Object(u.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:tr}});case 2:ba=ga.sent,Qn(ba.data),$e.current.selectId=(Mr=ba.data)===null||Mr===void 0?void 0:Mr.choice_small_type,vr((ar=ba.data)===null||ar===void 0?void 0:ar.choice_small_type),$e.current.serviceConfigList=(pa=ba.data)===null||pa===void 0?void 0:pa.shixun_service_configs,fr((xa=ba.data)===null||xa===void 0?void 0:xa.shixun_service_configs),$e.current.evaluateScript=ba.data.evaluate_script,da(ba.data.evaluate_script),$e.current.evaluationScript=ba.data.choice_standard_scripts,Kr(ba.data.choice_standard_scripts),Qe(ba.data.standard_scripts);case 13:case"end":return ga.stop()}},br)}));return function(){return Or.apply(this,arguments)}}(),Cn=function(){var br,Mr=function(){E.d.push("/shixuns/".concat(pt,"/challenges")),Tn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};en!=null&&(br=en.sideBar)!==null&&br!==void 0&&br.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Mr()}}):Mr()},Hn=function(){var Or=Object(a.a)(n.a.mark(function br(){var Mr,ar,pa,xa=arguments;return n.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:if(Mr=xa.length>0&&xa[0]!==void 0?xa[0]:!1,!Object(Pt.b)(Tn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Aa.next=3;break}return Aa.abrupt("return");case 3:return ar={sub_type:Dr,main_type:tr,shixun:{mirror_script_id:wr},shixun_info:{evaluate_script:ur},shixun_service_configs:or.map(function(ga){return{mirror_repository_id:ga.mirror_repository_id,cpu_limit:ga.cpu_limit,lower_cpu_limit:ga.lower_cpu_limit,memory_limit:ga.memory_limit,request_limit:ga.request_limit,resource_limit:ga.resource_limit}})},Aa.next=6,Object(u.a)("/api/shixuns/".concat(pt),{method:"put",body:ar});case 6:pa=Aa.sent,pa.status===0&&(g.b.success("\u7F16\u8F91\u6210\u529F"),$e.current={activeId:tr,selectId:Dr,serviceConfigList:or,evaluateScript:ur,evaluationScript:wr},Tn({type:"practiceSetting/getCommonData",payload:{id:pt}}),Tn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Aa.stop()}},br)}));return function(){return Or.apply(this,arguments)}}(),Vr=ta.filter(function(Or){return Dr.includes(Or.id)}),ua=function(){Cn()},hr=function(br,Mr,ar){var pa=or.map(function(xa,ba){return ba===ar?Object(K.a)(Object(K.a)({},xa),{},Object(Gn.a)({},Mr,br)):xa});fr(pa)},aa=function(){if(Object(Pt.b)(Tn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;Tn({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:pt}}})},Ca=function(){var Or=Object(a.a)(n.a.mark(function br(Mr){var ar;return n.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,Tn({type:"shixunsDetail/getScriptContent",payload:{id:pt,script_id:Mr}});case 2:ar=xa.sent,ar&&da(ar.content);case 4:case"end":return xa.stop()}},br)}));return function(Mr){return Or.apply(this,arguments)}}(),ha=function(br){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",b.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var Mr=Object(a.a)(n.a.mark(function pa(){return n.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,Ca(br);case 2:f.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:b.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return ba.stop()}},pa)}));function ar(){return Mr.apply(this,arguments)}return ar}()})},Sa=function(br,Mr){var ar=or[0]?[or[0]]:[];Mr.forEach(function(pa){var xa=or.find(function(ga){return ga.mirror_repository_id===Number(pa.key)});if(xa)ar.push(xa);else{var ba=ta.find(function(ga){return ga.id===Number(pa.key)});if(ba.mirror_name){var Aa={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(pa.key),name:ba.mirror_name,request_limit:10};ar.push(Aa)}}}),fr(ar),vr(br)};return b.a.createElement("div",{className:X.a.practice},b.a.createElement(gr.a,{loading:$r,skin:"night",className:X.a.left,dispatch:Tn,value:tr,data:dn,otherData:Sn,tags:zt,onChange:function(br){return Rr(br)}}),b.a.createElement("div",{className:X.a.right},b.a.createElement("header",null,b.a.createElement("div",{className:X.a.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",tr===null?"\u2014 \u2014":jr)),b.a.createElement("div",{className:X.a.content,ref:Ve},tr===null&&b.a.createElement(vt.a,{image:Cr.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),tr!==null&&b.a.createElement("div",{className:X.a.des},b.a.createElement("div",{className:X.a.mainBody},b.a.createElement(oe.a,{value:Pr})),b.a.createElement("div",{className:X.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:X.a.selectBox},b.a.createElement(Vn.a,{onChange:function(br,Mr){return Sa(br,Mr)},getPopupContainer:function(br){return br.parentNode},mode:"multiple",bordered:!1,value:Dr,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},ta.map(function(Or,br){return b.a.createElement(de,{key:Or.id,value:Or.id},Or.type_name)})),b.a.createElement("div",{className:X.a.smallType},Vr.map(function(Or){return Or.description?b.a.createElement("span",{key:Or.id},Or.description):null}))),!(bn!=null&&(mn=bn.detail)!==null&&mn!==void 0&&mn.is_jupyter_lab)&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u8BC4\u6D4B\u811A\u672C"),b.a.createElement("div",{className:X.a.evaluating},b.a.createElement("div",{className:X.a.evaluatingLabel},it&&b.a.createElement("div",{onClick:function(){if(Object(Pt.b)(Tn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:X.a.mask}),b.a.createElement(Vn.a,{style:{width:400},bordered:!1,getPopupContainer:function(br){return br.parentNode},value:wr,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(br){ha(br),Kr(br)}},(_a||[]).map(function(Or,br){return b.a.createElement(de,{value:parseInt(Or.id),name:Or.scptname,key:br},Or.scptname)})),b.a.createElement("span",{className:X.a.evaluatingS1,onClick:aa},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(sn.a,{overlayClassName:X.a.popover,placement:"bottomLeft",content:b.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",b.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",b.a.createElement("br",null),"challengeProgramNames",b.a.createElement("br",null),"sourceClassNames",b.a.createElement("br",null),b.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"src/step1/HelloWorld.java",b.a.createElement("br",null),"src/step2/Other.java",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"step1.HelloWorld",b.a.createElement("br",null),"step2.Other",b.a.createElement("br",null),b.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",b.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',b.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',b.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',b.a.createElement("br",null),'" "step2.Other")',b.a.createElement("br",null),b.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},b.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},b.a.createElement(xr.a,null)))),b.a.createElement(Zn.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:ur,onChange:function(br){if(Ie.current){Ie.current=!1;return}da(br),Object(Pt.b)(Tn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Ie.current=!0,da($e.current.evaluateScript)},200)}}))),((Rn=bn.detail)===null||Rn===void 0?void 0:Rn.identity)<3&&!!or.length&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u670D\u52A1\u914D\u7F6E"),b.a.createElement("div",{className:X.a.serviceSettingWrap},or==null?void 0:or.map(function(Or,br){return b.a.createElement("div",{key:br,className:"mb30"},b.a.createElement("div",null,b.a.createElement("span",{className:"font16"},Or.name)),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Or.cpu_limit,disabled:it,onChange:function(ar){return hr(ar.target.value,"cpu_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Or.lower_cpu_limit,disabled:it,onChange:function(ar){return hr(ar.target.value,"lower_cpu_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Or.memory_limit,disabled:it,onChange:function(ar){return hr(ar.target.value,"memory_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Or.request_limit,style:{width:300},disabled:it,onChange:function(ar){return hr(ar.target.value,"request_limit",br)}}),b.a.createElement("label",{className:X.a.serviceSetTip},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u78C1\u76D8\u9650\u5236(K)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Or.resource_limit,style:{width:300},disabled:it,maxLength:8,onChange:function(ar){var pa=ar.target.value,xa=/^\d*(\.\d*)?$/;pa.match(xa)&&hr(ar.target.value,"resource_limit",br)}})))}))))),b.a.createElement("div",{className:X.a.btns},b.a.createElement(L.a,{size:"large",style:{marginRight:20},onClick:ua},"\u53D6\u6D88"),b.a.createElement(L.a,{size:"large",type:"primary",disabled:tr===null,onClick:function(){return Hn()}},"\u4FDD\u5B58"))),b.a.createElement(q.a,null),b.a.createElement(Ur,{onFinish:function(br){return da(br)}}),b.a.createElement(Re.a,null))},Qt=Object(E.a)(function(wn){var Yt=wn.practiceSetting,mn=wn.globalSetting,Rn=wn.shixunsDetail,en=wn.user;return{practiceSetting:Yt,globalSetting:mn,shixunsDetail:Rn,user:en}})(ot),Ln=o("g9YV"),Jn=o("wCAj"),Zt=o("5Dmo"),En=o("3S7+"),fn=o("P5Jw"),Br=o("wd/R"),ra=o.n(Br),oa=o("3d99"),rr=o.n(oa),Ba=o("Lf5v"),Ea=o("xKgJ"),ca=o("lzim"),Ka=b.a.Fragment,Ta=function(Yt){var mn,Rn,en,Tn,bn=Yt.globalSetting,Un=Yt.dispatch,Wn=Yt.practiceSetting,sr=Yt.shixunsDetail,tr=Yt.user,Rr=Object(m.a)(Yt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Ir=Wn.id,$n=Object(O.useState)([]),Dr=Object(fe.a)($n,2),vr=Dr[0],zr=Dr[1],Lr=Object(O.useState)({}),$r=Object(fe.a)(Lr,2),ir=$r[0],Kt=$r[1],qt=Object(O.useState)(!1),Jt=Object(fe.a)(qt,2),Qn=Jt[0],nr=Jt[1],jn=Object(O.useState)(!0),or=Object(fe.a)(jn,2),fr=or[0],lr=or[1],qr=Object(O.useState)(!1),ur=Object(fe.a)(qr,2),da=ur[0],Yr=ur[1],_r=Object(O.useState)(!1),wr=Object(fe.a)(_r,2),Kr=wr[0],Jr=wr[1],Oa=Object(O.useState)([]),_a=Object(fe.a)(Oa,2),Qe=_a[0],ut=_a[1],yt=Object(O.useState)(!1),at=Object(fe.a)(yt,2),Me=at[0],Ve=at[1],Ie=Object(O.useState)({}),$e=Object(fe.a)(Ie,2),qe=$e[0],pt=$e[1],it=Object(O.useState)({page:1,limit:10,total:0}),It=Object(fe.a)(it,2),zt=It[0],gn=It[1];Object(O.useEffect)(function(){if(!Ir)return;pn()},[Ir]);var dn=function(Tr){var Yn=Object(K.a)(Object(K.a)({},zt),{},{page:Tr});ut([]),gn(Yn),pn(Yn)},pn=function(){var Xn=Object(a.a)(n.a.mark(function Tr(Yn){var Cn,Hn,Vr;return n.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return Cn={page:1,limit:10,total:0},Hn=Yn||Cn,nr(!0),hr.next=5,Un({type:"shixunsDetail/getSetData",payload:Object(K.a)(Object(K.a)({},Hn),{},{id:Ir})});case 5:Vr=hr.sent,Vr!=null&&Vr.data_sets&&(nr(!1),zr(Object(ye.a)(Vr.data_sets)),gn(Object(K.a)(Object(K.a)({},Hn),{},{total:Vr==null?void 0:Vr.data_sets_count})),lr(!1),Kt(Object(K.a)({},Vr)));case 7:case"end":return hr.stop()}},Tr)}));return function(Yn){return Xn.apply(this,arguments)}}(),hn=function(){return b.a.createElement("div",{className:rr.a.empty},b.a.createElement("img",{src:ca.j,width:"258"}),b.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~"))},zn=function(Tr){console.log("selectedRowKeys changed: ",Tr),ut(Tr)},Sn={selectedRowKeys:Qe,columnWidth:70,onChange:zn},jr=function(Tr){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var Yn=Tr?[Tr]:Qe;f.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Cn=Object(a.a)(n.a.mark(function Vr(){var ua,hr;return n.a.wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:return Ca.next=2,Object(u.a)("/api/shixuns/".concat(Ir,"/destroy_data_sets.json"),{method:"Delete",body:{id:Yn}});case 2:ua=Ca.sent,ua.status===0&&(hr=Yn.length===vr.length&&zt.page>1?zt.page-1:zt.page,g.b.success("\u5220\u9664\u6210\u529F"),pn(Object(K.a)(Object(K.a)({},zt),{},{page:hr})),ut([]));case 4:case"end":return Ca.stop()}},Vr)}));function Hn(){return Cn.apply(this,arguments)}return Hn}()})},Pr=function(){var Xn=Object(a.a)(n.a.mark(function Tr(){var Yn,Cn,Hn,Vr,ua;return n.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Yn=qe.title,Cn=null,console.log(Yn,"title"),!(Yn==="")){aa.next=7;break}return Cn="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",pt(Object(K.a)(Object(K.a)({},qe),{},{errorDes:Cn})),aa.abrupt("return");case 7:if(Hn=vr.find(function(Ca){return Ca.id===(qe==null?void 0:qe.id)}).title,!(Yn===Hn.substring(0,Hn.lastIndexOf("."))||Yn===Hn)){aa.next=12;break}return Cn="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",pt(Object(K.a)(Object(K.a)({},qe),{},{errorDes:Cn})),aa.abrupt("return");case 12:return Vr=Hn.includes(".")?Hn.substring(Hn.lastIndexOf("."),Hn.length):"",aa.next=15,Object(u.a)("/api/shixuns/".concat(Ir,"/rename_data_sets.json"),{method:"post",body:{id:qe==null?void 0:qe.id,new_file_name:Yn+Vr}});case 15:ua=aa.sent,ua.status===0&&(g.b.success("\u91CD\u547D\u540D\u6210\u529F"),pn(zt),Yr(!1),pt({}));case 17:case"end":return aa.stop()}},Tr)}));return function(){return Xn.apply(this,arguments)}}(),Qr=function(){var Tr=qe.download_url;Wr(Tr),g.b.success("\u590D\u5236\u6210\u529F"),Jr(!1),pt({})},Wr=function(Tr){var Yn=Tr,Cn=document.createElement("input");Cn.value=Yn,document.body.appendChild(Cn),Cn.select(),document.execCommand("Copy"),Cn.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(Tr){return b.a.createElement(En.a,{title:Tr},b.a.createElement("span",null,Tr))}},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:function(Tr){return b.a.createElement(En.a,{title:Tr},b.a.createElement("span",null,Tr||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:function(Tr,Yn){return ra()(Yn.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(Tr,Yn){return b.a.createElement("div",{className:rr.a.path},b.a.createElement(En.a,{title:Tr},b.a.createElement("span",{className:rr.a.text},Tr)),b.a.createElement(fn.CopyToClipboard,{text:Tr,onCopy:function(){return g.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(En.a,{title:"\u590D\u5236"},b.a.createElement("i",{className:"iconfont icon-fuzhi6 ml5"}))))}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author",align:"left",width:120},{title:"\u6587\u4EF6\u5927\u5C0F",dataIndex:"filesize",key:"filesize",align:"left",width:100},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"left",width:Object(Ea.v)()?200:120,render:function(Tr,Yn){return b.a.createElement("div",{className:rr.a.actionsBtns},b.a.createElement(En.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var Hn;pt(Object(ae.clone)(Object(K.a)(Object(K.a)({},Yn),{},{title:Yn!=null&&Yn.title.includes(".")?Yn==null||((Hn=Yn.title)===null||Hn===void 0)?void 0:Hn.substring(0,Yn.title.lastIndexOf(".")):Yn==null?void 0:Yn.title}))),Yr(!0),Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(Ea.v)()&&b.a.createElement(En.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),pt(Object(ae.clone)(Yn)),Jr(!0)}})),Object(Ea.v)()&&b.a.createElement(En.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(c.x)(Yn.title,Yn==null?void 0:Yn.download_url)}})),b.a.createElement(En.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),jr(Yn.id)}})))}}];return b.a.createElement("div",{className:rr.a.dataset},b.a.createElement("div",{className:rr.a.header},b.a.createElement("div",{className:rr.a.title},"\u6570\u636E\u96C6(",zt.total,")"),b.a.createElement("div",{className:rr.a.dataPath},b.a.createElement("span",{className:rr.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:ir==null?void 0:ir.folder_name,disabled:!0}),b.a.createElement(fn.CopyToClipboard,{text:ir==null?void 0:ir.folder_name,onCopy:function(){return g.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(En.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u6570\u636E\u96C6\u8DEF\u5F84"},b.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})))),b.a.createElement("div",{className:rr.a.btns},b.a.createElement(L.a,{type:"primary",ghost:!0,onClick:function(){return jr()},disabled:!Qe.length},"\u5220\u9664"),b.a.createElement(L.a,{type:"primary",onClick:function(){return Ve(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:rr.a.content},b.a.createElement(Fe.a,{loading:fr,active:!0,paragraph:{rows:5}},zt.total?b.a.createElement(Jn.a,{rowSelection:Sn,className:rr.a.customTable,dataSource:vr,bordered:!1,rowKey:function(Tr){return Tr.id},rowClassName:rr.a.row,columns:ta,loading:Qn,pagination:{pageSize:zt.limit,total:zt.total,current:zt.page,onChange:dn,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):hn())),b.a.createElement(Ba.a,{rootIdentifier:sr==null||((mn=sr.detail)===null||mn===void 0)?void 0:mn.root_identifier,wrapClassName:rr.a.uploadFileModal,id:Ir,containerId:sr==null||((Rn=sr.detail)===null||Rn===void 0)?void 0:Rn.id,local:bn==null||((en=bn.setting)===null||en===void 0)?void 0:en.is_local,dispatch:Un,visible:Me,onClose:function(){return Ve(!1)},onOK:pn}),b.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:da,onOk:Pr,centered:!0,wrapClassName:rr.a.renameModal,onCancel:function(){Yr(!1),pt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:rr.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(W.a,{value:qe==null?void 0:qe.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(Tr){pt(Object(K.a)(Object(K.a)({},qe),{},{title:Tr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat((qe==null||((Tn=qe.title)===null||Tn===void 0)?void 0:Tn.length)||0,"/60")}),(qe==null?void 0:qe.errorDes)&&b.a.createElement("div",{className:rr.a.errorDes},qe==null?void 0:qe.errorDes))),b.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Kr,onOk:Qr,centered:!0,wrapClassName:rr.a.shareModal,onCancel:function(){Jr(!1),pt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:rr.a.fileName},"\u53D1\u9001\u94FE\u63A5\uFF0C\u522B\u4EBA\u53EF\u4EE5\u901A\u8FC7\u94FE\u63A5\u4E0B\u8F7D\u6587\u4EF6",b.a.createElement("span",null,"(\u6709\u6548\u671F\u4E3A3\u5929)")),b.a.createElement(W.a,{bordered:!1,addonBefore:"\u94FE\u63A5",value:qe==null?void 0:qe.download_url}))))},Ja=Object(E.a)(function(wn){var Yt=wn.globalSetting,mn=wn.shixunsDetail,Rn=wn.practiceSetting,en=wn.user;return{globalSetting:Yt,shixunsDetail:mn,user:en,practiceSetting:Rn}})(Ta),Ua=o("aHsQ"),li=o("sGsY"),oi=o("fKo2"),fa=o.n(oi),ma=o("BMKw"),la=o.n(ma),xe=function(Yt){return Yt!=null&&Yt.length?Yt.filter(function(mn,Rn){return Rn!==0}).map(function(mn){return mn.val}).join("").substr(1):""},st=function(Yt){var mn=Yt.shixunsDetail,Rn=Yt.globalSetting,en=Yt.loading,Tn=Yt.dispatch,bn=Yt.fileType,Un=Yt.path,Wn=Yt.onFinish,sr=Wn===void 0?function(){}:Wn,tr=Object(w.i)(),Rr=Object(O.useState)(""),Ir=Object(fe.a)(Rr,2),$n=Ir[0],Dr=Ir[1],vr=Object(O.useState)([]),zr=Object(fe.a)(vr,2),Lr=zr[0],$r=zr[1],ir=Object(O.useState)([]),Kt=Object(fe.a)(ir,2),qt=Kt[0],Jt=Kt[1],Qn=[Vt.OriginalPicturePath,Vt.ExpectPicturePath,Vt.PicturePath],nr=Qn.includes(bn);Object(O.useEffect)(function(){if(mn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Dr(Un||""),jn()},[mn.actionTabs.key]);var jn=function(){var Yr=Object(a.a)(n.a.mark(function _r(){var wr,Kr,Jr,Oa,_a=arguments;return n.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return Kr=_a.length>0&&_a[0]!==void 0?_a[0]:"",ut.next=3,Tn({type:"shixunsDetail/getRepository",payload:{id:tr.id,path:Kr}});case 3:Jr=ut.sent,Kr===""&&!(Jr!=null&&(wr=Jr.trees)!==null&&wr!==void 0&&wr.length)&&g.b.warn("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Jr!=null&&Jr.trees&&(Oa=Jr.trees.map(function(yt){return Object(K.a)(Object(K.a)({},yt),{name:yt.name,val:yt.name})}),Jt(Oa||[]));case 6:case"end":return ut.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),or=function(_r){var wr=xe(Lr),Kr="".concat(wr&&"".concat(wr,"/")).concat(_r);bn===Vt.Path?!($n!=null&&$n.includes("".concat(Kr,"\uFF1B")))&&Dr("".concat($n).concat(Kr,"\uFF1B")):bn===Vt.ExecPath&&Dr(Kr)},fr=function(_r){if(_r.type==="tree"){Lr.length?Lr.push({val:"/".concat(_r.val),path:_r.val}):Lr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(_r.val),path:_r.val}),$r(Lr);var wr=xe(Lr);nr&&Dr(wr),jn(wr)}},lr=function(_r,wr){var Kr=Lr.filter(function(Oa,_a){return _a<=wr});$r(Kr);var Jr=xe(Kr);nr&&Dr(Jr),jn(Jr)},qr=function(){var Yr=Object(a.a)(n.a.mark(function _r(){return n.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:sr($n),ur();case 2:case"end":return Kr.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),ur=function(){Dr(""),$r([]),Jt([]),Tn({type:"shixunsDetail/setActionTabs",payload:{}})},da=xe(Lr);return b.a.createElement(f.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:mn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:qr,onCancel:ur},b.a.createElement("div",{className:la.a.wrap},b.a.createElement("div",{className:la.a.content},b.a.createElement("div",{className:la.a.mainPathWrap},!!(Lr!=null&&Lr.length)&&Lr.map(function(Yr,_r){return b.a.createElement("a",{key:_r,onClick:function(){return lr(Yr,_r)}},Yr.val)})),!!(qt!=null&&qt.length)&&qt.map(function(Yr,_r){return Yr.type==="tree"?b.a.createElement("a",{key:_r,onClick:function(){return fr(Yr)}},b.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name):b.a.createElement("a",{key:_r,onClick:function(){return or("".concat(Yr.name))}},b.a.createElement("i",{className:"iconfont icon-zuoye ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name)})),b.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),b.a.createElement(W.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:$n,onChange:function(_r){return Dr(_r.target.value)}})))},Rt=Object(E.a)(function(wn){var Yt=wn.shixunsDetail,mn=wn.loading,Rn=wn.globalSetting;return{shixunsDetail:Yt,globalSetting:Rn,loading:mn.models.index}})(st),Ot=o("dhSg"),Ht=li.a.Countdown,Nt;(function(wn){wn[wn.LoadingFail=1]="LoadingFail",wn[wn.Loading=2]="Loading",wn[wn.Finish=3]="Finish"})(Nt||(Nt={}));var Vt;(function(wn){wn.Path="path",wn.ExecPath="exec_path",wn.OriginalPicturePath="original_picture_path",wn.ExpectPicturePath="expect_picture_path",wn.PicturePath="picture_path"})(Vt||(Vt={}));var nn=function(Yt){var mn=Yt.globalSetting,Rn=Yt.loading,en=Yt.dispatch,Tn=Yt.practiceSetting,bn=Yt.shixunsDetail,Un=Object(m.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Wn=Object(O.useState)(),sr=Object(fe.a)(Wn,2),tr=sr[0],Rr=sr[1],Ir=Object(O.useState)(),$n=Object(fe.a)(Ir,2),Dr=$n[0],vr=$n[1],zr=Object(O.useRef)(),Lr=Object(O.useState)(),$r=Object(fe.a)(Lr,2),ir=$r[0],Kt=$r[1],qt=Object(O.useState)(),Jt=Object(fe.a)(qt,2),Qn=Jt[0],nr=Jt[1],jn=Object(O.useState)(),or=Object(fe.a)(jn,2),fr=or[0],lr=or[1],qr=Object(O.useRef)(!0),ur=Object(O.useState)(!0),da=Object(fe.a)(ur,2),Yr=da[0],_r=da[1],wr=Object(O.useState)(700),Kr=Object(fe.a)(wr,2),Jr=Kr[0],Oa=Kr[1],_a=Object(O.useState)(""),Qe=Object(fe.a)(_a,2),ut=Qe[0],yt=Qe[1],at=Object(O.useRef)(),Me=Object(w.i)();Object(O.useEffect)(function(){Ie()},[]);var Ve=function(){var dn=Object(a.a)(n.a.mark(function pn(){var hn,zn,Sn;return n.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,en({type:"shixunsDetail/updateRepositoryFile",payload:{id:Me.id,path:bn==null||((hn=bn.fileContent)===null||hn===void 0||((zn=hn.params)===null||zn===void 0))?void 0:zn.path,content:tr,secret_repository:Yr?null:!0}});case 2:Sn=Pr.sent,Sn!=null&&Sn.content&&(g.b.info("\u4FDD\u5B58\u6210\u529F"),en({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},Tn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Pr.stop()}},pn)}));return function(){return dn.apply(this,arguments)}}(),Ie=function(){var dn=Object(a.a)(n.a.mark(function pn(){var hn,zn,Sn,jr,Pr;return n.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,Object(s.X)({identifier:Me.id});case 2:if(Sn=Wr.sent,!(Sn!=null&&(hn=Sn.data)!==null&&hn!==void 0&&(zn=hn.data_list)!==null&&zn!==void 0&&zn.length)){Wr.next=6;break}return Ot.a.publish("pod-restrict-data",{identifier:Sn==null||((jr=Sn.data)===null||jr===void 0)?void 0:jr.identifier,data_list:Sn==null||((Pr=Sn.data)===null||Pr===void 0)?void 0:Pr.data_list}),Wr.abrupt("return");case 6:Sn!=null&&Sn.url&&yt(Sn==null?void 0:Sn.url);case 7:case"end":return Wr.stop()}},pn)}));return function(){return dn.apply(this,arguments)}}(),$e=function(){var dn=Object(a.a)(n.a.mark(function pn(){var hn;return n.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Object(s.rb)({identifier:Me.id});case 2:if(hn=Sn.sent,!((hn==null?void 0:hn.status)!==0)){Sn.next=5;break}return Sn.abrupt("return");case 5:hn!=null&&hn.remainingSeconds?(Kt(Date.now()+hn.remainingSeconds*1e3),nr(hn.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(hn.remainingSeconds-300)*1e3)):qe();case 6:case"end":return Sn.stop()}},pn)}));return function(){return dn.apply(this,arguments)}}(),qe=function(){f.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",zIndex:9999,content:b.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F"),onOk:function(){var pn=Object(a.a)(n.a.mark(function zn(){return n.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:pt();case 1:case"end":return jr.stop()}},zn)}));function hn(){return pn.apply(this,arguments)}return hn}()})},pt=function(){var dn=Object(a.a)(n.a.mark(function pn(){var hn;return n.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return vr(Nt.Loading),Sn.next=3,Object(s.Cb)({identifier:Me.id});case 3:if(hn=Sn.sent,!((hn==null?void 0:hn.status)!==0)){Sn.next=6;break}return Sn.abrupt("return");case 6:vr(Nt.Finish),yt(hn.url),zr.current=hn.port,g.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return Sn.stop()}},pn)}));return function(){return dn.apply(this,arguments)}}(),it=function(){f.a.destroyAll(),f.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:b.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",b.a.createElement("span",null,b.a.createElement(Ht,{value:ir,format:"HH:mm:ss",onFinish:It})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:function(){var pn=Object(a.a)(n.a.mark(function zn(){var Sn;return n.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,Object(s.a)({identifier:Me.id});case 2:if(Sn=Pr.sent,!(Sn.status===0)){Pr.next=7;break}return Pr.next=6,$e();case 6:g.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Pr.stop()}},zn)}));function hn(){return pn.apply(this,arguments)}return hn}()})},It=function(){f.a.destroyAll(),f.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:b.a.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){pt()}})},zt=function(pn){en({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},gn=function(){var dn=Object(a.a)(n.a.mark(function pn(hn){return n.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Object(s.Pb)({id:Me.id,startup_file:hn});case 2:Ie(),en({type:"practiceSetting/getCommonData",payload:Object(K.a)({},Me)});case 4:case"end":return Sn.stop()}},pn)}));return function(hn){return dn.apply(this,arguments)}}();return b.a.createElement("div",{className:fa.a.warehouse},b.a.createElement(v.a,{className:"mt20 ml20 font14",align:"middle"},b.a.createElement(U.a,null,b.a.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),b.a.createElement(U.a,{flex:"300px",onClick:function(){return zt(Vt.ExecPath)}},b.a.createElement(W.a,{value:ut})),b.a.createElement(U.a,{flex:"1"},b.a.createElement(L.a,{type:"primary",className:"ml10",onClick:function(){return zt(Vt.ExecPath)}},"\u8BBE\u7F6E"))),b.a.createElement("iframe",{onLoad:function(pn){},src:ut,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),b.a.createElement(Rt,{fileType:"path",path:"",onFinish:function(pn){return gn(pn)}}))},xn=Object(E.a)(function(wn){var Yt=wn.loading,mn=wn.globalSetting,Rn=wn.practiceSetting,en=wn.shixunsDetail;return{globalSetting:mn,loading:Yt,practiceSetting:Rn,shixunsDetail:en}})(nn),_n=function(Yt){var mn=Yt.tabsActive,Rn=Object(m.a)(Yt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,mn==="information"&&b.a.createElement(tt,null),mn==="warehouse"&&b.a.createElement(lt.default,null),mn==="level"&&b.a.createElement(Je,Rn),mn==="collaborate"&&b.a.createElement(ln,Rn),mn==="setting"&&b.a.createElement(kn.a,null),mn==="environment"&&b.a.createElement(Qt,Rn),mn==="dataset"&&b.a.createElement(Ja,null),mn==="service"&&b.a.createElement(xn,Rn))},Bn=_n,Dn=o("Jv0p"),an=o.n(Dn),Mn=o("luix"),yn=o.n(Mn),Fn=[{name:"\u57FA\u672C\u4FE1\u606F",icon:b.a.createElement("i",{className:"icon iconfont icon-jibenxinxi1"}),tabId:"information"},{name:"\u4EE3\u7801\u4ED3\u5E93",icon:b.a.createElement("i",{className:"icon iconfont icon-daimacangku"}),tabId:"warehouse"},{name:"\u4EFB\u52A1\u5173\u5361",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"level"},{name:"\u5B9E\u9A8C\u73AF\u5883",icon:b.a.createElement("i",{className:"icon iconfont icon-shiyanhuanjing"}),tabId:"environment"},{name:"\u6570\u636E\u96C6",icon:b.a.createElement("i",{className:"icon iconfont icon-shujuji",style:{fontSize:25}}),tabId:"dataset"},{name:"\u670D\u52A1",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"service"},{name:"\u5408\u4F5C\u4EBA\u5458",icon:b.a.createElement("i",{className:"icon iconfont icon-hezuochengyuan"}),tabId:"collaborate"},{name:"\u8BBE\u7F6E",icon:b.a.createElement("i",{className:"icon iconfont icon-shezhi5"}),tabId:"setting"}],Pn=function(Yt){var mn,Rn=Yt.globalSetting,en=Yt.loading,Tn=Yt.dispatch,bn=Yt.shixunsDetail,Un=Yt.practiceSetting,Wn=Object(m.a)(Yt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),sr=Un.base_info_warning,tr=Un.challenges_warning,Rr=Un.id,Ir=Un.repository_warning,$n=Un.sideBar,Dr=Un.service_warning,vr=Object(w.h)(),zr=Object(w.i)();Object(O.useEffect)(function(){var ir,Kt,qt=vr==null||((ir=vr.query)===null||ir===void 0)?void 0:ir.tabId,Jt=vr.pathname.split("/").length,Qn=bn!=null&&(Kt=bn.detail)!==null&&Kt!==void 0&&Kt.windows_vnc?Fn.filter(function(jn){return jn.tabId!=="dataset"}):Fn,nr=Qn.map(function(jn){return jn.tabId}).includes(qt);if(qt&&nr){Tn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:qt}});return}if(Jt>4){Tn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!qt||qt&&!nr){Tn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[bn==null||((mn=bn.detail)===null||mn===void 0)?void 0:mn.windows_vnc]),Object(O.useEffect)(function(){return function(){Tn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},Un.sideBar),{},{selectPath:""})})}},[zr.id]);var Lr=function(Kt){var qt;if(Kt===$n.tabsActive)return;var Jt=function(){E.d.push("/shixuns/".concat(Rr,"/edit?tabId=").concat(Kt)),Tn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Kt,selectPath:"",confirmLeave:!1}})};Un!=null&&(qt=Un.sideBar)!==null&&qt!==void 0&&qt.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Jt()}}):Jt()},$r=function(){var Kt,qt=bn!=null&&(Kt=bn.detail)!==null&&Kt!==void 0&&Kt.windows_vnc?Fn.filter(function(Jt){return Jt.tabId!=="dataset"}):Fn;return qt.filter(function(Jt){var Qn;return bn!=null&&(Qn=bn.detail)!==null&&Qn!==void 0&&Qn.is_jupyter_lab?Jt.tabId!=="level":Jt.tabId!=="service"}).map(function(Jt){var Qn=Jt.name,nr=Jt.icon,jn=Jt.tabId;return b.a.createElement("div",{key:jn,className:Un.sideBar.tabsActive===jn?an.a.itemActive:an.a.item,onClick:function(){return Lr(jn)}},nr,b.a.createElement("span",{className:an.a.name},Qn),jn==="information"&&sr&&b.a.createElement(En.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:yn.a,alt:""})),jn==="level"&&tr&&b.a.createElement(En.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:yn.a,alt:""})),jn==="service"&&Dr&&b.a.createElement(En.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:yn.a,alt:""})),jn==="warehouse"&&Ir&&b.a.createElement(En.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},b.a.createElement("img",{src:yn.a,alt:""})))})};return b.a.createElement("div",{className:an.a.sidebar},b.a.createElement("div",{className:an.a.items},$r()),b.a.createElement("div",{className:an.a.question},b.a.createElement(En.a,{placement:"right",title:"\u5E38\u89C1\u95EE\u9898"},b.a.createElement("span",{style:{cursor:"pointer"},onClick:function(){return window.open("https://www.educoder.net/forums/4692")}},b.a.createElement("img",{src:ca.t,height:44,width:44,alt:""})))))},qn=Object(E.a)(function(wn){var Yt=wn.loading,mn=wn.globalSetting,Rn=wn.shixunsDetail,en=wn.practiceSetting;return{globalSetting:mn,loading:Yt,practiceSetting:en,shixunsDetail:Rn}})(Pn),pr=function(Yt){var mn=Yt.globalSetting,Rn=Yt.loading,en=Yt.dispatch,Tn=Yt.practiceSetting,bn=Object(m.a)(Yt,["globalSetting","loading","dispatch","practiceSetting"]),Un=Tn.sideBar,Wn=Un.tabsActive,sr=Object(w.i)();return Object(O.useEffect)(function(){return en({type:"globalSetting/headerFooterToggle",payload:!1}),en({type:"shixunsDetail/getShixunsDetail",payload:sr}),en({type:"shixunsDetail/getSettingsData",payload:sr}),function(){en({type:"globalSetting/headerFooterToggle",payload:!0}),en({type:"practiceSetting/setParams",payload:{id:""}})}},[]),b.a.createElement("div",{className:C.a.practiceSetting},b.a.createElement("div",{className:C.a.wrapHeader},b.a.createElement(P,null)),b.a.createElement("div",{className:C.a.wrapLayout},b.a.createElement("div",{className:C.a.wrapSidebar},b.a.createElement(qn,null)),b.a.createElement("div",{className:C.a.wrapContent},b.a.createElement(Bn,Object(M.a)({},bn,{tabsActive:Tn.sideBar.tabsActive})))))},Fr=z.default=Object(E.a)(function(wn){var Yt=wn.loading,mn=wn.globalSetting,Rn=wn.practiceSetting;return{globalSetting:mn,loading:Yt,practiceSetting:Rn}})(pr)},WYAk:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){(function(){var m=M,O=m.lib,b=O.Base,y=m.enc,C=y.Utf8,A=m.algo,g=A.HMAC=b.extend({init:function(e,f){e=this._hasher=new e.init,typeof f=="string"&&(f=C.parse(f));var a=e.blockSize,l=a*4;f.sigBytes>l&&(f=e.finalize(f)),f.clamp();for(var n=this._oKey=f.clone(),i=this._iKey=f.clone(),r=n.words,c=i.words,h=0;h<a;h++)r[h]^=1549556828,c[h]^=909522486;n.sigBytes=i.sigBytes=l,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var f=this._hasher,a=f.finalize(e);f.reset();var l=f.finalize(this._oKey.clone().concat(a));return l}})})()})},WaYH:function(k,z,o){"use strict";var M=o("rePB"),m=o("Ff2n"),O=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),C=o("JX7q"),A=o("Ji7U"),g=o("LK+K"),e=o("q1tI"),f=o("TSYQ"),a=o.n(f),l=o("sboe"),n=o("OZM5"),i=function(P){var R=P.prefixCls,x=P.level,S=P.isStart,v=P.isEnd;if(!x)return null;for(var T="".concat(R,"-indent-unit"),U=[],I=0;I<x;I+=1){var N;U.push(e.createElement("span",{key:I,className:a()(T,(N={},Object(M.a)(N,"".concat(T,"-start"),S[I+1]),Object(M.a)(N,"".concat(T,"-end"),v[I+1]),Object(M.a)(N,"".concat(T,"-end-first-level"),!I&&v[0]),N))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(R,"-indent")},U)},r=i,c=o("815F"),h="open",d="close",s="---",u=function(_){Object(A.a)(R,_);var P=Object(g.a)(R);function R(){var x;return Object(b.a)(this,R),x=P.apply(this,arguments),x.state={dragNodeHighlight:!1},x.onSelectorClick=function(S){var v=x.props.context.onNodeClick;v(S,Object(c.b)(x.props)),x.isSelectable()?x.onSelect(S):x.onCheck(S)},x.onSelectorDoubleClick=function(S){var v=x.props.context.onNodeDoubleClick;v(S,Object(c.b)(x.props))},x.onSelect=function(S){if(x.isDisabled())return;var v=x.props.context.onNodeSelect;S.preventDefault(),v(S,Object(c.b)(x.props))},x.onCheck=function(S){if(x.isDisabled())return;var v=x.props,T=v.disableCheckbox,U=v.checked,I=x.props.context.onNodeCheck;if(!x.isCheckable()||T)return;S.preventDefault();var N=!U;I(S,Object(c.b)(x.props),N)},x.onMouseEnter=function(S){var v=x.props.context.onNodeMouseEnter;v(S,Object(c.b)(x.props))},x.onMouseLeave=function(S){var v=x.props.context.onNodeMouseLeave;v(S,Object(c.b)(x.props))},x.onContextMenu=function(S){var v=x.props.context.onNodeContextMenu;v(S,Object(c.b)(x.props))},x.onDragStart=function(S){var v=x.props.context.onNodeDragStart;S.stopPropagation(),x.setState({dragNodeHighlight:!0}),v(S,Object(C.a)(x));try{S.dataTransfer.setData("text/plain","")}catch(T){}},x.onDragEnter=function(S){var v=x.props.context.onNodeDragEnter;S.preventDefault(),S.stopPropagation(),v(S,Object(C.a)(x))},x.onDragOver=function(S){var v=x.props.context.onNodeDragOver;S.preventDefault(),S.stopPropagation(),v(S,Object(C.a)(x))},x.onDragLeave=function(S){var v=x.props.context.onNodeDragLeave;S.stopPropagation(),v(S,Object(C.a)(x))},x.onDragEnd=function(S){var v=x.props.context.onNodeDragEnd;S.stopPropagation(),x.setState({dragNodeHighlight:!1}),v(S,Object(C.a)(x))},x.onDrop=function(S){var v=x.props.context.onNodeDrop;S.preventDefault(),S.stopPropagation(),x.setState({dragNodeHighlight:!1}),v(S,Object(C.a)(x))},x.onExpand=function(S){var v=x.props.context.onNodeExpand;v(S,Object(c.b)(x.props))},x.setSelectHandle=function(S){x.selectHandle=S},x.getNodeState=function(){var S=x.props.expanded;return x.isLeaf()?null:S?h:d},x.hasChildren=function(){var S=x.props.eventKey,v=x.props.context.keyEntities,T=v[S]||{},U=T.children;return!!(U||[]).length},x.isLeaf=function(){var S=x.props,v=S.isLeaf,T=S.loaded,U=x.props.context.loadData,I=x.hasChildren();return v===!1?!1:v||!U&&!I||U&&T&&!I},x.isDisabled=function(){var S=x.props.disabled,v=x.props.context.disabled;return!!(v||S)},x.isCheckable=function(){var S=x.props.checkable,v=x.props.context.checkable;return!v||S===!1?!1:v},x.syncLoadData=function(S){var v=S.expanded,T=S.loading,U=S.loaded,I=x.props.context,N=I.loadData,V=I.onNodeLoad;if(T)return;N&&v&&!x.isLeaf()&&(!x.hasChildren()&&!U&&V(Object(c.b)(x.props)))},x.renderSwitcher=function(){var S=x.props,v=S.expanded,T=S.switcherIcon,U=x.props.context,I=U.prefixCls,N=U.switcherIcon,V=T||N;if(x.isLeaf())return e.createElement("span",{className:a()("".concat(I,"-switcher"),"".concat(I,"-switcher-noop"))},typeof V=="function"?V(Object(O.a)(Object(O.a)({},x.props),{},{isLeaf:!0})):V);var H=a()("".concat(I,"-switcher"),"".concat(I,"-switcher_").concat(v?h:d));return e.createElement("span",{onClick:x.onExpand,className:H},typeof V=="function"?V(Object(O.a)(Object(O.a)({},x.props),{},{isLeaf:!1})):V)},x.renderCheckbox=function(){var S=x.props,v=S.checked,T=S.halfChecked,U=S.disableCheckbox,I=x.props.context.prefixCls,N=x.isDisabled(),V=x.isCheckable();if(!V)return null;var H=typeof V!="boolean"?V:null;return e.createElement("span",{className:a()("".concat(I,"-checkbox"),v&&"".concat(I,"-checkbox-checked"),!v&&T&&"".concat(I,"-checkbox-indeterminate"),(N||U)&&"".concat(I,"-checkbox-disabled")),onClick:x.onCheck},H)},x.renderIcon=function(){var S=x.props.loading,v=x.props.context.prefixCls;return e.createElement("span",{className:a()("".concat(v,"-iconEle"),"".concat(v,"-icon__").concat(x.getNodeState()||"docu"),S&&"".concat(v,"-icon_loading"))})},x.renderSelector=function(){var S=x.state.dragNodeHighlight,v=x.props,T=v.title,U=v.selected,I=v.icon,N=v.loading,V=v.data,H=x.props.context,D=H.prefixCls,W=H.showIcon,F=H.icon,L=H.draggable,K=H.loadData,ee=H.titleRender,he=x.isDisabled(),fe="".concat(D,"-node-content-wrapper"),Ce;if(W){var Te=I||F;Ce=Te?e.createElement("span",{className:a()("".concat(D,"-iconEle"),"".concat(D,"-icon__customize"))},typeof Te=="function"?Te(x.props):Te):x.renderIcon()}else K&&N&&(Ce=x.renderIcon());var ce;typeof T=="function"?ce=T(V):ee?ce=ee(V):ce=T;var ye=e.createElement("span",{className:"".concat(D,"-title")},ce);return e.createElement("span",{ref:x.setSelectHandle,title:typeof T=="string"?T:"",className:a()("".concat(fe),"".concat(fe,"-").concat(x.getNodeState()||"normal"),!he&&(U||S)&&"".concat(D,"-node-selected"),!he&&L&&"draggable"),draggable:!he&&L||void 0,"aria-grabbed":!he&&L||void 0,onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onContextMenu:x.onContextMenu,onClick:x.onSelectorClick,onDoubleClick:x.onSelectorDoubleClick,onDragStart:L?x.onDragStart:void 0},Ce,ye)},x}return Object(y.a)(R,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var S=this.props.selectable,v=this.props.context.selectable;return typeof S=="boolean"?S:v}},{key:"render",value:function(){var S,v=this.props,T=v.eventKey,U=v.className,I=v.style,N=v.dragOver,V=v.dragOverGapTop,H=v.dragOverGapBottom,D=v.isLeaf,W=v.isStart,F=v.isEnd,L=v.expanded,K=v.selected,ee=v.checked,he=v.halfChecked,fe=v.loading,Ce=v.domRef,Te=v.active,ce=v.onMouseMove,ye=Object(m.a)(v,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Ee=this.props.context,ue=Ee.prefixCls,se=Ee.filterTreeNode,$=Ee.draggable,me=Ee.keyEntities,re=this.isDisabled(),ae=Object(n.f)(ye),we=me[T]||{},le=we.level,te=F[F.length-1];return e.createElement("div",Object.assign({ref:Ce,className:a()(U,"".concat(ue,"-treenode"),(S={},Object(M.a)(S,"".concat(ue,"-treenode-disabled"),re),Object(M.a)(S,"".concat(ue,"-treenode-switcher-").concat(L?"open":"close"),!D),Object(M.a)(S,"".concat(ue,"-treenode-checkbox-checked"),ee),Object(M.a)(S,"".concat(ue,"-treenode-checkbox-indeterminate"),he),Object(M.a)(S,"".concat(ue,"-treenode-selected"),K),Object(M.a)(S,"".concat(ue,"-treenode-loading"),fe),Object(M.a)(S,"".concat(ue,"-treenode-active"),Te),Object(M.a)(S,"".concat(ue,"-treenode-leaf-last"),te),Object(M.a)(S,"drag-over",!re&&N),Object(M.a)(S,"drag-over-gap-top",!re&&V),Object(M.a)(S,"drag-over-gap-bottom",!re&&H),Object(M.a)(S,"filter-node",se&&se(Object(c.b)(this.props))),S)),style:I,onDragEnter:$?this.onDragEnter:void 0,onDragOver:$?this.onDragOver:void 0,onDragLeave:$?this.onDragLeave:void 0,onDrop:$?this.onDrop:void 0,onDragEnd:$?this.onDragEnd:void 0,onMouseMove:ce},ae),e.createElement(r,{prefixCls:ue,level:le,isStart:W,isEnd:F}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),R}(e.Component),w=function(P){return e.createElement(l.a.Consumer,null,function(R){return e.createElement(u,Object.assign({},P,{context:R}))})};w.displayName="TreeNode",w.defaultProps={title:s},w.isTreeNode=1;var E=z.a=w},XIdC:function(k,z,o){"use strict";var M=o("rePB"),m=o("ODXe"),O=o("Ff2n"),b=o("q1tI"),y=o.n(b),C=o("TSYQ"),A=o.n(C),g=o("6cGi"),e=o("4IlW"),f=b.forwardRef(function(a,l){var n,i=a.prefixCls,r=i===void 0?"rc-switch":i,c=a.className,h=a.checked,d=a.defaultChecked,s=a.disabled,u=a.loadingIcon,w=a.checkedChildren,E=a.unCheckedChildren,_=a.onClick,P=a.onChange,R=a.onKeyDown,x=Object(O.a)(a,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),S=Object(g.a)(!1,{value:h,defaultValue:d}),v=Object(m.a)(S,2),T=v[0],U=v[1];function I(D,W){var F=T;return s||(F=D,U(F),P==null||P(F,W)),F}function N(D){D.which===e.a.LEFT?I(!1,D):D.which===e.a.RIGHT&&I(!0,D),R==null||R(D)}function V(D){var W=I(!T,D);_==null||_(W,D)}var H=A()(r,c,(n={},Object(M.a)(n,"".concat(r,"-checked"),T),Object(M.a)(n,"".concat(r,"-disabled"),s),n));return b.createElement("button",Object.assign({},x,{type:"button",role:"switch","aria-checked":T,disabled:s,className:H,ref:l,onKeyDown:N,onClick:V}),u,b.createElement("span",{className:"".concat(r,"-inner")},T?w:E))});f.displayName="Switch",z.a=f},Xsq0:function(k,z,o){k.exports=o.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(k,z,o){"use strict";o.r(z),o.d(z,"ResizableTextArea",function(){return he});var M=o("wx14"),m=o("1OyB"),O=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),C=o("q1tI"),A=o("VTBJ"),g=o("rePB"),e=o("Zm9Q"),f=o("Kwbf"),a=o("c+Xe"),l=o("m+aA"),n=o("bdgK"),i=new Map;function r(Te){Te.forEach(function(ce){var ye,Ee=ce.target;(ye=i.get(Ee))===null||ye===void 0||ye.forEach(function(ue){return ue(Ee)})})}var c=new n.default(r),h=null,d=null;function s(Te,ce){i.has(Te)||(i.set(Te,new Set),c.observe(Te)),i.get(Te).add(ce)}function u(Te,ce){i.has(Te)&&(i.get(Te).delete(ce),i.get(Te).size||(c.unobserve(Te),i.delete(Te)))}var w=function(Te){Object(b.a)(ye,Te);var ce=Object(y.a)(ye);function ye(){return Object(m.a)(this,ye),ce.apply(this,arguments)}return Object(O.a)(ye,[{key:"render",value:function(){return this.props.children}}]),ye}(C.Component),E=C.createContext(null);function _(Te){var ce=Te.children,ye=Te.onBatchResize,Ee=C.useRef(0),ue=C.useRef([]),se=C.useContext(E),$=C.useCallback(function(me,re,ae){Ee.current+=1;var we=Ee.current;ue.current.push({size:me,element:re,data:ae}),Promise.resolve().then(function(){we===Ee.current&&(ye==null||ye(ue.current),ue.current=[])}),se==null||se(me,re,ae)},[ye,se]);return C.createElement(E.Provider,{value:$},ce)}function P(Te){var ce=Te.children,ye=Te.disabled,Ee=C.useRef(null),ue=C.useRef(null),se=C.useContext(E),$=C.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),me=C.isValidElement(ce)&&Object(a.c)(ce),re=me?ce.ref:null,ae=C.useMemo(function(){return Object(a.a)(re,Ee)},[re,Ee]),we=C.useRef(Te);we.current=Te;var le=C.useCallback(function(te){var Q=we.current,J=Q.onResize,ve=Q.data,_e=te.getBoundingClientRect(),Oe=_e.width,Xe=_e.height,tt=te.offsetWidth,lt=te.offsetHeight,dt=Math.floor(Oe),vt=Math.floor(Xe);if($.current.width!==dt||$.current.height!==vt||$.current.offsetWidth!==tt||$.current.offsetHeight!==lt){var _t={width:dt,height:vt,offsetWidth:tt,offsetHeight:lt};$.current=_t;var Ye=tt===Math.round(Oe)?Oe:tt,je=lt===Math.round(Xe)?Xe:lt,ht=Object(A.a)(Object(A.a)({},_t),{},{offsetWidth:Ye,offsetHeight:je});se==null||se(ht,te,ve),J&&Promise.resolve().then(function(){J(ht,te)})}},[]);return C.useEffect(function(){var te=Object(l.a)(Ee.current)||Object(l.a)(ue.current);return te&&!ye&&s(te,le),function(){return u(te,le)}},[Ee.current,ye]),C.createElement(w,{ref:ue},me?C.cloneElement(ce,{ref:ae}):ce)}var R="rc-observer-key";function x(Te){var ce=Te.children,ye=Object(e.a)(ce);return ye.map(function(Ee,ue){var se=(Ee==null?void 0:Ee.key)||"".concat(R,"-").concat(ue);return C.createElement(P,Object(M.a)({},Te,{key:se}),Ee)})}x.Collection=_;var S=x,v=o("bT9E"),T=o("TSYQ"),U=o.n(T),I=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,N=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],V={},H;function D(Te){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(ce&&V[ye])return V[ye];var Ee=window.getComputedStyle(Te),ue=Ee.getPropertyValue("box-sizing")||Ee.getPropertyValue("-moz-box-sizing")||Ee.getPropertyValue("-webkit-box-sizing"),se=parseFloat(Ee.getPropertyValue("padding-bottom"))+parseFloat(Ee.getPropertyValue("padding-top")),$=parseFloat(Ee.getPropertyValue("border-bottom-width"))+parseFloat(Ee.getPropertyValue("border-top-width")),me=N.map(function(ae){return"".concat(ae,":").concat(Ee.getPropertyValue(ae))}).join(";"),re={sizingStyle:me,paddingSize:se,borderSize:$,boxSizing:ue};return ce&&ye&&(V[ye]=re),re}function W(Te){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),Te.getAttribute("wrap")?H.setAttribute("wrap",Te.getAttribute("wrap")):H.removeAttribute("wrap");var ue=D(Te,ce),se=ue.paddingSize,$=ue.borderSize,me=ue.boxSizing,re=ue.sizingStyle;H.setAttribute("style","".concat(re,";").concat(I)),H.value=Te.value||Te.placeholder||"";var ae=Number.MIN_SAFE_INTEGER,we=Number.MAX_SAFE_INTEGER,le=H.scrollHeight,te;if(me==="border-box"?le+=$:me==="content-box"&&(le-=se),ye!==null||Ee!==null){H.value=" ";var Q=H.scrollHeight-se;ye!==null&&(ae=Q*ye,me==="border-box"&&(ae=ae+se+$),le=Math.max(ae,le)),Ee!==null&&(we=Q*Ee,me==="border-box"&&(we=we+se+$),te=le>we?"":"hidden",le=Math.min(we,le))}return{height:le,minHeight:ae,maxHeight:we,overflowY:te,resize:"none"}}var F=o("Gytx"),L=o.n(F),K;(function(Te){Te[Te.NONE=0]="NONE",Te[Te.RESIZING=1]="RESIZING",Te[Te.RESIZED=2]="RESIZED"})(K||(K={}));var ee=function(Te){Object(b.a)(ye,Te);var ce=Object(y.a)(ye);function ye(Ee){var ue;return Object(m.a)(this,ye),ue=ce.call(this,Ee),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(se){ue.textArea=se},ue.handleResize=function(se){var $=ue.state.resizeStatus,me=ue.props,re=me.autoSize,ae=me.onResize;if($!==K.NONE)return;typeof ae=="function"&&ae(se),re&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var se=ue.props.autoSize;if(!se||!ue.textArea)return;var $=se.minRows,me=se.maxRows,re=W(ue.textArea,!1,$,me);ue.setState({textareaStyles:re,resizeStatus:K.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:K.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:K.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var se=ue.props,$=se.prefixCls,me=$===void 0?"rc-textarea":$,re=se.autoSize,ae=se.onResize,we=se.className,le=se.disabled,te=ue.state,Q=te.textareaStyles,J=te.resizeStatus,ve=Object(v.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=U()(me,we,Object(g.a)({},"".concat(me,"-disabled"),le));"value"in ve&&(ve.value=ve.value||"");var Oe=Object(A.a)(Object(A.a)(Object(A.a)({},ue.props.style),Q),J===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return C.createElement(S,{onResize:ue.handleResize,disabled:!(re||ae)},C.createElement("textarea",Object(M.a)({},ve,{className:_e,style:Oe,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:K.NONE},ue}return Object(O.a)(ye,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!L()(ue.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ue=this.textArea.selectionStart,se=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,se)}}catch($){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ye}(C.Component),he=ee,fe=function(Te){Object(b.a)(ye,Te);var ce=Object(y.a)(ye);function ye(Ee){var ue;Object(m.a)(this,ye),ue=ce.call(this,Ee),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function($){ue.resizableTextArea=$},ue.handleChange=function($){var me=ue.props.onChange;ue.setValue($.target.value,function(){ue.resizableTextArea.resizeTextarea()}),me&&me($)},ue.handleKeyDown=function($){var me=ue.props,re=me.onPressEnter,ae=me.onKeyDown;$.keyCode===13&&re&&re($),ae&&ae($)};var se=typeof Ee.value=="undefined"||Ee.value===null?Ee.defaultValue:Ee.value;return ue.state={value:se},ue}return Object(O.a)(ye,[{key:"setValue",value:function(ue,se){"value"in this.props||this.setState({value:ue},se)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return C.createElement(he,Object(M.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ue){return"value"in ue?{value:ue.value}:null}}]),ye}(C.Component),Ce=z.default=fe},ZJlW:function(k,z,o){k.exports={flex_box_center:"flex_box_center___XZ1Hd",flex_space_between:"flex_space_between___2oG4i",flex_box_vertical_center:"flex_box_vertical_center___1UWtb",flex_box_center_end:"flex_box_center_end___1o2xT",flex_box_column:"flex_box_column___SlAE0",list:"list___1HvWe",wrap:"wrap___10sri",lockWrap:"lockWrap___2djiu",li:"li___2W_zn",cover:"cover___2FS3L",img:"img___cyxrw",sign:"sign___1cxDK",name:"name___3tYlu",e:"e___1-orw",unit:"unit___ycOgg",tags:"tags___2FRpJ",tag:"tag___1e0XO"}},ZW9T:function(k,z,o){"use strict";o.d(z,"a",function(){return F});var M=o("k1fw"),m=o("oBTY"),O=o("miYZ"),b=o("tsqr"),y=o("rAM+"),C=o("tJVT"),A=o("PpiC"),g=o("q1tI"),e=o.n(g),f=o("bdgK"),a=o("9og8"),l=o("WmNS"),n=o.n(l),i={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},r={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},c={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},h={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},d=o("5VLF"),s=o.n(d),u={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},w=function(K,ee){return ee.map(function(he){return{label:he,kind:K.languages.CompletionItemKind.Keyword,insertText:he}})},E=function(K){return Object.keys(u.tables).map(function(ee){return{label:ee,kind:K.languages.CompletionItemKind.Variable,insertText:ee}})},_=function(K,ee){var he=u.tables[K];return he?he.map(function(fe){return{label:fe,kind:ee.languages.CompletionItemKind.Field,insertText:fe}}):[]};function P(L,K,ee,he,fe){var Ce=K.getWordUntilPosition(ee),Te={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},ce=he.map(function(ye){return{label:ye,kind:L.languages.CompletionItemKind.Keyword,insertText:ye,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Te}});return fe.map(function(ye){ce.push(Object(M.a)(Object(M.a)({},ye),{},{range:Te}))}),ce}var R=function(L){u.languages.map(function(fe){return L.languages.registerDocumentFormattingEditProvider(fe,{provideDocumentFormattingEdits:function(Te,ce,ye){return Object(a.a)(n.a.mark(function Ee(){var ue;return n.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return ue=s()(Te.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),$.abrupt("return",[{range:Te.getFullModelRange(),text:ue}]);case 2:case"end":return $.stop()}},Ee)}))()}}),fe});var K=c.quickKey.map(function(fe){return{label:fe.label,kind:L.languages.CompletionItemKind.Method,insertText:fe.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ee=h.quickKey.map(function(fe){return{label:fe.label,kind:L.languages.CompletionItemKind.Method,insertText:fe.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),he=r.quickKey.map(function(fe){return{label:fe.label,kind:L.languages.CompletionItemKind.Method,insertText:fe.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}});L.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ce,Te){var ce=Ce.getWordUntilPosition(Te),ye={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},Ee=Ce.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(m.a)(c.keywords.map(function(ue){return{label:ue,kind:L.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})),Object(m.a)(c.quickKey.map(function(ue){return{label:ue.label,kind:L.languages.CompletionItemKind.Function,documentation:ue.content,insertText:Ee.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})))}}}),L.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ce,Te){var ce=Ce.getWordUntilPosition(Te),ye={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn};return{suggestions:Object(m.a)(i.keywords.map(function(Ee){return{label:Ee,kind:L.languages.CompletionItemKind.Function,documentation:Ee,insertText:Ee,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}}))}}}),L.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ce,Te){var ce=Ce.getWordUntilPosition(Te),ye={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},Ee=Ce.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(m.a)(r.keywords.map(function(ue){return{label:ue,kind:L.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})),Object(m.a)(r.quickKey.map(function(ue){return{label:ue.label,kind:L.languages.CompletionItemKind.Function,documentation:ue.content,insertText:Ee.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})))}}}),L.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ce,Te){var ce=Ce.getWordUntilPosition(Te),ye={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},Ee=Ce.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(m.a)(h.keywords.map(function(ue){return{label:ue,kind:L.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})),Object(m.a)(h.quickKey.map(function(ue){return{label:ue.label,kind:L.languages.CompletionItemKind.Function,documentation:ue.content,insertText:Ee.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})))}}})},x="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",S=o("fjLI"),v=o("LvDl"),T=o("+ua5");function U(L){return/^\d+$/.test(L)?"".concat(L,"px"):L}function I(){}var N=!1,V={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function H(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=L;if(Array.isArray(L)){for(var ee=0;ee<L.length;ee++){var he=V[L[ee]];if(he)return he}return K[0]}return V[K]||K}var D=null,W=z.b=function(L){var K=L.width,ee=K===void 0?"100%":K,he=L.height,fe=he===void 0?"100%":he,Ce=L.value,Te=L.language,ce=Te===void 0?"javascript":Te,ye=L.style,Ee=ye===void 0?{}:ye,ue=L.options,se=ue===void 0?{}:ue,$=L.overrideServices,me=$===void 0?{}:$,re=L.theme,ae=re===void 0?"vs-dark":re,we=L.onEditBlur,le=L.onSave,te=L.autoHeight,Q=te===void 0?!1:te,J=L.forbidCopy,ve=J===void 0?!1:J,_e=L.onChange,Oe=_e===void 0?I:_e,Xe=L.editorDidMount,tt=Xe===void 0?I:Xe,lt=L.onFocus,dt=lt===void 0?I:lt,vt=L.filename,_t=vt===void 0?"educoder.txt":vt,Ye=L.errorLine,je=L.errorContent,ht=je===void 0?"":je,Bt=Object(A.a)(L,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Et=Object(g.useRef)(),Pt=Object(g.useRef)({}),Ze=Object(g.useRef)(),We=Object(g.useRef)(),Je=Object(g.useRef)(!1),Ae=Object(g.useRef)(),Ue=Object(g.useState)(!1),He=Object(C.a)(Ue,2),Fe=He[0],et=He[1];function mt(){var Ft;return Et.current&&(Ft=new f.default(function(on){var cn=Object(y.a)(on),ln;try{for(cn.s();!(ln=cn.n()).done;){var kn=ln.value;(kn.target.offsetHeight>0||kn.target.offsetWidth>0)&&Pt.current.instance.layout()}}catch(In){cn.e(In)}finally{cn.f()}}),Ft.observe(Et.current)),Ft}function Lt(){b.b.warn(decodeURIComponent(x))}var Xt=function(){var on=Pt.current.instance;if(Ce!=null&&on&&Fe){var cn=on.getModel();cn&&Ce!==cn.getValue()&&(N=!0,cn.setValue(Ce),on.layout(),N=!1)}};Object(g.useEffect)(function(){We.current&&clearTimeout(We.current),We.current=setTimeout(function(){Xt()},500)},[Ce,Fe,Pt.current]),Object(g.useEffect)(function(){if(Ye&&Pt.current&&Pt.current.instance){var Ft=Pt.current.instance;Ft.changeViewZones(function(cn){var ln=document.createElement("div");ln.style.padding="10px 20px",ln.style.width="calc(100% - 20px)",ln.className="my-error-line-wrp",ln.innerHTML=ht,cn.addZone({afterLineNumber:Ye||11,heightInLines:3,domNode:ln})});var on={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Ft.addOverlayWidget(on),Ft.revealPositionInCenter({lineNumber:20,column:1})}},[Ye,Pt.current,Fe]);function rn(){var Ft=Pt.current.instance;if(Ft){var on=Ft.getSelection(),cn=Pt.current.pastePos||{},ln=new D.Range(cn.startLineNumber||on.endLineNumber,cn.startColumn||on.endColumn,cn.endLineNumber||on.endLineNumber,cn.endColumn||on.endColumn);setTimeout(function(){Ft.executeEdits("",[{range:ln,text:""}])},300)}}function wt(Ft){(window.navigator.platform.match("Mac")?Ft.metaKey:Ft.ctrlKey)&&Ft.keyCode==83&&(Ft.preventDefault(),le())}var bt=function(){if(Q&&Pt.current.instance){var on=Pt.current.instance.getContentHeight();ct(on<fe?fe:on)}else ct(fe)};function ke(Ft){var on=document.createEvent("MouseEvents");on.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ft.dispatchEvent(on)}function nt(Ft,on){var cn=window.URL||window.webkitURL||window,ln=new Blob([on]),kn=document.createElementNS("http://www.w3.org/1999/xhtml","a");kn.href=cn.createObjectURL(ln),kn.download=Ft,ke(kn)}Object(g.useEffect)(function(){bt()},[bt]),Object(g.useEffect)(function(){Et.current&&!Fe&&Promise.all([o.e(16),o.e(28)]).then(o.t.bind(null,"M/lh",7)).then(function(Ft){try{D=Ft,Pt.current.instance=D.editor.create(Et.current,{value:Ce,language:H(ce),theme:ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},me);var on=Pt.current.instance,cn=S.d._menuItems,ln=Object(m.a)(cn).find(function(Nn){return Nn[0]._debugName=="EditorContext"}),kn=ln[1],In=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],sn=function(Vn,Zn){var xr=Vn._first;do{var dr,un,$t=Zn.includes((dr=xr.element)===null||dr===void 0||((un=dr.command)===null||un===void 0)?void 0:un.id);$t&&Vn._remove(xr)}while(xr=xr.next)};if(tt(on,D),setTimeout(function(){bt(),Pt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){nt(_t||"educoder.txt",on.getValue())}}),on.getDomNode().addEventListener("input",function(){Ze.current.autoFormat&&on.getAction("editor.action.formatDocument").run()})},500),Pt.current.subscription=on.onDidChangeModelContent(function(Nn){Je.current?clearTimeout(Ae.current):(bt(),Oe(on.getValue(),Nn)),Ae.current=setTimeout(function(){Je.current=!1},500)}),window.Monaco||R(D,H(ce)),ve&&(sn(kn,In),Et.current.classList.add("noCopyPaste"),on.onKeyDown(function(Nn){var Vn=Nn.keyCode,Zn=Nn.ctrlKey,xr=Nn.metaKey;(Vn===33||Vn===52)&&(xr||Zn)&&(Lt(),Nn.preventDefault())})),window.Monaco=D,we&&on.onDidBlurEditorWidget(function(){we(on.getValue())}),dt&&on.onDidFocusEditorText(function(){dt(on.getValue())}),ve){on.addCommand(D.KeyMod.CtrlCmd|D.KeyCode.KEY_V,function(){return Lt(),null}),on.onDidPaste(function(Nn){Pt.current.pastePos=Nn});try{window.addEventListener("paste",rn)}catch(Nn){}}var Gn=mt();return et(!0),function(){var Nn=Pt.current.instance;Nn.dispose();var Vn=Nn.getModel();Vn&&Vn.dispose(),Pt.current.subscription&&Pt.current.subscription.dispose(),ve&&window.removeEventListener("paste",rn),Gn.unobserve(Et.current)}}catch(Nn){}})},[]),Object(g.useEffect)(function(){var Ft=Pt.current.instance;if(Ft&&Fe)return document.addEventListener("keydown",wt,!1),function(){document.removeEventListener("keydown",wt)}},[le,Fe]),Object(g.useEffect)(function(){var Ft=Pt.current.instance;if(Ft&&Fe){var on=H(ce);D.editor.setModelLanguage(Ft.getModel(),on),console.log("language:",ce,Ft.getModel(),on)}},[ce,Fe]),Object(g.useEffect)(function(){var Ft=Pt.current.instance;Ft&&Fe&&D.editor.setTheme(ae)},[ae,Fe]),Object(g.useEffect)(function(){var Ft=Pt.current.instance;Ze.current=se,Ft&&Fe&&(Ft.updateOptions(Object(M.a)({},se)),setTimeout(function(){Ft.getModel().updateOptions(Object(M.a)({},se))},200))},[JSON.stringify(se),Fe]),Object(g.useEffect)(function(){var Ft=Pt.current.instance;Ft&&Fe&&Ft.layout()},[ee,fe,Fe]);var rt=Object(g.useState)(U(ee)),De=Object(C.a)(rt,2),Ke=De[0],Ct=De[1],ft=Object(g.useState)(U(fe)),xt=Object(C.a)(ft,2),Mt=xt[0],ct=xt[1],Ut=Object(M.a)(Object(M.a)({},Ee),{},{width:Ke,height:Mt});return e.a.createElement("div",{className:"my-monaco-editor",ref:Et,style:Ut})};function F(L){var K=L.width,ee=K===void 0?"100%":K,he=L.height,fe=he===void 0?"100%":he,Ce=L.original,Te=L.modified,ce=L.language,ye=L.options,Ee=ye===void 0?{}:ye,ue=Object(g.useRef)(),se=Object(g.useState)(null),$=Object(C.a)(se,2),me=$[0],re=$[1];function ae(Q){var J;return ue.current&&(J=new f.default(function(ve){var _e=Object(y.a)(ve),Oe;try{for(_e.s();!(Oe=_e.n()).done;){var Xe=Oe.value;(Xe.target.offsetHeight>0||Xe.target.offsetWidth>0)&&Q.layout()}}catch(tt){_e.e(tt)}finally{_e.f()}}),J.observe(ue.current)),J}Object(g.useEffect)(function(){ue.current&&Promise.all([o.e(16),o.e(28)]).then(o.t.bind(null,"M/lh",7)).then(function(Q){D=Q;var J=D.editor.createDiffEditor(ue.current,Object(M.a)(Object(M.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ee),{},{wordWrap:!0}));re(J);var ve=ae(J);return function(){J.dispose();var _e=J.getModel();_e&&_e.dispose(),ve.unobserve(ue.current)}})},[]),Object(g.useEffect)(function(){me&&me.setModel({original:D.editor.createModel(Ce,ce),modified:D.editor.createModel(Te,ce)})},[Ce,Te,ce,me]);var we=U(ee),le=U(fe),te={width:we,height:le};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:te})}},ZpRC:function(k,z,o){"use strict";function M(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function m(a,l){return(!l||a!=="hidden")&&a!=="visible"&&a!=="clip"}function O(a,l){if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){var n=getComputedStyle(a,null);return m(n.overflowY,l)||m(n.overflowX,l)||function(i){var r=function(c){if(!c.ownerDocument||!c.ownerDocument.defaultView)return null;try{return c.ownerDocument.defaultView.frameElement}catch(h){return null}}(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)}(a)}return!1}function b(a,l,n,i,r,c,h,d){return c<a&&h>l||c>a&&h<l?0:c<=a&&d<=n||h>=l&&d>=n?c-a-i:h>l&&d<n||c<a&&d>n?h-l+r:0}var y=function(a,l){var n=window,i=l.scrollMode,r=l.block,c=l.inline,h=l.boundary,d=l.skipOverflowHiddenElements,s=typeof h=="function"?h:function(Q){return Q!==h};if(!M(a))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,w=[],E=a;M(E)&&s(E);){if((E=E.parentElement)===u){w.push(E);break}E!=null&&E===document.body&&O(E)&&!O(document.documentElement)||E!=null&&O(E,d)&&w.push(E)}for(var _=n.visualViewport?n.visualViewport.width:innerWidth,P=n.visualViewport?n.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,S=a.getBoundingClientRect(),v=S.height,T=S.width,U=S.top,I=S.right,N=S.bottom,V=S.left,H=r==="start"||r==="nearest"?U:r==="end"?N:U+v/2,D=c==="center"?V+T/2:c==="end"?I:V,W=[],F=0;F<w.length;F++){var L=w[F],K=L.getBoundingClientRect(),ee=K.height,he=K.width,fe=K.top,Ce=K.right,Te=K.bottom,ce=K.left;if(i==="if-needed"&&U>=0&&V>=0&&N<=P&&I<=_&&U>=fe&&N<=Te&&V>=ce&&I<=Ce)return W;var ye=getComputedStyle(L),Ee=parseInt(ye.borderLeftWidth,10),ue=parseInt(ye.borderTopWidth,10),se=parseInt(ye.borderRightWidth,10),$=parseInt(ye.borderBottomWidth,10),me=0,re=0,ae="offsetWidth"in L?L.offsetWidth-L.clientWidth-Ee-se:0,we="offsetHeight"in L?L.offsetHeight-L.clientHeight-ue-$:0;if(u===L)me=r==="start"?H:r==="end"?H-P:r==="nearest"?b(x,x+P,P,ue,$,x+H,x+H+v,v):H-P/2,re=c==="start"?D:c==="center"?D-_/2:c==="end"?D-_:b(R,R+_,_,Ee,se,R+D,R+D+T,T),me=Math.max(0,me+x),re=Math.max(0,re+R);else{me=r==="start"?H-fe-ue:r==="end"?H-Te+$+we:r==="nearest"?b(fe,Te,ee,ue,$+we,H,H+v,v):H-(fe+ee/2)+we/2,re=c==="start"?D-ce-Ee:c==="center"?D-(ce+he/2)+ae/2:c==="end"?D-Ce+se+ae:b(ce,Ce,he,Ee,se+ae,D,D+T,T);var le=L.scrollLeft,te=L.scrollTop;H+=te-(me=Math.max(0,Math.min(te+me,L.scrollHeight-ee+we))),D+=le-(re=Math.max(0,Math.min(le+re,L.scrollWidth-he+ae)))}W.push({el:L,top:me,left:re})}return W};function C(a){return a===Object(a)&&Object.keys(a).length!==0}function A(a,l){l===void 0&&(l="auto");var n="scrollBehavior"in document.body.style;a.forEach(function(i){var r=i.el,c=i.top,h=i.left;r.scroll&&n?r.scroll({top:c,left:h,behavior:l}):(r.scrollTop=c,r.scrollLeft=h)})}function g(a){return a===!1?{block:"end",inline:"nearest"}:C(a)?a:{block:"start",inline:"nearest"}}function e(a,l){var n=!a.ownerDocument.documentElement.contains(a);if(C(l)&&typeof l.behavior=="function")return l.behavior(n?[]:y(a,l));if(n)return;var i=g(l);return A(y(a,i),i.behavior)}var f=z.a=e},Zss7:function(k,z,o){var M;(function(m){var O=/^\s+/,b=/\s+$/,y=0,C=m.round,A=m.min,g=m.max,e=m.random;function f($,me){if($=$||"",me=me||{},$ instanceof f)return $;if(!(this instanceof f))return new f($,me);var re=a($);this._originalInput=$,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=C(100*this._a)/100,this._format=me.format||re.format,this._gradientType=me.gradientType,this._r<1&&(this._r=C(this._r)),this._g<1&&(this._g=C(this._g)),this._b<1&&(this._b=C(this._b)),this._ok=re.ok,this._tc_id=y++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var $=this.toRgb();return($.r*299+$.g*587+$.b*114)/1e3},getLuminance:function(){var $=this.toRgb(),me,re,ae,we,le,te;return me=$.r/255,re=$.g/255,ae=$.b/255,me<=.03928?we=me/12.92:we=m.pow((me+.055)/1.055,2.4),re<=.03928?le=re/12.92:le=m.pow((re+.055)/1.055,2.4),ae<=.03928?te=ae/12.92:te=m.pow((ae+.055)/1.055,2.4),.2126*we+.7152*le+.0722*te},setAlpha:function($){return this._a=W($),this._roundA=C(100*this._a)/100,this},toHsv:function(){var $=r(this._r,this._g,this._b);return{h:$.h*360,s:$.s,v:$.v,a:this._a}},toHsvString:function(){var $=r(this._r,this._g,this._b),me=C($.h*360),re=C($.s*100),ae=C($.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+ae+"%)":"hsva("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHsl:function(){var $=n(this._r,this._g,this._b);return{h:$.h*360,s:$.s,l:$.l,a:this._a}},toHslString:function(){var $=n(this._r,this._g,this._b),me=C($.h*360),re=C($.s*100),ae=C($.l*100);return this._a==1?"hsl("+me+", "+re+"%, "+ae+"%)":"hsla("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHex:function($){return h(this._r,this._g,this._b,$)},toHexString:function($){return"#"+this.toHex($)},toHex8:function($){return d(this._r,this._g,this._b,this._a,$)},toHex8String:function($){return"#"+this.toHex8($)},toRgb:function(){return{r:C(this._r),g:C(this._g),b:C(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+C(this._r)+", "+C(this._g)+", "+C(this._b)+")":"rgba("+C(this._r)+", "+C(this._g)+", "+C(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:C(F(this._r,255)*100)+"%",g:C(F(this._g,255)*100)+"%",b:C(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+C(F(this._r,255)*100)+"%, "+C(F(this._g,255)*100)+"%, "+C(F(this._b,255)*100)+"%)":"rgba("+C(F(this._r,255)*100)+"%, "+C(F(this._g,255)*100)+"%, "+C(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[h(this._r,this._g,this._b,!0)]||!1},toFilter:function($){var me="#"+s(this._r,this._g,this._b,this._a),re=me,ae=this._gradientType?"GradientType = 1, ":"";if($){var we=f($);re="#"+s(we._r,we._g,we._b,we._a)}return"progid:DXImageTransform.Microsoft.gradient("+ae+"startColorstr="+me+",endColorstr="+re+")"},toString:function($){var me=!!$;$=$||this._format;var re=!1,ae=this._a<1&&this._a>=0,we=!me&&ae&&($==="hex"||$==="hex6"||$==="hex3"||$==="hex4"||$==="hex8"||$==="name");return we?$==="name"&&this._a===0?this.toName():this.toRgbString():($==="rgb"&&(re=this.toRgbString()),$==="prgb"&&(re=this.toPercentageRgbString()),($==="hex"||$==="hex6")&&(re=this.toHexString()),$==="hex3"&&(re=this.toHexString(!0)),$==="hex4"&&(re=this.toHex8String(!0)),$==="hex8"&&(re=this.toHex8String()),$==="name"&&(re=this.toName()),$==="hsl"&&(re=this.toHslString()),$==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function($,me){var re=$.apply(null,[this].concat([].slice.call(me)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function($,me){return $.apply(null,[this].concat([].slice.call(me)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(U,arguments)},triad:function(){return this._applyCombination(v,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},f.fromRatio=function($,me){if(typeof $=="object"){var re={};for(var ae in $)$.hasOwnProperty(ae)&&(ae==="a"?re[ae]=$[ae]:re[ae]=Ce($[ae]));$=re}return f($,me)};function a($){var me={r:0,g:0,b:0},re=1,ae=null,we=null,le=null,te=!1,Q=!1;return typeof $=="string"&&($=ue($)),typeof $=="object"&&(Ee($.r)&&Ee($.g)&&Ee($.b)?(me=l($.r,$.g,$.b),te=!0,Q=String($.r).substr(-1)==="%"?"prgb":"rgb"):Ee($.h)&&Ee($.s)&&Ee($.v)?(ae=Ce($.s),we=Ce($.v),me=c($.h,ae,we),te=!0,Q="hsv"):Ee($.h)&&Ee($.s)&&Ee($.l)&&(ae=Ce($.s),le=Ce($.l),me=i($.h,ae,le),te=!0,Q="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=W(re),{ok:te,format:$.format||Q,r:A(255,g(me.r,0)),g:A(255,g(me.g,0)),b:A(255,g(me.b,0)),a:re}}function l($,me,re){return{r:F($,255)*255,g:F(me,255)*255,b:F(re,255)*255}}function n($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=g($,me,re),we=A($,me,re),le,te,Q=(ae+we)/2;if(ae==we)le=te=0;else{var J=ae-we;te=Q>.5?J/(2-ae-we):J/(ae+we);switch(ae){case $:le=(me-re)/J+(me<re?6:0);break;case me:le=(re-$)/J+2;break;case re:le=($-me)/J+4;break}le/=6}return{h:le,s:te,l:Q}}function i($,me,re){var ae,we,le;$=F($,360),me=F(me,100),re=F(re,100);function te(ve,_e,Oe){return Oe<0&&(Oe+=1),Oe>1&&(Oe-=1),Oe<1/6?ve+(_e-ve)*6*Oe:Oe<1/2?_e:Oe<2/3?ve+(_e-ve)*(2/3-Oe)*6:ve}if(me===0)ae=we=le=re;else{var Q=re<.5?re*(1+me):re+me-re*me,J=2*re-Q;ae=te(J,Q,$+1/3),we=te(J,Q,$),le=te(J,Q,$-1/3)}return{r:ae*255,g:we*255,b:le*255}}function r($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=g($,me,re),we=A($,me,re),le,te,Q=ae,J=ae-we;if(te=ae===0?0:J/ae,ae==we)le=0;else{switch(ae){case $:le=(me-re)/J+(me<re?6:0);break;case me:le=(re-$)/J+2;break;case re:le=($-me)/J+4;break}le/=6}return{h:le,s:te,v:Q}}function c($,me,re){$=F($,360)*6,me=F(me,100),re=F(re,100);var ae=m.floor($),we=$-ae,le=re*(1-me),te=re*(1-we*me),Q=re*(1-(1-we)*me),J=ae%6,ve=[re,te,le,le,Q,re][J],_e=[Q,re,re,te,le,le][J],Oe=[le,le,Q,re,re,te][J];return{r:ve*255,g:_e*255,b:Oe*255}}function h($,me,re,ae){var we=[fe(C($).toString(16)),fe(C(me).toString(16)),fe(C(re).toString(16))];return ae&&we[0].charAt(0)==we[0].charAt(1)&&we[1].charAt(0)==we[1].charAt(1)&&we[2].charAt(0)==we[2].charAt(1)?we[0].charAt(0)+we[1].charAt(0)+we[2].charAt(0):we.join("")}function d($,me,re,ae,we){var le=[fe(C($).toString(16)),fe(C(me).toString(16)),fe(C(re).toString(16)),fe(Te(ae))];return we&&le[0].charAt(0)==le[0].charAt(1)&&le[1].charAt(0)==le[1].charAt(1)&&le[2].charAt(0)==le[2].charAt(1)&&le[3].charAt(0)==le[3].charAt(1)?le[0].charAt(0)+le[1].charAt(0)+le[2].charAt(0)+le[3].charAt(0):le.join("")}function s($,me,re,ae){var we=[fe(Te(ae)),fe(C($).toString(16)),fe(C(me).toString(16)),fe(C(re).toString(16))];return we.join("")}f.equals=function($,me){return!$||!me?!1:f($).toRgbString()==f(me).toRgbString()},f.random=function(){return f.fromRatio({r:e(),g:e(),b:e()})};function u($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.s-=me/100,re.s=L(re.s),f(re)}function w($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.s+=me/100,re.s=L(re.s),f(re)}function E($){return f($).desaturate(100)}function _($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.l+=me/100,re.l=L(re.l),f(re)}function P($,me){me=me===0?0:me||10;var re=f($).toRgb();return re.r=g(0,A(255,re.r-C(255*-(me/100)))),re.g=g(0,A(255,re.g-C(255*-(me/100)))),re.b=g(0,A(255,re.b-C(255*-(me/100)))),f(re)}function R($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.l-=me/100,re.l=L(re.l),f(re)}function x($,me){var re=f($).toHsl(),ae=(re.h+me)%360;return re.h=ae<0?360+ae:ae,f(re)}function S($){var me=f($).toHsl();return me.h=(me.h+180)%360,f(me)}function v($){var me=f($).toHsl(),re=me.h;return[f($),f({h:(re+120)%360,s:me.s,l:me.l}),f({h:(re+240)%360,s:me.s,l:me.l})]}function T($){var me=f($).toHsl(),re=me.h;return[f($),f({h:(re+90)%360,s:me.s,l:me.l}),f({h:(re+180)%360,s:me.s,l:me.l}),f({h:(re+270)%360,s:me.s,l:me.l})]}function U($){var me=f($).toHsl(),re=me.h;return[f($),f({h:(re+72)%360,s:me.s,l:me.l}),f({h:(re+216)%360,s:me.s,l:me.l})]}function I($,me,re){me=me||6,re=re||30;var ae=f($).toHsl(),we=360/re,le=[f($)];for(ae.h=(ae.h-(we*me>>1)+720)%360;--me;)ae.h=(ae.h+we)%360,le.push(f(ae));return le}function N($,me){me=me||6;for(var re=f($).toHsv(),ae=re.h,we=re.s,le=re.v,te=[],Q=1/me;me--;)te.push(f({h:ae,s:we,v:le})),le=(le+Q)%1;return te}f.mix=function($,me,re){re=re===0?0:re||50;var ae=f($).toRgb(),we=f(me).toRgb(),le=re/100,te={r:(we.r-ae.r)*le+ae.r,g:(we.g-ae.g)*le+ae.g,b:(we.b-ae.b)*le+ae.b,a:(we.a-ae.a)*le+ae.a};return f(te)},f.readability=function($,me){var re=f($),ae=f(me);return(m.max(re.getLuminance(),ae.getLuminance())+.05)/(m.min(re.getLuminance(),ae.getLuminance())+.05)},f.isReadable=function($,me,re){var ae=f.readability($,me),we,le;le=!1,we=se(re);switch(we.level+we.size){case"AAsmall":case"AAAlarge":le=ae>=4.5;break;case"AAlarge":le=ae>=3;break;case"AAAsmall":le=ae>=7;break}return le},f.mostReadable=function($,me,re){var ae=null,we=0,le,te,Q,J;re=re||{},te=re.includeFallbackColors,Q=re.level,J=re.size;for(var ve=0;ve<me.length;ve++)le=f.readability($,me[ve]),le>we&&(we=le,ae=f(me[ve]));return f.isReadable($,ae,{level:Q,size:J})||!te?ae:(re.includeFallbackColors=!1,f.mostReadable($,["#fff","#000"],re))};var V=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=f.hexNames=D(V);function D($){var me={};for(var re in $)$.hasOwnProperty(re)&&(me[$[re]]=re);return me}function W($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function F($,me){ee($)&&($="100%");var re=he($);return $=A(me,g(0,parseFloat($))),re&&($=parseInt($*me,10)/100),m.abs($-me)<1e-6?1:$%me/parseFloat(me)}function L($){return A(1,g(0,$))}function K($){return parseInt($,16)}function ee($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function he($){return typeof $=="string"&&$.indexOf("%")!=-1}function fe($){return $.length==1?"0"+$:""+$}function Ce($){return $<=1&&($=$*100+"%"),$}function Te($){return m.round(parseFloat($)*255).toString(16)}function ce($){return K($)/255}var ye=function(){var $="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+$+")",ae="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",we="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ae),rgba:new RegExp("rgba"+we),hsl:new RegExp("hsl"+ae),hsla:new RegExp("hsla"+we),hsv:new RegExp("hsv"+ae),hsva:new RegExp("hsva"+we),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ee($){return!!ye.CSS_UNIT.exec($)}function ue($){$=$.replace(O,"").replace(b,"").toLowerCase();var me=!1;if(V[$])$=V[$],me=!0;else if($=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=ye.rgb.exec($))?{r:re[1],g:re[2],b:re[3]}:(re=ye.rgba.exec($))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=ye.hsl.exec($))?{h:re[1],s:re[2],l:re[3]}:(re=ye.hsla.exec($))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=ye.hsv.exec($))?{h:re[1],s:re[2],v:re[3]}:(re=ye.hsva.exec($))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=ye.hex8.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),a:ce(re[4]),format:me?"name":"hex8"}:(re=ye.hex6.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),format:me?"name":"hex"}:(re=ye.hex4.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),a:ce(re[4]+""+re[4]),format:me?"name":"hex8"}:(re=ye.hex3.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),format:me?"name":"hex"}:!1}function se($){var me,re;return $=$||{level:"AA",size:"small"},me=($.level||"AA").toUpperCase(),re=($.size||"small").toLowerCase(),me!=="AA"&&me!=="AAA"&&(me="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:me,size:re}}k.exports?k.exports=f:!(M=function(){return f}.call(z,o,z,k),M!==void 0&&(k.exports=M))})(Math)},aBPH:function(k,z,o){k.exports={wrap:"wrap___1eujs",modal:"modal___3NBln",title:"title___26WI_",path:"path___HzdTG",colorBlue:"colorBlue___3sufs",width240:"width240___DJhZ8",filePath:"filePath___13aFg"}},auZk:function(k,z,o){k.exports={flex_box_center:"flex_box_center___3qTxW",flex_space_between:"flex_space_between___3ea87",flex_box_vertical_center:"flex_box_vertical_center___3pRKY",flex_box_center_end:"flex_box_center_end___1knqW",flex_box_column:"flex_box_column___2jnF_",header:"header___1jftB","flex-center":"flex-center___2n5vX",title:"title___JYziX",schedule:"schedule___3dZqv",clickWarp:"clickWarp___Nw-Yv",num:"num___2kh_y",subject:"subject___3cFDa",btns:"btns___jk1p6",btn:"btn___2VKv5",simulate:"simulate___3PtJU",exit:"exit___3vlKF"}},bKvZ:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2dXfh",flex_space_between:"flex_space_between___2BhUa",flex_box_vertical_center:"flex_box_vertical_center___15ksZ",flex_box_center_end:"flex_box_center_end___3JbfY",flex_box_column:"flex_box_column___1raS-",level:"level___W4wcy",left:"left___1XwUw",container:"container___16wfS",title:"title___2mqN2",listWrap:"listWrap___U0Df3",list:"list___2YNXa",s3:"s3___25biP",s2:"s2___3z1Hl",listActive:"listActive___1B21p",os:"os___2rPuf",btns:"btns___3SwkA",btnsWrap:"btnsWrap___30oSS",icon:"icon___IUU5o",btn:"btn___GdOfs",d1:"d1___uGVV7",d2:"d2___12wBt",shrink:"shrink___tBEU_",elseShrink:"elseShrink___1vnuF",right:"right___27lwg",addIcon:"addIcon___3jWNX"}},bQjk:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return function(m){var O=M,b=O.lib,y=b.CipherParams,C=O.enc,A=C.Hex,g=O.format,e=g.Hex={stringify:function(f){return f.ciphertext.toString(A)},parse:function(f){var a=A.parse(f);return y.create({ciphertext:a})}}}(),M.format.Hex})},bT9E:function(k,z,o){"use strict";o.d(z,"a",function(){return m});var M=o("VTBJ");function m(O,b){var y=Object(M.a)({},O);return Array.isArray(b)&&b.forEach(function(C){delete y[C]}),y}},bUJZ:function(k,z){k.exports="data:image/png;base64,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"},biw7:function(k,z,o){"use strict";var M=o("q1tI"),m=o.n(M),O=M.createContext(null);z.a=O},c5Ni:function(k,z,o){},cFMs:function(k,z){k.exports="data:image/png;base64,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"},cRFk:function(k,z,o){k.exports=o.p+"static/RepositoryNoneData.828085a8.png"},ch0t:function(k,z,o){"use strict";o.r(z);var M=o("+L6B"),m=o("2/Rp"),O=o("T2oS"),b=o("W9HT"),y=o("14J3"),C=o("BMrR"),A=o("2qtc"),g=o("kLXV"),e=o("jCWc"),f=o("kPKH"),a=o("qVdP"),l=o("jsC+"),n=o("k1fw"),i=o("lUTK"),r=o("BvKs"),c=o("9og8"),h=o("miYZ"),d=o("tsqr"),s=o("5Dmo"),u=o("3S7+"),w=o("tJVT"),E=o("PpiC"),_=o("Znn+"),P=o("ZTPi"),R=o("WmNS"),x=o.n(R),S=o("q1tI"),v=o.n(S),T=o("B6bo"),U=o.n(T),I=o("Ty5D"),N=o("9kvl"),V=o("BoS7"),H=o("Sdc0"),D=o("oBTY"),W=o("ozfa"),F=o("MJZm"),L=o("P5Jw"),K=o("5NDa"),ee=o("5rEg"),he=o("y8nQ"),fe=o("Vl3Y"),Ce=o("aBPH"),Te=o.n(Ce),ce=function(ke){var nt=ke.shixunsDetail,rt=ke.globalSetting,De=ke.loading,Ke=ke.user,Ct=ke.dispatch,ft=ke.isRepository,xt=Object(E.a)(ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(I.h)(),ct=Object(I.i)(),Ut=Object(S.useState)({}),Ft=Object(w.a)(Ut,2),on=Ft[0],cn=Ft[1],ln=Object(S.useRef)(),kn=fe.a.useForm(),In=Object(w.a)(kn,1),sn=In[0],Gn=Object(S.useState)(""),Nn=Object(w.a)(Gn,2),Vn=Nn[0],Zn=Nn[1];Object(S.useEffect)(function(){xt.visible&&sn.resetFields()},[xt.visible]),Object(S.useEffect)(function(){var un=sessionStorage.getItem("pathArray");if(un){var $t=un.split(",").join("/"),An=$t.indexOf("/")===0?$t.substr(1):$t;Zn(An)}},[]),Object(S.useEffect)(function(){var un,$t;ln.current=(un=Mt.pathname)===null||un===void 0||(($t=un.split("/"))===null||$t===void 0)?void 0:$t[2]},[]);var xr=function(){var un=Object(c.a)(x.a.mark(function $t(){var An,Ur,Ar=arguments;return x.a.wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:return An=Ar.length>0&&Ar[0]!==void 0?Ar[0]:{},gr.next=3,Ct({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:An.commitMessage,content:"",path:(xt.defaultPath?xt.defaultPath+"/":"")+An.path+"/"+(An.file||".gitkeep"),secret_repository:ft?void 0:!0}});case 3:Ur=gr.sent,Ur!=null&&Ur.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),xt.onOK({path:(xt.defaultPath?xt.defaultPath+"/":"")+An.path+"/"+(An.file||".gitkeep"),name:An.path.split("/")[An.path.split("/").length-1]}),xt.onClose());case 5:case"end":return gr.stop()}},$t)}));return function(){return un.apply(this,arguments)}}(),dr=function(){var $t,An;N.d.push("/shixuns/".concat(ln.current,"/").concat(($t=Mt.pathname)===null||$t===void 0||((An=$t.split("/"))===null||An===void 0)?void 0:An[3]).concat(Vn?"/master/shixun_show/".concat(Vn):""))};return v.a.createElement(g.a,{width:"60%",centered:!0,visible:xt.visible,wrapClassName:Te.a.modal,onOk:function(){sn.submit()},onCancel:xt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(fe.a,{className:"mt10",form:sn,scrollToFirstError:!0,layout:"vertical",onFinish:xr,onChange:function(){var $t,An,Ur,Ar,Cr=Object(n.a)({},sn.getFieldsValue()),gr=Cr==null||(($t=Cr.path)===null||$t===void 0)?void 0:$t.split(""),pe=Cr==null||((An=Cr.file)===null||An===void 0)?void 0:An.split("");gr!=null&&(Ur=gr.filter(function(X){return X=="/"}))!==null&&Ur!==void 0&&Ur.length&&(Cr.path=Cr.path.substring(0,Cr.path.length-1)),pe!=null&&(Ar=pe.filter(function(X){return X=="/"}))!==null&&Ar!==void 0&&Ar.length&&(Cr.file=Cr.file.substring(0,Cr.path.length-1)),sn.setFieldsValue(Object(n.a)({},Cr)),cn(Cr)}},v.a.createElement(fe.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:Te.a.filePath},xt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.a.createElement(fe.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),v.a.createElement(fe.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"large"})),v.a.createElement(fe.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"}))))))},ye=Object(N.a)(function(bt){var ke=bt.shixunsDetail,nt=bt.loading,rt=bt.globalSetting,De=bt.user;return{shixunsDetail:ke,globalSetting:rt,user:De,loading:nt.models.index}})(ce),Ee=o("7ahc"),ue=function(ke){var nt=ke.shixunsDetail,rt=ke.globalSetting,De=ke.loading,Ke=ke.user,Ct=ke.dispatch,ft=ke.isRepository,xt=Object(E.a)(ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(I.h)(),ct=Object(I.i)(),Ut=Object(S.useState)({}),Ft=Object(w.a)(Ut,2),on=Ft[0],cn=Ft[1],ln=Object(S.useRef)(),kn=fe.a.useForm(),In=Object(w.a)(kn,1),sn=In[0],Gn=Object(S.useState)(""),Nn=Object(w.a)(Gn,2),Vn=Nn[0],Zn=Nn[1];Object(S.useEffect)(function(){xt.visible&&sn.resetFields()},[xt.visible]),Object(S.useEffect)(function(){var un=sessionStorage.getItem("pathArray");if(un){var $t=un.split(",").join("/"),An=$t.indexOf("/")===0?$t.substr(1):$t;Zn(An)}},[]),Object(S.useEffect)(function(){var un,$t;ln.current=(un=Mt.pathname)===null||un===void 0||(($t=un.split("/"))===null||$t===void 0)?void 0:$t[2]},[]);var xr=function(){var un=Object(c.a)(x.a.mark(function $t(){var An,Ur,Ar=arguments;return x.a.wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:return An=Ar.length>0&&Ar[0]!==void 0?Ar[0]:{},gr.next=3,Ct({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:An.commitMessage,content:An.codeMirror,path:(xt.defaultPath?xt.defaultPath+"/":"")+An.path,secret_repository:ft?void 0:!0}});case 3:Ur=gr.sent,Ur!=null&&Ur.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),xt.onOK({path:(xt.defaultPath?xt.defaultPath+"/":"")+An.path,name:An.path.split("/")[An.path.split("/").length-1]}),xt.onClose());case 5:case"end":return gr.stop()}},$t)}));return function(){return un.apply(this,arguments)}}(),dr=function(){var $t,An;N.d.push("/shixuns/".concat(ln.current,"/").concat(($t=Mt.pathname)===null||$t===void 0||((An=$t.split("/"))===null||An===void 0)?void 0:An[3]).concat(Vn?"/master/shixun_show/".concat(Vn):""))};return v.a.createElement(g.a,{width:"60%",visible:xt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){sn.submit()},onCancel:xt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(fe.a,{className:"mt10",form:sn,scrollToFirstError:!0,layout:"vertical",onFinish:xr,onChange:function(){var $t,An,Ur=Object(n.a)({},sn.getFieldsValue()),Ar=Ur==null||(($t=Ur.path)===null||$t===void 0)?void 0:$t.split("");(Ar==null||((An=Ar.filter(function(Cr){return Cr=="/"}))===null||An===void 0)?void 0:An.length)>1&&(Ur.path=Ur.path.substring(0,Ur.path.length-1)),sn.setFieldsValue(Object(n.a)({},Ur)),cn(Ur)}},v.a.createElement(fe.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:Te.a.filePath},xt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.a.createElement(fe.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),v.a.createElement(fe.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"})),v.a.createElement("div",{className:"mt10 mb20"},v.a.createElement(fe.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},v.a.createElement(Ee.a,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))},se=Object(N.a)(function(bt){var ke=bt.shixunsDetail,nt=bt.loading,rt=bt.globalSetting,De=bt.user;return{shixunsDetail:ke,globalSetting:rt,user:De,loading:nt.models.index}})(ue),$=function(ke){var nt=ke.shixunsDetail,rt=ke.globalSetting,De=ke.loading,Ke=ke.user,Ct=ke.dispatch,ft=ke.isRepository,xt=Object(E.a)(ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(I.h)(),ct=Object(I.i)(),Ut=Object(S.useState)({}),Ft=Object(w.a)(Ut,2),on=Ft[0],cn=Ft[1],ln=Object(S.useRef)(),kn=fe.a.useForm(),In=Object(w.a)(kn,1),sn=In[0],Gn=Object(S.useState)(""),Nn=Object(w.a)(Gn,2),Vn=Nn[0],Zn=Nn[1],xr=Object(S.useState)(""),dr=Object(w.a)(xr,2),un=dr[0],$t=dr[1];Object(S.useEffect)(function(){xt.visible&&sn.resetFields()},[xt.visible]),Object(S.useEffect)(function(){var Ar=xt.defaultPath.split("/");Ar.length===1?(Zn(""),$t(xt.defaultPath)):($t(Ar.pop()),Zn(Ar.join("/")+"/"))},[xt.defaultPath]),Object(S.useEffect)(function(){var Ar,Cr;ln.current=(Ar=Mt.pathname)===null||Ar===void 0||((Cr=Ar.split("/"))===null||Cr===void 0)?void 0:Cr[2]},[]);var An=function(){var Ar=Object(c.a)(x.a.mark(function Cr(){var gr,pe,X=arguments;return x.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return gr=X.length>0&&X[0]!==void 0?X[0]:{},oe.next=3,Ct({type:"shixunsDetail/moveGitFile",payload:{id:ct.id,from:xt.defaultPath,to:Vn+gr.path,message:gr.commitMessage||"".concat(xt.defaultPath," rename to ").concat(Vn).concat(gr.path," "),secret_repository:ft}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),xt.onOK({path:gr.path,name:gr.path}),xt.onClose());case 5:case"end":return oe.stop()}},Cr)}));return function(){return Ar.apply(this,arguments)}}(),Ur=function(){var Cr,gr;N.d.push("/shixuns/".concat(ln.current,"/").concat((Cr=Mt.pathname)===null||Cr===void 0||((gr=Cr.split("/"))===null||gr===void 0)?void 0:gr[3]).concat(Vn?"/master/shixun_show/".concat(Vn):""))};return v.a.createElement(g.a,{width:"40%",visible:xt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){sn.submit()},onCancel:xt.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(fe.a,{className:"mt10",form:sn,scrollToFirstError:!0,layout:"vertical",onFinish:An,onChange:function(){var Cr,gr,pe=Object(n.a)({},sn.getFieldsValue()),X=pe==null||((Cr=pe.path)===null||Cr===void 0)?void 0:Cr.split("");(X==null||((gr=X.filter(function(q){return q=="/"}))===null||gr===void 0)?void 0:gr.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),sn.setFieldsValue(Object(n.a)({},pe)),cn(pe)}},v.a.createElement(fe.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,{flex:"1"},v.a.createElement(fe.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:un}))))),v.a.createElement(fe.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},v.a.createElement(ee.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(xt.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(bt){var ke=bt.shixunsDetail,nt=bt.loading,rt=bt.globalSetting,De=bt.user;return{shixunsDetail:ke,globalSetting:rt,user:De,loading:nt.models.index}})($),re=o("DZo9"),ae=o("8z0m"),we=o("m3rI"),le=o("8j3D"),te=o("RC3E"),Q=o.n(te),J=ae.a.Dragger,ve=function(ke){var nt=ke.shixunsDetail,rt=ke.globalSetting,De=ke.loading,Ke=ke.user,Ct=ke.dispatch,ft=ke.isRepository,xt=Object(E.a)(ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(I.h)(),ct=Object(I.i)(),Ut=Object(S.useState)({}),Ft=Object(w.a)(Ut,2),on=Ft[0],cn=Ft[1],ln=Object(S.useRef)(),kn=fe.a.useForm(),In=Object(w.a)(kn,1),sn=In[0],Gn=Object(S.useState)([]),Nn=Object(w.a)(Gn,2),Vn=Nn[0],Zn=Nn[1],xr=Object(S.useState)(),dr=Object(w.a)(xr,2),un=dr[0],$t=dr[1],An;Object(S.useEffect)(function(){xt.visible&&(sn.resetFields(),Zn([]))},[xt.visible]),Object(S.useEffect)(function(){ln.current=ct.id},[]),Object(S.useEffect)(function(){var X=sessionStorage.getItem("pathArray");if(X){var q=X.split(",").join("/"),oe=q.indexOf("/")===0?q.substr(1):q;$t(oe)}},[]);var Ur=function(q){if(An=q.file.name,q.file.status==="done"||q.file.status==="uploading"){var oe,Re,de;if(Zn(q.fileList),!q.file.response)return;if(((oe=q.file.response)===null||oe===void 0?void 0:oe.status)===0){d.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Zn(Vn.filter(function(ot){return ot.uid!==q.file.uid})),((Re=q.file.response)===null||Re===void 0?void 0:Re.message)&&d.b.info((de=q.file.response)===null||de===void 0?void 0:de.message)}},Ar=function(){var X=Object(c.a)(x.a.mark(function q(oe){var Re;return x.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(oe.response){ot.next=3;break}return d.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),ot.abrupt("return");case 3:return ot.next=5,Ct({type:"shixunsDetail/deleteGitFile",payload:{id:ct.id,path:un?"".concat(un,"/").concat(oe.name):oe.name,message:sn.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(un?"".concat(un,"/").concat(oe.name):oe.name),secret_repository:ft?null:!0}});case 5:Re=ot.sent,Re.status===0&&(Zn(Vn.filter(function(Qt){return Qt.uid!==oe.uid})),d.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return ot.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),Cr={height:300,multiple:!0,withCredentials:!0,data:function(){var X=Object(c.a)(x.a.mark(function oe(){return x.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",new Promise(function(){var ot=Object(c.a)(x.a.mark(function Qt(Ln,Jn){return x.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:setTimeout(Object(c.a)(x.a.mark(function fn(){var Br,ra;return x.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:return rr.next=2,sn.getFieldsValue();case 2:Br=rr.sent,ra=Object(n.a)(Object(n.a)({},{path:xt.defaultPath?xt.defaultPath:"",message:on.commitMessage||"\u4E0A\u4F20\u4E86".concat(An)}),ft?{}:{secret_repository:!0}),Ln(ra);case 5:case"end":return rr.stop()}},fn)})),200);case 1:case"end":return En.stop()}},Qt)}));return function(Qt,Ln){return ot.apply(this,arguments)}}()));case 1:case"end":return de.stop()}},oe)}));function q(){return X.apply(this,arguments)}return q}(),fileList:Vn,method:"post",action:"".concat(we.a.API_SERVER,"/api/shixuns/").concat(ln.current,"/upload_git_file.json"),onChange:Ur,onRemove:Ar,beforeUpload:function(q){An=q.name}},gr=function(){var X=Object(c.a)(x.a.mark(function q(oe){return x.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.next=2,sn.validateFields();case 2:xt.onClose(),xt.onOK({path:xt.defaultPath}),pe();case 5:case"end":return de.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),pe=function(){var q,oe;N.d.push("/shixuns/".concat(ln.current,"/").concat((q=Mt.pathname)===null||q===void 0||((oe=q.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(un?"/master/shixun_show/".concat(un):""))};return v.a.createElement(g.a,{visible:xt.visible,onOk:gr,centered:!0,onCancel:xt.onClose,width:"70%"},v.a.createElement("section",{className:Q.a.bg},v.a.createElement("div",{className:Q.a.wrap},v.a.createElement("div",{className:Q.a.title},"\u4E0A\u4F20\u6587\u4EF6"),v.a.createElement(fe.a,{className:"mt10",form:sn,scrollToFirstError:!0,layout:"vertical",onFinish:gr,onValuesChange:function(){return cn(Object(n.a)({},sn.getFieldsValue()))}},v.a.createElement(fe.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},v.a.createElement(ee.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),v.a.createElement(fe.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},v.a.createElement(J,Cr,v.a.createElement("div",null,v.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(Q.a.colorBlue)})),v.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",v.a.createElement("span",{className:"".concat(Q.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),v.a.createElement(le.a,{onFinish:function(q){return $t(q)}})))},_e=Object(N.a)(function(bt){var ke=bt.shixunsDetail,nt=bt.loading,rt=bt.globalSetting,De=bt.user;return{shixunsDetail:ke,globalSetting:rt,user:De,loading:nt.models.index}})(ve),Oe=o("Bbdw"),Xe=o.n(Oe),tt=o("HpfO"),lt=o.n(tt),dt=function(ke){var nt=ke.shixunsDetail,rt=ke.globalSetting,De=ke.loading,Ke=ke.dispatch,Ct=ke.title,ft=ke.pathList,xt=ft===void 0?[]:ft,Mt=ke.showInputPath,ct=Mt===void 0?!1:Mt,Ut=ke.isMergeSelectFile,Ft=Ut===void 0?!1:Ut,on=ke.onFinish,cn=on===void 0?function(){}:on,ln=fe.a.useForm(),kn=Object(w.a)(ln,1),In=kn[0],sn=Object(I.i)(),Gn=Object(I.h)(),Nn=Object(S.useRef)(),Vn=Object(S.useState)(""),Zn=Object(w.a)(Vn,2),xr=Zn[0],dr=Zn[1],un=Object(S.useState)(""),$t=Object(w.a)(un,2),An=$t[0],Ur=$t[1],Ar=Object(S.useState)([]),Cr=Object(w.a)(Ar,2),gr=Cr[0],pe=Cr[1],X=Object(S.useState)([]),q=Object(w.a)(X,2),oe=q[0],Re=q[1];Object(S.useEffect)(function(){var Zt,En;Nn.current=((Zt=Gn.pathname)===null||Zt===void 0||((En=Zt.split("/"))===null||En===void 0)?void 0:En[3])==="repository"},[]),Object(S.useEffect)(function(){if(nt.actionTabs.key!=="Repository-SelectFilePath")return;var Zt=xt.join("/"),En=[];xt.map(function(fn,Br){Br===0?En.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(fn),path:Zt}):En.push({val:"/".concat(fn),path:Zt})}),pe(En),dr(Zt),Ur(Zt),de(Zt)},[nt.actionTabs.key]);var de=function(){var Zt=Object(c.a)(x.a.mark(function En(fn){var Br;return x.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Ke({type:Nn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:sn.id,path:fn}});case 2:Br=oa.sent,Br&&Re(Br.trees||[]);case 4:case"end":return oa.stop()}},En)}));return function(fn){return Zt.apply(this,arguments)}}(),ot=function(En){var fn=xr;En.type==="tree"&&(gr.length?gr.push({val:"/".concat(En.name),path:En.name}):gr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(En.name),path:En.name}),pe(gr),fn=xr?"".concat(xr,"/").concat(En.name):En.name,dr(fn)),de(fn)},Qt=function(En,fn){var Br=gr.filter(function(oa,rr){return rr<=fn});pe(Br);var ra=Br.filter(function(oa,rr){return rr!==0}).map(function(oa){return oa.val}).join("").substr(1);dr(ra),de(ra)},Ln=function(){var Zt=Object(c.a)(x.a.mark(function En(){var fn,Br,ra;return x.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(fn=In==null?void 0:In.getFieldsValue(),Br=xr?"".concat(xr).concat(fn!=null&&fn.name?"/".concat(fn==null?void 0:fn.name):""):fn==null?void 0:fn.name,!Ft){rr.next=6;break}return cn(Br),Jn(),rr.abrupt("return");case 6:if(!ct){rr.next=16;break}return rr.next=9,In.validateFields();case 9:return rr.next=11,Ke({type:"shixunsDetail/uploadGitFolder",payload:Object(n.a)(Object(n.a)({},{id:sn.id,path:Br}),Nn.current?{}:{secret_repository:!0})});case 11:ra=rr.sent,cn(An),ra.status===0&&d.b.info("\u65B0\u5EFA\u6210\u529F"),rr.next=18;break;case 16:cn(Br),d.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Jn();case 19:case"end":return rr.stop()}},En)}));return function(){return Zt.apply(this,arguments)}}(),Jn=function(){Ke({type:"shixunsDetail/setActionTabs",payload:{}}),In.resetFields()};return v.a.createElement(g.a,{centered:!0,title:Ct||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:nt.actionTabs.key==="Repository-SelectFilePath",onOk:Ln,onCancel:Jn},v.a.createElement("div",{className:lt.a.wrap},v.a.createElement("div",{className:lt.a.content},v.a.createElement("div",{className:lt.a.mainPathWrap},!!(gr!=null&&gr.length)&&gr.map(function(Zt,En){return v.a.createElement("a",{key:En,onClick:function(){return Qt(Zt,En)}},Zt.val)})),!!(oe!=null&&oe.length)&&oe.map(function(Zt,En){return Zt.type==="tree"&&v.a.createElement("a",{key:En,onClick:function(){return ot(Zt)}},v.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(lt.a.colorBlue)}),Zt.name)})),v.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),v.a.createElement("div",{className:"mt5 mb5"},xr),ct&&v.a.createElement(fe.a,{form:In,scrollToFirstError:!0,className:"mt20"},v.a.createElement(fe.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},vt=Object(N.a)(function(bt){var ke=bt.shixunsDetail,nt=bt.loading,rt=bt.globalSetting;return{shixunsDetail:ke,globalSetting:rt,loading:nt.models.index}})(dt),_t=o("GZ0F"),Ye=o("8Skl"),je=o("HBuW"),ht=o("1vsH"),Bt=o("NLgs"),Et=o("lzim"),Pt=F.a.DirectoryTree,Ze=function(ke){var nt,rt,De,Ke,Ct,ft,xt,Mt=ke.shixunsDetail,ct=ke.globalSetting,Ut=ke.loading,Ft=ke.user,on=ke.activeKey,cn=ke.dispatch,ln=ke.practiceSetting,kn=ke.isRepository,In=ke.treeData,sn=ke.setTreeData,Gn=Object(E.a)(ke,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Nn=Object(I.i)(),Vn=Object(I.h)(),Zn=Object(S.useState)(),xr=Object(w.a)(Zn,2),dr=xr[0],un=xr[1],$t=Object(S.useState)(!1),An=Object(w.a)($t,2),Ur=An[0],Ar=An[1],Cr=Object(S.useState)(!1),gr=Object(w.a)(Cr,2),pe=gr[0],X=gr[1],q=Object(S.useState)(!1),oe=Object(w.a)(q,2),Re=oe[0],de=oe[1],ot=Object(S.useState)(!1),Qt=Object(w.a)(ot,2),Ln=Qt[0],Jn=Qt[1],Zt=Object(S.useState)(""),En=Object(w.a)(Zt,2),fn=En[0],Br=En[1],ra=Object(S.useState)([]),oa=Object(w.a)(ra,2),rr=oa[0],Ba=oa[1],Ea=Object(S.useState)([]),ca=Object(w.a)(Ea,2),Ka=ca[0],Ta=ca[1],Ja=Object(S.useState)([]),Ua=Object(w.a)(Ja,2),li=Ua[0],oi=Ua[1],fa=Object(S.useState)(!1),ma=Object(w.a)(fa,2),la=ma[0],xe=ma[1],st=Object(S.useState)(),Rt=Object(w.a)(st,2),Ot=Rt[0],Ht=Rt[1],Nt=Object(S.useState)(),Vt=Object(w.a)(Nt,2),nn=Vt[0],xn=Vt[1],_n=Object(S.useState)(""),Bn=Object(w.a)(_n,2),Dn=Bn[0],an=Bn[1],Mn=Object(S.useState)(),yn=Object(w.a)(Mn,2),Fn=yn[0],Pn=yn[1],qn=Object(S.useState)(!1),pr=Object(w.a)(qn,2),Fr=pr[0],wn=pr[1];Object(S.useEffect)(function(){sn([]),Wn(""),localStorage.warehouseHideTip||xe(!0)},[Vn.pathname,kn]);var Yt=function(){var ir=Object(c.a)(x.a.mark(function Kt(){var qt,Jt,Qn=arguments;return x.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return qt=Qn.length>0&&Qn[0]!==void 0?Qn[0]:"",jn.next=3,Object(je.Gb)({id:Nn.id,secret_dir_path:qt});case 3:Jt=jn.sent,Jt&&Pn(qt);case 5:case"end":return jn.stop()}},Kt)}));return function(){return ir.apply(this,arguments)}}(),mn=function(Kt){var qt;return v.a.createElement(r.a,{className:Xe.a.menu,onClick:function(Qn){Br(Kt.path||"");switch(Qn.key){case"1":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Ar(!0);break;case"2":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),de(!0);break;case"3":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Jn(!0);break;case"4":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),X(!0);break;case"5":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Rr(Kt.path,Kt.name,Kt);break;case"6":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Ir(Kt);break}}},(Kt.type==="topTree"||Kt.type==="tree")&&v.a.createElement(r.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Kt.type==="topTree"||Kt.type==="tree")&&v.a.createElement(r.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Kt.type==="topTree"||Kt.type==="tree")&&v.a.createElement(r.a.Item,{key:"3"},"\u4E0A\u4F20"),Kt.type!=="topTree"&&Kt.type!=="tree"&&(Mt==null||((qt=Mt.detail)===null||qt===void 0)?void 0:qt.public)<2&&v.a.createElement(r.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Kt.type!=="topTree"&&v.a.createElement(L.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(kn?"":"secret/").concat(Kt==null?void 0:Kt.path),onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(r.a.Item,{key:"6"},v.a.createElement(v.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Kt.type!=="topTree"&&v.a.createElement(r.a.Item,{key:"5"},"\u5220\u9664"))},Rn=function(Kt,qt){return Kt.map(function(Jt){return qt==""?Jt.path=qt+Jt.name:Jt.path=qt+"/"+Jt.name,Jt.title=v.a.createElement(C.a,{className:"font14"},v.a.createElement(f.a,{flex:"1"},v.a.createElement(C.a,null,v.a.createElement(f.a,{flex:"20px"},Jt.type==="blob"&&v.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),v.a.createElement(f.a,{flex:"1"},v.a.createElement("span",{className:" multi_ellipsis1"},Jt.name)))),v.a.createElement(f.a,null,(Jt.type==="blob"||Jt.type==="tree")&&v.a.createElement(l.a,{overlay:mn(Jt),className:Xe.a.ellipsis},v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Jt.disableCheckbox=dr&&dr!==Jt.name,Jt.className=Jt.type==="tree"?Xe.a.pl23:"",Jt.checkable=Jt.type!=="tree",Jt.isLeaf=Jt.type!=="tree",Jt.children=Jt.type==="tree"&&[],Jt.key=Jt.path,Jt})},en=function(Kt){cn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Kt}})},Tn=function(){var ir=Object(c.a)(x.a.mark(function Kt(qt,Jt){var Qn;return x.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return Qn=qt.split("/"),jn.next=3,Wn(fn);case 3:setTimeout(function(){en(qt),rr=[Qn[0]||""],Ka=[qt],Ta(Object(D.a)(Ka)),Ba(Object(D.a)(rr))},150);case 4:case"end":return jn.stop()}},Kt)}));return function(qt,Jt){return ir.apply(this,arguments)}}(),bn=function(Kt,qt){if(qt=="")In=Object(D.a)(Kt),sn(Object(D.a)(Kt));else{var Jt=Un(In,qt,Kt);In=Jt,sn(Object(D.a)(Jt))}};function Un(ir,Kt,qt){return ir.map(function(Jt){return Jt.key===Kt?(Jt.children=Object(D.a)(qt),Object(n.a)({},Jt)):Jt.children?Object(n.a)(Object(n.a)({},Jt),{},{children:Un(Jt.children,Kt,qt)}):Jt})}var Wn=function(){var ir=Object(c.a)(x.a.mark(function Kt(){var qt,Jt,Qn,nr,jn,or=arguments;return x.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return qt=or.length>0&&or[0]!==void 0?or[0]:"",lr.next=3,cn({type:kn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Nn.id,path:qt}});case 3:return Jt=lr.sent,Jt&&((Qn=Jt.trees)!==null&&Qn!==void 0&&Qn.length?(jn=Rn(Object(D.a)(Jt.trees),qt),bn(jn,qt),oi(Jt.trees||[]),xn(qt||""),console.log("handleGetRepository:",jn,qt),setTimeout(function(){return console.log(In,Jt.trees,qt,999999)},2e3)):qt==""&&sn([]),Ht(((nr=Jt.commits)===null||nr===void 0?void 0:nr[0])||{})),lr.abrupt("return",Jt);case 6:case"end":return lr.stop()}},Kt)}));return function(){return ir.apply(this,arguments)}}(),sr=function(){var ir=Object(c.a)(x.a.mark(function Kt(qt){return x.a.wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Qn.abrupt("return",new Promise(function(){var nr=Object(c.a)(x.a.mark(function jn(or,fr){return x.a.wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:return qt.children.length&&or(),an(qt.path),qr.next=4,Wn(qt.path);case 4:or();case 5:case"end":return qr.stop()}},jn)}));return function(jn,or){return nr.apply(this,arguments)}}()));case 1:case"end":return Qn.stop()}},Kt)}));return function(qt){return ir.apply(this,arguments)}}(),tr=function(){var ir=Object(c.a)(x.a.mark(function Kt(qt,Jt){var Qn,nr;return x.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:if(console.log("handleSelectTree",qt,Jt.nativeEvent.target.nodeName,Jt),Qn=function(){en(Jt.node.path),qt=[Jt.node.path],Ta(Object(D.a)(qt))},!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="LI"||Jt.nativeEvent.target.nodeName==="I")){or.next=4;break}return or.abrupt("return");case 4:Jt.node.type==="blob"&&(ln!=null&&(nr=ln.sideBar)!==null&&nr!==void 0&&nr.confirmLeave?g.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Qn(),cn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Qn());case 5:case"end":return or.stop()}},Kt)}));return function(qt,Jt){return ir.apply(this,arguments)}}(),Rr=function(Kt,qt,Jt){g.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Jt.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Qn=Object(c.a)(x.a.mark(function jn(){var or,fr,lr;return x.a.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:return ur.next=2,cn({type:"shixunsDetail/deleteGitFile",payload:{id:Nn.id,path:Kt,message:"\u5220\u9664".concat(Kt),secret_repository:kn?null:!0}});case 2:if(or=ur.sent,fr=Kt.split("/"),!((or==null?void 0:or.status)===0)){ur.next=20;break}return d.b.info("\u5220\u9664\u6210\u529F"),fr.splice(fr.length-1,1),ur.next=9,Wn(fr.length>1?fr.join("/"):"");case 9:if(lr=ur.sent,!(lr!=null&&lr.trees)){ur.next=13;break}ur.next=16;break;case 13:return fr.splice(fr.length-1,1),ur.next=16,Wn(fr.length>1?fr.join("/"):"");case 16:return en(""),ur.abrupt("return",!0);case 20:(or==null?void 0:or.status)===-3&&g.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:v.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",Kt,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u524D\u5F80\u4FEE\u6539",cancelText:"\u53D6\u6D88",onOk:function(){window.location.href="/shixuns/".concat(Nn.id,"/edit/").concat(or==null?void 0:or.message,"/tab=2")}});case 21:case"end":return ur.stop()}},jn)}));function nr(){return Qn.apply(this,arguments)}return nr}()})},Ir=function(Kt){console.log(Kt,"item")},$n=function(){var ir=Object(c.a)(x.a.mark(function Kt(qt,Jt){return x.a.wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:if(console.log("handleExpand",Jt),!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="path"||Jt.nativeEvent.target.nodeName==="LI")){nr.next=5;break}return nr.abrupt("return",!0);case 5:return nr.next=7,sr(Jt.node);case 7:rr.includes(Jt.node.path)?rr.splice(rr.indexOf(Jt.node.path),1):rr.push(Jt.node.path);case 8:Ba(Object(D.a)(rr));case 9:case"end":return nr.stop()}},Kt)}));return function(qt,Jt){return ir.apply(this,arguments)}}(),Dr=function(){xe(!1),localStorage.warehouseHideTip=!0},vr=function(){var ir=Object(c.a)(x.a.mark(function Kt(qt){var Jt,Qn,nr,jn,or;return x.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:nr="",lr.t0=kn,lr.next=lr.t0===!0?4:lr.t0===!1?9:11;break;case 4:return nr="\u5F00\u542F\u7248\u672C\u5E93",jn="\u5F00\u542F",or="\u4E0D\u5F00\u542F",Qn=v.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),lr.abrupt("break",11);case 9:return Mt!=null&&(Jt=Mt.detail)!==null&&Jt!==void 0&&Jt.secret_repository?(nr="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",jn="\u786E\u5B9A",or="\u53D6\u6D88",Qn=v.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):(nr="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",jn="\u4E0D\u4F7F\u7528",or="\u4F7F\u7528",Qn=v.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),lr.abrupt("break",11);case 11:if(!(!kn&&Object(Bt.b)(cn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){lr.next=13;break}return lr.abrupt("return");case 13:g.a.confirm({title:nr,okText:jn,cancelText:or,content:Qn,onOk:function(){var ur;Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",nr]),!kn&&!(Mt!=null&&(ur=Mt.detail)!==null&&ur!==void 0&&ur.secret_repository)||zr(qt)},onCancel:function(){var ur;!kn&&!(Mt!=null&&(ur=Mt.detail)!==null&&ur!==void 0&&ur.secret_repository)&&zr(qt)}});case 14:case"end":return lr.stop()}},Kt)}));return function(qt){return ir.apply(this,arguments)}}(),zr=function(){var ir=Object(c.a)(x.a.mark(function Kt(qt){return x.a.wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(!kn){Qn.next=6;break}return Qn.next=3,Object(je.r)(Object(n.a)({},Nn));case 3:cn({type:"practiceSetting/getCommonData",payload:Object(n.a)({},Nn)}),Qn.next=8;break;case 6:return Qn.next=8,Object(je.t)(Object(n.a)(Object(n.a)({},Nn),{},{is_secret_repository:qt}));case 8:Wn(),cn({type:"shixunsDetail/getShixunsDetail",payload:{id:Nn.id}});case 10:case"end":return Qn.stop()}},Kt)}));return function(qt){return ir.apply(this,arguments)}}(),Lr=function(Kt){console.log(Kt)},$r=function(){var ir=Object(c.a)(x.a.mark(function Kt(qt){var Jt,Qn,nr,jn,or,fr,lr,qr,ur,da,Yr;return x.a.wrap(function(wr){for(;;)switch(wr.prev=wr.next){case 0:if(console.log(qt),Jt=qt.node.key,Qn=qt.dragNode.key,nr=qt.node.pos.split("-"),jn=qt.dropPosition-Number(nr[nr.length-1]),!(qt.dragNode.type==="tree")){wr.next=8;break}return d.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),wr.abrupt("return");case 8:if(!(qt.node.type!=="tree")){wr.next=11;break}return d.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),wr.abrupt("return");case 11:return wr.next=13,cn({type:"shixunsDetail/moveGitFile",payload:{id:Nn.id,from:qt.dragNode.path,to:qt.node.path+"/"+qt.dragNode.name,message:"".concat(qt.dragNode.path," move to ").concat(qt.node.path+"/"+qt.dragNode.name," ")}});case 13:if(or=wr.sent,!(or.status===0)){wr.next=26;break}return en(""),wr.next=18,Wn("");case 18:fr=0;case 19:if(!(fr<rr.length)){wr.next=26;break}if(!(rr[fr]!="")){wr.next=23;break}return wr.next=23,Wn(rr[fr]);case 23:fr++,wr.next=19;break;case 26:return wr.abrupt("return");case 32:case"end":return wr.stop()}},Kt)}));return function(qt){return ir.apply(this,arguments)}}();return v.a.createElement("section",{className:Xe.a.bg},v.a.createElement("div",{className:Xe.a.contentbg},v.a.createElement("div",{className:Xe.a.wrap},v.a.createElement(C.a,{className:Xe.a.gitCode},v.a.createElement(f.a,{flex:"1"},v.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),kn?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",v.a.createElement(H.a,{className:kn&&Mt!==null&&Mt!==void 0&&(nt=Mt.detail)!==null&&nt!==void 0&&nt.init_repository?"hide":"ml10",checked:kn?Mt==null||((De=Mt.detail)===null||De===void 0)?void 0:De.init_repository:Mt==null||((rt=Mt.detail)===null||rt===void 0)?void 0:rt.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:vr})),v.a.createElement(f.a,null,v.a.createElement(l.a,{overlay:mn({type:"topTree"}),className:"current"},v.a.createElement(u.a,{visible:la,title:v.a.createElement("div",{className:"font16"},v.a.createElement(_t.a,{style:{position:"relative",left:-35},onClick:function(){return Dr()}}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",v.a.createElement("span",{onClick:function(){return Dr()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:Xe.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},kn&&(Mt==null||((Ke=Mt.detail)===null||Ke===void 0)?void 0:Ke.init_repository)&&v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!kn&&(Mt==null||((Ct=Mt.detail)===null||Ct===void 0)?void 0:Ct.secret_repository)&&v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!In.length&&!kn&&v.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},v.a.createElement("div",null,"\u5B9E\u8BAD\u8BC4\u6D4B\u7684\u65F6\u5019\uFF0C\u7CFB\u7EDF\u4F1A\u4E34\u65F6\u5C06\u79C1\u5BC6\u4EE3\u7801\u5E93\u79FB\u52A8\u666E\u901A\u4EE3\u7801\u5E93\u7684secret\u76EE\u5F55\u4E0B\u9762\uFF0C\u8BC4\u6D4B\u7ED3\u675F\u4F1A\u6E05\u7A7Asecret\u76EE\u5F55\u5185\u5BB9\u3002\u5982\u679C\u79C1\u5BC6\u4EE3\u7801\u5E93\u4E2D\u5B58\u5728\u6587\u4EF6src/test.sh\uFF0C\u5728\u666E\u901A\u4EE3\u7801\u5E93\u8C03\u7528\u8BE5\u6587\u4EF6\u5219\u4F7F\u7528\u8DEF\u5F84\uFF1Asecret/src/test.sh")),In.length?v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:Xe.a.content},on==="1"&&v.a.createElement("div",{className:Xe.a.tips},"\u63D0\u793A\uFF1A",v.a.createElement("br",null),'\u4EE3\u7801\u8FD0\u884C\u5728\u670D\u52A1\u5668/data/workspace/myshixun/\u4E0B\uFF0C\u5982\u679C\u4EE3\u7801 \u9700\u8981\u7528\u5230\u6587\u4EF6\u8DEF\u5F84\u65F6\uFF0C\u60A8\u5C06\u9F20\u6807\u79FB\u5165\u4ED3\u5E93\u6587\u4EF6\u6216\u76EE\u5F55\u53F3\u4FA7\u7684"..." \u56FE\u6807\uFF0C\u9009\u62E9\u590D\u5236\u8DEF\u5F84\u5F97\u5230\u6587\u4EF6\u7684\u7EDD\u5BF9\u8DEF\u5F84\u3002'),v.a.createElement(Pt,{disabled:!!Ut.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:In,switcherIcon:v.a.createElement(Ye.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:$n,expandedKeys:rr,selectedKeys:Ka,onSelect:tr,draggable:!0,onDragEnter:Lr,onDrop:$r,allowDrop:function(Kt){var qt=Kt.dropNode,Jt=Kt.dropPosition;return!1}}))):"",!In.length&&kn&&(Mt==null||((ft=Mt.detail)===null||ft===void 0)?void 0:ft.init_repository)&&v.a.createElement(We,null),!In.length&&!kn&&(Mt==null||((xt=Mt.detail)===null||xt===void 0)?void 0:xt.secret_repository)&&v.a.createElement(We,null))),v.a.createElement(me,{visible:pe,defaultPath:fn,onClose:function(){return X(!1)},isRepository:!kn,onOK:function(){var ir=Object(c.a)(x.a.mark(function Kt(qt){var Jt;return x.a.wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:return Jt=fn.split("/"),Jt.pop(),nr.next=4,Wn(Jt.join("/"));case 4:en("");case 5:case"end":return nr.stop()}},Kt)}));return function(Kt){return ir.apply(this,arguments)}}()}),v.a.createElement(se,{visible:Ur,defaultPath:fn,onClose:function(){return Ar(!1)},isRepository:kn,onOK:function(Kt){Tn(Kt.path,Kt.name)}}),v.a.createElement(ye,{visible:Re,defaultPath:fn,onClose:function(){return de(!1)},isRepository:kn,onOK:function(Kt){Tn(Kt.path,Kt.name)}}),v.a.createElement(_e,{defaultPath:fn,visible:Ln,isRepository:kn,onClose:function(){return Jn(!1)},onOK:function(){var ir=Object(c.a)(x.a.mark(function Kt(qt){var Jt;return x.a.wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:return Jt=fn.split("/"),nr.next=3,Wn(fn);case 3:rr=[Jt[0]||""],Ka=[fn],Ta(Object(D.a)(Ka)),Ba(Object(D.a)(rr));case 7:case"end":return nr.stop()}},Kt)}));return function(Kt){return ir.apply(this,arguments)}}()}),v.a.createElement(vt,{pathList:fn==null?void 0:fn.split("/"),showInputPath:!0,isMergeSelectFile:Fr,onFinish:function(Kt){Fr?Yt(Kt):Wn(Kt),wn(!1)}}))},We=function(){return v.a.createElement("div",{className:"mt20 pb50 ".concat(Xe.a.nodata)},v.a.createElement("div",{className:Xe.a.headLeft},"\u63D0\u793A\uFF1A",v.a.createElement("br",null),"\u6B64\u5904\u5B58\u653E\u672C\u5B9E\u8BAD\u6240\u9700\u7684\u6240\u6709\u4EE3\u7801\u7B49\u76F8\u5173\u6587\u4EF6\uFF0C\u4F60\u53EF\u4EE5\u76F4\u63A5\u5728\u5E73\u53F0\u4E0A\u521B\u5EFA\u6587\u4EF6\u76EE\u5F55\u4EE5\u53CA\u76F8\u5173\u4EE3\u7801\u6587\u4EF6",v.a.createElement("br",null)),v.a.createElement("img",{width:"100%",src:Et.u}))},Je=Object(N.a)(function(bt){var ke=bt.shixunsDetail,nt=bt.loading,rt=bt.globalSetting,De=bt.practiceSetting,Ke=bt.user;return{shixunsDetail:ke,globalSetting:rt,user:Ke,practiceSetting:De,loading:nt}})(Ze),Ae=o("/zsF"),Ue=o("PArb"),He=o("yDYP"),Fe=o.n(He),et=function(ke){var nt=ke.shixunsDetail,rt=ke.globalSetting,De=ke.loading,Ke=ke.user,Ct=ke.dispatch,ft=ke.isRepository,xt=Object(E.a)(ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(I.i)(),ct=Object(S.useState)([]),Ut=Object(w.a)(ct,2),Ft=Ut[0],on=Ut[1];Object(S.useEffect)(function(){cn()},[ft]);var cn=function(){var ln=Object(c.a)(x.a.mark(function kn(){var In;return x.a.wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return Gn.next=2,Ct({type:"shixunsDetail/getRepositoryCommit",payload:{id:Mt.id,secret_repository:ft?void 0:!0}});case 2:In=Gn.sent,In&&on(In.commits||[]);case 4:case"end":return Gn.stop()}},kn)}));return function(){return ln.apply(this,arguments)}}();return v.a.createElement(v.a.Fragment,null,Ft==""&&v.a.createElement("div",{className:Fe.a.empty},v.a.createElement("img",{src:Et.k,width:"258"}),v.a.createElement("br",null),v.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Ft!=""&&v.a.createElement("section",{className:Fe.a.bg},v.a.createElement("div",{className:Fe.a.wrap},v.a.createElement("div",{className:Fe.a.content},Ft==null?void 0:Ft.map(function(ln){var kn,In;return v.a.createElement("div",null,v.a.createElement(C.a,{align:"middle",className:"c-white font16"},v.a.createElement(f.a,null,ln.title)),v.a.createElement(C.a,{align:"middle",className:"mt20 "},v.a.createElement(f.a,null,v.a.createElement("img",{className:Fe.a.imageUrl,src:we.a.IMG_SERVER+"/"+((kn=ln.author)===null||kn===void 0?void 0:kn.image_url)})),v.a.createElement(f.a,{className:Fe.a.blueLight},v.a.createElement("span",{className:"ml20"},(In=ln.author)===null||In===void 0?void 0:In.username)),v.a.createElement(f.a,null,v.a.createElement("span",{className:"ml20 ".concat(Fe.a.blueLight)},"\u63D0\u4EA4\u4E8E"),v.a.createElement("span",{className:"ml20 ".concat(Fe.a.blueLight)},ln.time))),v.a.createElement(Ue.a,{className:Fe.a.divider}))})))))},mt=Object(N.a)(function(bt){var ke=bt.shixunsDetail,nt=bt.loading,rt=bt.globalSetting,De=bt.user;return{shixunsDetail:ke,globalSetting:rt,user:De,loading:nt.models.index}})(et),Lt=o("p5ED"),Xt=P.a.TabPane,rn=function(ke){var nt,rt,De,Ke,Ct,ft,xt,Mt,ct,Ut,Ft,on,cn,ln,kn,In,sn,Gn,Nn,Vn=ke.globalSetting,Zn=ke.loading,xr=ke.dispatch,dr=ke.practiceSetting,un=ke.shixunsDetail,$t=Object(E.a)(ke,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),An=Object(S.useState)("1"),Ur=Object(w.a)(An,2),Ar=Ur[0],Cr=Ur[1],gr=Object(S.useState)("1"),pe=Object(w.a)(gr,2),X=pe[0],q=pe[1],oe=Object(S.useState)(),Re=Object(w.a)(oe,2),de=Re[0],ot=Re[1],Qt=Object(S.useRef)(),Ln=Object(S.useState)(!0),Jn=Object(w.a)(Ln,2),Zt=Jn[0],En=Jn[1],fn=Object(S.useState)(["2","1"]),Br=Object(w.a)(fn,2),ra=Br[0],oa=Br[1],rr=Object(S.useState)([]),Ba=Object(w.a)(rr,2),Ea=Ba[0],ca=Ba[1],Ka=Object(S.useRef)(),Ta=Object(I.i)(),Ja=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:v.a.createElement("span",null,v.a.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),v.a.createElement(u.a,{title:"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002"},v.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(S.useEffect)(function(){try{var fa,ma,la,xe,st;if(!!(un!=null&&(fa=un.fileContent)!==null&&fa!==void 0&&(ma=fa.content)!==null&&ma!==void 0&&(la=ma.content)!==null&&la!==void 0&&la.length)||(un==null||((xe=un.fileContent)===null||xe===void 0||((st=xe.content)===null||st===void 0))?void 0:st.content)==""){var Rt;if((un==null||((Rt=un.fileContent)===null||Rt===void 0)?void 0:Rt.file_type)==="txt"){var Ot,Ht,Nt,Vt;Qt.current=window.decodeURIComponent(escape(window.atob(un==null||((Ot=un.fileContent)===null||Ot===void 0||((Ht=Ot.content)===null||Ht===void 0))?void 0:Ht.content))),de=window.decodeURIComponent(escape(window.atob(un==null||((Nt=un.fileContent)===null||Nt===void 0||((Vt=Nt.content)===null||Vt===void 0))?void 0:Vt.content))),ot(de)}else{var nn,xn,_n,Bn;Qt.current=un==null||((nn=un.fileContent)===null||nn===void 0||((xn=nn.content)===null||xn===void 0))?void 0:xn.content,de=un==null||((_n=un.fileContent)===null||_n===void 0||((Bn=_n.content)===null||Bn===void 0))?void 0:Bn.content,ot(de)}}}catch(Fn){var Dn,an,Mn,yn;Qt.current=window.atob(un==null||((Dn=un.fileContent)===null||Dn===void 0||((an=Dn.content)===null||an===void 0))?void 0:an.content),de=window.atob(un==null||((Mn=un.fileContent)===null||Mn===void 0||((yn=Mn.content)===null||yn===void 0))?void 0:yn.content),ot(de),d.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}console.log("codeMirrorSourceValue1212:12",un.fileContent.content)},[un==null||((nt=un.fileContent)===null||nt===void 0)?void 0:nt.content]),Object(S.useEffect)(function(){var fa,ma=dr==null||((fa=dr.sideBar)===null||fa===void 0)?void 0:fa.selectPath.split("/");oa(ma)},[dr==null||((rt=dr.sideBar)===null||rt===void 0)?void 0:rt.selectPath]);var Ua=function(ma){ot(ma);var la=-1;ma===Qt.current?la=0:la=1,la!==-1,xr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!la}})};Object(S.useEffect)(function(){new Promise(function(){var fa=Object(c.a)(x.a.mark(function ma(la,xe){var st,Rt,Ot,Ht;return x.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!((dr==null||((st=dr.sideBar)===null||st===void 0)?void 0:st.selectPath)!==""&&dr!==null&&dr!==void 0&&(Rt=dr.sideBar)!==null&&Rt!==void 0&&Rt.selectPath)){Vt.next=5;break}return Vt.next=3,xr({type:"shixunsDetail/getFileContent",payload:{id:Ta.id,path:dr==null||((Ot=dr.sideBar)===null||Ot===void 0)?void 0:Ot.selectPath,secret_repository:Zt?null:!0}});case 3:Ht=Vt.sent,Ht!=null&&Ht.content||(Ht==null?void 0:Ht.content)==""||xr({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return Vt.stop()}},ma)}));return function(ma,la){return fa.apply(this,arguments)}}())},[dr==null||((De=dr.sideBar)===null||De===void 0)?void 0:De.selectPath]);var li=v.a.createElement(r.a,{className:U.a.menu,onClick:function(ma){var la;!(un!=null&&(la=un.detail)!==null&&la!==void 0&&la.secret_repository)&&ma.key==="2"&&q("1"),Cr(ma.key),ma.key==="1"?En(!0):En(!1)}},v.a.createElement(r.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),Ja.filter(function(fa){var ma,la;return!(un!=null&&(ma=un.detail)!==null&&ma!==void 0&&ma.init_repository)||un!=null&&(la=un.detail)!==null&&la!==void 0&&la.is_jupyter_lab?fa.id!=="2":fa}).map(function(fa,ma){return v.a.createElement(r.a.Item,{className:"leaveClick",key:fa.id},fa.name)})),oi=function(){var fa=Object(c.a)(x.a.mark(function ma(){var la,xe,st;return x.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,xr({type:"shixunsDetail/updateRepositoryFile",payload:{id:Ta.id,path:un==null||((la=un.fileContent)===null||la===void 0||((xe=la.params)===null||xe===void 0))?void 0:xe.path,content:de,secret_repository:Zt?null:!0}});case 2:st=Ot.sent,st!=null&&st.content&&(d.b.info("\u4FDD\u5B58\u6210\u529F"),xr({type:"practiceSetting/setSideBarTabs",payload:Object(n.a)(Object(n.a)({},dr.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Ot.stop()}},ma)}));return function(){return fa.apply(this,arguments)}}();return v.a.createElement("div",{className:U.a.warehouse},v.a.createElement("div",{className:U.a.header},v.a.createElement(C.a,{align:"middle",className:"w100 c-white",style:{height:60}},v.a.createElement(f.a,{flex:"1"},v.a.createElement(C.a,{align:"middle"},v.a.createElement(f.a,null,v.a.createElement(l.a,{overlay:li,className:U.a.menu},v.a.createElement("span",{className:"font16 c-white current ml20"},Ja.find(function(fa){return fa.id===Ar}).name," ",v.a.createElement("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})))),v.a.createElement(f.a,{flex:"81px"},v.a.createElement("div",{className:U.a.line})),v.a.createElement(f.a,null,v.a.createElement(P.a,{className:U.a.tabs,activeKey:X,onChange:function(ma){var la;dr!=null&&(la=dr.sideBar)!==null&&la!==void 0&&la.confirmLeave?g.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){q(ma),xr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(q(ma),xr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},v.a.createElement(Xt,{tab:v.a.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),Zt&&(un==null||((Ke=un.detail)===null||Ke===void 0)?void 0:Ke.init_repository)&&v.a.createElement(Xt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!Zt&&(un==null||((Ct=un.detail)===null||Ct===void 0)?void 0:Ct.secret_repository)&&v.a.createElement(Xt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),(Zt&&(un==null||((ft=un.repository)===null||ft===void 0)?void 0:ft.git_url)||!Zt&&(un==null||((xt=un.secretRepository)===null||xt===void 0)?void 0:xt.git_url))&&v.a.createElement(v.a.Fragment,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:U.a.title},"\u4ED3\u5E93\u5730\u5740:"),v.a.createElement("input",{value:Zt?un==null||((Mt=un.repository)===null||Mt===void 0)?void 0:Mt.git_url:un==null||((ct=un.secretRepository)===null||ct===void 0)?void 0:ct.git_url}),v.a.createElement(L.CopyToClipboard,{text:Zt?un==null||((Ut=un.repository)===null||Ut===void 0)?void 0:Ut.git_url:un==null||((Ft=un.secretRepository)===null||Ft===void 0)?void 0:Ft.git_url,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(u.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93"},v.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"}))))))),v.a.createElement("div",{className:U.a.content,style:{overflow:"auto"}},X==="1"&&v.a.createElement(v.a.Fragment,null,v.a.createElement("aside",{className:U.a.left},v.a.createElement(b.a,{spinning:!!Zn.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(U.a.loading," ").concat(U.a.bottom0)},v.a.createElement(Je,{setTreeData:ca,treeData:Ea,activeKey:Ar,isRepository:Zt}))),v.a.createElement("aside",{className:U.a.right,ref:Ka},(dr==null||((on=dr.sideBar)===null||on===void 0)?void 0:on.selectPath)!==""&&v.a.createElement(v.a.Fragment,null,v.a.createElement(b.a,{spinning:!!Zn.effects["shixunsDetail/getFileContent"],wrapperClassName:U.a.loading},v.a.createElement("div",{className:U.a.filePathWrp},v.a.createElement(C.a,{align:"middle",className:"w100"},v.a.createElement(f.a,null,v.a.createElement("span",{className:"iconfont icon-daimacangku2 c-white"})),v.a.createElement(f.a,{flex:"40px"},v.a.createElement("div",{className:U.a.line,style:{marginLeft:20}})),v.a.createElement(f.a,{className:U.a.filePath},ra.map(function(fa,ma){return v.a.createElement("span",{className:"c-blue"},fa)})))),v.a.createElement("div",{className:Zn.effects["shixunsDetail/getFileContent"]?"hide":"show"},v.a.createElement(Lt.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:un==null||((cn=un.fileContent)===null||cn===void 0)?void 0:cn.filename,type:(un==null||((ln=un.fileContent)===null||ln===void 0)?void 0:ln.file_type)==="office"?"download":un==null||((kn=un.fileContent)===null||kn===void 0)?void 0:kn.file_type,data:de,monacoEditor:{value:de,language:un==null||((In=un.fileContent)===null||In===void 0)?void 0:In.language,onChange:function(ma){return Ua(ma)},options:{fontSize:14}}}))),(un==null||((sn=un.fileContent)===null||sn===void 0)?void 0:sn.file_type)==="txt"&&v.a.createElement(C.a,{align:"middle",justify:"center",className:U.a.footer},v.a.createElement(f.a,null,v.a.createElement(m.a,{type:"primary",size:"large",ghost:!0,onClick:function(){N.d.push("/shixuns/".concat(Ta.id,"/challenges"))}},"\u53D6\u6D88"),v.a.createElement(m.a,{type:"primary",size:"large",className:"ml40",onClick:oi},"\u63D0\u4EA4")))),(dr==null||((Gn=dr.sideBar)===null||Gn===void 0)?void 0:Gn.selectPath)==""&&(un==null||((Nn=un.detail)===null||Nn===void 0)?void 0:Nn.init_repository)&&v.a.createElement("div",{className:U.a.empty},v.a.createElement("img",{src:Et.j,width:"258"}),v.a.createElement("br",null),v.a.createElement("span",{className:"c-grey-c"},!!(Ea!=null&&Ea.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(Ea!=null&&Ea.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),X==="2"&&v.a.createElement("div",{className:U.a.commit},v.a.createElement(mt,{isRepository:Zt}))))},wt=z.default=Object(N.a)(function(bt){var ke=bt.loading,nt=bt.globalSetting,rt=bt.practiceSetting,De=bt.shixunsDetail;return{globalSetting:nt,loading:ke,practiceSetting:rt,shixunsDetail:De}})(rn)},csWT:function(k,z,o){k.exports=o.p+"static/choose.4ad1045f.svg"},cv67:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(m){var O=M,b=O.lib,y=b.WordArray,C=b.Hasher,A=O.algo,g=[];(function(){for(var i=0;i<64;i++)g[i]=m.abs(m.sin(i+1))*4294967296|0})();var e=A.MD5=C.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(i,r){for(var c=0;c<16;c++){var h=r+c,d=i[h];i[h]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}var s=this._hash.words,u=i[r+0],w=i[r+1],E=i[r+2],_=i[r+3],P=i[r+4],R=i[r+5],x=i[r+6],S=i[r+7],v=i[r+8],T=i[r+9],U=i[r+10],I=i[r+11],N=i[r+12],V=i[r+13],H=i[r+14],D=i[r+15],W=s[0],F=s[1],L=s[2],K=s[3];W=f(W,F,L,K,u,7,g[0]),K=f(K,W,F,L,w,12,g[1]),L=f(L,K,W,F,E,17,g[2]),F=f(F,L,K,W,_,22,g[3]),W=f(W,F,L,K,P,7,g[4]),K=f(K,W,F,L,R,12,g[5]),L=f(L,K,W,F,x,17,g[6]),F=f(F,L,K,W,S,22,g[7]),W=f(W,F,L,K,v,7,g[8]),K=f(K,W,F,L,T,12,g[9]),L=f(L,K,W,F,U,17,g[10]),F=f(F,L,K,W,I,22,g[11]),W=f(W,F,L,K,N,7,g[12]),K=f(K,W,F,L,V,12,g[13]),L=f(L,K,W,F,H,17,g[14]),F=f(F,L,K,W,D,22,g[15]),W=a(W,F,L,K,w,5,g[16]),K=a(K,W,F,L,x,9,g[17]),L=a(L,K,W,F,I,14,g[18]),F=a(F,L,K,W,u,20,g[19]),W=a(W,F,L,K,R,5,g[20]),K=a(K,W,F,L,U,9,g[21]),L=a(L,K,W,F,D,14,g[22]),F=a(F,L,K,W,P,20,g[23]),W=a(W,F,L,K,T,5,g[24]),K=a(K,W,F,L,H,9,g[25]),L=a(L,K,W,F,_,14,g[26]),F=a(F,L,K,W,v,20,g[27]),W=a(W,F,L,K,V,5,g[28]),K=a(K,W,F,L,E,9,g[29]),L=a(L,K,W,F,S,14,g[30]),F=a(F,L,K,W,N,20,g[31]),W=l(W,F,L,K,R,4,g[32]),K=l(K,W,F,L,v,11,g[33]),L=l(L,K,W,F,I,16,g[34]),F=l(F,L,K,W,H,23,g[35]),W=l(W,F,L,K,w,4,g[36]),K=l(K,W,F,L,P,11,g[37]),L=l(L,K,W,F,S,16,g[38]),F=l(F,L,K,W,U,23,g[39]),W=l(W,F,L,K,V,4,g[40]),K=l(K,W,F,L,u,11,g[41]),L=l(L,K,W,F,_,16,g[42]),F=l(F,L,K,W,x,23,g[43]),W=l(W,F,L,K,T,4,g[44]),K=l(K,W,F,L,N,11,g[45]),L=l(L,K,W,F,D,16,g[46]),F=l(F,L,K,W,E,23,g[47]),W=n(W,F,L,K,u,6,g[48]),K=n(K,W,F,L,S,10,g[49]),L=n(L,K,W,F,H,15,g[50]),F=n(F,L,K,W,R,21,g[51]),W=n(W,F,L,K,N,6,g[52]),K=n(K,W,F,L,_,10,g[53]),L=n(L,K,W,F,U,15,g[54]),F=n(F,L,K,W,w,21,g[55]),W=n(W,F,L,K,v,6,g[56]),K=n(K,W,F,L,D,10,g[57]),L=n(L,K,W,F,x,15,g[58]),F=n(F,L,K,W,V,21,g[59]),W=n(W,F,L,K,P,6,g[60]),K=n(K,W,F,L,I,10,g[61]),L=n(L,K,W,F,E,15,g[62]),F=n(F,L,K,W,T,21,g[63]),s[0]=s[0]+W|0,s[1]=s[1]+F|0,s[2]=s[2]+L|0,s[3]=s[3]+K|0},_doFinalize:function(){var i=this._data,r=i.words,c=this._nDataBytes*8,h=i.sigBytes*8;r[h>>>5]|=128<<24-h%32;var d=m.floor(c/4294967296),s=c;r[(h+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,r[(h+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,i.sigBytes=(r.length+1)*4,this._process();for(var u=this._hash,w=u.words,E=0;E<4;E++){var _=w[E];w[E]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return u},clone:function(){var i=C.clone.call(this);return i._hash=this._hash.clone(),i}});function f(i,r,c,h,d,s,u){var w=i+(r&c|~r&h)+d+u;return(w<<s|w>>>32-s)+r}function a(i,r,c,h,d,s,u){var w=i+(r&h|c&~h)+d+u;return(w<<s|w>>>32-s)+r}function l(i,r,c,h,d,s,u){var w=i+(r^c^h)+d+u;return(w<<s|w>>>32-s)+r}function n(i,r,c,h,d,s,u){var w=i+(c^(r|~h))+d+u;return(w<<s|w>>>32-s)+r}O.MD5=C._createHelper(e),O.HmacMD5=C._createHmacHelper(e)}(Math),M.MD5})},cz0n:function(k,z,o){k.exports={flex_box_center:"flex_box_center___G8W6i",flex_space_between:"flex_space_between___1p_ZB",flex_box_vertical_center:"flex_box_vertical_center___2wivF",flex_box_center_end:"flex_box_center_end___y5a20",flex_box_column:"flex_box_column___6oXp3",tabs:"tabs___sKski",active:"active___10xGM"}},dGDm:function(k,z,o){k.exports={selectEnvironment:"selectEnvironment___1zrTT",search:"search___2Sku-",searchListWrap:"searchListWrap___30F5Q",searchList:"searchList___dxlP6",name:"name___28Ilk",tag:"tag___GYHhS",searchListActive:"searchListActive___1H-dL",spin:"spin___2GYcy",common:"common___JE3ZS",title:"title___11-q3",tags:"tags___3vE7b",tagActive:"tagActive___1c0bT",wrap:"wrap___fFVWs",allList:"allList___2mVBv",item:"item___2NPtB",itemActive:"itemActive___2aQTm",line:"line___yjjYk",apply:"apply___3NyxD",p1:"p1___2xNuY",p2:"p2___uGM8U",list:"list___1jtVf",items:"items___3gafm",darklySelectEnvironment:"darklySelectEnvironment___2KS0W"}},dejd:function(k,z,o){},djh8:function(k,z,o){k.exports=o.p+"static/qrCode.d852fdfc.png"},dmUQ:function(k,z,o){"use strict";var M=o("Ff2n"),m=o("rePB"),O=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),C=o("md7G"),A=o("foSv"),g=o("q1tI"),e=o.n(g),f=o("TSYQ"),a=o.n(f),l=o("4IlW");function n(v,T){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);T&&(I=I.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,I)}return U}function i(v){for(var T=1;T<arguments.length;T++){var U=arguments[T]!=null?arguments[T]:{};T%2?n(Object(U),!0).forEach(function(I){Object(m.a)(v,I,U[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(U)):n(Object(U)).forEach(function(I){Object.defineProperty(v,I,Object.getOwnPropertyDescriptor(U,I))})}return v}function r(v){var T=c();return function(){var I=Object(A.a)(v),N;if(T){var V=Object(A.a)(this).constructor;N=Reflect.construct(I,arguments,V)}else N=I.apply(this,arguments);return Object(C.a)(this,N)}}function c(){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(v){return!1}}function h(){}function d(v){v.preventDefault()}var s=function(T){return T.replace(/[^\w.-]+/g,"")},u=200,w=600,E=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,_=function(T){return T!=null},P=function(T,U){return U===T||typeof U=="number"&&typeof T=="number"&&isNaN(U)&&isNaN(T)},R=function(v){Object(y.a)(U,v);var T=r(U);function U(I){var N;Object(O.a)(this,U),N=T.call(this,I),N.onKeyDown=function(D){var W=N.props,F=W.onKeyDown,L=W.onPressEnter;if(D.keyCode===l.a.UP){var K=N.getRatio(D);N.up(D,K,null),N.stop()}else if(D.keyCode===l.a.DOWN){var ee=N.getRatio(D);N.down(D,ee,null),N.stop()}else D.keyCode===l.a.ENTER&&L&&L(D);if(N.recordCursorPosition(),N.lastKeyCode=D.keyCode,F){for(var he=arguments.length,fe=new Array(he>1?he-1:0),Ce=1;Ce<he;Ce++)fe[Ce-1]=arguments[Ce];F.apply(void 0,[D].concat(fe))}},N.onKeyUp=function(D){var W=N.props.onKeyUp;if(N.stop(),N.recordCursorPosition(),W){for(var F=arguments.length,L=new Array(F>1?F-1:0),K=1;K<F;K++)L[K-1]=arguments[K];W.apply(void 0,[D].concat(L))}},N.onChange=function(D){var W=N.props.onChange;N.state.focused&&(N.inputting=!0),N.rawInput=N.props.parser(N.getValueFromEvent(D)),N.setState({inputValue:N.rawInput}),W(N.toNumber(N.rawInput))},N.onMouseUp=function(){var D=N.props.onMouseUp;N.recordCursorPosition(),D&&D.apply(void 0,arguments)},N.onFocus=function(){var D;N.setState({focused:!0}),(D=N.props).onFocus.apply(D,arguments)},N.onBlur=function(){var D=N.props.onBlur;N.inputting=!1,N.setState({focused:!1});var W=N.getCurrentValidValue(N.state.inputValue),F=N.setValue(W,h);if(D){var L=N.input.value,K=N.getInputDisplayValue({focus:!1,value:F});N.input.value=K&&Number(K),D.apply(void 0,arguments),N.input.value=L}},N.getRatio=function(D){var W=1;return D.metaKey||D.ctrlKey?W=.1:D.shiftKey&&(W=10),W},N.getFullNum=function(D){return isNaN(D)?D:/e/i.test(String(D))?Number(D).toFixed(18).replace(/\.?0+$/,""):D},N.getPrecision=function(D){if(_(N.props.precision))return N.props.precision;var W=String(D);if(W.indexOf("e-")>=0)return parseInt(W.slice(W.indexOf("e-")+2),10);var F=0;return W.indexOf(".")>=0&&(F=W.length-W.indexOf(".")-1),F},N.getInputDisplayValue=function(D){var W=D||N.state,F=W.focused,L=W.inputValue,K=W.value,ee;F?ee=L:ee=N.toPrecisionAsStep(K),ee==null&&(ee="");var he=N.formatWrapper(ee);return _(N.props.decimalSeparator)&&(he=he.toString().replace(".",N.props.decimalSeparator)),he},N.recordCursorPosition=function(){try{N.cursorStart=N.input.selectionStart,N.cursorEnd=N.input.selectionEnd,N.currentValue=N.input.value,N.cursorBefore=N.input.value.substring(0,N.cursorStart),N.cursorAfter=N.input.value.substring(N.cursorEnd)}catch(D){}},N.restoreByAfter=function(D){if(D===void 0)return!1;var W=N.input.value,F=W.lastIndexOf(D);if(F===-1)return!1;var L=N.cursorBefore.length;return N.lastKeyCode===l.a.DELETE&&N.cursorBefore.charAt(L-1)===D[0]?(N.fixCaret(L,L),!0):F+D.length===W.length?(N.fixCaret(F,F),!0):!1},N.partRestoreByAfter=function(D){return D===void 0?!1:Array.prototype.some.call(D,function(W,F){var L=D.substring(F);return N.restoreByAfter(L)})},N.isNotCompleteNumber=function(D){return isNaN(D)||D===""||D===null||D&&D.toString().indexOf(".")===D.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(D,W,F){N.pressingUpOrDown=!0,N.step("down",D,W,F)},N.up=function(D,W,F){N.pressingUpOrDown=!0,N.step("up",D,W,F)},N.saveInput=function(D){N.input=D};var V=I.value;V===void 0&&(V=I.defaultValue),N.state={focused:I.autoFocus};var H=N.getValidValue(N.toNumber(V));return N.state=i(i({},N.state),{},{inputValue:N.toPrecisionAsStep(H),value:H}),N}return Object(b.a)(U,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var V=this.props,H=V.value,D=V.onChange,W=V.max,F=V.min,L=this.state.focused;if(N){if(!P(N.value,H)||!P(N.max,W)||!P(N.min,F)){var K=L?H:this.getValidValue(H),ee;this.pressingUpOrDown?ee=K:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:ee})}var he="value"in this.props?H:this.state.value;"max"in this.props&&N.max!==W&&typeof he=="number"&&he>W&&D&&D(W),"min"in this.props&&N.min!==F&&typeof he=="number"&&he<F&&D&&D(F)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var fe=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===l.a.BACKSPACE?fe=this.cursorStart-1:this.lastKeyCode===l.a.DELETE&&(fe=this.cursorStart):fe=this.input.value.length,this.fixCaret(fe,fe)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case l.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case l.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Ce){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(N){var V=N;return V===""?V="":this.isNotCompleteNumber(parseFloat(V))?V=this.state.value:V=this.getValidValue(V),this.toNumber(V)}},{key:"getValueFromEvent",value:function(N){var V=N.target.value.trim().replace(/。/g,".");return _(this.props.decimalSeparator)&&(V=V.replace(this.props.decimalSeparator,".")),V}},{key:"getValidValue",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,D=parseFloat(N);return isNaN(D)?N:(D<V&&(D=V),D>H&&(D=H),D)}},{key:"setValue",value:function(N,V){var H=this.props.precision,D=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),W=this.state.value,F=W===void 0?null:W,L=this.state.inputValue,K=L===void 0?null:L,ee=typeof D=="number"?D.toFixed(H):"".concat(D),he=D!==F||ee!=="".concat(K);return"value"in this.props?(K=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:K},V)):this.setState({value:D,inputValue:this.toPrecisionAsStep(N)},V),he&&this.props.onChange(D),D}},{key:"getMaxPrecision",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.props,D=H.precision,W=H.step;if(_(D))return D;var F=this.getPrecision(V),L=this.getPrecision(W),K=this.getPrecision(N);return N?Math.max(K,F+L):F+L}},{key:"getPrecisionFactor",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.getMaxPrecision(N,V);return Math.pow(10,H)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(N){return this.props.formatter?this.props.formatter(N):N}},{key:"toPrecisionAsStep",value:function(N){if(this.isNotCompleteNumber(N)||N==="")return N;var V=Math.abs(this.getMaxPrecision(N));return isNaN(V)?N.toString():Number(N).toFixed(V)}},{key:"toNumber",value:function(N){var V=this.props.precision,H=this.state.focused,D=N&&N.length>16&&H;return this.isNotCompleteNumber(N)||D?N:_(V)?Math.round(N*Math.pow(10,V))/Math.pow(10,V):Number(N)}},{key:"upStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N+D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"downStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N-D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"step",value:function(N,V){var H=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3?arguments[3]:void 0;this.stop(),V&&(V.persist(),V.preventDefault());var F=this.props;if(F.disabled)return;var L=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(L))return;var K=this["".concat(N,"Step")](L,D),ee=K>F.max||K<F.min;if(K>F.max?K=F.max:K<F.min&&(K=F.min),this.setValue(K,null),this.setState({focused:!0},function(){H.pressingUpOrDown=!1}),ee)return;this.autoStepTimer=setTimeout(function(){H[N](V,D,!0)},W?u:w)}},{key:"fixCaret",value:function(N,V){if(N===void 0||V===void 0||!this.input||!this.input.value)return;try{var H=this.input.selectionStart,D=this.input.selectionEnd;(N!==H||V!==D)&&this.input.setSelectionRange(N,V)}catch(W){}}},{key:"render",value:function(){var N,V=this.props,H=V.prefixCls,D=V.disabled,W=V.readOnly,F=V.useTouch,L=V.autoComplete,K=V.upHandler,ee=V.downHandler,he=V.className,fe=V.max,Ce=V.min,Te=V.style,ce=V.title,ye=V.onMouseEnter,Ee=V.onMouseLeave,ue=V.onMouseOver,se=V.onMouseOut,$=V.required,me=V.onClick,re=V.tabIndex,ae=V.type,we=V.placeholder,le=V.id,te=V.inputMode,Q=V.pattern,J=V.step,ve=V.maxLength,_e=V.autoFocus,Oe=V.name,Xe=V.onPaste,tt=V.onInput,lt=Object(M.a)(V,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),dt=this.state,vt=dt.value,_t=dt.focused,Ye=a()(H,(N={},Object(m.a)(N,he,!!he),Object(m.a)(N,"".concat(H,"-disabled"),D),Object(m.a)(N,"".concat(H,"-focused"),_t),N)),je={};Object.keys(lt).forEach(function(Fe){(Fe.substr(0,5)==="data-"||Fe.substr(0,5)==="aria-"||Fe==="role")&&(je[Fe]=lt[Fe])});var ht=!W&&!D,Bt=this.getInputDisplayValue(null),Et=(vt||vt===0)&&(isNaN(vt)||Number(vt)>=fe),Pt=(vt||vt===0)&&(isNaN(vt)||Number(vt)<=Ce),Ze=Et||D||W,We=Pt||D||W,Je=a()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(m.a)({},"".concat(H,"-handler-up-disabled"),Ze)),Ae=a()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(m.a)({},"".concat(H,"-handler-down-disabled"),We)),Ue=F?{onTouchStart:Ze?h:this.up,onTouchEnd:this.stop}:{onMouseDown:Ze?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},He=F?{onTouchStart:We?h:this.down,onTouchEnd:this.stop}:{onMouseDown:We?h:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Ye,style:Te,title:ce,onMouseEnter:ye,onMouseLeave:Ee,onMouseOver:ue,onMouseOut:se,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(H,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},Ue,{role:"button","aria-label":"Increase Value","aria-disabled":Ze,className:Je}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},He,{role:"button","aria-label":"Decrease Value","aria-disabled":We,className:Ae}),ee||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-down-inner"),onClick:d}))),e.a.createElement("div",{className:"".concat(H,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ce,"aria-valuemax":fe,"aria-valuenow":vt,required:$,type:ae,placeholder:we,onPaste:Xe,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:re,autoComplete:L,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ht?this.onKeyDown:h,onKeyUp:ht?this.onKeyUp:h,autoFocus:_e,maxLength:ve,readOnly:W,disabled:D,max:fe,min:Ce,step:J,name:Oe,title:ce,id:le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Bt),pattern:Q,inputMode:te,onInput:tt},je))))}}]),U}(e.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:h,onKeyDown:h,onPressEnter:h,onFocus:h,onBlur:h,parser:s,required:!1,autoComplete:"off"};var x=R,S=z.a=x},e7zE:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.Base,y=O.WordArray,C=m.algo,A=C.SHA1,g=C.HMAC,e=C.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:A,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,a){for(var l=this.cfg,n=g.create(l.hasher,f),i=y.create(),r=y.create([1]),c=i.words,h=r.words,d=l.keySize,s=l.iterations;c.length<d;){var u=n.update(a).finalize(r);n.reset();for(var w=u.words,E=w.length,_=u,P=1;P<s;P++){_=n.finalize(_),n.reset();for(var R=_.words,x=0;x<E;x++)w[x]^=R[x]}i.concat(u),h[0]++}return i.sigBytes=d*4,i}});m.PBKDF2=function(f,a,l){return e.create(l).compute(f,a)}}(),M.PBKDF2})},"f0W+":function(k,z,o){k.exports={flex_box_center:"flex_box_center___2AWuG",flex_space_between:"flex_space_between___4j1zo",flex_box_vertical_center:"flex_box_vertical_center___3dWcm",flex_box_center_end:"flex_box_center_end___qvHJi",flex_box_column:"flex_box_column___3Eier",tabs:"tabs___25WKT",tabsWrap:"tabsWrap___2lPJE",active:"active___gGp9s"}},f9pc:function(k,z,o){k.exports={flex_box_center:"flex_box_center___fO1Sq",flex_space_between:"flex_space_between___2MANs",flex_box_vertical_center:"flex_box_vertical_center___2x-su",flex_box_center_end:"flex_box_center_end___6bZNq",flex_box_column:"flex_box_column___CGTHC",quickPager:"quickPager___2XH6F",disabled:"disabled___2gPWV"}},fAei:function(k,z,o){"use strict";o.d(z,"a",function(){return u.a});var M=o("rePB"),m=o("VTBJ"),O=o("KQm4"),b=o("1OyB"),y=o("vuIU"),C=o("Ji7U"),A=o("LK+K"),g=o("q1tI"),e=o("4IlW"),f=o("Kwbf"),a=o("TSYQ"),l=o.n(a),n=o("sboe"),i=o("OZM5"),r=o("815F"),c=o("ODXe"),h=o("Ff2n"),d=o("+nKL"),s=o("8XRh"),u=o("WaYH"),w=function(Ce,Te){var ce=Ce.className,ye=Ce.style,Ee=Ce.motion,ue=Ce.motionNodes,se=Ce.motionType,$=Ce.onMotionStart,me=Ce.onMotionEnd,re=Ce.active,ae=Ce.treeNodeRequiredProps,we=Object(h.a)(Ce,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),le=g.useState(!0),te=Object(c.a)(le,2),Q=te[0],J=te[1],ve=g.useContext(n.a),_e=ve.prefixCls,Oe=g.useRef(!1),Xe=function(){Oe.current||me(),Oe.current=!0};return Object(g.useEffect)(function(){ue&&se==="hide"&&Q&&J(!1)},[ue]),Object(g.useEffect)(function(){return ue&&$(),function(){ue&&Xe()}},[]),ue?g.createElement(s.default,Object.assign({ref:Te,visible:Q},Ee,{motionAppear:se==="show",onAppearEnd:Xe,onLeaveEnd:Xe}),function(tt,lt){var dt=tt.className,vt=tt.style;return g.createElement("div",{ref:lt,className:l()("".concat(_e,"-treenode-motion"),dt),style:vt},ue.map(function(_t){var Ye=_t.data,je=Ye.key,ht=Object(h.a)(Ye,["key"]),Bt=_t.isStart,Et=_t.isEnd;delete ht.children;var Pt=Object(r.f)(je,ae);return g.createElement(u.a,Object.assign({},ht,Pt,{active:re,data:_t.data,key:je,isStart:Bt,isEnd:Et}))}))}):g.createElement(u.a,Object.assign({domRef:Te,className:ce,style:ye},we,{active:re}))};w.displayName="MotionTreeNode";var E=g.forwardRef(w),_=E;function P(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Te=fe.length,ce=Ce.length;if(Math.abs(Te-ce)!==1)return{add:!1,key:null};function ye(Ee,ue){var se=new Map;Ee.forEach(function(me){se.set(me,!0)});var $=ue.filter(function(me){return!se.has(me)});return $.length===1?$[0]:null}return Te<ce?{add:!0,key:ye(fe,Ce)}:{add:!1,key:ye(Ce,fe)}}function R(fe,Ce,Te){var ce=fe.findIndex(function(se){var $=se.data;return $.key===Te}),ye=fe[ce+1],Ee=Ce.findIndex(function(se){var $=se.data;return $.key===Te});if(ye){var ue=Ce.findIndex(function(se){var $=se.data;return $.key===ye.data.key});return Ce.slice(Ee+1,ue)}return Ce.slice(Ee+1)}var x={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},S=function(){},v="RC_TREE_MOTION_".concat(Math.random()),T={key:v},U={key:v,level:0,index:0,pos:"0",node:T},I={parent:null,children:[],pos:U.pos,data:T,isStart:[],isEnd:[]};function N(fe,Ce,Te,ce){return Ce===!1||!Te?fe:fe.slice(0,Math.ceil(Te/ce)+1)}function V(fe){var Ce=fe.data.key,Te=fe.pos;return Object(r.e)(Ce,Te)}function H(fe){for(var Ce=String(fe.data.key),Te=fe;Te.parent;)Te=Te.parent,Ce="".concat(Te.data.key," > ").concat(Ce);return Ce}var D=function(Ce,Te){var ce=Ce.prefixCls,ye=Ce.data,Ee=Ce.selectable,ue=Ce.checkable,se=Ce.expandedKeys,$=Ce.selectedKeys,me=Ce.checkedKeys,re=Ce.loadedKeys,ae=Ce.loadingKeys,we=Ce.halfCheckedKeys,le=Ce.keyEntities,te=Ce.disabled,Q=Ce.dragging,J=Ce.dragOverNodeKey,ve=Ce.dropPosition,_e=Ce.motion,Oe=Ce.height,Xe=Ce.itemHeight,tt=Ce.virtual,lt=Ce.focusable,dt=Ce.activeItem,vt=Ce.focused,_t=Ce.tabIndex,Ye=Ce.onKeyDown,je=Ce.onFocus,ht=Ce.onBlur,Bt=Ce.onActiveChange,Et=Ce.onListChangeStart,Pt=Ce.onListChangeEnd,Ze=Object(h.a)(Ce,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),We=g.useRef(null);g.useImperativeHandle(Te,function(){return{scrollTo:function(on){We.current.scrollTo(on)}}});var Je=g.useState(se),Ae=Object(c.a)(Je,2),Ue=Ae[0],He=Ae[1],Fe=g.useState(ye),et=Object(c.a)(Fe,2),mt=et[0],Lt=et[1],Xt=g.useState(ye),rn=Object(c.a)(Xt,2),wt=rn[0],bt=rn[1],ke=g.useState([]),nt=Object(c.a)(ke,2),rt=nt[0],De=nt[1],Ke=g.useState(null),Ct=Object(c.a)(Ke,2),ft=Ct[0],xt=Ct[1];function Mt(){Lt(ye),bt(ye),De([]),xt(null),Pt()}g.useEffect(function(){He(se);var Ft=P(Ue,se);if(Ft.key!==null)if(Ft.add){var on=mt.findIndex(function(Gn){var Nn=Gn.data.key;return Nn===Ft.key}),cn=N(R(mt,ye,Ft.key),tt,Oe,Xe),ln=mt.slice();ln.splice(on+1,0,I),bt(ln),De(cn),xt("show")}else{var kn=ye.findIndex(function(Gn){var Nn=Gn.data.key;return Nn===Ft.key}),In=N(R(ye,mt,Ft.key),tt,Oe,Xe),sn=ye.slice();sn.splice(kn+1,0,I),bt(sn),De(In),xt("hide")}else mt!==ye&&(Lt(ye),bt(ye))},[se,ye]),g.useEffect(function(){Q||Mt()},[Q]);var ct=_e?wt:ye,Ut={expandedKeys:se,selectedKeys:$,loadedKeys:re,loadingKeys:ae,checkedKeys:me,halfCheckedKeys:we,dragOverNodeKey:J,dropPosition:ve,keyEntities:le};return g.createElement(g.Fragment,null,vt&&dt&&g.createElement("span",{style:x,"aria-live":"assertive"},H(dt)),g.createElement("div",{role:"tree"},g.createElement("input",{style:x,disabled:lt===!1||te,tabIndex:lt!==!1?_t:null,onKeyDown:Ye,onFocus:je,onBlur:ht,value:"",onChange:S})),g.createElement(d.a,Object.assign({},Ze,{data:ct,itemKey:V,height:Oe,fullHeight:!1,virtual:tt,itemHeight:Xe,prefixCls:"".concat(ce,"-list"),ref:We}),function(Ft){var on=Ft.pos,cn=Ft.data,ln=cn.key,kn=Object(h.a)(cn,["key"]),In=Ft.isStart,sn=Ft.isEnd,Gn=Object(r.e)(ln,on);delete kn.children;var Nn=Object(r.f)(Gn,Ut);return g.createElement(_,Object.assign({},kn,Nn,{active:dt&&ln===dt.data.key,pos:on,data:Ft.data,isStart:In,isEnd:sn,motion:_e,motionNodes:ln===v?rt:null,motionType:ft,onMotionStart:Et,onMotionEnd:Mt,treeNodeRequiredProps:Ut,onMouseMove:function(){Bt(null)}}))}))},W=g.forwardRef(D);W.displayName="NodeList";var F=W,L=o("NvD2"),K=function(fe){Object(C.a)(Te,fe);var Ce=Object(A.a)(Te);function Te(){var ce;return Object(b.a)(this,Te),ce=Ce.apply(this,arguments),ce.destroyed=!1,ce.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},ce.listRef=g.createRef(),ce.onNodeDragStart=function(ye,Ee){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ce.props.onDragStart,re=Ee.props.eventKey;ce.dragNode=Ee;var ae=Object(i.b)(se,re);ce.setState({dragging:!0,dragNodesKeys:Object(i.g)(re,$)}),ce.setExpandedKeys(ae),me&&me({event:ye,node:Object(r.b)(Ee.props)})},ce.onNodeDragEnter=function(ye,Ee){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ae=Ee.props,we=ae.pos,le=ae.eventKey;if(!ce.dragNode||me.indexOf(le)!==-1)return;var te=Object(i.c)(ye,Ee);if(ce.dragNode.props.eventKey===le&&te===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:le,dropPosition:te}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(Q){clearTimeout(ce.delayedDragEnterLogic[Q])}),ce.delayedDragEnterLogic[we]=window.setTimeout(function(){if(!ce.state.dragging)return;var Q=Object(O.a)(se),J=$[le];J&&(J.children||[]).length&&(Q=Object(i.a)(se,le)),"expandedKeys"in ce.props||ce.setExpandedKeys(Q),re&&re({event:ye,node:Object(r.b)(Ee.props),expandedKeys:Q})},400)},0)},ce.onNodeDragOver=function(ye,Ee){var ue=ce.state.dragNodesKeys,se=ce.props.onDragOver,$=Ee.props.eventKey;if(ue.indexOf($)!==-1)return;if(ce.dragNode&&$===ce.state.dragOverNodeKey){var me=Object(i.c)(ye,Ee);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}se&&se({event:ye,node:Object(r.b)(Ee.props)})},ce.onNodeDragLeave=function(ye,Ee){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:ye,node:Object(r.b)(Ee.props)})},ce.onNodeDragEnd=function(ye,Ee){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:ye,node:Object(r.b)(Ee.props)}),ce.dragNode=null},ce.onNodeDrop=function(ye,Ee){var ue=ce.state,se=ue.dragNodesKeys,$=se===void 0?[]:se,me=ue.dropPosition,re=ce.props.onDrop,ae=Ee.props,we=ae.eventKey,le=ae.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),$.indexOf(we)!==-1){Object(f.a)(!1,"Can not drop to dragNode(include it's children node)");return}var te=Object(i.k)(le),Q={event:ye,node:Object(r.b)(Ee.props),dragNode:ce.dragNode?Object(r.b)(ce.dragNode.props):null,dragNodesKeys:$.slice(),dropPosition:me+Number(te[te.length-1]),dropToGap:!1};me!==0&&(Q.dropToGap=!0),re&&re(Q),ce.dragNode=null},ce.cleanDragState=function(){var ye=ce.state.dragging;ye&&ce.setState({dragging:!1})},ce.onNodeClick=function(ye,Ee){var ue=ce.props.onClick;ue&&ue(ye,Ee)},ce.onNodeDoubleClick=function(ye,Ee){var ue=ce.props.onDoubleClick;ue&&ue(ye,Ee)},ce.onNodeSelect=function(ye,Ee){var ue=ce.state.selectedKeys,se=ce.state.keyEntities,$=ce.props,me=$.onSelect,re=$.multiple,ae=Ee.selected,we=Ee.key,le=!ae;le?re?ue=Object(i.a)(ue,we):ue=[we]:ue=Object(i.b)(ue,we);var te=ue.map(function(Q){var J=se[Q];return J?J.node:null}).filter(function(Q){return Q});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:le,node:Ee,selectedNodes:te,nativeEvent:ye.nativeEvent})},ce.onNodeCheck=function(ye,Ee,ue){var se=ce.state,$=se.keyEntities,me=se.checkedKeys,re=se.halfCheckedKeys,ae=ce.props,we=ae.checkStrictly,le=ae.onCheck,te=Ee.key,Q,J={event:"check",node:Ee,checked:ue,nativeEvent:ye.nativeEvent};if(we){var ve=ue?Object(i.a)(me,te):Object(i.b)(me,te),_e=Object(i.b)(re,te);Q={checked:ve,halfChecked:_e},J.checkedNodes=ve.map(function(vt){return $[vt]}).filter(function(vt){return vt}).map(function(vt){return vt.node}),ce.setUncontrolledState({checkedKeys:ve})}else{var Oe=Object(L.a)([].concat(Object(O.a)(me),[te]),!0,$),Xe=Oe.checkedKeys,tt=Oe.halfCheckedKeys;if(!ue){var lt=new Set(Xe);lt.delete(te);var dt=Object(L.a)(Array.from(lt),{checked:!1,halfCheckedKeys:tt},$);Xe=dt.checkedKeys,tt=dt.halfCheckedKeys}Q=Xe,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=tt,Xe.forEach(function(vt){var _t=$[vt];if(!_t)return;var Ye=_t.node,je=_t.pos;J.checkedNodes.push(Ye),J.checkedNodesPositions.push({node:Ye,pos:je})}),ce.setUncontrolledState({checkedKeys:Xe},!1,{halfCheckedKeys:tt})}le&&le(Q,J)},ce.onNodeLoad=function(ye){return new Promise(function(Ee){ce.setState(function(ue){var se=ue.loadedKeys,$=se===void 0?[]:se,me=ue.loadingKeys,re=me===void 0?[]:me,ae=ce.props,we=ae.loadData,le=ae.onLoad,te=ye.key;if(!we||$.indexOf(te)!==-1||re.indexOf(te)!==-1)return{};var Q=we(ye);return Q.then(function(){var J=ce.state,ve=J.loadedKeys,_e=J.loadingKeys,Oe=Object(i.a)(ve,te),Xe=Object(i.b)(_e,te);le&&le(Oe,{event:"load",node:ye}),ce.setUncontrolledState({loadedKeys:Oe}),ce.setState({loadingKeys:Xe}),Ee()}),{loadingKeys:Object(i.a)(re,te)}})})},ce.onNodeMouseEnter=function(ye,Ee){var ue=ce.props.onMouseEnter;ue&&ue({event:ye,node:Ee})},ce.onNodeMouseLeave=function(ye,Ee){var ue=ce.props.onMouseLeave;ue&&ue({event:ye,node:Ee})},ce.onNodeContextMenu=function(ye,Ee){var ue=ce.props.onRightClick;ue&&(ye.preventDefault(),ue({event:ye,node:Ee}))},ce.onFocus=function(){var ye=ce.props.onFocus;ce.setState({focused:!0}),ye&&ye.apply(void 0,arguments)},ce.onBlur=function(){var ye=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),ye&&ye.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var ye=ce.state,Ee=ye.expandedKeys,ue=ye.selectedKeys,se=ye.loadedKeys,$=ye.loadingKeys,me=ye.checkedKeys,re=ye.halfCheckedKeys,ae=ye.dragOverNodeKey,we=ye.dropPosition,le=ye.keyEntities;return{expandedKeys:Ee||[],selectedKeys:ue||[],loadedKeys:se||[],loadingKeys:$||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ae,dropPosition:we,keyEntities:le}},ce.setExpandedKeys=function(ye){var Ee=ce.state.treeData,ue=Object(r.d)(Ee,ye);ce.setUncontrolledState({expandedKeys:ye,flattenNodes:ue},!0)},ce.onNodeExpand=function(ye,Ee){var ue=ce.state.expandedKeys,se=ce.state.listChanging,$=ce.props,me=$.onExpand,re=$.loadData,ae=Ee.key,we=Ee.expanded;if(se)return;var le=ue.indexOf(ae),te=!we;if(Object(f.a)(we&&le!==-1||!we&&le===-1,"Expand state not sync with index check"),te?ue=Object(i.a)(ue,ae):ue=Object(i.b)(ue,ae),ce.setExpandedKeys(ue),me&&me(ue,{node:Ee,expanded:te,nativeEvent:ye.nativeEvent}),te&&re){var Q=ce.onNodeLoad(Ee);Q&&Q.then(function(){var J=Object(r.d)(ce.state.treeData,ue);ce.setUncontrolledState({flattenNodes:J})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(ye){var Ee=ce.state.activeKey,ue=ce.props.onActiveChange;if(Ee===ye)return;ce.setState({activeKey:ye}),ye!==null&&ce.scrollTo({key:ye}),ue&&ue(ye)},ce.getActiveItem=function(){var ye=ce.state,Ee=ye.activeKey,ue=ye.flattenNodes;return Ee===null?null:ue.find(function(se){var $=se.data.key;return $===Ee})||null},ce.offsetActiveKey=function(ye){var Ee=ce.state,ue=Ee.flattenNodes,se=Ee.activeKey,$=ue.findIndex(function(ae){var we=ae.data.key;return we===se});$===-1&&ye<0&&($=ue.length),$=($+ye+ue.length)%ue.length;var me=ue[$];if(me){var re=me.data.key;ce.onActiveChange(re)}else ce.onActiveChange(null)},ce.onKeyDown=function(ye){var Ee=ce.state,ue=Ee.activeKey,se=Ee.expandedKeys,$=Ee.checkedKeys,me=ce.props,re=me.onKeyDown,ae=me.checkable,we=me.selectable;switch(ye.which){case e.a.UP:{ce.offsetActiveKey(-1),ye.preventDefault();break}case e.a.DOWN:{ce.offsetActiveKey(1),ye.preventDefault();break}}var le=ce.getActiveItem();if(le&&le.data){var te=ce.getTreeNodeRequiredProps(),Q=le.data.isLeaf===!1||!!(le.data.children||[]).length,J=Object(r.b)(Object(m.a)(Object(m.a)({},Object(r.f)(ue,te)),{},{data:le.data,active:!0}));switch(ye.which){case e.a.LEFT:{Q&&se.includes(ue)?ce.onNodeExpand({},J):le.parent&&ce.onActiveChange(le.parent.data.key),ye.preventDefault();break}case e.a.RIGHT:{Q&&!se.includes(ue)?ce.onNodeExpand({},J):le.children&&le.children.length&&ce.onActiveChange(le.children[0].data.key),ye.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ae&&!J.disabled&&J.checkable!==!1&&!J.disableCheckbox?ce.onNodeCheck({},J,!$.includes(ue)):!ae&&we&&!J.disabled&&J.selectable!==!1&&ce.onNodeSelect({},J);break}}}re&&re(ye)},ce.setUncontrolledState=function(ye){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ce.destroyed)return;var se=!1,$=!0,me={};Object.keys(ye).forEach(function(re){if(re in ce.props){$=!1;return}se=!0,me[re]=ye[re]}),se&&(!Ee||$)&&ce.setState(Object(m.a)(Object(m.a)({},me),ue))},ce.scrollTo=function(ye){ce.listRef.current.scrollTo(ye)},ce}return Object(y.a)(Te,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ye,Ee=this.state,ue=Ee.focused,se=Ee.flattenNodes,$=Ee.keyEntities,me=Ee.dragging,re=Ee.activeKey,ae=this.props,we=ae.prefixCls,le=ae.className,te=ae.style,Q=ae.showLine,J=ae.focusable,ve=ae.tabIndex,_e=ve===void 0?0:ve,Oe=ae.selectable,Xe=ae.showIcon,tt=ae.icon,lt=ae.switcherIcon,dt=ae.draggable,vt=ae.checkable,_t=ae.checkStrictly,Ye=ae.disabled,je=ae.motion,ht=ae.loadData,Bt=ae.filterTreeNode,Et=ae.height,Pt=ae.itemHeight,Ze=ae.virtual,We=ae.titleRender,Je=ae.onContextMenu,Ae=Object(i.f)(this.props);return g.createElement(n.a.Provider,{value:{prefixCls:we,selectable:Oe,showIcon:Xe,icon:tt,switcherIcon:lt,draggable:dt,checkable:vt,checkStrictly:_t,disabled:Ye,keyEntities:$,loadData:ht,filterTreeNode:Bt,titleRender:We,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},g.createElement("div",{className:l()(we,le,(ye={},Object(M.a)(ye,"".concat(we,"-show-line"),Q),Object(M.a)(ye,"".concat(we,"-focused"),ue),Object(M.a)(ye,"".concat(we,"-active-focused"),re!==null),ye))},g.createElement(F,Object.assign({ref:this.listRef,prefixCls:we,style:te,data:se,disabled:Ye,selectable:Oe,checkable:!!vt,motion:je,dragging:me,height:Et,itemHeight:Pt,virtual:Ze,focusable:J,focused:ue,tabIndex:_e,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Je},this.getTreeNodeRequiredProps(),Ae))))}}],[{key:"getDerivedStateFromProps",value:function(ye,Ee){var ue=Ee.prevProps,se={prevProps:ye};function $(tt){return!ue&&tt in ye||ue&&ue[tt]!==ye[tt]}var me;if($("treeData")?me=ye.treeData:$("children")&&(Object(f.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),me=Object(r.c)(ye.children)),me){se.treeData=me;var re=Object(r.a)(me);se.keyEntities=Object(m.a)(Object(M.a)({},v,U),re.keyEntities)}var ae=se.keyEntities||Ee.keyEntities;if($("expandedKeys")||ue&&$("autoExpandParent"))se.expandedKeys=ye.autoExpandParent||!ue&&ye.defaultExpandParent?Object(i.e)(ye.expandedKeys,ae):ye.expandedKeys;else if(!ue&&ye.defaultExpandAll){var we=Object(m.a)({},ae);delete we[v],se.expandedKeys=Object.keys(we).map(function(tt){return we[tt].key})}else!ue&&ye.defaultExpandedKeys&&(se.expandedKeys=ye.autoExpandParent||ye.defaultExpandParent?Object(i.e)(ye.defaultExpandedKeys,ae):ye.defaultExpandedKeys);if(se.expandedKeys||delete se.expandedKeys,me||se.expandedKeys){var le=Object(r.d)(me||Ee.treeData,se.expandedKeys||Ee.expandedKeys);se.flattenNodes=le}if(ye.selectable&&($("selectedKeys")?se.selectedKeys=Object(i.d)(ye.selectedKeys,ye):!ue&&ye.defaultSelectedKeys&&(se.selectedKeys=Object(i.d)(ye.defaultSelectedKeys,ye))),ye.checkable){var te;if($("checkedKeys")?te=Object(i.j)(ye.checkedKeys)||{}:!ue&&ye.defaultCheckedKeys?te=Object(i.j)(ye.defaultCheckedKeys)||{}:me&&(te=Object(i.j)(ye.checkedKeys)||{checkedKeys:Ee.checkedKeys,halfCheckedKeys:Ee.halfCheckedKeys}),te){var Q=te,J=Q.checkedKeys,ve=J===void 0?[]:J,_e=Q.halfCheckedKeys,Oe=_e===void 0?[]:_e;if(!ye.checkStrictly){var Xe=Object(L.a)(ve,!0,ae);ve=Xe.checkedKeys,Oe=Xe.halfCheckedKeys}se.checkedKeys=ve,se.halfCheckedKeys=Oe}}return $("loadedKeys")&&(se.loadedKeys=ye.loadedKeys),se}}]),Te}(g.Component);K.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},K.TreeNode=u.a;var ee=K,he=z.b=ee},fKo2:function(k,z,o){},fjLI:function(k,z,o){"use strict";o.d(z,"f",function(){return n}),o.d(z,"b",function(){return i}),o.d(z,"a",function(){return r}),o.d(z,"d",function(){return c}),o.d(z,"e",function(){return h}),o.d(z,"c",function(){return d});var M=o("8HAY"),m=o("Vhoy"),O=o("MI8n"),b=o("JYp7"),y=o("pmY6"),C=o("24hK"),A=o("nnTU"),g=o("T8No"),e=o("Cg/j"),f=o("t9D7"),a=function(s,u,w,E){var _=arguments.length,P=_<3?u:E===null?E=Object.getOwnPropertyDescriptor(u,w):E,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(s,u,w,E);else for(var x=s.length-1;x>=0;x--)(R=s[x])&&(P=(_<3?R(P):_>3?R(u,w,P):R(u,w))||P);return _>3&&P&&Object.defineProperty(u,w,P),P},l=function(s,u){return function(w,E){u(w,E,s)}};function n(s){return s.command!==void 0}class i{constructor(s){this.id=i._idPool++,this._debugName=s}}i._idPool=0,i.CommandPalette=new i("CommandPalette"),i.EditorContext=new i("EditorContext"),i.SimpleEditorContext=new i("SimpleEditorContext"),i.EditorContextCopy=new i("EditorContextCopy"),i.EditorContextPeek=new i("EditorContextPeek"),i.MenubarEditMenu=new i("MenubarEditMenu"),i.MenubarCopy=new i("MenubarCopy"),i.MenubarGoMenu=new i("MenubarGoMenu"),i.MenubarSelectionMenu=new i("MenubarSelectionMenu"),i.InlineCompletionsActions=new i("InlineCompletionsActions");const r=Object(e.c)("menuService"),c=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new O.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===i.CommandPalette}}addCommand(s){return this.addCommands(b.a.single(s))}addCommands(s){for(const u of s)this._commands.set(u.id,u);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let u=!1;for(const w of s)u=this._commands.delete(w.id)||u;u&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((u,w)=>s.set(w,u)),s}appendMenuItem(s,u){return this.appendMenuItems(b.a.single({id:s,item:u}))}appendMenuItems(s){const u=new Set,w=new C.a;for(const{id:E,item:_}of s){let P=this._menuItems.get(E);P||(P=new C.a,this._menuItems.set(E,P)),w.push(P.push(_)),u.add(E)}return this._onDidChangeMenu.fire(u),Object(y.i)(()=>{if(w.size>0){for(let E of w)E();this._onDidChangeMenu.fire(u),w.clear()}})}getMenuItems(s){let u;return this._menuItems.has(s)?u=[...this._menuItems.get(s)]:u=[],s===i.CommandPalette&&this._appendImplicitItems(u),u}_appendImplicitItems(s){const u=new Set;for(const w of s)n(w)&&(u.add(w.command.id),w.alt&&u.add(w.alt.id));this._commands.forEach((w,E)=>{u.has(E)||s.push({command:w})})}};class h extends M.e{constructor(s,u,w,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=u,this._contextKeyService=w,this._options=E}get actions(){const s=[],u=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=u.getActions(this._options);u.dispose();for(const[,E]of w)E.length>0&&(s.push(...E),s.push(new M.d));return s.length&&s.pop(),s}}let d=class s{constructor(u,w,E,_,P){var R,x;if(this._commandService=P,this.id=u.id,this.label=(E==null?void 0:E.renderShortTitle)&&u.shortTitle?typeof u.shortTitle=="string"?u.shortTitle:u.shortTitle.value:typeof u.title=="string"?u.title:u.title.value,this.tooltip=(x=typeof u.tooltip=="string"?u.tooltip:(R=u.tooltip)===null||R===void 0?void 0:R.value)!==null&&x!==void 0?x:"",this.enabled=!u.precondition||_.contextMatchesRules(u.precondition),this.checked=void 0,u.toggled){const S=u.toggled.condition?u.toggled:{condition:u.toggled};this.checked=_.contextMatchesRules(S.condition),this.checked&&S.tooltip&&(this.tooltip=typeof S.tooltip=="string"?S.tooltip:S.tooltip.value),S.title&&(this.label=typeof S.title=="string"?S.title:S.title.value)}this.item=u,this.alt=w?new s(w,void 0,E,_,P):void 0,this._options=E,f.d.isThemeIcon(u.icon)&&(this.class=m.a.asClassName(u.icon))}dispose(){}run(...u){var w,E;let _=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(_=[..._,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(_=[..._,...u]),this._commandService.executeCommand(this.id,..._)}};d=a([l(3,g.b),l(4,A.b)],d)},fyJ8:function(k,z,o){"use strict";var M=o("rePB"),m=o("VTBJ"),O=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),C=o.n(y),A=o("TSYQ"),g=o.n(A),e=o("c+Xe"),f=o("sR1s");function a(c){return c&&Object(b.a)(c)==="object"&&!Array.isArray(c)&&!y.isValidElement(c)}function l(c){return typeof c=="string"?!0:Object(e.c)(c)}function n(c,h){var d,s=c.prefixCls,u=c.className,w=c.record,E=c.index,_=c.dataIndex,P=c.render,R=c.children,x=c.component,S=x===void 0?"td":x,v=c.colSpan,T=c.rowSpan,U=c.fixLeft,I=c.fixRight,N=c.firstFixLeft,V=c.lastFixLeft,H=c.firstFixRight,D=c.lastFixRight,W=c.appendNode,F=c.additionalProps,L=F===void 0?{}:F,K=c.ellipsis,ee=c.align,he=c.rowType,fe=c.isSticky,Ce="".concat(s,"-cell"),Te,ce;if(R)ce=R;else{var ye=Object(f.b)(w,_);if(ce=ye,P){var Ee=P(ye,w,E);a(Ee)?(ce=Ee.children,Te=Ee.props):ce=Ee}}Object(b.a)(ce)==="object"&&!Array.isArray(ce)&&!y.isValidElement(ce)&&(ce=null),K&&(V||H)&&(ce=y.createElement("span",{className:"".concat(Ce,"-content")},ce));var ue=Te||{},se=ue.colSpan,$=ue.rowSpan,me=ue.style,re=ue.className,ae=Object(O.a)(ue,["colSpan","rowSpan","style","className"]),we=se!==void 0?se:v,le=$!==void 0?$:T;if(we===0||le===0)return null;var te={},Q=typeof U=="number",J=typeof I=="number";Q&&(te.position="sticky",te.left=U),J&&(te.position="sticky",te.right=I);var ve={};ee&&(ve.textAlign=ee);var _e,Oe=K===!0?{showTitle:!0}:K;Oe&&(Oe.showTitle||he==="header")&&(typeof ce=="string"||typeof ce=="number"?_e=ce.toString():y.isValidElement(ce)&&typeof ce.props.children=="string"&&(_e=ce.props.children));var Xe=Object(m.a)(Object(m.a)(Object(m.a)({title:_e},ae),L),{},{colSpan:we&&we!==1?we:null,rowSpan:le&&le!==1?le:null,className:g()(Ce,u,(d={},Object(M.a)(d,"".concat(Ce,"-fix-left"),Q),Object(M.a)(d,"".concat(Ce,"-fix-left-first"),N),Object(M.a)(d,"".concat(Ce,"-fix-left-last"),V),Object(M.a)(d,"".concat(Ce,"-fix-right"),J),Object(M.a)(d,"".concat(Ce,"-fix-right-first"),H),Object(M.a)(d,"".concat(Ce,"-fix-right-last"),D),Object(M.a)(d,"".concat(Ce,"-ellipsis"),K),Object(M.a)(d,"".concat(Ce,"-with-append"),W),Object(M.a)(d,"".concat(Ce,"-fix-sticky"),(Q||J)&&fe),d),L.className,re),style:Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({},L.style),ve),te),me),ref:l(S)?h:null});return y.createElement(S,Object.assign({},Xe),W,ce)}var i=y.forwardRef(n);i.displayName="Cell";var r=y.memo(i,function(c,h){return h.shouldCellUpdate?!h.shouldCellUpdate(h.record,c.record):!1});z.a=r},"gb/T":function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.ECB=function(){var m=M.lib.BlockCipherMode.extend();return m.Encryptor=m.extend({processBlock:function(O,b){this._cipher.encryptBlock(O,b)}}),m.Decryptor=m.extend({processBlock:function(O,b){this._cipher.decryptBlock(O,b)}}),m}(),M.mode.ECB})},"h/E3":function(k,z,o){k.exports={information:"information___wfVJL",scroll:"scroll___2bOg0",formWrap:"formWrap___3qgTO",img:"img___2zP-8"}},h78n:function(k,z,o){"use strict";o.d(z,"a",function(){return N});var M=o("q1tI"),m=o.n(M),O=o("TSYQ"),b=o.n(O),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},C=function(D){var W=D.map(function(){return Object(M.useRef)()}),F=Object(M.useRef)();return Object(M.useEffect)(function(){var L=Date.now(),K=!1;Object.keys(W).forEach(function(ee){var he=W[ee].current;if(!he)return;K=!0;var fe=he.style;fe.transitionDuration=".3s, .3s, .3s, .06s",F.current&&L-F.current<100&&(fe.transitionDuration="0s, 0s")}),K&&(F.current=Date.now())}),[W]};function A(){return A=Object.assign||function(H){for(var D=1;D<arguments.length;D++){var W=arguments[D];for(var F in W)Object.prototype.hasOwnProperty.call(W,F)&&(H[F]=W[F])}return H},A.apply(this,arguments)}function g(H,D){return n(H)||l(H,D)||f(H,D)||e()}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(H,D){if(!H)return;if(typeof H=="string")return a(H,D);var W=Object.prototype.toString.call(H).slice(8,-1);if(W==="Object"&&H.constructor&&(W=H.constructor.name),W==="Map"||W==="Set")return Array.from(H);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return a(H,D)}function a(H,D){(D==null||D>H.length)&&(D=H.length);for(var W=0,F=new Array(D);W<D;W++)F[W]=H[W];return F}function l(H,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(H)))return;var W=[],F=!0,L=!1,K=void 0;try{for(var ee=H[Symbol.iterator](),he;!(F=(he=ee.next()).done)&&!(W.push(he.value),D&&W.length===D);F=!0);}catch(fe){L=!0,K=fe}finally{try{!F&&ee.return!=null&&ee.return()}finally{if(L)throw K}}return W}function n(H){if(Array.isArray(H))return H}function i(H,D){if(H==null)return{};var W=r(H,D),F,L;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(L=0;L<K.length;L++){if(F=K[L],D.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,F))continue;W[F]=H[F]}}return W}function r(H,D){if(H==null)return{};var W={},F=Object.keys(H),L,K;for(K=0;K<F.length;K++){if(L=F[K],D.indexOf(L)>=0)continue;W[L]=H[L]}return W}var c=function(D){var W=D.className,F=D.percent,L=D.prefixCls,K=D.strokeColor,ee=D.strokeLinecap,he=D.strokeWidth,fe=D.style,Ce=D.trailColor,Te=D.trailWidth,ce=D.transition,ye=i(D,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ye.gapPosition;var Ee=Array.isArray(F)?F:[F],ue=Array.isArray(K)?K:[K],se=C(Ee),$=g(se,1),me=$[0],re=he/2,ae=100-he/2,we="M ".concat(ee==="round"?re:0,",").concat(re,`
L `).concat(ee==="round"?ae:100,",").concat(re),le="0 0 100 ".concat(he),te=0;return m.a.createElement("svg",A({className:b()("".concat(L,"-line"),W),viewBox:le,preserveAspectRatio:"none",style:fe},ye),m.a.createElement("path",{className:"".concat(L,"-line-trail"),d:we,strokeLinecap:ee,stroke:Ce,strokeWidth:Te||he,fillOpacity:"0"}),Ee.map(function(Q,J){var ve={strokeDasharray:"".concat(Q,"px, 100px"),strokeDashoffset:"-".concat(te,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_e=ue[J]||ue[ue.length-1];return te+=Q,m.a.createElement("path",{key:J,className:"".concat(L,"-line-path"),d:we,strokeLinecap:ee,stroke:_e,strokeWidth:he,fillOpacity:"0",ref:me[J],style:ve})}))};c.defaultProps=y;var h=c;function d(){return d=Object.assign||function(H){for(var D=1;D<arguments.length;D++){var W=arguments[D];for(var F in W)Object.prototype.hasOwnProperty.call(W,F)&&(H[F]=W[F])}return H},d.apply(this,arguments)}function s(H,D){return P(H)||_(H,D)||w(H,D)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(H,D){if(!H)return;if(typeof H=="string")return E(H,D);var W=Object.prototype.toString.call(H).slice(8,-1);if(W==="Object"&&H.constructor&&(W=H.constructor.name),W==="Map"||W==="Set")return Array.from(H);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return E(H,D)}function E(H,D){(D==null||D>H.length)&&(D=H.length);for(var W=0,F=new Array(D);W<D;W++)F[W]=H[W];return F}function _(H,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(H)))return;var W=[],F=!0,L=!1,K=void 0;try{for(var ee=H[Symbol.iterator](),he;!(F=(he=ee.next()).done)&&!(W.push(he.value),D&&W.length===D);F=!0);}catch(fe){L=!0,K=fe}finally{try{!F&&ee.return!=null&&ee.return()}finally{if(L)throw K}}return W}function P(H){if(Array.isArray(H))return H}function R(H,D){if(H==null)return{};var W=x(H,D),F,L;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(L=0;L<K.length;L++){if(F=K[L],D.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,F))continue;W[F]=H[F]}}return W}function x(H,D){if(H==null)return{};var W={},F=Object.keys(H),L,K;for(K=0;K<F.length;K++){if(L=F[K],D.indexOf(L)>=0)continue;W[L]=H[L]}return W}var S=0;function v(H){return+H.replace("%","")}function T(H){return Array.isArray(H)?H:[H]}function U(H,D,W,F){var L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,K=arguments.length>5?arguments[5]:void 0,ee=50-F/2,he=0,fe=-ee,Ce=0,Te=-2*ee;switch(K){case"left":he=-ee,fe=0,Ce=2*ee,Te=0;break;case"right":he=ee,fe=0,Ce=-2*ee,Te=0;break;case"bottom":fe=ee,Te=2*ee;break;default:}var ce="M 50,50 m ".concat(he,",").concat(fe,`
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(Ce,",").concat(-Te,`
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(-Ce,",").concat(Te),ye=Math.PI*2*ee,Ee={stroke:W,strokeDasharray:"".concat(D/100*(ye-L),"px ").concat(ye,"px"),strokeDashoffset:"-".concat(L/2+H/100*(ye-L),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:Ee}}var I=function(D){var W=D.prefixCls,F=D.strokeWidth,L=D.trailWidth,K=D.gapDegree,ee=D.gapPosition,he=D.trailColor,fe=D.strokeLinecap,Ce=D.style,Te=D.className,ce=D.strokeColor,ye=D.percent,Ee=R(D,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(M.useMemo)(function(){return S+=1,S},[]),se=U(0,100,he,F,K,ee),$=se.pathString,me=se.pathStyle,re=T(ye),ae=T(ce),we=ae.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),le=C(re),te=s(le,1),Q=te[0],J=function(){var _e=0;return re.map(function(Oe,Xe){var tt=ae[Xe]||ae[ae.length-1],lt=Object.prototype.toString.call(tt)==="[object Object]"?"url(#".concat(W,"-gradient-").concat(ue,")"):"",dt=U(_e,Oe,tt,F,K,ee);return _e+=Oe,m.a.createElement("path",{key:Xe,className:"".concat(W,"-circle-path"),d:dt.pathString,stroke:lt,strokeLinecap:fe,strokeWidth:F,opacity:Oe===0?0:1,fillOpacity:"0",style:dt.pathStyle,ref:Q[Xe]})})};return m.a.createElement("svg",d({className:b()("".concat(W,"-circle"),Te),viewBox:"0 0 100 100",style:Ce},Ee),we&&m.a.createElement("defs",null,m.a.createElement("linearGradient",{id:"".concat(W,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(we).sort(function(ve,_e){return v(ve)-v(_e)}).map(function(ve,_e){return m.a.createElement("stop",{key:_e,offset:ve,stopColor:we[ve]})}))),m.a.createElement("path",{className:"".concat(W,"-circle-trail"),d:$,stroke:he,strokeLinecap:fe,strokeWidth:L||F,fillOpacity:"0",style:me}),J().reverse())};I.defaultProps=y;var N=I,V={Line:h,Circle:N}},hW5Z:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2rjmw",flex_space_between:"flex_space_between___1LywI",flex_box_vertical_center:"flex_box_vertical_center___S66g_",flex_box_center_end:"flex_box_center_end___1QDp6",flex_box_column:"flex_box_column___12YxX",complete:"complete___2qtu-",cancel:"cancel___3WJG4",save:"save___oTylI"}},hW8S:function(k,z,o){"use strict";o.d(z,"a",function(){return b}),o.d(z,"c",function(){return y}),o.d(z,"b",function(){return C});var M=o("VTBJ"),m=o("Ff2n"),O=o("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function y(A){var g=A.expandable,e=Object(m.a)(A,["expandable"]);return"expandable"in A?Object(M.a)(Object(M.a)({},e),g):e}function C(A){return Object.keys(A).reduce(function(g,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(g[e]=A[e]),g},{})}},"iL++":function(k,z,o){k.exports={flex_box_center:"flex_box_center___2pHUo",flex_space_between:"flex_space_between___3Bfes",flex_box_vertical_center:"flex_box_vertical_center___1thiW",flex_box_center_end:"flex_box_center_end___3Zr7k",flex_box_column:"flex_box_column___3xe1a",list:"list___3rlGv",wrap:"wrap____oZzM",lockWrap:"lockWrap___24eY2",top:"top___3SCOc",sign:"sign____uZ_B",name:"name___2nHyM",img:"img___3Spn7",text:"text___1Pg2L",btns:"btns___Kr_Ti",bottom:"bottom___2_iOx"}},ic2d:function(k,z,o){"use strict";o.d(z,"a",function(){return b});var M=o("FWmy"),m=o("746U");class O{constructor(){this.data=new Map}add(y,C){M.a(m.l(y)),M.a(m.k(C)),M.a(!this.data.has(y),"There is already an extension with this id"),this.data.set(y,C)}as(y){return this.data.get(y)||null}}const b=new O},jO9C:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso97971={pad:function(m,O){m.concat(M.lib.WordArray.create([2147483648],1)),M.pad.ZeroPadding.pad(m,O)},unpad:function(m){M.pad.ZeroPadding.unpad(m),m.sigBytes--}},M.pad.Iso97971})},ji0R:function(k,z,o){k.exports=o.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(k,z,o){"use strict";var M=o("g9YV"),m=o("wCAj"),O=o("miYZ"),b=o("tsqr"),y=o("5Dmo"),C=o("3S7+"),A=o("sRBo"),g=o("kaz8"),e=o("oBTY"),f=o("9og8"),a=o("tJVT"),l=o("k1fw"),n=o("+L6B"),i=o("2/Rp"),r=o("O3gP"),c=o("lrIw"),h=o("5NDa"),d=o("5rEg"),s=o("y8nQ"),u=o("Vl3Y"),w=o("OaEy"),E=o("2fM7"),_=o("WmNS"),P=o.n(_),R=o("q1tI"),x=o.n(R),S=o("55Ip"),v=o("wd/R"),T=o.n(v),U=o("RotF"),I=o.n(U),N=o("E7E6"),V=o.n(N),H=o("oUNq"),D=o("Nf5h"),W=o("Fhpe"),F=o.n(W),L=[];function K(Ce){var Te=Ce.onSearch,ce=Ce.schools;return x.a.createElement(u.a,{colon:!1,layout:"inline",onFinish:Te,initialValues:{keyword:"",school_name:"",search_type:"1"},className:"search-form"},x.a.createElement(u.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},x.a.createElement(E.a,{dropdownClassName:F.a.selectdown,style:{width:148}},x.a.createElement(E.a.Option,{value:"1"},"\u59D3\u540D"),x.a.createElement(E.a.Option,{value:"2"},"\u624B\u673A\u53F7"),x.a.createElement(E.a.Option,{value:"3"},"\u90AE\u7BB1"))),x.a.createElement(u.a.Item,{label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",style:{marginLeft:44},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},x.a.createElement(d.a,{allowClear:!0,style:{width:170},size:"large"})),x.a.createElement(u.a.Item,{label:"\u5355\u4F4D",name:"school_name",style:{marginLeft:10}},x.a.createElement(c.a,{options:ce,style:{width:383},size:"large",showSearch:!0,filterOption:function(Ee,ue){return ue.value.toUpperCase().indexOf(Ee.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),x.a.createElement(u.a.Item,null,x.a.createElement(i.a,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",border:"1px solid #BACFFE"},htmlType:"submit"},"\u641C\u7D22")))}var ee;(function(Ce){Ce[Ce.INITDATA=0]="INITDATA",Ce[Ce.INITSCHOOLS=1]="INITSCHOOLS",Ce[Ce.SHOWLOADING=2]="SHOWLOADING",Ce[Ce.SELECTEDIDS=3]="SELECTEDIDS",Ce[Ce.SETQUERY=4]="SETQUERY",Ce[Ce.SETPAGE=5]="SETPAGE"})(ee||(ee={}));function he(Ce,Te){switch(Te.type){case ee.INITDATA:return Object(l.a)(Object(l.a)({},Ce),Te.payload);case ee.SETQUERY:return Object(l.a)(Object(l.a)({},Ce),Te.payload);case ee.SETPAGE:return Object(l.a)(Object(l.a)({},Ce),{},{page:Te.payload,reload:!1});case ee.SHOWLOADING:return Object(l.a)(Object(l.a)({},Ce),{},{loading:Te.payload});case ee.INITSCHOOLS:return Object(l.a)(Object(l.a)({},Ce),{},{schools:Te.payload});case ee.SELECTEDIDS:return Object(l.a)(Object(l.a)({},Ce),{},{selectedIds:Te.payload});default:throw new Error}}var fe={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};z.a=function(Ce){var Te=Ce.onSelect,ce=Ce.onCancel,ye=Ce.container_id,Ee=Ce.container_type,ue=Object(R.useReducer)(he,fe),se=Object(a.a)(ue,2),$=se[0],me=se[1],re=$.data,ae=$.schools,we=$.loading,le=$.selectedIds,te=$.page,Q=$.count,J=$.query,ve=$.reload;Object(R.useEffect)(function(){function vt(){return _t.apply(this,arguments)}function _t(){return _t=Object(f.a)(P.a.mark(function Ye(){var je,ht,Bt;return P.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(H.Ab)(Object(l.a)(Object(l.a)({},J),{},{page:te,container_type:Ee,container_id:ye}));case 2:je=Pt.sent,ht=je.users,Bt=je.user_count,me({type:ee.INITDATA,payload:{data:ve?ht:[].concat(Object(e.a)(re),Object(e.a)(ht)),count:Bt}});case 6:case"end":return Pt.stop()}},Ye)})),_t.apply(this,arguments)}J&&vt()},[te,J,ve,ye,Ee]),Object(R.useEffect)(function(){function vt(){return _t.apply(this,arguments)}function _t(){return _t=Object(f.a)(P.a.mark(function Ye(){var je,ht;return P.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,Object(H.nb)({});case 2:je=Et.sent,ht=je.school_names,me({type:ee.INITSCHOOLS,payload:ht.map(function(Pt){return{value:Pt}})});case 5:case"end":return Et.stop()}},Ye)})),_t.apply(this,arguments)}vt()},[]);var _e=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(_t,Ye){return x.a.createElement(g.a,{value:Ye.numid,checked:le.includes(Ye.numid),disabled:!!_t})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(_t,Ye){return x.a.createElement("div",null,x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement(S.a,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(Ye.login),target:"_blank"},_t||"--")))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(_t){return x.a.createElement("span",{style:{color:"#000000"}},_t?"\u662F":"\u5426")}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t?T()(_t).format("YYYY-MM-DD HH:mm"):"- -"},x.a.createElement("span",{style:{color:"#000000"}},_t?T()(_t).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(_t){if(_t===1)return x.a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Oe(vt){me({type:ee.SETQUERY,payload:{page:1,reload:!0,query:vt}})}function Xe(vt){me({type:ee.SETPAGE,payload:vt})}function tt(vt){var _t=le.indexOf(vt);_t>=0?le.splice(_t,1):le.push(vt),me({type:ee.SELECTEDIDS,payload:Object(e.a)(le)})}function lt(){le.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Te(le,ye),me({type:ee.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var dt=Q>te*10;return x.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},x.a.createElement(K,{onSearch:Oe,schools:ae}),J?x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{className:"flexd-table-header mt20"},x.a.createElement(D.f,null,x.a.createElement(m.a,{pagination:!1,dataSource:L,columns:_e}))),x.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},x.a.createElement(I.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:Xe,hasMore:dt,useWindow:!1},x.a.createElement(D.f,null,x.a.createElement(m.a,{loading:we,showHeader:!1,pagination:!1,dataSource:re,columns:_e,onRow:function(_t){return{onClick:function(je){_t.added!==1&&tt(_t.numid)}}}})))),x.a.createElement("div",{className:"flex-container flex-end"},x.a.createElement(i.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ce},"\u53D6\u6D88"),x.a.createElement(i.a,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:lt},"\u786E\u5B9A"))):x.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},x.a.createElement("img",{src:V.a,width:"100",alt:""}),x.a.createElement("br",null),x.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(k,z,o){"use strict";o.d(z,"a",function(){return Yr});var M=o("rePB"),m=o("ODXe"),O=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),C=o("TSYQ"),A=o.n(C),g=o("Zm9Q"),e=o("6cGi"),f=o("KQm4"),a=o("xEkU"),l=o.n(a),n=o("t23M");function i(Qe){var ut=Object(y.useRef)(),yt=Object(y.useRef)(!1);function at(){for(var Me=arguments.length,Ve=new Array(Me),Ie=0;Ie<Me;Ie++)Ve[Ie]=arguments[Ie];yt.current||(l.a.cancel(ut.current),ut.current=l()(function(){Qe.apply(void 0,Ve)}))}return Object(y.useEffect)(function(){return function(){yt.current=!0,l.a.cancel(ut.current)}},[]),at}function r(Qe){var ut=Object(y.useRef)([]),yt=Object(y.useState)({}),at=Object(m.a)(yt,2),Me=at[1],Ve=Object(y.useRef)(typeof Qe=="function"?Qe():Qe),Ie=i(function(){var qe=Ve.current;ut.current.forEach(function(pt){qe=pt(qe)}),ut.current=[],Ve.current=qe,Me({})});function $e(qe){ut.current.push(qe),Ie()}return[Ve.current,$e]}var c=o("4IlW");function h(Qe,ut){var yt,at=Qe.prefixCls,Me=Qe.id,Ve=Qe.active,Ie=Qe.rtl,$e=Qe.tab,qe=$e.key,pt=$e.tab,it=$e.disabled,It=$e.closeIcon,zt=Qe.tabBarGutter,gn=Qe.tabPosition,dn=Qe.closable,pn=Qe.renderWrapper,hn=Qe.removeAriaLabel,zn=Qe.editable,Sn=Qe.onClick,jr=Qe.onRemove,Pr=Qe.onFocus,Qr="".concat(at,"-tab");y.useEffect(function(){return jr},[]);var Wr={};gn==="top"||gn==="bottom"?Wr[Ie?"marginLeft":"marginRight"]=zt:Wr.marginBottom=zt;var ta=zn&&dn!==!1&&!it;function Xn(Cn){if(it)return;Sn(Cn)}function Tr(Cn){Cn.preventDefault(),Cn.stopPropagation(),zn.onEdit("remove",{key:qe,event:Cn})}var Yn=y.createElement("div",{key:qe,ref:ut,className:A()(Qr,(yt={},Object(M.a)(yt,"".concat(Qr,"-with-remove"),ta),Object(M.a)(yt,"".concat(Qr,"-active"),Ve),Object(M.a)(yt,"".concat(Qr,"-disabled"),it),yt)),style:Wr,onClick:Xn},y.createElement("div",{role:"tab","aria-selected":Ve,id:Me&&"".concat(Me,"-tab-").concat(qe),className:"".concat(Qr,"-btn"),"aria-controls":Me&&"".concat(Me,"-panel-").concat(qe),"aria-disabled":it,tabIndex:it?null:0,onClick:function(Hn){Hn.stopPropagation(),Xn(Hn)},onKeyDown:function(Hn){[c.a.SPACE,c.a.ENTER].includes(Hn.which)&&(Hn.preventDefault(),Xn(Hn))},onFocus:Pr},pt),ta&&y.createElement("button",{type:"button","aria-label":hn||"remove",tabIndex:0,className:"".concat(Qr,"-remove"),onClick:function(Hn){Hn.stopPropagation(),Tr(Hn)}},It||zn.removeIcon||"\xD7"));return pn&&(Yn=pn(Yn)),Yn}var d=y.forwardRef(h),s={width:0,height:0,left:0,top:0};function u(Qe,ut,yt){return Object(y.useMemo)(function(){for(var at,Me=new Map,Ve=ut.get((at=Qe[0])===null||at===void 0?void 0:at.key)||s,Ie=Ve.left+Ve.width,$e=0;$e<Qe.length;$e+=1){var qe=Qe[$e].key,pt=ut.get(qe);if(!pt){var it;pt=ut.get((it=Qe[$e-1])===null||it===void 0?void 0:it.key)||s}var It=Me.get(qe)||Object(b.a)({},pt);It.right=Ie-It.left-It.width,Me.set(qe,It)}return Me},[Qe.map(function(at){return at.key}).join("_"),ut,yt])}var w={width:0,height:0,left:0,top:0,right:0};function E(Qe,ut,yt,at,Me){var Ve=Me.tabs,Ie=Me.tabPosition,$e=Me.rtl,qe,pt,it;["top","bottom"].includes(Ie)?(qe="width",pt=$e?"right":"left",it=Math.abs(ut.left)):(qe="height",pt="top",it=-ut.top);var It=ut[qe],zt=yt[qe],gn=at[qe],dn=It;return zt+gn>It&&(dn=It-gn),Object(y.useMemo)(function(){if(!Ve.length)return[0,0];for(var pn=Ve.length,hn=pn,zn=0;zn<pn;zn+=1){var Sn=Qe.get(Ve[zn].key)||w;if(Sn[pt]+Sn[qe]>it+dn){hn=zn-1;break}}for(var jr=0,Pr=pn-1;Pr>=0;Pr-=1){var Qr=Qe.get(Ve[Pr].key)||w;if(Qr[pt]<it){jr=Pr+1;break}}return[jr,hn]},[Qe,it,dn,Ie,Ve.map(function(pn){return pn.key}).join("_"),$e])}var _=o("wx14"),P=o("1OyB"),R=o("vuIU"),x=o("JX7q"),S=o("Ji7U"),v=o("LK+K"),T=o("I8Z2"),U=o("bT9E"),I=o("2GS6"),N=o("Gytx"),V=o.n(N),H=o("U8pU"),D=/iPhone/i,W=/iPod/i,F=/iPad/i,L=/\bAndroid(?:.+)Mobile\b/i,K=/Android/i,ee=/\bAndroid(?:.+)SD4930UR\b/i,he=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,fe=/Windows Phone/i,Ce=/\bWindows(?:.+)ARM\b/i,Te=/BlackBerry/i,ce=/BB10/i,ye=/Opera Mini/i,Ee=/\b(CriOS|Chrome)(?:.+)Mobile/i,ue=/Mobile(?:.+)Firefox\b/i;function se(Qe,ut){return Qe.test(ut)}function $(Qe){var ut=Qe||(typeof navigator!="undefined"?navigator.userAgent:""),yt=(ut||"").split("[FBAN");if(typeof yt[1]!="undefined"){var at=yt,Me=Object(m.a)(at,1);ut=Me[0]}if(yt=ut.split("Twitter"),typeof yt[1]!="undefined"){var Ve=yt,Ie=Object(m.a)(Ve,1);ut=Ie[0]}var $e={apple:{phone:se(D,ut)&&!se(fe,ut),ipod:se(W,ut),tablet:!se(D,ut)&&se(F,ut)&&!se(fe,ut),device:(se(D,ut)||se(W,ut)||se(F,ut))&&!se(fe,ut)},amazon:{phone:se(ee,ut),tablet:!se(ee,ut)&&se(he,ut),device:se(ee,ut)||se(he,ut)},android:{phone:!se(fe,ut)&&se(ee,ut)||!se(fe,ut)&&se(L,ut),tablet:!se(fe,ut)&&!se(ee,ut)&&!se(L,ut)&&(se(he,ut)||se(K,ut)),device:!se(fe,ut)&&(se(ee,ut)||se(he,ut)||se(L,ut)||se(K,ut))||se(/\bokhttp\b/i,ut)},windows:{phone:se(fe,ut),tablet:se(Ce,ut),device:se(fe,ut)||se(Ce,ut)},other:{blackberry:se(Te,ut),blackberry10:se(ce,ut),opera:se(ye,ut),firefox:se(ue,ut),chrome:se(Ee,ut),device:se(Te,ut)||se(ce,ut)||se(ye,ut)||se(ue,ut)||se(Ee,ut)},any:null,phone:null,tablet:null};return $e.any=$e.apple.device||$e.android.device||$e.windows.device||$e.other.device,$e.phone=$e.apple.phone||$e.android.phone||$e.windows.phone,$e.tablet=$e.apple.tablet||$e.android.tablet||$e.windows.tablet,$e}var me=Object(b.a)(Object(b.a)({},$()),{},{isMobile:$}),re=me;function ae(){}function we(Qe,ut,yt){var at=ut||"";return Qe.key||"".concat(at,"item_").concat(yt)}function le(Qe){return"".concat(Qe,"-menu-")}function te(Qe,ut){var yt=-1;y.Children.forEach(Qe,function(at){yt+=1,at&&at.type&&at.type.isMenuItemGroup?y.Children.forEach(at.props.children,function(Me){yt+=1,ut(Me,yt)}):ut(at,yt)})}function Q(Qe,ut,yt){if(!Qe||yt.find)return;y.Children.forEach(Qe,function(at){if(at){var Me=at.type;if(!Me||!(Me.isSubMenu||Me.isMenuItem||Me.isMenuItemGroup))return;ut.indexOf(at.key)!==-1?yt.find=!0:at.props.children&&Q(at.props.children,ut,yt)}})}var J=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],ve=function(ut){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=ut&&typeof ut.getBoundingClientRect=="function"&&ut.getBoundingClientRect().width;if(at){if(yt){var Me=getComputedStyle(ut),Ve=Me.marginLeft,Ie=Me.marginRight;at+=+Ve.replace("px","")+ +Ie.replace("px","")}at=+at.toFixed(6)}return at||0},_e=function(ut,yt,at){ut&&Object(H.a)(ut.style)==="object"&&(ut.style[yt]=at)},Oe=function(){return re.any},Xe=o("bdgK"),tt=o("i8i4"),lt=o.n(tt),dt=o("wgJM"),vt=o("l4aY"),_t=o("m+aA"),Ye=o("c+Xe"),je=o("zT1h"),ht=o("QC+M");function Bt(Qe,ut,yt){return yt?Qe[0]===ut[0]:Qe[0]===ut[0]&&Qe[1]===ut[1]}function Et(Qe,ut,yt){var at=Qe[ut]||{};return Object(b.a)(Object(b.a)({},at),yt)}function Pt(Qe,ut,yt,at){for(var Me=yt.points,Ve=Object.keys(Qe),Ie=0;Ie<Ve.length;Ie+=1){var $e=Ve[Ie];if(Bt(Qe[$e].points,Me,at))return"".concat(ut,"-placement-").concat($e)}return""}var Ze=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Qe=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Qe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Qe==null?void 0:Qe.substr(0,4)))},We=o("MNnm");function Je(Qe,ut){var yt={};return yt[Qe.toLowerCase()]=ut.toLowerCase(),yt["Webkit".concat(Qe)]="webkit".concat(ut),yt["Moz".concat(Qe)]="moz".concat(ut),yt["ms".concat(Qe)]="MS".concat(ut),yt["O".concat(Qe)]="o".concat(ut.toLowerCase()),yt}function Ae(Qe,ut){var yt={animationend:Je("Animation","AnimationEnd"),transitionend:Je("Transition","TransitionEnd")};return Qe&&("AnimationEvent"in ut||delete yt.animationend.animation,"TransitionEvent"in ut||delete yt.transitionend.transition),yt}var Ue=Ae(Object(We.a)(),typeof window!="undefined"?window:{}),He={};if(Object(We.a)()){var Fe=document.createElement("div");He=Fe.style}var et={};function mt(Qe){if(et[Qe])return et[Qe];var ut=Ue[Qe];if(ut)for(var yt=Object.keys(ut),at=yt.length,Me=0;Me<at;Me+=1){var Ve=yt[Me];if(Object.prototype.hasOwnProperty.call(ut,Ve)&&Ve in He)return et[Qe]=ut[Ve],et[Qe]}return""}var Lt=mt("animationend"),Xt=mt("transitionend"),rn=!!(Lt&&Xt),wt=Lt||"animationend",bt=Xt||"transitionend";function ke(Qe,ut){if(!Qe)return null;if(Object(H.a)(Qe)==="object"){var yt=ut.replace(/-\w/g,function(at){return at[1].toUpperCase()});return Qe[yt]}return"".concat(Qe,"-").concat(ut)}var nt="none",rt="appear",De="enter",Ke="leave",Ct="none",ft="prepare",xt="start",Mt="active",ct="end";function Ut(Qe){var ut=Object(y.useRef)(!1),yt=Object(y.useState)(Qe),at=Object(m.a)(yt,2),Me=at[0],Ve=at[1];function Ie($e){ut.current||Ve($e)}return Object(y.useEffect)(function(){return function(){ut.current=!0}},[]),[Me,Ie]}var Ft=Object(We.a)()?y.useLayoutEffect:y.useEffect,on=Ft,cn=function(){var Qe=y.useRef(null);function ut(){dt.a.cancel(Qe.current)}function yt(at){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ut();var Ve=Object(dt.a)(function(){Me<=1?at({isCanceled:function(){return Ve!==Qe.current}}):yt(at,Me-1)});Qe.current=Ve}return y.useEffect(function(){return function(){ut()}},[]),[yt,ut]},ln=[ft,xt,Mt,ct],kn=!1,In=!0;function sn(Qe){return Qe===Mt||Qe===ct}var Gn=function(Qe,ut){var yt=y.useState(Ct),at=Object(m.a)(yt,2),Me=at[0],Ve=at[1],Ie=cn(),$e=Object(m.a)(Ie,2),qe=$e[0],pt=$e[1];function it(){Ve(ft)}return on(function(){if(Me!==Ct&&Me!==ct){var It=ln.indexOf(Me),zt=ln[It+1],gn=ut(Me);gn===kn?Ve(zt):qe(function(dn){function pn(){if(dn.isCanceled())return;Ve(zt)}gn===!0?pn():Promise.resolve(gn).then(pn)})}},[Qe,Me]),y.useEffect(function(){return function(){pt()}},[]),[it,Me]},Nn=function(Qe){var ut=Object(y.useRef)(),yt=Object(y.useRef)(Qe);yt.current=Qe;var at=y.useCallback(function(Ie){yt.current(Ie)},[]);function Me(Ie){Ie&&(Ie.removeEventListener(bt,at),Ie.removeEventListener(wt,at))}function Ve(Ie){ut.current&&ut.current!==Ie&&Me(ut.current),Ie&&Ie!==ut.current&&(Ie.addEventListener(bt,at),Ie.addEventListener(wt,at),ut.current=Ie)}return y.useEffect(function(){return function(){Me(ut.current)}},[]),[Ve,Me]};function Vn(Qe,ut,yt,at){var Me=at.motionEnter,Ve=Me===void 0?!0:Me,Ie=at.motionAppear,$e=Ie===void 0?!0:Ie,qe=at.motionLeave,pt=qe===void 0?!0:qe,it=at.motionDeadline,It=at.motionLeaveImmediately,zt=at.onAppearPrepare,gn=at.onEnterPrepare,dn=at.onLeavePrepare,pn=at.onAppearStart,hn=at.onEnterStart,zn=at.onLeaveStart,Sn=at.onAppearActive,jr=at.onEnterActive,Pr=at.onLeaveActive,Qr=at.onAppearEnd,Wr=at.onEnterEnd,ta=at.onLeaveEnd,Xn=at.onVisibleChanged,Tr=Ut(),Yn=Object(m.a)(Tr,2),Cn=Yn[0],Hn=Yn[1],Vr=Ut(nt),ua=Object(m.a)(Vr,2),hr=ua[0],aa=ua[1],Ca=Ut(null),ha=Object(m.a)(Ca,2),Sa=ha[0],Or=ha[1],br=Object(y.useRef)(!1),Mr=Object(y.useRef)(null),ar=Object(y.useRef)(!1),pa=Object(y.useRef)(null);function xa(){var ja=yt();return ja||pa.current}var ba=Object(y.useRef)(!1);function Aa(ja){var Ma=xa();if(ja&&!ja.deadline&&ja.target!==Ma)return;var Za;hr===rt&&ba.current?Za=Qr==null?void 0:Qr(Ma,ja):hr===De&&ba.current?Za=Wr==null?void 0:Wr(Ma,ja):hr===Ke&&ba.current&&(Za=ta==null?void 0:ta(Ma,ja)),Za!==!1&&!ar.current&&(aa(nt),Or(null))}var ga=Nn(Aa),Na=Object(m.a)(ga,1),ka=Na[0],Fa=y.useMemo(function(){var ja,Ma,Za;switch(hr){case"appear":return ja={},Object(M.a)(ja,ft,zt),Object(M.a)(ja,xt,pn),Object(M.a)(ja,Mt,Sn),ja;case"enter":return Ma={},Object(M.a)(Ma,ft,gn),Object(M.a)(Ma,xt,hn),Object(M.a)(Ma,Mt,jr),Ma;case"leave":return Za={},Object(M.a)(Za,ft,dn),Object(M.a)(Za,xt,zn),Object(M.a)(Za,Mt,Pr),Za;default:return{}}},[hr]),ni=Gn(hr,function(ja){if(ja===ft){var Ma=Fa[ft];return Ma?Ma(xa()):kn}if(La in Fa){var Za;Or(((Za=Fa[La])===null||Za===void 0?void 0:Za.call(Fa,xa(),null))||null)}return La===Mt&&(ka(xa()),it>0&&(clearTimeout(Mr.current),Mr.current=setTimeout(function(){Aa({deadline:!0})},it))),In}),Fi=Object(m.a)(ni,2),Ai=Fi[0],La=Fi[1],bi=sn(La);ba.current=bi,on(function(){Hn(ut);var ja=br.current;if(br.current=!0,!Qe)return;var Ma;!ja&&ut&&$e&&(Ma=rt),ja&&ut&&Ve&&(Ma=De),(ja&&!ut&&pt||!ja&&It&&!ut&&pt)&&(Ma=Ke),Ma&&(aa(Ma),Ai())},[ut]),Object(y.useEffect)(function(){(hr===rt&&!$e||hr===De&&!Ve||hr===Ke&&!pt)&&aa(nt)},[$e,Ve,pt]),Object(y.useEffect)(function(){return function(){clearTimeout(Mr.current),ar.current=!0}},[]),Object(y.useEffect)(function(){Cn!==void 0&&hr===nt&&(Xn==null||Xn(Cn))},[Cn,hr]);var Si=Sa;return Fa[ft]&&La===xt&&(Si=Object(b.a)({transition:"none"},Si)),[hr,La,Si,Cn!=null?Cn:ut]}var Zn=function(Qe){Object(S.a)(yt,Qe);var ut=Object(v.a)(yt);function yt(){return Object(P.a)(this,yt),ut.apply(this,arguments)}return Object(R.a)(yt,[{key:"render",value:function(){return this.props.children}}]),yt}(y.Component),xr=Zn;function dr(Qe){var ut=Qe;Object(H.a)(Qe)==="object"&&(ut=Qe.transitionSupport);function yt(Me){return!!(Me.motionName&&ut)}var at=y.forwardRef(function(Me,Ve){var Ie=Me.visible,$e=Ie===void 0?!0:Ie,qe=Me.removeOnLeave,pt=qe===void 0?!0:qe,it=Me.forceRender,It=Me.children,zt=Me.motionName,gn=Me.leavedClassName,dn=Me.eventProps,pn=yt(Me),hn=Object(y.useRef)(),zn=Object(y.useRef)();function Sn(){try{return Object(_t.a)(hn.current||zn.current)}catch(aa){return null}}var jr=Vn(pn,$e,Sn,Me),Pr=Object(m.a)(jr,4),Qr=Pr[0],Wr=Pr[1],ta=Pr[2],Xn=Pr[3],Tr=y.useRef(Xn);Xn&&(Tr.current=!0);var Yn=Object(y.useRef)(Ve);Yn.current=Ve;var Cn=y.useCallback(function(aa){hn.current=aa,Object(Ye.b)(Yn.current,aa)},[]),Hn,Vr=Object(b.a)(Object(b.a)({},dn),{},{visible:$e});if(!It)Hn=null;else if(Qr===nt||!yt(Me))Xn?Hn=It(Object(b.a)({},Vr),Cn):!pt&&Tr.current?Hn=It(Object(b.a)(Object(b.a)({},Vr),{},{className:gn}),Cn):it?Hn=It(Object(b.a)(Object(b.a)({},Vr),{},{style:{display:"none"}}),Cn):Hn=null;else{var ua,hr;Wr===ft?hr="prepare":sn(Wr)?hr="active":Wr===xt&&(hr="start"),Hn=It(Object(b.a)(Object(b.a)({},Vr),{},{className:A()(ke(zt,Qr),(ua={},Object(M.a)(ua,ke(zt,"".concat(Qr,"-").concat(hr)),hr),Object(M.a)(ua,zt,typeof zt=="string"),ua)),style:ta}),Cn)}return y.createElement(xr,{ref:zn},Hn)});return at.displayName="CSSMotion",at}var un=dr(rn),$t="add",An="keep",Ur="remove",Ar="removed";function Cr(Qe){var ut;return Qe&&Object(H.a)(Qe)==="object"&&"key"in Qe?ut=Qe:ut={key:Qe},Object(b.a)(Object(b.a)({},ut),{},{key:String(ut.key)})}function gr(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Qe.map(Cr)}function pe(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=[],at=0,Me=ut.length,Ve=gr(Qe),Ie=gr(ut);Ve.forEach(function(pt){for(var it=!1,It=at;It<Me;It+=1){var zt=Ie[It];if(zt.key===pt.key){at<It&&(yt=yt.concat(Ie.slice(at,It).map(function(gn){return Object(b.a)(Object(b.a)({},gn),{},{status:$t})})),at=It),yt.push(Object(b.a)(Object(b.a)({},zt),{},{status:An})),at+=1,it=!0;break}}it||yt.push(Object(b.a)(Object(b.a)({},pt),{},{status:Ur}))}),at<Me&&(yt=yt.concat(Ie.slice(at).map(function(pt){return Object(b.a)(Object(b.a)({},pt),{},{status:$t})})));var $e={};yt.forEach(function(pt){var it=pt.key;$e[it]=($e[it]||0)+1});var qe=Object.keys($e).filter(function(pt){return $e[pt]>1});return qe.forEach(function(pt){yt=yt.filter(function(it){var It=it.key,zt=it.status;return It!==pt||zt!==Ur}),yt.forEach(function(it){it.key===pt&&(it.status=An)})}),yt}var X=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function q(Qe){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:un,yt=function(at){Object(S.a)(Ve,at);var Me=Object(v.a)(Ve);function Ve(){var Ie;return Object(P.a)(this,Ve),Ie=Me.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function($e){Ie.setState(function(qe){var pt=qe.keyEntities;return{keyEntities:pt.map(function(it){return it.key!==$e?it:Object(b.a)(Object(b.a)({},it),{},{status:Ar})})}})},Ie}return Object(R.a)(Ve,[{key:"render",value:function(){var $e=this,qe=this.state.keyEntities,pt=this.props,it=pt.component,It=pt.children,zt=pt.onVisibleChanged,gn=Object(O.a)(pt,["component","children","onVisibleChanged"]),dn=it||y.Fragment,pn={};return X.forEach(function(hn){pn[hn]=gn[hn],delete gn[hn]}),delete gn.keys,y.createElement(dn,gn,qe.map(function(hn){var zn=hn.status,Sn=Object(O.a)(hn,["status"]),jr=zn===$t||zn===An;return y.createElement(ut,Object(_.a)({},pn,{key:Sn.key,visible:jr,eventProps:Sn,onVisibleChanged:function(Qr){zt==null||zt(Qr,{key:Sn.key}),Qr||$e.removeKey(Sn.key)}}),It)}))}}],[{key:"getDerivedStateFromProps",value:function($e,qe){var pt=$e.keys,it=qe.keyEntities,It=gr(pt),zt=pe(it,It);return{keyEntities:zt.filter(function(gn){var dn=it.find(function(pn){var hn=pn.key;return gn.key===hn});return!(dn&&dn.status===Ar&&gn.status===Ur)})}}}]),Ve}(y.Component);return yt.defaultProps={component:"div"},yt}var oe=q(rn),Re=un;function de(Qe){var ut=Qe.prefixCls,yt=Qe.motion,at=Qe.animation,Me=Qe.transitionName;return yt||(at?{motionName:"".concat(ut,"-").concat(at)}:Me?{motionName:Me}:null)}function ot(Qe){var ut=Qe.prefixCls,yt=Qe.visible,at=Qe.zIndex,Me=Qe.mask,Ve=Qe.maskMotion,Ie=Qe.maskAnimation,$e=Qe.maskTransitionName;if(!Me)return null;var qe={};return(Ve||$e||Ie)&&(qe=Object(b.a)({motionAppear:!0},de({motion:Ve,prefixCls:ut,transitionName:$e,animation:Ie}))),y.createElement(Re,Object(_.a)({},qe,{visible:yt,removeOnLeave:!0}),function(pt){var it=pt.className;return y.createElement("div",{style:{zIndex:at},className:A()("".concat(ut,"-mask"),it)})})}var Qt=o("9mu1"),Ln=o("o0o1"),Jn=o.n(Ln),Zt=o("HaE+"),En=["measure","align",null,"motion"],fn=function(Qe,ut){var yt=Object(y.useState)(null),at=Object(m.a)(yt,2),Me=at[0],Ve=at[1],Ie=Object(y.useRef)(),$e=Object(y.useRef)(!1);function qe(It){$e.current||Ve(It)}function pt(){dt.a.cancel(Ie.current)}function it(It){pt(),Ie.current=Object(dt.a)(function(){qe(function(zt){switch(Me){case"align":return"motion";case"motion":return"stable";default:}return zt}),It==null||It()})}return Object(y.useEffect)(function(){qe("measure")},[Qe]),Object(y.useEffect)(function(){switch(Me){case"measure":ut();break;default:}Me&&(Ie.current=Object(dt.a)(Object(Zt.a)(Jn.a.mark(function It(){var zt,gn;return Jn.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:zt=En.indexOf(Me),gn=En[zt+1],gn&&zt!==-1&&qe(gn);case 3:case"end":return pn.stop()}},It)}))))},[Me]),Object(y.useEffect)(function(){return function(){$e.current=!0,pt()}},[]),[Me,it]},Br=function(Qe){var ut=y.useState({width:0,height:0}),yt=Object(m.a)(ut,2),at=yt[0],Me=yt[1];function Ve($e){Me({width:$e.offsetWidth,height:$e.offsetHeight})}var Ie=y.useMemo(function(){var $e={};if(Qe){var qe=at.width,pt=at.height;Qe.indexOf("height")!==-1&&pt?$e.height=pt:Qe.indexOf("minHeight")!==-1&&pt&&($e.minHeight=pt),Qe.indexOf("width")!==-1&&qe?$e.width=qe:Qe.indexOf("minWidth")!==-1&&qe&&($e.minWidth=qe)}return $e},[Qe,at]);return[Ie,Ve]},ra=y.forwardRef(function(Qe,ut){var yt=Qe.visible,at=Qe.prefixCls,Me=Qe.className,Ve=Qe.style,Ie=Qe.children,$e=Qe.zIndex,qe=Qe.stretch,pt=Qe.destroyPopupOnHide,it=Qe.forceRender,It=Qe.align,zt=Qe.point,gn=Qe.getRootDomNode,dn=Qe.getClassNameFromAlign,pn=Qe.onAlign,hn=Qe.onMouseEnter,zn=Qe.onMouseLeave,Sn=Qe.onMouseDown,jr=Qe.onTouchStart,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useState)(),ta=Object(m.a)(Wr,2),Xn=ta[0],Tr=ta[1],Yn=Br(qe),Cn=Object(m.a)(Yn,2),Hn=Cn[0],Vr=Cn[1];function ua(){qe&&Vr(gn())}var hr=fn(yt,ua),aa=Object(m.a)(hr,2),Ca=aa[0],ha=aa[1],Sa=Object(y.useRef)();function Or(){return zt||gn}function br(){var ga;(ga=Pr.current)===null||ga===void 0||ga.forceAlign()}function Mr(ga,Na){var ka=dn(Na);Xn!==ka&&Tr(ka),Ca==="align"&&(Xn!==ka?Promise.resolve().then(function(){br()}):ha(function(){var Fa;(Fa=Sa.current)===null||Fa===void 0||Fa.call(Sa)}),pn==null||pn(ga,Na))}var ar=Object(b.a)({},de(Qe));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ga){var Na=ar[ga];ar[ga]=function(ka,Fa){return ha(),Na==null?void 0:Na(ka,Fa)}});function pa(){return new Promise(function(ga){Sa.current=ga})}y.useEffect(function(){!ar.motionName&&Ca==="motion"&&ha()},[ar.motionName,Ca]),y.useImperativeHandle(ut,function(){return{forceAlign:br,getElement:function(){return Qr.current}}});var xa=Object(b.a)(Object(b.a)({},Hn),{},{zIndex:$e,opacity:Ca==="motion"||Ca==="stable"||!yt?void 0:0,pointerEvents:Ca==="stable"?void 0:"none"},Ve),ba=!0;(It==null?void 0:It.points)&&(Ca==="align"||Ca==="stable")&&(ba=!1);var Aa=Ie;return y.Children.count(Ie)>1&&(Aa=y.createElement("div",{className:"".concat(at,"-content")},Ie)),y.createElement(Re,Object(_.a)({visible:yt,ref:Qr,leavedClassName:"".concat(at,"-hidden")},ar,{onAppearPrepare:pa,onEnterPrepare:pa,removeOnLeave:pt,forceRender:it}),function(ga,Na){var ka=ga.className,Fa=ga.style,ni=A()(at,Me,Xn,ka);return y.createElement(Qt.a,{target:Or(),key:"popup",ref:Pr,monitorWindowResize:!0,disabled:ba,align:It,onAlign:Mr},y.createElement("div",{ref:Na,className:ni,onMouseEnter:hn,onMouseLeave:zn,onMouseDownCapture:Sn,onTouchStartCapture:jr,style:Object(b.a)(Object(b.a)({},Fa),xa)},Aa))})});ra.displayName="PopupInner";var oa=ra,rr=y.forwardRef(function(Qe,ut){var yt=Qe.prefixCls,at=Qe.visible,Me=Qe.zIndex,Ve=Qe.children,Ie=Qe.mobile;Ie=Ie===void 0?{}:Ie;var $e=Ie.popupClassName,qe=Ie.popupStyle,pt=Ie.popupMotion,it=pt===void 0?{}:pt,It=Ie.popupRender,zt=y.useRef();y.useImperativeHandle(ut,function(){return{forceAlign:function(){},getElement:function(){return zt.current}}});var gn=Object(b.a)({zIndex:Me},qe),dn=Ve;return y.Children.count(Ve)>1&&(dn=y.createElement("div",{className:"".concat(yt,"-content")},Ve)),It&&(dn=It(dn)),y.createElement(Re,Object(_.a)({visible:at,ref:zt,removeOnLeave:!0},it),function(pn,hn){var zn=pn.className,Sn=pn.style,jr=A()(yt,$e,zn);return y.createElement("div",{ref:hn,className:jr,style:Object(b.a)(Object(b.a)({},Sn),gn)},dn)})});rr.displayName="MobilePopupInner";var Ba=rr,Ea=["visible","mobile"],ca=y.forwardRef(function(Qe,ut){var yt=Qe.visible,at=Qe.mobile,Me=Object(O.a)(Qe,Ea),Ve=Object(y.useState)(yt),Ie=Object(m.a)(Ve,2),$e=Ie[0],qe=Ie[1],pt=Object(y.useState)(!1),it=Object(m.a)(pt,2),It=it[0],zt=it[1],gn=Object(b.a)(Object(b.a)({},Me),{},{visible:$e});Object(y.useEffect)(function(){qe(yt),yt&&at&&zt(Ze())},[yt,at]);var dn=It?y.createElement(Ba,Object(_.a)({},gn,{mobile:at,ref:ut})):y.createElement(oa,Object(_.a)({},gn,{ref:ut}));return y.createElement("div",null,y.createElement(ot,gn),dn)});ca.displayName="Popup";var Ka=ca,Ta=y.createContext(null),Ja=Ta;function Ua(){}function li(){return""}function oi(Qe){return Qe?Qe.ownerDocument:window.document}var fa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ma(Qe){var ut=function(yt){Object(S.a)(Me,yt);var at=Object(v.a)(Me);function Me(Ve){var Ie;Object(P.a)(this,Me),Ie=at.call(this,Ve),Ie.popupRef=y.createRef(),Ie.triggerRef=y.createRef(),Ie.attachId=void 0,Ie.clickOutsideHandler=void 0,Ie.touchOutsideHandler=void 0,Ie.contextMenuOutsideHandler1=void 0,Ie.contextMenuOutsideHandler2=void 0,Ie.mouseDownTimeout=void 0,Ie.focusTime=void 0,Ie.preClickTime=void 0,Ie.preTouchTime=void 0,Ie.delayTimer=void 0,Ie.hasPopupMouseDown=void 0,Ie.onMouseEnter=function(qe){var pt=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",qe),Ie.delaySetPopupVisible(!0,pt,pt?null:qe)},Ie.onMouseMove=function(qe){Ie.fireEvents("onMouseMove",qe),Ie.setPoint(qe)},Ie.onMouseLeave=function(qe){Ie.fireEvents("onMouseLeave",qe),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function(qe){var pt;if(qe.relatedTarget&&!qe.relatedTarget.setTimeout&&Object(vt.a)((pt=Ie.popupRef.current)===null||pt===void 0?void 0:pt.getElement(),qe.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function(qe){Ie.fireEvents("onFocus",qe),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function(qe){Ie.fireEvents("onMouseDown",qe),Ie.preClickTime=Date.now()},Ie.onTouchStart=function(qe){Ie.fireEvents("onTouchStart",qe),Ie.preTouchTime=Date.now()},Ie.onBlur=function(qe){Ie.fireEvents("onBlur",qe),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function(qe){qe.preventDefault(),Ie.fireEvents("onContextMenu",qe),Ie.setPopupVisible(!0,qe)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function(qe){if(Ie.fireEvents("onClick",qe),Ie.focusTime){var pt;if(Ie.preClickTime&&Ie.preTouchTime?pt=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?pt=Ie.preClickTime:Ie.preTouchTime&&(pt=Ie.preTouchTime),Math.abs(pt-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&qe&&qe.preventDefault&&qe.preventDefault();var it=!Ie.state.popupVisible;(Ie.isClickToHide()&&!it||it&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,qe)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var qe;(qe=Ie.context).onPopupMouseDown.apply(qe,arguments)}},Ie.onDocumentClick=function(qe){if(Ie.props.mask&&!Ie.props.maskClosable)return;var pt=qe.target,it=Ie.getRootDomNode(),It=Ie.getPopupDomNode();(!Object(vt.a)(it,pt)||Ie.isContextMenuOnly())&&!Object(vt.a)(It,pt)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var qe=Ie.props.getTriggerDOMNode;if(qe)return qe(Ie.triggerRef.current);try{var pt=Object(_t.a)(Ie.triggerRef.current);if(pt)return pt}catch(it){}return lt.a.findDOMNode(Object(x.a)(Ie))},Ie.getPopupClassNameFromAlign=function(qe){var pt=[],it=Ie.props,It=it.popupPlacement,zt=it.builtinPlacements,gn=it.prefixCls,dn=it.alignPoint,pn=it.getPopupClassNameFromAlign;return It&&zt&&pt.push(Pt(zt,gn,qe,dn)),pn&&pt.push(pn(qe)),pt.join(" ")},Ie.getComponent=function(){var qe=Ie.props,pt=qe.prefixCls,it=qe.destroyPopupOnHide,It=qe.popupClassName,zt=qe.onPopupAlign,gn=qe.popupMotion,dn=qe.popupAnimation,pn=qe.popupTransitionName,hn=qe.popupStyle,zn=qe.mask,Sn=qe.maskAnimation,jr=qe.maskTransitionName,Pr=qe.maskMotion,Qr=qe.zIndex,Wr=qe.popup,ta=qe.stretch,Xn=qe.alignPoint,Tr=qe.mobile,Yn=qe.forceRender,Cn=Ie.state,Hn=Cn.popupVisible,Vr=Cn.point,ua=Ie.getPopupAlign(),hr={};return Ie.isMouseEnterToShow()&&(hr.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(hr.onMouseLeave=Ie.onPopupMouseLeave),hr.onMouseDown=Ie.onPopupMouseDown,hr.onTouchStart=Ie.onPopupMouseDown,y.createElement(Ka,Object(_.a)({prefixCls:pt,destroyPopupOnHide:it,visible:Hn,point:Xn&&Vr,className:It,align:ua,onAlign:zt,animation:dn,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},hr,{stretch:ta,getRootDomNode:Ie.getRootDomNode,style:hn,mask:zn,zIndex:Qr,transitionName:pn,maskAnimation:Sn,maskTransitionName:jr,maskMotion:Pr,ref:Ie.popupRef,motion:gn,mobile:Tr,forceRender:Yn}),typeof Wr=="function"?Wr():Wr)},Ie.attachParent=function(qe){dt.a.cancel(Ie.attachId);var pt=Ie.props,it=pt.getPopupContainer,It=pt.getDocument,zt=Ie.getRootDomNode(),gn;it?(zt||it.length===0)&&(gn=it(zt)):gn=It(Ie.getRootDomNode()).body,gn?gn.appendChild(qe):Ie.attachId=Object(dt.a)(function(){Ie.attachParent(qe)})},Ie.getContainer=function(){var qe=Ie.props.getDocument,pt=qe(Ie.getRootDomNode()).createElement("div");return pt.style.position="absolute",pt.style.top="0",pt.style.left="0",pt.style.width="100%",Ie.attachParent(pt),pt},Ie.setPoint=function(qe){var pt=Ie.props.alignPoint;if(!pt||!qe)return;Ie.setState({point:{pageX:qe.pageX,pageY:qe.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)},Ie.triggerContextValue={onPopupMouseDown:Ie.onPopupMouseDown};var $e;return"popupVisible"in Ve?$e=!!Ve.popupVisible:$e=!!Ve.defaultPopupVisible,Ie.state={prevPopupVisible:$e,popupVisible:$e},fa.forEach(function(qe){Ie["fire".concat(qe)]=function(pt){Ie.fireEvents(qe,pt)}}),Ie}return Object(R.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,$e=this.state;if($e.popupVisible){var qe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(qe=Ie.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(je.a)(qe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(qe=qe||Ie.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(je.a)(qe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(qe=qe||Ie.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(je.a)(qe,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(je.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),dt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Ie;return((Ie=this.popupRef.current)===null||Ie===void 0?void 0:Ie.getElement())||null}},{key:"getPopupAlign",value:function(){var Ie=this.props,$e=Ie.popupPlacement,qe=Ie.popupAlign,pt=Ie.builtinPlacements;return $e&&pt?Et(pt,$e,qe):qe}},{key:"setPopupVisible",value:function(Ie,$e){var qe=this.props.alignPoint,pt=this.state.popupVisible;this.clearDelayTimer(),pt!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:pt}),this.props.onPopupVisibleChange(Ie)),qe&&$e&&Ie&&this.setPoint($e)}},{key:"delaySetPopupVisible",value:function(Ie,$e,qe){var pt=this,it=$e*1e3;if(this.clearDelayTimer(),it){var It=qe?{pageX:qe.pageX,pageY:qe.pageY}:null;this.delayTimer=window.setTimeout(function(){pt.setPopupVisible(Ie,It),pt.clearDelayTimer()},it)}else this.setPopupVisible(Ie,qe)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Ie){var $e=this.props.children.props,qe=this.props;return $e[Ie]&&qe[Ie]?this["fire".concat(Ie)]:$e[Ie]||qe[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ie=this.props.action;return Ie==="contextMenu"||Ie.length===1&&Ie[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("contextMenu")!==-1||qe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.hideAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.hideAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("focus")!==-1||qe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.hideAction;return $e.indexOf("focus")!==-1||qe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ie;(Ie=this.popupRef.current)===null||Ie===void 0||Ie.forceAlign()}}},{key:"fireEvents",value:function(Ie,$e){var qe=this.props.children.props[Ie];qe&&qe($e);var pt=this.props[Ie];pt&&pt($e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,$e=this.props,qe=$e.children,pt=$e.forceRender,it=$e.alignPoint,It=$e.className,zt=$e.autoDestroy,gn=y.Children.only(qe),dn={key:"trigger"};this.isContextMenuToShow()?dn.onContextMenu=this.onContextMenu:dn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(dn.onClick=this.onClick,dn.onMouseDown=this.onMouseDown,dn.onTouchStart=this.onTouchStart):(dn.onClick=this.createTwoChains("onClick"),dn.onMouseDown=this.createTwoChains("onMouseDown"),dn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(dn.onMouseEnter=this.onMouseEnter,it&&(dn.onMouseMove=this.onMouseMove)):dn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?dn.onMouseLeave=this.onMouseLeave:dn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(dn.onFocus=this.onFocus,dn.onBlur=this.onBlur):(dn.onFocus=this.createTwoChains("onFocus"),dn.onBlur=this.createTwoChains("onBlur"));var pn=A()(gn&&gn.props&&gn.props.className,It);pn&&(dn.className=pn);var hn=Object(b.a)({},dn);Object(Ye.c)(gn)&&(hn.ref=Object(Ye.a)(this.triggerRef,gn.ref));var zn=y.cloneElement(gn,hn),Sn;return(Ie||this.popupRef.current||pt)&&(Sn=y.createElement(Qe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&zt&&(Sn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},zn,Sn)}}],[{key:"getDerivedStateFromProps",value:function(Ie,$e){var qe=Ie.popupVisible,pt={};return qe!==void 0&&$e.popupVisible!==qe&&(pt.popupVisible=qe,pt.prevPopupVisible=$e.popupVisible),pt}}]),Me}(y.Component);return ut.contextType=Ja,ut.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:Ua,afterPopupVisibleChange:Ua,onPopupAlign:Ua,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ut}var la=ma(ht.a),xe={adjustX:1,adjustY:1},st={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},Rt={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},Ot=st,Ht=0,Nt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Vt=function(ut,yt,at){var Me=le(yt),Ve=ut.getState();ut.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},Ve.defaultActiveFirst),{},Object(M.a)({},Me,at))})},nn=function(Qe){Object(S.a)(yt,Qe);var ut=Object(v.a)(yt);function yt(at){var Me;Object(P.a)(this,yt),Me=ut.call(this,at),Me.onDestroy=function(it){Me.props.onDestroy(it)},Me.onKeyDown=function(it){var It=it.keyCode,zt=Me.menuInstance,gn=Me.props.store,dn=Me.getVisible();if(It===c.a.ENTER)return Me.onTitleClick(it),Vt(gn,Me.props.eventKey,!0),!0;if(It===c.a.RIGHT)return dn?zt.onKeyDown(it):(Me.triggerOpenChange(!0),Vt(gn,Me.props.eventKey,!0)),!0;if(It===c.a.LEFT){var pn;if(dn)pn=zt.onKeyDown(it);else return;return pn||(Me.triggerOpenChange(!1),pn=!0),pn}return dn&&(It===c.a.UP||It===c.a.DOWN)?zt.onKeyDown(it):void 0},Me.onOpenChange=function(it){Me.props.onOpenChange(it)},Me.onPopupVisibleChange=function(it){Me.triggerOpenChange(it,it?"mouseenter":"mouseleave")},Me.onMouseEnter=function(it){var It=Me.props,zt=It.eventKey,gn=It.onMouseEnter,dn=It.store;Vt(dn,Me.props.eventKey,!1),gn({key:zt,domEvent:it})},Me.onMouseLeave=function(it){var It=Me.props,zt=It.parentMenu,gn=It.eventKey,dn=It.onMouseLeave;zt.subMenuInstance=Object(x.a)(Me),dn({key:gn,domEvent:it})},Me.onTitleMouseEnter=function(it){var It=Me.props,zt=It.eventKey,gn=It.onItemHover,dn=It.onTitleMouseEnter;gn({key:zt,hover:!0}),dn({key:zt,domEvent:it})},Me.onTitleMouseLeave=function(it){var It=Me.props,zt=It.parentMenu,gn=It.eventKey,dn=It.onItemHover,pn=It.onTitleMouseLeave;zt.subMenuInstance=Object(x.a)(Me),dn({key:gn,hover:!1}),pn({key:gn,domEvent:it})},Me.onTitleClick=function(it){var It=Object(x.a)(Me),zt=It.props;if(zt.onTitleClick({key:zt.eventKey,domEvent:it}),zt.triggerSubMenuAction==="hover")return;Me.triggerOpenChange(!Me.getVisible(),"click"),Vt(zt.store,Me.props.eventKey,!1)},Me.onSubMenuClick=function(it){typeof Me.props.onClick=="function"&&Me.props.onClick(Me.addKeyPath(it))},Me.onSelect=function(it){Me.props.onSelect(it)},Me.onDeselect=function(it){Me.props.onDeselect(it)},Me.getPrefixCls=function(){return"".concat(Me.props.rootPrefixCls,"-submenu")},Me.getActiveClassName=function(){return"".concat(Me.getPrefixCls(),"-active")},Me.getDisabledClassName=function(){return"".concat(Me.getPrefixCls(),"-disabled")},Me.getSelectedClassName=function(){return"".concat(Me.getPrefixCls(),"-selected")},Me.getOpenClassName=function(){return"".concat(Me.props.rootPrefixCls,"-submenu-open")},Me.getVisible=function(){return Me.state.isOpen},Me.getMode=function(){return Me.state.mode},Me.saveMenuInstance=function(it){Me.menuInstance=it},Me.addKeyPath=function(it){return Object(b.a)(Object(b.a)({},it),{},{keyPath:(it.keyPath||[]).concat(Me.props.eventKey)})},Me.triggerOpenChange=function(it,It){var zt=Me.props.eventKey,gn=function(){Me.onOpenChange({key:zt,item:Object(x.a)(Me),trigger:It,open:it})};It==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){gn()},0):gn()},Me.isChildrenSelected=function(){var it={find:!1};return Q(Me.props.children,Me.props.selectedKeys,it),it.find},Me.isInlineMode=function(){return Me.getMode()==="inline"},Me.adjustWidth=function(){if(!Me.subMenuTitle||!Me.menuInstance)return;var it=tt.findDOMNode(Me.menuInstance);if(it.offsetWidth>=Me.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(Me.subMenuTitle.offsetWidth,"px")},Me.saveSubMenuTitle=function(it){Me.subMenuTitle=it},Me.getBaseProps=function(){var it=Object(x.a)(Me),It=it.props,zt=Me.getMode();return{mode:zt==="horizontal"?"vertical":zt,visible:Me.getVisible(),level:It.level+1,inlineIndent:It.inlineIndent,focusable:!1,onClick:Me.onSubMenuClick,onSelect:Me.onSelect,onDeselect:Me.onDeselect,onDestroy:Me.onDestroy,selectedKeys:It.selectedKeys,eventKey:"".concat(It.eventKey,"-menu-"),openKeys:It.openKeys,motion:It.motion,onOpenChange:Me.onOpenChange,subMenuOpenDelay:It.subMenuOpenDelay,parentMenu:Object(x.a)(Me),subMenuCloseDelay:It.subMenuCloseDelay,forceSubMenuRender:It.forceSubMenuRender,triggerSubMenuAction:It.triggerSubMenuAction,builtinPlacements:It.builtinPlacements,defaultActiveFirst:It.store.getState().defaultActiveFirst[le(It.eventKey)],multiple:It.multiple,prefixCls:It.rootPrefixCls,id:Me.internalMenuId,manualRef:Me.saveMenuInstance,itemIcon:It.itemIcon,expandIcon:It.expandIcon,direction:It.direction}},Me.getMotion=function(it,It){var zt=Object(x.a)(Me),gn=zt.haveRendered,dn=Me.props,pn=dn.motion,hn=dn.rootPrefixCls,zn=Object(b.a)(Object(b.a)({},pn),{},{leavedClassName:"".concat(hn,"-hidden"),removeOnLeave:!1,motionAppear:gn||!It||it!=="inline"});return zn};var Ve=at.store,Ie=at.eventKey,$e=Ve.getState(),qe=$e.defaultActiveFirst;Me.isRootMenu=!1;var pt=!1;return qe&&(pt=qe[Ie]),Vt(Ve,Ie,pt),Me.state={mode:at.mode,isOpen:at.isOpen},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Ve=this.props,Ie=Ve.mode,$e=Ve.parentMenu,qe=Ve.manualRef,pt=Ve.isOpen,it=function(){Me.setState({mode:Ie,isOpen:pt})},It=pt!==this.state.isOpen,zt=Ie!==this.state.mode;if((zt||It)&&(dt.a.cancel(this.updateStateRaf),zt?this.updateStateRaf=Object(dt.a)(it):it()),qe&&qe(this),Ie!=="horizontal"||!($e==null?void 0:$e.isRootMenu)||!pt)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Ve=Me.onDestroy,Ie=Me.eventKey;Ve&&Ve(Ie),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),dt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Me,Ve){var Ie=this.getBaseProps();return y.createElement(Yt,Object(_.a)({},Ie,{id:this.internalMenuId,className:Me,style:Ve}),this.props.children)}},{key:"renderChildren",value:function(){var Me=this,Ve=this.getBaseProps(),Ie=Ve.mode,$e=Ve.visible,qe=Ve.forceSubMenuRender,pt=Ve.direction,it=this.getMotion(Ie,$e);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e||qe,!this.haveOpened)return y.createElement("div",null);var It=A()("".concat(Ve.prefixCls,"-sub"),Object(M.a)({},"".concat(Ve.prefixCls,"-rtl"),pt==="rtl"));return this.isInlineMode()?y.createElement(Re,Object(_.a)({visible:Ve.visible,forceRender:qe},it),function(zt){var gn=zt.className,dn=zt.style,pn=A()(It,gn);return Me.renderPopupMenu(pn,dn)}):this.renderPopupMenu(It)}},{key:"render",value:function(){var Me,Ve,Ie,$e=Object(b.a)({},this.props),qe=this.getVisible(),pt=this.getPrefixCls(),it=this.isInlineMode(),It=this.getMode(),zt=A()(pt,"".concat(pt,"-").concat(It),(Me={},Object(M.a)(Me,$e.className,!!$e.className),Object(M.a)(Me,this.getOpenClassName(),qe),Object(M.a)(Me,this.getActiveClassName(),$e.active||qe&&!it),Object(M.a)(Me,this.getDisabledClassName(),$e.disabled),Object(M.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||($e.eventKey?this.internalMenuId="".concat($e.eventKey,"$Menu"):(Ht+=1,this.internalMenuId="$__$".concat(Ht,"$Menu")));var gn={},dn={},pn={};$e.disabled||(gn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},dn={onClick:this.onTitleClick},pn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var hn={},zn=$e.direction,Sn=zn==="rtl";it&&(Sn?hn.paddingRight=$e.inlineIndent*$e.level:hn.paddingLeft=$e.inlineIndent*$e.level);var jr={};this.getVisible()&&(jr={"aria-owns":this.internalMenuId});var Pr=null;It!=="horizontal"&&(Pr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Pr=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Qr=y.createElement("div",Object(_.a)({ref:this.saveSubMenuTitle,style:hn,className:"".concat(pt,"-title"),role:"button"},pn,dn,{"aria-expanded":qe},jr,{"aria-haspopup":"true",title:typeof $e.title=="string"?$e.title:void 0}),$e.title,Pr||y.createElement("i",{className:"".concat(pt,"-arrow")})),Wr=this.renderChildren(),ta=((Ve=$e.parentMenu)===null||Ve===void 0?void 0:Ve.isRootMenu)?$e.parentMenu.props.getPopupContainer:function(Or){return Or.parentNode},Xn=Nt[It],Tr=$e.popupOffset?{offset:$e.popupOffset}:{},Yn=A()((Ie={},Object(M.a)(Ie,$e.popupClassName,$e.popupClassName&&!it),Object(M.a)(Ie,"".concat(pt,"-rtl"),Sn),Ie)),Cn=$e.disabled,Hn=$e.triggerSubMenuAction,Vr=$e.subMenuOpenDelay,ua=$e.forceSubMenuRender,hr=$e.subMenuCloseDelay,aa=$e.builtinPlacements;J.forEach(function(Or){return delete $e[Or]}),delete $e.onClick;var Ca=Sn?Object(b.a)(Object(b.a)({},Rt),aa):Object(b.a)(Object(b.a)({},st),aa);delete $e.direction;var ha=this.getBaseProps(),Sa=it?null:this.getMotion(ha.mode,ha.visible);return y.createElement("li",Object(_.a)({},$e,gn,{className:zt,role:"menuitem"}),y.createElement(la,{prefixCls:pt,popupClassName:A()("".concat(pt,"-popup"),Yn),getPopupContainer:ta,builtinPlacements:Ca,popupPlacement:Xn,popupVisible:it?!1:qe,popupAlign:Tr,popup:it?null:Wr,action:Cn||it?[]:[Hn],mouseEnterDelay:Vr,mouseLeaveDelay:hr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ua,popupMotion:Sa},Qr),it?Wr:null)}}]),yt}(y.Component);nn.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var xn=Object(T.b)(function(Qe,ut){var yt=Qe.openKeys,at=Qe.activeKey,Me=Qe.selectedKeys,Ve=ut.eventKey,Ie=ut.subMenuKey;return{isOpen:yt.indexOf(Ve)>-1,active:at[Ie]===Ve,selectedKeys:Me}})(nn);xn.isSubMenu=!0;var _n=xn,Bn="menuitem-overflowed",Dn=.5,an=function(Qe){Object(S.a)(yt,Qe);var ut=Object(v.a)(yt);function yt(){var at;return Object(P.a)(this,yt),at=ut.apply(this,arguments),at.resizeObserver=null,at.mutationObserver=null,at.originalTotalWidth=0,at.overflowedItems=[],at.menuItemSizes=[],at.cancelFrameId=null,at.state={lastVisibleIndex:void 0},at.childRef=y.createRef(),at.getMenuItemNodes=function(){var Me=at.props.prefixCls,Ve=at.childRef.current;return Ve?[].slice.call(Ve.children).filter(function(Ie){return Ie.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},at.getOverflowedSubMenuItem=function(Me,Ve,Ie){var $e=at.props,qe=$e.overflowedIndicator,pt=$e.level,it=$e.mode,It=$e.prefixCls,zt=$e.theme;if(pt!==1||it!=="horizontal")return null;var gn=at.props.children[0],dn=gn.props,pn=dn.children,hn=dn.title,zn=dn.style,Sn=Object(O.a)(dn,["children","title","style"]),jr=Object(b.a)({},zn),Pr="".concat(Me,"-overflowed-indicator"),Qr="".concat(Me,"-overflowed-indicator");Ve.length===0&&Ie!==!0?jr=Object(b.a)(Object(b.a)({},jr),{},{display:"none"}):Ie&&(jr=Object(b.a)(Object(b.a)({},jr),{},{visibility:"hidden",position:"absolute"}),Pr="".concat(Pr,"-placeholder"),Qr="".concat(Qr,"-placeholder"));var Wr=zt?"".concat(It,"-").concat(zt):"",ta={};return J.forEach(function(Xn){Sn[Xn]!==void 0&&(ta[Xn]=Sn[Xn])}),y.createElement(_n,Object(_.a)({title:qe,className:"".concat(It,"-overflowed-submenu"),popupClassName:Wr},ta,{key:Pr,eventKey:Qr,disabled:!1,style:jr}),Ve)},at.setChildrenWidthAndResize=function(){if(at.props.mode!=="horizontal")return;var Me=at.childRef.current;if(!Me)return;var Ve=Me.children;if(!Ve||Ve.length===0)return;var Ie=Me.children[Ve.length-1];_e(Ie,"display","inline-block");var $e=at.getMenuItemNodes(),qe=$e.filter(function(pt){return pt.className.split(" ").indexOf(Bn)>=0});qe.forEach(function(pt){_e(pt,"display","inline-block")}),at.menuItemSizes=$e.map(function(pt){return ve(pt,!0)}),qe.forEach(function(pt){_e(pt,"display","none")}),at.overflowedIndicatorWidth=ve(Me.children[Me.children.length-1],!0),at.originalTotalWidth=at.menuItemSizes.reduce(function(pt,it){return pt+it},0),at.handleResize(),_e(Ie,"display","none")},at.handleResize=function(){if(at.props.mode!=="horizontal")return;var Me=at.childRef.current;if(!Me)return;var Ve=ve(Me);at.overflowedItems=[];var Ie=0,$e;at.originalTotalWidth>Ve+Dn&&($e=-1,at.menuItemSizes.forEach(function(qe){Ie+=qe,Ie+at.overflowedIndicatorWidth<=Ve&&($e+=1)})),at.setState({lastVisibleIndex:$e})},at}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ve=this.childRef.current;if(!Ve)return;this.resizeObserver=new Xe.default(function(Ie){Ie.forEach(function(){var $e=Me.cancelFrameId;cancelAnimationFrame($e),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Ve.children).concat(Ve).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Ve.children).concat(Ve).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),Me.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ve,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Me){var Ve=this,Ie=this.state.lastVisibleIndex;return(Me||[]).reduce(function($e,qe,pt){var it=qe;if(Ve.props.mode==="horizontal"){var It=Ve.getOverflowedSubMenuItem(qe.props.eventKey,[]);Ie!==void 0&&Ve.props.className.indexOf("".concat(Ve.props.prefixCls,"-root"))!==-1&&(pt>Ie&&(it=y.cloneElement(qe,{style:{display:"none"},eventKey:"".concat(qe.props.eventKey,"-hidden"),className:"".concat(Bn)})),pt===Ie+1&&(Ve.overflowedItems=Me.slice(Ie+1).map(function(gn){return y.cloneElement(gn,{key:gn.props.eventKey,mode:"vertical-left"})}),It=Ve.getOverflowedSubMenuItem(qe.props.eventKey,Ve.overflowedItems)));var zt=[].concat(Object(f.a)($e),[It,it]);return pt===Me.length-1&&zt.push(Ve.getOverflowedSubMenuItem(qe.props.eventKey,[],!0)),zt}return[].concat(Object(f.a)($e),[it])},[])}},{key:"render",value:function(){var Me=this.props,Ve=Me.visible,Ie=Me.prefixCls,$e=Me.overflowedIndicator,qe=Me.mode,pt=Me.level,it=Me.tag,It=Me.children,zt=Me.theme,gn=Object(O.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),dn=it;return y.createElement(dn,Object(_.a)({ref:this.childRef},gn),this.renderChildren(It))}}]),yt}(y.Component);an.defaultProps={tag:"div",className:""};var Mn=an;function yn(Qe){return Qe.length?Qe.every(function(ut){return!!ut.props.disabled}):!0}function Fn(Qe,ut,yt){var at=Qe.getState();Qe.setState({activeKey:Object(b.a)(Object(b.a)({},at.activeKey),{},Object(M.a)({},ut,yt))})}function Pn(Qe){return Qe.eventKey||"0-menu-"}function qn(Qe,ut){var yt=ut,at=Qe.children,Me=Qe.eventKey;if(yt){var Ve;if(te(at,function(Ie,$e){Ie&&Ie.props&&!Ie.props.disabled&&yt===we(Ie,Me,$e)&&(Ve=!0)}),Ve)return yt}return yt=null,Qe.defaultActiveFirst&&te(at,function(Ie,$e){!yt&&Ie&&!Ie.props.disabled&&(yt=we(Ie,Me,$e))}),yt}function pr(Qe){if(!Qe)return;var ut=this.instanceArray.indexOf(Qe);ut!==-1?this.instanceArray[ut]=Qe:this.instanceArray.push(Qe)}var Fr=function(Qe){Object(S.a)(yt,Qe);var ut=Object(v.a)(yt);function yt(at){var Me;return Object(P.a)(this,yt),Me=ut.call(this,at),Me.onKeyDown=function(Ve,Ie){var $e=Ve.keyCode,qe;if(Me.getFlatInstanceArray().forEach(function(it){it&&it.props.active&&it.onKeyDown&&(qe=it.onKeyDown(Ve))}),qe)return 1;var pt=null;return($e===c.a.UP||$e===c.a.DOWN)&&(pt=Me.step($e===c.a.UP?-1:1)),pt?(Ve.preventDefault(),Fn(Me.props.store,Pn(Me.props),pt.props.eventKey),typeof Ie=="function"&&Ie(pt),1):void 0},Me.onItemHover=function(Ve){var Ie=Ve.key,$e=Ve.hover;Fn(Me.props.store,Pn(Me.props),$e?Ie:null)},Me.onDeselect=function(Ve){Me.props.onDeselect(Ve)},Me.onSelect=function(Ve){Me.props.onSelect(Ve)},Me.onClick=function(Ve){Me.props.onClick(Ve)},Me.onOpenChange=function(Ve){Me.props.onOpenChange(Ve)},Me.onDestroy=function(Ve){Me.props.onDestroy(Ve)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Ve){var Ie=Me.getFlatInstanceArray(),$e=Me.props.store.getState().activeKey[Pn(Me.props)],qe=Ie.length;if(!qe)return null;Ve<0&&(Ie=Ie.concat().reverse());var pt=-1;if(Ie.every(function(gn,dn){return gn&&gn.props.eventKey===$e?(pt=dn,!1):!0}),!Me.props.defaultActiveFirst&&pt!==-1&&yn(Ie.slice(pt,qe-1)))return;var it=(pt+1)%qe,It=it;do{var zt=Ie[It];if(!zt||zt.props.disabled)It=(It+1)%qe;else return zt}while(It!==it);return null},Me.renderCommonMenuItem=function(Ve,Ie,$e){var qe=Me.props.store.getState(),pt=Object(x.a)(Me),it=pt.props,It=we(Ve,it.eventKey,Ie),zt=Ve.props;if(!zt||typeof Ve.type=="string")return Ve;var gn=It===qe.activeKey,dn=Object(b.a)(Object(b.a)({mode:zt.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:Me.renderMenuItem,rootPrefixCls:it.prefixCls,index:Ie,parentMenu:it.parentMenu,manualRef:zt.disabled?void 0:Object(I.a)(Ve.ref,pr.bind(Object(x.a)(Me))),eventKey:It,active:!zt.disabled&&gn,multiple:it.multiple,onClick:function(hn){(zt.onClick||ae)(hn),Me.onClick(hn)},onItemHover:Me.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:Me.onOpenChange,onDeselect:Me.onDeselect,onSelect:Me.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:zt.itemIcon||Me.props.itemIcon,expandIcon:zt.expandIcon||Me.props.expandIcon},$e),{},{direction:it.direction});return(it.mode==="inline"||Oe())&&(dn.triggerSubMenuAction="click"),y.cloneElement(Ve,Object(b.a)(Object(b.a)({},dn),{},{key:It||Ie}))},Me.renderMenuItem=function(Ve,Ie,$e){if(!Ve)return null;var qe=Me.props.store.getState(),pt={openKeys:qe.openKeys,selectedKeys:qe.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:$e};return Me.renderCommonMenuItem(Ve,Ie,pt)},at.store.setState({activeKey:Object(b.a)(Object(b.a)({},at.store.getState().activeKey),{},Object(M.a)({},at.eventKey,qn(at,at.activeKey)))}),Me.instanceArray=[],Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Me){return this.props.visible||Me.visible||this.props.className!==Me.className||!V()(this.props.style,Me.style)}},{key:"componentDidUpdate",value:function(Me){var Ve=this.props,Ie="activeKey"in Ve?Ve.activeKey:Ve.store.getState().activeKey[Pn(Ve)],$e=qn(Ve,Ie);if($e!==Ie)Fn(Ve.store,Pn(Ve),$e);else if("activeKey"in Me){var qe=qn(Me,Me.activeKey);$e!==qe&&Fn(Ve.store,Pn(Ve),$e)}}},{key:"render",value:function(){var Me=this,Ve=Object(_.a)({},this.props);this.instanceArray=[];var Ie=A()(Ve.prefixCls,Ve.className,"".concat(Ve.prefixCls,"-").concat(Ve.mode)),$e={className:Ie,role:Ve.role||"menu"};Ve.id&&($e.id=Ve.id),Ve.focusable&&($e.tabIndex=0,$e.onKeyDown=this.onKeyDown);var qe=Ve.prefixCls,pt=Ve.eventKey,it=Ve.visible,It=Ve.level,zt=Ve.mode,gn=Ve.overflowedIndicator,dn=Ve.theme;return J.forEach(function(pn){return delete Ve[pn]}),delete Ve.onClick,y.createElement(Mn,Object(_.a)({},Ve,{prefixCls:qe,mode:zt,tag:"ul",level:It,theme:dn,visible:it,overflowedIndicator:gn},$e),Object(g.a)(Ve.children).map(function(pn,hn){return Me.renderMenuItem(pn,hn,pt||"0-menu-")}))}}]),yt}(y.Component);Fr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var wn=Object(T.b)()(Fr),Yt=wn,mn=o("Kwbf");function Rn(Qe,ut,yt){var at=Qe.prefixCls,Me=Qe.motion,Ve=Qe.defaultMotions,Ie=Ve===void 0?{}:Ve,$e=Qe.openAnimation,qe=Qe.openTransitionName,pt=ut.switchingModeFromInline;if(Me)return Me;if(Object(H.a)($e)==="object"&&$e)Object(mn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof $e=="string")return{motionName:"".concat(at,"-open-").concat($e)};if(qe)return{motionName:qe};var it=Ie[yt];return it||(pt?null:Ie.other)}var en=function(Qe){Object(S.a)(yt,Qe);var ut=Object(v.a)(yt);function yt(at){var Me;Object(P.a)(this,yt),Me=ut.call(this,at),Me.onSelect=function($e){var qe=Object(x.a)(Me),pt=qe.props;if(pt.selectable){var it=Me.store.getState(),It=it.selectedKeys,zt=$e.key;pt.multiple?It=It.concat([zt]):It=[zt],"selectedKeys"in pt||Me.store.setState({selectedKeys:It}),pt.onSelect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:It}))}},Me.onClick=function($e){var qe=Me.getRealMenuMode(),pt=Object(x.a)(Me),it=pt.store,It=pt.props.onOpenChange;qe!=="inline"&&!("openKeys"in Me.props)&&(it.setState({openKeys:[]}),It([])),Me.props.onClick($e)},Me.onKeyDown=function($e,qe){Me.innerMenu.getWrappedInstance().onKeyDown($e,qe)},Me.onOpenChange=function($e){var qe=Object(x.a)(Me),pt=qe.props,it=Me.store.getState().openKeys.concat(),It=!1,zt=function(dn){var pn=!1;if(dn.open)pn=it.indexOf(dn.key)===-1,pn&&it.push(dn.key);else{var hn=it.indexOf(dn.key);pn=hn!==-1,pn&&it.splice(hn,1)}It=It||pn};Array.isArray($e)?$e.forEach(zt):zt($e),It&&("openKeys"in Me.props||Me.store.setState({openKeys:it}),pt.onOpenChange(it))},Me.onDeselect=function($e){var qe=Object(x.a)(Me),pt=qe.props;if(pt.selectable){var it=Me.store.getState().selectedKeys.concat(),It=$e.key,zt=it.indexOf(It);zt!==-1&&it.splice(zt,1),"selectedKeys"in pt||Me.store.setState({selectedKeys:it}),pt.onDeselect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:it}))}},Me.onMouseEnter=function($e){Me.restoreModeVerticalFromInline();var qe=Me.props.onMouseEnter;qe&&qe($e)},Me.onTransitionEnd=function($e){var qe=$e.propertyName==="width"&&$e.target===$e.currentTarget,pt=$e.target.className,it=Object.prototype.toString.call(pt)==="[object SVGAnimatedString]"?pt.animVal:pt,It=$e.propertyName==="font-size"&&it.indexOf("anticon")>=0;(qe||It)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function($e){Me.innerMenu=$e},Me.isRootMenu=!0;var Ve=at.defaultSelectedKeys,Ie=at.defaultOpenKeys;return"selectedKeys"in at&&(Ve=at.selectedKeys||[]),"openKeys"in at&&(Ie=at.openKeys||[]),Me.store=Object(T.c)({selectedKeys:Ve,openKeys:Ie,activeKey:{"0-menu-":qn(at,at.activeKey)}}),Me.state={switchingModeFromInline:!1,prevProps:at,inlineOpenKeys:[],store:Me.store},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){var Ve=this.props,Ie=Ve.siderCollapsed,$e=Ve.inlineCollapsed,qe=Ve.onOpenChange;(!Me.inlineCollapsed&&$e||!Me.siderCollapsed&&Ie)&&qe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Ve=this.store,Ie=this.prevOpenKeys,$e=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");$e?(this.prevOpenKeys=Ve.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ie&&(this.store.setState({openKeys:Ie}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Ve=this.state.switchingModeFromInline,Ie=this.getInlineCollapsed();return Ve&&Ie?"inline":Ie?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Ve=Me.inlineCollapsed,Ie=Me.siderCollapsed;return Ie!==void 0?Ie:Ve}},{key:"restoreModeVerticalFromInline",value:function(){var Me=this.state.switchingModeFromInline;Me&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Me=Object(b.a)({},Object(U.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ve=this.getRealMenuMode();return Me.className+=" ".concat(Me.prefixCls,"-root"),Me.direction==="rtl"&&(Me.className+=" ".concat(Me.prefixCls,"-rtl")),Me=Object(b.a)(Object(b.a)({},Me),{},{mode:Ve,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Rn(this.props,this.state,Ve)}),delete Me.openAnimation,delete Me.openTransitionName,y.createElement(T.a,{store:this.store},y.createElement(Yt,Object(_.a)({},Me,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Me,Ve){var Ie=Ve.prevProps,$e=Ve.store,qe=$e.getState(),pt={},it={prevProps:Me};return Ie.mode==="inline"&&Me.mode!=="inline"&&(it.switchingModeFromInline=!0),"openKeys"in Me?pt.openKeys=Me.openKeys||[]:((Me.inlineCollapsed&&!Ie.inlineCollapsed||Me.siderCollapsed&&!Ie.siderCollapsed)&&(it.switchingModeFromInline=!0,it.inlineOpenKeys=qe.openKeys,pt.openKeys=[]),(!Me.inlineCollapsed&&Ie.inlineCollapsed||!Me.siderCollapsed&&Ie.siderCollapsed)&&(pt.openKeys=Ve.inlineOpenKeys,it.inlineOpenKeys=[])),Object.keys(pt).length&&$e.setState(pt),it}}]),yt}(y.Component);en.defaultProps={selectable:!0,onClick:ae,onSelect:ae,onOpenChange:ae,onDeselect:ae,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:y.createElement("span",null,"\xB7\xB7\xB7")};var Tn=en,bn=function(Qe){Object(S.a)(yt,Qe);var ut=Object(v.a)(yt);function yt(){var at;return Object(P.a)(this,yt),at=ut.apply(this,arguments),at.onKeyDown=function(Me){var Ve=Me.keyCode;return Ve===c.a.ENTER?(at.onClick(Me),!0):void 0},at.onMouseLeave=function(Me){var Ve=at.props,Ie=Ve.eventKey,$e=Ve.onItemHover,qe=Ve.onMouseLeave;$e({key:Ie,hover:!1}),qe({key:Ie,domEvent:Me})},at.onMouseEnter=function(Me){var Ve=at.props,Ie=Ve.eventKey,$e=Ve.onItemHover,qe=Ve.onMouseEnter;$e({key:Ie,hover:!0}),qe({key:Ie,domEvent:Me})},at.onClick=function(Me){var Ve=at.props,Ie=Ve.eventKey,$e=Ve.multiple,qe=Ve.onClick,pt=Ve.onSelect,it=Ve.onDeselect,It=Ve.isSelected,zt={key:Ie,keyPath:[Ie],item:Object(x.a)(at),domEvent:Me};qe(zt),$e?It?it(zt):pt(zt):It||pt(zt)},at.saveNode=function(Me){at.node=Me},at}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Me=this.props;Me.onDestroy&&Me.onDestroy(Me.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Me,Ve=Object(b.a)({},this.props),Ie=A()(this.getPrefixCls(),Ve.className,(Me={},Object(M.a)(Me,this.getActiveClassName(),!Ve.disabled&&Ve.active),Object(M.a)(Me,this.getSelectedClassName(),Ve.isSelected),Object(M.a)(Me,this.getDisabledClassName(),Ve.disabled),Me)),$e=Object(b.a)(Object(b.a)({},Ve.attribute),{},{title:typeof Ve.title=="string"?Ve.title:void 0,className:Ie,role:Ve.role||"menuitem","aria-disabled":Ve.disabled});Ve.role==="option"?$e=Object(b.a)(Object(b.a)({},$e),{},{role:"option","aria-selected":Ve.isSelected}):(Ve.role===null||Ve.role==="none")&&($e.role="none");var qe={onClick:Ve.disabled?null:this.onClick,onMouseLeave:Ve.disabled?null:this.onMouseLeave,onMouseEnter:Ve.disabled?null:this.onMouseEnter},pt=Object(b.a)({},Ve.style);Ve.mode==="inline"&&(Ve.direction==="rtl"?pt.paddingRight=Ve.inlineIndent*Ve.level:pt.paddingLeft=Ve.inlineIndent*Ve.level),J.forEach(function(It){return delete Ve[It]}),delete Ve.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(_.a)({},Object(U.a)(Ve,["onClick","onMouseEnter","onMouseLeave","onSelect"]),$e,qe,{style:pt,ref:this.saveNode}),Ve.children,it)}}]),yt}(y.Component);bn.isMenuItem=!0,bn.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var Un=Object(T.b)(function(Qe,ut){var yt=Qe.activeKey,at=Qe.selectedKeys,Me=ut.eventKey,Ve=ut.subMenuKey;return{active:yt[Ve]===Me,isSelected:Array.isArray(at)?at.indexOf(Me)!==-1:at===Me}})(bn),Wn=Un,sr=function(Qe){Object(S.a)(yt,Qe);var ut=Object(v.a)(yt);function yt(){var at;return Object(P.a)(this,yt),at=ut.apply(this,arguments),at.renderInnerMenuItem=function(Me){var Ve=at.props,Ie=Ve.renderMenuItem,$e=Ve.index;return Ie(Me,$e,at.props.subMenuKey)},at}return Object(R.a)(yt,[{key:"render",value:function(){var Me=Object(_.a)({},this.props),Ve=Me.className,Ie=Ve===void 0?"":Ve,$e=Me.rootPrefixCls,qe="".concat($e,"-item-group-title"),pt="".concat($e,"-item-group-list"),it=Me.title,It=Me.children;return J.forEach(function(zt){return delete Me[zt]}),delete Me.direction,y.createElement("li",Object(_.a)({},Me,{onClick:function(gn){return gn.stopPropagation()},className:"".concat(Ie," ").concat($e,"-item-group")}),y.createElement("div",{className:qe,title:typeof it=="string"?it:void 0},it),y.createElement("ul",{className:pt},y.Children.map(It,this.renderInnerMenuItem)))}}]),yt}(y.Component);sr.isMenuItemGroup=!0,sr.defaultProps={disabled:!0};var tr=sr,Rr=function(ut){var yt=ut.className,at=ut.rootPrefixCls,Me=ut.style;return y.createElement("li",{className:"".concat(yt," ").concat(at,"-item-divider"),style:Me})};Rr.defaultProps={disabled:!0,className:"",style:{}};var Ir=Rr,$n=Tn,Dr=o("eDIo");function vr(Qe,ut){var yt=Qe.prefixCls,at=Qe.editable,Me=Qe.locale,Ve=Qe.style;return!at||at.showAdd===!1?null:y.createElement("button",{ref:ut,type:"button",className:"".concat(yt,"-nav-add"),style:Ve,"aria-label":(Me==null?void 0:Me.addAriaLabel)||"Add tab",onClick:function($e){at.onEdit("add",{event:$e})}},at.addIcon||"+")}var zr=y.forwardRef(vr);function Lr(Qe,ut){var yt=Qe.prefixCls,at=Qe.id,Me=Qe.tabs,Ve=Qe.locale,Ie=Qe.mobile,$e=Qe.moreIcon,qe=$e===void 0?"More":$e,pt=Qe.moreTransitionName,it=Qe.style,It=Qe.className,zt=Qe.editable,gn=Qe.tabBarGutter,dn=Qe.rtl,pn=Qe.onTabClick,hn=Object(y.useState)(!1),zn=Object(m.a)(hn,2),Sn=zn[0],jr=zn[1],Pr=Object(y.useState)(null),Qr=Object(m.a)(Pr,2),Wr=Qr[0],ta=Qr[1],Xn="".concat(at,"-more-popup"),Tr="".concat(yt,"-dropdown"),Yn=Wr!==null?"".concat(Xn,"-").concat(Wr):null,Cn=Ve==null?void 0:Ve.dropdownAriaLabel,Hn=y.createElement($n,{onClick:function(Sa){var Or=Sa.key,br=Sa.domEvent;pn(Or,br),jr(!1)},id:Xn,tabIndex:-1,role:"listbox","aria-activedescendant":Yn,selectedKeys:[Wr],"aria-label":Cn!==void 0?Cn:"expanded dropdown"},Me.map(function(ha){return y.createElement(Wn,{key:ha.key,id:"".concat(Xn,"-").concat(ha.key),role:"option","aria-controls":at&&"".concat(at,"-panel-").concat(ha.key),disabled:ha.disabled},ha.tab)}));function Vr(ha){for(var Sa=Me.filter(function(pa){return!pa.disabled}),Or=Sa.findIndex(function(pa){return pa.key===Wr})||0,br=Sa.length,Mr=0;Mr<br;Mr+=1){Or=(Or+ha+br)%br;var ar=Sa[Or];if(!ar.disabled){ta(ar.key);return}}}function ua(ha){var Sa=ha.which;if(!Sn){[c.a.DOWN,c.a.SPACE,c.a.ENTER].includes(Sa)&&(jr(!0),ha.preventDefault());return}switch(Sa){case c.a.UP:Vr(-1),ha.preventDefault();break;case c.a.DOWN:Vr(1),ha.preventDefault();break;case c.a.ESC:jr(!1);break;case c.a.SPACE:case c.a.ENTER:Wr!==null&&pn(Wr,ha);break}}Object(y.useEffect)(function(){var ha=document.getElementById(Yn);ha&&ha.scrollIntoView&&ha.scrollIntoView(!1)},[Wr]),Object(y.useEffect)(function(){Sn||ta(null)},[Sn]);var hr=Object(M.a)({},dn?"marginLeft":"marginRight",gn);Me.length||(hr.visibility="hidden",hr.order=1);var aa=A()(Object(M.a)({},"".concat(Tr,"-rtl"),dn)),Ca=Ie?null:y.createElement(Dr.a,{prefixCls:Tr,overlay:Hn,trigger:["hover"],visible:Sn,transitionName:pt,onVisibleChange:jr,overlayClassName:aa,mouseEnterDelay:.1,mouseLeaveDelay:.1},y.createElement("button",{type:"button",className:"".concat(yt,"-nav-more"),style:hr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Xn,id:"".concat(at,"-more"),"aria-expanded":Sn,onKeyDown:ua},qe));return y.createElement("div",{className:A()("".concat(yt,"-nav-operations"),It),style:it,ref:ut},Ca,y.createElement(zr,{prefixCls:yt,locale:Ve,editable:zt}))}var $r=y.forwardRef(Lr),ir=Object(y.createContext)(null),Kt=.1,qt=.01,Jt=20,Qn=Math.pow(.995,Jt);function nr(){var Qe=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Qe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Qe.substr(0,4)))}function jn(Qe,ut){var yt=Object(y.useState)(),at=Object(m.a)(yt,2),Me=at[0],Ve=at[1],Ie=Object(y.useState)(0),$e=Object(m.a)(Ie,2),qe=$e[0],pt=$e[1],it=Object(y.useState)(0),It=Object(m.a)(it,2),zt=It[0],gn=It[1],dn=Object(y.useState)(),pn=Object(m.a)(dn,2),hn=pn[0],zn=pn[1],Sn=Object(y.useRef)();function jr(Cn){var Hn=Cn.touches[0],Vr=Hn.screenX,ua=Hn.screenY;Ve({x:Vr,y:ua}),window.clearInterval(Sn.current)}function Pr(Cn){if(!Me)return;Cn.preventDefault();var Hn=Cn.touches[0],Vr=Hn.screenX,ua=Hn.screenY;Ve({x:Vr,y:ua});var hr=Vr-Me.x,aa=ua-Me.y;ut(hr,aa);var Ca=Date.now();pt(Ca),gn(Ca-qe),zn({x:hr,y:aa})}function Qr(){if(!Me)return;if(Ve(null),zn(null),hn){var Cn=hn.x/zt,Hn=hn.y/zt,Vr=Math.abs(Cn),ua=Math.abs(Hn);if(Math.max(Vr,ua)<Kt)return;var hr=Cn,aa=Hn;Sn.current=window.setInterval(function(){if(Math.abs(hr)<qt&&Math.abs(aa)<qt){window.clearInterval(Sn.current);return}hr*=Qn,aa*=Qn,ut(hr*Jt,aa*Jt)},Jt)}}var Wr=Object(y.useRef)(0),ta=Object(y.useRef)(!1),Xn=Object(y.useRef)();function Tr(Cn){var Hn=Cn.deltaX,Vr=Cn.deltaY,ua=0,hr=Math.abs(Hn),aa=Math.abs(Vr);hr===aa?ua=Xn.current==="x"?Hn:Vr:hr>aa?(ua=Hn,Xn.current="x"):(ua=Vr,Xn.current="y");var Ca=Date.now();Ca-Wr.current>100&&(ta.current=!1),(ut(-ua,-ua)||ta.current)&&(Cn.preventDefault(),ta.current=!0),Wr.current=Ca}var Yn=Object(y.useRef)(null);Yn.current={onTouchStart:jr,onTouchMove:Pr,onTouchEnd:Qr,onWheel:Tr},y.useEffect(function(){function Cn(hr){Yn.current.onTouchStart(hr)}function Hn(hr){Yn.current.onTouchMove(hr)}function Vr(hr){Yn.current.onTouchEnd(hr)}function ua(hr){Yn.current.onWheel(hr)}return document.addEventListener("touchmove",Hn,{passive:!1}),document.addEventListener("touchend",Vr,{passive:!1}),Qe.current.addEventListener("touchstart",Cn,{passive:!1}),Qe.current.addEventListener("wheel",ua),function(){document.removeEventListener("touchmove",Hn),document.removeEventListener("touchend",Vr)}},[])}function or(){var Qe=Object(y.useRef)(new Map);function ut(at){return Qe.current.has(at)||Qe.current.set(at,y.createRef()),Qe.current.get(at)}function yt(at){Qe.current.delete(at)}return[ut,yt]}function fr(Qe,ut){var yt=y.useRef(Qe),at=y.useState({}),Me=Object(m.a)(at,2),Ve=Me[1];function Ie($e){var qe=typeof $e=="function"?$e(yt.current):$e;qe!==yt.current&&ut(qe,yt.current),yt.current=qe,Ve({})}return[yt.current,Ie]}var lr=function(ut){var yt=ut.position,at=ut.prefixCls,Me=ut.extra;if(!Me)return null;var Ve,Ie=Me;return yt==="right"&&(Ve=Ie.right||!Ie.left&&Ie||null),yt==="left"&&(Ve=Ie.left||null),Ve?y.createElement("div",{className:"".concat(at,"-extra-content")},Ve):null};function qr(Qe,ut){var yt,at=y.useContext(ir),Me=at.prefixCls,Ve=at.tabs,Ie=Qe.className,$e=Qe.style,qe=Qe.id,pt=Qe.animated,it=Qe.activeKey,It=Qe.rtl,zt=Qe.extra,gn=Qe.editable,dn=Qe.locale,pn=Qe.tabPosition,hn=Qe.tabBarGutter,zn=Qe.children,Sn=Qe.onTabClick,jr=Qe.onTabScroll,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useRef)(),ta=Object(y.useRef)(),Xn=or(),Tr=Object(m.a)(Xn,2),Yn=Tr[0],Cn=Tr[1],Hn=pn==="top"||pn==="bottom",Vr=fr(0,function(Da,ya){Hn&&jr&&jr({direction:Da>ya?"left":"right"})}),ua=Object(m.a)(Vr,2),hr=ua[0],aa=ua[1],Ca=fr(0,function(Da,ya){!Hn&&jr&&jr({direction:Da>ya?"top":"bottom"})}),ha=Object(m.a)(Ca,2),Sa=ha[0],Or=ha[1],br=Object(y.useState)(0),Mr=Object(m.a)(br,2),ar=Mr[0],pa=Mr[1],xa=Object(y.useState)(0),ba=Object(m.a)(xa,2),Aa=ba[0],ga=ba[1],Na=Object(y.useState)(0),ka=Object(m.a)(Na,2),Fa=ka[0],ni=ka[1],Fi=Object(y.useState)(0),Ai=Object(m.a)(Fi,2),La=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),ja=Object(m.a)(Si,2),Ma=ja[0],Za=ja[1],to=Object(y.useState)(null),Mo=Object(m.a)(to,2),Ii=Mo[0],no=Mo[1],ro=Object(y.useState)(0),mi=Object(m.a)(ro,2),uo=mi[0],Io=mi[1],Lo=Object(y.useState)(0),bo=Object(m.a)(Lo,2),Vi=bo[0],co=bo[1],Xi=r(new Map),Yi=Object(m.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=u(Ve,No,ar),Ji="".concat(Me,"-nav-operations-hidden"),Qi=0,ei=0;Hn?It?(Qi=0,ei=Math.max(0,ar-Ma)):(Qi=Math.min(0,Ma-ar),ei=0):(Qi=Math.min(0,Ii-Aa),ei=0);function Li(Da){return Da<Qi?[Qi,!1]:Da>ei?[ei,!1]:[Da,!0]}var Di=Object(y.useRef)(),Zi=Object(y.useState)(),Ri=Object(m.a)(Zi,2),Eo=Ri[0],xo=Ri[1];function Co(){xo(Date.now())}function io(){window.clearTimeout(Di.current)}jn(Pr,function(Da,ya){var Ga=!1;function ui(eo,ki){eo(function(ho){var wi=Li(ho+ki),qa=Object(m.a)(wi,2),po=qa[0],Hi=qa[1];return Ga=Hi,po})}if(Hn){if(Ma>=ar)return Ga;ui(aa,Da)}else{if(Ii>=Aa)return Ga;ui(Or,ya)}return io(),Co(),Ga}),Object(y.useEffect)(function(){return io(),Eo&&(Di.current=window.setTimeout(function(){xo(0)},100)),io},[Eo]);function Ni(){var Da=arguments.length>0&&arguments[0]!==void 0?arguments[0]:it,ya=ao.get(Da);if(!ya)return;if(Hn){var Ga=hr;It?ya.right<hr?Ga=ya.right:ya.right+ya.width>hr+Ma&&(Ga=ya.right+ya.width-Ma):ya.left<-hr?Ga=-ya.left:ya.left+ya.width>-hr+Ma&&(Ga=-(ya.left+ya.width-Ma)),Or(0),aa(Li(Ga)[0])}else{var ui=Sa;ya.top<-Sa?ui=-ya.top:ya.top+ya.height>-Sa+Ii&&(ui=-(ya.top+ya.height-Ii)),aa(0),Or(Li(ui)[0])}}var qi=E(ao,{width:Ma,height:Ii,left:hr,top:Sa},{width:Fa,height:La},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Qe),{},{tabs:Ve})),ko=Object(m.a)(qi,2),oo=ko[0],so=ko[1],So=Ve.map(function(Da){var ya=Da.key;return y.createElement(d,{id:qe,prefixCls:Me,key:ya,rtl:It,tab:Da,closable:Da.closable,editable:gn,active:ya===it,tabPosition:pn,tabBarGutter:hn,renderWrapper:zn,removeAriaLabel:dn==null?void 0:dn.removeAriaLabel,ref:Yn(ya),onClick:function(ui){Sn(ya,ui)},onRemove:function(){Cn(ya)},onFocus:function(){Ni(ya),Co(),It||(Pr.current.scrollLeft=0),Pr.current.scrollTop=0}})}),Uo=i(function(){var Da,ya,Ga,ui,eo,ki,ho,wi,qa,po=((Da=Pr.current)===null||Da===void 0?void 0:Da.offsetWidth)||0,Hi=((ya=Pr.current)===null||ya===void 0?void 0:ya.offsetHeight)||0,mo=((Ga=ta.current)===null||Ga===void 0?void 0:Ga.offsetWidth)||0,hi=((ui=ta.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Pa=((eo=Wr.current)===null||eo===void 0?void 0:eo.offsetWidth)||0,sa=((ki=Wr.current)===null||ki===void 0?void 0:ki.offsetHeight)||0;Za(po),no(Hi),Io(mo),co(hi);var Sr=(((ho=Qr.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-mo,Zr=(((wi=Qr.current)===null||wi===void 0?void 0:wi.offsetHeight)||0)-hi;pa(Sr),ga(Zr);var va=(qa=Wr.current)===null||qa===void 0?void 0:qa.className.includes(Ji);ni(Sr-(va?0:Pa)),bi(Zr-(va?0:sa)),yo(function(){var Wa=new Map;return Ve.forEach(function(Ei){var Pi=Ei.key,$a=Yn(Pi).current;$a&&Wa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Wa})}),jo=Ve.slice(0,oo),fi=Ve.slice(so+1),Ha=[].concat(Object(f.a)(jo),Object(f.a)(fi)),ri=Object(y.useState)(),Xa=Object(m.a)(ri,2),ai=Xa[0],wo=Xa[1],yi=ao.get(it),Bo=Object(y.useRef)();function To(){l.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Da={};return yi&&(Hn?(It?Da.right=yi.right:Da.left=yi.left,Da.width=yi.width):(Da.top=yi.top,Da.height=yi.height)),To(),Bo.current=l()(function(){wo(Da)}),To},[yi,Hn,It]),Object(y.useEffect)(function(){Ni()},[it,yi,ao,Hn]),Object(y.useEffect)(function(){Uo()},[It,hn,it,Ve.map(function(Da){return Da.key}).join("_")]);var $i=!!Ha.length,Wi="".concat(Me,"-nav-wrap"),Oo,fo,Wo,lo;return Hn?It?(fo=hr>0,Oo=hr+Ma<ar):(Oo=hr<0,fo=-hr+Ma<ar):(Wo=Sa<0,lo=-Sa+Ii<Aa),y.createElement("div",{ref:ut,role:"tablist",className:A()("".concat(Me,"-nav"),Ie),style:$e,onKeyDown:function(){Co()}},y.createElement(lr,{position:"left",extra:zt,prefixCls:Me}),y.createElement(n.a,{onResize:Uo},y.createElement("div",{className:A()(Wi,(yt={},Object(M.a)(yt,"".concat(Wi,"-ping-left"),Oo),Object(M.a)(yt,"".concat(Wi,"-ping-right"),fo),Object(M.a)(yt,"".concat(Wi,"-ping-top"),Wo),Object(M.a)(yt,"".concat(Wi,"-ping-bottom"),lo),yt)),ref:Pr},y.createElement(n.a,{onResize:Uo},y.createElement("div",{ref:Qr,className:"".concat(Me,"-nav-list"),style:{transform:"translate(".concat(hr,"px, ").concat(Sa,"px)"),transition:Eo?"none":void 0}},So,y.createElement(zr,{ref:ta,prefixCls:Me,locale:dn,editable:gn,style:{visibility:$i?"hidden":null}}),y.createElement("div",{className:A()("".concat(Me,"-ink-bar"),Object(M.a)({},"".concat(Me,"-ink-bar-animated"),pt.inkBar)),style:ai}))))),y.createElement($r,Object.assign({},Qe,{ref:Wr,prefixCls:Me,tabs:Ha,className:!$i&&Ji})),y.createElement(lr,{position:"right",extra:zt,prefixCls:Me}))}var ur=y.forwardRef(qr);function da(Qe){var ut=Qe.id,yt=Qe.activeKey,at=Qe.animated,Me=Qe.tabPosition,Ve=Qe.rtl,Ie=Qe.destroyInactiveTabPane,$e=y.useContext(ir),qe=$e.prefixCls,pt=$e.tabs,it=at.tabPane,It=pt.findIndex(function(zt){return zt.key===yt});return y.createElement("div",{className:A()("".concat(qe,"-content-holder"))},y.createElement("div",{className:A()("".concat(qe,"-content"),"".concat(qe,"-content-").concat(Me),Object(M.a)({},"".concat(qe,"-content-animated"),it)),style:It&&it?Object(M.a)({},Ve?"marginRight":"marginLeft","-".concat(It,"00%")):null},pt.map(function(zt){return y.cloneElement(zt.node,{key:zt.key,prefixCls:qe,tabKey:zt.key,id:ut,animated:it,active:zt.key===yt,destroyInactiveTabPane:Ie})})))}function Yr(Qe){var ut=Qe.prefixCls,yt=Qe.forceRender,at=Qe.className,Me=Qe.style,Ve=Qe.id,Ie=Qe.active,$e=Qe.animated,qe=Qe.destroyInactiveTabPane,pt=Qe.tabKey,it=Qe.children,It=y.useState(yt),zt=Object(m.a)(It,2),gn=zt[0],dn=zt[1];y.useEffect(function(){Ie?dn(!0):qe&&dn(!1)},[Ie,qe]);var pn={};return Ie||($e?(pn.visibility="hidden",pn.height=0,pn.overflowY="hidden"):pn.display="none"),y.createElement("div",{id:Ve&&"".concat(Ve,"-panel-").concat(pt),role:"tabpanel",tabIndex:Ie?0:-1,"aria-labelledby":Ve&&"".concat(Ve,"-tab-").concat(pt),"aria-hidden":!Ie,style:Object(b.a)(Object(b.a)({},pn),Me),className:A()("".concat(ut,"-tabpane"),Ie&&"".concat(ut,"-tabpane-active"),at)},(Ie||gn||yt)&&it)}var _r=0;function wr(Qe){return Object(g.a)(Qe).map(function(ut){if(y.isValidElement(ut)){var yt=ut.key!==void 0?String(ut.key):void 0;return Object(b.a)(Object(b.a)({key:yt},ut.props),{},{node:ut})}return null}).filter(function(ut){return ut})}function Kr(Qe,ut){var yt,at=Qe.id,Me=Qe.prefixCls,Ve=Me===void 0?"rc-tabs":Me,Ie=Qe.className,$e=Qe.children,qe=Qe.direction,pt=Qe.activeKey,it=Qe.defaultActiveKey,It=Qe.editable,zt=Qe.animated,gn=Qe.tabPosition,dn=gn===void 0?"top":gn,pn=Qe.tabBarGutter,hn=Qe.tabBarStyle,zn=Qe.tabBarExtraContent,Sn=Qe.locale,jr=Qe.moreIcon,Pr=Qe.moreTransitionName,Qr=Qe.destroyInactiveTabPane,Wr=Qe.renderTabBar,ta=Qe.onChange,Xn=Qe.onTabClick,Tr=Qe.onTabScroll,Yn=Object(O.a)(Qe,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Cn=wr($e),Hn=qe==="rtl",Vr;zt===!1?Vr={inkBar:!1,tabPane:!1}:Vr=Object(b.a)({inkBar:!0,tabPane:!1},zt!==!0?zt:null);var ua=Object(y.useState)(!1),hr=Object(m.a)(ua,2),aa=hr[0],Ca=hr[1];Object(y.useEffect)(function(){Ca(nr())},[]);var ha=Object(e.a)(function(){var La;return(La=Cn[0])===null||La===void 0?void 0:La.key},{value:pt,defaultValue:it}),Sa=Object(m.a)(ha,2),Or=Sa[0],br=Sa[1],Mr=Object(y.useState)(function(){return Cn.findIndex(function(La){return La.key===Or})}),ar=Object(m.a)(Mr,2),pa=ar[0],xa=ar[1];Object(y.useEffect)(function(){var La=Cn.findIndex(function(Si){return Si.key===Or});if(La===-1){var bi;La=Math.max(0,Math.min(pa,Cn.length-1)),br((bi=Cn[La])===null||bi===void 0?void 0:bi.key)}xa(La)},[Cn.map(function(La){return La.key}).join("_"),Or,pa]);var ba=Object(e.a)(null,{value:at}),Aa=Object(m.a)(ba,2),ga=Aa[0],Na=Aa[1],ka=dn;aa&&!["left","right"].includes(dn)&&(ka="top"),Object(y.useEffect)(function(){at||(Na("rc-tabs-".concat(_r)),_r+=1)},[]);function Fa(La,bi){Xn==null||Xn(La,bi),br(La),ta==null||ta(La)}var ni={id:ga,activeKey:Or,animated:Vr,tabPosition:ka,rtl:Hn,mobile:aa},Fi,Ai=Object(b.a)(Object(b.a)({},ni),{},{editable:It,locale:Sn,moreIcon:jr,moreTransitionName:Pr,tabBarGutter:pn,onTabClick:Fa,onTabScroll:Tr,extra:zn,style:hn,panes:$e});return Wr?Fi=Wr(Ai,ur):Fi=y.createElement(ur,Object.assign({},Ai)),y.createElement(ir.Provider,{value:{tabs:Cn,prefixCls:Ve}},y.createElement("div",Object.assign({ref:ut,id:at,className:A()(Ve,"".concat(Ve,"-").concat(ka),(yt={},Object(M.a)(yt,"".concat(Ve,"-mobile"),aa),Object(M.a)(yt,"".concat(Ve,"-editable"),It),Object(M.a)(yt,"".concat(Ve,"-rtl"),Hn),yt),Ie)},Yn),Fi,y.createElement(da,Object.assign({destroyInactiveTabPane:Qr},ni,{animated:Vr}))))}var Jr=y.forwardRef(Kr);Jr.TabPane=Yr;var Oa=Jr,_a=z.b=Oa},kPWJ:function(k,z,o){k.exports=o.p+"static/question.cb52bef9.gif"},kPYp:function(k,z){k.exports="data:image/png;base64,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"},kSUc:function(k,z,o){},l2Kq:function(k,z,o){k.exports=o.p+"static/match_ad.24dc22fd.jpg"},lPiR:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(m){var O=M,b=O.lib,y=b.WordArray,C=b.Hasher,A=O.algo,g=[],e=[];(function(){function l(c){for(var h=m.sqrt(c),d=2;d<=h;d++)if(!(c%d))return!1;return!0}function n(c){return(c-(c|0))*4294967296|0}for(var i=2,r=0;r<64;)l(i)&&(r<8&&(g[r]=n(m.pow(i,1/2))),e[r]=n(m.pow(i,1/3)),r++),i++})();var f=[],a=A.SHA256=C.extend({_doReset:function(){this._hash=new y.init(g.slice(0))},_doProcessBlock:function(l,n){for(var i=this._hash.words,r=i[0],c=i[1],h=i[2],d=i[3],s=i[4],u=i[5],w=i[6],E=i[7],_=0;_<64;_++){if(_<16)f[_]=l[n+_]|0;else{var P=f[_-15],R=(P<<25|P>>>7)^(P<<14|P>>>18)^P>>>3,x=f[_-2],S=(x<<15|x>>>17)^(x<<13|x>>>19)^x>>>10;f[_]=R+f[_-7]+S+f[_-16]}var v=s&u^~s&w,T=r&c^r&h^c&h,U=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),I=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=E+I+v+e[_]+f[_],V=U+T;E=w,w=u,u=s,s=d+N|0,d=h,h=c,c=r,r=N+V|0}i[0]=i[0]+r|0,i[1]=i[1]+c|0,i[2]=i[2]+h|0,i[3]=i[3]+d|0,i[4]=i[4]+s|0,i[5]=i[5]+u|0,i[6]=i[6]+w|0,i[7]=i[7]+E|0},_doFinalize:function(){var l=this._data,n=l.words,i=this._nDataBytes*8,r=l.sigBytes*8;return n[r>>>5]|=128<<24-r%32,n[(r+64>>>9<<4)+14]=m.floor(i/4294967296),n[(r+64>>>9<<4)+15]=i,l.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var l=C.clone.call(this);return l._hash=this._hash.clone(),l}});O.SHA256=C._createHelper(a),O.HmacSHA256=C._createHmacHelper(a)}(Math),M.SHA256})},lZu9:function(k,z,o){(function(M){M(o("VrN/"),o("1eCo"),o("8EBN"))})(function(M){"use strict";M.defineMode("markdown",function(m,O){var b=M.getMode(m,"text/html"),y=b.name=="null";function C(F){if(M.findModeByName){var L=M.findModeByName(F);L&&(F=L.mime||L.mimes[0])}var K=M.getMode(m,F);return K.name=="null"?null:K}O.highlightFormatting===void 0&&(O.highlightFormatting=!1),O.maxBlockquoteDepth===void 0&&(O.maxBlockquoteDepth=0),O.taskLists===void 0&&(O.taskLists=!1),O.strikethrough===void 0&&(O.strikethrough=!1),O.emoji===void 0&&(O.emoji=!1),O.fencedCodeBlockHighlighting===void 0&&(O.fencedCodeBlockHighlighting=!0),O.fencedCodeBlockDefaultMode===void 0&&(O.fencedCodeBlockDefaultMode="text/plain"),O.xml===void 0&&(O.xml=!0),O.tokenTypeOverrides===void 0&&(O.tokenTypeOverrides={});var A={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var g in A)A.hasOwnProperty(g)&&O.tokenTypeOverrides[g]&&(A[g]=O.tokenTypeOverrides[g]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,f=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,l=O.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,n=/^ {0,3}(?:\={1,}|-{2,})\s*$/,i=/^[^#!\[\]*_\\<>` "'(~:]+/,r=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,c=/^\s*\[[^\]]+?\]:.*$/,h=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,d=" ";function s(F,L,K){return L.f=L.inline=K,K(F,L)}function u(F,L,K){return L.f=L.block=K,K(F,L)}function w(F){return!F||!/\S/.test(F.string)}function E(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==P){var L=y;if(!L){var K=M.innerMode(b,F.htmlState);L=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}L&&(F.f=v,F.block=_,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function _(F,L){var K=F.column()===L.indentation,ee=w(L.prevLine.stream),he=L.indentedCode,fe=L.prevLine.hr,Ce=L.list!==!1,Te=(L.listStack[L.listStack.length-1]||0)+3;L.indentedCode=!1;var ce=L.indentation;if(L.indentationDiff===null&&(L.indentationDiff=L.indentation,Ce)){for(L.list=null;ce<L.listStack[L.listStack.length-1];)L.listStack.pop(),L.listStack.length?L.indentation=L.listStack[L.listStack.length-1]:L.list=!1;L.list!==!1&&(L.indentationDiff=ce-L.listStack[L.listStack.length-1])}var ye=!ee&&!fe&&!L.prevLine.header&&(!Ce||!he)&&!L.prevLine.fencedCodeEnd,Ee=(L.list===!1||fe||ee)&&L.indentation<=Te&&F.match(e),ue=null;if(L.indentationDiff>=4&&(he||L.prevLine.fencedCodeEnd||L.prevLine.header||ee))return F.skipToEnd(),L.indentedCode=!0,A.code;if(F.eatSpace())return null;if(K&&L.indentation<=Te&&(ue=F.match(l))&&ue[1].length<=6)return L.quote=0,L.header=ue[1].length,L.thisLine.header=!0,O.highlightFormatting&&(L.formatting="header"),L.f=L.inline,x(L);if(L.indentation<=Te&&F.eat(">"))return L.quote=K?1:L.quote+1,O.highlightFormatting&&(L.formatting="quote"),F.eatSpace(),x(L);if(!Ee&&!L.setext&&K&&L.indentation<=Te&&(ue=F.match(f))){var se=ue[1]?"ol":"ul";return L.indentation=ce+F.current().length,L.list=!0,L.quote=0,L.listStack.push(L.indentation),L.em=!1,L.strong=!1,L.code=!1,L.strikethrough=!1,O.taskLists&&F.match(a,!1)&&(L.taskList=!0),L.f=L.inline,O.highlightFormatting&&(L.formatting=["list","list-"+se]),x(L)}else{if(K&&L.indentation<=Te&&(ue=F.match(r,!0)))return L.quote=0,L.fencedEndRE=new RegExp(ue[1]+"+ *$"),L.localMode=O.fencedCodeBlockHighlighting&&C(ue[2]||O.fencedCodeBlockDefaultMode),L.localMode&&(L.localState=M.startState(L.localMode)),L.f=L.block=R,O.highlightFormatting&&(L.formatting="code-block"),L.code=-1,x(L);if(L.setext||(!ye||!Ce)&&!L.quote&&L.list===!1&&!L.code&&!Ee&&!c.test(F.string)&&(ue=F.lookAhead(1))&&(ue=ue.match(n)))return L.setext?(L.header=L.setext,L.setext=0,F.skipToEnd(),O.highlightFormatting&&(L.formatting="header")):(L.header=ue[0].charAt(0)=="="?1:2,L.setext=L.header),L.thisLine.header=!0,L.f=L.inline,x(L);if(Ee)return F.skipToEnd(),L.hr=!0,L.thisLine.hr=!0,A.hr;if(F.peek()==="[")return s(F,L,V)}return s(F,L,L.inline)}function P(F,L){var K=b.token(F,L.htmlState);if(!y){var ee=M.innerMode(b,L.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||L.md_inside&&F.current().indexOf(">")>-1)&&(L.f=v,L.block=_,L.htmlState=null)}return K}function R(F,L){var K=L.listStack[L.listStack.length-1]||0,ee=L.indentation<K,he=K+3;if(L.fencedEndRE&&L.indentation<=he&&(ee||F.match(L.fencedEndRE))){O.highlightFormatting&&(L.formatting="code-block");var fe;return ee||(fe=x(L)),L.localMode=L.localState=null,L.block=_,L.f=v,L.fencedEndRE=null,L.code=0,L.thisLine.fencedCodeEnd=!0,ee?u(F,L,L.block):fe}else return L.localMode?L.localMode.token(F,L.localState):(F.skipToEnd(),A.code)}function x(F){var L=[];if(F.formatting){L.push(A.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var K=0;K<F.formatting.length;K++)L.push(A.formatting+"-"+F.formatting[K]),F.formatting[K]==="header"&&L.push(A.formatting+"-"+F.formatting[K]+"-"+F.header),F.formatting[K]==="quote"&&(!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=F.quote?L.push(A.formatting+"-"+F.formatting[K]+"-"+F.quote):L.push("error"))}if(F.taskOpen)return L.push("meta"),L.length?L.join(" "):null;if(F.taskClosed)return L.push("property"),L.length?L.join(" "):null;if(F.linkHref?L.push(A.linkHref,"url"):(F.strong&&L.push(A.strong),F.em&&L.push(A.em),F.strikethrough&&L.push(A.strikethrough),F.emoji&&L.push(A.emoji),F.linkText&&L.push(A.linkText),F.code&&L.push(A.code),F.image&&L.push(A.image),F.imageAltText&&L.push(A.imageAltText,"link"),F.imageMarker&&L.push(A.imageMarker)),F.header&&L.push(A.header,A.header+"-"+F.header),F.quote&&(L.push(A.quote),!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=F.quote?L.push(A.quote+"-"+F.quote):L.push(A.quote+"-"+O.maxBlockquoteDepth)),F.list!==!1){var ee=(F.listStack.length-1)%3;ee?ee===1?L.push(A.list2):L.push(A.list3):L.push(A.list1)}return F.trailingSpaceNewLine?L.push("trailing-space-new-line"):F.trailingSpace&&L.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),L.length?L.join(" "):null}function S(F,L){return F.match(i,!0)?x(L):void 0}function v(F,L){var K=L.text(F,L);if(typeof K!="undefined")return K;if(L.list)return L.list=null,x(L);if(L.taskList){var ee=F.match(a,!0)[1]===" ";return ee?L.taskOpen=!0:L.taskClosed=!0,O.highlightFormatting&&(L.formatting="task"),L.taskList=!1,x(L)}if(L.taskOpen=!1,L.taskClosed=!1,L.header&&F.match(/^#+$/,!0))return O.highlightFormatting&&(L.formatting="header"),x(L);var he=F.next();if(L.linkTitle){L.linkTitle=!1;var fe=he;he==="("&&(fe=")"),fe=(fe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ce="^\\s*(?:[^"+fe+"\\\\]+|\\\\\\\\|\\\\.)"+fe;if(F.match(new RegExp(Ce),!0))return A.linkHref}if(he==="`"){var Te=L.formatting;O.highlightFormatting&&(L.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(L.code==0&&(!L.quote||ce==1))return L.code=ce,x(L);if(ce==L.code){var ye=x(L);return L.code=0,ye}else return L.formatting=Te,x(L)}else if(L.code)return x(L);if(he==="\\"&&(F.next(),O.highlightFormatting)){var Ee=x(L),ue=A.formatting+"-escape";return Ee?Ee+" "+ue:ue}if(he==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return L.imageMarker=!0,L.image=!0,O.highlightFormatting&&(L.formatting="image"),x(L);if(he==="["&&L.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return L.imageMarker=!1,L.imageAltText=!0,O.highlightFormatting&&(L.formatting="image"),x(L);if(he==="]"&&L.imageAltText){O.highlightFormatting&&(L.formatting="image");var Ee=x(L);return L.imageAltText=!1,L.image=!1,L.inline=L.f=U,Ee}if(he==="["&&!L.image)return L.linkText&&F.match(/^.*?\]/)||(L.linkText=!0,O.highlightFormatting&&(L.formatting="link")),x(L);if(he==="]"&&L.linkText){O.highlightFormatting&&(L.formatting="link");var Ee=x(L);return L.linkText=!1,L.inline=L.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?U:v,Ee}if(he==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){L.f=L.inline=T,O.highlightFormatting&&(L.formatting="link");var Ee=x(L);return Ee?Ee+=" ":Ee="",Ee+A.linkInline}if(he==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){L.f=L.inline=T,O.highlightFormatting&&(L.formatting="link");var Ee=x(L);return Ee?Ee+=" ":Ee="",Ee+A.linkEmail}if(O.xml&&he==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var se=F.string.indexOf(">",F.pos);if(se!=-1){var $=F.string.substring(F.start,se);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($)&&(L.md_inside=!0)}return F.backUp(1),L.htmlState=M.startState(b),u(F,L,P)}if(O.xml&&he==="<"&&F.match(/^\/\w*?>/))return L.md_inside=!1,"tag";if(he==="*"||he==="_"){for(var me=1,re=F.pos==1?" ":F.string.charAt(F.pos-2);me<3&&F.eat(he);)me++;var ae=F.peek()||" ",we=!/\s/.test(ae)&&(!h.test(ae)||/\s/.test(re)||h.test(re)),le=!/\s/.test(re)&&(!h.test(re)||/\s/.test(ae)||h.test(ae)),te=null,Q=null;if(me%2&&(!L.em&&we&&(he==="*"||!le||h.test(re))?te=!0:L.em==he&&le&&(he==="*"||!we||h.test(ae))&&(te=!1)),me>1&&(!L.strong&&we&&(he==="*"||!le||h.test(re))?Q=!0:L.strong==he&&le&&(he==="*"||!we||h.test(ae))&&(Q=!1)),Q!=null||te!=null){O.highlightFormatting&&(L.formatting=te==null?"strong":Q==null?"em":"strong em"),te===!0&&(L.em=he),Q===!0&&(L.strong=he);var ye=x(L);return te===!1&&(L.em=!1),Q===!1&&(L.strong=!1),ye}}else if(he===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return x(L);F.backUp(1)}if(O.strikethrough){if(he==="~"&&F.eatWhile(he)){if(L.strikethrough){O.highlightFormatting&&(L.formatting="strikethrough");var ye=x(L);return L.strikethrough=!1,ye}else if(F.match(/^[^\s]/,!1))return L.strikethrough=!0,O.highlightFormatting&&(L.formatting="strikethrough"),x(L)}else if(he===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return x(L);F.backUp(2)}}if(O.emoji&&he===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){L.emoji=!0,O.highlightFormatting&&(L.formatting="emoji");var J=x(L);return L.emoji=!1,J}return he===" "&&(F.match(/^ +$/,!1)?L.trailingSpace++:L.trailingSpace&&(L.trailingSpaceNewLine=!0)),x(L)}function T(F,L){var K=F.next();if(K===">"){L.f=L.inline=v,O.highlightFormatting&&(L.formatting="link");var ee=x(L);return ee?ee+=" ":ee="",ee+A.linkInline}return F.match(/^[^>]+/,!0),A.linkInline}function U(F,L){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(L.f=L.inline=N(K==="("?")":"]"),O.highlightFormatting&&(L.formatting="link-string"),L.linkHref=!0,x(L)):"error"}var I={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(L,K){var ee=L.next();if(ee===F){K.f=K.inline=v,O.highlightFormatting&&(K.formatting="link-string");var he=x(K);return K.linkHref=!1,he}return L.match(I[F]),K.linkHref=!0,x(K)}}function V(F,L){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(L.f=H,F.next(),O.highlightFormatting&&(L.formatting="link"),L.linkText=!0,x(L)):s(F,L,v)}function H(F,L){if(F.match(/^\]:/,!0)){L.f=L.inline=D,O.highlightFormatting&&(L.formatting="link");var K=x(L);return L.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),A.linkText}function D(F,L){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?L.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),L.f=L.inline=v,A.linkHref+" url")}var W={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:v,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(F){return{f:F.f,prevLine:F.prevLine,thisLine:F.thisLine,block:F.block,htmlState:F.htmlState&&M.copyState(b,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?M.copyState(F.localMode,F.localState):null,inline:F.inline,text:F.text,formatting:!1,linkText:F.linkText,linkTitle:F.linkTitle,linkHref:F.linkHref,code:F.code,em:F.em,strong:F.strong,strikethrough:F.strikethrough,emoji:F.emoji,header:F.header,setext:F.setext,hr:F.hr,taskList:F.taskList,list:F.list,listStack:F.listStack.slice(0),quote:F.quote,indentedCode:F.indentedCode,trailingSpace:F.trailingSpace,trailingSpaceNewLine:F.trailingSpaceNewLine,md_inside:F.md_inside,fencedEndRE:F.fencedEndRE}},token:function(F,L){if(L.formatting=!1,F!=L.thisLine.stream){if(L.header=0,L.hr=!1,F.match(/^\s*$/,!0))return E(L),null;if(L.prevLine=L.thisLine,L.thisLine={stream:F},L.taskList=!1,L.trailingSpace=0,L.trailingSpaceNewLine=!1,!L.localState&&(L.f=L.block,L.f!=P)){var K=F.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(L.indentation=K,L.indentationDiff=null,K>0)return null}}return L.f(F,L)},innerMode:function(F){return F.block==P?{state:F.htmlState,mode:b}:F.localState?{state:F.localState,mode:F.localMode}:{state:F,mode:W}},indent:function(F,L,K){return F.block==P&&b.indent?b.indent(F.htmlState,L,K):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,L,K):M.Pass},blankLine:E,getType:x,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return W},"xml"),M.defineMIME("text/markdown","markdown"),M.defineMIME("text/x-markdown","markdown")})},luix:function(k,z,o){k.exports=o.p+"static/tips.83ad747c.svg"},lzim:function(k,z,o){"use strict";var M=o("E7E6"),m=o.n(M);o.d(z,"w",function(){return m.a});var O=o("/GNS"),b=o.n(O);o.d(z,"v",function(){return b.a});var y=o("FOrL"),C=o.n(y);o.d(z,"q",function(){return C.a});var A=o("HpTS"),g=o.n(A);o.d(z,"x",function(){return g.a});var e=o("tWlo"),f=o.n(e);o.d(z,"a",function(){return f.a});var a=o("7ZXX"),l=o.n(a);o.d(z,"l",function(){return l.a});var n=o("GABl"),i=o.n(n);o.d(z,"e",function(){return i.a});var r=o("onxn"),c=o.n(r);o.d(z,"n",function(){return c.a});var h=o("nKGa"),d=o.n(h);o.d(z,"m",function(){return d.a});var s=o("4qgm"),u=o.n(s);o.d(z,"y",function(){return u.a});var w=o("JeFH"),E=o.n(w);o.d(z,"b",function(){return E.a});var _=o("ji0R"),P=o.n(_);o.d(z,"i",function(){return P.a});var R=o("W6BS"),x=o.n(R);o.d(z,"z",function(){return x.a});var S=o("kPYp"),v=o.n(S);o.d(z,"A",function(){return v.a});var T=o("nukY"),U=o.n(T),I=o("4u4S"),N=o.n(I),V=o("yslc"),H=o.n(V),D=o("l2Kq"),W=o.n(D),F=o("RMFE"),L=o.n(F);o.d(z,"o",function(){return L.a});var K=o("TGq3"),ee=o.n(K),he=o("SMhR"),fe=o.n(he),Ce=o("8/bI"),Te=o.n(Ce);o.d(z,"j",function(){return Te.a});var ce=o("JWDV"),ye=o.n(ce),Ee=o("Xsq0"),ue=o.n(Ee);o.d(z,"p",function(){return ue.a});var se=o("Ohmc"),$=o.n(se);o.d(z,"c",function(){return $.a});var me=o("csWT"),re=o.n(me);o.d(z,"d",function(){return re.a});var ae=o("7v3h"),we=o.n(ae);o.d(z,"k",function(){return we.a});var le=o("cRFk"),te=o.n(le);o.d(z,"u",function(){return te.a});var Q=o("kPWJ"),J=o.n(Q);o.d(z,"t",function(){return J.a});var ve=o("qgvg"),_e=o.n(ve);o.d(z,"r",function(){return _e.a});var Oe=o("FPkq"),Xe=o.n(Oe);o.d(z,"s",function(){return Xe.a});var tt=o("A/g1"),lt=o.n(tt);o.d(z,"f",function(){return lt.a});var dt=o("Nmxd"),vt=o.n(dt);o.d(z,"g",function(){return vt.a});var _t=o("5D2P"),Ye=o.n(_t);o.d(z,"h",function(){return Ye.a});var je=o("djh8"),ht=o.n(je),Bt=o("Jq4h"),Et=o.n(Bt)},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(k){if(!0)module.exports=k();else var z})(function(){var define,module,exports;return function(){function k(z,o,M){function m(y,C){if(!o[y]){if(!z[y]){var A=typeof require=="function"&&require;if(!C&&A)return require(y,!0);if(O)return O(y,!0);var g=new Error("Cannot find module '"+y+"'");throw g.code="MODULE_NOT_FOUND",g}var e=o[y]={exports:{}};z[y][0].call(e.exports,function(f){var a=z[y][1][f];return m(a||f)},e,e.exports,k,z,o,M)}return o[y].exports}for(var O=typeof require=="function"&&require,b=0;b<M.length;b++)m(M[b]);return m}return k}()({1:[function(k,z,o){"use strict";var M=k("./browser/client");M.Buffer=k("buffer").Buffer,M.urllib=k("../shims/xhr"),M.version=k("./browser/version").version,z.exports=M},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(k,z,o){(function(M,m){"use strict";var O=k("babel-runtime/core-js/promise"),b=e(O),y=k("babel-runtime/regenerator"),C=e(y),A=k("babel-runtime/core-js/object/assign"),g=e(A);function e(V){return V&&V.__esModule?V:{default:V}}var f=k("debug")("ali-oss"),a=k("copy-to"),l=k("xml2js"),n=k("agentkeepalive"),i=k("merge-descriptors"),r=k("url"),c=k("is-type-of"),h=k("platform"),d=k("utility"),s=k("urllib"),u=k("./version"),w=k("bowser"),E=k("../common/signUtils"),_=k("../common/utils/isIP"),P=_.isIP,R=k("../common/client/initOptions"),x=k("../common/utils/createRequest"),S=x.createRequest,v=new n;function T(){var V=h.name,H=h.version;V&&V.toLowerCase&&V.toLowerCase()==="ie"&&H.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function U(){return location&&location.protocol==="https:"}function I(V,H){if(T(),!(this instanceof I))return new I(V,H);V&&V.inited?this.options=V:this.options=I.initOptions(V),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=s,this.agent=this.options.agent||v),this.ctx=H,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}z.exports=I,I.initOptions=function(H){H.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var D=(0,g.default)({secure:U(),useFetch:!1},H);return R(D)};var N=I.prototype;N.debug=f,i(N,k("./object")),i(N,k("../common/bucket/getBucketWebsite")),i(N,k("../common/bucket/putBucketWebsite")),i(N,k("../common/bucket/deleteBucketWebsite")),i(N,k("../common/bucket/getBucketLifecycle")),i(N,k("../common/bucket/putBucketLifecycle")),i(N,k("../common/bucket/deleteBucketLifecycle")),i(N,k("../common/bucket/putBucketVersioning")),i(N,k("../common/bucket/getBucketVersioning")),i(N,k("./managed-upload")),i(N,k("../common/multipart")),i(N,k("../common/parallel")),N.signature=function(H){return this.debug("authorization stringToSign: %s",H,"info"),E.computeSignature(this.options.accessKeySecret,H)},N.authorization=function(H,D,W,F){var L=E.buildCanonicalString(H.toUpperCase(),D,{headers:F,parameters:W});return E.authorization(this.options.accessKeyId,this.options.accessKeySecret,L)},N.request=function(H){var D,W,F,L,K,ee;return C.default.async(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return D=S.call(this,H),this.options.useFetch||(D.params.mode="disable-fetch"),W=void 0,F=void 0,L=!!H.stream,fe.prev=5,fe.next=8,C.default.awrap(this.urllib.request(D.url,D.params));case 8:W=fe.sent,this.debug("response %s %s, got %s, headers: %j",H.method,D.url,W.status,W.headers,"info"),fe.next=15;break;case 12:fe.prev=12,fe.t0=fe.catch(5),F=fe.t0;case 15:if(K=void 0,!(W&&H.successStatuses&&H.successStatuses.indexOf(W.status)===-1)){fe.next=28;break}return fe.next=19,C.default.awrap(this.requestError(W));case 19:if(K=fe.sent,!(K.code==="RequestTimeTooSkewed"&&!L)){fe.next=25;break}return this.options.amendTimeSkewed=+new Date(K.serverTime)-new Date,fe.next=24,C.default.awrap(this.request(H));case 24:return fe.abrupt("return",fe.sent);case 25:K.params=H,fe.next=32;break;case 28:if(!F){fe.next=32;break}return fe.next=31,C.default.awrap(this.requestError(F));case 31:K=fe.sent;case 32:if(!K){fe.next=34;break}throw K;case 34:if(!H.xmlResponse){fe.next=39;break}return fe.next=37,C.default.awrap(this.parseXML(W.data));case 37:ee=fe.sent,W.data=ee;case 39:return fe.abrupt("return",W);case 40:case"end":return fe.stop()}},null,this,[[5,12]])},N._getResource=function(H){var D="/";return H.bucket&&(D+=H.bucket+"/"),H.object&&(D+=H.object),D},N._isIP=P,N._escape=function(H){return d.encodeURIComponent(H).replace(/%2F/g,"/")},N._getReqUrl=function(H){var D={};a(this.options.endpoint).to(D);var W=this._isIP(D.hostname),F=this.options.cname;H.bucket&&!F&&!W&&(D.host=H.bucket+"."+D.host);var L="/";H.bucket&&W&&(L+=H.bucket+"/"),H.object&&(L+=this._escape(H.object).replace(/\+/g,"%2B")),D.pathname=L;var K={};if(H.query&&i(K,H.query),H.subres){var ee={};c.string(H.subres)?ee[H.subres]="":c.array(H.subres)?H.subres.forEach(function(he){ee[he]=""}):ee=H.subres,i(K,ee)}return D.query=K,r.format(D)},N._getUserAgent=function(){var H=m&&m.browser?"js":"nodejs",D="aliyun-sdk-"+H+"/"+u.version,W=h.description;return!W&&m&&(W="Node.js "+m.version.slice(1)+" on "+m.platform+" "+m.arch),this._checkUserAgent(D+" "+W)},N._checkUserAgent=function(H){var D=H.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return D},N.checkBrowserAndVersion=function(H,D){return w.name===H&&w.version.split(".")[0]===D},N.parseXML=function(H){return new b.default(function(D,W){M.isBuffer(H)&&(H=H.toString()),l.parseString(H,{explicitRoot:!1,explicitArray:!1},function(F,L){F?W(F):D(L)})})},N.requestError=function(H){var D,W,F,L;return C.default.async(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(D=null,!(!H.data||!H.data.length)){ee.next=5;break}H.status===-1||H.status===-2?(D=new Error(H.message),D.name=H.name,D.status=H.status,D.code=H.name):(H.status===404?(D=new Error("Object not exists"),D.name="NoSuchKeyError",D.status=404,D.code="NoSuchKey"):H.status===412?(D=new Error("Pre condition failed"),D.name="PreconditionFailedError",D.status=412,D.code="PreconditionFailed"):(D=new Error("Unknow error, status: "+H.status),D.name="UnknowError",D.status=H.status),D.requestId=H.headers["x-oss-request-id"],D.host=""),ee.next=33;break;case 5:return W=String(H.data),this.debug("request response error data: %s",W,"error"),F=void 0,ee.prev=8,ee.next=11,C.default.awrap(this.parseXML(W));case 11:if(ee.t0=ee.sent,ee.t0){ee.next=14;break}ee.t0={};case 14:F=ee.t0,ee.next=24;break;case 17:return ee.prev=17,ee.t1=ee.catch(8),this.debug(W,"error"),ee.t1.message+=`
raw xml: `+W,ee.t1.status=H.status,ee.t1.requestId=H.headers["x-oss-request-id"],ee.abrupt("return",ee.t1);case 24:L=F.Message||"unknow request error, status: "+H.status,F.Condition&&(L+=" (condition: "+F.Condition+")"),D=new Error(L),D.name=F.Code?F.Code+"Error":"UnknowError",D.status=H.status,D.code=F.Code,D.requestId=F.RequestId,D.hostId=F.HostId,D.serverTime=F.ServerTime;case 33:return this.debug("generate error %j",D,"error"),ee.abrupt("return",D);case 35:case"end":return ee.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:k("../../node_modules/is-buffer/index.js")},k("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/core-js/array/from"),O=g(m),b=k("babel-runtime/core-js/promise"),y=g(b),C=k("babel-runtime/regenerator"),A=g(C);function g(E){return E&&E.__esModule?E:{default:E}}var e=k("is-type-of"),f=k("util"),a=k("path"),l=k("mime"),n=k("copy-to"),i=k("../common/utils/isBlob"),r=i.isBlob,c=k("../common/utils/isFile"),h=c.isFile,d=o;d.multipartUpload=function(_,P,R){var x,S,v,T,U,I,N,V,H;return A.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:if(this.resetCancelFlag(),R=R||{},!(R.checkpoint&&R.checkpoint.uploadId)){W.next=6;break}return W.next=5,A.default.awrap(this._resumeMultipart(R.checkpoint,R));case 5:return W.abrupt("return",W.sent);case 6:return x=100*1024,R.mime||(h(P)?R.mime=l.getType(a.extname(P.name)):r(P)?R.mime=P.type:R.mime=l.getType(a.extname(P))),R.headers=R.headers||{},this._convertMetaToHeaders(R.meta,R.headers),W.next=12,A.default.awrap(this._getFileSize(P));case 12:if(S=W.sent,!(S<x)){W.next=25;break}return v=this._createStream(P,0,S),R.contentLength=S,W.next=18,A.default.awrap(this.putStream(_,v,R));case 18:if(T=W.sent,!(R&&R.progress)){W.next=22;break}return W.next=22,A.default.awrap(R.progress(1));case 22:return U={res:T.res,bucket:this.options.bucket,name:_,etag:T.res.headers.etag},(R.headers&&R.headers["x-oss-callback"]||R.callback)&&(U.data=T.data),W.abrupt("return",U);case 25:if(!(R.partSize&&!(parseInt(R.partSize,10)===R.partSize))){W.next=27;break}throw new Error("partSize must be int number");case 27:if(!(R.partSize&&R.partSize<x)){W.next=29;break}throw new Error("partSize must not be smaller than "+x);case 29:return W.next=31,A.default.awrap(this.initMultipartUpload(_,R));case 31:if(I=W.sent,N=I.uploadId,V=this._getPartSize(S,R.partSize),H={file:P,name:_,fileSize:S,partSize:V,uploadId:N,doneParts:[]},!(R&&R.progress)){W.next=38;break}return W.next=38,A.default.awrap(R.progress(0,H,I.res));case 38:return W.next=40,A.default.awrap(this._resumeMultipart(H,R));case 40:return W.abrupt("return",W.sent);case 41:case"end":return W.stop()}},null,this)},d._resumeMultipart=function(_,P){var R,x,S,v,T,U,I,N,V,H,D,W,F,L,K,ee,he,fe;return A.default.async(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(R=this,!this.isCancel()){Te.next=3;break}throw this._makeCancelEvent();case 3:return x=_.file,S=_.fileSize,v=_.partSize,T=_.uploadId,U=_.doneParts,I=_.name,N=[],U.length>0&&n(U).to(N),V=this._divideParts(S,v),H=V.length,D=!1,W=function(ye,Ee){var ue=this;return new y.default(function($,me){var re,ae,we,le;return A.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(Q.prev=0,ye.isCancel()){Q.next=18;break}return re=V[Ee-1],ae={stream:ye._createStream(x,re.start,re.end),size:re.end-re.start},Q.next=6,A.default.awrap(ye._uploadPart(I,T,Ee,ae));case 6:if(we=Q.sent,!(!ye.isCancel()&&!D)){Q.next=15;break}if(_.doneParts.push({number:Ee,etag:we.res.headers.etag}),!P.progress){Q.next=12;break}return Q.next=12,A.default.awrap(P.progress(U.length/H,_,we.res));case 12:$({number:Ee,etag:we.res.headers.etag}),Q.next=16;break;case 15:$();case 16:Q.next=19;break;case 18:$();case 19:Q.next=30;break;case 21:Q.prev=21,Q.t0=Q.catch(0),le=new Error,le.name=Q.t0.name,le.message=Q.t0.message,le.stack=Q.t0.stack,le.partNum=Ee,n(Q.t0).to(le),me(le);case 30:case"end":return Q.stop()}},null,ue,[[0,21]])})},F=(0,O.default)(new Array(H),function(ce,ye){return ye+1}),L=N.map(function(ce){return ce.number}),K=F.filter(function(ce){return L.indexOf(ce)<0}),ee=5,he=P.parallel||ee,Te.next=17,A.default.awrap(this._parallel(K,he,function(ce){return new y.default(function(ye,Ee){W(R,ce).then(function(ue){ue&&N.push(ue),ye()}).catch(function(ue){Ee(ue)})})}));case 17:if(fe=Te.sent,D=!0,!this.isCancel()){Te.next=22;break}throw W=null,this._makeCancelEvent();case 22:if(!(fe&&fe.length>0)){Te.next=25;break}throw fe[0].message="Failed to upload some parts with error: "+fe[0].toString()+" part_num: "+fe[0].partNum,fe[0];case 25:return Te.next=27,A.default.awrap(this.completeMultipartUpload(I,T,N,P));case 27:return Te.abrupt("return",Te.sent);case 28:case"end":return Te.stop()}},null,this)},d._getFileSize=function(_){return A.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!e.buffer(_)){R.next=4;break}return R.abrupt("return",_.length);case 4:if(!(r(_)||h(_))){R.next=6;break}return R.abrupt("return",_.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return R.stop()}},null,this)};var s=k("stream"),u=s.Readable;function w(E,_){if(!(this instanceof w))return new w(E,_);u.call(this,_),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(w,u),w.prototype.readFileAndPush=function(_){if(this.fileBuffer)for(var P=!0;P&&this.fileBuffer&&this.start<this.fileBuffer.length;){var R=this.start,x=R+_;x=x>this.fileBuffer.length?this.fileBuffer.length:x,this.start=x,P=this.push(this.fileBuffer.slice(R,x))}},w.prototype._read=function(_){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var P=16*1024;_=_||P;var R=this;this.reader.onload=function(S){R.fileBuffer=M.from(new Uint8Array(S.target.result)),R.file=null,R.readFileAndPush(_)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(_)},d._createStream=function(_,P,R){if(r(_)||h(_))return new w(_.slice(P,R));throw new Error("_createStream requires File/Blob.")},d._getPartSize=function(_,P){var R=10*1e3,x=1024*1024;return P?Math.max(Math.ceil(_/R),P):x},d._divideParts=function(_,P){for(var R=Math.ceil(_/P),x=[],S=0;S<R;S++){var v=P*S,T=Math.min(v+P,_);x.push({start:v,end:T})}return x}}).call(this,k("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/promise"),m=e(M),O=k("babel-runtime/core-js/object/keys"),b=e(O),y=k("babel-runtime/core-js/object/assign"),C=e(y),A=k("babel-runtime/regenerator"),g=e(A);function e(R){return R&&R.__esModule?R:{default:R}}var f=k("utility"),a=k("fs"),l=k("is-type-of"),n=k("url"),i=k("copy-to"),r=k("path"),c=k("mime"),h=k("../common/callback"),d=k("../common/signUtils"),s=k("merge-descriptors"),u=k("../common/utils/isBlob"),w=u.isBlob,E=k("../common/utils/isFile"),_=E.isFile,P=o;P.append=function(x,S,v){var T;return g.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return v=v||{},v.position===void 0&&(v.position="0"),v.subres={append:"",position:v.position},v.method="POST",I.next=6,g.default.awrap(this.put(x,S,v));case 6:return T=I.sent,T.nextAppendPosition=T.res.headers["x-oss-next-append-position"],I.abrupt("return",T);case 9:case"end":return I.stop()}},null,this)},P.put=function(x,S,v){var T,U,I,N,V,H,D;return g.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(T=void 0,v=v||{},x=this._objectName(x),!l.buffer(S)){F.next=7;break}T=S,F.next=33;break;case 7:if(!(w(S)||_(S))){F.next=32;break}return v.mime||(_(S)?v.mime=c.getType(r.extname(S.name)):v.mime=S.type),U=this._createStream(S,0,S.size),F.next=12,g.default.awrap(this._getFileSize(S));case 12:return v.contentLength=F.sent,F.prev=13,F.next=16,g.default.awrap(this.putStream(x,U,v));case 16:return I=F.sent,F.abrupt("return",I);case 20:if(F.prev=20,F.t0=F.catch(13),!(F.t0.code==="RequestTimeTooSkewed")){F.next=29;break}return this.options.amendTimeSkewed=+new Date(F.t0.serverTime)-new Date,F.next=26,g.default.awrap(this.put(x,S,v));case 26:return F.abrupt("return",F.sent);case 29:throw F.t0;case 30:F.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return v.headers=v.headers||{},this._convertMetaToHeaders(v.meta,v.headers),N=v.method||"PUT",V=this._objectRequestParams(N,x,v),h.encodeCallback(V,v),V.mime=v.mime,V.content=T,V.successStatuses=[200],F.next=43,g.default.awrap(this.request(V));case 43:return H=F.sent,D={name:x,url:this._objectUrl(x),res:H.res},V.headers&&V.headers["x-oss-callback"]&&(D.data=JSON.parse(H.data.toString())),F.abrupt("return",D);case 47:case"end":return F.stop()}},null,this,[[13,20]])},P.putStream=function(x,S,v){var T,U,I,N;return g.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:return v=v||{},v.headers=v.headers||{},x=this._objectName(x),v.contentLength?v.headers["Content-Length"]=v.contentLength:v.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(v.meta,v.headers),T=v.method||"PUT",U=this._objectRequestParams(T,x,v),h.encodeCallback(U,v),U.mime=v.mime,U.stream=S,U.successStatuses=[200],H.next=13,g.default.awrap(this.request(U));case 13:return I=H.sent,N={name:x,url:this._objectUrl(x),res:I.res},U.headers&&U.headers["x-oss-callback"]&&(N.data=JSON.parse(I.data.toString())),H.abrupt("return",N);case 17:case"end":return H.stop()}},null,this)},s(P,k("../common/object/copyObject")),s(P,k("../common/object/getObjectTagging")),s(P,k("../common/object/putObjectTagging")),s(P,k("../common/object/deleteObjectTagging")),s(P,k("../common/image")),s(P,k("../common/object/getBucketVersions")),s(P,k("../common/object/getACL")),s(P,k("../common/object/putACL")),s(P,k("../common/object/head")),s(P,k("../common/object/delete")),s(P,k("../common/object/get")),s(P,k("../common/object/putSymlink")),s(P,k("../common/object/getSymlink")),s(P,k("../common/object/deleteMulti")),s(P,k("../common/object/getObjectMeta")),P.putMeta=function(x,S,v){var T;return g.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,g.default.awrap(this.copy(x,x,{meta:S||{},timeout:v&&v.timeout,ctx:v&&v.ctx}));case 2:return T=I.sent,I.abrupt("return",T);case 4:case"end":return I.stop()}},null,this)},P.list=function(x,S){var v,T,U,I,N;return g.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:return v=this._objectRequestParams("GET","",S),v.query=x,v.xmlResponse=!0,v.successStatuses=[200],H.next=6,g.default.awrap(this.request(v));case 6:return T=H.sent,U=T.data.Contents,I=this,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(D){return{name:D.Key,url:I._objectUrl(D.Key),lastModified:D.LastModified,etag:D.ETag,type:D.Type,size:Number(D.Size),storageClass:D.StorageClass,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),N=T.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(D){return D.Prefix})),H.abrupt("return",{res:T.res,objects:U,prefixes:N,nextMarker:T.data.NextMarker||null,isTruncated:T.data.IsTruncated==="true"});case 13:case"end":return H.stop()}},null,this)},P.restore=function(x,S){var v,T;return g.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return S=S||{},S.subres=(0,C.default)({restore:""},S.subres),S.versionId&&(S.subres.versionId=S.versionId),v=this._objectRequestParams("POST",x,S),v.successStatuses=[202],I.next=7,g.default.awrap(this.request(v));case 7:return T=I.sent,I.abrupt("return",{res:T.res});case 9:case"end":return I.stop()}},null,this)},P.signatureUrl=function(x,S){S=S||{},x=this._objectName(x),S.method=S.method||"GET";var v=f.timestamp()+(S.expires||1800),T={bucket:this.options.bucket,object:x},U=this._getResource(T);this.options.stsToken&&(S["security-token"]=this.options.stsToken);var I=d._signatureForURL(this.options.accessKeySecret,S,U,v),N=n.parse(this._getReqUrl(T));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:v,Signature:I.Signature},i(I.subResource).to(N.query),N.format()},P.getObjectUrl=function(x,S){return S?S[S.length-1]!=="/"&&(S+="/"):S=this.options.endpoint.format(),S+this._escape(this._objectName(x))},P._objectUrl=function(x){return this._getReqUrl({bucket:this.options.bucket,object:x})},P.generateObjectUrl=function(R,x){if(x)x[x.length-1]!=="/"&&(x+="/");else{x=this.options.endpoint.format();var S=n.parse(x),v=this.options.bucket;S.hostname=v+"."+S.hostname,S.host=v+"."+S.host,x=S.format()}return x+this._escape(this._objectName(R))},P._objectRequestParams=function(x,S,v){if(!this.options.bucket)throw new Error("Please create a bucket first");v=v||{},S=this._objectName(S);var T={object:S,bucket:this.options.bucket,method:x,subres:v&&v.subres,timeout:v&&v.timeout,ctx:v&&v.ctx};return v.headers&&(T.headers={},i(v.headers).to(T.headers)),T},P._objectName=function(x){return x.replace(/^\/+/,"")},P._convertMetaToHeaders=function(x,S){if(!x)return;(0,b.default)(x).forEach(function(v){S["x-oss-meta-"+v]=x[v]})},P._deleteFileSafe=function(x){var S=this;return new m.default(function(v){a.exists(x,function(T){T?a.unlink(x,function(U){U&&S.debug("unlink %j error: %s",x,U,"error"),v()}):v()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(k,z,o){"use strict";o.version="6.10.0"},{}],6:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(A){return A&&A.__esModule?A:{default:A}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=o;C.deleteBucketLifecycle=function(g,e){var f,a;return m.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return y(g),f=this._bucketRequestParams("DELETE",g,"lifecycle",e),f.successStatuses=[204],n.next=5,m.default.awrap(this.request(f));case 5:return a=n.sent,n.abrupt("return",{res:a.res});case 7:case"end":return n.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(A){return A&&A.__esModule?A:{default:A}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=o;C.deleteBucketWebsite=function(g,e){var f,a;return m.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return y(g),f=this._bucketRequestParams("DELETE",g,"website",e),f.successStatuses=[204],n.next=5,m.default.awrap(this.request(f));case 5:return a=n.sent,n.abrupt("return",{res:a.res});case 7:case"end":return n.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isArray"),A=C.isArray,g=k("../utils/formatObjKey"),e=g.formatObjKey,f=o;f.getBucketLifecycle=function(l,n){var i,r,c;return m.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return y(l),i=this._bucketRequestParams("GET",l,"lifecycle",n),i.successStatuses=[200],i.xmlResponse=!0,d.next=6,m.default.awrap(this.request(i));case 6:return r=d.sent,c=r.data.Rule||null,c&&(A(c)||(c=[c]),c=c.map(function(s){return s.ID&&(s.id=s.ID,delete s.ID),s.Tag&&!A(s.Tag)&&(s.Tag=[s.Tag]),e(s,"firstLowerCase")})),d.abrupt("return",{rules:c,res:r.res});case 10:case"end":return d.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(A){return A&&A.__esModule?A:{default:A}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=o;C.getBucketVersioning=function(g,e){var f,a,l;return m.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return y(g),f=this._bucketRequestParams("GET",g,"versioning",e),f.xmlResponse=!0,f.successStatuses=[200],i.next=6,m.default.awrap(this.request(f));case 6:return a=i.sent,l=a.data.Status,i.abrupt("return",{status:a.status,versionStatus:l,res:a.res});case 9:case"end":return i.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isObject"),A=C.isObject,g=o;g.getBucketWebsite=function(f,a){var l,n,i;return m.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return y(f),l=this._bucketRequestParams("GET",f,"website",a),l.successStatuses=[200],l.xmlResponse=!0,c.next=6,m.default.awrap(this.request(l));case 6:return n=c.sent,i=[],n.data.RoutingRules&&n.data.RoutingRules.RoutingRule&&(A(n.data.RoutingRules.RoutingRule)?i=[n.data.RoutingRules.RoutingRule]:i=n.data.RoutingRules.RoutingRule),c.abrupt("return",{index:n.data.IndexDocument&&n.data.IndexDocument.Suffix||"",supportSubDir:n.data.IndexDocument&&n.data.IndexDocument.SupportSubDir||"false",type:n.data.IndexDocument&&n.data.IndexDocument.Type,routingRules:i,error:n.data.ErrorDocument&&n.data.ErrorDocument.Key||null,res:n.res});case 10:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(_){return _&&_.__esModule?_:{default:_}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isArray"),A=C.isArray,g=k("../utils/deepCopy"),e=g.deepCopy,f=k("../utils/isObject"),a=f.isObject,l=k("../utils/obj2xml"),n=l.obj2xml,i=k("../utils/checkObjectTag"),r=i.checkObjectTag,c=k("../utils/getStrBytesCount"),h=c.getStrBytesCount,d=o;d.putBucketLifecycle=function(P,R,x){var S,v,T,U,I;return m.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(y(P),A(R)){V.next=3;break}throw new Error("rules must be Array");case 3:return S=this._bucketRequestParams("PUT",P,"lifecycle",x),v=[],T={LifecycleConfiguration:{Rule:v}},R.forEach(function(H){s(H),E(H),H.id&&(H.ID=H.id,delete H.id),v.push(H)}),U=n(T,{headers:!0,firstUpperCase:!0}),S.content=U,S.mime="xml",S.successStatuses=[200],V.next=13,m.default.awrap(this.request(S));case 13:return I=V.sent,V.abrupt("return",{res:I.res});case 15:case"end":return V.stop()}},null,this)};function s(_){_.days&&(_.expiration={days:_.days}),_.date&&(_.expiration={createdBeforeDate:_.date})}function u(_,P){var R=_.days,x=_.createdBeforeDate;if(!R&&!x)throw new Error(P+" must includes days or createdBeforeDate");if(R&&!/^[1-9][0-9]*$/.test(R))throw new Error("days must be a positive integer");if(x&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(x))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function w(_){if(!A(_)&&!a(_))throw new Error("tag must be Object or Array");_=a(_)?[_]:_;var P={},R=e(_);R.forEach(function(x){P[x.key]=x.value}),r(P)}function E(_){if(_.id&&h(_.id)>255)throw new Error("ID is composed of 255 bytes at most");if(_.prefix===""||_.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(_.status))throw new Error("Status must be Enabled or Disabled");if(_.transition){if(!["IA","Archive"].includes(_.transition.storageClass))throw new Error("StorageClass must be IA or Archive");u(_.transition,"Transition")}if(_.expiration){if(!_.expiration.expiredObjectDeleteMarker)u(_.expiration,"Expiration");else if(_.expiration.days||_.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(_.abortMultipartUpload&&u(_.abortMultipartUpload,"AbortMultipartUpload"),!_.expiration&&!_.abortMultipartUpload&&!_.transition&&!_.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(_.tag){if(_.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");w(_.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/obj2xml"),A=C.obj2xml,g=o;g.putBucketVersioning=function(f,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,r;return m.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:if(y(f),["Enabled","Suspended"].includes(a)){h.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return n=this._bucketRequestParams("PUT",f,"versioning",l),i={VersioningConfiguration:{Status:a}},n.mime="xml",n.content=A(i,{headers:!0}),h.next=9,m.default.awrap(this.request(n));case 9:return r=h.sent,h.abrupt("return",{res:r.res,status:r.status});case 11:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/obj2xml"),A=C.obj2xml,g=k("../utils/isArray"),e=g.isArray,f=o;f.putBucketWebsite=function(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments[2],r,c,h,d,s;return m.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(y(l),r=this._bucketRequestParams("PUT",l,"website",i),c={Suffix:n.index||"index.html"},h={IndexDocument:c},d={WebsiteConfiguration:h},n.supportSubDir&&(c.SupportSubDir=n.supportSubDir),n.type&&(c.Type=n.type),n.error&&(h.ErrorDocument={Key:n.error}),!(n.routingRules!==void 0)){w.next=12;break}if(e(n.routingRules)){w.next=11;break}throw new Error("RoutingRules must be Array");case 11:h.RoutingRules={RoutingRule:n.routingRules};case 12:return d=A(d),r.content=d,r.mime="xml",r.successStatuses=[200],w.next=18,m.default.awrap(this.request(r));case 18:return s=w.sent,w.abrupt("return",{res:s.res});case 20:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/core-js/object/keys"),O=C(m),b=k("babel-runtime/core-js/json/stringify"),y=C(b);function C(A){return A&&A.__esModule?A:{default:A}}o.encodeCallback=function(g,e){if(g.headers=g.headers||{},!Object.prototype.hasOwnProperty.call(g.headers,"x-oss-callback")&&e.callback){var f={callbackUrl:encodeURI(e.callback.url),callbackBody:e.callback.body};e.callback.host&&(f.callbackHost=e.callback.host),e.callback.contentType&&(f.callbackBodyType=e.callback.contentType);var a=M.from((0,y.default)(f)).toString("base64");if(g.headers["x-oss-callback"]=a,e.callback.customValue){var l={};(0,O.default)(e.callback.customValue).forEach(function(n){l["x:"+n]=e.callback.customValue[n]}),g.headers["x-oss-callback-var"]=M.from((0,y.default)(l)).toString("base64")}}}}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/assign"),m=O(M);function O(f){return f&&f.__esModule?f:{default:f}}var b=k("humanize-ms"),y=k("url"),C=k("../utils/checkBucketName"),A=C.checkBucketName;function g(f,a){var l=y.parse(f);if(l.protocol||(l=y.parse("http"+(a?"s":"")+"://"+f)),l.protocol!=="http:"&&l.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return l}function e(f,a,l){var n=l?"https://":"http://",i=a?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return f.substr(0,r.length)===r&&(i=".aliyuncs.com"),y.parse(n+f+i)}z.exports=function(f){if(!f||!f.accessKeyId||!f.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");f.bucket&&A(f.bucket);var a=(0,m.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},f);if(a.accessKeyId=a.accessKeyId.trim(),a.accessKeySecret=a.accessKeySecret.trim(),a.timeout&&(a.timeout=b(a.timeout)),a.endpoint)a.endpoint=g(a.endpoint,a.secure);else if(a.region)a.endpoint=e(a.region,a.internal,a.secure);else throw new Error("require options.endpoint or options.region");return a.inited=!0,a}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(k,z,o){"use strict";var M=k("merge-descriptors"),m=o;M(m,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("querystring"),A=k("js-base64"),g=A.Base64.encode,e=o;e.processObjectSave=function(l,n,i,r){var c,h,d,s;return m.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return f(l,"sourceObject"),f(n,"targetObject"),f(i,"process"),n=this._objectName(n),r&&y(r),c=this._objectRequestParams("POST",l,{subres:"x-oss-process"}),h=r?",b_"+g(r):"",n=g(n),d={"x-oss-process":i+"|sys/saveas,o_"+n+h},c.content=C.stringify(d),w.next=12,m.default.awrap(this.request(c));case 12:return s=w.sent,w.abrupt("return",{res:s.res,status:s.res.status});case 14:case"end":return w.stop()}},null,this)};function f(a,l){if(!a)throw new Error(l+" is required");if(typeof a!="string")throw new Error(l+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=O(M);function O(e){return e&&e.__esModule?e:{default:e}}var b=k("copy-to"),y=k("./callback"),C=k("./utils/deepCopy"),A=C.deepCopy,g=o;g.listUploads=function(f,a){var l,n,i,r;return m.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return a=a||{},l={},b(a).to(l),l.subres="uploads",n=this._objectRequestParams("GET","",l),n.query=f,n.xmlResponse=!0,n.successStatuses=[200],h.next=10,m.default.awrap(this.request(n));case 10:return i=h.sent,r=i.data.Upload||[],Array.isArray(r)||(r=[r]),r=r.map(function(d){return{name:d.Key,uploadId:d.UploadId,initiated:d.Initiated}}),h.abrupt("return",{res:i.res,uploads:r,bucket:i.data.Bucket,nextKeyMarker:i.data.NextKeyMarker,nextUploadIdMarker:i.data.NextUploadIdMarker,isTruncated:i.data.IsTruncated==="true"});case 15:case"end":return h.stop()}},null,this)},g.listParts=function(f,a,l,n){var i,r,c;return m.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=n||{},i={},b(n).to(i),i.subres={uploadId:a},r=this._objectRequestParams("GET",f,i),r.query=l,r.xmlResponse=!0,r.successStatuses=[200],d.next=10,m.default.awrap(this.request(r));case 10:return c=d.sent,d.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return d.stop()}},null,this)},g.abortMultipartUpload=function(f,a,l){var n,i,r;return m.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return this._stop(),l=l||{},n={},b(l).to(n),n.subres={uploadId:a},i=this._objectRequestParams("DELETE",f,n),i.successStatuses=[204],h.next=9,m.default.awrap(this.request(i));case 9:return r=h.sent,h.abrupt("return",{res:r.res});case 11:case"end":return h.stop()}},null,this)},g.initMultipartUpload=function(f,a){var l,n,i;return m.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return a=a||{},l={},b(a).to(l),l.headers=l.headers||{},this._convertMetaToHeaders(a.meta,l.headers),l.subres="uploads",n=this._objectRequestParams("POST",f,l),n.mime=a.mime,n.xmlResponse=!0,n.successStatuses=[200],c.next=12,m.default.awrap(this.request(n));case 12:return i=c.sent,c.abrupt("return",{res:i.res,bucket:i.data.Bucket,name:i.data.Key,uploadId:i.data.UploadId});case 14:case"end":return c.stop()}},null,this)},g.uploadPart=function(f,a,l,n,i,r,c){var h;return m.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return h={stream:this._createStream(n,i,r),size:r-i},s.next=3,m.default.awrap(this._uploadPart(f,a,l,h,c));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,this)},g.completeMultipartUpload=function(f,a,l,n){var i,r,c,h,d,s,u,w;return m.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:for(i=l.concat().sort(function(P,R){return P.number-R.number}).filter(function(P,R,x){return!R||P.number!==x[R-1].number}),r=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,c=0;c<i.length;c++)h=i[c],r+=`<Part>
`,r+="<PartNumber>"+h.number+`</PartNumber>
`,r+="<ETag>"+h.etag+`</ETag>
`,r+=`</Part>
`;return r+="</CompleteMultipartUpload>",n=n||{},d={},d=A(n),d.headers&&delete d.headers["x-oss-server-side-encryption"],d.subres={uploadId:a},s=this._objectRequestParams("POST",f,d),y.encodeCallback(s,d),s.mime="xml",s.content=r,s.headers&&s.headers["x-oss-callback"]||(s.xmlResponse=!0),s.successStatuses=[200],_.next=17,m.default.awrap(this.request(s));case 17:return u=_.sent,w={res:u.res,bucket:s.bucket,name:f,etag:u.res.headers.etag},s.headers&&s.headers["x-oss-callback"]&&(w.data=JSON.parse(u.data.toString())),_.abrupt("return",w);case 21:case"end":return _.stop()}},null,this)},g._uploadPart=function(f,a,l,n,i){var r,c,h;return m.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return i=i||{},r={},b(i).to(r),r.headers={"Content-Length":n.size},r.subres={partNumber:l,uploadId:a},c=this._objectRequestParams("PUT",f,r),c.mime=r.mime,c.stream=n.stream,c.successStatuses=[200],s.next=11,m.default.awrap(this.request(c));case 11:if(h=s.sent,h.res.headers.etag){s.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 14:return n.stream=null,c.stream=null,s.abrupt("return",{name:f,etag:h.res.headers.etag,res:h.res});case 17:case"end":return s.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=A(M),O=k("babel-runtime/core-js/object/keys"),b=A(O),y=k("babel-runtime/helpers/typeof"),C=A(y);function A(a){return a&&a.__esModule?a:{default:a}}var g=k("../utils/checkBucketName"),e=g.checkBucketName,f=o;f.copy=function(l,n,i,r){var c,h,d;return m.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return(typeof i=="undefined"?"undefined":(0,C.default)(i))==="object"&&(r=i),r=r||{},r.headers=r.headers||{},(0,b.default)(r.headers).forEach(function(w){r.headers["x-oss-copy-source-"+w.toLowerCase()]=r.headers[w]}),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),n=this._getSourceName(n,i),r.versionId&&(n=n+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=n,c=this._objectRequestParams("PUT",l,r),c.xmlResponse=!0,c.successStatuses=[200,304],u.next=14,m.default.awrap(this.request(c));case 14:return h=u.sent,d=h.data,d&&(d={etag:d.ETag,lastModified:d.LastModified}),u.abrupt("return",{data:d,res:h.res});case 18:case"end":return u.stop()}},null,this)},f._getSourceName=function(l,n){return typeof n=="string"?l=this._objectName(l):l[0]!=="/"?n=this.options.bucket:(n=l.replace(/\/(.+?)(\/.*)/,"$1"),l=l.replace(/(\/.+?\/)(.*)/,"$2")),e(n),l=encodeURI(l),l="/"+n+"/"+l,l}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.delete=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return m.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e.subres=(0,b.default)({},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("DELETE",g,e),f.successStatuses=[204],n.next=6,m.default.awrap(this.request(f));case 6:return a=n.sent,n.abrupt("return",{res:a.res});case 8:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(f){return f&&f.__esModule?f:{default:f}}var C=k("utility"),A=k("../utils/obj2xml"),g=A.obj2xml,e=o;e.deleteMulti=function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,r,c,h,d,s,u,w,E,_,P;return m.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:if(n=[],!(!a||!a.length)){x.next=3;break}throw new Error("names is required");case 3:for(i=0;i<a.length;i++)r={},typeof a[i]=="string"?r.Key=C.escape(this._objectName(a[i])):(c=a[i],h=c.key,d=c.versionId,r.Key=C.escape(this._objectName(h)),r.VersionId=d),n.push(r);return s={Delete:{Quiet:!!l.quiet,Object:n}},u=g(s,{headers:!0}),l.subres=(0,b.default)({delete:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),w=this._objectRequestParams("POST","",l),w.mime="xml",w.content=u,w.xmlResponse=!0,w.successStatuses=[200],x.next=15,m.default.awrap(this.request(w));case 15:return E=x.sent,_=E.data,P=_&&_.Deleted||null,P&&(Array.isArray(P)||(P=[P])),x.abrupt("return",{res:E.res,deleted:P||[]});case 20:case"end":return x.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.deleteObjectTagging=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return m.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e.subres=(0,b.default)({tagging:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),g=this._objectName(g),f=this._objectRequestParams("DELETE",g,e),f.successStatuses=[204],n.next=7,m.default.awrap(this.request(f));case 7:return a=n.sent,n.abrupt("return",{status:a.status,res:a.res});case 9:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(e){return e&&e.__esModule?e:{default:e}}var C=k("fs"),A=k("is-type-of"),g=o;g.get=function(f,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,r,c;return m.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=null,i=!1,A.writableStream(a)?n=a:A.string(a)?(n=C.createWriteStream(a),i=!0):l=a,l=l||{},l.subres=(0,b.default)({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.process&&(l.subres["x-oss-process"]=l.process),r=void 0,d.prev=8,c=this._objectRequestParams("GET",f,l),c.writeStream=n,c.successStatuses=[200,206,304],d.next=14,m.default.awrap(this.request(c));case 14:r=d.sent,i&&n.destroy(),d.next=25;break;case 18:if(d.prev=18,d.t0=d.catch(8),!i){d.next=24;break}return n.destroy(),d.next=24,m.default.awrap(this._deleteFileSafe(a));case 24:throw d.t0;case 25:return d.abrupt("return",{res:r.res,content:r.data});case 26:case"end":return d.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.getACL=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return m.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e.subres=(0,b.default)({acl:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),g=this._objectName(g),f=this._objectRequestParams("GET",g,e),f.successStatuses=[200],f.xmlResponse=!0,n.next=8,m.default.awrap(this.request(f));case 8:return a=n.sent,n.abrupt("return",{acl:a.data.AccessControlList.Grant,owner:{id:a.data.Owner.ID,displayName:a.data.Owner.DisplayName},res:a.res});case 10:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),m=A(M),O=k("babel-runtime/regenerator"),b=A(O),y=k("babel-runtime/core-js/object/assign"),C=A(y);function A(c){return c&&c.__esModule?c:{default:c}}var g=o,e=k("../utils/isObject"),f=e.isObject,a=k("../utils/isArray"),l=a.isArray;g.getBucketVersions=n,g.listObjectVersions=n;function n(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,s,u,w,E,_;return b.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!(c.versionIdMarker&&c.keyMarker===void 0)){R.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return h.subres=(0,C.default)({versions:""},h.subres),h.versionId&&(h.subres.versionId=h.versionId),d=this._objectRequestParams("GET","",h),d.xmlResponse=!0,d.successStatuses=[200],d.query=r(c),R.next=10,b.default.awrap(this.request(d));case 10:return s=R.sent,u=s.data.Version||[],w=s.data.DeleteMarker||[],E=this,u&&(Array.isArray(u)||(u=[u]),u=u.map(function(x){return{name:x.Key,url:E._objectUrl(x.Key),lastModified:x.LastModified,isLatest:x.IsLatest==="true",versionId:x.VersionId,etag:x.ETag,type:x.Type,size:Number(x.Size),storageClass:x.StorageClass,owner:{id:x.Owner.ID,displayName:x.Owner.DisplayName}}})),w&&(l(w)||(w=[w]),w=w.map(function(x){return{name:x.Key,lastModified:x.LastModified,versionId:x.VersionId,owner:{id:x.Owner.ID,displayName:x.Owner.DisplayName}}})),_=s.data.CommonPrefixes||null,_&&(l(_)||(_=[_]),_=_.map(function(x){return x.Prefix})),R.abrupt("return",{res:s.res,objects:u,deleteMarker:w,prefixes:_,nextMarker:s.data.NextMarker||null,NextVersionIdMarker:s.data.NextVersionIdMarker||null,isTruncated:s.data.IsTruncated==="true"});case 19:case"end":return R.stop()}},null,this)}function i(c){return c.replace(/([A-Z])/g,"-$1").toLowerCase()}function r(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h={};return f(c)&&(0,m.default)(c).forEach(function(d){h[i(d)]=c[d]}),h}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.getObjectMeta=function(g,e){var f,a;return m.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e=e||{},g=this._objectName(g),e.subres=(0,b.default)({objectMeta:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("HEAD",g,e),f.successStatuses=[200],n.next=8,m.default.awrap(this.request(f));case 8:return a=n.sent,n.abrupt("return",{status:a.status,res:a.res});case 10:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(e){return e&&e.__esModule?e:{default:e}}var C=o,A=k("../utils/isObject"),g=A.isObject;C.getObjectTagging=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,i,r,c;return m.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return a.subres=(0,b.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),f=this._objectName(f),l=this._objectRequestParams("GET",f,a),l.successStatuses=[200],d.next=7,m.default.awrap(this.request(l));case 7:return n=d.sent,d.next=10,m.default.awrap(this.parseXML(n.data));case 10:return i=d.sent,r=i.TagSet.Tag,r=r&&g(r)?[r]:r||[],c={},r.forEach(function(s){c[s.Key]=s.Value}),d.abrupt("return",{status:n.status,res:n.res,tag:c});case 16:case"end":return d.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.getSymlink=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a,l;return m.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e.subres=(0,b.default)({symlink:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),g=this._objectName(g),f=this._objectRequestParams("GET",g,e),f.successStatuses=[200],i.next=7,m.default.awrap(this.request(f));case 7:return a=i.sent,l=a.res.headers["x-oss-symlink-target"],i.abrupt("return",{targetName:decodeURIComponent(l),res:a.res});case 10:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=A(M),O=k("babel-runtime/core-js/object/keys"),b=A(O),y=k("babel-runtime/core-js/object/assign"),C=A(y);function A(e){return e&&e.__esModule?e:{default:e}}var g=o;g.head=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,i;return m.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return a.subres=(0,C.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),l=this._objectRequestParams("HEAD",f,a),l.successStatuses=[200,304],c.next=6,m.default.awrap(this.request(l));case 6:return n=c.sent,i={meta:null,res:n.res,status:n.status},n.status===200&&(0,b.default)(n.headers).forEach(function(h){h.indexOf("x-oss-meta-")===0&&(i.meta||(i.meta={}),i.meta[h.substring(11)]=n.headers[h])}),c.abrupt("return",i);case 10:case"end":return c.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.putACL=function(g,e,f){var a,l;return m.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return f=f||{},f.subres=(0,b.default)({acl:""},f.subres),f.versionId&&(f.subres.versionId=f.versionId),f.headers=f.headers||{},f.headers["x-oss-object-acl"]=e,g=this._objectName(g),a=this._objectRequestParams("PUT",g,f),a.successStatuses=[200],i.next=10,m.default.awrap(this.request(a));case 10:return l=i.sent,i.abrupt("return",{res:l.res});case 12:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=A(M),O=k("babel-runtime/core-js/object/keys"),b=A(O),y=k("babel-runtime/core-js/object/assign"),C=A(y);function A(n){return n&&n.__esModule?n:{default:n}}var g=k("../utils/obj2xml"),e=g.obj2xml,f=k("../utils/checkObjectTag"),a=f.checkObjectTag,l=o;l.putObjectTagging=function(i,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,d,s;return m.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return a(r),c.subres=(0,C.default)({tagging:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),i=this._objectName(i),h=this._objectRequestParams("PUT",i,c),h.successStatuses=[200],r=(0,b.default)(r).map(function(E){return{Key:E,Value:r[E]}}),d={Tagging:{TagSet:{Tag:r}}},h.mime="xml",h.content=e(d),w.next=12,m.default.awrap(this.request(h));case 12:return s=w.sent,w.abrupt("return",{res:s.res,status:s.status});case 14:case"end":return w.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/object/assign"),b=y(O);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.putSymlink=function(g,e,f){var a,l;return m.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return f=f||{},f.headers=f.headers||{},e=this._escape(this._objectName(e)),this._convertMetaToHeaders(f.meta,f.headers),f.headers["x-oss-symlink-target"]=e,f.subres=(0,b.default)({symlink:""},f.subres),f.versionId&&(f.subres.versionId=f.versionId),f.storageClass&&(f.headers["x-oss-storage-class"]=f.storageClass),g=this._objectName(g),a=this._objectRequestParams("PUT",g,f),a.successStatuses=[200],i.next=13,m.default.awrap(this.request(a));case 13:return l=i.sent,i.abrupt("return",{res:l.res});case 15:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=y(M),O=k("babel-runtime/core-js/promise"),b=y(O);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C._parallelNode=function(g,e,f,a){var l,n,i,r,c,h,d,s;return m.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:l=this,n=[],i=[],r=g.length/e,c=g.length%e,h=c===0?r:(g.length-c)/e+1,d=1,s=0;case 8:if(!(s<g.length)){w.next=26;break}if(!l.isCancel()){w.next=11;break}return w.abrupt("break",26);case 11:if(a?i.push(f(l,g[s],a)):i.push(f(l,g[s])),!(i.length===e||d===h&&s===g.length-1)){w.next=23;break}return w.prev=13,d+=1,w.next=17,m.default.awrap(b.default.all(i));case 17:w.next=22;break;case 19:w.prev=19,w.t0=w.catch(13),n.push(w.t0);case 22:i=[];case 23:s++,w.next=8;break;case 26:return w.abrupt("return",n);case 27:case"end":return w.stop()}},null,this,[[13,19]])},C._parallel=function(g,e,f){var a=this;return new b.default(function(l){var n=[];if(e<=0||!g){l(n);return}function i(_){return function(){if(_===null)throw new Error("Callback was already called.");var P=_;_=null;for(var R=arguments.length,x=Array(R),S=0;S<R;S++)x[S]=arguments[S];P.apply(this,x)}}function r(_){var P=-1,R=_.length;return function(){return++P<R&&!a.isCancel()?{value:_[P],key:P}:null}}var c=r(g),h=!1,d=0,s=!1;function u(_,P){d-=1,_?(h=!0,n.push(_),l(n)):P==={}||h&&d<=0?(h=!0,l(n)):s||(a.isCancel()?l(n):E())}function w(_,P){f(_).then(function(R){P(null,R)}).catch(function(R){P(R)})}function E(){for(s=!0;d<e&&!h&&!a.isCancel();){var _=c();if(_===null||n.length>0){h=!0,d<=0&&l(n);return}d+=1,w(_.value,i(u))}s=!1}E()})},C.cancel=function(g){this.options.cancelFlag=!0,g&&this.abortMultipartUpload(g.name,g.uploadId,g.options)},C.isCancel=function(){return this.options.cancelFlag},C.resetCancelFlag=function(){this.options.cancelFlag=!1},C._stop=function(){this.options.cancelFlag=!0},C._makeCancelEvent=function(){var g={status:0,name:"cancel"};return g}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/core-js/json/stringify"),O=C(m),b=k("babel-runtime/core-js/object/keys"),y=C(b);function C(e){return e&&e.__esModule?e:{default:e}}var A=k("./../../shims/crypto/crypto.js"),g=k("is-type-of");o.buildCanonicalizedResource=function(f,a){var l=""+f,n="?";if(g.string(a)&&a.trim()!=="")l+=n+a;else if(g.array(a))a.sort(),l+=n+a.join("&");else if(a){var i=function(h,d){return h[0]>d[0]?1:h[0]<d[0]?-1:0},r=function(h){l+=n+h,a[h]&&(l+="="+a[h]),n="&"};(0,y.default)(a).sort(i).forEach(r)}return l},o.buildCanonicalString=function(f,a,l,n){l=l||{};var i=l.headers||{},r="x-oss-",c=[],h={},d=[f.toUpperCase(),i["Content-Md5"]||"",i["Content-Type"]||i["Content-Type".toLowerCase()],n||i["x-oss-date"]];return(0,y.default)(i).forEach(function(s){var u=s.toLowerCase();u.indexOf(r)===0&&(h[u]=String(i[s]).trim())}),(0,y.default)(h).sort().forEach(function(s){c.push(s+":"+h[s])}),d=d.concat(c),d.push(this.buildCanonicalizedResource(a,l.parameters)),d.join(`
`)},o.computeSignature=function(f,a){var l=A.createHmac("sha1",f);return l.update(M.from(a,"utf8")).digest("base64")},o.authorization=function(f,a,l){return"OSS "+f+":"+this.computeSignature(a,l)},o._signatureForURL=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],n=arguments[3],i={},r=a.subResource,c=r===void 0?{}:r;if(a.process){var h="x-oss-process";c[h]=a.process}if(a.trafficLimit){var d="x-oss-traffic-limit";c[d]=a.trafficLimit}if(a.response&&(0,y.default)(a.response).forEach(function(E){var _="response-"+E.toLowerCase();c[_]=a.response[E]}),(0,y.default)(a).forEach(function(E){var _=E.toLowerCase(),P=a[E];_.indexOf("x-oss-")===0?i[_]=P:(_.indexOf("content-md5")===0||_.indexOf("content-type")===0)&&(i[E]=P)}),Object.prototype.hasOwnProperty.call(a,"security-token")&&(c["security-token"]=a["security-token"]),Object.prototype.hasOwnProperty.call(a,"callback")){var s={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};if(a.callback.host&&(s.callbackHost=a.callback.host),a.callback.contentType&&(s.callbackBodyType=a.callback.contentType),c.callback=M.from((0,O.default)(s)).toString("base64"),a.callback.customValue){var u={};(0,y.default)(a.callback.customValue).forEach(function(E){u["x:"+E]=a.callback.customValue[E]}),c["callback-var"]=M.from((0,O.default)(u)).toString("base64")}}var w=this.buildCanonicalString(a.method,l,{headers:i,parameters:c},n.toString());return{Signature:this.computeSignature(f,w),subResource:c}}}).call(this,k("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkBucketName=void 0,o.checkBucketName=function(M,m){var O=m?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!O.test(M))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/entries"),m=O(M);function O(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(o,"__esModule",{value:!0}),o.checkObjectTag=void 0;var b=k("./checkValid"),y=b.checkValid,C=k("./isObject"),A=C.isObject,g=[{validator:function(l){if(typeof l!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],e={key:[].concat(g,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(g,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function f(a){if(!A(a))throw new Error("tag must be Object");var l=(0,m.default)(a);if(l.length>10)throw new Error("maximum of 10 tags for a object");var n=["key","value"];l.forEach(function(i){i.forEach(function(r,c){y(r,e[n[c]])})})}o.checkObjectTag=f},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkValid=void 0;function M(m,O){O.forEach(function(b){if(b.validator)b.validator(m);else if(b.pattern&&!b.pattern.test(m))throw new Error(b.msg)})}o.checkValid=M},{}],38:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/core-js/object/assign"),O=b(m);function b(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(o,"__esModule",{value:!0}),o.createRequest=void 0;var y=k("./../../../shims/crypto/crypto.js"),C=k("debug")("ali-oss"),A=k("mime"),g=k("dateformat"),e=k("copy-to"),f=k("path");function a(i,r){return i[r]||i[r.toLowerCase()]}function l(i,r){delete i[r],delete i[r.toLowerCase()]}function n(i){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var c={"x-oss-date":g(r,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(c["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,O.default)(c,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(c["x-oss-security-token"]=this.options.stsToken),e(i.headers).to(c),a(c,"Content-Type")||(i.mime&&i.mime.indexOf("/")>0?c["Content-Type"]=i.mime:c["Content-Type"]=A.getType(i.mime||f.extname(i.object||""))),a(c,"Content-Type")||l(c,"Content-Type"),i.content&&(c["Content-Md5"]=y.createHash("md5").update(M.from(i.content,"utf8")).digest("base64"),c["Content-Length"]||(c["Content-Length"]=i.content.length));var h=this._getResource(i);c.authorization=this.authorization(i.method,h,i.subres,c);var d=this._getReqUrl(i);C("request %s %s, with headers %j, !!stream: %s",i.method,d,c,!!i.stream);var s=i.timeout||this.options.timeout,u={method:i.method,content:i.content,stream:i.stream,headers:c,timeout:s,writeStream:i.writeStream,customResponse:i.customResponse,ctx:i.ctx||this.ctx};return this.agent&&(u.agent=this.agent),this.httpsAgent&&(u.httpsAgent=this.httpsAgent),{url:d,params:u}}o.createRequest=n}).call(this,k("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),m=y(M),O=k("babel-runtime/helpers/typeof"),b=y(O);function y(C){return C&&C.__esModule?C:{default:C}}Object.defineProperty(o,"__esModule",{value:!0}),o.deepCopy=void 0,o.deepCopy=function(C){if(C===null||(typeof C=="undefined"?"undefined":(0,b.default)(C))!=="object")return C;var A=Array.isArray(C)?[]:{};return(0,m.default)(C).forEach(function(g){A[g]=o.deepCopy(C[g])}),A}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),m=y(M),O=k("babel-runtime/helpers/typeof"),b=y(O);function y(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.formatObjKey=void 0;function C(g,e){if(g===null||(typeof g=="undefined"?"undefined":(0,b.default)(g))!=="object")return g;var f=void 0;if(Array.isArray(g)){f=[];for(var a=0;a<g.length;a++)f.push(C(g[a],e))}else f={},(0,m.default)(g).forEach(function(l){f[A(l,e)]=C(g[l],e)});return f}o.formatObjKey=C;function A(g,e){return e==="firstUpperCase"?g=g.replace(/^./,function(f){return f.toUpperCase()}):e==="firstLowerCase"&&(g=g.replace(/^./,function(f){return f.toLowerCase()})),g}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getStrBytesCount=void 0;function M(m){for(var O=0,b=0;b<m.length;b++){var y=m.charAt(b);/^[\u00-\uff]$/.test(y)?O+=1:O+=2}return O}o.getStrBytesCount=M},{}],42:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isArray=void 0,o.isArray=function(M){return Object.prototype.toString.call(M)==="[object Array]"}},{}],43:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isBlob=void 0;function M(m){return typeof Blob!="undefined"&&m instanceof Blob}o.isBlob=M},{}],44:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isFile=void 0,o.isFile=function(M){return typeof File!="undefined"&&M instanceof File}},{}],45:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isIP=void 0,o.isIP=function(M){var m=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,O=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return m.test(M)||O.test(M)}},{}],46:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isObject=void 0,o.isObject=function(M){return Object.prototype.toString.call(M)==="[object Object]"}},{}],47:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),m=O(M);function O(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(o,"__esModule",{value:!0}),o.obj2xml=void 0;var b=k("./formatObjKey");function y(A){return Object.prototype.toString.call(A).replace(/(.*? |])/g,"").toLowerCase()}function C(A,g){var e="";return g&&g.headers&&(e=`<?xml version="1.0" encoding="UTF-8"?>
`),g&&g.firstUpperCase&&(A=b.formatObjKey(A,"firstUpperCase")),y(A)==="object"?(0,m.default)(A).forEach(function(f){y(A[f])==="string"||y(A[f])==="number"?e+="<"+f+">"+A[f]+"</"+f+">":y(A[f])==="object"?e+="<"+f+">"+C(A[f])+"</"+f+">":y(A[f])==="array"?e+=A[f].map(function(a){return"<"+f+">"+C(a)+"</"+f+">"}).join(""):e+="<"+f+">"+A[f].toString()+"</"+f+">"}):e+=A.toString(),e}o.obj2xml=C},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(k,z,o){z.exports=M,z.exports.HttpsAgent=M;function M(){}},{}],49:[function(k,z,o){z.exports=k("./register")().Promise},{"./register":51}],50:[function(k,z,o){"use strict";var M="@@any-promise/REGISTRATION",m=null;z.exports=function(O,b){return function(C,A){C=C||null,A=A||{};var g=A.global!==!1;if(m===null&&g&&(m=O[M]||null),m!==null&&C!==null&&m.implementation!==C)throw new Error('any-promise already defined as "'+m.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return m===null&&(C!==null&&typeof A.Promise!="undefined"?m={Promise:A.Promise,implementation:C}:m=b(C),g&&(O[M]=m)),m}}},{}],51:[function(k,z,o){"use strict";z.exports=k("./loader")(window,M);function M(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(k,z,o){z.exports={default:k("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(k,z,o){z.exports={default:k("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(k,z,o){z.exports={default:k("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(k,z,o){z.exports={default:k("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(k,z,o){z.exports={default:k("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(k,z,o){z.exports={default:k("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(k,z,o){z.exports={default:k("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(k,z,o){z.exports={default:k("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(k,z,o){"use strict";o.__esModule=!0;var M=k("../core-js/symbol/iterator"),m=C(M),O=k("../core-js/symbol"),b=C(O),y=typeof b.default=="function"&&typeof m.default=="symbol"?function(A){return typeof A}:function(A){return A&&typeof b.default=="function"&&A.constructor===b.default&&A!==b.default.prototype?"symbol":typeof A};function C(A){return A&&A.__esModule?A:{default:A}}o.default=typeof b.default=="function"&&y(m.default)==="symbol"?function(A){return typeof A=="undefined"?"undefined":y(A)}:function(A){return A&&typeof b.default=="function"&&A.constructor===b.default&&A!==b.default.prototype?"symbol":typeof A=="undefined"?"undefined":y(A)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(k,z,o){z.exports=k("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(k,z,o){"use strict";o.byteLength=g,o.toByteArray=f,o.fromByteArray=n;for(var M=[],m=[],O=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,C=b.length;y<C;++y)M[y]=b[y],m[b.charCodeAt(y)]=y;m["-".charCodeAt(0)]=62,m["_".charCodeAt(0)]=63;function A(i){var r=i.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=i.indexOf("=");c===-1&&(c=r);var h=c===r?0:4-c%4;return[c,h]}function g(i){var r=A(i),c=r[0],h=r[1];return(c+h)*3/4-h}function e(i,r,c){return(r+c)*3/4-c}function f(i){var r,c=A(i),h=c[0],d=c[1],s=new O(e(i,h,d)),u=0,w=d>0?h-4:h,E;for(E=0;E<w;E+=4)r=m[i.charCodeAt(E)]<<18|m[i.charCodeAt(E+1)]<<12|m[i.charCodeAt(E+2)]<<6|m[i.charCodeAt(E+3)],s[u++]=r>>16&255,s[u++]=r>>8&255,s[u++]=r&255;return d===2&&(r=m[i.charCodeAt(E)]<<2|m[i.charCodeAt(E+1)]>>4,s[u++]=r&255),d===1&&(r=m[i.charCodeAt(E)]<<10|m[i.charCodeAt(E+1)]<<4|m[i.charCodeAt(E+2)]>>2,s[u++]=r>>8&255,s[u++]=r&255),s}function a(i){return M[i>>18&63]+M[i>>12&63]+M[i>>6&63]+M[i&63]}function l(i,r,c){for(var h,d=[],s=r;s<c;s+=3)h=(i[s]<<16&16711680)+(i[s+1]<<8&65280)+(i[s+2]&255),d.push(a(h));return d.join("")}function n(i){for(var r,c=i.length,h=c%3,d=[],s=16383,u=0,w=c-h;u<w;u+=s)d.push(l(i,u,u+s>w?w:u+s));return h===1?(r=i[c-1],d.push(M[r>>2]+M[r<<4&63]+"==")):h===2&&(r=(i[c-2]<<8)+i[c-1],d.push(M[r>>10]+M[r>>4&63]+M[r<<2&63]+"=")),d.join("")}},{}],70:[function(k,z,o){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(M,m,O){typeof z!="undefined"&&z.exports?z.exports=O():typeof define=="function"&&define.amd?define(m,O):M[m]=O()}(this,"bowser",function(){var M=!0;function m(e){function f(W){var F=e.match(W);return F&&F.length>1&&F[1]||""}function a(W){var F=e.match(W);return F&&F.length>1&&F[2]||""}var l=f(/(ipod|iphone|ipad)/i).toLowerCase(),n=/like android/i.test(e),i=!n&&/android/i.test(e),r=/nexus\s*[0-6]\s*/i.test(e),c=!r&&/nexus\s*[0-9]+/i.test(e),h=/CrOS/.test(e),d=/silk/i.test(e),s=/sailfish/i.test(e),u=/tizen/i.test(e),w=/(web|hpw)(o|0)s/i.test(e),E=/windows phone/i.test(e),_=/SamsungBrowser/i.test(e),P=!E&&/windows/i.test(e),R=!l&&!d&&/macintosh/i.test(e),x=!i&&!s&&!u&&!w&&/linux/i.test(e),S=a(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),v=f(/version\/(\d+(\.\d+)?)/i),T=/tablet/i.test(e)&&!/tablet pc/i.test(e),U=!T&&/[^-]mobi/i.test(e),I=/xbox/i.test(e),N;/opera/i.test(e)?N={name:"Opera",opera:M,version:v||f(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?N={name:"Opera",opera:M,version:f(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||v}:/SamsungBrowser/i.test(e)?N={name:"Samsung Internet for Android",samsungBrowser:M,version:v||f(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(e)?N={name:"NAVER Whale browser",whale:M,version:f(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(e)?N={name:"MZ Browser",mzbrowser:M,version:f(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(e)?N={name:"Opera Coast",coast:M,version:v||f(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(e)?N={name:"Focus",focus:M,version:f(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(e)?N={name:"Yandex Browser",yandexbrowser:M,version:v||f(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?N={name:"UC Browser",ucbrowser:M,version:f(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?N={name:"Maxthon",maxthon:M,version:f(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?N={name:"Epiphany",epiphany:M,version:f(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?N={name:"Puffin",puffin:M,version:f(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?N={name:"Sleipnir",sleipnir:M,version:f(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?N={name:"K-Meleon",kMeleon:M,version:f(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:E?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:M},S?(N.msedge=M,N.version=S):(N.msie=M,N.version=f(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?N={name:"Internet Explorer",msie:M,version:f(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?N={name:"Chrome",osname:"Chrome OS",chromeos:M,chromeBook:M,chrome:M,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?N={name:"Microsoft Edge",msedge:M,version:S}:/vivaldi/i.test(e)?N={name:"Vivaldi",vivaldi:M,version:f(/vivaldi\/(\d+(\.\d+)?)/i)||v}:s?N={name:"Sailfish",osname:"Sailfish OS",sailfish:M,version:f(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?N={name:"SeaMonkey",seamonkey:M,version:f(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(N={name:"Firefox",firefox:M,version:f(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(N.firefoxos=M,N.osname="Firefox OS")):d?N={name:"Amazon Silk",silk:M,version:f(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?N={name:"PhantomJS",phantom:M,version:f(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?N={name:"SlimerJS",slimer:M,version:f(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:M,version:v||f(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:w?(N={name:"WebOS",osname:"WebOS",webos:M,version:v||f(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(N.touchpad=M)):/bada/i.test(e)?N={name:"Bada",osname:"Bada",bada:M,version:f(/dolfin\/(\d+(\.\d+)?)/i)}:u?N={name:"Tizen",osname:"Tizen",tizen:M,version:f(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||v}:/qupzilla/i.test(e)?N={name:"QupZilla",qupzilla:M,version:f(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||v}:/chromium/i.test(e)?N={name:"Chromium",chromium:M,version:f(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||v}:/chrome|crios|crmo/i.test(e)?N={name:"Chrome",chrome:M,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:i?N={name:"Android",version:v}:/safari|applewebkit/i.test(e)?(N={name:"Safari",safari:M},v&&(N.version=v)):l?(N={name:l=="iphone"?"iPhone":l=="ipad"?"iPad":"iPod"},v&&(N.version=v)):/googlebot/i.test(e)?N={name:"Googlebot",googlebot:M,version:f(/googlebot\/(\d+(\.\d+))/i)||v}:N={name:f(/^(.*)\/(.*) /),version:a(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(N.name=N.name||"Blink",N.blink=M):(N.name=N.name||"Webkit",N.webkit=M),!N.version&&v&&(N.version=v)):!N.opera&&/gecko\//i.test(e)&&(N.name=N.name||"Gecko",N.gecko=M,N.version=N.version||f(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(i||N.silk)?(N.android=M,N.osname="Android"):!N.windowsphone&&l?(N[l]=M,N.ios=M,N.osname="iOS"):R?(N.mac=M,N.osname="macOS"):I?(N.xbox=M,N.osname="Xbox"):P?(N.windows=M,N.osname="Windows"):x&&(N.linux=M,N.osname="Linux");function V(W){switch(W){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var H="";N.windows?H=V(f(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?H=f(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(H=f(/Mac OS X (\d+([_\.\s]\d+)*)/i),H=H.replace(/[_\s]/g,".")):l?(H=f(/os (\d+([_\s]\d+)*) like mac os x/i),H=H.replace(/[_\s]/g,".")):i?H=f(/android[ \/-](\d+(\.\d+)*)/i):N.webos?H=f(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?H=f(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?H=f(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(H=f(/tizen[\/\s](\d+(\.\d+)*)/i)),H&&(N.osversion=H);var D=!N.windows&&H.split(".")[0];return T||c||l=="ipad"||i&&(D==3||D>=4&&!U)||N.silk?N.tablet=M:(U||l=="iphone"||l=="ipod"||i||r||N.blackberry||N.webos||N.bada)&&(N.mobile=M),N.msedge||N.msie&&N.version>=10||N.yandexbrowser&&N.version>=15||N.vivaldi&&N.version>=1||N.chrome&&N.version>=20||N.samsungBrowser&&N.version>=4||N.whale&&C([N.version,"1.0"])===1||N.mzbrowser&&C([N.version,"6.0"])===1||N.focus&&C([N.version,"1.0"])===1||N.firefox&&N.version>=20||N.safari&&N.version>=6||N.opera&&N.version>=10||N.ios&&N.osversion&&N.osversion.split(".")[0]>=6||N.blackberry&&N.version>=10.1||N.chromium&&N.version>=20?N.a=M:N.msie&&N.version<10||N.chrome&&N.version<20||N.firefox&&N.version<20||N.safari&&N.version<6||N.opera&&N.version<10||N.ios&&N.osversion&&N.osversion.split(".")[0]<6||N.chromium&&N.version<20?N.c=M:N.x=M,N}var O=m(typeof navigator!="undefined"&&navigator.userAgent||"");O.test=function(e){for(var f=0;f<e.length;++f){var a=e[f];if(typeof a=="string"&&a in O)return!0}return!1};function b(e){return e.split(".").length}function y(e,f){var a=[],l;if(Array.prototype.map)return Array.prototype.map.call(e,f);for(l=0;l<e.length;l++)a.push(f(e[l]));return a}function C(e){for(var f=Math.max(b(e[0]),b(e[1])),a=y(e,function(l){var n=f-b(l);return l=l+new Array(n+1).join(".0"),y(l.split("."),function(i){return new Array(20-i.length).join("0")+i}).reverse()});--f>=0;){if(a[0][f]>a[1][f])return 1;if(a[0][f]===a[1][f]){if(f===0)return 0}else return-1}}function A(e,f,a){var l=O;typeof f=="string"&&(a=f,f=void 0),f===void 0&&(f=!1),a&&(l=m(a));var n=""+l.version;for(var i in e)if(e.hasOwnProperty(i)&&l[i]){if(typeof e[i]!="string")throw new Error("Browser version in the minVersion map should be a string: "+i+": "+String(e));return C([n,e[i]])<0}return f}function g(e,f,a){return!A(e,f,a)}return O.isUnsupportedBrowser=A,O.compareVersions=C,O.check=g,O._detect=m,O.detect=m,O})},{}],71:[function(k,z,o){},{}],72:[function(k,z,o){var M=k("buffer").Buffer,m=M.isEncoding||function(g){switch(g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function O(g){if(g&&!m(g))throw new Error("Unknown encoding: "+g)}var b=o.StringDecoder=function(g){this.encoding=(g||"utf8").toLowerCase().replace(/[-_]/,""),O(g);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=C;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=A;break;default:this.write=y;return}this.charBuffer=new M(6),this.charReceived=0,this.charLength=0};b.prototype.write=function(g){for(var e="";this.charLength;){var f=g.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:g.length;if(g.copy(this.charBuffer,this.charReceived,0,f),this.charReceived+=f,this.charReceived<this.charLength)return"";g=g.slice(f,g.length),e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var l=e.charCodeAt(e.length-1);if(l>=55296&&l<=56319){this.charLength+=this.surrogateSize,e="";continue}if(this.charReceived=this.charLength=0,g.length===0)return e;break}this.detectIncompleteChar(g);var a=g.length;this.charLength&&(g.copy(this.charBuffer,0,g.length-this.charReceived,a),a-=this.charReceived),e+=g.toString(this.encoding,0,a);var a=e.length-1,l=e.charCodeAt(a);if(l>=55296&&l<=56319){var n=this.surrogateSize;return this.charLength+=n,this.charReceived+=n,this.charBuffer.copy(this.charBuffer,n,0,n),g.copy(this.charBuffer,0,0,n),e.substring(0,a)}return e},b.prototype.detectIncompleteChar=function(g){for(var e=g.length>=3?3:g.length;e>0;e--){var f=g[g.length-e];if(e==1&&f>>5==6){this.charLength=2;break}if(e<=2&&f>>4==14){this.charLength=3;break}if(e<=3&&f>>3==30){this.charLength=4;break}}this.charReceived=e},b.prototype.end=function(g){var e="";if(g&&g.length&&(e=this.write(g)),this.charReceived){var f=this.charReceived,a=this.charBuffer,l=this.encoding;e+=a.slice(0,f).toString(l)}return e};function y(g){return g.toString(this.encoding)}function C(g){this.charReceived=g.length%2,this.charLength=this.charReceived?2:0}function A(g){this.charReceived=g.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(k,z,o){(function(M,m){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var O=k("base64-js"),b=k("ieee754"),y=k("isarray");o.Buffer=m,o.SlowBuffer=d,o.INSPECT_MAX_BYTES=50,m.TYPED_ARRAY_SUPPORT=M.TYPED_ARRAY_SUPPORT!==void 0?M.TYPED_ARRAY_SUPPORT:C(),o.kMaxLength=A();function C(){try{var le=new Uint8Array(1);return le.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},le.foo()===42&&typeof le.subarray=="function"&&le.subarray(1,1).byteLength===0}catch(te){return!1}}function A(){return m.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(le,te){if(A()<te)throw new RangeError("Invalid typed array length");return m.TYPED_ARRAY_SUPPORT?(le=new Uint8Array(te),le.__proto__=m.prototype):(le===null&&(le=new m(te)),le.length=te),le}function m(le,te,Q){if(!m.TYPED_ARRAY_SUPPORT&&!(this instanceof m))return new m(le,te,Q);if(typeof le=="number"){if(typeof te=="string")throw new Error("If encoding is specified then the first argument must be a string");return l(this,le)}return e(this,le,te,Q)}m.poolSize=8192,m._augment=function(le){return le.__proto__=m.prototype,le};function e(le,te,Q,J){if(typeof te=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&te instanceof ArrayBuffer?r(le,te,Q,J):typeof te=="string"?n(le,te,Q):c(le,te)}m.from=function(le,te,Q){return e(null,le,te,Q)},m.TYPED_ARRAY_SUPPORT&&(m.prototype.__proto__=Uint8Array.prototype,m.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&m[Symbol.species]===m&&Object.defineProperty(m,Symbol.species,{value:null,configurable:!0}));function f(le){if(typeof le!="number")throw new TypeError('"size" argument must be a number');if(le<0)throw new RangeError('"size" argument must not be negative')}function a(le,te,Q,J){return f(te),te<=0?g(le,te):Q!==void 0?typeof J=="string"?g(le,te).fill(Q,J):g(le,te).fill(Q):g(le,te)}m.alloc=function(le,te,Q){return a(null,le,te,Q)};function l(le,te){if(f(te),le=g(le,te<0?0:h(te)|0),!m.TYPED_ARRAY_SUPPORT)for(var Q=0;Q<te;++Q)le[Q]=0;return le}m.allocUnsafe=function(le){return l(null,le)},m.allocUnsafeSlow=function(le){return l(null,le)};function n(le,te,Q){if((typeof Q!="string"||Q==="")&&(Q="utf8"),!m.isEncoding(Q))throw new TypeError('"encoding" must be a valid string encoding');var J=s(te,Q)|0;le=g(le,J);var ve=le.write(te,Q);return ve!==J&&(le=le.slice(0,ve)),le}function i(le,te){var Q=te.length<0?0:h(te.length)|0;le=g(le,Q);for(var J=0;J<Q;J+=1)le[J]=te[J]&255;return le}function r(le,te,Q,J){if(te.byteLength,Q<0||te.byteLength<Q)throw new RangeError("'offset' is out of bounds");if(te.byteLength<Q+(J||0))throw new RangeError("'length' is out of bounds");return Q===void 0&&J===void 0?te=new Uint8Array(te):J===void 0?te=new Uint8Array(te,Q):te=new Uint8Array(te,Q,J),m.TYPED_ARRAY_SUPPORT?(le=te,le.__proto__=m.prototype):le=i(le,te),le}function c(le,te){if(m.isBuffer(te)){var Q=h(te.length)|0;return le=g(le,Q),le.length===0||te.copy(le,0,0,Q),le}if(te){if(typeof ArrayBuffer!="undefined"&&te.buffer instanceof ArrayBuffer||"length"in te)return typeof te.length!="number"||we(te.length)?g(le,0):i(le,te);if(te.type==="Buffer"&&y(te.data))return i(le,te.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(le){if(le>=A())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A().toString(16)+" bytes");return le|0}function d(le){return+le!=le&&(le=0),m.alloc(+le)}m.isBuffer=function(te){return!!(te!=null&&te._isBuffer)},m.compare=function(te,Q){if(!m.isBuffer(te)||!m.isBuffer(Q))throw new TypeError("Arguments must be Buffers");if(te===Q)return 0;for(var J=te.length,ve=Q.length,_e=0,Oe=Math.min(J,ve);_e<Oe;++_e)if(te[_e]!==Q[_e]){J=te[_e],ve=Q[_e];break}return J<ve?-1:ve<J?1:0},m.isEncoding=function(te){switch(String(te).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.concat=function(te,Q){if(!y(te))throw new TypeError('"list" argument must be an Array of Buffers');if(te.length===0)return m.alloc(0);var J;if(Q===void 0)for(Q=0,J=0;J<te.length;++J)Q+=te[J].length;var ve=m.allocUnsafe(Q),_e=0;for(J=0;J<te.length;++J){var Oe=te[J];if(!m.isBuffer(Oe))throw new TypeError('"list" argument must be an Array of Buffers');Oe.copy(ve,_e),_e+=Oe.length}return ve};function s(le,te){if(m.isBuffer(le))return le.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(le)||le instanceof ArrayBuffer))return le.byteLength;typeof le!="string"&&(le=""+le);var Q=le.length;if(Q===0)return 0;for(var J=!1;;)switch(te){case"ascii":case"latin1":case"binary":return Q;case"utf8":case"utf-8":case void 0:return se(le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q*2;case"hex":return Q>>>1;case"base64":return re(le).length;default:if(J)return se(le).length;te=(""+te).toLowerCase(),J=!0}}m.byteLength=s;function u(le,te,Q){var J=!1;if((te===void 0||te<0)&&(te=0),te>this.length)return"";if((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)return"";if(Q>>>=0,te>>>=0,Q<=te)return"";for(le||(le="utf8");;)switch(le){case"hex":return W(this,te,Q);case"utf8":case"utf-8":return I(this,te,Q);case"ascii":return H(this,te,Q);case"latin1":case"binary":return D(this,te,Q);case"base64":return U(this,te,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,te,Q);default:if(J)throw new TypeError("Unknown encoding: "+le);le=(le+"").toLowerCase(),J=!0}}m.prototype._isBuffer=!0;function w(le,te,Q){var J=le[te];le[te]=le[Q],le[Q]=J}m.prototype.swap16=function(){var te=this.length;if(te%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;Q<te;Q+=2)w(this,Q,Q+1);return this},m.prototype.swap32=function(){var te=this.length;if(te%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Q=0;Q<te;Q+=4)w(this,Q,Q+3),w(this,Q+1,Q+2);return this},m.prototype.swap64=function(){var te=this.length;if(te%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Q=0;Q<te;Q+=8)w(this,Q,Q+7),w(this,Q+1,Q+6),w(this,Q+2,Q+5),w(this,Q+3,Q+4);return this},m.prototype.toString=function(){var te=this.length|0;return te===0?"":arguments.length===0?I(this,0,te):u.apply(this,arguments)},m.prototype.equals=function(te){if(!m.isBuffer(te))throw new TypeError("Argument must be a Buffer");return this===te?!0:m.compare(this,te)===0},m.prototype.inspect=function(){var te="",Q=o.INSPECT_MAX_BYTES;return this.length>0&&(te=this.toString("hex",0,Q).match(/.{2}/g).join(" "),this.length>Q&&(te+=" ... ")),"<Buffer "+te+">"},m.prototype.compare=function(te,Q,J,ve,_e){if(!m.isBuffer(te))throw new TypeError("Argument must be a Buffer");if(Q===void 0&&(Q=0),J===void 0&&(J=te?te.length:0),ve===void 0&&(ve=0),_e===void 0&&(_e=this.length),Q<0||J>te.length||ve<0||_e>this.length)throw new RangeError("out of range index");if(ve>=_e&&Q>=J)return 0;if(ve>=_e)return-1;if(Q>=J)return 1;if(Q>>>=0,J>>>=0,ve>>>=0,_e>>>=0,this===te)return 0;for(var Oe=_e-ve,Xe=J-Q,tt=Math.min(Oe,Xe),lt=this.slice(ve,_e),dt=te.slice(Q,J),vt=0;vt<tt;++vt)if(lt[vt]!==dt[vt]){Oe=lt[vt],Xe=dt[vt];break}return Oe<Xe?-1:Xe<Oe?1:0};function E(le,te,Q,J,ve){if(le.length===0)return-1;if(typeof Q=="string"?(J=Q,Q=0):Q>2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),Q=+Q,isNaN(Q)&&(Q=ve?0:le.length-1),Q<0&&(Q=le.length+Q),Q>=le.length){if(ve)return-1;Q=le.length-1}else if(Q<0)if(ve)Q=0;else return-1;if(typeof te=="string"&&(te=m.from(te,J)),m.isBuffer(te))return te.length===0?-1:_(le,te,Q,J,ve);if(typeof te=="number")return te=te&255,m.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(le,te,Q):Uint8Array.prototype.lastIndexOf.call(le,te,Q):_(le,[te],Q,J,ve);throw new TypeError("val must be string, number or Buffer")}function _(le,te,Q,J,ve){var _e=1,Oe=le.length,Xe=te.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(le.length<2||te.length<2)return-1;_e=2,Oe/=2,Xe/=2,Q/=2}function tt(Ye,je){return _e===1?Ye[je]:Ye.readUInt16BE(je*_e)}var lt;if(ve){var dt=-1;for(lt=Q;lt<Oe;lt++)if(tt(le,lt)===tt(te,dt===-1?0:lt-dt)){if(dt===-1&&(dt=lt),lt-dt+1===Xe)return dt*_e}else dt!==-1&&(lt-=lt-dt),dt=-1}else for(Q+Xe>Oe&&(Q=Oe-Xe),lt=Q;lt>=0;lt--){for(var vt=!0,_t=0;_t<Xe;_t++)if(tt(le,lt+_t)!==tt(te,_t)){vt=!1;break}if(vt)return lt}return-1}m.prototype.includes=function(te,Q,J){return this.indexOf(te,Q,J)!==-1},m.prototype.indexOf=function(te,Q,J){return E(this,te,Q,J,!0)},m.prototype.lastIndexOf=function(te,Q,J){return E(this,te,Q,J,!1)};function P(le,te,Q,J){Q=Number(Q)||0;var ve=le.length-Q;J?(J=Number(J),J>ve&&(J=ve)):J=ve;var _e=te.length;if(_e%2!==0)throw new TypeError("Invalid hex string");J>_e/2&&(J=_e/2);for(var Oe=0;Oe<J;++Oe){var Xe=parseInt(te.substr(Oe*2,2),16);if(isNaN(Xe))return Oe;le[Q+Oe]=Xe}return Oe}function R(le,te,Q,J){return ae(se(te,le.length-Q),le,Q,J)}function x(le,te,Q,J){return ae($(te),le,Q,J)}function S(le,te,Q,J){return x(le,te,Q,J)}function v(le,te,Q,J){return ae(re(te),le,Q,J)}function T(le,te,Q,J){return ae(me(te,le.length-Q),le,Q,J)}m.prototype.write=function(te,Q,J,ve){if(Q===void 0)ve="utf8",J=this.length,Q=0;else if(J===void 0&&typeof Q=="string")ve=Q,J=this.length,Q=0;else if(isFinite(Q))Q=Q|0,isFinite(J)?(J=J|0,ve===void 0&&(ve="utf8")):(ve=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var _e=this.length-Q;if((J===void 0||J>_e)&&(J=_e),te.length>0&&(J<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Oe=!1;;)switch(ve){case"hex":return P(this,te,Q,J);case"utf8":case"utf-8":return R(this,te,Q,J);case"ascii":return x(this,te,Q,J);case"latin1":case"binary":return S(this,te,Q,J);case"base64":return v(this,te,Q,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,te,Q,J);default:if(Oe)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Oe=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(le,te,Q){return te===0&&Q===le.length?O.fromByteArray(le):O.fromByteArray(le.slice(te,Q))}function I(le,te,Q){Q=Math.min(le.length,Q);for(var J=[],ve=te;ve<Q;){var _e=le[ve],Oe=null,Xe=_e>239?4:_e>223?3:_e>191?2:1;if(ve+Xe<=Q){var tt,lt,dt,vt;switch(Xe){case 1:_e<128&&(Oe=_e);break;case 2:tt=le[ve+1],(tt&192)===128&&(vt=(_e&31)<<6|tt&63,vt>127&&(Oe=vt));break;case 3:tt=le[ve+1],lt=le[ve+2],(tt&192)===128&&(lt&192)===128&&(vt=(_e&15)<<12|(tt&63)<<6|lt&63,vt>2047&&(vt<55296||vt>57343)&&(Oe=vt));break;case 4:tt=le[ve+1],lt=le[ve+2],dt=le[ve+3],(tt&192)===128&&(lt&192)===128&&(dt&192)===128&&(vt=(_e&15)<<18|(tt&63)<<12|(lt&63)<<6|dt&63,vt>65535&&vt<1114112&&(Oe=vt))}}Oe===null?(Oe=65533,Xe=1):Oe>65535&&(Oe-=65536,J.push(Oe>>>10&1023|55296),Oe=56320|Oe&1023),J.push(Oe),ve+=Xe}return V(J)}var N=4096;function V(le){var te=le.length;if(te<=N)return String.fromCharCode.apply(String,le);for(var Q="",J=0;J<te;)Q+=String.fromCharCode.apply(String,le.slice(J,J+=N));return Q}function H(le,te,Q){var J="";Q=Math.min(le.length,Q);for(var ve=te;ve<Q;++ve)J+=String.fromCharCode(le[ve]&127);return J}function D(le,te,Q){var J="";Q=Math.min(le.length,Q);for(var ve=te;ve<Q;++ve)J+=String.fromCharCode(le[ve]);return J}function W(le,te,Q){var J=le.length;(!te||te<0)&&(te=0),(!Q||Q<0||Q>J)&&(Q=J);for(var ve="",_e=te;_e<Q;++_e)ve+=ue(le[_e]);return ve}function F(le,te,Q){for(var J=le.slice(te,Q),ve="",_e=0;_e<J.length;_e+=2)ve+=String.fromCharCode(J[_e]+J[_e+1]*256);return ve}m.prototype.slice=function(te,Q){var J=this.length;te=~~te,Q=Q===void 0?J:~~Q,te<0?(te+=J,te<0&&(te=0)):te>J&&(te=J),Q<0?(Q+=J,Q<0&&(Q=0)):Q>J&&(Q=J),Q<te&&(Q=te);var ve;if(m.TYPED_ARRAY_SUPPORT)ve=this.subarray(te,Q),ve.__proto__=m.prototype;else{var _e=Q-te;ve=new m(_e,void 0);for(var Oe=0;Oe<_e;++Oe)ve[Oe]=this[Oe+te]}return ve};function L(le,te,Q){if(le%1!==0||le<0)throw new RangeError("offset is not uint");if(le+te>Q)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||L(te,Q,this.length);for(var ve=this[te],_e=1,Oe=0;++Oe<Q&&(_e*=256);)ve+=this[te+Oe]*_e;return ve},m.prototype.readUIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||L(te,Q,this.length);for(var ve=this[te+--Q],_e=1;Q>0&&(_e*=256);)ve+=this[te+--Q]*_e;return ve},m.prototype.readUInt8=function(te,Q){return Q||L(te,1,this.length),this[te]},m.prototype.readUInt16LE=function(te,Q){return Q||L(te,2,this.length),this[te]|this[te+1]<<8},m.prototype.readUInt16BE=function(te,Q){return Q||L(te,2,this.length),this[te]<<8|this[te+1]},m.prototype.readUInt32LE=function(te,Q){return Q||L(te,4,this.length),(this[te]|this[te+1]<<8|this[te+2]<<16)+this[te+3]*16777216},m.prototype.readUInt32BE=function(te,Q){return Q||L(te,4,this.length),this[te]*16777216+(this[te+1]<<16|this[te+2]<<8|this[te+3])},m.prototype.readIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||L(te,Q,this.length);for(var ve=this[te],_e=1,Oe=0;++Oe<Q&&(_e*=256);)ve+=this[te+Oe]*_e;return _e*=128,ve>=_e&&(ve-=Math.pow(2,8*Q)),ve},m.prototype.readIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||L(te,Q,this.length);for(var ve=Q,_e=1,Oe=this[te+--ve];ve>0&&(_e*=256);)Oe+=this[te+--ve]*_e;return _e*=128,Oe>=_e&&(Oe-=Math.pow(2,8*Q)),Oe},m.prototype.readInt8=function(te,Q){return Q||L(te,1,this.length),this[te]&128?(255-this[te]+1)*-1:this[te]},m.prototype.readInt16LE=function(te,Q){Q||L(te,2,this.length);var J=this[te]|this[te+1]<<8;return J&32768?J|4294901760:J},m.prototype.readInt16BE=function(te,Q){Q||L(te,2,this.length);var J=this[te+1]|this[te]<<8;return J&32768?J|4294901760:J},m.prototype.readInt32LE=function(te,Q){return Q||L(te,4,this.length),this[te]|this[te+1]<<8|this[te+2]<<16|this[te+3]<<24},m.prototype.readInt32BE=function(te,Q){return Q||L(te,4,this.length),this[te]<<24|this[te+1]<<16|this[te+2]<<8|this[te+3]},m.prototype.readFloatLE=function(te,Q){return Q||L(te,4,this.length),b.read(this,te,!0,23,4)},m.prototype.readFloatBE=function(te,Q){return Q||L(te,4,this.length),b.read(this,te,!1,23,4)},m.prototype.readDoubleLE=function(te,Q){return Q||L(te,8,this.length),b.read(this,te,!0,52,8)},m.prototype.readDoubleBE=function(te,Q){return Q||L(te,8,this.length),b.read(this,te,!1,52,8)};function K(le,te,Q,J,ve,_e){if(!m.isBuffer(le))throw new TypeError('"buffer" argument must be a Buffer instance');if(te>ve||te<_e)throw new RangeError('"value" argument is out of bounds');if(Q+J>le.length)throw new RangeError("Index out of range")}m.prototype.writeUIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,J=J|0,!ve){var _e=Math.pow(2,8*J)-1;K(this,te,Q,J,_e,0)}var Oe=1,Xe=0;for(this[Q]=te&255;++Xe<J&&(Oe*=256);)this[Q+Xe]=te/Oe&255;return Q+J},m.prototype.writeUIntBE=function(te,Q,J,ve){if(te=+te,Q=Q|0,J=J|0,!ve){var _e=Math.pow(2,8*J)-1;K(this,te,Q,J,_e,0)}var Oe=J-1,Xe=1;for(this[Q+Oe]=te&255;--Oe>=0&&(Xe*=256);)this[Q+Oe]=te/Xe&255;return Q+J},m.prototype.writeUInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,255,0),m.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),this[Q]=te&255,Q+1};function ee(le,te,Q,J){te<0&&(te=65535+te+1);for(var ve=0,_e=Math.min(le.length-Q,2);ve<_e;++ve)le[Q+ve]=(te&255<<8*(J?ve:1-ve))>>>(J?ve:1-ve)*8}m.prototype.writeUInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},m.prototype.writeUInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2};function he(le,te,Q,J){te<0&&(te=4294967295+te+1);for(var ve=0,_e=Math.min(le.length-Q,4);ve<_e;++ve)le[Q+ve]=te>>>(J?ve:3-ve)*8&255}m.prototype.writeUInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[Q+3]=te>>>24,this[Q+2]=te>>>16,this[Q+1]=te>>>8,this[Q]=te&255):he(this,te,Q,!0),Q+4},m.prototype.writeUInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4},m.prototype.writeIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Oe=0,Xe=1,tt=0;for(this[Q]=te&255;++Oe<J&&(Xe*=256);)te<0&&tt===0&&this[Q+Oe-1]!==0&&(tt=1),this[Q+Oe]=(te/Xe>>0)-tt&255;return Q+J},m.prototype.writeIntBE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Oe=J-1,Xe=1,tt=0;for(this[Q+Oe]=te&255;--Oe>=0&&(Xe*=256);)te<0&&tt===0&&this[Q+Oe+1]!==0&&(tt=1),this[Q+Oe]=(te/Xe>>0)-tt&255;return Q+J},m.prototype.writeInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,127,-128),m.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),te<0&&(te=255+te+1),this[Q]=te&255,Q+1},m.prototype.writeInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},m.prototype.writeInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2},m.prototype.writeInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),m.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8,this[Q+2]=te>>>16,this[Q+3]=te>>>24):he(this,te,Q,!0),Q+4},m.prototype.writeInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),te<0&&(te=4294967295+te+1),m.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4};function fe(le,te,Q,J,ve,_e){if(Q+J>le.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Ce(le,te,Q,J,ve){return ve||fe(le,te,Q,4,34028234663852886e22,-34028234663852886e22),b.write(le,te,Q,J,23,4),Q+4}m.prototype.writeFloatLE=function(te,Q,J){return Ce(this,te,Q,!0,J)},m.prototype.writeFloatBE=function(te,Q,J){return Ce(this,te,Q,!1,J)};function Te(le,te,Q,J,ve){return ve||fe(le,te,Q,8,17976931348623157e292,-17976931348623157e292),b.write(le,te,Q,J,52,8),Q+8}m.prototype.writeDoubleLE=function(te,Q,J){return Te(this,te,Q,!0,J)},m.prototype.writeDoubleBE=function(te,Q,J){return Te(this,te,Q,!1,J)},m.prototype.copy=function(te,Q,J,ve){if(J||(J=0),!ve&&ve!==0&&(ve=this.length),Q>=te.length&&(Q=te.length),Q||(Q=0),ve>0&&ve<J&&(ve=J),ve===J)return 0;if(te.length===0||this.length===0)return 0;if(Q<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),te.length-Q<ve-J&&(ve=te.length-Q+J);var _e=ve-J,Oe;if(this===te&&J<Q&&Q<ve)for(Oe=_e-1;Oe>=0;--Oe)te[Oe+Q]=this[Oe+J];else if(_e<1e3||!m.TYPED_ARRAY_SUPPORT)for(Oe=0;Oe<_e;++Oe)te[Oe+Q]=this[Oe+J];else Uint8Array.prototype.set.call(te,this.subarray(J,J+_e),Q);return _e},m.prototype.fill=function(te,Q,J,ve){if(typeof te=="string"){if(typeof Q=="string"?(ve=Q,Q=0,J=this.length):typeof J=="string"&&(ve=J,J=this.length),te.length===1){var _e=te.charCodeAt(0);_e<256&&(te=_e)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!m.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof te=="number"&&(te=te&255);if(Q<0||this.length<Q||this.length<J)throw new RangeError("Out of range index");if(J<=Q)return this;Q=Q>>>0,J=J===void 0?this.length:J>>>0,te||(te=0);var Oe;if(typeof te=="number")for(Oe=Q;Oe<J;++Oe)this[Oe]=te;else{var Xe=m.isBuffer(te)?te:se(new m(te,ve).toString()),tt=Xe.length;for(Oe=0;Oe<J-Q;++Oe)this[Oe+Q]=Xe[Oe%tt]}return this};var ce=/[^+\/0-9A-Za-z-_]/g;function ye(le){if(le=Ee(le).replace(ce,""),le.length<2)return"";for(;le.length%4!==0;)le=le+"=";return le}function Ee(le){return le.trim?le.trim():le.replace(/^\s+|\s+$/g,"")}function ue(le){return le<16?"0"+le.toString(16):le.toString(16)}function se(le,te){te=te||Infinity;for(var Q,J=le.length,ve=null,_e=[],Oe=0;Oe<J;++Oe){if(Q=le.charCodeAt(Oe),Q>55295&&Q<57344){if(!ve){if(Q>56319){(te-=3)>-1&&_e.push(239,191,189);continue}else if(Oe+1===J){(te-=3)>-1&&_e.push(239,191,189);continue}ve=Q;continue}if(Q<56320){(te-=3)>-1&&_e.push(239,191,189),ve=Q;continue}Q=(ve-55296<<10|Q-56320)+65536}else ve&&((te-=3)>-1&&_e.push(239,191,189));if(ve=null,Q<128){if((te-=1)<0)break;_e.push(Q)}else if(Q<2048){if((te-=2)<0)break;_e.push(Q>>6|192,Q&63|128)}else if(Q<65536){if((te-=3)<0)break;_e.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if((te-=4)<0)break;_e.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw new Error("Invalid code point")}return _e}function $(le){for(var te=[],Q=0;Q<le.length;++Q)te.push(le.charCodeAt(Q)&255);return te}function me(le,te){for(var Q,J,ve,_e=[],Oe=0;Oe<le.length&&!((te-=2)<0);++Oe)Q=le.charCodeAt(Oe),J=Q>>8,ve=Q%256,_e.push(ve),_e.push(J);return _e}function re(le){return O.toByteArray(ye(le))}function ae(le,te,Q,J){for(var ve=0;ve<J&&!(ve+Q>=te.length||ve>=le.length);++ve)te[ve+Q]=le[ve];return ve}function we(le){return le!==le}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(k,z,o){z.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(k,z,o){z.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(k,z,o){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var M=Array.prototype.slice;z.exports=m;function m(b,y){if(!(this instanceof m))return new m(b,y);this.src=b,this._withAccess=y}m.prototype.withAccess=function(b){return this._withAccess=b!==!1,this},m.prototype.pick=function(b){return Array.isArray(b)||(b=M.call(arguments)),b.length&&(this.keys=b),this},m.prototype.to=function(b){if(b=b||{},!this.src)return b;var y=this.keys||Object.keys(this.src);if(!this._withAccess){for(var C=0;C<y.length;C++){if(A=y[C],b[A]!==void 0)continue;b[A]=this.src[A]}return b}for(var C=0;C<y.length;C++){var A=y[C];if(!O(b,A))continue;var g=this.src.__lookupGetter__(A),e=this.src.__lookupSetter__(A);g&&b.__defineGetter__(A,g),e&&b.__defineSetter__(A,e),!g&&!e&&(b[A]=this.src[A])}return b},m.prototype.toCover=function(b){for(var y=this.keys||Object.keys(this.src),C=0;C<y.length;C++){var A=y[C];delete b[A];var g=this.src.__lookupGetter__(A),e=this.src.__lookupSetter__(A);g&&b.__defineGetter__(A,g),e&&b.__defineSetter__(A,e),!g&&!e&&(b[A]=this.src[A])}},m.prototype.override=m.prototype.toCover,m.prototype.and=function(b){var y={};return this.to(y),this.src=b,this.to(y),this.src=y,this};function O(b,y){return b[y]===void 0&&b.__lookupGetter__(y)===void 0&&b.__lookupSetter__(y)===void 0}},{}],77:[function(k,z,o){k("../../modules/es6.string.iterator"),k("../../modules/es6.array.from"),z.exports=k("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(k,z,o){var M=k("../../modules/_core"),m=M.JSON||(M.JSON={stringify:JSON.stringify});z.exports=function(b){return m.stringify.apply(m,arguments)}},{"../../modules/_core":99}],79:[function(k,z,o){k("../../modules/es6.object.assign"),z.exports=k("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(k,z,o){k("../../modules/es6.object.create");var M=k("../../modules/_core").Object;z.exports=function(O,b){return M.create(O,b)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(k,z,o){k("../../modules/es6.object.define-property");var M=k("../../modules/_core").Object;z.exports=function(O,b,y){return M.defineProperty(O,b,y)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(k,z,o){k("../../modules/es7.object.entries"),z.exports=k("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(k,z,o){k("../../modules/es6.object.get-own-property-names");var M=k("../../modules/_core").Object;z.exports=function(O){return M.getOwnPropertyNames(O)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(k,z,o){k("../../modules/es6.object.get-prototype-of"),z.exports=k("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(k,z,o){k("../../modules/es6.object.keys"),z.exports=k("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(k,z,o){k("../modules/es6.object.to-string"),k("../modules/es6.string.iterator"),k("../modules/web.dom.iterable"),k("../modules/es6.promise"),k("../modules/es7.promise.finally"),k("../modules/es7.promise.try"),z.exports=k("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(k,z,o){k("../modules/web.immediate"),z.exports=k("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(k,z,o){k("../../modules/es6.string.from-code-point"),z.exports=k("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(k,z,o){k("../../modules/es6.function.has-instance"),z.exports=k("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(k,z,o){k("../../modules/es6.symbol"),k("../../modules/es6.object.to-string"),k("../../modules/es7.symbol.async-iterator"),k("../../modules/es7.symbol.observable"),z.exports=k("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(k,z,o){k("../../modules/es6.string.iterator"),k("../../modules/web.dom.iterable"),z.exports=k("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(k,z,o){z.exports=function(M){if(typeof M!="function")throw TypeError(M+" is not a function!");return M}},{}],93:[function(k,z,o){z.exports=function(){}},{}],94:[function(k,z,o){z.exports=function(M,m,O,b){if(!(M instanceof m)||b!==void 0&&b in M)throw TypeError(O+": incorrect invocation!");return M}},{}],95:[function(k,z,o){var M=k("./_is-object");z.exports=function(m){if(!M(m))throw TypeError(m+" is not an object!");return m}},{"./_is-object":119}],96:[function(k,z,o){var M=k("./_to-iobject"),m=k("./_to-length"),O=k("./_to-absolute-index");z.exports=function(b){return function(y,C,A){var g=M(y),e=m(g.length),f=O(A,e),a;if(b&&C!=C){for(;e>f;)if(a=g[f++],a!=a)return!0}else for(;e>f;f++)if((b||f in g)&&g[f]===C)return b||f||0;return!b&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,z,o){var M=k("./_cof"),m=k("./_wks")("toStringTag"),O=M(function(){return arguments}())=="Arguments",b=function(y,C){try{return y[C]}catch(A){}};z.exports=function(y){var C,A,g;return y===void 0?"Undefined":y===null?"Null":typeof(A=b(C=Object(y),m))=="string"?A:O?M(C):(g=M(C))=="Object"&&typeof C.callee=="function"?"Arguments":g}},{"./_cof":98,"./_wks":166}],98:[function(k,z,o){var M={}.toString;z.exports=function(m){return M.call(m).slice(8,-1)}},{}],99:[function(k,z,o){var M=z.exports={version:"2.6.11"};typeof __e=="number"&&(__e=M)},{}],100:[function(k,z,o){"use strict";var M=k("./_object-dp"),m=k("./_property-desc");z.exports=function(O,b,y){b in O?M.f(O,b,m(0,y)):O[b]=y}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,z,o){var M=k("./_a-function");z.exports=function(m,O,b){if(M(m),O===void 0)return m;switch(b){case 1:return function(y){return m.call(O,y)};case 2:return function(y,C){return m.call(O,y,C)};case 3:return function(y,C,A){return m.call(O,y,C,A)}}return function(){return m.apply(O,arguments)}}},{"./_a-function":92}],102:[function(k,z,o){z.exports=function(M){if(M==null)throw TypeError("Can't call method on "+M);return M}},{}],103:[function(k,z,o){z.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,z,o){var M=k("./_is-object"),m=k("./_global").document,O=M(m)&&M(m.createElement);z.exports=function(b){return O?m.createElement(b):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,z,o){z.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,z,o){var M=k("./_object-keys"),m=k("./_object-gops"),O=k("./_object-pie");z.exports=function(b){var y=M(b),C=m.f;if(C)for(var A=C(b),g=O.f,e=0,f;A.length>e;)g.call(b,f=A[e++])&&y.push(f);return y}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,z,o){var M=k("./_global"),m=k("./_core"),O=k("./_ctx"),b=k("./_hide"),y=k("./_has"),C="prototype",A=function(g,e,f){var a=g&A.F,l=g&A.G,n=g&A.S,i=g&A.P,r=g&A.B,c=g&A.W,h=l?m:m[e]||(m[e]={}),d=h[C],s=l?M:n?M[e]:(M[e]||{})[C],u,w,E;l&&(f=e);for(u in f){if(w=!a&&s&&s[u]!==void 0,w&&y(h,u))continue;E=w?s[u]:f[u],h[u]=l&&typeof s[u]!="function"?f[u]:r&&w?O(E,M):c&&s[u]==E?function(_){var P=function(R,x,S){if(this instanceof _){switch(arguments.length){case 0:return new _;case 1:return new _(R);case 2:return new _(R,x)}return new _(R,x,S)}return _.apply(this,arguments)};return P[C]=_[C],P}(E):i&&typeof E=="function"?O(Function.call,E):E,i&&((h.virtual||(h.virtual={}))[u]=E,g&A.R&&d&&!d[u]&&b(d,u,E))}};A.F=1,A.G=2,A.S=4,A.P=8,A.B=16,A.W=32,A.U=64,A.R=128,z.exports=A},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(k,z,o){z.exports=function(M){try{return!!M()}catch(m){return!0}}},{}],109:[function(k,z,o){var M=k("./_ctx"),m=k("./_iter-call"),O=k("./_is-array-iter"),b=k("./_an-object"),y=k("./_to-length"),C=k("./core.get-iterator-method"),A={},g={},o=z.exports=function(e,f,a,l,n){var i=n?function(){return e}:C(e),r=M(a,l,f?2:1),c=0,h,d,s,u;if(typeof i!="function")throw TypeError(e+" is not iterable!");if(O(i)){for(h=y(e.length);h>c;c++)if(u=f?r(b(d=e[c])[0],d[1]):r(e[c]),u===A||u===g)return u}else for(s=i.call(e);!(d=s.next()).done;)if(u=m(s,r,d.value,f),u===A||u===g)return u};o.BREAK=A,o.RETURN=g},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(k,z,o){var M=z.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=M)},{}],111:[function(k,z,o){var M={}.hasOwnProperty;z.exports=function(m,O){return M.call(m,O)}},{}],112:[function(k,z,o){var M=k("./_object-dp"),m=k("./_property-desc");z.exports=k("./_descriptors")?function(O,b,y){return M.f(O,b,m(1,y))}:function(O,b,y){return O[b]=y,O}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(k,z,o){var M=k("./_global").document;z.exports=M&&M.documentElement},{"./_global":110}],114:[function(k,z,o){z.exports=!k("./_descriptors")&&!k("./_fails")(function(){return Object.defineProperty(k("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(k,z,o){z.exports=function(M,m,O){var b=O===void 0;switch(m.length){case 0:return b?M():M.call(O);case 1:return b?M(m[0]):M.call(O,m[0]);case 2:return b?M(m[0],m[1]):M.call(O,m[0],m[1]);case 3:return b?M(m[0],m[1],m[2]):M.call(O,m[0],m[1],m[2]);case 4:return b?M(m[0],m[1],m[2],m[3]):M.call(O,m[0],m[1],m[2],m[3])}return M.apply(O,m)}},{}],116:[function(k,z,o){var M=k("./_cof");z.exports=Object("z").propertyIsEnumerable(0)?Object:function(m){return M(m)=="String"?m.split(""):Object(m)}},{"./_cof":98}],117:[function(k,z,o){var M=k("./_iterators"),m=k("./_wks")("iterator"),O=Array.prototype;z.exports=function(b){return b!==void 0&&(M.Array===b||O[m]===b)}},{"./_iterators":125,"./_wks":166}],118:[function(k,z,o){var M=k("./_cof");z.exports=Array.isArray||function(O){return M(O)=="Array"}},{"./_cof":98}],119:[function(k,z,o){z.exports=function(M){return typeof M=="object"?M!==null:typeof M=="function"}},{}],120:[function(k,z,o){var M=k("./_an-object");z.exports=function(m,O,b,y){try{return y?O(M(b)[0],b[1]):O(b)}catch(A){var C=m.return;throw C!==void 0&&M(C.call(m)),A}}},{"./_an-object":95}],121:[function(k,z,o){"use strict";var M=k("./_object-create"),m=k("./_property-desc"),O=k("./_set-to-string-tag"),b={};k("./_hide")(b,k("./_wks")("iterator"),function(){return this}),z.exports=function(y,C,A){y.prototype=M(b,{next:m(1,A)}),O(y,C+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(k,z,o){"use strict";var M=k("./_library"),m=k("./_export"),O=k("./_redefine"),b=k("./_hide"),y=k("./_iterators"),C=k("./_iter-create"),A=k("./_set-to-string-tag"),g=k("./_object-gpo"),e=k("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),a="@@iterator",l="keys",n="values",i=function(){return this};z.exports=function(r,c,h,d,s,u,w){C(h,c,d);var E=function(H){if(!f&&H in x)return x[H];switch(H){case l:return function(){return new h(this,H)};case n:return function(){return new h(this,H)}}return function(){return new h(this,H)}},_=c+" Iterator",P=s==n,R=!1,x=r.prototype,S=x[e]||x[a]||s&&x[s],v=S||E(s),T=s?P?E("entries"):v:void 0,U=c=="Array"&&x.entries||S,I,N,V;if(U&&(V=g(U.call(new r)),V!==Object.prototype&&V.next&&(A(V,_,!0),!M&&typeof V[e]!="function"&&b(V,e,i))),P&&S&&S.name!==n&&(R=!0,v=function(){return S.call(this)}),(!M||w)&&(f||R||!x[e])&&b(x,e,v),y[c]=v,y[_]=i,s)if(I={values:P?v:E(n),keys:u?v:E(l),entries:T},w)for(N in I)N in x||O(x,N,I[N]);else m(m.P+m.F*(f||R),c,I);return I}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(k,z,o){var M=k("./_wks")("iterator"),m=!1;try{var O=[7][M]();O.return=function(){m=!0},Array.from(O,function(){throw 2})}catch(b){}z.exports=function(b,y){if(!y&&!m)return!1;var C=!1;try{var A=[7],g=A[M]();g.next=function(){return{done:C=!0}},A[M]=function(){return g},b(A)}catch(e){}return C}},{"./_wks":166}],124:[function(k,z,o){z.exports=function(M,m){return{value:m,done:!!M}}},{}],125:[function(k,z,o){z.exports={}},{}],126:[function(k,z,o){z.exports=!0},{}],127:[function(k,z,o){var M=k("./_uid")("meta"),m=k("./_is-object"),O=k("./_has"),b=k("./_object-dp").f,y=0,C=Object.isExtensible||function(){return!0},A=!k("./_fails")(function(){return C(Object.preventExtensions({}))}),g=function(n){b(n,M,{value:{i:"O"+ ++y,w:{}}})},e=function(n,i){if(!m(n))return typeof n=="symbol"?n:(typeof n=="string"?"S":"P")+n;if(!O(n,M)){if(!C(n))return"F";if(!i)return"E";g(n)}return n[M].i},f=function(n,i){if(!O(n,M)){if(!C(n))return!0;if(!i)return!1;g(n)}return n[M].w},a=function(n){return A&&l.NEED&&C(n)&&!O(n,M)&&g(n),n},l=z.exports={KEY:M,NEED:!1,fastKey:e,getWeak:f,onFreeze:a}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,z,o){var M=k("./_global"),m=k("./_task").set,O=M.MutationObserver||M.WebKitMutationObserver,b=M.process,y=M.Promise,C=k("./_cof")(b)=="process";z.exports=function(){var A,g,e,f=function(){var i,r;for(C&&(i=b.domain)&&i.exit();A;){r=A.fn,A=A.next;try{r()}catch(c){throw A?e():g=void 0,c}}g=void 0,i&&i.enter()};if(C)e=function(){b.nextTick(f)};else if(O&&!(M.navigator&&M.navigator.standalone)){var a=!0,l=document.createTextNode("");new O(f).observe(l,{characterData:!0}),e=function(){l.data=a=!a}}else if(y&&y.resolve){var n=y.resolve(void 0);e=function(){n.then(f)}}else e=function(){m.call(M,f)};return function(i){var r={fn:i,next:void 0};g&&(g.next=r),A||(A=r,e()),g=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,z,o){"use strict";var M=k("./_a-function");function m(O){var b,y;this.promise=new O(function(C,A){if(b!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");b=C,y=A}),this.resolve=M(b),this.reject=M(y)}z.exports.f=function(O){return new m(O)}},{"./_a-function":92}],130:[function(k,z,o){"use strict";var M=k("./_descriptors"),m=k("./_object-keys"),O=k("./_object-gops"),b=k("./_object-pie"),y=k("./_to-object"),C=k("./_iobject"),A=Object.assign;z.exports=!A||k("./_fails")(function(){var g={},e={},f=Symbol(),a="abcdefghijklmnopqrst";return g[f]=7,a.split("").forEach(function(l){e[l]=l}),A({},g)[f]!=7||Object.keys(A({},e)).join("")!=a})?function(e,f){for(var a=y(e),l=arguments.length,n=1,i=O.f,r=b.f;l>n;)for(var c=C(arguments[n++]),h=i?m(c).concat(i(c)):m(c),d=h.length,s=0,u;d>s;)u=h[s++],(!M||r.call(c,u))&&(a[u]=c[u]);return a}:A},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,z,o){var M=k("./_an-object"),m=k("./_object-dps"),O=k("./_enum-bug-keys"),b=k("./_shared-key")("IE_PROTO"),y=function(){},C="prototype",A=function(){var g=k("./_dom-create")("iframe"),e=O.length,f="<",a=">",l;for(g.style.display="none",k("./_html").appendChild(g),g.src="javascript:",l=g.contentWindow.document,l.open(),l.write(f+"script"+a+"document.F=Object"+f+"/script"+a),l.close(),A=l.F;e--;)delete A[C][O[e]];return A()};z.exports=Object.create||function(e,f){var a;return e!==null?(y[C]=M(e),a=new y,y[C]=null,a[b]=e):a=A(),f===void 0?a:m(a,f)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,z,o){var M=k("./_an-object"),m=k("./_ie8-dom-define"),O=k("./_to-primitive"),b=Object.defineProperty;o.f=k("./_descriptors")?Object.defineProperty:function(C,A,g){if(M(C),A=O(A,!0),M(g),m)try{return b(C,A,g)}catch(e){}if("get"in g||"set"in g)throw TypeError("Accessors not supported!");return"value"in g&&(C[A]=g.value),C}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,z,o){var M=k("./_object-dp"),m=k("./_an-object"),O=k("./_object-keys");z.exports=k("./_descriptors")?Object.defineProperties:function(y,C){m(y);for(var A=O(C),g=A.length,e=0,f;g>e;)M.f(y,f=A[e++],C[f]);return y}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,z,o){var M=k("./_object-pie"),m=k("./_property-desc"),O=k("./_to-iobject"),b=k("./_to-primitive"),y=k("./_has"),C=k("./_ie8-dom-define"),A=Object.getOwnPropertyDescriptor;o.f=k("./_descriptors")?A:function(e,f){if(e=O(e),f=b(f,!0),C)try{return A(e,f)}catch(a){}if(y(e,f))return m(!M.f.call(e,f),e[f])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,z,o){var M=k("./_to-iobject"),m=k("./_object-gopn").f,O={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(C){try{return m(C)}catch(A){return b.slice()}};z.exports.f=function(A){return b&&O.call(A)=="[object Window]"?y(A):m(M(A))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,z,o){var M=k("./_object-keys-internal"),m=k("./_enum-bug-keys").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(b){return M(b,m)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,z,o){o.f=Object.getOwnPropertySymbols},{}],138:[function(k,z,o){var M=k("./_has"),m=k("./_to-object"),O=k("./_shared-key")("IE_PROTO"),b=Object.prototype;z.exports=Object.getPrototypeOf||function(y){return y=m(y),M(y,O)?y[O]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?b:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(k,z,o){var M=k("./_has"),m=k("./_to-iobject"),O=k("./_array-includes")(!1),b=k("./_shared-key")("IE_PROTO");z.exports=function(y,C){var A=m(y),g=0,e=[],f;for(f in A)f!=b&&(M(A,f)&&e.push(f));for(;C.length>g;)M(A,f=C[g++])&&(~O(e,f)||e.push(f));return e}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,z,o){var M=k("./_object-keys-internal"),m=k("./_enum-bug-keys");z.exports=Object.keys||function(b){return M(b,m)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,z,o){o.f={}.propertyIsEnumerable},{}],142:[function(k,z,o){var M=k("./_export"),m=k("./_core"),O=k("./_fails");z.exports=function(b,y){var C=(m.Object||{})[b]||Object[b],A={};A[b]=y(C),M(M.S+M.F*O(function(){C(1)}),"Object",A)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,z,o){var M=k("./_descriptors"),m=k("./_object-keys"),O=k("./_to-iobject"),b=k("./_object-pie").f;z.exports=function(y){return function(C){for(var A=O(C),g=m(A),e=g.length,f=0,a=[],l;e>f;)l=g[f++],(!M||b.call(A,l))&&a.push(y?[l,A[l]]:A[l]);return a}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,z,o){z.exports=function(M){try{return{e:!1,v:M()}}catch(m){return{e:!0,v:m}}}},{}],145:[function(k,z,o){var M=k("./_an-object"),m=k("./_is-object"),O=k("./_new-promise-capability");z.exports=function(b,y){if(M(b),m(y)&&y.constructor===b)return y;var C=O.f(b),A=C.resolve;return A(y),C.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,z,o){z.exports=function(M,m){return{enumerable:!(M&1),configurable:!(M&2),writable:!(M&4),value:m}}},{}],147:[function(k,z,o){var M=k("./_hide");z.exports=function(m,O,b){for(var y in O)b&&m[y]?m[y]=O[y]:M(m,y,O[y]);return m}},{"./_hide":112}],148:[function(k,z,o){z.exports=k("./_hide")},{"./_hide":112}],149:[function(k,z,o){"use strict";var M=k("./_global"),m=k("./_core"),O=k("./_object-dp"),b=k("./_descriptors"),y=k("./_wks")("species");z.exports=function(C){var A=typeof m[C]=="function"?m[C]:M[C];b&&A&&!A[y]&&O.f(A,y,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(k,z,o){var M=k("./_object-dp").f,m=k("./_has"),O=k("./_wks")("toStringTag");z.exports=function(b,y,C){b&&!m(b=C?b:b.prototype,O)&&M(b,O,{configurable:!0,value:y})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,z,o){var M=k("./_shared")("keys"),m=k("./_uid");z.exports=function(O){return M[O]||(M[O]=m(O))}},{"./_shared":152,"./_uid":162}],152:[function(k,z,o){var M=k("./_core"),m=k("./_global"),O="__core-js_shared__",b=m[O]||(m[O]={});(z.exports=function(y,C){return b[y]||(b[y]=C!==void 0?C:{})})("versions",[]).push({version:M.version,mode:k("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(k,z,o){var M=k("./_an-object"),m=k("./_a-function"),O=k("./_wks")("species");z.exports=function(b,y){var C=M(b).constructor,A;return C===void 0||(A=M(C)[O])==null?y:m(A)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,z,o){var M=k("./_to-integer"),m=k("./_defined");z.exports=function(O){return function(b,y){var C=String(m(b)),A=M(y),g=C.length,e,f;return A<0||A>=g?O?"":void 0:(e=C.charCodeAt(A),e<55296||e>56319||A+1===g||(f=C.charCodeAt(A+1))<56320||f>57343?O?C.charAt(A):e:O?C.slice(A,A+2):(e-55296<<10)+(f-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,z,o){var M=k("./_ctx"),m=k("./_invoke"),O=k("./_html"),b=k("./_dom-create"),y=k("./_global"),C=y.process,A=y.setImmediate,g=y.clearImmediate,e=y.MessageChannel,f=y.Dispatch,a=0,l={},n="onreadystatechange",i,r,c,h=function(){var s=+this;if(l.hasOwnProperty(s)){var u=l[s];delete l[s],u()}},d=function(s){h.call(s.data)};(!A||!g)&&(A=function(u){for(var w=[],E=1;arguments.length>E;)w.push(arguments[E++]);return l[++a]=function(){m(typeof u=="function"?u:Function(u),w)},i(a),a},g=function(u){delete l[u]},k("./_cof")(C)=="process"?i=function(s){C.nextTick(M(h,s,1))}:f&&f.now?i=function(s){f.now(M(h,s,1))}:e?(r=new e,c=r.port2,r.port1.onmessage=d,i=M(c.postMessage,c,1)):y.addEventListener&&typeof postMessage=="function"&&!y.importScripts?(i=function(s){y.postMessage(s+"","*")},y.addEventListener("message",d,!1)):n in b("script")?i=function(s){O.appendChild(b("script"))[n]=function(){O.removeChild(this),h.call(s)}}:i=function(s){setTimeout(M(h,s,1),0)}),z.exports={set:A,clear:g}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,z,o){var M=k("./_to-integer"),m=Math.max,O=Math.min;z.exports=function(b,y){return b=M(b),b<0?m(b+y,0):O(b,y)}},{"./_to-integer":157}],157:[function(k,z,o){var M=Math.ceil,m=Math.floor;z.exports=function(O){return isNaN(O=+O)?0:(O>0?m:M)(O)}},{}],158:[function(k,z,o){var M=k("./_iobject"),m=k("./_defined");z.exports=function(O){return M(m(O))}},{"./_defined":102,"./_iobject":116}],159:[function(k,z,o){var M=k("./_to-integer"),m=Math.min;z.exports=function(O){return O>0?m(M(O),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,z,o){var M=k("./_defined");z.exports=function(m){return Object(M(m))}},{"./_defined":102}],161:[function(k,z,o){var M=k("./_is-object");z.exports=function(m,O){if(!M(m))return m;var b,y;if(O&&typeof(b=m.toString)=="function"&&!M(y=b.call(m)))return y;if(typeof(b=m.valueOf)=="function"&&!M(y=b.call(m)))return y;if(!O&&typeof(b=m.toString)=="function"&&!M(y=b.call(m)))return y;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,z,o){var M=0,m=Math.random();z.exports=function(O){return"Symbol(".concat(O===void 0?"":O,")_",(++M+m).toString(36))}},{}],163:[function(k,z,o){var M=k("./_global"),m=M.navigator;z.exports=m&&m.userAgent||""},{"./_global":110}],164:[function(k,z,o){var M=k("./_global"),m=k("./_core"),O=k("./_library"),b=k("./_wks-ext"),y=k("./_object-dp").f;z.exports=function(C){var A=m.Symbol||(m.Symbol=O?{}:M.Symbol||{});C.charAt(0)!="_"&&!(C in A)&&y(A,C,{value:b.f(C)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(k,z,o){o.f=k("./_wks")},{"./_wks":166}],166:[function(k,z,o){var M=k("./_shared")("wks"),m=k("./_uid"),O=k("./_global").Symbol,b=typeof O=="function",y=z.exports=function(C){return M[C]||(M[C]=b&&O[C]||(b?O:m)("Symbol."+C))};y.store=M},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,z,o){var M=k("./_classof"),m=k("./_wks")("iterator"),O=k("./_iterators");z.exports=k("./_core").getIteratorMethod=function(b){if(b!=null)return b[m]||b["@@iterator"]||O[M(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,z,o){"use strict";var M=k("./_ctx"),m=k("./_export"),O=k("./_to-object"),b=k("./_iter-call"),y=k("./_is-array-iter"),C=k("./_to-length"),A=k("./_create-property"),g=k("./core.get-iterator-method");m(m.S+m.F*!k("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(f){var a=O(f),l=typeof this=="function"?this:Array,n=arguments.length,i=n>1?arguments[1]:void 0,r=i!==void 0,c=0,h=g(a),d,s,u,w;if(r&&(i=M(i,n>2?arguments[2]:void 0,2)),h!=null&&!(l==Array&&y(h)))for(w=h.call(a),s=new l;!(u=w.next()).done;c++)A(s,c,r?b(w,i,[u.value,c],!0):u.value);else for(d=C(a.length),s=new l(d);d>c;c++)A(s,c,r?i(a[c],c):a[c]);return s.length=c,s}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(k,z,o){"use strict";var M=k("./_add-to-unscopables"),m=k("./_iter-step"),O=k("./_iterators"),b=k("./_to-iobject");z.exports=k("./_iter-define")(Array,"Array",function(y,C){this._t=b(y),this._i=0,this._k=C},function(){var y=this._t,C=this._k,A=this._i++;return!y||A>=y.length?(this._t=void 0,m(1)):C=="keys"?m(0,A):C=="values"?m(0,y[A]):m(0,[A,y[A]])},"values"),O.Arguments=O.Array,M("keys"),M("values"),M("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(k,z,o){"use strict";var M=k("./_is-object"),m=k("./_object-gpo"),O=k("./_wks")("hasInstance"),b=Function.prototype;O in b||k("./_object-dp").f(b,O,{value:function(y){if(typeof this!="function"||!M(y))return!1;if(!M(this.prototype))return y instanceof this;for(;y=m(y);)if(this.prototype===y)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(k,z,o){var M=k("./_export");M(M.S+M.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,z,o){var M=k("./_export");M(M.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,z,o){var M=k("./_export");M(M.S+M.F*!k("./_descriptors"),"Object",{defineProperty:k("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(k,z,o){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,z,o){var M=k("./_to-object"),m=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(b){return m(M(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,z,o){var M=k("./_to-object"),m=k("./_object-keys");k("./_object-sap")("keys",function(){return function(b){return m(M(b))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,z,o){arguments[4][71][0].apply(o,arguments)},{dup:71}],178:[function(k,z,o){"use strict";var M=k("./_library"),m=k("./_global"),O=k("./_ctx"),b=k("./_classof"),y=k("./_export"),C=k("./_is-object"),A=k("./_a-function"),g=k("./_an-instance"),e=k("./_for-of"),f=k("./_species-constructor"),a=k("./_task").set,l=k("./_microtask")(),n=k("./_new-promise-capability"),i=k("./_perform"),r=k("./_user-agent"),c=k("./_promise-resolve"),h="Promise",d=m.TypeError,s=m.process,u=s&&s.versions,w=u&&u.v8||"",E=m[h],_=b(s)=="process",P=function(){},R,x,S,v,T=x=n.f,U=!!function(){try{var L=E.resolve(1),K=(L.constructor={})[k("./_wks")("species")]=function(ee){ee(P,P)};return(_||typeof PromiseRejectionEvent=="function")&&L.then(P)instanceof K&&w.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(ee){}}(),I=function(L){var K;return C(L)&&typeof(K=L.then)=="function"?K:!1},N=function(L,K){if(L._n)return;L._n=!0;var ee=L._c;l(function(){for(var he=L._v,fe=L._s==1,Ce=0,Te=function(ce){var ye=fe?ce.ok:ce.fail,Ee=ce.resolve,ue=ce.reject,se=ce.domain,$,me,re;try{ye?(fe||(L._h==2&&D(L),L._h=1),ye===!0?$=he:(se&&se.enter(),$=ye(he),se&&(se.exit(),re=!0)),$===ce.promise?ue(d("Promise-chain cycle")):(me=I($))?me.call($,Ee,ue):Ee($)):ue(he)}catch(ae){se&&!re&&se.exit(),ue(ae)}};ee.length>Ce;)Te(ee[Ce++]);L._c=[],L._n=!1,K&&!L._h&&V(L)})},V=function(L){a.call(m,function(){var K=L._v,ee=H(L),he,fe,Ce;if(ee&&(he=i(function(){_?s.emit("unhandledRejection",K,L):(fe=m.onunhandledrejection)?fe({promise:L,reason:K}):(Ce=m.console)&&Ce.error&&Ce.error("Unhandled promise rejection",K)}),L._h=_||H(L)?2:1),L._a=void 0,ee&&he.e)throw he.v})},H=function(L){return L._h!==1&&(L._a||L._c).length===0},D=function(L){a.call(m,function(){var K;_?s.emit("rejectionHandled",L):(K=m.onrejectionhandled)&&K({promise:L,reason:L._v})})},W=function(L){var K=this;if(K._d)return;K._d=!0,K=K._w||K,K._v=L,K._s=2,K._a||(K._a=K._c.slice()),N(K,!0)},F=function(L){var K=this,ee;if(K._d)return;K._d=!0,K=K._w||K;try{if(K===L)throw d("Promise can't be resolved itself");(ee=I(L))?l(function(){var he={_w:K,_d:!1};try{ee.call(L,O(F,he,1),O(W,he,1))}catch(fe){W.call(he,fe)}}):(K._v=L,K._s=1,N(K,!1))}catch(he){W.call({_w:K,_d:!1},he)}};U||(E=function(K){g(this,E,h,"_h"),A(K),R.call(this);try{K(O(F,this,1),O(W,this,1))}catch(ee){W.call(this,ee)}},R=function(K){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},R.prototype=k("./_redefine-all")(E.prototype,{then:function(K,ee){var he=T(f(this,E));return he.ok=typeof K=="function"?K:!0,he.fail=typeof ee=="function"&&ee,he.domain=_?s.domain:void 0,this._c.push(he),this._a&&this._a.push(he),this._s&&N(this,!1),he.promise},catch:function(L){return this.then(void 0,L)}}),S=function(){var L=new R;this.promise=L,this.resolve=O(F,L,1),this.reject=O(W,L,1)},n.f=T=function(L){return L===E||L===v?new S(L):x(L)}),y(y.G+y.W+y.F*!U,{Promise:E}),k("./_set-to-string-tag")(E,h),k("./_set-species")(h),v=k("./_core")[h],y(y.S+y.F*!U,h,{reject:function(K){var ee=T(this),he=ee.reject;return he(K),ee.promise}}),y(y.S+y.F*(M||!U),h,{resolve:function(K){return c(M&&this===v?E:this,K)}}),y(y.S+y.F*!(U&&k("./_iter-detect")(function(L){E.all(L).catch(P)})),h,{all:function(K){var ee=this,he=T(ee),fe=he.resolve,Ce=he.reject,Te=i(function(){var ce=[],ye=0,Ee=1;e(K,!1,function(ue){var se=ye++,$=!1;ce.push(void 0),Ee++,ee.resolve(ue).then(function(me){if($)return;$=!0,ce[se]=me,--Ee||fe(ce)},Ce)}),--Ee||fe(ce)});return Te.e&&Ce(Te.v),he.promise},race:function(K){var ee=this,he=T(ee),fe=he.reject,Ce=i(function(){e(K,!1,function(Te){ee.resolve(Te).then(he.resolve,fe)})});return Ce.e&&fe(Ce.v),he.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(k,z,o){var M=k("./_export"),m=k("./_to-absolute-index"),O=String.fromCharCode,b=String.fromCodePoint;M(M.S+M.F*(!!b&&b.length!=1),"String",{fromCodePoint:function(C){for(var A=[],g=arguments.length,e=0,f;g>e;){if(f=+arguments[e++],m(f,1114111)!==f)throw RangeError(f+" is not a valid code point");A.push(f<65536?O(f):O(((f-=65536)>>10)+55296,f%1024+56320))}return A.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,z,o){"use strict";var M=k("./_string-at")(!0);k("./_iter-define")(String,"String",function(m){this._t=String(m),this._i=0},function(){var m=this._t,O=this._i,b;return O>=m.length?{value:void 0,done:!0}:(b=M(m,O),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(k,z,o){"use strict";var M=k("./_global"),m=k("./_has"),O=k("./_descriptors"),b=k("./_export"),y=k("./_redefine"),C=k("./_meta").KEY,A=k("./_fails"),g=k("./_shared"),e=k("./_set-to-string-tag"),f=k("./_uid"),a=k("./_wks"),l=k("./_wks-ext"),n=k("./_wks-define"),i=k("./_enum-keys"),r=k("./_is-array"),c=k("./_an-object"),h=k("./_is-object"),d=k("./_to-object"),s=k("./_to-iobject"),u=k("./_to-primitive"),w=k("./_property-desc"),E=k("./_object-create"),_=k("./_object-gopn-ext"),P=k("./_object-gopd"),R=k("./_object-gops"),x=k("./_object-dp"),S=k("./_object-keys"),v=P.f,T=x.f,U=_.f,I=M.Symbol,N=M.JSON,V=N&&N.stringify,H="prototype",D=a("_hidden"),W=a("toPrimitive"),F={}.propertyIsEnumerable,L=g("symbol-registry"),K=g("symbols"),ee=g("op-symbols"),he=Object[H],fe=typeof I=="function"&&!!R.f,Ce=M.QObject,Te=!Ce||!Ce[H]||!Ce[H].findChild,ce=O&&A(function(){return E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a!=7})?function(_e,Oe,Xe){var tt=v(he,Oe);tt&&delete he[Oe],T(_e,Oe,Xe),tt&&_e!==he&&T(he,Oe,tt)}:T,ye=function(_e){var Oe=K[_e]=E(I[H]);return Oe._k=_e,Oe},Ee=fe&&typeof I.iterator=="symbol"?function(_e){return typeof _e=="symbol"}:function(_e){return _e instanceof I},ue=function(Oe,Xe,tt){return Oe===he&&ue(ee,Xe,tt),c(Oe),Xe=u(Xe,!0),c(tt),m(K,Xe)?(tt.enumerable?(m(Oe,D)&&Oe[D][Xe]&&(Oe[D][Xe]=!1),tt=E(tt,{enumerable:w(0,!1)})):(m(Oe,D)||T(Oe,D,w(1,{})),Oe[D][Xe]=!0),ce(Oe,Xe,tt)):T(Oe,Xe,tt)},se=function(Oe,Xe){c(Oe);for(var tt=i(Xe=s(Xe)),lt=0,dt=tt.length,vt;dt>lt;)ue(Oe,vt=tt[lt++],Xe[vt]);return Oe},$=function(Oe,Xe){return Xe===void 0?E(Oe):se(E(Oe),Xe)},me=function(Oe){var Xe=F.call(this,Oe=u(Oe,!0));return this===he&&m(K,Oe)&&!m(ee,Oe)?!1:Xe||!m(this,Oe)||!m(K,Oe)||m(this,D)&&this[D][Oe]?Xe:!0},re=function(Oe,Xe){if(Oe=s(Oe),Xe=u(Xe,!0),Oe===he&&m(K,Xe)&&!m(ee,Xe))return;var tt=v(Oe,Xe);return tt&&m(K,Xe)&&!(m(Oe,D)&&Oe[D][Xe])&&(tt.enumerable=!0),tt},ae=function(Oe){for(var Xe=U(s(Oe)),tt=[],lt=0,dt;Xe.length>lt;)!m(K,dt=Xe[lt++])&&dt!=D&&dt!=C&&tt.push(dt);return tt},we=function(Oe){for(var Xe=Oe===he,tt=U(Xe?ee:s(Oe)),lt=[],dt=0,vt;tt.length>dt;)m(K,vt=tt[dt++])&&(Xe?m(he,vt):!0)&&lt.push(K[vt]);return lt};fe||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var Oe=f(arguments.length>0?arguments[0]:void 0),Xe=function(tt){this===he&&Xe.call(ee,tt),m(this,D)&&m(this[D],Oe)&&(this[D][Oe]=!1),ce(this,Oe,w(1,tt))};return O&&Te&&ce(he,Oe,{configurable:!0,set:Xe}),ye(Oe)},y(I[H],"toString",function(){return this._k}),P.f=re,x.f=ue,k("./_object-gopn").f=_.f=ae,k("./_object-pie").f=me,R.f=we,O&&!k("./_library")&&y(he,"propertyIsEnumerable",me,!0),l.f=function(_e){return ye(a(_e))}),b(b.G+b.W+b.F*!fe,{Symbol:I});for(var le="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;le.length>te;)a(le[te++]);for(var Q=S(a.store),J=0;Q.length>J;)n(Q[J++]);b(b.S+b.F*!fe,"Symbol",{for:function(_e){return m(L,_e+="")?L[_e]:L[_e]=I(_e)},keyFor:function(Oe){if(!Ee(Oe))throw TypeError(Oe+" is not a symbol!");for(var Xe in L)if(L[Xe]===Oe)return Xe},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),b(b.S+b.F*!fe,"Object",{create:$,defineProperty:ue,defineProperties:se,getOwnPropertyDescriptor:re,getOwnPropertyNames:ae,getOwnPropertySymbols:we});var ve=A(function(){R.f(1)});b(b.S+b.F*ve,"Object",{getOwnPropertySymbols:function(Oe){return R.f(d(Oe))}}),N&&b(b.S+b.F*(!fe||A(function(){var _e=I();return V([_e])!="[null]"||V({a:_e})!="{}"||V(Object(_e))!="{}"})),"JSON",{stringify:function(Oe){for(var Xe=[Oe],tt=1,lt,dt;arguments.length>tt;)Xe.push(arguments[tt++]);return dt=lt=Xe[1],!h(lt)&&Oe===void 0||Ee(Oe)?void 0:(r(lt)||(lt=function(vt,_t){if(typeof dt=="function"&&(_t=dt.call(this,vt,_t)),!Ee(_t))return _t}),Xe[1]=lt,V.apply(N,Xe))}}),I[H][W]||k("./_hide")(I[H],W,I[H].valueOf),e(I,"Symbol"),e(Math,"Math",!0),e(M.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(k,z,o){var M=k("./_export"),m=k("./_object-to-array")(!0);M(M.S,"Object",{entries:function(b){return m(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,z,o){"use strict";var M=k("./_export"),m=k("./_core"),O=k("./_global"),b=k("./_species-constructor"),y=k("./_promise-resolve");M(M.P+M.R,"Promise",{finally:function(C){var A=b(this,m.Promise||O.Promise),g=typeof C=="function";return this.then(g?function(e){return y(A,C()).then(function(){return e})}:C,g?function(e){return y(A,C()).then(function(){throw e})}:C)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,z,o){"use strict";var M=k("./_export"),m=k("./_new-promise-capability"),O=k("./_perform");M(M.S,"Promise",{try:function(b){var y=m.f(this),C=O(b);return(C.e?y.reject:y.resolve)(C.v),y.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(k,z,o){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,z,o){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,z,o){k("./es6.array.iterator");for(var M=k("./_global"),m=k("./_hide"),O=k("./_iterators"),b=k("./_wks")("toStringTag"),y="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),C=0;C<y.length;C++){var A=y[C],g=M[A],e=g&&g.prototype;e&&!e[b]&&m(e,b,A),O[A]=O.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(k,z,o){var M=k("./_export"),m=k("./_task");M(M.G+M.B,{setImmediate:m.set,clearImmediate:m.clear})},{"./_export":107,"./_task":155}],189:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/helpers/typeof"),O=b(m);function b(u){return u&&u.__esModule?u:{default:u}}function y(u){return Array.isArray?Array.isArray(u):s(u)==="[object Array]"}o.isArray=y;function C(u){return typeof u=="boolean"}o.isBoolean=C;function A(u){return u===null}o.isNull=A;function g(u){return u==null}o.isNullOrUndefined=g;function e(u){return typeof u=="number"}o.isNumber=e;function f(u){return typeof u=="string"}o.isString=f;function a(u){return(typeof u=="undefined"?"undefined":(0,O.default)(u))==="symbol"}o.isSymbol=a;function l(u){return u===void 0}o.isUndefined=l;function n(u){return s(u)==="[object RegExp]"}o.isRegExp=n;function i(u){return(typeof u=="undefined"?"undefined":(0,O.default)(u))==="object"&&u!==null}o.isObject=i;function r(u){return s(u)==="[object Date]"}o.isDate=r;function c(u){return s(u)==="[object Error]"||u instanceof Error}o.isError=c;function h(u){return typeof u=="function"}o.isFunction=h;function d(u){return u===null||typeof u=="boolean"||typeof u=="number"||typeof u=="string"||(typeof u=="undefined"?"undefined":(0,O.default)(u))==="symbol"||typeof u=="undefined"}o.isPrimitive=d,o.isBuffer=M.isBuffer;function s(u){return Object.prototype.toString.call(u)}}).call(this,{isBuffer:k("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(k,z,o){"use strict";var M=k("babel-runtime/helpers/typeof"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(b){"use strict";var y=function(){var f=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,a=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g;return function(n,i,r,c){if(arguments.length===1&&e(n)==="string"&&!/\d/.test(n)&&(i=n,n=void 0),n=n||new Date,n instanceof Date||(n=new Date(n)),isNaN(n))throw TypeError("Invalid date");i=String(y.masks[i]||i||y.masks.default);var h=i.slice(0,4);(h==="UTC:"||h==="GMT:")&&(i=i.slice(4),r=!0,h==="GMT:"&&(c=!0));var d=r?"getUTC":"get",s=n[d+"Date"](),u=n[d+"Day"](),w=n[d+"Month"](),E=n[d+"FullYear"](),_=n[d+"Hours"](),P=n[d+"Minutes"](),R=n[d+"Seconds"](),x=n[d+"Milliseconds"](),S=r?0:n.getTimezoneOffset(),v=A(n),T=g(n),U={d:s,dd:C(s),ddd:y.i18n.dayNames[u],dddd:y.i18n.dayNames[u+7],m:w+1,mm:C(w+1),mmm:y.i18n.monthNames[w],mmmm:y.i18n.monthNames[w+12],yy:String(E).slice(2),yyyy:E,h:_%12||12,hh:C(_%12||12),H:_,HH:C(_),M:P,MM:C(P),s:R,ss:C(R),l:C(x,3),L:C(Math.round(x/10)),t:_<12?"a":"p",tt:_<12?"am":"pm",T:_<12?"A":"P",TT:_<12?"AM":"PM",Z:c?"GMT":r?"UTC":(String(n).match(a)||[""]).pop().replace(l,""),o:(S>0?"-":"+")+C(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][s%10>3?0:(s%100-s%10!=10)*s%10],W:v,N:T};return i.replace(f,function(I){return I in U?U[I]:I.slice(1,I.length-1)})}}();y.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},y.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function C(f,a){for(f=String(f),a=a||2;f.length<a;)f="0"+f;return f}function A(f){var a=new Date(f.getFullYear(),f.getMonth(),f.getDate());a.setDate(a.getDate()-(a.getDay()+6)%7+3);var l=new Date(a.getFullYear(),0,4);l.setDate(l.getDate()-(l.getDay()+6)%7+3);var n=a.getTimezoneOffset()-l.getTimezoneOffset();a.setHours(a.getHours()-n);var i=(a-l)/(864e5*7);return 1+Math.floor(i)}function g(f){var a=f.getDay();return a===0&&(a=7),a}function e(f){return f===null?"null":f===void 0?"undefined":(typeof f=="undefined"?"undefined":(0,m.default)(f))!=="object"?typeof f=="undefined"?"undefined":(0,m.default)(f):Array.isArray(f)?"array":{}.toString.call(f).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return y}):(typeof o=="undefined"?"undefined":(0,m.default)(o))==="object"?z.exports=y:b.dateFormat=y})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(k,z,o){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var M=/["'&<>]/;z.exports=m;function m(O){var b=""+O,y=M.exec(b);if(!y)return b;var C,A="",g=0,e=0;for(g=y.index;g<b.length;g++){switch(b.charCodeAt(g)){case 34:C="&quot;";break;case 38:C="&amp;";break;case 39:C="&#39;";break;case 60:C="&lt;";break;case 62:C="&gt;";break;default:continue}e!==g&&(A+=b.substring(e,g)),e=g+1,A+=C}return e!==g?A+b.substring(e,g):A}},{}],192:[function(k,z,o){function M(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}z.exports=M,M.EventEmitter=M,M.prototype._events=void 0,M.prototype._maxListeners=void 0,M.defaultMaxListeners=10,M.prototype.setMaxListeners=function(C){if(!O(C)||C<0||isNaN(C))throw TypeError("n must be a positive number");return this._maxListeners=C,this},M.prototype.emit=function(C){var A,g,e,f,a,l;if(this._events||(this._events={}),C==="error"&&(!this._events.error||b(this._events.error)&&!this._events.error.length)){if(A=arguments[1],A instanceof Error)throw A;var n=new Error('Uncaught, unspecified "error" event. ('+A+")");throw n.context=A,n}if(g=this._events[C],y(g))return!1;if(m(g))switch(arguments.length){case 1:g.call(this);break;case 2:g.call(this,arguments[1]);break;case 3:g.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),g.apply(this,f)}else if(b(g))for(f=Array.prototype.slice.call(arguments,1),l=g.slice(),e=l.length,a=0;a<e;a++)l[a].apply(this,f);return!0},M.prototype.addListener=function(C,A){var g;if(!m(A))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",C,m(A.listener)?A.listener:A),this._events[C]?b(this._events[C])?this._events[C].push(A):this._events[C]=[this._events[C],A]:this._events[C]=A,b(this._events[C])&&!this._events[C].warned&&(y(this._maxListeners)?g=M.defaultMaxListeners:g=this._maxListeners,g&&g>0&&this._events[C].length>g&&(this._events[C].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[C].length),typeof console.trace=="function"&&console.trace())),this},M.prototype.on=M.prototype.addListener,M.prototype.once=function(C,A){if(!m(A))throw TypeError("listener must be a function");var g=!1;function e(){this.removeListener(C,e),g||(g=!0,A.apply(this,arguments))}return e.listener=A,this.on(C,e),this},M.prototype.removeListener=function(C,A){var g,e,f,a;if(!m(A))throw TypeError("listener must be a function");if(!this._events||!this._events[C])return this;if(g=this._events[C],f=g.length,e=-1,g===A||m(g.listener)&&g.listener===A)delete this._events[C],this._events.removeListener&&this.emit("removeListener",C,A);else if(b(g)){for(a=f;a-- >0;)if(g[a]===A||g[a].listener&&g[a].listener===A){e=a;break}if(e<0)return this;g.length===1?(g.length=0,delete this._events[C]):g.splice(e,1),this._events.removeListener&&this.emit("removeListener",C,A)}return this},M.prototype.removeAllListeners=function(C){var A,g;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[C]&&delete this._events[C],this;if(arguments.length===0){for(A in this._events){if(A==="removeListener")continue;this.removeAllListeners(A)}return this.removeAllListeners("removeListener"),this._events={},this}if(g=this._events[C],m(g))this.removeListener(C,g);else if(g)for(;g.length;)this.removeListener(C,g[g.length-1]);return delete this._events[C],this},M.prototype.listeners=function(C){var A;return!this._events||!this._events[C]?A=[]:m(this._events[C])?A=[this._events[C]]:A=this._events[C].slice(),A},M.prototype.listenerCount=function(C){if(this._events){var A=this._events[C];if(m(A))return 1;if(A)return A.length}return 0},M.listenerCount=function(C,A){return C.listenerCount(A)};function m(C){return typeof C=="function"}function O(C){return typeof C=="number"}function b(C){return typeof C=="object"&&C!==null}function y(C){return C===void 0}},{}],193:[function(k,z,o){var M=k("http"),m=z.exports;for(var O in M)M.hasOwnProperty(O)&&(m[O]=M[O]);m.request=function(b,y){return b||(b={}),b.scheme="https",b.protocol="https:",M.request.call(this,b,y)}},{http:231}],194:[function(k,z,o){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var M=k("util"),m=k("ms");z.exports=function(O){if(typeof O=="number")return O;var b=m(O);if(b===void 0){var y=new Error(M.format("humanize-ms(%j) result undefined",O));console.warn(y.stack)}return b}},{ms:204,util:243}],195:[function(k,z,o){o.read=function(M,m,O,b,y){var C,A,g=y*8-b-1,e=(1<<g)-1,f=e>>1,a=-7,l=O?y-1:0,n=O?-1:1,i=M[m+l];for(l+=n,C=i&(1<<-a)-1,i>>=-a,a+=g;a>0;C=C*256+M[m+l],l+=n,a-=8);for(A=C&(1<<-a)-1,C>>=-a,a+=b;a>0;A=A*256+M[m+l],l+=n,a-=8);if(C===0)C=1-f;else{if(C===e)return A?NaN:(i?-1:1)*Infinity;A=A+Math.pow(2,b),C=C-f}return(i?-1:1)*A*Math.pow(2,C-b)},o.write=function(M,m,O,b,y,C){var A,g,e,f=C*8-y-1,a=(1<<f)-1,l=a>>1,n=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=b?0:C-1,r=b?1:-1,c=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===Infinity?(g=isNaN(m)?1:0,A=a):(A=Math.floor(Math.log(m)/Math.LN2),m*(e=Math.pow(2,-A))<1&&(A--,e*=2),A+l>=1?m+=n/e:m+=n*Math.pow(2,1-l),m*e>=2&&(A++,e/=2),A+l>=a?(g=0,A=a):A+l>=1?(g=(m*e-1)*Math.pow(2,y),A=A+l):(g=m*Math.pow(2,l-1)*Math.pow(2,y),A=0));y>=8;M[O+i]=g&255,i+=r,g/=256,y-=8);for(A=A<<y|g,f+=y;f>0;M[O+i]=A&255,i+=r,A/=256,f-=8);M[O+i-r]|=c*128}},{}],196:[function(k,z,o){typeof Object.create=="function"?z.exports=function(m,O){O&&(m.super_=O,m.prototype=Object.create(O.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:z.exports=function(m,O){if(O){m.super_=O;var b=function(){};b.prototype=O.prototype,m.prototype=new b,m.prototype.constructor=m}}},{}],197:[function(k,z,o){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/z.exports=function(O){return O!=null&&(M(O)||m(O)||!!O._isBuffer)};function M(O){return!!O.constructor&&typeof O.constructor.isBuffer=="function"&&O.constructor.isBuffer(O)}function m(O){return typeof O.readFloatLE=="function"&&typeof O.slice=="function"&&M(O.slice(0,0))}},{}],198:[function(k,z,o){var M={}.toString;z.exports=Array.isArray||function(m){return M.call(m)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(k,z){typeof exports=="object"&&typeof module!="undefined"?module.exports=z(k):typeof define=="function"&&define.amd?define(z):z(k)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(k){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(k){for(var z={},o=0,M=k.length;o<M;o++)z[k.charAt(o)]=o;return z}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(k){if(k.length<2){var z=k.charCodeAt(0);return z<128?k:z<2048?fromCharCode(192|z>>>6)+fromCharCode(128|z&63):fromCharCode(224|z>>>12&15)+fromCharCode(128|z>>>6&63)+fromCharCode(128|z&63)}else{var z=65536+(k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320);return fromCharCode(240|z>>>18&7)+fromCharCode(128|z>>>12&63)+fromCharCode(128|z>>>6&63)+fromCharCode(128|z&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(k){return k.replace(re_utob,cb_utob)},cb_encode=function(k){var z=[0,2,1][k.length%3],o=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),M=[b64chars.charAt(o>>>18),b64chars.charAt(o>>>12&63),z>=2?"=":b64chars.charAt(o>>>6&63),z>=1?"=":b64chars.charAt(o&63)];return M.join("")},btoa=global.btoa?function(k){return global.btoa(k)}:function(k){return k.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(k){var z=Object.prototype.toString.call(k)==="[object Uint8Array]";return z?k.toString("base64"):btoa(utob(String(k)))},encode=function(k,z){return z?_encode(String(k)).replace(/[+\/]/g,function(o){return o=="+"?"-":"_"}).replace(/=/g,""):_encode(k)},encodeURI=function(k){return encode(k,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(k){switch(k.length){case 4:var z=(7&k.charCodeAt(0))<<18|(63&k.charCodeAt(1))<<12|(63&k.charCodeAt(2))<<6|63&k.charCodeAt(3),o=z-65536;return fromCharCode((o>>>10)+55296)+fromCharCode((o&1023)+56320);case 3:return fromCharCode((15&k.charCodeAt(0))<<12|(63&k.charCodeAt(1))<<6|63&k.charCodeAt(2));default:return fromCharCode((31&k.charCodeAt(0))<<6|63&k.charCodeAt(1))}},btou=function(k){return k.replace(re_btou,cb_btou)},cb_decode=function(k){var z=k.length,o=z%4,M=(z>0?b64tab[k.charAt(0)]<<18:0)|(z>1?b64tab[k.charAt(1)]<<12:0)|(z>2?b64tab[k.charAt(2)]<<6:0)|(z>3?b64tab[k.charAt(3)]:0),m=[fromCharCode(M>>>16),fromCharCode(M>>>8&255),fromCharCode(M&255)];return m.length-=[0,0,2,1][o],m.join("")},_atob=global.atob?function(k){return global.atob(k)}:function(k){return k.replace(/\S{1,4}/g,cb_decode)},atob=function(k){return _atob(String(k).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(k){return(k.constructor===buffer.constructor?k:buffer.from(k,"base64")).toString()}:function(k){return(k.constructor===buffer.constructor?k:new buffer(k,"base64")).toString()}:function(k){return btou(_atob(k))},decode=function(k){return _decode(String(k).replace(/[-_]/g,function(z){return z=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var k=global.Base64;return global.Base64=_Base64,k};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(k){return{value:k,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(k){return encode(this,k)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(k,z,o){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";z.exports=m;var M=Object.prototype.hasOwnProperty;function m(O,b,y){if(!O)throw new TypeError("argument dest is required");if(!b)throw new TypeError("argument src is required");return y===void 0&&(y=!0),Object.getOwnPropertyNames(b).forEach(function(A){if(!y&&M.call(O,A))return;var g=Object.getOwnPropertyDescriptor(b,A);Object.defineProperty(O,A,g)}),O}},{}],201:[function(k,z,o){"use strict";function M(){this._types=Object.create(null),this._extensions=Object.create(null);for(var m=0;m<arguments.length;m++)this.define(arguments[m]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}M.prototype.define=function(m,O){for(var b in m){var y=m[b].map(function(g){return g.toLowerCase()});b=b.toLowerCase();for(var C=0;C<y.length;C++){var A=y[C];if(A[0]=="*")continue;if(!O&&A in this._types)throw new Error('Attempt to change mapping for "'+A+'" extension from "'+this._types[A]+'" to "'+b+'". Pass `force=true` to allow this, otherwise remove "'+A+'" from the list of extensions for "'+b+'".');this._types[A]=b}if(O||!this._extensions[b]){var A=y[0];this._extensions[b]=A[0]!="*"?A:A.substr(1)}}},M.prototype.getType=function(m){m=String(m);var O=m.replace(/^.*[/\\]/,"").toLowerCase(),b=O.replace(/^.*\./,"").toLowerCase(),y=O.length<m.length,C=b.length<O.length-1;return(C||!y)&&this._types[b]||null},M.prototype.getExtension=function(m){return m=/^\s*([^;\s]*)/.test(m)&&RegExp.$1,m&&this._extensions[m.toLowerCase()]||null},z.exports=M},{}],202:[function(k,z,o){"use strict";var M=k("./Mime");z.exports=new M(k("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(k,z,o){z.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(k,z,o){var M=1e3,m=M*60,O=m*60,b=O*24,y=b*7,C=b*365.25;z.exports=function(a,l){l=l||{};var n=typeof a;if(n==="string"&&a.length>0)return A(a);if(n==="number"&&isFinite(a))return l.long?e(a):g(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function A(a){if(a=String(a),a.length>100)return;var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!l)return;var n=parseFloat(l[1]),i=(l[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*C;case"weeks":case"week":case"w":return n*y;case"days":case"day":case"d":return n*b;case"hours":case"hour":case"hrs":case"hr":case"h":return n*O;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*M;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}function g(a){var l=Math.abs(a);return l>=b?Math.round(a/b)+"d":l>=O?Math.round(a/O)+"h":l>=m?Math.round(a/m)+"m":l>=M?Math.round(a/M)+"s":a+"ms"}function e(a){var l=Math.abs(a);return l>=b?f(a,l,b,"day"):l>=O?f(a,l,O,"hour"):l>=m?f(a,l,m,"minute"):l>=M?f(a,l,M,"second"):a+" ms"}function f(a,l,n,i){var r=l>=n*1.5;return Math.round(a/n)+" "+i+(r?"s":"")}},{}],205:[function(k,z,o){(function(M){function m(C,A){for(var g=0,e=C.length-1;e>=0;e--){var f=C[e];f==="."?C.splice(e,1):f===".."?(C.splice(e,1),g++):g&&(C.splice(e,1),g--)}if(A)for(;g--;g)C.unshift("..");return C}o.resolve=function(){for(var C="",A=!1,g=arguments.length-1;g>=-1&&!A;g--){var e=g>=0?arguments[g]:M.cwd();if(typeof e!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!e)continue;C=e+"/"+C,A=e.charAt(0)==="/"}return C=m(b(C.split("/"),function(f){return!!f}),!A).join("/"),(A?"/":"")+C||"."},o.normalize=function(C){var A=o.isAbsolute(C),g=y(C,-1)==="/";return C=m(b(C.split("/"),function(e){return!!e}),!A).join("/"),!C&&!A&&(C="."),C&&g&&(C+="/"),(A?"/":"")+C},o.isAbsolute=function(C){return C.charAt(0)==="/"},o.join=function(){var C=Array.prototype.slice.call(arguments,0);return o.normalize(b(C,function(A,g){if(typeof A!="string")throw new TypeError("Arguments to path.join must be strings");return A}).join("/"))},o.relative=function(C,A){C=o.resolve(C).substr(1),A=o.resolve(A).substr(1);function g(r){for(var c=0;c<r.length&&!(r[c]!=="");c++);for(var h=r.length-1;h>=0&&!(r[h]!=="");h--);return c>h?[]:r.slice(c,h-c+1)}for(var e=g(C.split("/")),f=g(A.split("/")),a=Math.min(e.length,f.length),l=a,n=0;n<a;n++)if(e[n]!==f[n]){l=n;break}for(var i=[],n=l;n<e.length;n++)i.push("..");return i=i.concat(f.slice(l)),i.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(C){if(typeof C!="string"&&(C=C+""),C.length===0)return".";for(var A=C.charCodeAt(0),g=A===47,e=-1,f=!0,a=C.length-1;a>=1;--a)if(A=C.charCodeAt(a),A===47){if(!f){e=a;break}}else f=!1;return e===-1?g?"/":".":g&&e===1?"/":C.slice(0,e)};function O(C){typeof C!="string"&&(C=C+"");var A=0,g=-1,e=!0,f;for(f=C.length-1;f>=0;--f)if(C.charCodeAt(f)===47){if(!e){A=f+1;break}}else g===-1&&(e=!1,g=f+1);return g===-1?"":C.slice(A,g)}o.basename=function(C,A){var g=O(C);return A&&g.substr(-1*A.length)===A&&(g=g.substr(0,g.length-A.length)),g},o.extname=function(C){typeof C!="string"&&(C=C+"");for(var A=-1,g=0,e=-1,f=!0,a=0,l=C.length-1;l>=0;--l){var n=C.charCodeAt(l);if(n===47){if(!f){g=l+1;break}continue}e===-1&&(f=!1,e=l+1),n===46?A===-1?A=l:a!==1&&(a=1):A!==-1&&(a=-1)}return A===-1||e===-1||a===0||a===1&&A===e-1&&A===g+1?"":C.slice(A,e)};function b(C,A){if(C.filter)return C.filter(A);for(var g=[],e=0;e<C.length;e++)A(C[e],e,C)&&g.push(C[e]);return g}var y="ab".substr(-1)==="b"?function(C,A,g){return C.substr(A,g)}:function(C,A,g){return A<0&&(A=C.length+A),C.substr(A,g)}}).call(this,k("_process"))},{_process:208}],206:[function(k,z,o){(function(M){/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var m={function:!0,object:!0},O=m[typeof window]&&window||this,b=O,y=m[typeof o]&&o,C=m[typeof z]&&z&&!z.nodeType&&z,A=y&&C&&typeof M=="object"&&M;A&&(A.global===A||A.window===A||A.self===A)&&(O=A);var g=Math.pow(2,53)-1,e=/\bOpera/,f=this,a=Object.prototype,l=a.hasOwnProperty,n=a.toString;function i(x){return x=String(x),x.charAt(0).toUpperCase()+x.slice(1)}function r(x,S,v){var T={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return S&&v&&/^Win/i.test(x)&&!/^Windows Phone /i.test(x)&&(T=T[/[\d.]+$/.exec(x)])&&(x="Windows "+T),x=String(x),S&&v&&(x=x.replace(RegExp(S,"i"),v)),x=h(x.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),x}function c(x,S){var v=-1,T=x?x.length:0;if(typeof T=="number"&&T>-1&&T<=g)for(;++v<T;)S(x[v],v,x);else d(x,S)}function h(x){return x=_(x),/^(?:webOS|i(?:OS|P))/.test(x)?x:i(x)}function d(x,S){for(var v in x)l.call(x,v)&&S(x[v],v,x)}function s(x){return x==null?i(x):n.call(x).slice(8,-1)}function u(x,S){var v=x!=null?typeof x[S]:"number";return!/^(?:boolean|number|string|undefined)$/.test(v)&&(v=="object"?!!x[S]:!0)}function w(x){return String(x).replace(/([ -])(?!$)/g,"$1?")}function E(x,S){var v=null;return c(x,function(T,U){v=S(v,T,U,x)}),v}function _(x){return String(x).replace(/^ +| +$/g,"")}function P(x){var S=O,v=x&&typeof x=="object"&&s(x)!="String";v&&(S=x,x=null);var T=S.navigator||{},U=T.userAgent||"";x||(x=U);var I=v||f==b,N=v?!!T.likeChrome:/\bChrome\b/.test(x)&&!/internal|\n/i.test(n.toString()),V="Object",H=v?V:"ScriptBridgingProxyObject",D=v?V:"Environment",W=v&&S.java?"JavaPackage":s(S.java),F=v?V:"RuntimeObject",L=/\bJava/.test(W)&&S.java,K=L&&s(S.environment)==D,ee=L?"a":"\u03B1",he=L?"b":"\u03B2",fe=S.document||{},Ce=S.operamini||S.opera,Te=e.test(Te=v&&Ce?Ce["[[Class]]"]:s(Ce))?Te:Ce=null,ce,ye=x,Ee=[],ue=null,se=x==U,$=se&&Ce&&typeof Ce.version=="function"&&Ce.version(),me,re=Q([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ae=ve(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),we=Oe([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),le=J({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),te=_e(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Q(dt){return E(dt,function(vt,_t){return vt||RegExp("\\b"+(_t.pattern||w(_t))+"\\b","i").exec(x)&&(_t.label||_t)})}function J(dt){return E(dt,function(vt,_t,Ye){return vt||(_t[we]||_t[/^[a-z]+(?: +[a-z]+\b)*/i.exec(we)]||RegExp("\\b"+w(Ye)+"(?:\\b|\\w*\\d)","i").exec(x))&&Ye})}function ve(dt){return E(dt,function(vt,_t){return vt||RegExp("\\b"+(_t.pattern||w(_t))+"\\b","i").exec(x)&&(_t.label||_t)})}function _e(dt){return E(dt,function(vt,_t){var Ye=_t.pattern||w(_t);return!vt&&(vt=RegExp("\\b"+Ye+"(?:/[\\d.]+|[ \\w.]*)","i").exec(x))&&(vt=r(vt,Ye,_t.label||_t)),vt})}function Oe(dt){return E(dt,function(vt,_t){var Ye=_t.pattern||w(_t);return!vt&&(vt=RegExp("\\b"+Ye+" *\\d+[.\\w_]*","i").exec(x)||RegExp("\\b"+Ye+" *\\w+-[\\w]*","i").exec(x)||RegExp("\\b"+Ye+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(x))&&((vt=String(_t.label&&!RegExp(Ye,"i").test(_t.label)?_t.label:vt).split("/"))[1]&&!/[\d.]+/.test(vt[0])&&(vt[0]+=" "+vt[1]),_t=_t.label||_t,vt=h(vt[0].replace(RegExp(Ye,"i"),_t).replace(RegExp("; *(?:"+_t+"[_-])?","i")," ").replace(RegExp("("+_t+")[-_.]?(\\w)","i"),"$1 $2"))),vt})}function Xe(dt){return E(dt,function(vt,_t){return vt||(RegExp(_t+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(x)||0)[1]||null})}function tt(){return this.description||""}if(re&&(re=[re]),le&&!we&&(we=Oe([le])),(ce=/\bGoogle TV\b/.exec(we))&&(we=ce[0]),/\bSimulator\b/i.test(x)&&(we=(we?we+" ":"")+"Simulator"),ae=="Opera Mini"&&/\bOPiOS\b/.test(x)&&Ee.push("running in Turbo/Uncompressed mode"),ae=="IE"&&/\blike iPhone OS\b/.test(x)?(ce=P(x.replace(/like iPhone OS/,"")),le=ce.manufacturer,we=ce.product):/^iP/.test(we)?(ae||(ae="Safari"),te="iOS"+((ce=/ OS ([\d_]+)/i.exec(x))?" "+ce[1].replace(/_/g,"."):"")):ae=="Konqueror"&&!/buntu/i.test(te)?te="Kubuntu":le&&le!="Google"&&(/Chrome/.test(ae)&&!/\bMobile Safari\b/i.test(x)||/\bVita\b/.test(we))||/\bAndroid\b/.test(te)&&/^Chrome/.test(ae)&&/\bVersion\//i.test(x)?(ae="Android Browser",te=/\bAndroid\b/.test(te)?te:"Android"):ae=="Silk"?(/\bMobi/i.test(x)||(te="Android",Ee.unshift("desktop mode")),/Accelerated *= *true/i.test(x)&&Ee.unshift("accelerated")):ae=="PaleMoon"&&(ce=/\bFirefox\/([\d.]+)\b/.exec(x))?Ee.push("identifying as Firefox "+ce[1]):ae=="Firefox"&&(ce=/\b(Mobile|Tablet|TV)\b/i.exec(x))?(te||(te="Firefox OS"),we||(we=ce[1])):!ae||(ce=!/\bMinefield\b/i.test(x)&&/\b(?:Firefox|Safari)\b/.exec(ae))?(ae&&!we&&/[\/,]|^[^(]+?\)/.test(x.slice(x.indexOf(ce+"/")+8))&&(ae=null),(ce=we||le||te)&&(we||le||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(te))&&(ae=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(te)?te:ce)+" Browser")):ae=="Electron"&&(ce=(/\bChrome\/([\d.]+)\b/.exec(x)||0)[1])&&Ee.push("Chromium "+ce),$||($=Xe(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",w(ae),"(?:Firefox|Minefield|NetFront)"])),(ce=re=="iCab"&&parseFloat($)>3&&"WebKit"||/\bOpera\b/.test(ae)&&(/\bOPR\b/.test(x)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(x)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(x)&&(te=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ae)&&"NetFront")&&(re=[ce]),ae=="IE"&&(ce=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(x)||0)[1])?(ae+=" Mobile",te="Windows Phone "+(/\+$/.test(ce)?ce:ce+".x"),Ee.unshift("desktop mode")):/\bWPDesktop\b/i.test(x)?(ae="IE Mobile",te="Windows Phone 8.x",Ee.unshift("desktop mode"),$||($=(/\brv:([\d.]+)/.exec(x)||0)[1])):ae!="IE"&&re=="Trident"&&(ce=/\brv:([\d.]+)/.exec(x))&&(ae&&Ee.push("identifying as "+ae+($?" "+$:"")),ae="IE",$=ce[1]),se){if(u(S,"global"))if(L&&(ce=L.lang.System,ye=ce.getProperty("os.arch"),te=te||ce.getProperty("os.name")+" "+ce.getProperty("os.version")),K){try{$=S.require("ringo/engine").version.join("."),ae="RingoJS"}catch(dt){(ce=S.system)&&ce.global.system==S.system&&(ae="Narwhal",te||(te=ce[0].os||null))}ae||(ae="Rhino")}else typeof S.process=="object"&&!S.process.browser&&(ce=S.process)&&(typeof ce.versions=="object"&&(typeof ce.versions.electron=="string"?(Ee.push("Node "+ce.versions.node),ae="Electron",$=ce.versions.electron):typeof ce.versions.nw=="string"&&(Ee.push("Chromium "+$,"Node "+ce.versions.node),ae="NW.js",$=ce.versions.nw)),ae||(ae="Node.js",ye=ce.arch,te=ce.platform,$=/[\d.]+/.exec(ce.version),$=$?$[0]:null));else s(ce=S.runtime)==H?(ae="Adobe AIR",te=ce.flash.system.Capabilities.os):s(ce=S.phantom)==F?(ae="PhantomJS",$=(ce=ce.version||null)&&ce.major+"."+ce.minor+"."+ce.patch):typeof fe.documentMode=="number"&&(ce=/\bTrident\/(\d+)/i.exec(x))?($=[$,fe.documentMode],(ce=+ce[1]+4)!=$[1]&&(Ee.push("IE "+$[1]+" mode"),re&&(re[1]=""),$[1]=ce),$=ae=="IE"?String($[1].toFixed(1)):$[0]):typeof fe.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ae)&&(Ee.push("masking as "+ae+" "+$),ae="IE",$="11.0",re=["Trident"],te="Windows");te=te&&h(te)}if($&&(ce=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($)||/(?:alpha|beta)(?: ?\d)?/i.exec(x+";"+(se&&T.appMinorVersion))||/\bMinefield\b/i.test(x)&&"a")&&(ue=/b/i.test(ce)?"beta":"alpha",$=$.replace(RegExp(ce+"\\+?$"),"")+(ue=="beta"?he:ee)+(/\d+\+?/.exec(ce)||"")),ae=="Fennec"||ae=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(te))ae="Firefox Mobile";else if(ae=="Maxthon"&&$)$=$.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(we))we=="Xbox 360"&&(te=null),we=="Xbox 360"&&/\bIEMobile\b/.test(x)&&Ee.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ae)||ae&&!we&&!/Browser|Mobi/.test(ae))&&(te=="Windows CE"||/Mobi/i.test(x)))ae+=" Mobile";else if(ae=="IE"&&se)try{S.external===null&&Ee.unshift("platform preview")}catch(dt){Ee.unshift("embedded")}else(/\bBlackBerry\b/.test(we)||/\bBB10\b/.test(x))&&(ce=(RegExp(we.replace(/ +/g," *")+"/([.\\d]+)","i").exec(x)||0)[1]||$)?(ce=[ce,/BB10/.test(x)],te=(ce[1]?(we=null,le="BlackBerry"):"Device Software")+" "+ce[0],$=null):this!=d&&we!="Wii"&&(se&&Ce||/Opera/.test(ae)&&/\b(?:MSIE|Firefox)\b/i.test(x)||ae=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(te)||ae=="IE"&&(te&&!/^Win/.test(te)&&$>5.5||/\bWindows XP\b/.test(te)&&$>8||$==8&&!/\bTrident\b/.test(x)))&&!e.test(ce=P.call(d,x.replace(e,"")+";"))&&ce.name&&(ce="ing as "+ce.name+((ce=ce.version)?" "+ce:""),e.test(ae)?(/\bIE\b/.test(ce)&&te=="Mac OS"&&(te=null),ce="identify"+ce):(ce="mask"+ce,Te?ae=h(Te.replace(/([a-z])([A-Z])/g,"$1 $2")):ae="Opera",/\bIE\b/.test(ce)&&(te=null),se||($=null)),re=["Presto"],Ee.push(ce));(ce=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(x)||0)[1])&&(ce=[parseFloat(ce.replace(/\.(\d)$/,".0$1")),ce],ae=="Safari"&&ce[1].slice(-1)=="+"?(ae="WebKit Nightly",ue="alpha",$=ce[1].slice(0,-1)):($==ce[1]||$==(ce[2]=(/\bSafari\/([\d.]+\+?)/i.exec(x)||0)[1]))&&($=null),ce[1]=(/\bChrome\/([\d.]+)/i.exec(x)||0)[1],ce[0]==537.36&&ce[2]==537.36&&parseFloat(ce[1])>=28&&re=="WebKit"&&(re=["Blink"]),!se||!N&&!ce[1]?(re&&(re[1]="like Safari"),ce=(ce=ce[0],ce<400?1:ce<500?2:ce<526?3:ce<533?4:ce<534?"4+":ce<535?5:ce<537?6:ce<538?7:ce<601?8:"8")):(re&&(re[1]="like Chrome"),ce=ce[1]||(ce=ce[0],ce<530?1:ce<532?2:ce<532.05?3:ce<533?4:ce<534.03?5:ce<534.07?6:ce<534.1?7:ce<534.13?8:ce<534.16?9:ce<534.24?10:ce<534.3?11:ce<535.01?12:ce<535.02?"13+":ce<535.07?15:ce<535.11?16:ce<535.19?17:ce<536.05?18:ce<536.1?19:ce<537.01?20:ce<537.11?"21+":ce<537.13?23:ce<537.18?24:ce<537.24?25:ce<537.36?26:re!="Blink"?"27":"28")),re&&(re[1]+=" "+(ce+=typeof ce=="number"?".x":/[.+]/.test(ce)?"":"+")),ae=="Safari"&&(!$||parseInt($)>45)&&($=ce)),ae=="Opera"&&(ce=/\bzbov|zvav$/.exec(te))?(ae+=" ",Ee.unshift("desktop mode"),ce=="zvav"?(ae+="Mini",$=null):ae+="Mobile",te=te.replace(RegExp(" *"+ce+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(Ee.unshift("desktop mode"),ae="Chrome Mobile",$=null,/\bOS X\b/.test(te)?(le="Apple",te="iOS 4.3+"):te=null),$&&$.indexOf(ce=/[\d.]+$/.exec(te))==0&&x.indexOf("/"+ce+"-")>-1&&(te=_(te.replace(ce,""))),re&&!/\b(?:Avant|Nook)\b/.test(ae)&&(/Browser|Lunascape|Maxthon/.test(ae)||ae!="Safari"&&/^iOS/.test(te)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ae)&&re[1])&&((ce=re[re.length-1])&&Ee.push(ce)),Ee.length&&(Ee=["("+Ee.join("; ")+")"]),le&&we&&we.indexOf(le)<0&&Ee.push("on "+le),we&&Ee.push((/^on /.test(Ee[Ee.length-1])?"":"on ")+we),te&&(ce=/ ([\d.+]+)$/.exec(te),me=ce&&te.charAt(te.length-ce[0].length-1)=="/",te={architecture:32,family:ce&&!me?te.replace(ce[0],""):te,version:ce?ce[1]:null,toString:function(){var dt=this.version;return this.family+(dt&&!me?" "+dt:"")+(this.architecture==64?" 64-bit":"")}}),(ce=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ye))&&!/\bi686\b/i.test(ye)?(te&&(te.architecture=64,te.family=te.family.replace(RegExp(" *"+ce),"")),ae&&(/\bWOW64\b/i.test(x)||se&&/\w(?:86|32)$/.test(T.cpuClass||T.platform)&&!/\bWin64; x64\b/i.test(x))&&Ee.unshift("32-bit")):te&&/^OS X/.test(te.family)&&ae=="Chrome"&&parseFloat($)>=39&&(te.architecture=64),x||(x=null);var lt={};return lt.description=x,lt.layout=re&&re[0],lt.manufacturer=le,lt.name=ae,lt.prerelease=ue,lt.product=we,lt.ua=x,lt.version=ae&&$,lt.os=te||{architecture:null,family:null,version:null,toString:function(){return"null"}},lt.parse=P,lt.toString=tt,lt.version&&Ee.unshift($),lt.name&&Ee.unshift(ae),te&&ae&&!(te==String(te).split(" ")[0]&&(te==ae.split(" ")[0]||we))&&Ee.push(we?"("+te+")":"on "+te),Ee.length&&(lt.description=Ee.join(" ")),lt}var R=P();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(O.platform=R,define(function(){return R})):y&&C?d(R,function(x,S){y[S]=x}):O.platform=R}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,z,o){(function(M){"use strict";typeof M=="undefined"||!M.version||M.version.indexOf("v0.")===0||M.version.indexOf("v1.")===0&&M.version.indexOf("v1.8.")!==0?z.exports={nextTick:m}:z.exports=M;function m(O,b,y,C){if(typeof O!="function")throw new TypeError('"callback" argument must be a function');var A=arguments.length,g,e;switch(A){case 0:case 1:return M.nextTick(O);case 2:return M.nextTick(function(){O.call(null,b)});case 3:return M.nextTick(function(){O.call(null,b,y)});case 4:return M.nextTick(function(){O.call(null,b,y,C)});default:for(g=new Array(A-1),e=0;e<g.length;)g[e++]=arguments[e];return M.nextTick(function(){O.apply(null,g)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,z,o){var M=z.exports={},m,O;function b(){throw new Error("setTimeout has not been defined")}function y(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?m=setTimeout:m=b}catch(c){m=b}try{typeof clearTimeout=="function"?O=clearTimeout:O=y}catch(c){O=y}})();function C(c){if(m===setTimeout)return setTimeout(c,0);if((m===b||!m)&&setTimeout)return m=setTimeout,setTimeout(c,0);try{return m(c,0)}catch(h){try{return m.call(null,c,0)}catch(d){return m.call(this,c,0)}}}function A(c){if(O===clearTimeout)return clearTimeout(c);if((O===y||!O)&&clearTimeout)return O=clearTimeout,clearTimeout(c);try{return O(c)}catch(h){try{return O.call(null,c)}catch(d){return O.call(this,c)}}}var g=[],e=!1,f,a=-1;function l(){if(!e||!f)return;e=!1,f.length?g=f.concat(g):a=-1,g.length&&n()}function n(){if(e)return;var c=C(l);e=!0;for(var h=g.length;h;){for(f=g,g=[];++a<h;)f&&f[a].run();a=-1,h=g.length}f=null,e=!1,A(c)}M.nextTick=function(c){var h=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)h[d-1]=arguments[d];g.push(new i(c,h)),g.length===1&&!e&&C(n)};function i(c,h){this.fun=c,this.array=h}i.prototype.run=function(){this.fun.apply(null,this.array)},M.title="browser",M.browser=!0,M.env={},M.argv=[],M.version="",M.versions={};function r(){}M.on=r,M.addListener=r,M.once=r,M.off=r,M.removeListener=r,M.removeAllListeners=r,M.emit=r,M.prependListener=r,M.prependOnceListener=r,M.listeners=function(c){return[]},M.binding=function(c){throw new Error("process.binding is not supported")},M.cwd=function(){return"/"},M.chdir=function(c){throw new Error("process.chdir is not supported")},M.umask=function(){return 0}},{}],209:[function(k,z,o){(function(M){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(m){var O=typeof o=="object"&&o&&!o.nodeType&&o,b=typeof z=="object"&&z&&!z.nodeType&&z,y=typeof M=="object"&&M;(y.global===y||y.window===y||y.self===y)&&(m=y);var C,A=2147483647,g=36,e=1,f=26,a=38,l=700,n=72,i=128,r="-",c=/^xn--/,h=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=g-e,w=Math.floor,E=String.fromCharCode,_;function P(W){throw new RangeError(s[W])}function R(W,F){for(var L=W.length,K=[];L--;)K[L]=F(W[L]);return K}function x(W,F){var L=W.split("@"),K="";L.length>1&&(K=L[0]+"@",W=L[1]),W=W.replace(d,".");var ee=W.split("."),he=R(ee,F).join(".");return K+he}function S(W){for(var F=[],L=0,K=W.length,ee,he;L<K;)ee=W.charCodeAt(L++),ee>=55296&&ee<=56319&&L<K?(he=W.charCodeAt(L++),(he&64512)==56320?F.push(((ee&1023)<<10)+(he&1023)+65536):(F.push(ee),L--)):F.push(ee);return F}function v(W){return R(W,function(F){var L="";return F>65535&&(F-=65536,L+=E(F>>>10&1023|55296),F=56320|F&1023),L+=E(F),L}).join("")}function T(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:g}function U(W,F){return W+22+75*(W<26)-((F!=0)<<5)}function I(W,F,L){var K=0;for(W=L?w(W/l):W>>1,W+=w(W/F);W>u*f>>1;K+=g)W=w(W/u);return w(K+(u+1)*W/(W+a))}function N(W){var F=[],L=W.length,K,ee=0,he=i,fe=n,Ce,Te,ce,ye,Ee,ue,se,$,me;for(Ce=W.lastIndexOf(r),Ce<0&&(Ce=0),Te=0;Te<Ce;++Te)W.charCodeAt(Te)>=128&&P("not-basic"),F.push(W.charCodeAt(Te));for(ce=Ce>0?Ce+1:0;ce<L;){for(ye=ee,Ee=1,ue=g;!(ce>=L&&P("invalid-input"),se=T(W.charCodeAt(ce++)),(se>=g||se>w((A-ee)/Ee))&&P("overflow"),ee+=se*Ee,$=ue<=fe?e:ue>=fe+f?f:ue-fe,se<$);ue+=g)me=g-$,Ee>w(A/me)&&P("overflow"),Ee*=me;K=F.length+1,fe=I(ee-ye,K,ye==0),w(ee/K)>A-he&&P("overflow"),he+=w(ee/K),ee%=K,F.splice(ee++,0,he)}return v(F)}function V(W){var F,L,K,ee,he,fe,Ce,Te,ce,ye,Ee,ue=[],se,$,me,re;for(W=S(W),se=W.length,F=i,L=0,he=n,fe=0;fe<se;++fe)Ee=W[fe],Ee<128&&ue.push(E(Ee));for(K=ee=ue.length,ee&&ue.push(r);K<se;){for(Ce=A,fe=0;fe<se;++fe)Ee=W[fe],Ee>=F&&Ee<Ce&&(Ce=Ee);for($=K+1,Ce-F>w((A-L)/$)&&P("overflow"),L+=(Ce-F)*$,F=Ce,fe=0;fe<se;++fe)if(Ee=W[fe],Ee<F&&++L>A&&P("overflow"),Ee==F){for(Te=L,ce=g;!(ye=ce<=he?e:ce>=he+f?f:ce-he,Te<ye);ce+=g)re=Te-ye,me=g-ye,ue.push(E(U(ye+re%me,0))),Te=w(re/me);ue.push(E(U(Te,0))),he=I(L,$,K==ee),L=0,++K}++L,++F}return ue.join("")}function H(W){return x(W,function(F){return c.test(F)?N(F.slice(4).toLowerCase()):F})}function D(W){return x(W,function(F){return h.test(F)?"xn--"+V(F):F})}if(C={version:"1.4.1",ucs2:{decode:S,encode:v},decode:N,encode:V,toASCII:D,toUnicode:H},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(O&&b)if(z.exports==O)b.exports=C;else for(_ in C)C.hasOwnProperty(_)&&(O[_]=C[_]);else m.punycode=C})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(k,z,o){"use strict";function M(O,b){return Object.prototype.hasOwnProperty.call(O,b)}z.exports=function(O,b,y,C){b=b||"&",y=y||"=";var A={};if(typeof O!="string"||O.length===0)return A;var g=/\+/g;O=O.split(b);var e=1e3;C&&typeof C.maxKeys=="number"&&(e=C.maxKeys);var f=O.length;e>0&&f>e&&(f=e);for(var a=0;a<f;++a){var l=O[a].replace(g,"%20"),n=l.indexOf(y),i,r,c,h;n>=0?(i=l.substr(0,n),r=l.substr(n+1)):(i=l,r=""),c=decodeURIComponent(i),h=decodeURIComponent(r),M(A,c)?m(A[c])?A[c].push(h):A[c]=[A[c],h]:A[c]=h}return A};var m=Array.isArray||function(O){return Object.prototype.toString.call(O)==="[object Array]"}},{}],211:[function(k,z,o){"use strict";var M=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};z.exports=function(y,C,A,g){return C=C||"&",A=A||"=",y===null&&(y=void 0),typeof y=="object"?O(b(y),function(e){var f=encodeURIComponent(M(e))+A;return m(y[e])?O(y[e],function(a){return f+encodeURIComponent(M(a))}).join(C):f+encodeURIComponent(M(y[e]))}).join(C):g?encodeURIComponent(M(g))+A+encodeURIComponent(M(y)):""};var m=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"};function O(y,C){if(y.map)return y.map(C);for(var A=[],g=0;g<y.length;g++)A.push(C(y[g],g));return A}var b=Object.keys||function(y){var C=[];for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&C.push(A);return C}},{}],212:[function(k,z,o){"use strict";o.decode=o.parse=k("./decode"),o.encode=o.stringify=k("./encode")},{"./decode":210,"./encode":211}],213:[function(k,z,o){z.exports=k("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=y(M),O=k("babel-runtime/core-js/object/keys"),b=y(O);function y(h){return h&&h.__esModule?h:{default:h}}var C=k("process-nextick-args"),A=b.default||function(h){var d=[];for(var s in h)d.push(s);return d};z.exports=i;var g=(0,m.default)(k("core-util-is"));g.inherits=k("inherits");var e=k("./_stream_readable"),f=k("./_stream_writable");g.inherits(i,e);for(var a=A(f.prototype),l=0;l<a.length;l++){var n=a[l];i.prototype[n]||(i.prototype[n]=f.prototype[n])}function i(h){if(!(this instanceof i))return new i(h);e.call(this,h),f.call(this,h),h&&h.readable===!1&&(this.readable=!1),h&&h.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,h&&h.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",r)}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function r(){if(this.allowHalfOpen||this._writableState.ended)return;C.nextTick(c,this)}function c(h){h.end()}Object.defineProperty(i.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=d,this._writableState.destroyed=d}}),i.prototype._destroy=function(h,d){this.push(null),this.end(),C.nextTick(d,h)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(A){return A&&A.__esModule?A:{default:A}}z.exports=C;var b=k("./_stream_transform"),y=(0,m.default)(k("core-util-is"));y.inherits=k("inherits"),y.inherits(C,b);function C(A){if(!(this instanceof C))return new C(A);b.call(this,A)}C.prototype._transform=function(A,g,e){e(null,A)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(k,z,o){(function(M,m){"use strict";var O=k("babel-runtime/core-js/object/get-prototype-of"),b=A(O),y=k("babel-runtime/core-js/object/create"),C=A(y);function A(re){return re&&re.__esModule?re:{default:re}}var g=k("process-nextick-args");z.exports=S;var e=k("isarray"),f;S.ReadableState=x;var a=k("events").EventEmitter,l=function(ae,we){return ae.listeners(we).length},n=k("./internal/streams/stream"),i=k("safe-buffer").Buffer,r=m.Uint8Array||function(){};function c(re){return i.from(re)}function h(re){return i.isBuffer(re)||re instanceof r}var d=(0,C.default)(k("core-util-is"));d.inherits=k("inherits");var s=k("util"),u=void 0;s&&s.debuglog?u=s.debuglog("stream"):u=function(){};var w=k("./internal/streams/BufferList"),E=k("./internal/streams/destroy"),_;d.inherits(S,n);var P=["error","close","destroy","pause","resume"];function R(re,ae,we){if(typeof re.prependListener=="function")return re.prependListener(ae,we);!re._events||!re._events[ae]?re.on(ae,we):e(re._events[ae])?re._events[ae].unshift(we):re._events[ae]=[we,re._events[ae]]}function x(re,ae){f=f||k("./_stream_duplex"),re=re||{};var we=ae instanceof f;this.objectMode=!!re.objectMode,we&&(this.objectMode=this.objectMode||!!re.readableObjectMode);var le=re.highWaterMark,te=re.readableHighWaterMark,Q=this.objectMode?16:16*1024;le||le===0?this.highWaterMark=le:we&&(te||te===0)?this.highWaterMark=te:this.highWaterMark=Q,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=re.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,re.encoding&&(_||(_=k("string_decoder/").StringDecoder),this.decoder=new _(re.encoding),this.encoding=re.encoding)}function S(re){if(f=f||k("./_stream_duplex"),!(this instanceof S))return new S(re);this._readableState=new x(re,this),this.readable=!0,re&&(typeof re.read=="function"&&(this._read=re.read),typeof re.destroy=="function"&&(this._destroy=re.destroy)),n.call(this)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ae){if(!this._readableState)return;this._readableState.destroyed=ae}}),S.prototype.destroy=E.destroy,S.prototype._undestroy=E.undestroy,S.prototype._destroy=function(re,ae){this.push(null),ae(re)},S.prototype.push=function(re,ae){var we=this._readableState,le;return we.objectMode?le=!0:typeof re=="string"&&(ae=ae||we.defaultEncoding,ae!==we.encoding&&(re=i.from(re,ae),ae=""),le=!0),v(this,re,ae,!1,le)},S.prototype.unshift=function(re){return v(this,re,null,!0,!1)};function v(re,ae,we,le,te){var Q=re._readableState;if(ae===null)Q.reading=!1,D(re,Q);else{var J;te||(J=U(Q,ae)),J?re.emit("error",J):Q.objectMode||ae&&ae.length>0?(typeof ae!="string"&&!Q.objectMode&&(0,b.default)(ae)!==i.prototype&&(ae=c(ae)),le?Q.endEmitted?re.emit("error",new Error("stream.unshift() after end event")):T(re,Q,ae,!0):Q.ended?re.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!we?(ae=Q.decoder.write(ae),Q.objectMode||ae.length!==0?T(re,Q,ae,!1):L(re,Q)):T(re,Q,ae,!1))):le||(Q.reading=!1)}return I(Q)}function T(re,ae,we,le){ae.flowing&&ae.length===0&&!ae.sync?(re.emit("data",we),re.read(0)):(ae.length+=ae.objectMode?1:we.length,le?ae.buffer.unshift(we):ae.buffer.push(we),ae.needReadable&&W(re)),L(re,ae)}function U(re,ae){var we;return!h(ae)&&typeof ae!="string"&&ae!==void 0&&!re.objectMode&&(we=new TypeError("Invalid non-string/buffer chunk")),we}function I(re){return!re.ended&&(re.needReadable||re.length<re.highWaterMark||re.length===0)}S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(re){return _||(_=k("string_decoder/").StringDecoder),this._readableState.decoder=new _(re),this._readableState.encoding=re,this};var N=8388608;function V(re){return re>=N?re=N:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}function H(re,ae){return re<=0||ae.length===0&&ae.ended?0:ae.objectMode?1:re!==re?ae.flowing&&ae.length?ae.buffer.head.data.length:ae.length:(re>ae.highWaterMark&&(ae.highWaterMark=V(re)),re<=ae.length?re:ae.ended?ae.length:(ae.needReadable=!0,0))}S.prototype.read=function(re){u("read",re),re=parseInt(re,10);var ae=this._readableState,we=re;if(re!==0&&(ae.emittedReadable=!1),re===0&&ae.needReadable&&(ae.length>=ae.highWaterMark||ae.ended))return u("read: emitReadable",ae.length,ae.ended),ae.length===0&&ae.ended?se(this):W(this),null;if(re=H(re,ae),re===0&&ae.ended)return ae.length===0&&se(this),null;var le=ae.needReadable;u("need readable",le),(ae.length===0||ae.length-re<ae.highWaterMark)&&(le=!0,u("length less than watermark",le)),ae.ended||ae.reading?(le=!1,u("reading or ended",le)):le&&(u("do read"),ae.reading=!0,ae.sync=!0,ae.length===0&&(ae.needReadable=!0),this._read(ae.highWaterMark),ae.sync=!1,ae.reading||(re=H(we,ae)));var te;return re>0?te=ce(re,ae):te=null,te===null?(ae.needReadable=!0,re=0):ae.length-=re,ae.length===0&&(ae.ended||(ae.needReadable=!0),we!==re&&ae.ended&&se(this)),te!==null&&this.emit("data",te),te};function D(re,ae){if(ae.ended)return;if(ae.decoder){var we=ae.decoder.end();we&&we.length&&(ae.buffer.push(we),ae.length+=ae.objectMode?1:we.length)}ae.ended=!0,W(re)}function W(re){var ae=re._readableState;ae.needReadable=!1,ae.emittedReadable||(u("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?g.nextTick(F,re):F(re))}function F(re){u("emit readable"),re.emit("readable"),Te(re)}function L(re,ae){ae.readingMore||(ae.readingMore=!0,g.nextTick(K,re,ae))}function K(re,ae){for(var we=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length<ae.highWaterMark&&!(u("maybeReadMore read 0"),re.read(0),we===ae.length);)we=ae.length;ae.readingMore=!1}S.prototype._read=function(re){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(re,ae){var we=this,le=this._readableState;switch(le.pipesCount){case 0:le.pipes=re;break;case 1:le.pipes=[le.pipes,re];break;default:le.pipes.push(re);break}le.pipesCount+=1,u("pipe count=%d opts=%j",le.pipesCount,ae);var te=(!ae||ae.end!==!1)&&re!==M.stdout&&re!==M.stderr,Q=te?ve:Ye;le.endEmitted?g.nextTick(Q):we.once("end",Q),re.on("unpipe",J);function J(je,ht){u("onunpipe"),je===we&&(ht&&ht.hasUnpiped===!1&&(ht.hasUnpiped=!0,Xe()))}function ve(){u("onend"),re.end()}var _e=ee(we);re.on("drain",_e);var Oe=!1;function Xe(){u("cleanup"),re.removeListener("close",vt),re.removeListener("finish",_t),re.removeListener("drain",_e),re.removeListener("error",dt),re.removeListener("unpipe",J),we.removeListener("end",ve),we.removeListener("end",Ye),we.removeListener("data",lt),Oe=!0,le.awaitDrain&&(!re._writableState||re._writableState.needDrain)&&_e()}var tt=!1;we.on("data",lt);function lt(je){u("ondata"),tt=!1;var ht=re.write(je);ht===!1&&!tt&&((le.pipesCount===1&&le.pipes===re||le.pipesCount>1&&me(le.pipes,re)!==-1)&&!Oe&&(u("false write response, pause",we._readableState.awaitDrain),we._readableState.awaitDrain++,tt=!0),we.pause())}function dt(je){u("onerror",je),Ye(),re.removeListener("error",dt),l(re,"error")===0&&re.emit("error",je)}R(re,"error",dt);function vt(){re.removeListener("finish",_t),Ye()}re.once("close",vt);function _t(){u("onfinish"),re.removeListener("close",vt),Ye()}re.once("finish",_t);function Ye(){u("unpipe"),we.unpipe(re)}return re.emit("pipe",we),le.flowing||(u("pipe resume"),we.resume()),re};function ee(re){return function(){var ae=re._readableState;u("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&l(re,"data")&&(ae.flowing=!0,Te(re))}}S.prototype.unpipe=function(re){var ae=this._readableState,we={hasUnpiped:!1};if(ae.pipesCount===0)return this;if(ae.pipesCount===1)return re&&re!==ae.pipes?this:(re||(re=ae.pipes),ae.pipes=null,ae.pipesCount=0,ae.flowing=!1,re&&re.emit("unpipe",this,we),this);if(!re){var le=ae.pipes,te=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var Q=0;Q<te;Q++)le[Q].emit("unpipe",this,we);return this}var J=me(ae.pipes,re);return J===-1?this:(ae.pipes.splice(J,1),ae.pipesCount-=1,ae.pipesCount===1&&(ae.pipes=ae.pipes[0]),re.emit("unpipe",this,we),this)},S.prototype.on=function(re,ae){var we=n.prototype.on.call(this,re,ae);if(re==="data")this._readableState.flowing!==!1&&this.resume();else if(re==="readable"){var le=this._readableState;!le.endEmitted&&!le.readableListening&&(le.readableListening=le.needReadable=!0,le.emittedReadable=!1,le.reading?le.length&&W(this):g.nextTick(he,this))}return we},S.prototype.addListener=S.prototype.on;function he(re){u("readable nexttick read 0"),re.read(0)}S.prototype.resume=function(){var re=this._readableState;return re.flowing||(u("resume"),re.flowing=!0,fe(this,re)),this};function fe(re,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,g.nextTick(Ce,re,ae))}function Ce(re,ae){ae.reading||(u("resume read 0"),re.read(0)),ae.resumeScheduled=!1,ae.awaitDrain=0,re.emit("resume"),Te(re),ae.flowing&&!ae.reading&&re.read(0)}S.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Te(re){var ae=re._readableState;for(u("flow",ae.flowing);ae.flowing&&re.read()!==null;);}S.prototype.wrap=function(re){var ae=this,we=this._readableState,le=!1;re.on("end",function(){if(u("wrapped end"),we.decoder&&!we.ended){var J=we.decoder.end();J&&J.length&&ae.push(J)}ae.push(null)}),re.on("data",function(J){if(u("wrapped data"),we.decoder&&(J=we.decoder.write(J)),we.objectMode&&J==null)return;if(!we.objectMode&&(!J||!J.length))return;var ve=ae.push(J);ve||(le=!0,re.pause())});for(var te in re)this[te]===void 0&&typeof re[te]=="function"&&(this[te]=function(J){return function(){return re[J].apply(re,arguments)}}(te));for(var Q=0;Q<P.length;Q++)re.on(P[Q],this.emit.bind(this,P[Q]));return this._read=function(J){u("wrapped _read",J),le&&(le=!1,re.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=ce;function ce(re,ae){if(ae.length===0)return null;var we;return ae.objectMode?we=ae.buffer.shift():!re||re>=ae.length?(ae.decoder?we=ae.buffer.join(""):ae.buffer.length===1?we=ae.buffer.head.data:we=ae.buffer.concat(ae.length),ae.buffer.clear()):we=ye(re,ae.buffer,ae.decoder),we}function ye(re,ae,we){var le;return re<ae.head.data.length?(le=ae.head.data.slice(0,re),ae.head.data=ae.head.data.slice(re)):re===ae.head.data.length?le=ae.shift():le=we?Ee(re,ae):ue(re,ae),le}function Ee(re,ae){var we=ae.head,le=1,te=we.data;for(re-=te.length;we=we.next;){var Q=we.data,J=re>Q.length?Q.length:re;if(J===Q.length?te+=Q:te+=Q.slice(0,re),re-=J,re===0){J===Q.length?(++le,we.next?ae.head=we.next:ae.head=ae.tail=null):(ae.head=we,we.data=Q.slice(J));break}++le}return ae.length-=le,te}function ue(re,ae){var we=i.allocUnsafe(re),le=ae.head,te=1;for(le.data.copy(we),re-=le.data.length;le=le.next;){var Q=le.data,J=re>Q.length?Q.length:re;if(Q.copy(we,we.length-re,0,J),re-=J,re===0){J===Q.length?(++te,le.next?ae.head=le.next:ae.head=ae.tail=null):(ae.head=le,le.data=Q.slice(J));break}++te}return ae.length-=te,we}function se(re){var ae=re._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,g.nextTick($,ae,re))}function $(re,ae){!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ae.readable=!1,ae.emit("end"))}function me(re,ae){for(var we=0,le=re.length;we<le;we++)if(re[we]===ae)return we;return-1}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(f){return f&&f.__esModule?f:{default:f}}z.exports=A;var b=k("./_stream_duplex"),y=(0,m.default)(k("core-util-is"));y.inherits=k("inherits"),y.inherits(A,b);function C(f,a){var l=this._transformState;l.transforming=!1;var n=l.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));l.writechunk=null,l.writecb=null,a!=null&&this.push(a),n(f);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function A(f){if(!(this instanceof A))return new A(f);b.call(this,f),this._transformState={afterTransform:C.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",g)}function g(){var f=this;typeof this._flush=="function"?this._flush(function(a,l){e(f,a,l)}):e(this,null,null)}A.prototype.push=function(f,a){return this._transformState.needTransform=!1,b.prototype.push.call(this,f,a)},A.prototype._transform=function(f,a,l){throw new Error("_transform() is not implemented")},A.prototype._write=function(f,a,l){var n=this._transformState;if(n.writecb=l,n.writechunk=f,n.writeencoding=a,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},A.prototype._read=function(f){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},A.prototype._destroy=function(f,a){var l=this;b.prototype._destroy.call(this,f,function(n){a(n),l.emit("close")})};function e(f,a,l){if(a)return f.emit("error",a);if(l!=null&&f.push(l),f._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(f._transformState.transforming)throw new Error("Calling transform done when still transforming");return f.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(k,z,o){(function(M,m){"use strict";var O=k("babel-runtime/core-js/object/define-property"),b=n(O),y=k("babel-runtime/core-js/symbol/has-instance"),C=n(y),A=k("babel-runtime/core-js/symbol"),g=n(A),e=k("babel-runtime/core-js/object/create"),f=n(e),a=k("babel-runtime/core-js/set-immediate"),l=n(a);function n(ue){return ue&&ue.__esModule?ue:{default:ue}}var i=k("process-nextick-args");z.exports=U;function r(ue,se,$){this.chunk=ue,this.encoding=se,this.callback=$,this.next=null}function c(ue){var se=this;this.next=null,this.entry=null,this.finish=function(){Ee(se,ue)}}var h=!M.browser&&["v0.10","v0.9."].indexOf(M.version.slice(0,5))>-1?l.default:i.nextTick,d;U.WritableState=v;var s=(0,f.default)(k("core-util-is"));s.inherits=k("inherits");var u={deprecate:k("util-deprecate")},w=k("./internal/streams/stream"),E=k("safe-buffer").Buffer,_=m.Uint8Array||function(){};function P(ue){return E.from(ue)}function R(ue){return E.isBuffer(ue)||ue instanceof _}var x=k("./internal/streams/destroy");s.inherits(U,w);function S(){}function v(ue,se){d=d||k("./_stream_duplex"),ue=ue||{};var $=se instanceof d;this.objectMode=!!ue.objectMode,$&&(this.objectMode=this.objectMode||!!ue.writableObjectMode);var me=ue.highWaterMark,re=ue.writableHighWaterMark,ae=this.objectMode?16:16*1024;me||me===0?this.highWaterMark=me:$&&(re||re===0)?this.highWaterMark=re:this.highWaterMark=ae,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var we=ue.decodeStrings===!1;this.decodeStrings=!we,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){L(se,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}v.prototype.getBuffer=function(){for(var se=this.bufferedRequest,$=[];se;)$.push(se),se=se.next;return $},function(){try{Object.defineProperty(v.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var T;typeof g.default=="function"&&C.default&&typeof Function.prototype[C.default]=="function"?(T=Function.prototype[C.default],(0,b.default)(U,C.default,{value:function(se){return T.call(this,se)?!0:this!==U?!1:se&&se._writableState instanceof v}})):T=function(se){return se instanceof this};function U(ue){if(d=d||k("./_stream_duplex"),!T.call(U,this)&&!(this instanceof d))return new U(ue);this._writableState=new v(ue,this),this.writable=!0,ue&&(typeof ue.write=="function"&&(this._write=ue.write),typeof ue.writev=="function"&&(this._writev=ue.writev),typeof ue.destroy=="function"&&(this._destroy=ue.destroy),typeof ue.final=="function"&&(this._final=ue.final)),w.call(this)}U.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function I(ue,se){var $=new Error("write after end");ue.emit("error",$),i.nextTick(se,$)}function N(ue,se,$,me){var re=!0,ae=!1;return $===null?ae=new TypeError("May not write null values to stream"):typeof $!="string"&&$!==void 0&&!se.objectMode&&(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(ue.emit("error",ae),i.nextTick(me,ae),re=!1),re}U.prototype.write=function(ue,se,$){var me=this._writableState,re=!1,ae=!me.objectMode&&R(ue);return ae&&!E.isBuffer(ue)&&(ue=P(ue)),typeof se=="function"&&($=se,se=null),ae?se="buffer":se||(se=me.defaultEncoding),typeof $!="function"&&($=S),me.ended?I(this,$):(ae||N(this,me,ue,$))&&(me.pendingcb++,re=H(this,me,ae,ue,se,$)),re},U.prototype.cork=function(){var ue=this._writableState;ue.corked++},U.prototype.uncork=function(){var ue=this._writableState;ue.corked&&(ue.corked--,!ue.writing&&!ue.corked&&!ue.finished&&!ue.bufferProcessing&&ue.bufferedRequest&&he(this,ue))},U.prototype.setDefaultEncoding=function(se){if(typeof se=="string"&&(se=se.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((se+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+se);return this._writableState.defaultEncoding=se,this};function V(ue,se,$){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof se=="string"&&(se=E.from(se,$)),se}Object.defineProperty(U.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(ue,se,$,me,re,ae){if(!$){var we=V(se,me,re);me!==we&&($=!0,re="buffer",me=we)}var le=se.objectMode?1:me.length;se.length+=le;var te=se.length<se.highWaterMark;if(te||(se.needDrain=!0),se.writing||se.corked){var Q=se.lastBufferedRequest;se.lastBufferedRequest={chunk:me,encoding:re,isBuf:$,callback:ae,next:null},Q?Q.next=se.lastBufferedRequest:se.bufferedRequest=se.lastBufferedRequest,se.bufferedRequestCount+=1}else D(ue,se,!1,le,me,re,ae);return te}function D(ue,se,$,me,re,ae,we){se.writelen=me,se.writecb=we,se.writing=!0,se.sync=!0,$?ue._writev(re,se.onwrite):ue._write(re,ae,se.onwrite),se.sync=!1}function W(ue,se,$,me,re){--se.pendingcb,$?(i.nextTick(re,me),i.nextTick(ce,ue,se),ue._writableState.errorEmitted=!0,ue.emit("error",me)):(re(me),ue._writableState.errorEmitted=!0,ue.emit("error",me),ce(ue,se))}function F(ue){ue.writing=!1,ue.writecb=null,ue.length-=ue.writelen,ue.writelen=0}function L(ue,se){var $=ue._writableState,me=$.sync,re=$.writecb;if(F($),se)W(ue,$,me,se,re);else{var ae=fe($);!ae&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&he(ue,$),me?h(K,ue,$,ae,re):K(ue,$,ae,re)}}function K(ue,se,$,me){$||ee(ue,se),se.pendingcb--,me(),ce(ue,se)}function ee(ue,se){se.length===0&&se.needDrain&&(se.needDrain=!1,ue.emit("drain"))}function he(ue,se){se.bufferProcessing=!0;var $=se.bufferedRequest;if(ue._writev&&$&&$.next){var me=se.bufferedRequestCount,re=new Array(me),ae=se.corkedRequestsFree;ae.entry=$;for(var we=0,le=!0;$;)re[we]=$,$.isBuf||(le=!1),$=$.next,we+=1;re.allBuffers=le,D(ue,se,!0,se.length,re,"",ae.finish),se.pendingcb++,se.lastBufferedRequest=null,ae.next?(se.corkedRequestsFree=ae.next,ae.next=null):se.corkedRequestsFree=new c(se),se.bufferedRequestCount=0}else{for(;$;){var te=$.chunk,Q=$.encoding,J=$.callback,ve=se.objectMode?1:te.length;if(D(ue,se,!1,ve,te,Q,J),$=$.next,se.bufferedRequestCount--,se.writing)break}$===null&&(se.lastBufferedRequest=null)}se.bufferedRequest=$,se.bufferProcessing=!1}U.prototype._write=function(ue,se,$){$(new Error("_write() is not implemented"))},U.prototype._writev=null,U.prototype.end=function(ue,se,$){var me=this._writableState;typeof ue=="function"?($=ue,ue=null,se=null):typeof se=="function"&&($=se,se=null),ue!=null&&this.write(ue,se),me.corked&&(me.corked=1,this.uncork()),!me.ending&&!me.finished&&ye(this,me,$)};function fe(ue){return ue.ending&&ue.length===0&&ue.bufferedRequest===null&&!ue.finished&&!ue.writing}function Ce(ue,se){ue._final(function($){se.pendingcb--,$&&ue.emit("error",$),se.prefinished=!0,ue.emit("prefinish"),ce(ue,se)})}function Te(ue,se){!se.prefinished&&!se.finalCalled&&(typeof ue._final=="function"?(se.pendingcb++,se.finalCalled=!0,i.nextTick(Ce,ue,se)):(se.prefinished=!0,ue.emit("prefinish")))}function ce(ue,se){var $=fe(se);return $&&(Te(ue,se),se.pendingcb===0&&(se.finished=!0,ue.emit("finish"))),$}function ye(ue,se,$){se.ending=!0,ce(ue,se),$&&(se.finished?i.nextTick($):ue.once("finish",$)),se.ended=!0,ue.writable=!1}function Ee(ue,se,$){var me=ue.entry;for(ue.entry=null;me;){var re=me.callback;se.pendingcb--,re($),me=me.next}se.corkedRequestsFree?se.corkedRequestsFree.next=ue:se.corkedRequestsFree=ue}Object.defineProperty(U.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(se){if(!this._writableState)return;this._writableState.destroyed=se}}),U.prototype.destroy=x.destroy,U.prototype._undestroy=x.undestroy,U.prototype._destroy=function(ue,se){this.end(),se(ue)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(k,z,o){"use strict";function M(y,C){if(!(y instanceof C))throw new TypeError("Cannot call a class as a function")}var m=k("safe-buffer").Buffer,O=k("util");function b(y,C,A){y.copy(C,A)}z.exports=function(){function y(){M(this,y),this.head=null,this.tail=null,this.length=0}return y.prototype.push=function(A){var g={data:A,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length},y.prototype.unshift=function(A){var g={data:A,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length},y.prototype.shift=function(){if(this.length===0)return;var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A},y.prototype.clear=function(){this.head=this.tail=null,this.length=0},y.prototype.join=function(A){if(this.length===0)return"";for(var g=this.head,e=""+g.data;g=g.next;)e+=A+g.data;return e},y.prototype.concat=function(A){if(this.length===0)return m.alloc(0);if(this.length===1)return this.head.data;for(var g=m.allocUnsafe(A>>>0),e=this.head,f=0;e;)b(e.data,g,f),f+=e.data.length,e=e.next;return g},y}(),O&&O.inspect&&O.inspect.custom&&(z.exports.prototype[O.inspect.custom]=function(){var y=O.inspect({length:this.length});return this.constructor.name+" "+y})},{"safe-buffer":228,util:71}],220:[function(k,z,o){"use strict";var M=k("process-nextick-args");function m(y,C){var A=this,g=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return g||e?(C?C(y):y&&(!this._writableState||!this._writableState.errorEmitted)&&M.nextTick(b,this,y),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(f){!C&&f?(M.nextTick(b,A,f),A._writableState&&(A._writableState.errorEmitted=!0)):C&&C(f)}),this)}function O(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function b(y,C){y.emit("error",C)}z.exports={destroy:m,undestroy:O}},{"process-nextick-args":207}],221:[function(k,z,o){"use strict";z.exports=k("events").EventEmitter},{events:192}],222:[function(k,z,o){z.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,z,o){o=z.exports=k("./lib/_stream_readable.js"),o.Stream=o,o.Readable=o,o.Writable=k("./lib/_stream_writable.js"),o.Duplex=k("./lib/_stream_duplex.js"),o.Transform=k("./lib/_stream_transform.js"),o.PassThrough=k("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(k,z,o){z.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,z,o){z.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,z,o){var M=function(){return this}()||Function("return this")(),m=M.regeneratorRuntime&&Object.getOwnPropertyNames(M).indexOf("regeneratorRuntime")>=0,O=m&&M.regeneratorRuntime;if(M.regeneratorRuntime=void 0,z.exports=k("./runtime"),m)M.regeneratorRuntime=O;else try{delete M.regeneratorRuntime}catch(b){M.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,z,o){!function(M){"use strict";var m=Object.prototype,O=m.hasOwnProperty,b,y=typeof Symbol=="function"?Symbol:{},C=y.iterator||"@@iterator",A=y.asyncIterator||"@@asyncIterator",g=y.toStringTag||"@@toStringTag",e=typeof z=="object",f=M.regeneratorRuntime;if(f){e&&(z.exports=f);return}f=M.regeneratorRuntime=e?z.exports:{};function a(H,D,W,F){var L=D&&D.prototype instanceof d?D:d,K=Object.create(L.prototype),ee=new I(F||[]);return K._invoke=S(H,W,ee),K}f.wrap=a;function l(H,D,W){try{return{type:"normal",arg:H.call(D,W)}}catch(F){return{type:"throw",arg:F}}}var n="suspendedStart",i="suspendedYield",r="executing",c="completed",h={};function d(){}function s(){}function u(){}var w={};w[C]=function(){return this};var E=Object.getPrototypeOf,_=E&&E(E(N([])));_&&_!==m&&O.call(_,C)&&(w=_);var P=u.prototype=d.prototype=Object.create(w);s.prototype=P.constructor=u,u.constructor=s,u[g]=s.displayName="GeneratorFunction";function R(H){["next","throw","return"].forEach(function(D){H[D]=function(W){return this._invoke(D,W)}})}f.isGeneratorFunction=function(H){var D=typeof H=="function"&&H.constructor;return D?D===s||(D.displayName||D.name)==="GeneratorFunction":!1},f.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,u):(H.__proto__=u,g in H||(H[g]="GeneratorFunction")),H.prototype=Object.create(P),H},f.awrap=function(H){return{__await:H}};function x(H){function D(L,K,ee,he){var fe=l(H[L],H,K);if(fe.type==="throw")he(fe.arg);else{var Ce=fe.arg,Te=Ce.value;return Te&&typeof Te=="object"&&O.call(Te,"__await")?Promise.resolve(Te.__await).then(function(ce){D("next",ce,ee,he)},function(ce){D("throw",ce,ee,he)}):Promise.resolve(Te).then(function(ce){Ce.value=ce,ee(Ce)},he)}}var W;function F(L,K){function ee(){return new Promise(function(he,fe){D(L,K,he,fe)})}return W=W?W.then(ee,ee):ee()}this._invoke=F}R(x.prototype),x.prototype[A]=function(){return this},f.AsyncIterator=x,f.async=function(H,D,W,F){var L=new x(a(H,D,W,F));return f.isGeneratorFunction(D)?L:L.next().then(function(K){return K.done?K.value:L.next()})};function S(H,D,W){var F=n;return function(K,ee){if(F===r)throw new Error("Generator is already running");if(F===c){if(K==="throw")throw ee;return V()}for(W.method=K,W.arg=ee;;){var he=W.delegate;if(he){var fe=v(he,W);if(fe){if(fe===h)continue;return fe}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(F===n)throw F=c,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);F=r;var Ce=l(H,D,W);if(Ce.type==="normal"){if(F=W.done?c:i,Ce.arg===h)continue;return{value:Ce.arg,done:W.done}}else Ce.type==="throw"&&(F=c,W.method="throw",W.arg=Ce.arg)}}}function v(H,D){var W=H.iterator[D.method];if(W===b){if(D.delegate=null,D.method==="throw"){if(H.iterator.return&&(D.method="return",D.arg=b,v(H,D),D.method==="throw"))return h;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var F=l(W,H.iterator,D.arg);if(F.type==="throw")return D.method="throw",D.arg=F.arg,D.delegate=null,h;var L=F.arg;if(!L)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,h;if(L.done)D[H.resultName]=L.value,D.next=H.nextLoc,D.method!=="return"&&(D.method="next",D.arg=b);else return L;return D.delegate=null,h}R(P),P[g]="Generator",P[C]=function(){return this},P.toString=function(){return"[object Generator]"};function T(H){var D={tryLoc:H[0]};1 in H&&(D.catchLoc=H[1]),2 in H&&(D.finallyLoc=H[2],D.afterLoc=H[3]),this.tryEntries.push(D)}function U(H){var D=H.completion||{};D.type="normal",delete D.arg,H.completion=D}function I(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(T,this),this.reset(!0)}f.keys=function(H){var D=[];for(var W in H)D.push(W);return D.reverse(),function F(){for(;D.length;){var L=D.pop();if(L in H)return F.value=L,F.done=!1,F}return F.done=!0,F}};function N(H){if(H){var D=H[C];if(D)return D.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var W=-1,F=function L(){for(;++W<H.length;)if(O.call(H,W))return L.value=H[W],L.done=!1,L;return L.value=b,L.done=!0,L};return F.next=F}}return{next:V}}f.values=N;function V(){return{value:b,done:!0}}I.prototype={constructor:I,reset:function(H){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(U),!H)for(var D in this)D.charAt(0)==="t"&&O.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=b)},stop:function(){this.done=!0;var H=this.tryEntries[0],D=H.completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var D=this;function W(fe,Ce){return K.type="throw",K.arg=H,D.next=fe,Ce&&(D.method="next",D.arg=b),!!Ce}for(var F=this.tryEntries.length-1;F>=0;--F){var L=this.tryEntries[F],K=L.completion;if(L.tryLoc==="root")return W("end");if(L.tryLoc<=this.prev){var ee=O.call(L,"catchLoc"),he=O.call(L,"finallyLoc");if(ee&&he){if(this.prev<L.catchLoc)return W(L.catchLoc,!0);if(this.prev<L.finallyLoc)return W(L.finallyLoc)}else if(ee){if(this.prev<L.catchLoc)return W(L.catchLoc,!0)}else if(he){if(this.prev<L.finallyLoc)return W(L.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(H,D){for(var W=this.tryEntries.length-1;W>=0;--W){var F=this.tryEntries[W];if(F.tryLoc<=this.prev&&O.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var L=F;break}}L&&(H==="break"||H==="continue")&&L.tryLoc<=D&&D<=L.finallyLoc&&(L=null);var K=L?L.completion:{};return K.type=H,K.arg=D,L?(this.method="next",this.next=L.finallyLoc,h):this.complete(K)},complete:function(H,D){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&D&&(this.next=D),h},finish:function(H){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.finallyLoc===H)return this.complete(W.completion,W.afterLoc),U(W),h}},catch:function(H){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.tryLoc===H){var F=W.completion;if(F.type==="throw"){var L=F.arg;U(W)}return L}}throw new Error("illegal catch attempt")},delegateYield:function(H,D,W){return this.delegate={iterator:N(H),resultName:D,nextLoc:W},this.method==="next"&&(this.arg=b),h}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,z,o){var M=k("buffer"),m=M.Buffer;function O(y,C){for(var A in y)C[A]=y[A]}m.from&&m.alloc&&m.allocUnsafe&&m.allocUnsafeSlow?z.exports=M:(O(M,o),o.Buffer=b);function b(y,C,A){return m(y,C,A)}O(m,b),b.from=function(y,C,A){if(typeof y=="number")throw new TypeError("Argument must not be a number");return m(y,C,A)},b.alloc=function(y,C,A){if(typeof y!="number")throw new TypeError("Argument must be a number");var g=m(y);return C!==void 0?typeof A=="string"?g.fill(C,A):g.fill(C):g.fill(0),g},b.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return m(y)},b.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return M.SlowBuffer(y)}},{buffer:73}],229:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/core-js/string/from-code-point"),O=i(m),b=k("babel-runtime/core-js/json/stringify"),y=i(b),C=k("babel-runtime/helpers/typeof"),A=i(C),g=k("babel-runtime/core-js/object/define-property"),e=i(g),f=k("babel-runtime/core-js/object/keys"),a=i(f),l=k("babel-runtime/core-js/object/create"),n=i(l);function i(r){return r&&r.__esModule?r:{default:r}}(function(r){r.parser=function(Q,J){return new h(Q,J)},r.SAXParser=h,r.SAXStream=P,r.createStream=_,r.MAX_BUFFER_LENGTH=64*1024;var c=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function h(Q,J){if(!(this instanceof h))return new h(Q,J);var ve=this;s(ve),ve.q=ve.c="",ve.bufferCheckPosition=r.MAX_BUFFER_LENGTH,ve.opt=J||{},ve.opt.lowercase=ve.opt.lowercase||ve.opt.lowercasetags,ve.looseCase=ve.opt.lowercase?"toLowerCase":"toUpperCase",ve.tags=[],ve.closed=ve.closedRoot=ve.sawRoot=!1,ve.tag=ve.error=null,ve.strict=!!Q,ve.noscript=!!(Q||ve.opt.noscript),ve.state=K.BEGIN,ve.strictEntities=ve.opt.strictEntities,ve.ENTITIES=ve.strictEntities?(0,n.default)(r.XML_ENTITIES):(0,n.default)(r.ENTITIES),ve.attribList=[],ve.opt.xmlns&&(ve.ns=(0,n.default)(T)),ve.trackPosition=ve.opt.position!==!1,ve.trackPosition&&(ve.position=ve.line=ve.column=0),he(ve,"onready")}n.default||(Object.create=function(Q){function J(){}J.prototype=Q;var ve=new J;return ve}),a.default||(Object.keys=function(Q){var J=[];for(var ve in Q)Q.hasOwnProperty(ve)&&J.push(ve);return J});function d(Q){for(var J=Math.max(r.MAX_BUFFER_LENGTH,10),ve=0,_e=0,Oe=c.length;_e<Oe;_e++){var Xe=Q[c[_e]].length;if(Xe>J)switch(c[_e]){case"textNode":Ce(Q);break;case"cdata":fe(Q,"oncdata",Q.cdata),Q.cdata="";break;case"script":fe(Q,"onscript",Q.script),Q.script="";break;default:ce(Q,"Max buffer length exceeded: "+c[_e])}ve=Math.max(ve,Xe)}var tt=r.MAX_BUFFER_LENGTH-ve;Q.bufferCheckPosition=tt+Q.position}function s(Q){for(var J=0,ve=c.length;J<ve;J++)Q[c[J]]=""}function u(Q){Ce(Q),Q.cdata!==""&&(fe(Q,"oncdata",Q.cdata),Q.cdata=""),Q.script!==""&&(fe(Q,"onscript",Q.script),Q.script="")}h.prototype={end:function(){ye(this)},write:te,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){u(this)}};var w;try{w=k("stream").Stream}catch(Q){w=function(){}}var E=r.EVENTS.filter(function(Q){return Q!=="error"&&Q!=="end"});function _(Q,J){return new P(Q,J)}function P(Q,J){if(!(this instanceof P))return new P(Q,J);w.apply(this),this._parser=new h(Q,J),this.writable=!0,this.readable=!0;var ve=this;this._parser.onend=function(){ve.emit("end")},this._parser.onerror=function(_e){ve.emit("error",_e),ve._parser.error=null},this._decoder=null,E.forEach(function(_e){(0,e.default)(ve,"on"+_e,{get:function(){return ve._parser["on"+_e]},set:function(Xe){if(!Xe)return ve.removeAllListeners(_e),ve._parser["on"+_e]=Xe,Xe;ve.on(_e,Xe)},enumerable:!0,configurable:!1})})}P.prototype=(0,n.default)(w.prototype,{constructor:{value:P}}),P.prototype.write=function(Q){if(typeof M=="function"&&typeof M.isBuffer=="function"&&M.isBuffer(Q)){if(!this._decoder){var J=k("string_decoder").StringDecoder;this._decoder=new J("utf8")}Q=this._decoder.write(Q)}return this._parser.write(Q.toString()),this.emit("data",Q),!0},P.prototype.end=function(Q){return Q&&Q.length&&this.write(Q),this._parser.end(),!0},P.prototype.on=function(Q,J){var ve=this;return!ve._parser["on"+Q]&&E.indexOf(Q)!==-1&&(ve._parser["on"+Q]=function(){var _e=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);_e.splice(0,0,Q),ve.emit.apply(ve,_e)}),w.prototype.on.call(ve,Q,J)};var R="[CDATA[",x="DOCTYPE",S="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",T={xml:S,xmlns:v},U=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,N=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,V=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function H(Q){return Q===" "||Q===`
`||Q==="\r"||Q===" "}function D(Q){return Q==='"'||Q==="'"}function W(Q){return Q===">"||H(Q)}function F(Q,J){return Q.test(J)}function L(Q,J){return!F(Q,J)}var K=0;r.STATE={BEGIN:K++,BEGIN_WHITESPACE:K++,TEXT:K++,TEXT_ENTITY:K++,OPEN_WAKA:K++,SGML_DECL:K++,SGML_DECL_QUOTED:K++,DOCTYPE:K++,DOCTYPE_QUOTED:K++,DOCTYPE_DTD:K++,DOCTYPE_DTD_QUOTED:K++,COMMENT_STARTING:K++,COMMENT:K++,COMMENT_ENDING:K++,COMMENT_ENDED:K++,CDATA:K++,CDATA_ENDING:K++,CDATA_ENDING_2:K++,PROC_INST:K++,PROC_INST_BODY:K++,PROC_INST_ENDING:K++,OPEN_TAG:K++,OPEN_TAG_SLASH:K++,ATTRIB:K++,ATTRIB_NAME:K++,ATTRIB_NAME_SAW_WHITE:K++,ATTRIB_VALUE:K++,ATTRIB_VALUE_QUOTED:K++,ATTRIB_VALUE_CLOSED:K++,ATTRIB_VALUE_UNQUOTED:K++,ATTRIB_VALUE_ENTITY_Q:K++,ATTRIB_VALUE_ENTITY_U:K++,CLOSE_TAG:K++,CLOSE_TAG_SAW_WHITE:K++,SCRIPT:K++,SCRIPT_ENDING:K++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,a.default)(r.ENTITIES).forEach(function(Q){var J=r.ENTITIES[Q],ve=typeof J=="number"?String.fromCharCode(J):J;r.ENTITIES[Q]=ve});for(var ee in r.STATE)r.STATE[r.STATE[ee]]=ee;K=r.STATE;function he(Q,J,ve){Q[J]&&Q[J](ve)}function fe(Q,J,ve){Q.textNode&&Ce(Q),he(Q,J,ve)}function Ce(Q){Q.textNode=Te(Q.opt,Q.textNode),Q.textNode&&he(Q,"ontext",Q.textNode),Q.textNode=""}function Te(Q,J){return Q.trim&&(J=J.trim()),Q.normalize&&(J=J.replace(/\s+/g," ")),J}function ce(Q,J){return Ce(Q),Q.trackPosition&&(J+=`
Line: `+Q.line+`
Column: `+Q.column+`
Char: `+Q.c),J=new Error(J),Q.error=J,he(Q,"onerror",J),Q}function ye(Q){return Q.sawRoot&&!Q.closedRoot&&Ee(Q,"Unclosed root tag"),Q.state!==K.BEGIN&&Q.state!==K.BEGIN_WHITESPACE&&Q.state!==K.TEXT&&ce(Q,"Unexpected end"),Ce(Q),Q.c="",Q.closed=!0,he(Q,"onend"),h.call(Q,Q.strict,Q.opt),Q}function Ee(Q,J){if((typeof Q=="undefined"?"undefined":(0,A.default)(Q))!=="object"||!(Q instanceof h))throw new Error("bad call to strictFail");Q.strict&&ce(Q,J)}function ue(Q){Q.strict||(Q.tagName=Q.tagName[Q.looseCase]());var J=Q.tags[Q.tags.length-1]||Q,ve=Q.tag={name:Q.tagName,attributes:{}};Q.opt.xmlns&&(ve.ns=J.ns),Q.attribList.length=0,fe(Q,"onopentagstart",ve)}function se(Q,J){var ve=Q.indexOf(":"),_e=ve<0?["",Q]:Q.split(":"),Oe=_e[0],Xe=_e[1];return J&&Q==="xmlns"&&(Oe="xmlns",Xe=""),{prefix:Oe,local:Xe}}function $(Q){if(Q.strict||(Q.attribName=Q.attribName[Q.looseCase]()),Q.attribList.indexOf(Q.attribName)!==-1||Q.tag.attributes.hasOwnProperty(Q.attribName)){Q.attribName=Q.attribValue="";return}if(Q.opt.xmlns){var J=se(Q.attribName,!0),ve=J.prefix,_e=J.local;if(ve==="xmlns")if(_e==="xml"&&Q.attribValue!==S)Ee(Q,"xml: prefix must be bound to "+S+`
Actual: `+Q.attribValue);else if(_e==="xmlns"&&Q.attribValue!==v)Ee(Q,"xmlns: prefix must be bound to "+v+`
Actual: `+Q.attribValue);else{var Oe=Q.tag,Xe=Q.tags[Q.tags.length-1]||Q;Oe.ns===Xe.ns&&(Oe.ns=(0,n.default)(Xe.ns)),Oe.ns[_e]=Q.attribValue}Q.attribList.push([Q.attribName,Q.attribValue])}else Q.tag.attributes[Q.attribName]=Q.attribValue,fe(Q,"onattribute",{name:Q.attribName,value:Q.attribValue});Q.attribName=Q.attribValue=""}function me(Q,J){if(Q.opt.xmlns){var ve=Q.tag,_e=se(Q.tagName);ve.prefix=_e.prefix,ve.local=_e.local,ve.uri=ve.ns[_e.prefix]||"",ve.prefix&&!ve.uri&&(Ee(Q,"Unbound namespace prefix: "+(0,y.default)(Q.tagName)),ve.uri=_e.prefix);var Oe=Q.tags[Q.tags.length-1]||Q;ve.ns&&Oe.ns!==ve.ns&&(0,a.default)(ve.ns).forEach(function(Et){fe(Q,"onopennamespace",{prefix:Et,uri:ve.ns[Et]})});for(var Xe=0,tt=Q.attribList.length;Xe<tt;Xe++){var lt=Q.attribList[Xe],dt=lt[0],vt=lt[1],_t=se(dt,!0),Ye=_t.prefix,je=_t.local,ht=Ye===""?"":ve.ns[Ye]||"",Bt={name:dt,value:vt,prefix:Ye,local:je,uri:ht};Ye&&Ye!=="xmlns"&&!ht&&(Ee(Q,"Unbound namespace prefix: "+(0,y.default)(Ye)),Bt.uri=Ye),Q.tag.attributes[dt]=Bt,fe(Q,"onattribute",Bt)}Q.attribList.length=0}Q.tag.isSelfClosing=!!J,Q.sawRoot=!0,Q.tags.push(Q.tag),fe(Q,"onopentag",Q.tag),J||(!Q.noscript&&Q.tagName.toLowerCase()==="script"?Q.state=K.SCRIPT:Q.state=K.TEXT,Q.tag=null,Q.tagName=""),Q.attribName=Q.attribValue="",Q.attribList.length=0}function re(Q){if(!Q.tagName){Ee(Q,"Weird empty close tag."),Q.textNode+="</>",Q.state=K.TEXT;return}if(Q.script){if(Q.tagName!=="script"){Q.script+="</"+Q.tagName+">",Q.tagName="",Q.state=K.SCRIPT;return}fe(Q,"onscript",Q.script),Q.script=""}var J=Q.tags.length,ve=Q.tagName;Q.strict||(ve=ve[Q.looseCase]());for(var _e=ve;J--;){var Oe=Q.tags[J];if(Oe.name!==_e)Ee(Q,"Unexpected close tag");else break}if(J<0){Ee(Q,"Unmatched closing tag: "+Q.tagName),Q.textNode+="</"+Q.tagName+">",Q.state=K.TEXT;return}Q.tagName=ve;for(var Xe=Q.tags.length;Xe-- >J;){var tt=Q.tag=Q.tags.pop();Q.tagName=Q.tag.name,fe(Q,"onclosetag",Q.tagName);var lt={};for(var dt in tt.ns)lt[dt]=tt.ns[dt];var vt=Q.tags[Q.tags.length-1]||Q;Q.opt.xmlns&&tt.ns!==vt.ns&&(0,a.default)(tt.ns).forEach(function(_t){var Ye=tt.ns[_t];fe(Q,"onclosenamespace",{prefix:_t,uri:Ye})})}J===0&&(Q.closedRoot=!0),Q.tagName=Q.attribValue=Q.attribName="",Q.attribList.length=0,Q.state=K.TEXT}function ae(Q){var J=Q.entity,ve=J.toLowerCase(),_e,Oe="";return Q.ENTITIES[J]?Q.ENTITIES[J]:Q.ENTITIES[ve]?Q.ENTITIES[ve]:(J=ve,J.charAt(0)==="#"&&(J.charAt(1)==="x"?(J=J.slice(2),_e=parseInt(J,16),Oe=_e.toString(16)):(J=J.slice(1),_e=parseInt(J,10),Oe=_e.toString(10))),J=J.replace(/^0+/,""),isNaN(_e)||Oe.toLowerCase()!==J?(Ee(Q,"Invalid character entity"),"&"+Q.entity+";"):(0,O.default)(_e))}function we(Q,J){J==="<"?(Q.state=K.OPEN_WAKA,Q.startTagPosition=Q.position):H(J)||(Ee(Q,"Non-whitespace before first tag."),Q.textNode=J,Q.state=K.TEXT)}function le(Q,J){var ve="";return J<Q.length&&(ve=Q.charAt(J)),ve}function te(Q){var J=this;if(this.error)throw this.error;if(J.closed)return ce(J,"Cannot write after close. Assign an onready handler.");if(Q===null)return ye(J);(typeof Q=="undefined"?"undefined":(0,A.default)(Q))==="object"&&(Q=Q.toString());for(var ve=0,_e="";!(_e=le(Q,ve++),J.c=_e,!_e);){J.trackPosition&&(J.position++,_e===`
`?(J.line++,J.column=0):J.column++);switch(J.state){case K.BEGIN:if(J.state=K.BEGIN_WHITESPACE,_e==="\uFEFF")continue;we(J,_e);continue;case K.BEGIN_WHITESPACE:we(J,_e);continue;case K.TEXT:if(J.sawRoot&&!J.closedRoot){for(var Oe=ve-1;_e&&_e!=="<"&&_e!=="&";)_e=le(Q,ve++),_e&&J.trackPosition&&(J.position++,_e===`
`?(J.line++,J.column=0):J.column++);J.textNode+=Q.substring(Oe,ve-1)}_e==="<"&&!(J.sawRoot&&J.closedRoot&&!J.strict)?(J.state=K.OPEN_WAKA,J.startTagPosition=J.position):(!H(_e)&&(!J.sawRoot||J.closedRoot)&&Ee(J,"Text data outside of root node."),_e==="&"?J.state=K.TEXT_ENTITY:J.textNode+=_e);continue;case K.SCRIPT:_e==="<"?J.state=K.SCRIPT_ENDING:J.script+=_e;continue;case K.SCRIPT_ENDING:_e==="/"?J.state=K.CLOSE_TAG:(J.script+="<"+_e,J.state=K.SCRIPT);continue;case K.OPEN_WAKA:if(_e==="!")J.state=K.SGML_DECL,J.sgmlDecl="";else if(!H(_e))if(F(U,_e))J.state=K.OPEN_TAG,J.tagName=_e;else if(_e==="/")J.state=K.CLOSE_TAG,J.tagName="";else if(_e==="?")J.state=K.PROC_INST,J.procInstName=J.procInstBody="";else{if(Ee(J,"Unencoded <"),J.startTagPosition+1<J.position){var Xe=J.position-J.startTagPosition;_e=new Array(Xe).join(" ")+_e}J.textNode+="<"+_e,J.state=K.TEXT}continue;case K.SGML_DECL:(J.sgmlDecl+_e).toUpperCase()===R?(fe(J,"onopencdata"),J.state=K.CDATA,J.sgmlDecl="",J.cdata=""):J.sgmlDecl+_e==="--"?(J.state=K.COMMENT,J.comment="",J.sgmlDecl=""):(J.sgmlDecl+_e).toUpperCase()===x?(J.state=K.DOCTYPE,(J.doctype||J.sawRoot)&&Ee(J,"Inappropriately located doctype declaration"),J.doctype="",J.sgmlDecl=""):_e===">"?(fe(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=K.TEXT):(D(_e)&&(J.state=K.SGML_DECL_QUOTED),J.sgmlDecl+=_e);continue;case K.SGML_DECL_QUOTED:_e===J.q&&(J.state=K.SGML_DECL,J.q=""),J.sgmlDecl+=_e;continue;case K.DOCTYPE:_e===">"?(J.state=K.TEXT,fe(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=_e,_e==="["?J.state=K.DOCTYPE_DTD:D(_e)&&(J.state=K.DOCTYPE_QUOTED,J.q=_e));continue;case K.DOCTYPE_QUOTED:J.doctype+=_e,_e===J.q&&(J.q="",J.state=K.DOCTYPE);continue;case K.DOCTYPE_DTD:J.doctype+=_e,_e==="]"?J.state=K.DOCTYPE:D(_e)&&(J.state=K.DOCTYPE_DTD_QUOTED,J.q=_e);continue;case K.DOCTYPE_DTD_QUOTED:J.doctype+=_e,_e===J.q&&(J.state=K.DOCTYPE_DTD,J.q="");continue;case K.COMMENT:_e==="-"?J.state=K.COMMENT_ENDING:J.comment+=_e;continue;case K.COMMENT_ENDING:_e==="-"?(J.state=K.COMMENT_ENDED,J.comment=Te(J.opt,J.comment),J.comment&&fe(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+_e,J.state=K.COMMENT);continue;case K.COMMENT_ENDED:_e!==">"?(Ee(J,"Malformed comment"),J.comment+="--"+_e,J.state=K.COMMENT):J.state=K.TEXT;continue;case K.CDATA:_e==="]"?J.state=K.CDATA_ENDING:J.cdata+=_e;continue;case K.CDATA_ENDING:_e==="]"?J.state=K.CDATA_ENDING_2:(J.cdata+="]"+_e,J.state=K.CDATA);continue;case K.CDATA_ENDING_2:_e===">"?(J.cdata&&fe(J,"oncdata",J.cdata),fe(J,"onclosecdata"),J.cdata="",J.state=K.TEXT):_e==="]"?J.cdata+="]":(J.cdata+="]]"+_e,J.state=K.CDATA);continue;case K.PROC_INST:_e==="?"?J.state=K.PROC_INST_ENDING:H(_e)?J.state=K.PROC_INST_BODY:J.procInstName+=_e;continue;case K.PROC_INST_BODY:if(!J.procInstBody&&H(_e))continue;_e==="?"?J.state=K.PROC_INST_ENDING:J.procInstBody+=_e;continue;case K.PROC_INST_ENDING:_e===">"?(fe(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=K.TEXT):(J.procInstBody+="?"+_e,J.state=K.PROC_INST_BODY);continue;case K.OPEN_TAG:F(I,_e)?J.tagName+=_e:(ue(J),_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:(H(_e)||Ee(J,"Invalid character in tag name"),J.state=K.ATTRIB));continue;case K.OPEN_TAG_SLASH:_e===">"?(me(J,!0),re(J)):(Ee(J,"Forward-slash in opening tag not followed by >"),J.state=K.ATTRIB);continue;case K.ATTRIB:if(H(_e))continue;_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):Ee(J,"Invalid attribute name");continue;case K.ATTRIB_NAME:_e==="="?J.state=K.ATTRIB_VALUE:_e===">"?(Ee(J,"Attribute without value"),J.attribValue=J.attribName,$(J),me(J)):H(_e)?J.state=K.ATTRIB_NAME_SAW_WHITE:F(I,_e)?J.attribName+=_e:Ee(J,"Invalid attribute name");continue;case K.ATTRIB_NAME_SAW_WHITE:if(_e==="=")J.state=K.ATTRIB_VALUE;else{if(H(_e))continue;Ee(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",fe(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",_e===">"?me(J):F(U,_e)?(J.attribName=_e,J.state=K.ATTRIB_NAME):(Ee(J,"Invalid attribute name"),J.state=K.ATTRIB)}continue;case K.ATTRIB_VALUE:if(H(_e))continue;D(_e)?(J.q=_e,J.state=K.ATTRIB_VALUE_QUOTED):(Ee(J,"Unquoted attribute value"),J.state=K.ATTRIB_VALUE_UNQUOTED,J.attribValue=_e);continue;case K.ATTRIB_VALUE_QUOTED:if(_e!==J.q){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=_e;continue}$(J),J.q="",J.state=K.ATTRIB_VALUE_CLOSED;continue;case K.ATTRIB_VALUE_CLOSED:H(_e)?J.state=K.ATTRIB:_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(Ee(J,"No whitespace between attributes"),J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):Ee(J,"Invalid attribute name");continue;case K.ATTRIB_VALUE_UNQUOTED:if(!W(_e)){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_U:J.attribValue+=_e;continue}$(J),_e===">"?me(J):J.state=K.ATTRIB;continue;case K.CLOSE_TAG:if(J.tagName)_e===">"?re(J):F(I,_e)?J.tagName+=_e:J.script?(J.script+="</"+J.tagName,J.tagName="",J.state=K.SCRIPT):(H(_e)||Ee(J,"Invalid tagname in closing tag"),J.state=K.CLOSE_TAG_SAW_WHITE);else{if(H(_e))continue;L(U,_e)?J.script?(J.script+="</"+_e,J.state=K.SCRIPT):Ee(J,"Invalid tagname in closing tag."):J.tagName=_e}continue;case K.CLOSE_TAG_SAW_WHITE:if(H(_e))continue;_e===">"?re(J):Ee(J,"Invalid characters in closing tag");continue;case K.TEXT_ENTITY:case K.ATTRIB_VALUE_ENTITY_Q:case K.ATTRIB_VALUE_ENTITY_U:var tt,lt;switch(J.state){case K.TEXT_ENTITY:tt=K.TEXT,lt="textNode";break;case K.ATTRIB_VALUE_ENTITY_Q:tt=K.ATTRIB_VALUE_QUOTED,lt="attribValue";break;case K.ATTRIB_VALUE_ENTITY_U:tt=K.ATTRIB_VALUE_UNQUOTED,lt="attribValue";break}_e===";"?(J[lt]+=ae(J),J.entity="",J.state=tt):F(J.entity.length?V:N,_e)?J.entity+=_e:(Ee(J,"Invalid character in entity name"),J[lt]+="&"+J.entity+_e,J.entity="",J.state=tt);continue;default:throw new Error(J,"Unknown state: "+J.state)}}return J.position>=J.bufferCheckPosition&&d(J),J}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */O.default||function(){var Q=String.fromCharCode,J=Math.floor,ve=function(){var Oe=16384,Xe=[],tt,lt,dt=-1,vt=arguments.length;if(!vt)return"";for(var _t="";++dt<vt;){var Ye=Number(arguments[dt]);if(!isFinite(Ye)||Ye<0||Ye>1114111||J(Ye)!==Ye)throw RangeError("Invalid code point: "+Ye);Ye<=65535?Xe.push(Ye):(Ye-=65536,tt=(Ye>>10)+55296,lt=Ye%1024+56320,Xe.push(tt,lt)),(dt+1===vt||Xe.length>Oe)&&(_t+=Q.apply(null,Xe),Xe.length=0)}return _t};e.default?Object.defineProperty(String,"fromCodePoint",{value:ve,configurable:!0,writable:!0}):String.fromCodePoint=ve}()})(typeof o=="undefined"?(void 0).sax={}:o)}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(k,z,o){z.exports=O;var M=k("events").EventEmitter,m=k("inherits");m(O,M),O.Readable=k("readable-stream/readable.js"),O.Writable=k("readable-stream/writable.js"),O.Duplex=k("readable-stream/duplex.js"),O.Transform=k("readable-stream/transform.js"),O.PassThrough=k("readable-stream/passthrough.js"),O.Stream=O;function O(){M.call(this)}O.prototype.pipe=function(b,y){var C=this;function A(i){b.writable&&(b.write(i)===!1&&C.pause&&C.pause())}C.on("data",A);function g(){C.readable&&C.resume&&C.resume()}b.on("drain",g),!b._isStdio&&(!y||y.end!==!1)&&(C.on("end",f),C.on("close",a));var e=!1;function f(){if(e)return;e=!0,b.end()}function a(){if(e)return;e=!0,typeof b.destroy=="function"&&b.destroy()}function l(i){if(n(),M.listenerCount(this,"error")===0)throw i}C.on("error",l),b.on("error",l);function n(){C.removeListener("data",A),b.removeListener("drain",g),C.removeListener("end",f),C.removeListener("close",a),C.removeListener("error",l),b.removeListener("error",l),C.removeListener("end",n),C.removeListener("close",n),b.removeListener("close",n)}return C.on("end",n),C.on("close",n),b.on("close",n),b.emit("pipe",C),b}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(k,z,o){(function(M){var m=k("./lib/request"),O=k("./lib/response"),b=k("xtend"),y=k("builtin-status-codes"),C=k("url"),A=o;A.request=function(g,e){typeof g=="string"?g=C.parse(g):g=b(g);var f=M.location.protocol.search(/^https?:$/)===-1?"http:":"",a=g.protocol||f,l=g.hostname||g.host,n=g.port,i=g.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),g.url=(l?a+"//"+l:"")+(n?":"+n:"")+i,g.method=(g.method||"GET").toUpperCase(),g.headers=g.headers||{};var r=new m(g);return e&&r.on("response",e),r},A.get=function(e,f){var a=A.request(e,f);return a.end(),a},A.ClientRequest=m,A.IncomingMessage=O.IncomingMessage,A.Agent=function(){},A.Agent.defaultMaxSockets=4,A.globalAgent=new A.Agent,A.STATUS_CODES=y,A.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(k,z,o){(function(M){"use strict";o.fetch=A(M.fetch)&&A(M.ReadableStream),o.writableStream=A(M.WritableStream),o.abortController=A(M.AbortController),o.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),o.blobConstructor=!0}catch(g){}var m;function O(){if(m!==void 0)return m;if(M.XMLHttpRequest){m=new M.XMLHttpRequest;try{m.open("GET",M.XDomainRequest?"/":"https://example.com")}catch(g){m=null}}else m=null;return m}function b(g){var e=O();if(!e)return!1;try{return e.responseType=g,e.responseType===g}catch(f){}return!1}var y=typeof M.ArrayBuffer!="undefined",C=y&&A(M.ArrayBuffer.prototype.slice);o.arraybuffer=o.fetch||y&&b("arraybuffer"),o.msstream=!o.fetch&&C&&b("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&y&&b("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(O()?A(O().overrideMimeType):!1),o.vbArray=A(M.VBArray);function A(g){return typeof g=="function"}m=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,z,o){(function(M,m,O){"use strict";var b=k("babel-runtime/core-js/object/keys"),y=C(b);function C(d){return d&&d.__esModule?d:{default:d}}var A=k("./capability"),g=k("inherits"),e=k("./response"),f=k("readable-stream"),a=k("to-arraybuffer"),l=e.IncomingMessage,n=e.readyStates;function i(d,s){return A.fetch&&s?"fetch":A.mozchunkedarraybuffer?"moz-chunked-arraybuffer":A.msstream?"ms-stream":A.arraybuffer&&d?"arraybuffer":A.vbArray&&d?"text:vbarray":"text"}var r=z.exports=function(d){var s=this;f.Writable.call(s),s._opts=d,s._body=[],s._headers={},d.auth&&s.setHeader("Authorization","Basic "+new O(d.auth).toString("base64")),(0,y.default)(d.headers).forEach(function(E){s.setHeader(E,d.headers[E])});var u,w=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!A.abortController)w=!1,u=!0;else if(d.mode==="prefer-streaming")u=!1;else if(d.mode==="allow-wrong-content-type")u=!A.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")u=!0;else throw new Error("Invalid value for opts.mode");s._mode=i(u,w),s._fetchTimer=null,s.on("finish",function(){s._onFinish()})};g(r,f.Writable),r.prototype.setHeader=function(d,s){var u=this,w=d.toLowerCase();if(h.indexOf(w)!==-1)return;u._headers[w]={name:d,value:s}},r.prototype.getHeader=function(d){var s=this._headers[d.toLowerCase()];return s?s.value:null},r.prototype.removeHeader=function(d){var s=this;delete s._headers[d.toLowerCase()]},r.prototype._onFinish=function(){var d=this;if(d._destroyed)return;var s=d._opts,u=d._headers,w=null;s.method!=="GET"&&s.method!=="HEAD"&&(A.arraybuffer?w=a(O.concat(d._body)):A.blobConstructor?w=new m.Blob(d._body.map(function(S){return a(S)}),{type:(u["content-type"]||{}).value||""}):w=O.concat(d._body).toString());var E=[];if((0,y.default)(u).forEach(function(S){var v=u[S].name,T=u[S].value;Array.isArray(T)?T.forEach(function(U){E.push([v,U])}):E.push([v,T])}),d._mode==="fetch"){var _=null,P=null;if(A.abortController){var R=new AbortController;_=R.signal,d._fetchAbortController=R,"requestTimeout"in s&&s.requestTimeout!==0&&(d._fetchTimer=m.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},s.requestTimeout))}m.fetch(d._opts.url,{method:d._opts.method,headers:E,body:w||void 0,mode:"cors",credentials:s.withCredentials?"include":"same-origin",signal:_}).then(function(S){d._fetchResponse=S,d._connect()},function(S){m.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",S)})}else{var x=d._xhr=new m.XMLHttpRequest;try{x.open(d._opts.method,d._opts.url,!0)}catch(S){M.nextTick(function(){d.emit("error",S)});return}"responseType"in x&&(x.responseType=d._mode.split(":")[0]),"withCredentials"in x&&(x.withCredentials=!!s.withCredentials),d._mode==="text"&&"overrideMimeType"in x&&x.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in s&&(x.timeout=s.requestTimeout,x.ontimeout=function(){d.emit("requestTimeout")}),E.forEach(function(S){x.setRequestHeader(S[0],S[1])}),d._response=null,x.onreadystatechange=function(){switch(x.readyState){case n.LOADING:case n.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(x.onprogress=function(){d._onXHRProgress()}),x.onerror=function(){if(d._destroyed)return;d.emit("error",new Error("XHR error"))};try{x.send(w)}catch(S){M.nextTick(function(){d.emit("error",S)});return}}};function c(d){try{var s=d.status;return s!==null&&s!==0}catch(u){return!1}}r.prototype._onXHRProgress=function(){var d=this;if(!c(d._xhr)||d._destroyed)return;d._response||d._connect(),d._response._onXHRProgress()},r.prototype._connect=function(){var d=this;if(d._destroyed)return;d._response=new l(d._xhr,d._fetchResponse,d._mode,d._fetchTimer),d._response.on("error",function(s){d.emit("error",s)}),d.emit("response",d._response)},r.prototype._write=function(d,s,u){var w=this;w._body.push(d),u()},r.prototype.abort=r.prototype.destroy=function(){var d=this;d._destroyed=!0,m.clearTimeout(d._fetchTimer),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort()},r.prototype.end=function(d,s,u){var w=this;typeof d=="function"&&(u=d,d=void 0),f.Writable.prototype.end.call(w,d,s,u)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(k,z,o){(function(M,m,O){"use strict";var b=k("babel-runtime/core-js/promise"),y=C(b);function C(l){return l&&l.__esModule?l:{default:l}}var A=k("./capability"),g=k("inherits"),e=k("readable-stream"),f=o.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=o.IncomingMessage=function(l,n,i,r){var c=this;if(e.Readable.call(c),c._mode=i,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){M.nextTick(function(){c.emit("close")})}),i==="fetch"){var h=function _(){s.read().then(function(P){if(c._destroyed)return;if(P.done){m.clearTimeout(r),c.push(null);return}c.push(new O(P.value)),_()}).catch(function(P){m.clearTimeout(r),c._destroyed||c.emit("error",P)})};if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach(function(_,P){c.headers[P.toLowerCase()]=_,c.rawHeaders.push(P,_)}),A.writableStream){var d=new WritableStream({write:function(P){return new y.default(function(R,x){c._destroyed?x():c.push(new O(P))?R():c._resumeFetch=R})},close:function(){m.clearTimeout(r),c._destroyed||c.push(null)},abort:function(P){c._destroyed||c.emit("error",P)}});try{n.body.pipeTo(d).catch(function(_){m.clearTimeout(r),c._destroyed||c.emit("error",_)});return}catch(_){}}var s=n.body.getReader();h()}else{c._xhr=l,c._pos=0,c.url=l.responseURL,c.statusCode=l.status,c.statusMessage=l.statusText;var u=l.getAllResponseHeaders().split(/\r?\n/);if(u.forEach(function(_){var P=_.match(/^([^:]+):\s*(.*)/);if(P){var R=P[1].toLowerCase();R==="set-cookie"?(c.headers[R]===void 0&&(c.headers[R]=[]),c.headers[R].push(P[2])):c.headers[R]!==void 0?c.headers[R]+=", "+P[2]:c.headers[R]=P[2],c.rawHeaders.push(P[1],P[2])}}),c._charset="x-user-defined",!A.overrideMimeType){var w=c.rawHeaders["mime-type"];if(w){var E=w.match(/;\s*charset=([^;])(;|$)/);E&&(c._charset=E[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};g(a,e.Readable),a.prototype._read=function(){var l=this,n=l._resumeFetch;n&&(l._resumeFetch=null,n())},a.prototype._onXHRProgress=function(){var l=this,n=l._xhr,i=null;switch(l._mode){case"text:vbarray":if(n.readyState!==f.DONE)break;try{i=new m.VBArray(n.responseBody).toArray()}catch(s){}if(i!==null){l.push(new O(i));break}case"text":try{i=n.responseText}catch(s){l._mode="text:vbarray";break}if(i.length>l._pos){var r=i.substr(l._pos);if(l._charset==="x-user-defined"){for(var c=new O(r.length),h=0;h<r.length;h++)c[h]=r.charCodeAt(h)&255;l.push(c)}else l.push(r,l._charset);l._pos=i.length}break;case"arraybuffer":if(n.readyState!==f.DONE||!n.response)break;i=n.response,l.push(new O(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=n.response,n.readyState!==f.LOADING||!i)break;l.push(new O(new Uint8Array(i)));break;case"ms-stream":if(i=n.response,n.readyState!==f.LOADING)break;var d=new m.MSStreamReader;d.onprogress=function(){d.result.byteLength>l._pos&&(l.push(new O(new Uint8Array(d.result.slice(l._pos)))),l._pos=d.result.byteLength)},d.onload=function(){l.push(null)},d.readAsArrayBuffer(i);break}l._xhr.readyState===f.DONE&&l._mode!=="ms-stream"&&l.push(null)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(k,z,o){"use strict";var M=k("safe-buffer").Buffer,m=M.isEncoding||function(d){d=""+d;switch(d&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function O(d){if(!d)return"utf8";for(var s;;)switch(d){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return d;default:if(s)return;d=(""+d).toLowerCase(),s=!0}}function b(d){var s=O(d);if(typeof s!="string"&&(M.isEncoding===m||!m(d)))throw new Error("Unknown encoding: "+d);return s||d}o.StringDecoder=y;function y(d){this.encoding=b(d);var s;switch(this.encoding){case"utf16le":this.text=l,this.end=n,s=4;break;case"utf8":this.fillLast=e,s=4;break;case"base64":this.text=i,this.end=r,s=3;break;default:this.write=c,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=M.allocUnsafe(s)}y.prototype.write=function(d){if(d.length===0)return"";var s,u;if(this.lastNeed){if(s=this.fillLast(d),s===void 0)return"";u=this.lastNeed,this.lastNeed=0}else u=0;return u<d.length?s?s+this.text(d,u):this.text(d,u):s||""},y.prototype.end=a,y.prototype.text=f,y.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length};function C(d){return d<=127?0:d>>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function A(d,s,u){var w=s.length-1;if(w<u)return 0;var E=C(s[w]);return E>=0?(E>0&&(d.lastNeed=E-1),E):--w<u||E===-2?0:(E=C(s[w]),E>=0?(E>0&&(d.lastNeed=E-2),E):--w<u||E===-2?0:(E=C(s[w]),E>=0?(E>0&&(E===2?E=0:d.lastNeed=E-3),E):0))}function g(d,s,u){if((s[0]&192)!==128)return d.lastNeed=0,"\uFFFD";if(d.lastNeed>1&&s.length>1){if((s[1]&192)!==128)return d.lastNeed=1,"\uFFFD";if(d.lastNeed>2&&s.length>2&&(s[2]&192)!==128)return d.lastNeed=2,"\uFFFD"}}function e(d){var s=this.lastTotal-this.lastNeed,u=g(this,d,s);if(u!==void 0)return u;if(this.lastNeed<=d.length)return d.copy(this.lastChar,s,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,s,0,d.length),this.lastNeed-=d.length}function f(d,s){var u=A(this,d,s);if(!this.lastNeed)return d.toString("utf8",s);this.lastTotal=u;var w=d.length-(u-this.lastNeed);return d.copy(this.lastChar,0,w),d.toString("utf8",s,w)}function a(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+"\uFFFD":s}function l(d,s){if((d.length-s)%2===0){var u=d.toString("utf16le",s);if(u){var w=u.charCodeAt(u.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],u.slice(0,-1)}return u}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",s,d.length-1)}function n(d){var s=d&&d.length?this.write(d):"";if(this.lastNeed){var u=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,u)}return s}function i(d,s){var u=(d.length-s)%3;return u===0?d.toString("base64",s):(this.lastNeed=3-u,this.lastTotal=3,u===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",s,d.length-u))}function r(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+this.lastChar.toString("base64",0,3-this.lastNeed):s}function c(d){return d.toString(this.encoding)}function h(d){return d&&d.length?this.write(d):""}},{"safe-buffer":228}],236:[function(k,z,o){(function(M,m){var O=k("process/browser.js").nextTick,b=Function.prototype.apply,y=Array.prototype.slice,C={},A=0;o.setTimeout=function(){return new g(b.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new g(b.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(e){e.close()};function g(e,f){this._id=e,this._clearFn=f}g.prototype.unref=g.prototype.ref=function(){},g.prototype.close=function(){this._clearFn.call(window,this._id)},o.enroll=function(e,f){clearTimeout(e._idleTimeoutId),e._idleTimeout=f},o.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},o._unrefActive=o.active=function(e){clearTimeout(e._idleTimeoutId);var f=e._idleTimeout;f>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},f))},o.setImmediate=typeof M=="function"?M:function(e){var f=A++,a=arguments.length<2?!1:y.call(arguments,1);return C[f]=!0,O(function(){C[f]&&(a?e.apply(null,a):e.call(null),o.clearImmediate(f))}),f},o.clearImmediate=typeof m=="function"?m:function(e){delete C[e]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,z,o){var M=k("buffer").Buffer;z.exports=function(m){if(m instanceof Uint8Array){if(m.byteOffset===0&&m.byteLength===m.buffer.byteLength)return m.buffer;if(typeof m.buffer.slice=="function")return m.buffer.slice(m.byteOffset,m.byteOffset+m.byteLength)}if(M.isBuffer(m)){for(var O=new Uint8Array(m.length),b=m.length,y=0;y<b;y++)O[y]=m[y];return O.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(k,z,o){"use strict";var M=k("punycode"),m=k("./util");o.parse=s,o.resolve=w,o.resolveObject=E,o.format=u,o.Url=O;function O(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var b=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,C=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,A=["<",">",'"',"`"," ","\r",`
`," "],g=["{","}","|","\\","^","`"].concat(A),e=["'"].concat(g),f=["%","/","?",";","#"].concat(e),a=["/","?","#"],l=255,n=/^[+a-z0-9A-Z_-]{0,63}$/,i=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,r={javascript:!0,"javascript:":!0},c={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},d=k("querystring");function s(_,P,R){if(_&&m.isObject(_)&&_ instanceof O)return _;var x=new O;return x.parse(_,P,R),x}O.prototype.parse=function(_,P,R){if(!m.isString(_))throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var x=_.indexOf("?"),S=x!==-1&&x<_.indexOf("#")?"?":"#",v=_.split(S),T=/\\/g;v[0]=v[0].replace(T,"/"),_=v.join(S);var U=_;if(U=U.trim(),!R&&_.split("#").length===1){var I=C.exec(U);if(I)return this.path=U,this.href=U,this.pathname=I[1],I[2]?(this.search=I[2],P?this.query=d.parse(this.search.substr(1)):this.query=this.search.substr(1)):P&&(this.search="",this.query={}),this}var N=b.exec(U);if(N){N=N[0];var V=N.toLowerCase();this.protocol=V,U=U.substr(N.length)}if(R||N||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var H=U.substr(0,2)==="//";H&&!(N&&c[N])&&(U=U.substr(2),this.slashes=!0)}if(!c[N]&&(H||N&&!h[N])){for(var D=-1,W=0;W<a.length;W++){var F=U.indexOf(a[W]);F!==-1&&(D===-1||F<D)&&(D=F)}var L,K;D===-1?K=U.lastIndexOf("@"):K=U.lastIndexOf("@",D),K!==-1&&(L=U.slice(0,K),U=U.slice(K+1),this.auth=decodeURIComponent(L)),D=-1;for(var W=0;W<f.length;W++){var F=U.indexOf(f[W]);F!==-1&&(D===-1||F<D)&&(D=F)}D===-1&&(D=U.length),this.host=U.slice(0,D),U=U.slice(D),this.parseHost(),this.hostname=this.hostname||"";var ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ee)for(var he=this.hostname.split(/\./),W=0,fe=he.length;W<fe;W++){var Ce=he[W];if(!Ce)continue;if(!Ce.match(n)){for(var Te="",ce=0,ye=Ce.length;ce<ye;ce++)Ce.charCodeAt(ce)>127?Te+="x":Te+=Ce[ce];if(!Te.match(n)){var Ee=he.slice(0,W),ue=he.slice(W+1),se=Ce.match(i);se&&(Ee.push(se[1]),ue.unshift(se[2])),ue.length&&(U="/"+ue.join(".")+U),this.hostname=Ee.join(".");break}}}this.hostname.length>l?this.hostname="":this.hostname=this.hostname.toLowerCase(),ee||(this.hostname=M.toASCII(this.hostname));var $=this.port?":"+this.port:"",me=this.hostname||"";this.host=me+$,this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!r[V])for(var W=0,fe=e.length;W<fe;W++){var re=e[W];if(U.indexOf(re)===-1)continue;var ae=encodeURIComponent(re);ae===re&&(ae=escape(re)),U=U.split(re).join(ae)}var we=U.indexOf("#");we!==-1&&(this.hash=U.substr(we),U=U.slice(0,we));var le=U.indexOf("?");if(le!==-1?(this.search=U.substr(le),this.query=U.substr(le+1),P&&(this.query=d.parse(this.query)),U=U.slice(0,le)):P&&(this.search="",this.query={}),U&&(this.pathname=U),h[V]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var $=this.pathname||"",te=this.search||"";this.path=$+te}return this.href=this.format(),this};function u(_){return m.isString(_)&&(_=s(_)),_ instanceof O?_.format():O.prototype.format.call(_)}O.prototype.format=function(){var _=this.auth||"";_&&(_=encodeURIComponent(_),_=_.replace(/%3A/i,":"),_+="@");var P=this.protocol||"",R=this.pathname||"",x=this.hash||"",S=!1,v="";this.host?S=_+this.host:this.hostname&&(S=_+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(S+=":"+this.port)),this.query&&m.isObject(this.query)&&Object.keys(this.query).length&&(v=d.stringify(this.query));var T=this.search||v&&"?"+v||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||h[P])&&S!==!1?(S="//"+(S||""),R&&R.charAt(0)!=="/"&&(R="/"+R)):S||(S=""),x&&x.charAt(0)!=="#"&&(x="#"+x),T&&T.charAt(0)!=="?"&&(T="?"+T),R=R.replace(/[?#]/g,function(U){return encodeURIComponent(U)}),T=T.replace("#","%23"),P+S+R+T+x};function w(_,P){return s(_,!1,!0).resolve(P)}O.prototype.resolve=function(_){return this.resolveObject(s(_,!1,!0)).format()};function E(_,P){return _?s(_,!1,!0).resolveObject(P):P}O.prototype.resolveObject=function(_){if(m.isString(_)){var P=new O;P.parse(_,!1,!0),_=P}for(var R=new O,x=Object.keys(this),S=0;S<x.length;S++){var v=x[S];R[v]=this[v]}if(R.hash=_.hash,_.href==="")return R.href=R.format(),R;if(_.slashes&&!_.protocol){for(var T=Object.keys(_),U=0;U<T.length;U++){var I=T[U];I!=="protocol"&&(R[I]=_[I])}return h[R.protocol]&&R.hostname&&!R.pathname&&(R.path=R.pathname="/"),R.href=R.format(),R}if(_.protocol&&_.protocol!==R.protocol){if(!h[_.protocol]){for(var N=Object.keys(_),V=0;V<N.length;V++){var H=N[V];R[H]=_[H]}return R.href=R.format(),R}if(R.protocol=_.protocol,!_.host&&!c[_.protocol]){for(var fe=(_.pathname||"").split("/");fe.length&&!(_.host=fe.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),fe[0]!==""&&fe.unshift(""),fe.length<2&&fe.unshift(""),R.pathname=fe.join("/")}else R.pathname=_.pathname;if(R.search=_.search,R.query=_.query,R.host=_.host||"",R.auth=_.auth,R.hostname=_.hostname||_.host,R.port=_.port,R.pathname||R.search){var D=R.pathname||"",W=R.search||"";R.path=D+W}return R.slashes=R.slashes||_.slashes,R.href=R.format(),R}var F=R.pathname&&R.pathname.charAt(0)==="/",L=_.host||_.pathname&&_.pathname.charAt(0)==="/",K=L||F||R.host&&_.pathname,ee=K,he=R.pathname&&R.pathname.split("/")||[],fe=_.pathname&&_.pathname.split("/")||[],Ce=R.protocol&&!h[R.protocol];if(Ce&&(R.hostname="",R.port=null,R.host&&(he[0]===""?he[0]=R.host:he.unshift(R.host)),R.host="",_.protocol&&(_.hostname=null,_.port=null,_.host&&(fe[0]===""?fe[0]=_.host:fe.unshift(_.host)),_.host=null),K=K&&(fe[0]===""||he[0]==="")),L)R.host=_.host||_.host===""?_.host:R.host,R.hostname=_.hostname||_.hostname===""?_.hostname:R.hostname,R.search=_.search,R.query=_.query,he=fe;else if(fe.length)he||(he=[]),he.pop(),he=he.concat(fe),R.search=_.search,R.query=_.query;else if(!m.isNullOrUndefined(_.search)){if(Ce){R.hostname=R.host=he.shift();var Te=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Te&&(R.auth=Te.shift(),R.host=R.hostname=Te.shift())}return R.search=_.search,R.query=_.query,(!m.isNull(R.pathname)||!m.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.href=R.format(),R}if(!he.length)return R.pathname=null,R.search?R.path="/"+R.search:R.path=null,R.href=R.format(),R;for(var ce=he.slice(-1)[0],ye=(R.host||_.host||he.length>1)&&(ce==="."||ce==="..")||ce==="",Ee=0,ue=he.length;ue>=0;ue--)ce=he[ue],ce==="."?he.splice(ue,1):ce===".."?(he.splice(ue,1),Ee++):Ee&&(he.splice(ue,1),Ee--);if(!K&&!ee)for(;Ee--;Ee)he.unshift("..");K&&he[0]!==""&&(!he[0]||he[0].charAt(0)!=="/")&&he.unshift(""),ye&&he.join("/").substr(-1)!=="/"&&he.push("");var se=he[0]===""||he[0]&&he[0].charAt(0)==="/";if(Ce){R.hostname=R.host=se?"":he.length?he.shift():"";var Te=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Te&&(R.auth=Te.shift(),R.host=R.hostname=Te.shift())}return K=K||R.host&&he.length,K&&!se&&he.unshift(""),he.length?R.pathname=he.join("/"):(R.pathname=null,R.path=null),(!m.isNull(R.pathname)||!m.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.auth=_.auth||R.auth,R.slashes=R.slashes||_.slashes,R.href=R.format(),R},O.prototype.parseHost=function(){var _=this.host,P=y.exec(_);P&&(P=P[0],P!==":"&&(this.port=P.substr(1)),_=_.substr(0,_.length-P.length)),_&&(this.hostname=_)}},{"./util":239,punycode:209,querystring:212}],239:[function(k,z,o){"use strict";z.exports={isString:function(M){return typeof M=="string"},isObject:function(M){return typeof M=="object"&&M!==null},isNull:function(M){return M===null},isNullOrUndefined:function(M){return M==null}}},{}],240:[function(k,z,o){(function(M){z.exports=m;function m(b,y){if(O("noDeprecation"))return b;var C=!1;function A(){if(!C){if(O("throwDeprecation"))throw new Error(y);O("traceDeprecation")?console.trace(y):console.warn(y),C=!0}return b.apply(this,arguments)}return A}function O(b){try{if(!M.localStorage)return!1}catch(C){return!1}var y=M.localStorage[b];return y==null?!1:String(y).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(k,z,o){typeof Object.create=="function"?z.exports=function(m,O){m.super_=O,m.prototype=Object.create(O.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:z.exports=function(m,O){m.super_=O;var b=function(){};b.prototype=O.prototype,m.prototype=new b,m.prototype.constructor=m}},{}],242:[function(k,z,o){z.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],243:[function(k,z,o){(function(M,m){var O=/%[sdj%]/g;o.format=function(D){if(!w(D)){for(var W=[],F=0;F<arguments.length;F++)W.push(C(arguments[F]));return W.join(" ")}for(var F=1,L=arguments,K=L.length,ee=String(D).replace(O,function(fe){if(fe==="%%")return"%";if(F>=K)return fe;switch(fe){case"%s":return String(L[F++]);case"%d":return Number(L[F++]);case"%j":try{return JSON.stringify(L[F++])}catch(Ce){return"[Circular]"}default:return fe}}),he=L[F];F<K;he=L[++F])d(he)||!R(he)?ee+=" "+he:ee+=" "+C(he);return ee},o.deprecate=function(D,W){if(_(m.process))return function(){return o.deprecate(D,W).apply(this,arguments)};if(M.noDeprecation===!0)return D;var F=!1;function L(){if(!F){if(M.throwDeprecation)throw new Error(W);M.traceDeprecation?console.trace(W):console.error(W),F=!0}return D.apply(this,arguments)}return L};var b={},y;o.debuglog=function(D){if(_(y)&&(y=M.env.NODE_DEBUG||""),D=D.toUpperCase(),!b[D])if(new RegExp("\\b"+D+"\\b","i").test(y)){var W=M.pid;b[D]=function(){var F=o.format.apply(o,arguments);console.error("%s %d: %s",D,W,F)}}else b[D]=function(){};return b[D]};function C(D,W){var F={seen:[],stylize:g};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),h(W)?F.showHidden=W:W&&o._extend(F,W),_(F.showHidden)&&(F.showHidden=!1),_(F.depth)&&(F.depth=2),_(F.colors)&&(F.colors=!1),_(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=A),f(F,D,F.depth)}o.inspect=C,C.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},C.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function A(D,W){var F=C.styles[W];return F?"["+C.colors[F][0]+"m"+D+"["+C.colors[F][1]+"m":D}function g(D,W){return D}function e(D){var W={};return D.forEach(function(F,L){W[F]=!0}),W}function f(D,W,F){if(D.customInspect&&W&&v(W.inspect)&&W.inspect!==o.inspect&&!(W.constructor&&W.constructor.prototype===W)){var L=W.inspect(F,D);return w(L)||(L=f(D,L,F)),L}var K=a(D,W);if(K)return K;var ee=Object.keys(W),he=e(ee);if(D.showHidden&&(ee=Object.getOwnPropertyNames(W)),S(W)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return l(W);if(ee.length===0){if(v(W)){var fe=W.name?": "+W.name:"";return D.stylize("[Function"+fe+"]","special")}if(P(W))return D.stylize(RegExp.prototype.toString.call(W),"regexp");if(x(W))return D.stylize(Date.prototype.toString.call(W),"date");if(S(W))return l(W)}var Ce="",Te=!1,ce=["{","}"];if(c(W)&&(Te=!0,ce=["[","]"]),v(W)){var ye=W.name?": "+W.name:"";Ce=" [Function"+ye+"]"}if(P(W)&&(Ce=" "+RegExp.prototype.toString.call(W)),x(W)&&(Ce=" "+Date.prototype.toUTCString.call(W)),S(W)&&(Ce=" "+l(W)),ee.length===0&&(!Te||W.length==0))return ce[0]+Ce+ce[1];if(F<0)return P(W)?D.stylize(RegExp.prototype.toString.call(W),"regexp"):D.stylize("[Object]","special");D.seen.push(W);var Ee;return Te?Ee=n(D,W,F,he,ee):Ee=ee.map(function(ue){return i(D,W,F,he,ue,Te)}),D.seen.pop(),r(Ee,Ce,ce)}function a(D,W){if(_(W))return D.stylize("undefined","undefined");if(w(W)){var F="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(F,"string")}if(u(W))return D.stylize(""+W,"number");if(h(W))return D.stylize(""+W,"boolean");if(d(W))return D.stylize("null","null")}function l(D){return"["+Error.prototype.toString.call(D)+"]"}function n(D,W,F,L,K){for(var ee=[],he=0,fe=W.length;he<fe;++he)H(W,String(he))?ee.push(i(D,W,F,L,String(he),!0)):ee.push("");return K.forEach(function(Ce){Ce.match(/^\d+$/)||ee.push(i(D,W,F,L,Ce,!0))}),ee}function i(D,W,F,L,K,ee){var he,fe,Ce;if(Ce=Object.getOwnPropertyDescriptor(W,K)||{value:W[K]},Ce.get?Ce.set?fe=D.stylize("[Getter/Setter]","special"):fe=D.stylize("[Getter]","special"):Ce.set&&(fe=D.stylize("[Setter]","special")),H(L,K)||(he="["+K+"]"),fe||(D.seen.indexOf(Ce.value)<0?(d(F)?fe=f(D,Ce.value,null):fe=f(D,Ce.value,F-1),fe.indexOf(`
`)>-1&&(ee?fe=fe.split(`
`).map(function(Te){return" "+Te}).join(`
`).substr(2):fe=`
`+fe.split(`
`).map(function(Te){return" "+Te}).join(`
`))):fe=D.stylize("[Circular]","special")),_(he)){if(ee&&K.match(/^\d+$/))return fe;he=JSON.stringify(""+K),he.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(he=he.substr(1,he.length-2),he=D.stylize(he,"name")):(he=he.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),he=D.stylize(he,"string"))}return he+": "+fe}function r(D,W,F){var L=0,K=D.reduce(function(ee,he){return L++,he.indexOf(`
`)>=0&&L++,ee+he.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?F[0]+(W===""?"":W+`
`)+" "+D.join(`,
`)+" "+F[1]:F[0]+W+" "+D.join(", ")+" "+F[1]}function c(D){return Array.isArray(D)}o.isArray=c;function h(D){return typeof D=="boolean"}o.isBoolean=h;function d(D){return D===null}o.isNull=d;function s(D){return D==null}o.isNullOrUndefined=s;function u(D){return typeof D=="number"}o.isNumber=u;function w(D){return typeof D=="string"}o.isString=w;function E(D){return typeof D=="symbol"}o.isSymbol=E;function _(D){return D===void 0}o.isUndefined=_;function P(D){return R(D)&&U(D)==="[object RegExp]"}o.isRegExp=P;function R(D){return typeof D=="object"&&D!==null}o.isObject=R;function x(D){return R(D)&&U(D)==="[object Date]"}o.isDate=x;function S(D){return R(D)&&(U(D)==="[object Error]"||D instanceof Error)}o.isError=S;function v(D){return typeof D=="function"}o.isFunction=v;function T(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D=="undefined"}o.isPrimitive=T,o.isBuffer=k("./support/isBuffer");function U(D){return Object.prototype.toString.call(D)}function I(D){return D<10?"0"+D.toString(10):D.toString(10)}var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var D=new Date,W=[I(D.getHours()),I(D.getMinutes()),I(D.getSeconds())].join(":");return[D.getDate(),N[D.getMonth()],W].join(" ")}o.log=function(){console.log("%s - %s",V(),o.format.apply(o,arguments))},o.inherits=k("inherits"),o._extend=function(D,W){if(!W||!R(W))return D;for(var F=Object.keys(W),L=F.length;L--;)D[F[L]]=W[F[L]];return D};function H(D,W){return Object.prototype.hasOwnProperty.call(D,W)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(k,z,o){"use strict";(function(){"use strict";o.stripBOM=function(M){return M[0]==="\uFEFF"?M.substring(1):M}}).call(void 0)},{}],245:[function(k,z,o){"use strict";var M=k("babel-runtime/helpers/typeof"),m=y(M),O=k("babel-runtime/core-js/object/keys"),b=y(O);function y(C){return C&&C.__esModule?C:{default:C}}(function(){"use strict";var C,A,g,e,f,a={}.hasOwnProperty;C=k("xmlbuilder"),A=k("./defaults").defaults,e=function(n){return typeof n=="string"&&(n.indexOf("&")>=0||n.indexOf(">")>=0||n.indexOf("<")>=0)},f=function(n){return"<![CDATA["+g(n)+"]]>"},g=function(n){return n.replace("]]>","]]]]><![CDATA[>")},o.Builder=function(){function l(n){var i,r,c;this.options={},r=A["0.2"];for(i in r){if(!a.call(r,i))continue;c=r[i],this.options[i]=c}for(i in n){if(!a.call(n,i))continue;c=n[i],this.options[i]=c}}return l.prototype.buildObject=function(n){var i,r,c,h,d;return i=this.options.attrkey,r=this.options.charkey,(0,b.default)(n).length===1&&this.options.rootName===A["0.2"].rootName?(d=(0,b.default)(n)[0],n=n[d]):d=this.options.rootName,c=function(s){return function(u,w){var E,_,P,R,x,S;if((typeof w=="undefined"?"undefined":(0,m.default)(w))!=="object")s.options.cdata&&e(w)?u.raw(f(w)):u.txt(w);else if(Array.isArray(w))for(R in w){if(!a.call(w,R))continue;_=w[R];for(x in _)P=_[x],u=c(u.ele(x),P).up()}else for(x in w){if(!a.call(w,x))continue;if(_=w[x],x===i){if((typeof _=="undefined"?"undefined":(0,m.default)(_))==="object")for(E in _)S=_[E],u=u.att(E,S)}else if(x===r)s.options.cdata&&e(_)?u=u.raw(f(_)):u=u.txt(_);else if(Array.isArray(_))for(R in _){if(!a.call(_,R))continue;P=_[R],typeof P=="string"?s.options.cdata&&e(P)?u=u.ele(x).raw(f(P)).up():u=u.ele(x,P).up():u=c(u.ele(x),P).up()}else(typeof _=="undefined"?"undefined":(0,m.default)(_))==="object"?u=c(u.ele(x),_).up():typeof _=="string"&&s.options.cdata&&e(_)?u=u.ele(x).raw(f(_)).up():(_==null&&(_=""),u=u.ele(x,_.toString()).up())}return u}}(this),h=C.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(h,n).end(this.options.renderOpts)},l}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(k,z,o){"use strict";(function(){o.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/promise"),m=e(M),O=k("babel-runtime/core-js/object/get-own-property-names"),b=e(O),y=k("babel-runtime/core-js/object/keys"),C=e(y),A=k("babel-runtime/helpers/typeof"),g=e(A);function e(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,a,l,n,i,r,c,h,d=function(E,_){return function(){return E.apply(_,arguments)}},s=function(E,_){for(var P in _)u.call(_,P)&&(E[P]=_[P]);function R(){this.constructor=E}return R.prototype=_.prototype,E.prototype=new R,E.__super__=_.prototype,E},u={}.hasOwnProperty;c=k("sax"),l=k("events"),f=k("./bom"),r=k("./processors"),h=k("timers").setImmediate,a=k("./defaults").defaults,n=function(E){return(typeof E=="undefined"?"undefined":(0,g.default)(E))==="object"&&E!=null&&(0,C.default)(E).length===0},i=function(E,_,P){var R,x,S;for(R=0,x=E.length;R<x;R++)S=E[R],_=S(_,P);return _},o.Parser=function(w){s(E,w);function E(_){this.parseStringPromise=d(this.parseStringPromise,this),this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this);var P,R,x;if(!(this instanceof o.Parser))return new o.Parser(_);this.options={},R=a["0.2"];for(P in R){if(!u.call(R,P))continue;x=R[P],this.options[P]=x}for(P in _){if(!u.call(_,P))continue;x=_[P],this.options[P]=x}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(r.normalize)),this.reset()}return E.prototype.processAsync=function(){var _,P;try{return this.remaining.length<=this.options.chunkSize?(_=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(_),this.saxParser.close()):(_=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(_),h(this.processAsync))}catch(R){if(P=R,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(P)}},E.prototype.assignOrPush=function(_,P,R){return P in _?(_[P]instanceof Array||(_[P]=[_[P]]),_[P].push(R)):this.options.explicitArray?_[P]=[R]:_[P]=R},E.prototype.reset=function(){var _,P,R,x;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(S){return function(v){if(S.saxParser.resume(),!S.saxParser.errThrown)return S.saxParser.errThrown=!0,S.emit("error",v)}}(this),this.saxParser.onend=function(S){return function(){if(!S.saxParser.ended)return S.saxParser.ended=!0,S.emit("end",S.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,x=[],_=this.options.attrkey,P=this.options.charkey,this.saxParser.onopentag=function(S){return function(v){var T,U,I,N,V;if(I={},I[P]="",!S.options.ignoreAttrs){V=v.attributes;for(T in V){if(!u.call(V,T))continue;!(_ in I)&&!S.options.mergeAttrs&&(I[_]={}),U=S.options.attrValueProcessors?i(S.options.attrValueProcessors,v.attributes[T],T):v.attributes[T],N=S.options.attrNameProcessors?i(S.options.attrNameProcessors,T):T,S.options.mergeAttrs?S.assignOrPush(I,N,U):I[_][N]=U}}return I["#name"]=S.options.tagNameProcessors?i(S.options.tagNameProcessors,v.name):v.name,S.options.xmlns&&(I[S.options.xmlnskey]={uri:v.uri,local:v.local}),x.push(I)}}(this),this.saxParser.onclosetag=function(S){return function(){var v,T,U,I,N,V,H,D,W,F;if(V=x.pop(),N=V["#name"],(!S.options.explicitChildren||!S.options.preserveChildrenOrder)&&delete V["#name"],V.cdata===!0&&(v=V.cdata,delete V.cdata),W=x[x.length-1],V[P].match(/^\s*$/)&&!v?(T=V[P],delete V[P]):(S.options.trim&&(V[P]=V[P].trim()),S.options.normalize&&(V[P]=V[P].replace(/\s{2,}/g," ").trim()),V[P]=S.options.valueProcessors?i(S.options.valueProcessors,V[P],N):V[P],(0,C.default)(V).length===1&&P in V&&!S.EXPLICIT_CHARKEY&&(V=V[P])),n(V)&&(V=S.options.emptyTag!==""?S.options.emptyTag:T),S.options.validator!=null&&(F="/"+function(){var L,K,ee;for(ee=[],L=0,K=x.length;L<K;L++)I=x[L],ee.push(I["#name"]);return ee}().concat(N).join("/"),function(){var L;try{return V=S.options.validator(F,W&&W[N],V)}catch(K){return L=K,S.emit("error",L)}}()),S.options.explicitChildren&&!S.options.mergeAttrs&&(typeof V=="undefined"?"undefined":(0,g.default)(V))==="object"){if(!S.options.preserveChildrenOrder)I={},S.options.attrkey in V&&(I[S.options.attrkey]=V[S.options.attrkey],delete V[S.options.attrkey]),!S.options.charsAsChildren&&S.options.charkey in V&&(I[S.options.charkey]=V[S.options.charkey],delete V[S.options.charkey]),(0,b.default)(V).length>0&&(I[S.options.childkey]=V),V=I;else if(W){W[S.options.childkey]=W[S.options.childkey]||[],H={};for(U in V){if(!u.call(V,U))continue;H[U]=V[U]}W[S.options.childkey].push(H),delete V["#name"],(0,C.default)(V).length===1&&P in V&&!S.EXPLICIT_CHARKEY&&(V=V[P])}}return x.length>0?S.assignOrPush(W,N,V):(S.options.explicitRoot&&(D=V,V={},V[N]=D),S.resultObject=V,S.saxParser.ended=!0,S.emit("end",S.resultObject))}}(this),R=function(S){return function(v){var T,U;if(U=x[x.length-1],U)return U[P]+=v,S.options.explicitChildren&&S.options.preserveChildrenOrder&&S.options.charsAsChildren&&(S.options.includeWhiteChars||v.replace(/\\n/g,"").trim()!=="")&&(U[S.options.childkey]=U[S.options.childkey]||[],T={"#name":"__text__"},T[P]=v,S.options.normalize&&(T[P]=T[P].replace(/\s{2,}/g," ").trim()),U[S.options.childkey].push(T)),U}}(this),this.saxParser.ontext=R,this.saxParser.oncdata=function(S){return function(v){var T;if(T=R(v),T)return T.cdata=!0}}(this)},E.prototype.parseString=function(_,P){var R;P!=null&&typeof P=="function"&&(this.on("end",function(x){return this.reset(),P(null,x)}),this.on("error",function(x){return this.reset(),P(x)}));try{return _=_.toString(),_.trim()===""?(this.emit("end",null),!0):(_=f.stripBOM(_),this.options.async?(this.remaining=_,h(this.processAsync),this.saxParser):this.saxParser.write(_).close())}catch(x){if(R=x,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw R}else return this.emit("error",R),this.saxParser.errThrown=!0}},E.prototype.parseStringPromise=function(_){return new m.default(function(P){return function(R,x){return P.parseString(_,function(S,v){return S?x(S):R(v)})}}(this))},E}(l),o.parseString=function(w,E,_){var P,R,x;return _!=null?(typeof _=="function"&&(P=_),(typeof E=="undefined"?"undefined":(0,g.default)(E))==="object"&&(R=E)):(typeof E=="function"&&(P=E),R={}),x=new o.Parser(R),x.parseString(w,P)},o.parseStringPromise=function(w,E){var _,P;return(typeof E=="undefined"?"undefined":(0,g.default)(E))==="object"&&(_=E),P=new o.Parser(_),P.parseStringPromise(w)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(k,z,o){"use strict";(function(){"use strict";var M;M=new RegExp(/(?!xmlns)^.*:/),o.normalize=function(m){return m.toLowerCase()},o.firstCharLowerCase=function(m){return m.charAt(0).toLowerCase()+m.slice(1)},o.stripPrefix=function(m){return m.replace(M,"")},o.parseNumbers=function(m){return isNaN(m)||(m=m%1===0?parseInt(m,10):parseFloat(m)),m},o.parseBooleans=function(m){return/^(?:true|false)$/i.test(m)&&(m=m.toLowerCase()==="true"),m}}).call(void 0)},{}],249:[function(k,z,o){"use strict";(function(){"use strict";var M,m,O,b,y=function(g,e){for(var f in e)C.call(e,f)&&(g[f]=e[f]);function a(){this.constructor=g}return a.prototype=e.prototype,g.prototype=new a,g.__super__=e.prototype,g},C={}.hasOwnProperty;m=k("./defaults"),M=k("./builder"),O=k("./parser"),b=k("./processors"),o.defaults=m.defaults,o.processors=b,o.ValidationError=function(A){y(g,A);function g(e){this.message=e}return g}(Error),o.Builder=M.Builder,o.Parser=O.Parser,o.parseString=O.parseString,o.parseStringPromise=O.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(k,z,o){"use strict";(function(){z.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(k,z,o){"use strict";(function(){z.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/get-prototype-of"),m=A(M),O=k("babel-runtime/helpers/typeof"),b=A(O),y=k("babel-runtime/core-js/object/assign"),C=A(y);function A(g){return g&&g.__esModule?g:{default:g}}(function(){var g,e,f,a,l,n,i,r=[].slice,c={}.hasOwnProperty;g=function(){var d,s,u,w,E,_;if(_=arguments[0],E=2<=arguments.length?r.call(arguments,1):[],l(C.default))C.default.apply(null,arguments);else for(d=0,u=E.length;d<u;d++)if(w=E[d],w!=null)for(s in w){if(!c.call(w,s))continue;_[s]=w[s]}return _},l=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},n=function(d){var s;return!!d&&((s=typeof d=="undefined"?"undefined":(0,b.default)(d))==="function"||s==="object")},f=function(d){return l(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},a=function(d){var s;if(f(d))return!d.length;for(s in d){if(!c.call(d,s))continue;return!1}return!0},i=function(d){var s,u;return n(d)&&(u=(0,m.default)(d))&&(s=u.constructor)&&typeof s=="function"&&s instanceof s&&Function.prototype.toString.call(s)===Function.prototype.toString.call(Object)},e=function(d){return l(d.valueOf)?d.valueOf():d},z.exports.assign=g,z.exports.isFunction=l,z.exports.isObject=n,z.exports.isArray=f,z.exports.isEmpty=a,z.exports.isPlainObject=i,z.exports.getValue=e}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(k,z,o){"use strict";(function(){z.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C;b=k("./NodeType"),C=k("./XMLNode"),z.exports=y=function(){function A(g,e,f){if(this.parent=g,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),e==null)throw new Error("Missing attribute name. "+this.debugInfo(e));this.name=this.stringify.name(e),this.value=this.stringify.attValue(f),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(A.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(A.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(A.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(A.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(A.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(A.prototype,"specified",{get:function(){return!0}}),A.prototype.clone=function(){return(0,m.default)(this)},A.prototype.toString=function(g){return this.options.writer.attribute(this,this.options.writer.filterOptions(g))},A.prototype.debugInfo=function(g){return g=g||this.name,g==null?"parent: <"+this.parent.name+">":"attribute: {"+g+"}, parent: <"+this.parent.name+">"},A.prototype.isEqualNode=function(g){return g.namespaceURI!==this.namespaceURI||(g.prefix!==this.prefix||g.localName!==this.localName)?!1:!(g.value!==this.value)},A}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,a){for(var l in a)g.call(a,l)&&(f[l]=a[l]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),C=k("./XMLCharacterData"),z.exports=y=function(e){A(f,e);function f(a,l){if(f.__super__.constructor.call(this,a),l==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(l)}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C=function(e,f){for(var a in f)A.call(f,a)&&(e[a]=f[a]);function l(){this.constructor=e}return l.prototype=f.prototype,e.prototype=new l,e.__super__=f.prototype,e},A={}.hasOwnProperty;y=k("./XMLNode"),z.exports=b=function(g){C(e,g);function e(f){e.__super__.constructor.call(this,f),this.value=""}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),e.prototype.clone=function(){return(0,m.default)(this)},e.prototype.substringData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.appendData=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.insertData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.deleteData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceData=function(f,a,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isEqualNode=function(f){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(f)?!(f.data!==this.data):!1},e}(y)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,a){for(var l in a)g.call(a,l)&&(f[l]=a[l]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=C=function(e){A(f,e);function f(a,l){if(f.__super__.constructor.call(this,a),l==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(l)}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),m=y(M),O=k("babel-runtime/core-js/object/create"),b=y(O);function y(C){return C&&C.__esModule?C:{default:C}}(function(){var C,A,g;A=k("./XMLDOMErrorHandler"),g=k("./XMLDOMStringList"),z.exports=C=function(){function e(){var f;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new A,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=f=(0,b.default)(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new g((0,m.default)(this.defaultParams))}}),e.prototype.getParameter=function(f){return this.params.hasOwnProperty(f)?this.params[f]:null},e.prototype.canSetParameter=function(f,a){return!0},e.prototype.setParameter=function(f,a){return a!=null?this.params[f]=a:delete this.params[f]},e}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function m(){}return m.prototype.handleError=function(O){throw new Error(O)},m}()}).call(void 0)},{}],260:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function m(){}return m.prototype.hasFeature=function(O,b){return!0},m.prototype.createDocumentType=function(O,b,y){throw new Error("This DOM method is not implemented.")},m.prototype.createDocument=function(O,b,y){throw new Error("This DOM method is not implemented.")},m.prototype.createHTMLDocument=function(O){throw new Error("This DOM method is not implemented.")},m.prototype.getFeature=function(O,b){throw new Error("This DOM method is not implemented.")},m}()}).call(void 0)},{}],261:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function m(O){this.arr=O||[]}return Object.defineProperty(m.prototype,"length",{get:function(){return this.arr.length}}),m.prototype.item=function(O){return this.arr[O]||null},m.prototype.contains=function(O){return this.arr.indexOf(O)!==-1},m}()}).call(void 0)},{}],262:[function(k,z,o){"use strict";(function(){var M,m,O,b=function(A,g){for(var e in g)y.call(g,e)&&(A[e]=g[e]);function f(){this.constructor=A}return f.prototype=g.prototype,A.prototype=new f,A.__super__=g.prototype,A},y={}.hasOwnProperty;O=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(C){b(A,C);function A(g,e,f,a,l,n){if(A.__super__.constructor.call(this,g),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(f==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(e));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(e));if(!l)throw new Error("Missing DTD attribute default. "+this.debugInfo(e));if(l.indexOf("#")!==0&&(l="#"+l),!l.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(e));if(n&&!l.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(e));this.elementName=this.stringify.name(e),this.type=M.AttributeDeclaration,this.attributeName=this.stringify.name(f),this.attributeType=this.stringify.dtdAttType(a),n&&(this.defaultValue=this.stringify.dtdAttDefault(n)),this.defaultValueType=l}return A.prototype.toString=function(g){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(g))},A}(O)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,z,o){"use strict";(function(){var M,m,O,b=function(A,g){for(var e in g)y.call(g,e)&&(A[e]=g[e]);function f(){this.constructor=A}return f.prototype=g.prototype,A.prototype=new f,A.__super__=g.prototype,A},y={}.hasOwnProperty;O=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(C){b(A,C);function A(g,e,f){if(A.__super__.constructor.call(this,g),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());f||(f="(#PCDATA)"),Array.isArray(f)&&(f="("+f.join(",")+")"),this.name=this.stringify.name(e),this.type=M.ElementDeclaration,this.value=this.stringify.dtdElementValue(f)}return A.prototype.toString=function(g){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(g))},A}(O)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,z,o){"use strict";(function(){var M,m,O,b,y=function(g,e){for(var f in e)C.call(e,f)&&(g[f]=e[f]);function a(){this.constructor=g}return a.prototype=e.prototype,g.prototype=new a,g.__super__=e.prototype,g},C={}.hasOwnProperty;b=k("./Utility").isObject,O=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(A){y(g,A);function g(e,f,a,l){if(g.__super__.constructor.call(this,e),a==null)throw new Error("Missing DTD entity name. "+this.debugInfo(a));if(l==null)throw new Error("Missing DTD entity value. "+this.debugInfo(a));if(this.pe=!!f,this.name=this.stringify.name(a),this.type=M.EntityDeclaration,!b(l))this.value=this.stringify.dtdEntityValue(l),this.internal=!0;else{if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(a));if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a));if(this.internal=!1,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(a))}}return Object.defineProperty(g.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(g.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(g.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(g.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(g.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(g.prototype,"xmlVersion",{get:function(){return null}}),g.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},g}(O)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,z,o){"use strict";(function(){var M,m,O,b=function(A,g){for(var e in g)y.call(g,e)&&(A[e]=g[e]);function f(){this.constructor=A}return f.prototype=g.prototype,A.prototype=new f,A.__super__=g.prototype,A},y={}.hasOwnProperty;O=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(C){b(A,C);function A(g,e,f){if(A.__super__.constructor.call(this,g),e==null)throw new Error("Missing DTD notation name. "+this.debugInfo(e));if(!f.pubID&&!f.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(e));this.name=this.stringify.name(e),this.type=M.NotationDeclaration,f.pubID!=null&&(this.pubID=this.stringify.dtdPubID(f.pubID)),f.sysID!=null&&(this.sysID=this.stringify.dtdSysID(f.sysID))}return Object.defineProperty(A.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(A.prototype,"systemId",{get:function(){return this.sysID}}),A.prototype.toString=function(g){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(g))},A}(O)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,z,o){"use strict";(function(){var M,m,O,b,y=function(g,e){for(var f in e)C.call(e,f)&&(g[f]=e[f]);function a(){this.constructor=g}return a.prototype=e.prototype,g.prototype=new a,g.__super__=e.prototype,g},C={}.hasOwnProperty;b=k("./Utility").isObject,O=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(A){y(g,A);function g(e,f,a,l){var n;g.__super__.constructor.call(this,e),b(f)&&(n=f,f=n.version,a=n.encoding,l=n.standalone),f||(f="1.0"),this.type=M.Declaration,this.version=this.stringify.xmlVersion(f),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),l!=null&&(this.standalone=this.stringify.xmlStandalone(l))}return g.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},g}(O)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,z,o){"use strict";(function(){var M,m,O,b,y,C,A,g,e,f=function(n,i){for(var r in i)a.call(i,r)&&(n[r]=i[r]);function c(){this.constructor=n}return c.prototype=i.prototype,n.prototype=new c,n.__super__=i.prototype,n},a={}.hasOwnProperty;e=k("./Utility").isObject,g=k("./XMLNode"),M=k("./NodeType"),m=k("./XMLDTDAttList"),b=k("./XMLDTDEntity"),O=k("./XMLDTDElement"),y=k("./XMLDTDNotation"),A=k("./XMLNamedNodeMap"),z.exports=C=function(l){f(n,l);function n(i,r,c){var h,d,s,u,w,E;if(n.__super__.constructor.call(this,i),this.type=M.DocType,i.children){for(u=i.children,d=0,s=u.length;d<s;d++)if(h=u[d],h.type===M.Element){this.name=h.name;break}}this.documentObject=i,e(r)&&(w=r,r=w.pubID,c=w.sysID),c==null&&(E=[r,c],c=E[0],r=E[1]),r!=null&&(this.pubID=this.stringify.dtdPubID(r)),c!=null&&(this.sysID=this.stringify.dtdSysID(c))}return Object.defineProperty(n.prototype,"entities",{get:function(){var r,c,h,d,s;for(d={},s=this.children,c=0,h=s.length;c<h;c++)r=s[c],r.type===M.EntityDeclaration&&!r.pe&&(d[r.name]=r);return new A(d)}}),Object.defineProperty(n.prototype,"notations",{get:function(){var r,c,h,d,s;for(d={},s=this.children,c=0,h=s.length;c<h;c++)r=s[c],r.type===M.NotationDeclaration&&(d[r.name]=r);return new A(d)}}),Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),n.prototype.element=function(i,r){var c;return c=new O(this,i,r),this.children.push(c),this},n.prototype.attList=function(i,r,c,h,d){var s;return s=new m(this,i,r,c,h,d),this.children.push(s),this},n.prototype.entity=function(i,r){var c;return c=new b(this,!1,i,r),this.children.push(c),this},n.prototype.pEntity=function(i,r){var c;return c=new b(this,!0,i,r),this.children.push(c),this},n.prototype.notation=function(i,r){var c;return c=new y(this,i,r),this.children.push(c),this},n.prototype.toString=function(i){return this.options.writer.docType(this,this.options.writer.filterOptions(i))},n.prototype.ele=function(i,r){return this.element(i,r)},n.prototype.att=function(i,r,c,h,d){return this.attList(i,r,c,h,d)},n.prototype.ent=function(i,r){return this.entity(i,r)},n.prototype.pent=function(i,r){return this.pEntity(i,r)},n.prototype.not=function(i,r){return this.notation(i,r)},n.prototype.up=function(){return this.root()||this.documentObject},n.prototype.isEqualNode=function(i){return n.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?i.name!==this.name||i.publicId!==this.publicId?!1:!(i.systemId!==this.systemId):!1},n}(g)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(k,z,o){"use strict";(function(){var M,m,O,b,y,C,A,g,e=function(l,n){for(var i in n)f.call(n,i)&&(l[i]=n[i]);function r(){this.constructor=l}return r.prototype=n.prototype,l.prototype=new r,l.__super__=n.prototype,l},f={}.hasOwnProperty;g=k("./Utility").isPlainObject,O=k("./XMLDOMImplementation"),m=k("./XMLDOMConfiguration"),y=k("./XMLNode"),M=k("./NodeType"),A=k("./XMLStringifier"),C=k("./XMLStringWriter"),z.exports=b=function(a){e(l,a);function l(n){l.__super__.constructor.call(this,null),this.name="#document",this.type=M.Document,this.documentURI=null,this.domConfig=new m,n||(n={}),n.writer||(n.writer=new C),this.options=n,this.stringify=new A(n)}return Object.defineProperty(l.prototype,"implementation",{value:new O}),Object.defineProperty(l.prototype,"doctype",{get:function(){var i,r,c,h;for(h=this.children,r=0,c=h.length;r<c;r++)if(i=h[r],i.type===M.DocType)return i;return null}}),Object.defineProperty(l.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(l.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(l.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].encoding:null}}),Object.defineProperty(l.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(l.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(l.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(l.prototype,"origin",{get:function(){return null}}),Object.defineProperty(l.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(l.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(l.prototype,"contentType",{get:function(){return null}}),l.prototype.end=function(n){var i;return i={},n?g(n)&&(i=n,n=this.options.writer):n=this.options.writer,n.document(this,n.filterOptions(i))},l.prototype.toString=function(n){return this.options.writer.document(this,this.options.writer.filterOptions(n))},l.prototype.createElement=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createTextNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createComment=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createCDATASection=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createProcessingInstruction=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createAttribute=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createEntityReference=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.importNode=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createElementNS=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createAttributeNS=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagNameNS=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementById=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.adoptNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.renameNode=function(n,i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByClassName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createEvent=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createNodeIterator=function(n,i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createTreeWalker=function(n,i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l}(y)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(k,z,o){"use strict";(function(){var M,m,O,b,y,C,A,g,e,f,a,l,n,i,r,c,h,d,s,u,w,E,_,P,R={}.hasOwnProperty;P=k("./Utility"),E=P.isObject,w=P.isFunction,_=P.isPlainObject,u=P.getValue,M=k("./NodeType"),l=k("./XMLDocument"),i=k("./XMLElement"),b=k("./XMLCData"),y=k("./XMLComment"),c=k("./XMLRaw"),s=k("./XMLText"),r=k("./XMLProcessingInstruction"),f=k("./XMLDeclaration"),a=k("./XMLDocType"),C=k("./XMLDTDAttList"),g=k("./XMLDTDEntity"),A=k("./XMLDTDElement"),e=k("./XMLDTDNotation"),O=k("./XMLAttribute"),d=k("./XMLStringifier"),h=k("./XMLStringWriter"),m=k("./WriterState"),z.exports=n=function(){function x(S,v,T){var U;this.name="?xml",this.type=M.Document,S||(S={}),U={},S.writer?_(S.writer)&&(U=S.writer,S.writer=new h):S.writer=new h,this.options=S,this.writer=S.writer,this.writerOptions=this.writer.filterOptions(U),this.stringify=new d(S),this.onDataCallback=v||function(){},this.onEndCallback=T||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return x.prototype.createChildNode=function(S){var v,T,U,I,N,V,H,D;switch(S.type){case M.CData:this.cdata(S.value);break;case M.Comment:this.comment(S.value);break;case M.Element:U={},H=S.attribs;for(T in H){if(!R.call(H,T))continue;v=H[T],U[T]=v.value}this.node(S.name,U);break;case M.Dummy:this.dummy();break;case M.Raw:this.raw(S.value);break;case M.Text:this.text(S.value);break;case M.ProcessingInstruction:this.instruction(S.target,S.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+S.constructor.name)}for(D=S.children,N=0,V=D.length;N<V;N++)I=D[N],this.createChildNode(I),I.type===M.Element&&this.up();return this},x.prototype.dummy=function(){return this},x.prototype.node=function(S,v,T){var U;if(S==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(S));return this.openCurrent(),S=u(S),v==null&&(v={}),v=u(v),E(v)||(U=[v,T],T=U[0],v=U[1]),this.currentNode=new i(this,S,v),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,T!=null&&this.text(T),this},x.prototype.element=function(S,v,T){var U,I,N,V,H,D;if(this.currentNode&&this.currentNode.type===M.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(S)||E(S)||w(S))for(V=this.options.noValidation,this.options.noValidation=!0,D=new l(this.options).element("TEMP_ROOT"),D.element(S),this.options.noValidation=V,H=D.children,I=0,N=H.length;I<N;I++)U=H[I],this.createChildNode(U),U.type===M.Element&&this.up();else this.node(S,v,T);return this},x.prototype.attribute=function(S,v){var T,U;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null&&(S=u(S)),E(S))for(T in S){if(!R.call(S,T))continue;U=S[T],this.attribute(T,U)}else w(v)&&(v=v.apply()),this.options.keepNullAttributes&&v==null?this.currentNode.attribs[S]=new O(this,S,""):v!=null&&(this.currentNode.attribs[S]=new O(this,S,v));return this},x.prototype.text=function(S){var v;return this.openCurrent(),v=new s(this,S),this.onData(this.writer.text(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.cdata=function(S){var v;return this.openCurrent(),v=new b(this,S),this.onData(this.writer.cdata(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.comment=function(S){var v;return this.openCurrent(),v=new y(this,S),this.onData(this.writer.comment(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.raw=function(S){var v;return this.openCurrent(),v=new c(this,S),this.onData(this.writer.raw(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.instruction=function(S,v){var T,U,I,N,V;if(this.openCurrent(),S!=null&&(S=u(S)),v!=null&&(v=u(v)),Array.isArray(S))for(T=0,N=S.length;T<N;T++)U=S[T],this.instruction(U);else if(E(S))for(U in S){if(!R.call(S,U))continue;I=S[U],this.instruction(U,I)}else w(v)&&(v=v.apply()),V=new r(this,S,v),this.onData(this.writer.processingInstruction(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},x.prototype.declaration=function(S,v,T){var U;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return U=new f(this,S,v,T),this.onData(this.writer.declaration(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.doctype=function(S,v,T){if(this.openCurrent(),S==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new a(this,v,T),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},x.prototype.dtdElement=function(S,v){var T;return this.openCurrent(),T=new A(this,S,v),this.onData(this.writer.dtdElement(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.attList=function(S,v,T,U,I){var N;return this.openCurrent(),N=new C(this,S,v,T,U,I),this.onData(this.writer.dtdAttList(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.entity=function(S,v){var T;return this.openCurrent(),T=new g(this,!1,S,v),this.onData(this.writer.dtdEntity(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.pEntity=function(S,v){var T;return this.openCurrent(),T=new g(this,!0,S,v),this.onData(this.writer.dtdEntity(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.notation=function(S,v){var T;return this.openCurrent(),T=new e(this,S,v),this.onData(this.writer.dtdNotation(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},x.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},x.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},x.prototype.openNode=function(S){var v,T,U,I;if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S.type===M.Element&&(this.root=S),T="",S.type===M.Element){this.writerOptions.state=m.OpenTag,T=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<"+S.name,I=S.attribs;for(U in I){if(!R.call(I,U))continue;v=I[U],T+=this.writer.attribute(v,this.writerOptions,this.currentLevel)}T+=(S.children?">":"/>")+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=m.InsideTag}else this.writerOptions.state=m.OpenTag,T=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+S.rootNodeName,S.pubID&&S.sysID?T+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(T+=' SYSTEM "'+S.sysID+'"'),S.children?(T+=" [",this.writerOptions.state=m.InsideTag):(this.writerOptions.state=m.CloseTag,T+=">"),T+=this.writer.endline(S,this.writerOptions,this.currentLevel);return this.onData(T,this.currentLevel),S.isOpen=!0}},x.prototype.closeNode=function(S){var v;if(!S.isClosed)return v="",this.writerOptions.state=m.CloseTag,S.type===M.Element?v=this.writer.indent(S,this.writerOptions,this.currentLevel)+"</"+S.name+">"+this.writer.endline(S,this.writerOptions,this.currentLevel):v=this.writer.indent(S,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=m.None,this.onData(v,this.currentLevel),S.isClosed=!0},x.prototype.onData=function(S,v){return this.documentStarted=!0,this.onDataCallback(S,v+1)},x.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},x.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},x.prototype.ele=function(){return this.element.apply(this,arguments)},x.prototype.nod=function(S,v,T){return this.node(S,v,T)},x.prototype.txt=function(S){return this.text(S)},x.prototype.dat=function(S){return this.cdata(S)},x.prototype.com=function(S){return this.comment(S)},x.prototype.ins=function(S,v){return this.instruction(S,v)},x.prototype.dec=function(S,v,T){return this.declaration(S,v,T)},x.prototype.dtd=function(S,v,T){return this.doctype(S,v,T)},x.prototype.e=function(S,v,T){return this.element(S,v,T)},x.prototype.n=function(S,v,T){return this.node(S,v,T)},x.prototype.t=function(S){return this.text(S)},x.prototype.d=function(S){return this.cdata(S)},x.prototype.c=function(S){return this.comment(S)},x.prototype.r=function(S){return this.raw(S)},x.prototype.i=function(S,v){return this.instruction(S,v)},x.prototype.att=function(){return this.currentNode&&this.currentNode.type===M.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},x.prototype.a=function(){return this.currentNode&&this.currentNode.type===M.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},x.prototype.ent=function(S,v){return this.entity(S,v)},x.prototype.pent=function(S,v){return this.pEntity(S,v)},x.prototype.not=function(S,v){return this.notation(S,v)},x}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,a){for(var l in a)g.call(a,l)&&(f[l]=a[l]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},g={}.hasOwnProperty;C=k("./XMLNode"),b=k("./NodeType"),z.exports=y=function(e){A(f,e);function f(a){f.__super__.constructor.call(this,a),this.type=b.Dummy}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(a){return""},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A,g,e,f,a,l,n=function(c,h){for(var d in h)i.call(h,d)&&(c[d]=h[d]);function s(){this.constructor=c}return s.prototype=h.prototype,c.prototype=new s,c.__super__=h.prototype,c},i={}.hasOwnProperty;l=k("./Utility"),a=l.isObject,f=l.isFunction,e=l.getValue,g=k("./XMLNode"),b=k("./NodeType"),y=k("./XMLAttribute"),A=k("./XMLNamedNodeMap"),z.exports=C=function(r){n(c,r);function c(h,d,s){var u,w,E,_;if(c.__super__.constructor.call(this,h),d==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,s!=null&&this.attribute(s),h.type===b.Document&&(this.isRoot=!0,this.documentObject=h,h.rootObject=this,h.children)){for(_=h.children,w=0,E=_.length;w<E;w++)if(u=_[w],u.type===b.DocType){u.name=this.name;break}}}return Object.defineProperty(c.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new A(this.attribs)),this.attributeMap}}),c.prototype.clone=function(){var h,d,s,u;s=(0,m.default)(this),s.isRoot&&(s.documentObject=null),s.attribs={},u=this.attribs;for(d in u){if(!i.call(u,d))continue;h=u[d],s.attribs[d]=h.clone()}return s.children=[],this.children.forEach(function(w){var E;return E=w.clone(),E.parent=s,s.children.push(E)}),s},c.prototype.attribute=function(h,d){var s,u;if(h!=null&&(h=e(h)),a(h))for(s in h){if(!i.call(h,s))continue;u=h[s],this.attribute(s,u)}else f(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.attribs[h]=new y(this,h,""):d!=null&&(this.attribs[h]=new y(this,h,d));return this},c.prototype.removeAttribute=function(h){var d,s,u;if(h==null)throw new Error("Missing attribute name. "+this.debugInfo());if(h=e(h),Array.isArray(h))for(s=0,u=h.length;s<u;s++)d=h[s],delete this.attribs[d];else delete this.attribs[h];return this},c.prototype.toString=function(h){return this.options.writer.element(this,this.options.writer.filterOptions(h))},c.prototype.att=function(h,d){return this.attribute(h,d)},c.prototype.a=function(h,d){return this.attribute(h,d)},c.prototype.getAttribute=function(h){return this.attribs.hasOwnProperty(h)?this.attribs[h].value:null},c.prototype.setAttribute=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNode=function(h){return this.attribs.hasOwnProperty(h)?this.attribs[h]:null},c.prototype.setAttributeNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNS=function(h,d,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNodeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNodeNS=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.hasAttribute=function(h){return this.attribs.hasOwnProperty(h)},c.prototype.hasAttributeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttribute=function(h,d){return this.attribs.hasOwnProperty(h)?this.attribs[h].isId:d},c.prototype.setIdAttributeNS=function(h,d,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttributeNode=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(h){var d,s,u;if(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(h))return!1;if(h.namespaceURI!==this.namespaceURI)return!1;if(h.prefix!==this.prefix)return!1;if(h.localName!==this.localName)return!1;if(h.attribs.length!==this.attribs.length)return!1;for(d=s=0,u=this.attribs.length-1;0<=u?s<=u:s>=u;d=0<=u?++s:--s)if(!this.attribs[d].isEqualNode(h.attribs[d]))return!1;return!0},c}(g)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b;z.exports=b=function(){function y(C){this.nodes=C}return Object.defineProperty(y.prototype,"length",{get:function(){return(0,m.default)(this.nodes).length||0}}),y.prototype.clone=function(){return this.nodes=null},y.prototype.getNamedItem=function(C){return this.nodes[C]},y.prototype.setNamedItem=function(C){var A;return A=this.nodes[C.nodeName],this.nodes[C.nodeName]=C,A||null},y.prototype.removeNamedItem=function(C){var A;return A=this.nodes[C],delete this.nodes[C],A||null},y.prototype.item=function(C){return this.nodes[(0,m.default)(this.nodes)[C]]||null},y.prototype.getNamedItemNS=function(C,A){throw new Error("This DOM method is not implemented.")},y.prototype.setNamedItemNS=function(C){throw new Error("This DOM method is not implemented.")},y.prototype.removeNamedItemNS=function(C,A){throw new Error("This DOM method is not implemented.")},y}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(k,z,o){"use strict";(function(){var M,m,O,b,y,C,A,g,e,f,a,l,n,i,r,c,h,d,s,u={}.hasOwnProperty;s=k("./Utility"),d=s.isObject,h=s.isFunction,c=s.isEmpty,r=s.getValue,g=null,O=null,b=null,y=null,C=null,n=null,i=null,l=null,A=null,m=null,a=null,e=null,M=null,z.exports=f=function(){function w(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,g||(g=k("./XMLElement"),O=k("./XMLCData"),b=k("./XMLComment"),y=k("./XMLDeclaration"),C=k("./XMLDocType"),n=k("./XMLRaw"),i=k("./XMLText"),l=k("./XMLProcessingInstruction"),A=k("./XMLDummy"),m=k("./NodeType"),a=k("./XMLNodeList"),e=k("./XMLNamedNodeMap"),M=k("./DocumentPosition"))}return Object.defineProperty(w.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new a(this.children)),this.childNodeList}}),Object.defineProperty(w.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(w.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){var _;return _=this.parent.children.indexOf(this),this.parent.children[_-1]||null}}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){var _;return _=this.parent.children.indexOf(this),this.parent.children[_+1]||null}}),Object.defineProperty(w.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(w.prototype,"textContent",{get:function(){var _,P,R,x,S;if(this.nodeType===m.Element||this.nodeType===m.DocumentFragment){for(S="",x=this.children,P=0,R=x.length;P<R;P++)_=x[P],_.textContent&&(S+=_.textContent);return S}else return null},set:function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),w.prototype.setParent=function(E){var _,P,R,x,S;for(this.parent=E,E&&(this.options=E.options,this.stringify=E.stringify),x=this.children,S=[],P=0,R=x.length;P<R;P++)_=x[P],S.push(_.setParent(this));return S},w.prototype.element=function(E,_,P){var R,x,S,v,T,U,I,N,V,H,D;if(U=null,_===null&&P==null&&(V=[{},null],_=V[0],P=V[1]),_==null&&(_={}),_=r(_),d(_)||(H=[_,P],P=H[0],_=H[1]),E!=null&&(E=r(E)),Array.isArray(E))for(S=0,I=E.length;S<I;S++)x=E[S],U=this.element(x);else if(h(E))U=this.element(E.apply());else if(d(E))for(T in E){if(!u.call(E,T))continue;if(D=E[T],h(D)&&(D=D.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&T.indexOf(this.stringify.convertAttKey)===0)U=this.attribute(T.substr(this.stringify.convertAttKey.length),D);else if(!this.options.separateArrayItems&&Array.isArray(D)&&c(D))U=this.dummy();else if(d(D)&&c(D))U=this.element(T);else if(!this.options.keepNullNodes&&D==null)U=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(D))for(v=0,N=D.length;v<N;v++)x=D[v],R={},R[T]=x,U=this.element(R);else d(D)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&T.indexOf(this.stringify.convertTextKey)===0?U=this.element(D):(U=this.element(T),U.element(D)):U=this.element(T,D)}else!this.options.keepNullNodes&&P===null?U=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&E.indexOf(this.stringify.convertTextKey)===0?U=this.text(P):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&E.indexOf(this.stringify.convertCDataKey)===0?U=this.cdata(P):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&E.indexOf(this.stringify.convertCommentKey)===0?U=this.comment(P):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&E.indexOf(this.stringify.convertRawKey)===0?U=this.raw(P):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&E.indexOf(this.stringify.convertPIKey)===0?U=this.instruction(E.substr(this.stringify.convertPIKey.length),P):U=this.node(E,_,P);if(U==null)throw new Error("Could not create any elements with: "+E+". "+this.debugInfo());return U},w.prototype.insertBefore=function(E,_,P){var R,x,S,v,T;if(E!=null?E.type:void 0)return S=E,v=_,S.setParent(this),v?(x=children.indexOf(v),T=children.splice(x),children.push(S),Array.prototype.push.apply(children,T)):children.push(S),S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return x=this.parent.children.indexOf(this),T=this.parent.children.splice(x),R=this.parent.element(E,_,P),Array.prototype.push.apply(this.parent.children,T),R},w.prototype.insertAfter=function(E,_,P){var R,x,S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return x=this.parent.children.indexOf(this),S=this.parent.children.splice(x+1),R=this.parent.element(E,_,P),Array.prototype.push.apply(this.parent.children,S),R},w.prototype.remove=function(){var E,_;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return E=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[E,E-E+1].concat(_=[])),this.parent},w.prototype.node=function(E,_,P){var R,x;return E!=null&&(E=r(E)),_||(_={}),_=r(_),d(_)||(x=[_,P],P=x[0],_=x[1]),R=new g(this,E,_),P!=null&&R.text(P),this.children.push(R),R},w.prototype.text=function(E){var _;return d(E)&&this.element(E),_=new i(this,E),this.children.push(_),this},w.prototype.cdata=function(E){var _;return _=new O(this,E),this.children.push(_),this},w.prototype.comment=function(E){var _;return _=new b(this,E),this.children.push(_),this},w.prototype.commentBefore=function(E){var _,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P),_=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,R),this},w.prototype.commentAfter=function(E){var _,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P+1),_=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,R),this},w.prototype.raw=function(E){var _;return _=new n(this,E),this.children.push(_),this},w.prototype.dummy=function(){var E;return E=new A(this),E},w.prototype.instruction=function(E,_){var P,R,x,S,v;if(E!=null&&(E=r(E)),_!=null&&(_=r(_)),Array.isArray(E))for(S=0,v=E.length;S<v;S++)P=E[S],this.instruction(P);else if(d(E))for(P in E){if(!u.call(E,P))continue;R=E[P],this.instruction(P,R)}else h(_)&&(_=_.apply()),x=new l(this,E,_),this.children.push(x);return this},w.prototype.instructionBefore=function(E,_){var P,R,x;return R=this.parent.children.indexOf(this),x=this.parent.children.splice(R),P=this.parent.instruction(E,_),Array.prototype.push.apply(this.parent.children,x),this},w.prototype.instructionAfter=function(E,_){var P,R,x;return R=this.parent.children.indexOf(this),x=this.parent.children.splice(R+1),P=this.parent.instruction(E,_),Array.prototype.push.apply(this.parent.children,x),this},w.prototype.declaration=function(E,_,P){var R,x;return R=this.document(),x=new y(R,E,_,P),R.children.length===0?R.children.unshift(x):R.children[0].type===m.Declaration?R.children[0]=x:R.children.unshift(x),R.root()||R},w.prototype.dtd=function(E,_){var P,R,x,S,v,T,U,I,N,V;for(R=this.document(),x=new C(R,E,_),N=R.children,S=v=0,U=N.length;v<U;S=++v)if(P=N[S],P.type===m.DocType)return R.children[S]=x,x;for(V=R.children,S=T=0,I=V.length;T<I;S=++T)if(P=V[S],P.isRoot)return R.children.splice(S,0,x),x;return R.children.push(x),x},w.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},w.prototype.root=function(){var E;for(E=this;E;){if(E.type===m.Document)return E.rootObject;if(E.isRoot)return E;E=E.parent}},w.prototype.document=function(){var E;for(E=this;E;){if(E.type===m.Document)return E;E=E.parent}},w.prototype.end=function(E){return this.document().end(E)},w.prototype.prev=function(){var E;if(E=this.parent.children.indexOf(this),E<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[E-1]},w.prototype.next=function(){var E;if(E=this.parent.children.indexOf(this),E===-1||E===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[E+1]},w.prototype.importDocument=function(E){var _;return _=E.root().clone(),_.parent=this,_.isRoot=!1,this.children.push(_),this},w.prototype.debugInfo=function(E){var _,P;return E=E||this.name,E==null&&!((_=this.parent)!=null?_.name:void 0)?"":E==null?"parent: <"+this.parent.name+">":((P=this.parent)!=null?P.name:void 0)?"node: <"+E+">, parent: <"+this.parent.name+">":"node: <"+E+">"},w.prototype.ele=function(E,_,P){return this.element(E,_,P)},w.prototype.nod=function(E,_,P){return this.node(E,_,P)},w.prototype.txt=function(E){return this.text(E)},w.prototype.dat=function(E){return this.cdata(E)},w.prototype.com=function(E){return this.comment(E)},w.prototype.ins=function(E,_){return this.instruction(E,_)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(E,_,P){return this.declaration(E,_,P)},w.prototype.e=function(E,_,P){return this.element(E,_,P)},w.prototype.n=function(E,_,P){return this.node(E,_,P)},w.prototype.t=function(E){return this.text(E)},w.prototype.d=function(E){return this.cdata(E)},w.prototype.c=function(E){return this.comment(E)},w.prototype.r=function(E){return this.raw(E)},w.prototype.i=function(E,_){return this.instruction(E,_)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(E){return this.importDocument(E)},w.prototype.replaceChild=function(E,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.appendChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasChildNodes=function(){return this.children.length!==0},w.prototype.cloneNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isSupported=function(E,_){return!0},w.prototype.hasAttributes=function(){return this.attribs.length!==0},w.prototype.compareDocumentPosition=function(E){var _,P;return _=this,_===E?0:this.document()!==E.document()?(P=M.Disconnected|M.ImplementationSpecific,Math.random()<.5?P|=M.Preceding:P|=M.Following,P):_.isAncestor(E)?M.Contains|M.Preceding:_.isDescendant(E)?M.Contains|M.Following:_.isPreceding(E)?M.Preceding:M.Following},w.prototype.isSameNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupPrefix=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isDefaultNamespace=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupNamespaceURI=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(E){var _,P,R;if(E.nodeType!==this.nodeType)return!1;if(E.children.length!==this.children.length)return!1;for(_=P=0,R=this.children.length-1;0<=R?P<=R:P>=R;_=0<=R?++P:--P)if(!this.children[_].isEqualNode(E.children[_]))return!1;return!0},w.prototype.getFeature=function(E,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setUserData=function(E,_,P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getUserData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.contains=function(E){return E?E===this||this.isDescendant(E):!1},w.prototype.isDescendant=function(E){var _,P,R,x,S;for(S=this.children,R=0,x=S.length;R<x;R++){if(_=S[R],E===_)return!0;if(P=_.isDescendant(E),P)return!0}return!1},w.prototype.isAncestor=function(E){return E.isDescendant(this)},w.prototype.isPreceding=function(E){var _,P;return _=this.treePosition(E),P=this.treePosition(this),_===-1||P===-1?!1:_<P},w.prototype.isFollowing=function(E){var _,P;return _=this.treePosition(E),P=this.treePosition(this),_===-1||P===-1?!1:_>P},w.prototype.treePosition=function(E){var _,P;return P=0,_=!1,this.foreachTreeNode(this.document(),function(R){if(P++,!_&&R===E)return _=!0}),_?P:-1},w.prototype.foreachTreeNode=function(E,_){var P,R,x,S,v;for(E||(E=this.document()),S=E.children,R=0,x=S.length;R<x;R++){if(P=S[R],v=_(P))return v;if(v=this.foreachTreeNode(P,_),v)return v}},w}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function m(O){this.nodes=O}return Object.defineProperty(m.prototype,"length",{get:function(){return this.nodes.length||0}}),m.prototype.clone=function(){return this.nodes=null},m.prototype.item=function(O){return this.nodes[O]||null},m}()}).call(void 0)},{}],275:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,a){for(var l in a)g.call(a,l)&&(f[l]=a[l]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=C=function(e){A(f,e);function f(a,l,n){if(f.__super__.constructor.call(this,a),l==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(l),this.name=this.target,n&&(this.value=this.stringify.insValue(n))}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},f.prototype.isEqualNode=function(a){return f.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?!(a.target!==this.target):!1},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,a){for(var l in a)g.call(a,l)&&(f[l]=a[l]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLNode"),z.exports=C=function(e){A(f,e);function f(a,l){if(f.__super__.constructor.call(this,a),l==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(l)}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(k,z,o){"use strict";(function(){var M,m,O,b,y=function(g,e){for(var f in e)C.call(e,f)&&(g[f]=e[f]);function a(){this.constructor=g}return a.prototype=e.prototype,g.prototype=new a,g.__super__=e.prototype,g},C={}.hasOwnProperty;M=k("./NodeType"),b=k("./XMLWriterBase"),m=k("./WriterState"),z.exports=O=function(A){y(g,A);function g(e,f){this.stream=e,g.__super__.constructor.call(this,f)}return g.prototype.endline=function(e,f,a){return e.isLastRootNode&&f.state===m.CloseTag?"":g.__super__.endline.call(this,e,f,a)},g.prototype.document=function(e,f){var a,l,n,i,r,c,h,d,s;for(h=e.children,l=n=0,r=h.length;n<r;l=++n)a=h[l],a.isLastRootNode=l===e.children.length-1;for(f=this.filterOptions(f),d=e.children,s=[],i=0,c=d.length;i<c;i++)a=d[i],s.push(this.writeChildNode(a,f,0));return s},g.prototype.attribute=function(e,f,a){return this.stream.write(g.__super__.attribute.call(this,e,f,a))},g.prototype.cdata=function(e,f,a){return this.stream.write(g.__super__.cdata.call(this,e,f,a))},g.prototype.comment=function(e,f,a){return this.stream.write(g.__super__.comment.call(this,e,f,a))},g.prototype.declaration=function(e,f,a){return this.stream.write(g.__super__.declaration.call(this,e,f,a))},g.prototype.docType=function(e,f,a){var l,n,i,r;if(a||(a=0),this.openNode(e,f,a),f.state=m.OpenTag,this.stream.write(this.indent(e,f,a)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e,f,a)),f.state=m.InsideTag,r=e.children,n=0,i=r.length;n<i;n++)l=r[n],this.writeChildNode(l,f,a+1);f.state=m.CloseTag,this.stream.write("]")}return f.state=m.CloseTag,this.stream.write(f.spaceBeforeSlash+">"),this.stream.write(this.endline(e,f,a)),f.state=m.None,this.closeNode(e,f,a)},g.prototype.element=function(e,f,a){var l,n,i,r,c,h,d,s,u,w;a||(a=0),this.openNode(e,f,a),f.state=m.OpenTag,this.stream.write(this.indent(e,f,a)+"<"+e.name),u=e.attribs;for(d in u){if(!C.call(u,d))continue;l=u[d],this.attribute(l,f,a)}if(i=e.children.length,r=i===0?null:e.children[0],i===0||e.children.every(function(E){return(E.type===M.Text||E.type===M.Raw)&&E.value===""}))f.allowEmpty?(this.stream.write(">"),f.state=m.CloseTag,this.stream.write("</"+e.name+">")):(f.state=m.CloseTag,this.stream.write(f.spaceBeforeSlash+"/>"));else if(f.pretty&&i===1&&(r.type===M.Text||r.type===M.Raw)&&r.value!=null)this.stream.write(">"),f.state=m.InsideTag,f.suppressPrettyCount++,s=!0,this.writeChildNode(r,f,a+1),f.suppressPrettyCount--,s=!1,f.state=m.CloseTag,this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.endline(e,f,a)),f.state=m.InsideTag,w=e.children,c=0,h=w.length;c<h;c++)n=w[c],this.writeChildNode(n,f,a+1);f.state=m.CloseTag,this.stream.write(this.indent(e,f,a)+"</"+e.name+">")}return this.stream.write(this.endline(e,f,a)),f.state=m.None,this.closeNode(e,f,a)},g.prototype.processingInstruction=function(e,f,a){return this.stream.write(g.__super__.processingInstruction.call(this,e,f,a))},g.prototype.raw=function(e,f,a){return this.stream.write(g.__super__.raw.call(this,e,f,a))},g.prototype.text=function(e,f,a){return this.stream.write(g.__super__.text.call(this,e,f,a))},g.prototype.dtdAttList=function(e,f,a){return this.stream.write(g.__super__.dtdAttList.call(this,e,f,a))},g.prototype.dtdElement=function(e,f,a){return this.stream.write(g.__super__.dtdElement.call(this,e,f,a))},g.prototype.dtdEntity=function(e,f,a){return this.stream.write(g.__super__.dtdEntity.call(this,e,f,a))},g.prototype.dtdNotation=function(e,f,a){return this.stream.write(g.__super__.dtdNotation.call(this,e,f,a))},g}(b)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,z,o){"use strict";(function(){var M,m,O=function(C,A){for(var g in A)b.call(A,g)&&(C[g]=A[g]);function e(){this.constructor=C}return e.prototype=A.prototype,C.prototype=new e,C.__super__=A.prototype,C},b={}.hasOwnProperty;m=k("./XMLWriterBase"),z.exports=M=function(y){O(C,y);function C(A){C.__super__.constructor.call(this,A)}return C.prototype.document=function(A,g){var e,f,a,l,n;for(g=this.filterOptions(g),l="",n=A.children,f=0,a=n.length;f<a;f++)e=n[f],l+=this.writeChildNode(e,g,0);return g.pretty&&l.slice(-g.newline.length)===g.newline&&(l=l.slice(0,-g.newline.length)),l},C}(m)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,z,o){"use strict";(function(){var M,m=function(y,C){return function(){return y.apply(C,arguments)}},O={}.hasOwnProperty;z.exports=M=function(){function b(y){this.assertLegalName=m(this.assertLegalName,this),this.assertLegalChar=m(this.assertLegalChar,this);var C,A,g;y||(y={}),this.options=y,this.options.version||(this.options.version="1.0"),A=y.stringify||{};for(C in A){if(!O.call(A,C))continue;g=A[C],this[C]=g}}return b.prototype.name=function(y){return this.options.noValidation?y:this.assertLegalName(""+y||"")},b.prototype.text=function(y){return this.options.noValidation?y:this.assertLegalChar(this.textEscape(""+y||""))},b.prototype.cdata=function(y){return this.options.noValidation?y:(y=""+y||"",y=y.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(y))},b.prototype.comment=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+y);return this.assertLegalChar(y)},b.prototype.raw=function(y){return this.options.noValidation?y:""+y||""},b.prototype.attValue=function(y){return this.options.noValidation?y:this.assertLegalChar(this.attEscape(y=""+y||""))},b.prototype.insTarget=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.insValue=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/\?>/))throw new Error("Invalid processing instruction value: "+y);return this.assertLegalChar(y)},b.prototype.xmlVersion=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+y);return y},b.prototype.xmlEncoding=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+y);return this.assertLegalChar(y)},b.prototype.xmlStandalone=function(y){return this.options.noValidation?y:y?"yes":"no"},b.prototype.dtdPubID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdSysID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdElementValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdAttType=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdAttDefault=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdEntityValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdNData=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.convertAttKey="@",b.prototype.convertPIKey="?",b.prototype.convertTextKey="#text",b.prototype.convertCDataKey="#cdata",b.prototype.convertCommentKey="#comment",b.prototype.convertRawKey="#raw",b.prototype.assertLegalChar=function(y){var C,A;if(this.options.noValidation)return y;if(C="",this.options.version==="1.0"){if(C=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,A=y.match(C))throw new Error("Invalid character in string: "+y+" at index "+A.index)}else if(this.options.version==="1.1"&&(C=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,A=y.match(C)))throw new Error("Invalid character in string: "+y+" at index "+A.index);return y},b.prototype.assertLegalName=function(y){var C;if(this.options.noValidation)return y;if(this.assertLegalChar(y),C=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!y.match(C))throw new Error("Invalid character in name");return y},b.prototype.textEscape=function(y){var C;return this.options.noValidation?y:(C=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(C,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},b.prototype.attEscape=function(y){var C;return this.options.noValidation?y:(C=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(C,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},b}()}).call(void 0)},{}],280:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,a){for(var l in a)g.call(a,l)&&(f[l]=a[l]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=C=function(e){A(f,e);function f(a,l){if(f.__super__.constructor.call(this,a),l==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(l)}return Object.defineProperty(f.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(f.prototype,"wholeText",{get:function(){var l,n,i;for(i="",n=this.previousSibling;n;)i=n.data+i,n=n.previousSibling;for(i+=this.data,l=this.nextSibling;l;)i=i+l.data,l=l.nextSibling;return i}}),f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},f.prototype.splitText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.replaceWholeText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(k,z,o){"use strict";(function(){var M,m,O,b,y,C,A,g,e,f,a,l,n,i,r,c,h,d={}.hasOwnProperty;h=k("./Utility").assign,M=k("./NodeType"),e=k("./XMLDeclaration"),f=k("./XMLDocType"),O=k("./XMLCData"),b=k("./XMLComment"),l=k("./XMLElement"),i=k("./XMLRaw"),r=k("./XMLText"),n=k("./XMLProcessingInstruction"),a=k("./XMLDummy"),y=k("./XMLDTDAttList"),C=k("./XMLDTDElement"),A=k("./XMLDTDEntity"),g=k("./XMLDTDNotation"),m=k("./WriterState"),z.exports=c=function(){function s(u){var w,E,_;u||(u={}),this.options=u,E=u.writer||{};for(w in E){if(!d.call(E,w))continue;_=E[w],this["_"+w]=this[w],this[w]=_}}return s.prototype.filterOptions=function(u){var w,E,_,P,R,x,S,v;return u||(u={}),u=h({},this.options,u),w={writer:this},w.pretty=u.pretty||!1,w.allowEmpty=u.allowEmpty||!1,w.indent=(E=u.indent)!=null?E:" ",w.newline=(_=u.newline)!=null?_:`
`,w.offset=(P=u.offset)!=null?P:0,w.dontPrettyTextNodes=(R=(x=u.dontPrettyTextNodes)!=null?x:u.dontprettytextnodes)!=null?R:0,w.spaceBeforeSlash=(S=(v=u.spaceBeforeSlash)!=null?v:u.spacebeforeslash)!=null?S:"",w.spaceBeforeSlash===!0&&(w.spaceBeforeSlash=" "),w.suppressPrettyCount=0,w.user={},w.state=m.None,w},s.prototype.indent=function(u,w,E){var _;return!w.pretty||w.suppressPrettyCount?"":w.pretty&&(_=(E||0)+w.offset+1,_>0)?new Array(_).join(w.indent):""},s.prototype.endline=function(u,w,E){return!w.pretty||w.suppressPrettyCount?"":w.newline},s.prototype.attribute=function(u,w,E){var _;return this.openAttribute(u,w,E),_=" "+u.name+'="'+u.value+'"',this.closeAttribute(u,w,E),_},s.prototype.cdata=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E)+"<![CDATA[",w.state=m.InsideTag,_+=u.value,w.state=m.CloseTag,_+="]]>"+this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.comment=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E)+"<!-- ",w.state=m.InsideTag,_+=u.value,w.state=m.CloseTag,_+=" -->"+this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.declaration=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E)+"<?xml",w.state=m.InsideTag,_+=' version="'+u.version+'"',u.encoding!=null&&(_+=' encoding="'+u.encoding+'"'),u.standalone!=null&&(_+=' standalone="'+u.standalone+'"'),w.state=m.CloseTag,_+=w.spaceBeforeSlash+"?>",_+=this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.docType=function(u,w,E){var _,P,R,x,S;if(E||(E=0),this.openNode(u,w,E),w.state=m.OpenTag,x=this.indent(u,w,E),x+="<!DOCTYPE "+u.root().name,u.pubID&&u.sysID?x+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.sysID&&(x+=' SYSTEM "'+u.sysID+'"'),u.children.length>0){for(x+=" [",x+=this.endline(u,w,E),w.state=m.InsideTag,S=u.children,P=0,R=S.length;P<R;P++)_=S[P],x+=this.writeChildNode(_,w,E+1);w.state=m.CloseTag,x+="]"}return w.state=m.CloseTag,x+=w.spaceBeforeSlash+">",x+=this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),x},s.prototype.element=function(u,w,E){var _,P,R,x,S,v,T,U,I,N,V,H,D,W;E||(E=0),N=!1,V="",this.openNode(u,w,E),w.state=m.OpenTag,V+=this.indent(u,w,E)+"<"+u.name,H=u.attribs;for(I in H){if(!d.call(H,I))continue;_=H[I],V+=this.attribute(_,w,E)}if(R=u.children.length,x=R===0?null:u.children[0],R===0||u.children.every(function(F){return(F.type===M.Text||F.type===M.Raw)&&F.value===""}))w.allowEmpty?(V+=">",w.state=m.CloseTag,V+="</"+u.name+">"+this.endline(u,w,E)):(w.state=m.CloseTag,V+=w.spaceBeforeSlash+"/>"+this.endline(u,w,E));else if(w.pretty&&R===1&&(x.type===M.Text||x.type===M.Raw)&&x.value!=null)V+=">",w.state=m.InsideTag,w.suppressPrettyCount++,N=!0,V+=this.writeChildNode(x,w,E+1),w.suppressPrettyCount--,N=!1,w.state=m.CloseTag,V+="</"+u.name+">"+this.endline(u,w,E);else{if(w.dontPrettyTextNodes){for(D=u.children,S=0,T=D.length;S<T;S++)if(P=D[S],(P.type===M.Text||P.type===M.Raw)&&P.value!=null){w.suppressPrettyCount++,N=!0;break}}for(V+=">"+this.endline(u,w,E),w.state=m.InsideTag,W=u.children,v=0,U=W.length;v<U;v++)P=W[v],V+=this.writeChildNode(P,w,E+1);w.state=m.CloseTag,V+=this.indent(u,w,E)+"</"+u.name+">",N&&w.suppressPrettyCount--,V+=this.endline(u,w,E),w.state=m.None}return this.closeNode(u,w,E),V},s.prototype.writeChildNode=function(u,w,E){switch(u.type){case M.CData:return this.cdata(u,w,E);case M.Comment:return this.comment(u,w,E);case M.Element:return this.element(u,w,E);case M.Raw:return this.raw(u,w,E);case M.Text:return this.text(u,w,E);case M.ProcessingInstruction:return this.processingInstruction(u,w,E);case M.Dummy:return"";case M.Declaration:return this.declaration(u,w,E);case M.DocType:return this.docType(u,w,E);case M.AttributeDeclaration:return this.dtdAttList(u,w,E);case M.ElementDeclaration:return this.dtdElement(u,w,E);case M.EntityDeclaration:return this.dtdEntity(u,w,E);case M.NotationDeclaration:return this.dtdNotation(u,w,E);default:throw new Error("Unknown XML node type: "+u.constructor.name)}},s.prototype.processingInstruction=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E)+"<?",w.state=m.InsideTag,_+=u.target,u.value&&(_+=" "+u.value),w.state=m.CloseTag,_+=w.spaceBeforeSlash+"?>",_+=this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.raw=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E),w.state=m.InsideTag,_+=u.value,w.state=m.CloseTag,_+=this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.text=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E),w.state=m.InsideTag,_+=u.value,w.state=m.CloseTag,_+=this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.dtdAttList=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E)+"<!ATTLIST",w.state=m.InsideTag,_+=" "+u.elementName+" "+u.attributeName+" "+u.attributeType,u.defaultValueType!=="#DEFAULT"&&(_+=" "+u.defaultValueType),u.defaultValue&&(_+=' "'+u.defaultValue+'"'),w.state=m.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.dtdElement=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E)+"<!ELEMENT",w.state=m.InsideTag,_+=" "+u.name+" "+u.value,w.state=m.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.dtdEntity=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E)+"<!ENTITY",w.state=m.InsideTag,u.pe&&(_+=" %"),_+=" "+u.name,u.value?_+=' "'+u.value+'"':(u.pubID&&u.sysID?_+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.sysID&&(_+=' SYSTEM "'+u.sysID+'"'),u.nData&&(_+=" NDATA "+u.nData)),w.state=m.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.dtdNotation=function(u,w,E){var _;return this.openNode(u,w,E),w.state=m.OpenTag,_=this.indent(u,w,E)+"<!NOTATION",w.state=m.InsideTag,_+=" "+u.name,u.pubID&&u.sysID?_+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.pubID?_+=' PUBLIC "'+u.pubID+'"':u.sysID&&(_+=' SYSTEM "'+u.sysID+'"'),w.state=m.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(u,w,E),w.state=m.None,this.closeNode(u,w,E),_},s.prototype.openNode=function(u,w,E){},s.prototype.closeNode=function(u,w,E){},s.prototype.openAttribute=function(u,w,E){},s.prototype.closeAttribute=function(u,w,E){},s}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(k,z,o){"use strict";(function(){var M,m,O,b,y,C,A,g,e,f;f=k("./Utility"),g=f.assign,e=f.isFunction,O=k("./XMLDOMImplementation"),b=k("./XMLDocument"),y=k("./XMLDocumentCB"),A=k("./XMLStringWriter"),C=k("./XMLStreamWriter"),M=k("./NodeType"),m=k("./WriterState"),z.exports.create=function(a,l,n,i){var r,c;if(a==null)throw new Error("Root element needs a name.");return i=g({},l,n,i),r=new b(i),c=r.element(a),i.headless||(r.declaration(i),(i.pubID!=null||i.sysID!=null)&&r.dtd(i)),c},z.exports.begin=function(a,l,n){var i;return e(a)&&(i=[a,l],l=i[0],n=i[1],a={}),l?new y(a,l,n):new b(a)},z.exports.stringWriter=function(a){return new A(a)},z.exports.streamWriter=function(a,l){return new C(a,l)},z.exports.implementation=new O,z.exports.nodeType=M,z.exports.writerState=m}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(k,z,o){z.exports=m;var M=Object.prototype.hasOwnProperty;function m(){for(var O={},b=0;b<arguments.length;b++){var y=arguments[b];for(var C in y)M.call(y,C)&&(O[C]=y[C])}return O}},{}],284:[function(k,z,o){"use strict";var M=k("buffer").Buffer,m=k("./sha"),O=k("./md5"),b={sha1:m,md5:O},y=64,C=M.alloc(y);C.fill(0);function A(f,a,l){M.isBuffer(a)||(a=M.from(a)),M.isBuffer(l)||(l=M.from(l)),a.length>y?a=f(a):a.length<y&&(a=M.concat([a,C],y));for(var n=M.alloc(y),i=M.alloc(y),r=0;r<y;r++)n[r]=a[r]^54,i[r]=a[r]^92;var c=f(M.concat([n,l]));return f(M.concat([i,c]))}function g(f,a){f=f||"sha1";var l=b[f],n=[],i=0;return l||e("algorithm:",f,"is not yet supported"),{update:function(c){return M.isBuffer(c)||(c=M.from(c)),n.push(c),i+=c.length,this},digest:function(c){var h=M.concat(n),d=a?A(l,a,h):l(h);return n=null,c?d.toString(c):d}}}function e(){var f=[].slice.call(arguments).join(" ");throw new Error([f,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}o.createHash=function(f){return g(f)},o.createHmac=function(f,a){return g(f,a)},o.createCredentials=function(){e("sorry,createCredentials is not implemented yet")},o.createCipher=function(){e("sorry,createCipher is not implemented yet")},o.createCipheriv=function(){e("sorry,createCipheriv is not implemented yet")},o.createDecipher=function(){e("sorry,createDecipher is not implemented yet")},o.createDecipheriv=function(){e("sorry,createDecipheriv is not implemented yet")},o.createSign=function(){e("sorry,createSign is not implemented yet")},o.createVerify=function(){e("sorry,createVerify is not implemented yet")},o.createDiffieHellman=function(){e("sorry,createDiffieHellman is not implemented yet")},o.pbkdf2=function(){e("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(k,z,o){"use strict";var M=k("buffer").Buffer,m=4,O=M.alloc(m);O.fill(0);var b=8;function y(g,e){if(g.length%m!==0){var f=g.length+(m-g.length%m);g=M.concat([g,O],f)}for(var a=[],l=e?g.readInt32BE:g.readInt32LE,n=0;n<g.length;n+=m)a.push(l.call(g,n));return a}function C(g,e,f){for(var a=M.alloc(e),l=f?a.writeInt32BE:a.writeInt32LE,n=0;n<g.length;n++)l.call(a,g[n],n*4,!0);return a}function A(g,e,f,a){M.isBuffer(g)||(g=M.from(g));var l=e(y(g,a),g.length*b);return C(l,f,a)}z.exports={hash:A}},{buffer:73}],286:[function(k,z,o){"use strict";var M=k("./helpers");function m(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function O(a,l){a[l>>5]|=128<<l%32,a[(l+64>>>9<<4)+14]=l;for(var n=1732584193,i=-271733879,r=-1732584194,c=271733878,h=0;h<a.length;h+=16){var d=n,s=i,u=r,w=c;n=y(n,i,r,c,a[h+0],7,-680876936),c=y(c,n,i,r,a[h+1],12,-389564586),r=y(r,c,n,i,a[h+2],17,606105819),i=y(i,r,c,n,a[h+3],22,-1044525330),n=y(n,i,r,c,a[h+4],7,-176418897),c=y(c,n,i,r,a[h+5],12,1200080426),r=y(r,c,n,i,a[h+6],17,-1473231341),i=y(i,r,c,n,a[h+7],22,-45705983),n=y(n,i,r,c,a[h+8],7,1770035416),c=y(c,n,i,r,a[h+9],12,-1958414417),r=y(r,c,n,i,a[h+10],17,-42063),i=y(i,r,c,n,a[h+11],22,-1990404162),n=y(n,i,r,c,a[h+12],7,1804603682),c=y(c,n,i,r,a[h+13],12,-40341101),r=y(r,c,n,i,a[h+14],17,-1502002290),i=y(i,r,c,n,a[h+15],22,1236535329),n=C(n,i,r,c,a[h+1],5,-165796510),c=C(c,n,i,r,a[h+6],9,-1069501632),r=C(r,c,n,i,a[h+11],14,643717713),i=C(i,r,c,n,a[h+0],20,-373897302),n=C(n,i,r,c,a[h+5],5,-701558691),c=C(c,n,i,r,a[h+10],9,38016083),r=C(r,c,n,i,a[h+15],14,-660478335),i=C(i,r,c,n,a[h+4],20,-405537848),n=C(n,i,r,c,a[h+9],5,568446438),c=C(c,n,i,r,a[h+14],9,-1019803690),r=C(r,c,n,i,a[h+3],14,-187363961),i=C(i,r,c,n,a[h+8],20,1163531501),n=C(n,i,r,c,a[h+13],5,-1444681467),c=C(c,n,i,r,a[h+2],9,-51403784),r=C(r,c,n,i,a[h+7],14,1735328473),i=C(i,r,c,n,a[h+12],20,-1926607734),n=A(n,i,r,c,a[h+5],4,-378558),c=A(c,n,i,r,a[h+8],11,-2022574463),r=A(r,c,n,i,a[h+11],16,1839030562),i=A(i,r,c,n,a[h+14],23,-35309556),n=A(n,i,r,c,a[h+1],4,-1530992060),c=A(c,n,i,r,a[h+4],11,1272893353),r=A(r,c,n,i,a[h+7],16,-155497632),i=A(i,r,c,n,a[h+10],23,-1094730640),n=A(n,i,r,c,a[h+13],4,681279174),c=A(c,n,i,r,a[h+0],11,-358537222),r=A(r,c,n,i,a[h+3],16,-722521979),i=A(i,r,c,n,a[h+6],23,76029189),n=A(n,i,r,c,a[h+9],4,-640364487),c=A(c,n,i,r,a[h+12],11,-421815835),r=A(r,c,n,i,a[h+15],16,530742520),i=A(i,r,c,n,a[h+2],23,-995338651),n=g(n,i,r,c,a[h+0],6,-198630844),c=g(c,n,i,r,a[h+7],10,1126891415),r=g(r,c,n,i,a[h+14],15,-1416354905),i=g(i,r,c,n,a[h+5],21,-57434055),n=g(n,i,r,c,a[h+12],6,1700485571),c=g(c,n,i,r,a[h+3],10,-1894986606),r=g(r,c,n,i,a[h+10],15,-1051523),i=g(i,r,c,n,a[h+1],21,-2054922799),n=g(n,i,r,c,a[h+8],6,1873313359),c=g(c,n,i,r,a[h+15],10,-30611744),r=g(r,c,n,i,a[h+6],15,-1560198380),i=g(i,r,c,n,a[h+13],21,1309151649),n=g(n,i,r,c,a[h+4],6,-145523070),c=g(c,n,i,r,a[h+11],10,-1120210379),r=g(r,c,n,i,a[h+2],15,718787259),i=g(i,r,c,n,a[h+9],21,-343485551),n=e(n,d),i=e(i,s),r=e(r,u),c=e(c,w)}return Array(n,i,r,c)}function b(a,l,n,i,r,c){return e(f(e(e(l,a),e(i,c)),r),n)}function y(a,l,n,i,r,c,h){return b(l&n|~l&i,a,l,r,c,h)}function C(a,l,n,i,r,c,h){return b(l&i|n&~i,a,l,r,c,h)}function A(a,l,n,i,r,c,h){return b(l^n^i,a,l,r,c,h)}function g(a,l,n,i,r,c,h){return b(n^(l|~i),a,l,r,c,h)}function e(a,l){var n=(a&65535)+(l&65535),i=(a>>16)+(l>>16)+(n>>16);return i<<16|n&65535}function f(a,l){return a<<l|a>>>32-l}z.exports=function(l){return M.hash(l,O,16)}},{"./helpers":285}],287:[function(k,z,o){"use strict";var M=k("./helpers");function m(A,g){A[g>>5]|=128<<24-g%32,A[(g+64>>9<<4)+15]=g;for(var e=Array(80),f=1732584193,a=-271733879,l=-1732584194,n=271733878,i=-1009589776,r=0;r<A.length;r+=16){for(var c=f,h=a,d=l,s=n,u=i,w=0;w<80;w++){w<16?e[w]=A[r+w]:e[w]=C(e[w-3]^e[w-8]^e[w-14]^e[w-16],1);var E=y(y(C(f,5),O(w,a,l,n)),y(y(i,e[w]),b(w)));i=n,n=l,l=C(a,30),a=f,f=E}f=y(f,c),a=y(a,h),l=y(l,d),n=y(n,s),i=y(i,u)}return Array(f,a,l,n,i)}function O(A,g,e,f){return A<20?g&e|~g&f:A<40?g^e^f:A<60?g&e|g&f|e&f:g^e^f}function b(A){return A<20?1518500249:A<40?1859775393:A<60?-1894007588:-899497514}function y(A,g){var e=(A&65535)+(g&65535),f=(A>>16)+(g>>16)+(e>>16);return f<<16|e&65535}function C(A,g){return A<<g|A>>>32-g}z.exports=function(g){return M.hash(g,m,20,!0)}},{"./helpers":285}],288:[function(k,z,o){"use strict";z.exports=function(){return function(){}}},{}],289:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/helpers/typeof"),O=b(m);function b(f){return f&&f.__esModule?f:{default:f}}var y=k("stream"),C=y.Stream,A=k("../lib/common/utils/isArray"),g=A.isArray;z.exports.string=function(a){return typeof a=="string"},z.exports.array=g,z.exports.buffer=M.isBuffer;function e(f){return f instanceof C}z.exports.writableStream=function(a){return e(a)&&typeof a._write=="function"&&(0,O.default)(a._writableState)==="object"}}).call(this,{isBuffer:k("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(k,z,o){"use strict";o.encodeURIComponent=function(M){try{return encodeURIComponent(M)}catch(m){return M}},o.escape=k("escape-html"),o.timestamp=function(m){if(m){var O=m;return typeof O=="string"&&(O=Number(O)),String(m).length===10&&(O*=1e3),new Date(O)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,z,o){(function(M,m){"use strict";var O=k("babel-runtime/core-js/json/stringify"),b=A(O),y=k("babel-runtime/helpers/typeof"),C=A(y);function A(w){return w&&w.__esModule?w:{default:w}}var g=k("util"),e=k("url"),f=k("http"),a=k("https"),l=k("debug")("urllib"),n=k("humanize-ms"),i,r=0,c=Math.pow(2,31)-10,h=/^https?:\/\//i;function d(w,E){return w===void 0?E:w}function s(w,E){return function(_,P,R){if(_)return E(_);w({data:P,status:R.statusCode,headers:R.headers,res:R})}}o.TIMEOUTS=[n("300s"),n("300s")];var u=["json","text"];o.request=function(E,_,P){return arguments.length===2&&typeof _=="function"&&(P=_,_=null),typeof P=="function"?o.requestWithCallback(E,_,P):(i||(i=k("any-promise")),new i(function(R,x){o.requestWithCallback(E,_,s(R,x))}))},o.requestWithCallback=function(E,_,P){if(!E||typeof E!="string"&&(typeof E=="undefined"?"undefined":(0,C.default)(E))!=="object"){var R=g.format("expect request url to be a string or a http request options, but got %j",E);throw new Error(R)}arguments.length===2&&typeof _=="function"&&(P=_,_=null),_=_||{},r>=c&&(r=0);var x=++r;_.requestUrls=_.requestUrls||[];var S={requestId:x,url:E,args:_,ctx:_.ctx};_.emitter&&_.emitter.emit("request",S),_.timeout=_.timeout||o.TIMEOUTS,_.maxRedirects=_.maxRedirects||10,_.streaming=_.streaming||_.customResponse;var v=Date.now(),T;typeof E=="string"?(h.test(E)||(E="http://"+E),T=e.parse(E)):T=E;var U=(_.type||_.method||T.method||"GET").toUpperCase(),I=T.port||80,N=f,V=d(_.agent,o.agent),H=_.fixJSONCtlChars;T.protocol==="https:"&&(N=a,V=d(_.httpsAgent,o.httpsAgent),T.port||(I=443));var D={host:T.hostname||T.host||"localhost",path:T.path||"/",method:U,port:I,agent:V,headers:_.headers||{},lookup:_.lookup};Array.isArray(_.timeout)?D.requestTimeout=_.timeout[_.timeout.length-1]:typeof _.timeout!="undefined"&&(D.requestTimeout=_.timeout);for(var W=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],F=0;F<W.length;F++){var L=W[F];_.hasOwnProperty(L)&&(D[L]=_[L])}D.rejectUnauthorized===!1&&!D.hasOwnProperty("secureOptions")&&(D.secureOptions=k("constants").SSL_OP_NO_TLSv1_2);var K=_.auth||T.auth;K&&(D.auth=K);var ee=_.content||_.data,he=U==="GET"||U==="HEAD"||_.dataAsQueryString;if(!_.content&&(ee&&!(typeof ee=="string"||m.isBuffer(ee))))if(he)ee=_.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee);else{var fe=D.headers["Content-Type"]||D.headers["content-type"];fe||(_.contentType==="json"?fe="application/json":fe="application/x-www-form-urlencoded",D.headers["Content-Type"]=fe),parseContentType(fe).type==="application/json"?ee=(0,b.default)(ee):ee=_.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee)}he&&ee&&(D.path+=(T.query?"&":"?")+ee,ee=null);var Ce=0;if(ee){var Te=ee.length;m.isBuffer(ee)||(Te=m.byteLength(ee)),Ce=D.headers["Content-Length"]=Te}_.dataType==="json"&&(D.headers.Accept="application/json"),typeof _.beforeRequest=="function"&&_.beforeRequest(D);var ce=null,ye=null,Ee=null,ue=!1,se=!1,$=0,me=-1,re=!1,ae="",we="",le=null;_.timing&&(le={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function te(){ce&&(clearTimeout(ce),ce=null)}function Q(){ye&&(clearTimeout(ye),ye=null)}function J(je,ht,Bt){if(Q(),!P){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),x,M.pid,D.method,E),je&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),x,M.pid,je.name,je.message,je.stack);return}var Et=P;P=null;var Pt={};if(Bt&&(me=Bt.statusCode,Pt=Bt.headers),me===401&&Pt["www-authenticate"]&&(!_.headers||!_.headers.Authorization)&&_.digestAuth){var Ze=Pt["www-authenticate"];if(Ze.indexOf("Digest ")>=0)return l("Request#%d %s: got digest auth header WWW-Authenticate: %s",x,E,Ze),_.headers=_.headers||{},_.headers.Authorization=digestAuthHeader(D.method,D.path,Ze,_.digestAuth),l("Request#%d %s: auth with digest header: %s",x,E,_.headers.Authorization),Bt.headers["set-cookie"]&&(_.headers.Cookie=Bt.headers["set-cookie"].join(";")),o.requestWithCallback(E,_,Et)}var We=Date.now()-v;le&&(le.contentDownload=We),l("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",We,$,me,D.method,D.host,D.path,se,le);var Je={status:me,statusCode:me,headers:Pt,size:$,aborted:re,rt:We,keepAliveSocket:se,data:ht,requestUrls:_.requestUrls,timing:le,remoteAddress:ae,remotePort:we};if(je){var Ae="";V&&typeof V.getCurrentStatus=="function"&&(Ae=", agent status: "+(0,b.default)(V.getCurrentStatus())),je.message+=", "+D.method+" "+E+" "+me+" (connected: "+ue+", keepalive socket: "+se+Ae+`)
headers: `+(0,b.default)(Pt),je.data=ht,je.path=D.path,je.status=me,je.headers=Pt,je.res=Je}Et(je,ht,_.streaming?Bt:Je),_.emitter&&(S.url=E,S.socket=_t&&_t.connection,S.options=D,S.size=Ce,_.emitter.emit("response",{requestId:x,error:je,ctx:_.ctx,req:S,res:Je}))}function ve(je){var ht=null;if(_.followRedirect&&statuses.redirect[je.statusCode]){_._followRedirectCount=(_._followRedirectCount||0)+1;var Bt=je.headers.location;if(!Bt)ht=new Error("Got statusCode "+je.statusCode+" but cannot resolve next location from headers"),ht.name="FollowRedirectError";else if(_._followRedirectCount>_.maxRedirects)ht=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+E),ht.name="MaxRedirectError";else{var Et=_.formatRedirectUrl?_.formatRedirectUrl(E,Bt):e.resolve(E,Bt);l("Request#%d %s: `redirected` from %s to %s",x,D.path,E,Et),Q(),_.headers&&_.headers.Host&&h.test(Bt)&&(_.headers.Host=null);var Pt=P;return P=null,o.requestWithCallback(Et,_,Pt),{redirect:!0,error:null}}}return{redirect:!1,error:ht}}!D.headers["User-Agent"]&&!D.headers["user-agent"]&&(D.headers["User-Agent"]=navigator.userAgent),_.gzip&&(!D.headers["Accept-Encoding"]&&!D.headers["accept-encoding"]&&(D.headers["Accept-Encoding"]="gzip"));function _e(je,ht,Bt){var Et=je.headers["content-encoding"];return Bt(null,ht,Et)}var Oe=_.writeStream;l("Request#%d %s %s with headers %j, options.path: %s",x,U,E,D.headers,D.path),_.requestUrls.push(E);function Xe(je){if(le&&(le.waiting=Date.now()-v),l("Request#%d %s `req response` event emit: status %d, headers: %j",x,E,je.statusCode,je.headers),_.streaming){var ht=ve(je);if(ht.redirect){je.resume();return}return ht.error?(je.resume(),J(ht.error,null,je)):J(null,null,je)}if(je.on("close",function(){l("Request#%d %s: `res close` event emit, total size %d",x,E,$)}),je.on("error",function(){l("Request#%d %s: `res error` event emit, total size %d",x,E,$)}),je.on("aborted",function(){re=!0,l("Request#%d %s: `res aborted` event emit, total size %d",x,E,$)}),Oe){var ht=ve(je);if(ht.redirect){je.resume();return}return ht.error?(je.resume(),Oe.end(),J(ht.error,null,je)):(_.consumeWriteStream===!1?je.on("end",J.bind(null,null,null,je)):isNode010||isNode012?first([[Oe,"close"],[je,"aborted"]],function(Pt,Ze,We){l("Request#%d %s: writeStream or res %s event emitted",x,E,We),J(Ee||null,null,je)}):Oe.on("close",function(){l("Request#%d %s: writeStream close event emitted",x,E),J(Ee||null,null,je)}),je.pipe(Oe))}var Bt=[];je.on("data",function(Et){l("Request#%d %s: `res data` event emit, size %d",x,E,Et.length),$+=Et.length,Bt.push(Et)}),je.on("end",function(){var Et=m.concat(Bt,$);if(l("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",x,E,$,je._dumped),Ee)return J(Ee,Et,je);var Pt=ve(je);if(Pt.error)return J(Pt.error,Et,je);if(Pt.redirect)return;_e(je,Et,function(Ze,We,Je){if(Ze)return J(Ze,Et,je);if(!Je&&u.indexOf(_.dataType)>=0){try{We=decodeBodyByCharset(We,je)}catch(Ue){return l("decodeBodyByCharset error: %s",Ue),J(null,We,je)}if(_.dataType==="json")if($===0)We=null;else{var Ae=parseJSON(We,H);Ae.error?Ze=Ae.error:We=Ae.data}}re&&l("Request#%d %s: Remote socket was terminated before `response.end()` was called",x,E),J(Ze,We,je)})})}var tt,lt;Array.isArray(_.timeout)?(tt=n(_.timeout[0]),lt=n(_.timeout[1])):tt=lt=n(_.timeout),l("ConnectTimeout: %d, ResponseTimeout: %d",tt,lt);function dt(){l("Connect timer ticking, timeout: %d",tt),ce=setTimeout(function(){ce=null,me===-1&&(me=-2);var je="Connect timeout for "+tt+"ms",ht="ConnectionTimeoutError";_t.socket||(ht="SocketAssignTimeoutError",je+=", working sockets is full"),Ee=new Error(je),Ee.name=ht,Ee.requestId=x,l("ConnectTimeout: Request#%d %s %s: %s, connected: %s",x,E,Ee.name,je,ue),Ye()},tt)}function vt(){l("Response timer ticking, timeout: %d",lt),ye=setTimeout(function(){ye=null;var je="Response timeout for "+lt+"ms",ht="ResponseTimeoutError";Ee=new Error(je),Ee.name=ht,Ee.requestId=x,l("ResponseTimeout: Request#%d %s %s: %s, connected: %s",x,E,Ee.name,je,ue),Ye()},lt)}var _t;D.mode=_.mode?_.mode:"";try{_t=N.request(D,Xe)}catch(je){return J(je)}typeof window=="undefined"?dt():_t.on("requestTimeout",function(){me===-1&&(me=-2);var je="Connect timeout for "+tt+"ms",ht="ConnectionTimeoutError";Ee=new Error(je),Ee.name=ht,Ee.requestId=x,Ye()});function Ye(){l("Request#%d %s abort, connected: %s",x,E,ue),_t.socket||(Ee.noSocket=!0,J(Ee)),_t.abort()}return le&&_t.on("finish",function(){le.requestSent=Date.now()-v}),_t.once("socket",function(je){le&&(le.queuing=Date.now()-v),isNode010&&je.socket&&(je=je.socket);var ht=je.readyState;if(ht==="opening"){je.once("lookup",function(Bt,Et,Pt){l("Request#%d %s lookup: %s, %s, %s",x,E,Bt,Et,Pt),le&&(le.dnslookup=Date.now()-v),Et&&(ae=Et)}),je.once("connect",function(){le&&(le.connected=Date.now()-v),te(),vt(),l("Request#%d %s new socket connected",x,E),ue=!0,ae||(ae=je.remoteAddress),we=je.remotePort});return}l("Request#%d %s reuse socket connected, readyState: %s",x,E,ht),ue=!0,se=!0,ae||(ae=je.remoteAddress),we=je.remotePort,te(),vt()}),_t.on("error",function(je){(je.name==="Error"||je.name==="TypeError")&&(je.name=ue?"ResponseError":"RequestError"),je.message+=' (req "error")',l("Request#%d %s `req error` event emit, %s: %s",x,E,je.name,je.message),J(Ee||je)}),Oe&&Oe.once("error",function(je){je.message+=' (writeStream "error")',Ee=je,l("Request#%d %s `writeStream error` event emit, %s: %s",x,E,je.name,je.message),Ye()}),_.stream?(_.stream.pipe(_t),_.stream.once("error",function(je){je.message+=' (stream "error")',Ee=je,l("Request#%d %s `readStream error` event emit, %s: %s",x,E,je.name,je.message),Ye()})):_t.end(ee),_t.requestId=x,_t}}).call(this,k("_process"),k("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n6Qo:function(k,z,o){"use strict";o.d(z,"a",function(){return g});var M=o("q1tI"),m=o("biw7"),O=o("fyJ8");function b(e){var f=e.className,a=e.index,l=e.children,n=e.colSpan,i=e.rowSpan,r=M.useContext(m.a),c=r.prefixCls,h=r.fixedInfoList,d=h[a];return M.createElement(O.a,Object.assign({className:f,index:a,component:"td",prefixCls:c,record:null,dataIndex:null,render:function(){return{children:l,props:{colSpan:n,rowSpan:i}}}},d))}function y(e){return M.createElement("tr",Object.assign({},e))}function C(e){var f=e.children,a=M.useContext(m.a),l=a.prefixCls;return M.createElement("tfoot",{className:"".concat(l,"-summary")},f)}var A=z.b=C,g={Cell:b,Row:y}},nEHx:function(k,z,o){"use strict";o.d(z,"a",function(){return M});var M;(function(m){m.DARK="dark",m.LIGHT="light",m.HIGH_CONTRAST="hc"})(M||(M={}))},nKGa:function(k,z,o){k.exports=o.p+"static/export_exercise-template.f7655c19.png"},ngQI:function(k,z,o){"use strict";o.d(z,"a",function(){return jl}),o.d(z,"b",function(){return Dl}),o.d(z,"c",function(){return Rl});var M=o("q1tI"),m=o.n(M),O=o("dI71"),b=o("wx14"),y=o("ANjH"),C=o("/MKj");function A(Y,Z){if(Y.length!==Z.length)return!1;for(var ie=0;ie<Y.length;ie++)if(Y[ie]!==Z[ie])return!1;return!0}function g(Y,Z){var ie=Object(M.useState)(function(){return{inputs:Z,result:Y()}})[0],be=Object(M.useRef)(!0),Le=Object(M.useRef)(ie),Ne=be.current||Boolean(Z&&Le.current.inputs&&A(Z,Le.current.inputs)),Ge=Ne?Le.current:{inputs:Z,result:Y()};return Object(M.useEffect)(function(){be.current=!1,Le.current=Ge},[Ge]),Ge.result}function e(Y,Z){return g(function(){return Y},Z)}var f=g,a=e,l=o("9R94"),n=function(Z){var ie=Z.top,be=Z.right,Le=Z.bottom,Ne=Z.left,Ge=be-Ne,ze=Le-ie,St={top:ie,right:be,bottom:Le,left:Ne,width:Ge,height:ze,x:Ne,y:ie,center:{x:(be+Ne)/2,y:(Le+ie)/2}};return St},i=function(Z,ie){return{top:Z.top-ie.top,left:Z.left-ie.left,bottom:Z.bottom+ie.bottom,right:Z.right+ie.right}},r=function(Z,ie){return{top:Z.top+ie.top,left:Z.left+ie.left,bottom:Z.bottom-ie.bottom,right:Z.right-ie.right}},c=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},h={top:0,right:0,bottom:0,left:0},d=function(Z){var ie=Z.borderBox,be=Z.margin,Le=be===void 0?h:be,Ne=Z.border,Ge=Ne===void 0?h:Ne,ze=Z.padding,St=ze===void 0?h:ze,jt=n(i(ie,Le)),Wt=n(r(ie,Ge)),At=n(r(Wt,St));return{marginBox:jt,borderBox:n(ie),paddingBox:Wt,contentBox:At,margin:Le,border:Ge,padding:St}},s=function(Z){var ie=Z.slice(0,-2),be=Z.slice(-2);if(be!=="px")return 0;var Le=Number(ie);return isNaN(Le)&&Object(l.a)(!1),Le},u=function(){return{x:window.pageXOffset,y:window.pageYOffset}},w=function(Z,ie){var be=Z.borderBox,Le=Z.border,Ne=Z.margin,Ge=Z.padding,ze=c(be,ie);return d({borderBox:ze,border:Le,margin:Ne,padding:Ge})},E=function(Z,ie){return ie===void 0&&(ie=u()),w(Z,ie)},_=function(Z,ie){var be={top:s(ie.marginTop),right:s(ie.marginRight),bottom:s(ie.marginBottom),left:s(ie.marginLeft)},Le={top:s(ie.paddingTop),right:s(ie.paddingRight),bottom:s(ie.paddingBottom),left:s(ie.paddingLeft)},Ne={top:s(ie.borderTopWidth),right:s(ie.borderRightWidth),bottom:s(ie.borderBottomWidth),left:s(ie.borderLeftWidth)};return d({borderBox:Z,margin:be,padding:Le,border:Ne})},P=function(Z){var ie=Z.getBoundingClientRect(),be=window.getComputedStyle(Z);return _(ie,be)},R=Number.isNaN||function(Z){return typeof Z=="number"&&Z!==Z};function x(Y,Z){return Y===Z?!0:!!(R(Y)&&R(Z))}function S(Y,Z){if(Y.length!==Z.length)return!1;for(var ie=0;ie<Y.length;ie++)if(!x(Y[ie],Z[ie]))return!1;return!0}function v(Y,Z){Z===void 0&&(Z=S);var ie,be=[],Le,Ne=!1;function Ge(){for(var ze=[],St=0;St<arguments.length;St++)ze[St]=arguments[St];return Ne&&ie===this&&Z(ze,be)||(Le=Y.apply(this,ze),Ne=!0,ie=this,be=ze),Le}return Ge}var T=v,U=function(Z){var ie=[],be=null,Le=function(){for(var Ge=arguments.length,ze=new Array(Ge),St=0;St<Ge;St++)ze[St]=arguments[St];if(ie=ze,be)return;be=requestAnimationFrame(function(){be=null,Z.apply(void 0,ie)})};return Le.cancel=function(){if(!be)return;cancelAnimationFrame(be),be=null},Le},I=U,N=o("i8i4"),V=o.n(N),H=!0,D=/[ \t]{2,}/g,W=/^[ \t]*/gm,F=function(Z){return Z.replace(D," ").replace(W,"").trim()},L=function(Z){return F(`
%creact-beautiful-dnd
%c`+F(Z)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},K=function(Z){return[L(Z),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ee="__react-beautiful-dnd-disable-dev-warnings";function he(Y,Z){var ie;if(H)return;if(typeof window!="undefined"&&window[ee])return;(ie=console)[Y].apply(ie,K(Z))}var fe=he.bind(null,"warn"),Ce=he.bind(null,"error");function Te(){}function ce(Y,Z){return Object(b.a)({},Y,{},Z)}function ye(Y,Z,ie){var be=Z.map(function(Le){var Ne=ce(ie,Le.options);return Y.addEventListener(Le.eventName,Le.fn,Ne),function(){Y.removeEventListener(Le.eventName,Le.fn,Ne)}});return function(){be.forEach(function(Ne){Ne()})}}var Ee=!0,ue="Invariant failed";function se(Y){this.message=Y}se.prototype.toString=function(){return this.message};function $(Y,Z){if(Y)return;throw Ee?new se(ue):new se(ue+": "+(Z||""))}var me=function(Y){Object(O.a)(Z,Y);function Z(){for(var be,Le=arguments.length,Ne=new Array(Le),Ge=0;Ge<Le;Ge++)Ne[Ge]=arguments[Ge];return be=Y.call.apply(Y,[this].concat(Ne))||this,be.callbacks=null,be.unbind=Te,be.onWindowError=function(ze){var St=be.getCallbacks();St.isDragging()&&St.tryAbort();var jt=ze.error;jt instanceof se&&ze.preventDefault()},be.getCallbacks=function(){if(!be.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return be.callbacks},be.setCallbacks=function(ze){be.callbacks=ze},be}var ie=Z.prototype;return ie.componentDidMount=function(){this.unbind=ye(window,[{eventName:"error",fn:this.onWindowError}])},ie.componentWillUnmount=function(){this.unbind()},ie.componentDidCatch=function(Le){if(Le instanceof se){this.setState({});return}throw Le},ie.render=function(){return this.props.children(this.setCallbacks)},Z}(m.a.Component),re=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,ae=function(Z){return Z+1},we=function(Z){return`
You have lifted an item in position `+ae(Z.source.index)+`
`},le=function(Z,ie){var be=Z.droppableId===ie.droppableId,Le=ae(Z.index),Ne=ae(ie.index);return be?`
You have moved the item from position `+Le+`
to position `+Ne+`
`:`
You have moved the item from position `+Le+`
in list `+Z.droppableId+`
to list `+ie.droppableId+`
in position `+Ne+`
`},te=function(Z,ie,be){var Le=ie.droppableId===be.droppableId;return Le?`
The item `+Z+`
has been combined with `+be.draggableId:`
The item `+Z+`
in list `+ie.droppableId+`
has been combined with `+be.draggableId+`
in list `+be.droppableId+`
`},Q=function(Z){var ie=Z.destination;if(ie)return le(Z.source,ie);var be=Z.combine;return be?te(Z.draggableId,Z.source,be):"You are over an area that cannot be dropped on"},J=function(Z){return`
The item has returned to its starting position
of `+ae(Z.index)+`
`},ve=function(Z){if(Z.reason==="CANCEL")return`
Movement cancelled.
`+J(Z.source)+`
`;var ie=Z.destination,be=Z.combine;return ie?`
You have dropped the item.
`+le(Z.source,ie)+`
`:be?`
You have dropped the item.
`+te(Z.draggableId,Z.source,be)+`
`:`
The item has been dropped while not over a drop area.
`+J(Z.source)+`
`},_e={dragHandleUsageInstructions:re,onDragStart:we,onDragUpdate:Q,onDragEnd:ve},Oe={x:0,y:0},Xe=function(Z,ie){return{x:Z.x+ie.x,y:Z.y+ie.y}},tt=function(Z,ie){return{x:Z.x-ie.x,y:Z.y-ie.y}},lt=function(Z,ie){return Z.x===ie.x&&Z.y===ie.y},dt=function(Z){return{x:Z.x!==0?-Z.x:0,y:Z.y!==0?-Z.y:0}},vt=function(Z,ie,be){var Le;return be===void 0&&(be=0),Le={},Le[Z]=ie,Le[Z==="x"?"y":"x"]=be,Le},_t=function(Z,ie){return Math.sqrt(Math.pow(ie.x-Z.x,2)+Math.pow(ie.y-Z.y,2))},Ye=function(Z,ie){return Math.min.apply(Math,ie.map(function(be){return _t(Z,be)}))},je=function(Z){return function(ie){return{x:Z(ie.x),y:Z(ie.y)}}},ht=function(Y,Z){var ie=n({top:Math.max(Z.top,Y.top),right:Math.min(Z.right,Y.right),bottom:Math.min(Z.bottom,Y.bottom),left:Math.max(Z.left,Y.left)});return ie.width<=0||ie.height<=0?null:ie},Bt=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},Et=function(Z){return[{x:Z.left,y:Z.top},{x:Z.right,y:Z.top},{x:Z.left,y:Z.bottom},{x:Z.right,y:Z.bottom}]},Pt={top:0,right:0,bottom:0,left:0},Ze=function(Z,ie){return ie?Bt(Z,ie.scroll.diff.displacement):Z},We=function(Z,ie,be){if(be&&be.increasedBy){var Le;return Object(b.a)({},Z,(Le={},Le[ie.end]=Z[ie.end]+be.increasedBy[ie.line],Le))}return Z},Je=function(Z,ie){return ie&&ie.shouldClipSubject?ht(ie.pageMarginBox,Z):n(Z)},Ae=function(Y){var Z=Y.page,ie=Y.withPlaceholder,be=Y.axis,Le=Y.frame,Ne=Ze(Z.marginBox,Le),Ge=We(Ne,be,ie),ze=Je(Ge,Le);return{page:Z,withPlaceholder:ie,active:ze}},Ue=function(Y,Z){Y.frame||$(!1);var ie=Y.frame,be=tt(Z,ie.scroll.initial),Le=dt(be),Ne=Object(b.a)({},ie,{scroll:{initial:ie.scroll.initial,current:Z,diff:{value:be,displacement:Le},max:ie.scroll.max}}),Ge=Ae({page:Y.subject.page,withPlaceholder:Y.subject.withPlaceholder,axis:Y.axis,frame:Ne}),ze=Object(b.a)({},Y,{frame:Ne,subject:Ge});return ze};function He(Y){return Number.isInteger?Number.isInteger(Y):typeof Y=="number"&&isFinite(Y)&&Math.floor(Y)===Y}function Fe(Y){return Object.values?Object.values(Y):Object.keys(Y).map(function(Z){return Y[Z]})}function et(Y,Z){if(Y.findIndex)return Y.findIndex(Z);for(var ie=0;ie<Y.length;ie++)if(Z(Y[ie]))return ie;return-1}function mt(Y,Z){if(Y.find)return Y.find(Z);var ie=et(Y,Z);return ie!==-1?Y[ie]:void 0}function Lt(Y){return Array.prototype.slice.call(Y)}var Xt=T(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),rn=T(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),wt=T(function(Y){return Fe(Y)}),bt=T(function(Y){return Fe(Y)}),ke=T(function(Y,Z){var ie=bt(Z).filter(function(be){return Y===be.descriptor.droppableId}).sort(function(be,Le){return be.descriptor.index-Le.descriptor.index});return ie});function nt(Y){return Y.at&&Y.at.type==="REORDER"?Y.at.destination:null}function rt(Y){return Y.at&&Y.at.type==="COMBINE"?Y.at.combine:null}var De=T(function(Y,Z){return Z.filter(function(ie){return ie.descriptor.id!==Y.descriptor.id})}),Ke=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,be=Y.destination,Le=Y.insideDestination,Ne=Y.previousImpact;if(!be.isCombineEnabled)return null;var Ge=nt(Ne);if(!Ge)return null;function ze(cr){var mr={type:"COMBINE",combine:{draggableId:cr,droppableId:be.descriptor.id}};return Object(b.a)({},Ne,{at:mr})}var St=Ne.displaced.all,jt=St.length?St[0]:null;if(Z)return jt?ze(jt):null;var Wt=De(ie,Le);if(!jt){if(!Wt.length)return null;var At=Wt[Wt.length-1];return ze(At.descriptor.id)}var Tt=et(Wt,function(cr){return cr.descriptor.id===jt});Tt!==-1||$(!1);var kt=Tt-1;if(kt<0)return null;var vn=Wt[kt];return ze(vn.descriptor.id)},Ct=function(Y,Z){return Y.descriptor.droppableId===Z.descriptor.id},ft={point:Oe,value:0},xt={invisible:{},visible:{},all:[]},Mt={displaced:xt,displacedBy:ft,at:null},ct=function(Y,Z){return function(ie){return Y<=ie&&ie<=Z}},Ut=function(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(be){var Le=Z(be.top)&&Z(be.bottom)&&ie(be.left)&&ie(be.right);if(Le)return!0;var Ne=Z(be.top)||Z(be.bottom),Ge=ie(be.left)||ie(be.right),ze=Ne&&Ge;if(ze)return!0;var St=be.top<Y.top&&be.bottom>Y.bottom,jt=be.left<Y.left&&be.right>Y.right,Wt=St&&jt;if(Wt)return!0;var At=St&&Ge||jt&&Ne;return At}},Ft=function(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(be){var Le=Z(be.top)&&Z(be.bottom)&&ie(be.left)&&ie(be.right);return Le}},on={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},cn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ln=function(Y){return function(Z){var ie=ct(Z.top,Z.bottom),be=ct(Z.left,Z.right);return function(Le){return Y===on?ie(Le.top)&&ie(Le.bottom):be(Le.left)&&be(Le.right)}}},kn=function(Z,ie){var be=ie.frame?ie.frame.scroll.diff.displacement:Oe;return Bt(Z,be)},In=function(Z,ie,be){return ie.subject.active?be(ie.subject.active)(Z):!1},sn=function(Z,ie,be){return be(ie)(Z)},Gn=function(Z){var ie=Z.target,be=Z.destination,Le=Z.viewport,Ne=Z.withDroppableDisplacement,Ge=Z.isVisibleThroughFrameFn,ze=Ne?kn(ie,be):ie;return In(ze,be,Ge)&&sn(ze,Le,Ge)},Nn=function(Z){return Gn(Object(b.a)({},Z,{isVisibleThroughFrameFn:Ut}))},Vn=function(Z){return Gn(Object(b.a)({},Z,{isVisibleThroughFrameFn:Ft}))},Zn=function(Z){return Gn(Object(b.a)({},Z,{isVisibleThroughFrameFn:ln(Z.destination.axis)}))},xr=function(Z,ie,be){if(typeof be=="boolean")return be;if(!ie)return!0;var Le=ie.invisible,Ne=ie.visible;if(Le[Z])return!1;var Ge=Ne[Z];return Ge?Ge.shouldAnimate:!0};function dr(Y,Z){var ie=Y.page.marginBox,be={top:Z.point.y,right:0,bottom:0,left:Z.point.x};return n(i(ie,be))}function un(Y){var Z=Y.afterDragging,ie=Y.destination,be=Y.displacedBy,Le=Y.viewport,Ne=Y.forceShouldAnimate,Ge=Y.last;return Z.reduce(function(St,jt){var Wt=dr(jt,be),At=jt.descriptor.id;St.all.push(At);var Tt=Nn({target:Wt,destination:ie,viewport:Le,withDroppableDisplacement:!0});if(!Tt)return St.invisible[jt.descriptor.id]=!0,St;var kt=xr(At,Ge,Ne),vn={draggableId:At,shouldAnimate:kt};return St.visible[At]=vn,St},{all:[],visible:{},invisible:{}})}function $t(Y,Z){if(!Y.length)return 0;var ie=Y[Y.length-1].descriptor.index;return Z.inHomeList?ie:ie+1}function An(Y){var Z=Y.insideDestination,ie=Y.inHomeList,be=Y.displacedBy,Le=Y.destination,Ne=$t(Z,{inHomeList:ie});return{displaced:xt,displacedBy:be,at:{type:"REORDER",destination:{droppableId:Le.descriptor.id,index:Ne}}}}function Ur(Y){var Z=Y.draggable,ie=Y.insideDestination,be=Y.destination,Le=Y.viewport,Ne=Y.displacedBy,Ge=Y.last,ze=Y.index,St=Y.forceShouldAnimate,jt=Ct(Z,be);if(ze==null)return An({insideDestination:ie,inHomeList:jt,displacedBy:Ne,destination:be});var Wt=mt(ie,function(cr){return cr.descriptor.index===ze});if(!Wt)return An({insideDestination:ie,inHomeList:jt,displacedBy:Ne,destination:be});var At=De(Z,ie),Tt=ie.indexOf(Wt),kt=At.slice(Tt),vn=un({afterDragging:kt,destination:be,displacedBy:Ne,last:Ge,viewport:Le.frame,forceShouldAnimate:St});return{displaced:vn,displacedBy:Ne,at:{type:"REORDER",destination:{droppableId:be.descriptor.id,index:ze}}}}function Ar(Y,Z){return Boolean(Z.effected[Y])}var Cr=function(Y){var Z=Y.isMovingForward,ie=Y.destination,be=Y.draggables,Le=Y.combine,Ne=Y.afterCritical;if(!ie.isCombineEnabled)return null;var Ge=Le.draggableId,ze=be[Ge],St=ze.descriptor.index,jt=Ar(Ge,Ne);return jt?Z?St:St-1:Z?St+1:St},gr=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,be=Y.insideDestination,Le=Y.location;if(!be.length)return null;var Ne=Le.index,Ge=Z?Ne+1:Ne-1,ze=be[0].descriptor.index,St=be[be.length-1].descriptor.index,jt=ie?St:St+1;return Ge<ze||Ge>jt?null:Ge},pe=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,be=Y.draggable,Le=Y.draggables,Ne=Y.destination,Ge=Y.insideDestination,ze=Y.previousImpact,St=Y.viewport,jt=Y.afterCritical,Wt=ze.at;if(Wt||$(!1),Wt.type==="REORDER"){var At=gr({isMovingForward:Z,isInHomeList:ie,location:Wt.destination,insideDestination:Ge});return At==null?null:Ur({draggable:be,insideDestination:Ge,destination:Ne,viewport:St,last:ze.displaced,displacedBy:ze.displacedBy,index:At})}var Tt=Cr({isMovingForward:Z,destination:Ne,displaced:ze.displaced,draggables:Le,combine:Wt.combine,afterCritical:jt});return Tt==null?null:Ur({draggable:be,insideDestination:Ge,destination:Ne,viewport:St,last:ze.displaced,displacedBy:ze.displacedBy,index:Tt})},X=function(Y){var Z=Y.displaced,ie=Y.afterCritical,be=Y.combineWith,Le=Y.displacedBy,Ne=Boolean(Z.visible[be]||Z.invisible[be]);return Ar(be,ie)?Ne?Oe:dt(Le.point):Ne?Le.point:Oe},q=function(Y){var Z=Y.afterCritical,ie=Y.impact,be=Y.draggables,Le=rt(ie);Le||$(!1);var Ne=Le.draggableId,Ge=be[Ne].page.borderBox.center,ze=X({displaced:ie.displaced,afterCritical:Z,combineWith:Ne,displacedBy:ie.displacedBy});return Xe(Ge,ze)},oe=function(Z,ie){return ie.margin[Z.start]+ie.borderBox[Z.size]/2},Re=function(Z,ie){return ie.margin[Z.end]+ie.borderBox[Z.size]/2},de=function(Z,ie,be){return ie[Z.crossAxisStart]+be.margin[Z.crossAxisStart]+be.borderBox[Z.crossAxisSize]/2},ot=function(Z){var ie=Z.axis,be=Z.moveRelativeTo,Le=Z.isMoving;return vt(ie.line,be.marginBox[ie.end]+oe(ie,Le),de(ie,be.marginBox,Le))},Qt=function(Z){var ie=Z.axis,be=Z.moveRelativeTo,Le=Z.isMoving;return vt(ie.line,be.marginBox[ie.start]-Re(ie,Le),de(ie,be.marginBox,Le))},Ln=function(Z){var ie=Z.axis,be=Z.moveInto,Le=Z.isMoving;return vt(ie.line,be.contentBox[ie.start]+oe(ie,Le),de(ie,be.contentBox,Le))},Jn=function(Y){var Z=Y.impact,ie=Y.draggable,be=Y.draggables,Le=Y.droppable,Ne=Y.afterCritical,Ge=ke(Le.descriptor.id,be),ze=ie.page,St=Le.axis;if(!Ge.length)return Ln({axis:St,moveInto:Le.page,isMoving:ze});var jt=Z.displaced,Wt=Z.displacedBy,At=jt.all[0];if(At){var Tt=be[At];if(Ar(At,Ne))return Qt({axis:St,moveRelativeTo:Tt.page,isMoving:ze});var kt=w(Tt.page,Wt.point);return Qt({axis:St,moveRelativeTo:kt,isMoving:ze})}var vn=Ge[Ge.length-1];if(vn.descriptor.id===ie.descriptor.id)return ze.borderBox.center;if(Ar(vn.descriptor.id,Ne)){var cr=w(vn.page,dt(Ne.displacedBy.point));return ot({axis:St,moveRelativeTo:cr,isMoving:ze})}return ot({axis:St,moveRelativeTo:vn.page,isMoving:ze})},Zt=function(Y,Z){var ie=Y.frame;return ie?Xe(Z,ie.scroll.diff.displacement):Z},En=function(Z){var ie=Z.impact,be=Z.draggable,Le=Z.droppable,Ne=Z.draggables,Ge=Z.afterCritical,ze=be.page.borderBox.center,St=ie.at;return Le&&St?St.type==="REORDER"?Jn({impact:ie,draggable:be,draggables:Ne,droppable:Le,afterCritical:Ge}):q({impact:ie,draggables:Ne,afterCritical:Ge}):ze},fn=function(Y){var Z=En(Y),ie=Y.droppable,be=ie?Zt(ie,Z):Z;return be},Br=function(Y,Z){var ie=tt(Z,Y.scroll.initial),be=dt(ie),Le=n({top:Z.y,bottom:Z.y+Y.frame.height,left:Z.x,right:Z.x+Y.frame.width}),Ne={frame:Le,scroll:{initial:Y.scroll.initial,max:Y.scroll.max,current:Z,diff:{value:ie,displacement:be}}};return Ne};function ra(Y,Z){return Y.map(function(ie){return Z[ie]})}function oa(Y,Z){for(var ie=0;ie<Z.length;ie++){var be=Z[ie].visible[Y];if(be)return be}return null}var rr=function(Y){var Z=Y.impact,ie=Y.viewport,be=Y.destination,Le=Y.draggables,Ne=Y.maxScrollChange,Ge=Br(ie,Xe(ie.scroll.current,Ne)),ze=be.frame?Ue(be,Xe(be.frame.scroll.current,Ne)):be,St=Z.displaced,jt=un({afterDragging:ra(St.all,Le),destination:be,displacedBy:Z.displacedBy,viewport:Ge.frame,last:St,forceShouldAnimate:!1}),Wt=un({afterDragging:ra(St.all,Le),destination:ze,displacedBy:Z.displacedBy,viewport:ie.frame,last:St,forceShouldAnimate:!1}),At={},Tt={},kt=[St,jt,Wt];St.all.forEach(function(cr){var mr=oa(cr,kt);if(mr){Tt[cr]=mr;return}At[cr]=!0});var vn=Object(b.a)({},Z,{displaced:{all:St.all,invisible:At,visible:Tt}});return vn},Ba=function(Y,Z){return Xe(Y.scroll.diff.displacement,Z)},Ea=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.draggable,be=Y.viewport,Le=Ba(be,Z),Ne=tt(Le,ie.page.borderBox.center);return Xe(ie.client.borderBox.center,Ne)},ca=function(Y){var Z=Y.draggable,ie=Y.destination,be=Y.newPageBorderBoxCenter,Le=Y.viewport,Ne=Y.withDroppableDisplacement,Ge=Y.onlyOnMainAxis,ze=Ge===void 0?!1:Ge,St=tt(be,Z.page.borderBox.center),jt=Bt(Z.page.borderBox,St),Wt={target:jt,destination:ie,withDroppableDisplacement:Ne,viewport:Le};return ze?Zn(Wt):Vn(Wt)},Ka=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,be=Y.destination,Le=Y.draggables,Ne=Y.previousImpact,Ge=Y.viewport,ze=Y.previousPageBorderBoxCenter,St=Y.previousClientSelection,jt=Y.afterCritical;if(!be.isEnabled)return null;var Wt=ke(be.descriptor.id,Le),At=Ct(ie,be),Tt=Ke({isMovingForward:Z,draggable:ie,destination:be,insideDestination:Wt,previousImpact:Ne})||pe({isMovingForward:Z,isInHomeList:At,draggable:ie,draggables:Le,destination:be,insideDestination:Wt,previousImpact:Ne,viewport:Ge,afterCritical:jt});if(!Tt)return null;var kt=fn({impact:Tt,draggable:ie,droppable:be,draggables:Le,afterCritical:jt}),vn=ca({draggable:ie,destination:be,newPageBorderBoxCenter:kt,viewport:Ge.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(vn){var cr=Ea({pageBorderBoxCenter:kt,draggable:ie,viewport:Ge});return{clientSelection:cr,impact:Tt,scrollJumpRequest:null}}var mr=tt(kt,ze),Nr=rr({impact:Tt,viewport:Ge,destination:be,draggables:Le,maxScrollChange:mr});return{clientSelection:St,impact:Nr,scrollJumpRequest:mr}},Ta=function(Z){var ie=Z.subject.active;return ie||$(!1),ie},Ja=function(Y){var Z=Y.isMovingForward,ie=Y.pageBorderBoxCenter,be=Y.source,Le=Y.droppables,Ne=Y.viewport,Ge=be.subject.active;if(!Ge)return null;var ze=be.axis,St=ct(Ge[ze.start],Ge[ze.end]),jt=wt(Le).filter(function(At){return At!==be}).filter(function(At){return At.isEnabled}).filter(function(At){return Boolean(At.subject.active)}).filter(function(At){return Ut(Ne.frame)(Ta(At))}).filter(function(At){var Tt=Ta(At);return Z?Ge[ze.crossAxisEnd]<Tt[ze.crossAxisEnd]:Tt[ze.crossAxisStart]<Ge[ze.crossAxisStart]}).filter(function(At){var Tt=Ta(At),kt=ct(Tt[ze.start],Tt[ze.end]);return St(Tt[ze.start])||St(Tt[ze.end])||kt(Ge[ze.start])||kt(Ge[ze.end])}).sort(function(At,Tt){var kt=Ta(At)[ze.crossAxisStart],vn=Ta(Tt)[ze.crossAxisStart];return Z?kt-vn:vn-kt}).filter(function(At,Tt,kt){return Ta(At)[ze.crossAxisStart]===Ta(kt[0])[ze.crossAxisStart]});if(!jt.length)return null;if(jt.length===1)return jt[0];var Wt=jt.filter(function(At){var Tt=ct(Ta(At)[ze.start],Ta(At)[ze.end]);return Tt(ie[ze.line])});return Wt.length===1?Wt[0]:Wt.length>1?Wt.sort(function(At,Tt){return Ta(At)[ze.start]-Ta(Tt)[ze.start]})[0]:jt.sort(function(At,Tt){var kt=Ye(ie,Et(Ta(At))),vn=Ye(ie,Et(Ta(Tt)));return kt!==vn?kt-vn:Ta(At)[ze.start]-Ta(Tt)[ze.start]})[0]},Ua=function(Z,ie){var be=Z.page.borderBox.center;return Ar(Z.descriptor.id,ie)?tt(be,ie.displacedBy.point):be},li=function(Z,ie){var be=Z.page.borderBox;return Ar(Z.descriptor.id,ie)?Bt(be,dt(ie.displacedBy.point)):be},oi=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.viewport,be=Y.destination,Le=Y.insideDestination,Ne=Y.afterCritical,Ge=Le.filter(function(ze){return Vn({target:li(ze,Ne),destination:be,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(ze,St){var jt=_t(Z,Zt(be,Ua(ze,Ne))),Wt=_t(Z,Zt(be,Ua(St,Ne)));return jt<Wt?-1:Wt<jt?1:ze.descriptor.index-St.descriptor.index});return Ge[0]||null},fa=T(function(Z,ie){var be=ie[Z.line];return{value:be,point:vt(Z.line,be)}}),ma=function(Z,ie,be){var Le=Z.axis;if(Z.descriptor.mode==="virtual")return vt(Le.line,ie[Le.line]);var Ne=Z.subject.page.contentBox[Le.size],Ge=ke(Z.descriptor.id,be),ze=Ge.reduce(function(Wt,At){return Wt+At.client.marginBox[Le.size]},0),St=ze+ie[Le.line],jt=St-Ne;return jt<=0?null:vt(Le.line,jt)},la=function(Z,ie){return Object(b.a)({},Z,{scroll:Object(b.a)({},Z.scroll,{max:ie})})},xe=function(Z,ie,be){var Le=Z.frame;Ct(ie,Z)&&$(!1),Z.subject.withPlaceholder&&$(!1);var Ne=fa(Z.axis,ie.displaceBy).point,Ge=ma(Z,Ne,be),ze={placeholderSize:Ne,increasedBy:Ge,oldFrameMaxScroll:Z.frame?Z.frame.scroll.max:null};if(!Le){var St=Ae({page:Z.subject.page,withPlaceholder:ze,axis:Z.axis,frame:Z.frame});return Object(b.a)({},Z,{subject:St})}var jt=Ge?Xe(Le.scroll.max,Ge):Le.scroll.max,Wt=la(Le,jt),At=Ae({page:Z.subject.page,withPlaceholder:ze,axis:Z.axis,frame:Wt});return Object(b.a)({},Z,{subject:At,frame:Wt})},st=function(Z){var ie=Z.subject.withPlaceholder;ie||$(!1);var be=Z.frame;if(!be){var Le=Ae({page:Z.subject.page,axis:Z.axis,frame:null,withPlaceholder:null});return Object(b.a)({},Z,{subject:Le})}var Ne=ie.oldFrameMaxScroll;Ne||$(!1);var Ge=la(be,Ne),ze=Ae({page:Z.subject.page,axis:Z.axis,frame:Ge,withPlaceholder:null});return Object(b.a)({},Z,{subject:ze,frame:Ge})},Rt=function(Y){var Z=Y.previousPageBorderBoxCenter,ie=Y.moveRelativeTo,be=Y.insideDestination,Le=Y.draggable,Ne=Y.draggables,Ge=Y.destination,ze=Y.viewport,St=Y.afterCritical;if(!ie){if(be.length)return null;var jt={displaced:xt,displacedBy:ft,at:{type:"REORDER",destination:{droppableId:Ge.descriptor.id,index:0}}},Wt=fn({impact:jt,draggable:Le,droppable:Ge,draggables:Ne,afterCritical:St}),At=Ct(Le,Ge)?Ge:xe(Ge,Le,Ne),Tt=ca({draggable:Le,destination:At,newPageBorderBoxCenter:Wt,viewport:ze.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Tt?jt:null}var kt=Boolean(Z[Ge.axis.line]<=ie.page.borderBox.center[Ge.axis.line]),vn=function(){var mr=ie.descriptor.index;return ie.descriptor.id===Le.descriptor.id||kt?mr:mr+1}(),cr=fa(Ge.axis,Le.displaceBy);return Ur({draggable:Le,insideDestination:be,destination:Ge,viewport:ze,displacedBy:cr,last:xt,index:vn})},Ot=function(Y){var Z=Y.isMovingForward,ie=Y.previousPageBorderBoxCenter,be=Y.draggable,Le=Y.isOver,Ne=Y.draggables,Ge=Y.droppables,ze=Y.viewport,St=Y.afterCritical,jt=Ja({isMovingForward:Z,pageBorderBoxCenter:ie,source:Le,droppables:Ge,viewport:ze});if(!jt)return null;var Wt=ke(jt.descriptor.id,Ne),At=oi({pageBorderBoxCenter:ie,viewport:ze,destination:jt,insideDestination:Wt,afterCritical:St}),Tt=Rt({previousPageBorderBoxCenter:ie,destination:jt,draggable:be,draggables:Ne,moveRelativeTo:At,insideDestination:Wt,viewport:ze,afterCritical:St});if(!Tt)return null;var kt=fn({impact:Tt,draggable:be,droppable:jt,draggables:Ne,afterCritical:St}),vn=Ea({pageBorderBoxCenter:kt,draggable:be,viewport:ze});return{clientSelection:vn,impact:Tt,scrollJumpRequest:null}},Ht=function(Y){var Z=Y.at;return Z?Z.type==="REORDER"?Z.destination.droppableId:Z.combine.droppableId:null},Nt=function(Z,ie){var be=Ht(Z);return be?ie[be]:null},Vt=function(Y){var Z=Y.state,ie=Y.type,be=Nt(Z.impact,Z.dimensions.droppables),Le=Boolean(be),Ne=Z.dimensions.droppables[Z.critical.droppable.id],Ge=be||Ne,ze=Ge.axis.direction,St=ze==="vertical"&&(ie==="MOVE_UP"||ie==="MOVE_DOWN")||ze==="horizontal"&&(ie==="MOVE_LEFT"||ie==="MOVE_RIGHT");if(St&&!Le)return null;var jt=ie==="MOVE_DOWN"||ie==="MOVE_RIGHT",Wt=Z.dimensions.draggables[Z.critical.draggable.id],At=Z.current.page.borderBoxCenter,Tt=Z.dimensions,kt=Tt.draggables,vn=Tt.droppables;return St?Ka({isMovingForward:jt,previousPageBorderBoxCenter:At,draggable:Wt,destination:Ge,draggables:kt,viewport:Z.viewport,previousClientSelection:Z.current.client.selection,previousImpact:Z.impact,afterCritical:Z.afterCritical}):Ot({isMovingForward:jt,previousPageBorderBoxCenter:At,draggable:Wt,isOver:Ge,draggables:kt,droppables:vn,viewport:Z.viewport,afterCritical:Z.afterCritical})};function nn(Y){return Y.phase==="DRAGGING"||Y.phase==="COLLECTING"}function xn(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(Le){return Z(Le.y)&&ie(Le.x)}}function _n(Y,Z){return Y.left<Z.right&&Y.right>Z.left&&Y.top<Z.bottom&&Y.bottom>Z.top}function Bn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,be=Y.candidates,Le=ie.page.borderBox.center,Ne=be.map(function(Ge){var ze=Ge.axis,St=vt(Ge.axis.line,Z.center[ze.line],Ge.page.borderBox.center[ze.crossAxisLine]);return{id:Ge.descriptor.id,distance:_t(Le,St)}}).sort(function(Ge,ze){return ze.distance-Ge.distance});return Ne[0]?Ne[0].id:null}function Dn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,be=Y.droppables,Le=wt(be).filter(function(Ne){if(!Ne.isEnabled)return!1;var Ge=Ne.subject.active;if(!Ge)return!1;if(!_n(Z,Ge))return!1;if(xn(Ge)(Z.center))return!0;var ze=Ne.axis,St=Ge.center[ze.crossAxisLine],jt=Z[ze.crossAxisStart],Wt=Z[ze.crossAxisEnd],At=ct(Ge[ze.crossAxisStart],Ge[ze.crossAxisEnd]),Tt=At(jt),kt=At(Wt);return!Tt&&!kt?!0:Tt?jt<St:Wt>St});return Le.length?Le.length===1?Le[0].descriptor.id:Bn({pageBorderBox:Z,draggable:ie,candidates:Le}):null}var an=function(Z,ie){return n(Bt(Z,ie))},Mn=function(Y,Z){var ie=Y.frame;return ie?an(Z,ie.scroll.diff.value):Z};function yn(Y){var Z=Y.displaced,ie=Y.id;return Boolean(Z.visible[ie]||Z.invisible[ie])}function Fn(Y){var Z=Y.draggable,ie=Y.closest,be=Y.inHomeList;return ie?be&&ie.descriptor.index>Z.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var Pn=function(Y){var Z=Y.pageBorderBoxWithDroppableScroll,ie=Y.draggable,be=Y.destination,Le=Y.insideDestination,Ne=Y.last,Ge=Y.viewport,ze=Y.afterCritical,St=be.axis,jt=fa(be.axis,ie.displaceBy),Wt=jt.value,At=Z[St.start],Tt=Z[St.end],kt=De(ie,Le),vn=mt(kt,function(mr){var Nr=mr.descriptor.id,Gr=mr.page.borderBox.center[St.line],na=Ar(Nr,ze),Hr=yn({displaced:Ne,id:Nr});return na?Hr?Tt<=Gr:At<Gr-Wt:Hr?Tt<=Gr+Wt:At<Gr}),cr=Fn({draggable:ie,closest:vn,inHomeList:Ct(ie,be)});return Ur({draggable:ie,insideDestination:Le,destination:be,viewport:Ge,last:Ne,displacedBy:jt,index:cr})},qn=4,pr=function(Y){var Z=Y.draggable,ie=Y.pageBorderBoxWithDroppableScroll,be=Y.previousImpact,Le=Y.destination,Ne=Y.insideDestination,Ge=Y.afterCritical;if(!Le.isCombineEnabled)return null;var ze=Le.axis,St=fa(Le.axis,Z.displaceBy),jt=St.value,Wt=ie[ze.start],At=ie[ze.end],Tt=De(Z,Ne),kt=mt(Tt,function(cr){var mr=cr.descriptor.id,Nr=cr.page.borderBox,Gr=Nr[ze.size],na=Gr/qn,Hr=Ar(mr,Ge),Ia=yn({displaced:be.displaced,id:mr});return Hr?Ia?At>Nr[ze.start]+na&&At<Nr[ze.end]-na:Wt>Nr[ze.start]-jt+na&&Wt<Nr[ze.end]-jt-na:Ia?At>Nr[ze.start]+jt+na&&At<Nr[ze.end]+jt-na:Wt>Nr[ze.start]+na&&Wt<Nr[ze.end]-na});if(!kt)return null;var vn={displacedBy:St,displaced:be.displaced,at:{type:"COMBINE",combine:{draggableId:kt.descriptor.id,droppableId:Le.descriptor.id}}};return vn},Fr=function(Y){var Z=Y.pageOffset,ie=Y.draggable,be=Y.draggables,Le=Y.droppables,Ne=Y.previousImpact,Ge=Y.viewport,ze=Y.afterCritical,St=an(ie.page.borderBox,Z),jt=Dn({pageBorderBox:St,draggable:ie,droppables:Le});if(!jt)return Mt;var Wt=Le[jt],At=ke(Wt.descriptor.id,be),Tt=Mn(Wt,St);return pr({pageBorderBoxWithDroppableScroll:Tt,draggable:ie,previousImpact:Ne,destination:Wt,insideDestination:At,afterCritical:ze})||Pn({pageBorderBoxWithDroppableScroll:Tt,draggable:ie,destination:Wt,insideDestination:At,last:Ne.displaced,viewport:Ge,afterCritical:ze})},wn=function(Y,Z){var ie;return Object(b.a)({},Y,(ie={},ie[Z.descriptor.id]=Z,ie))},Yt=function(Z){var ie=Z.previousImpact,be=Z.impact,Le=Z.droppables,Ne=Ht(ie),Ge=Ht(be);if(!Ne)return Le;if(Ne===Ge)return Le;var ze=Le[Ne];if(!ze.subject.withPlaceholder)return Le;var St=st(ze);return wn(Le,St)},mn=function(Y){var Z=Y.draggable,ie=Y.draggables,be=Y.droppables,Le=Y.previousImpact,Ne=Y.impact,Ge=Yt({previousImpact:Le,impact:Ne,droppables:be}),ze=Ht(Ne);if(!ze)return Ge;var St=be[ze];if(Ct(Z,St))return Ge;if(St.subject.withPlaceholder)return Ge;var jt=xe(St,Z,ie);return wn(Ge,jt)},Rn=function(Y){var Z=Y.state,ie=Y.clientSelection,be=Y.dimensions,Le=Y.viewport,Ne=Y.impact,Ge=Y.scrollJumpRequest,ze=Le||Z.viewport,St=be||Z.dimensions,jt=ie||Z.current.client.selection,Wt=tt(jt,Z.initial.client.selection),At={offset:Wt,selection:jt,borderBoxCenter:Xe(Z.initial.client.borderBoxCenter,Wt)},Tt={selection:Xe(At.selection,ze.scroll.current),borderBoxCenter:Xe(At.borderBoxCenter,ze.scroll.current),offset:Xe(At.offset,ze.scroll.diff.value)},kt={client:At,page:Tt};if(Z.phase==="COLLECTING")return Object(b.a)({phase:"COLLECTING"},Z,{dimensions:St,viewport:ze,current:kt});var vn=St.draggables[Z.critical.draggable.id],cr=Ne||Fr({pageOffset:Tt.offset,draggable:vn,draggables:St.draggables,droppables:St.droppables,previousImpact:Z.impact,viewport:ze,afterCritical:Z.afterCritical}),mr=mn({draggable:vn,impact:cr,previousImpact:Z.impact,draggables:St.draggables,droppables:St.droppables}),Nr=Object(b.a)({},Z,{current:kt,dimensions:{draggables:St.draggables,droppables:mr},impact:cr,viewport:ze,scrollJumpRequest:Ge||null,forceShouldAnimate:Ge?!1:null});return Nr};function en(Y,Z){return Y.map(function(ie){return Z[ie]})}var Tn=function(Y){var Z=Y.impact,ie=Y.viewport,be=Y.draggables,Le=Y.destination,Ne=Y.forceShouldAnimate,Ge=Z.displaced,ze=en(Ge.all,be),St=un({afterDragging:ze,destination:Le,displacedBy:Z.displacedBy,viewport:ie.frame,forceShouldAnimate:Ne,last:Ge});return Object(b.a)({},Z,{displaced:St})},bn=function(Y){var Z=Y.impact,ie=Y.draggable,be=Y.droppable,Le=Y.draggables,Ne=Y.viewport,Ge=Y.afterCritical,ze=fn({impact:Z,draggable:ie,draggables:Le,droppable:be,afterCritical:Ge});return Ea({pageBorderBoxCenter:ze,draggable:ie,viewport:Ne})},Un=function(Y){var Z=Y.state,ie=Y.dimensions,be=Y.viewport;Z.movementMode==="SNAP"||$(!1);var Le=Z.impact,Ne=be||Z.viewport,Ge=ie||Z.dimensions,ze=Ge.draggables,St=Ge.droppables,jt=ze[Z.critical.draggable.id],Wt=Ht(Le);Wt||$(!1);var At=St[Wt],Tt=Tn({impact:Le,viewport:Ne,destination:At,draggables:ze}),kt=bn({impact:Tt,draggable:jt,droppable:At,draggables:ze,viewport:Ne,afterCritical:Z.afterCritical});return Rn({impact:Tt,clientSelection:kt,state:Z,dimensions:Ge,viewport:Ne})},Wn=function(Y){return{index:Y.index,droppableId:Y.droppableId}},sr=function(Y){var Z=Y.draggable,ie=Y.home,be=Y.draggables,Le=Y.viewport,Ne=fa(ie.axis,Z.displaceBy),Ge=ke(ie.descriptor.id,be),ze=Ge.indexOf(Z);ze!==-1||$(!1);var St=Ge.slice(ze+1),jt=St.reduce(function(kt,vn){return kt[vn.descriptor.id]=!0,kt},{}),Wt={inVirtualList:ie.descriptor.mode==="virtual",displacedBy:Ne,effected:jt},At=un({afterDragging:St,destination:ie,displacedBy:Ne,last:null,viewport:Le.frame,forceShouldAnimate:!1}),Tt={displaced:At,displacedBy:Ne,at:{type:"REORDER",destination:Wn(Z.descriptor)}};return{impact:Tt,afterCritical:Wt}},tr=function(Y,Z){return{draggables:Y.draggables,droppables:wn(Y.droppables,Z)}},Rr=function(Z){},Ir=function(Z){},$n=function(Y){var Z=Y.draggable,ie=Y.offset,be=Y.initialWindowScroll,Le=w(Z.client,ie),Ne=E(Le,be),Ge=Object(b.a)({},Z,{placeholder:Object(b.a)({},Z.placeholder,{client:Le}),client:Le,page:Ne});return Ge},Dr=function(Y){var Z=Y.frame;return Z||$(!1),Z},vr=function(Y){var Z=Y.additions,ie=Y.updatedDroppables,be=Y.viewport,Le=be.scroll.diff.value;return Z.map(function(Ne){var Ge=Ne.descriptor.droppableId,ze=ie[Ge],St=Dr(ze),jt=St.scroll.diff.value,Wt=Xe(Le,jt),At=$n({draggable:Ne,offset:Wt,initialWindowScroll:be.scroll.initial});return At})},zr=function(Y){var Z=Y.state,ie=Y.published;Rr();var be=ie.modified.map(function(na){var Hr=Z.dimensions.droppables[na.droppableId],Ia=Ue(Hr,na.scroll);return Ia}),Le=Object(b.a)({},Z.dimensions.droppables,{},Xt(be)),Ne=rn(vr({additions:ie.additions,updatedDroppables:Le,viewport:Z.viewport})),Ge=Object(b.a)({},Z.dimensions.draggables,{},Ne);ie.removals.forEach(function(na){delete Ge[na]});var ze={droppables:Le,draggables:Ge},St=Ht(Z.impact),jt=St?ze.droppables[St]:null,Wt=ze.draggables[Z.critical.draggable.id],At=ze.droppables[Z.critical.droppable.id],Tt=sr({draggable:Wt,home:At,draggables:Ge,viewport:Z.viewport}),kt=Tt.impact,vn=Tt.afterCritical,cr=jt&&jt.isCombineEnabled?Z.impact:kt,mr=Fr({pageOffset:Z.current.page.offset,draggable:ze.draggables[Z.critical.draggable.id],draggables:ze.draggables,droppables:ze.droppables,previousImpact:cr,viewport:Z.viewport,afterCritical:vn});Ir();var Nr=Object(b.a)({phase:"DRAGGING"},Z,{phase:"DRAGGING",impact:mr,onLiftImpact:kt,dimensions:ze,afterCritical:vn,forceShouldAnimate:!1});if(Z.phase==="COLLECTING")return Nr;var Gr=Object(b.a)({phase:"DROP_PENDING"},Nr,{phase:"DROP_PENDING",reason:Z.reason,isWaiting:!1});return Gr},Lr=function(Z){return Z.movementMode==="SNAP"},$r=function(Z,ie,be){var Le=tr(Z.dimensions,ie);return!Lr(Z)||be?Rn({state:Z,dimensions:Le}):Un({state:Z,dimensions:Le})};function ir(Y){return Y.isDragging&&Y.movementMode==="SNAP"?Object(b.a)({phase:"DRAGGING"},Y,{scrollJumpRequest:null}):Y}var Kt={phase:"IDLE",completed:null,shouldFlush:!1},qt=function(Y,Z){if(Y===void 0&&(Y=Kt),Z.type==="FLUSH")return Object(b.a)({},Kt,{shouldFlush:!0});if(Z.type==="INITIAL_PUBLISH"){Y.phase==="IDLE"||$(!1);var ie=Z.payload,be=ie.critical,Le=ie.clientSelection,Ne=ie.viewport,Ge=ie.dimensions,ze=ie.movementMode,St=Ge.draggables[be.draggable.id],jt=Ge.droppables[be.droppable.id],Wt={selection:Le,borderBoxCenter:St.client.borderBox.center,offset:Oe},At={client:Wt,page:{selection:Xe(Wt.selection,Ne.scroll.initial),borderBoxCenter:Xe(Wt.selection,Ne.scroll.initial),offset:Xe(Wt.selection,Ne.scroll.diff.value)}},Tt=wt(Ge.droppables).every(function(ea){return!ea.isFixedOnPage}),kt=sr({draggable:St,home:jt,draggables:Ge.draggables,viewport:Ne}),vn=kt.impact,cr=kt.afterCritical,mr={phase:"DRAGGING",isDragging:!0,critical:be,movementMode:ze,dimensions:Ge,initial:At,current:At,isWindowScrollAllowed:Tt,impact:vn,afterCritical:cr,onLiftImpact:vn,viewport:Ne,scrollJumpRequest:null,forceShouldAnimate:null};return mr}if(Z.type==="COLLECTION_STARTING"){if(Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING")return Y;Y.phase==="DRAGGING"||$(!1);var Nr=Object(b.a)({phase:"COLLECTING"},Y,{phase:"COLLECTING"});return Nr}if(Z.type==="PUBLISH_WHILE_DRAGGING")return Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING"||$(!1),zr({state:Y,published:Z.payload});if(Z.type==="MOVE"){if(Y.phase==="DROP_PENDING")return Y;nn(Y)||$(!1);var Gr=Z.payload.client;return lt(Gr,Y.current.client.selection)?Y:Rn({state:Y,clientSelection:Gr,impact:Lr(Y)?Y.impact:null})}if(Z.type==="UPDATE_DROPPABLE_SCROLL"){if(Y.phase==="DROP_PENDING")return ir(Y);if(Y.phase==="COLLECTING")return ir(Y);nn(Y)||$(!1);var na=Z.payload,Hr=na.id,Ia=na.newScroll,Ra=Y.dimensions.droppables[Hr];if(!Ra)return Y;var za=Ue(Ra,Ia);return $r(Y,za,!1)}if(Z.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(Y.phase==="DROP_PENDING")return Y;nn(Y)||$(!1);var si=Z.payload,t=si.id,p=si.isEnabled,B=Y.dimensions.droppables[t];B||$(!1),B.isEnabled!==p||$(!1);var j=Object(b.a)({},B,{isEnabled:p});return $r(Y,j,!0)}if(Z.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(Y.phase==="DROP_PENDING")return Y;nn(Y)||$(!1);var G=Z.payload,ne=G.id,ge=G.isCombineEnabled,Se=Y.dimensions.droppables[ne];Se||$(!1),Se.isCombineEnabled!==ge||$(!1);var Pe=Object(b.a)({},Se,{isCombineEnabled:ge});return $r(Y,Pe,!0)}if(Z.type==="MOVE_BY_WINDOW_SCROLL"){if(Y.phase==="DROP_PENDING"||Y.phase==="DROP_ANIMATING")return Y;nn(Y)||$(!1),Y.isWindowScrollAllowed||$(!1);var Be=Z.payload.newScroll;if(lt(Y.viewport.scroll.current,Be))return ir(Y);var gt=Br(Y.viewport,Be);return Lr(Y)?Un({state:Y,viewport:gt}):Rn({state:Y,viewport:gt})}if(Z.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!nn(Y))return Y;var Dt=Z.payload.maxScroll;if(lt(Dt,Y.viewport.scroll.max))return Y;var tn=Object(b.a)({},Y.viewport,{scroll:Object(b.a)({},Y.viewport.scroll,{max:Dt})});return Object(b.a)({phase:"DRAGGING"},Y,{viewport:tn})}if(Z.type==="MOVE_UP"||Z.type==="MOVE_DOWN"||Z.type==="MOVE_LEFT"||Z.type==="MOVE_RIGHT"){if(Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING")return Y;Y.phase==="DRAGGING"||$(!1);var Gt=Vt({state:Y,type:Z.type});return Gt?Rn({state:Y,impact:Gt.impact,clientSelection:Gt.clientSelection,scrollJumpRequest:Gt.scrollJumpRequest}):Y}if(Z.type==="DROP_PENDING"){var On=Z.payload.reason;Y.phase==="COLLECTING"||$(!1);var Kn=Object(b.a)({phase:"DROP_PENDING"},Y,{phase:"DROP_PENDING",isWaiting:!0,reason:On});return Kn}if(Z.type==="DROP_ANIMATE"){var er=Z.payload,yr=er.completed,kr=er.dropDuration,Er=er.newHomeClientOffset;Y.phase==="DRAGGING"||Y.phase==="DROP_PENDING"||$(!1);var Xr={phase:"DROP_ANIMATING",completed:yr,dropDuration:kr,newHomeClientOffset:Er,dimensions:Y.dimensions};return Xr}if(Z.type==="DROP_COMPLETE"){var ia=Z.payload.completed;return{phase:"IDLE",completed:ia,shouldFlush:!1}}return Y},Jt=function(Z){return{type:"BEFORE_INITIAL_CAPTURE",payload:Z}},Qn=function(Z){return{type:"LIFT",payload:Z}},nr=function(Z){return{type:"INITIAL_PUBLISH",payload:Z}},jn=function(Z){return{type:"PUBLISH_WHILE_DRAGGING",payload:Z}},or=function(){return{type:"COLLECTION_STARTING",payload:null}},fr=function(Z){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Z}},lr=function(Z){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Z}},qr=function(Z){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Z}},ur=function(Z){return{type:"MOVE",payload:Z}},da=function(Z){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Z}},Yr=function(Z){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Z}},_r=function(){return{type:"MOVE_UP",payload:null}},wr=function(){return{type:"MOVE_DOWN",payload:null}},Kr=function(){return{type:"MOVE_RIGHT",payload:null}},Jr=function(){return{type:"MOVE_LEFT",payload:null}},Oa=function(){return{type:"FLUSH",payload:null}},_a=function(Z){return{type:"DROP_ANIMATE",payload:Z}},Qe=function(Z){return{type:"DROP_COMPLETE",payload:Z}},ut=function(Z){return{type:"DROP",payload:Z}},yt=function(Z){return{type:"DROP_PENDING",payload:Z}},at=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Me(Y){if(Y.length<=1)return;for(var Z=Y.map(function(ze){return ze.descriptor.index}),ie={},be=1;be<Z.length;be++){var Le=Z[be],Ne=Z[be-1];Le!==Ne+1&&(ie[Le]=!0)}if(!Object.keys(ie).length)return;var Ge=Z.map(function(ze){var St=Boolean(ie[ze]);return St?"[\u{1F525}"+ze+"]":""+ze}).join(", ")}function Ve(Y,Z){if(!1)var ie}var Ie=function(Y){return function(Z){var ie=Z.getState,be=Z.dispatch;return function(Le){return function(Ne){if(Ne.type!=="LIFT"){Le(Ne);return}var Ge=Ne.payload,ze=Ge.id,St=Ge.clientSelection,jt=Ge.movementMode,Wt=ie();Wt.phase==="DROP_ANIMATING"&&be(Qe({completed:Wt.completed})),ie().phase==="IDLE"||$(!1),be(Oa()),be(Jt({draggableId:ze,movementMode:jt}));var At={shouldPublishImmediately:jt==="SNAP"},Tt={draggableId:ze,scrollOptions:At},kt=Y.startPublishing(Tt),vn=kt.critical,cr=kt.dimensions,mr=kt.viewport;Ve(vn,cr),be(nr({critical:vn,dimensions:cr,clientSelection:St,movementMode:jt,viewport:mr}))}}}},$e=function(Y){return function(){return function(Z){return function(ie){ie.type==="INITIAL_PUBLISH"&&Y.dragging(),ie.type==="DROP_ANIMATE"&&Y.dropping(ie.payload.completed.result.reason),(ie.type==="FLUSH"||ie.type==="DROP_COMPLETE")&&Y.resting(),Z(ie)}}}},qe={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},pt={opacity:{drop:0,combining:.7},scale:{drop:.75}},it={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},It=it.outOfTheWay+"s "+qe.outOfTheWay,zt={fluid:"opacity "+It,snap:"transform "+It+", opacity "+It,drop:function(Z){var ie=Z+"s "+qe.drop;return"transform "+ie+", opacity "+ie},outOfTheWay:"transform "+It,placeholder:"height "+It+", width "+It+", margin "+It},gn=function(Z){return lt(Z,Oe)?null:"translate("+Z.x+"px, "+Z.y+"px)"},dn={moveTo:gn,drop:function(Z,ie){var be=gn(Z);return be?ie?be+" scale("+pt.scale.drop+")":be:null}},pn=it.minDropTime,hn=it.maxDropTime,zn=hn-pn,Sn=1500,jr=.6,Pr=function(Y){var Z=Y.current,ie=Y.destination,be=Y.reason,Le=_t(Z,ie);if(Le<=0)return pn;if(Le>=Sn)return hn;var Ne=Le/Sn,Ge=pn+zn*Ne,ze=be==="CANCEL"?Ge*jr:Ge;return Number(ze.toFixed(2))},Qr=function(Y){var Z=Y.impact,ie=Y.draggable,be=Y.dimensions,Le=Y.viewport,Ne=Y.afterCritical,Ge=be.draggables,ze=be.droppables,St=Ht(Z),jt=St?ze[St]:null,Wt=ze[ie.descriptor.droppableId],At=bn({impact:Z,draggable:ie,draggables:Ge,afterCritical:Ne,droppable:jt||Wt,viewport:Le}),Tt=tt(At,ie.client.borderBox.center);return Tt},Wr=function(Y){var Z=Y.draggables,ie=Y.reason,be=Y.lastImpact,Le=Y.home,Ne=Y.viewport,Ge=Y.onLiftImpact;if(!be.at||ie!=="DROP"){var ze=Tn({draggables:Z,impact:Ge,destination:Le,viewport:Ne,forceShouldAnimate:!0});return{impact:ze,didDropInsideDroppable:!1}}if(be.at.type==="REORDER")return{impact:be,didDropInsideDroppable:!0};var St=Object(b.a)({},be,{displaced:xt});return{impact:St,didDropInsideDroppable:!0}},ta=function(Y){var Z=Y.getState,ie=Y.dispatch;return function(be){return function(Le){if(Le.type!=="DROP"){be(Le);return}var Ne=Z(),Ge=Le.payload.reason;if(Ne.phase==="COLLECTING"){ie(yt({reason:Ge}));return}if(Ne.phase==="IDLE")return;var ze=Ne.phase==="DROP_PENDING"&&Ne.isWaiting;ze&&$(!1),Ne.phase==="DRAGGING"||Ne.phase==="DROP_PENDING"||$(!1);var St=Ne.critical,jt=Ne.dimensions,Wt=jt.draggables[Ne.critical.draggable.id],At=Wr({reason:Ge,lastImpact:Ne.impact,afterCritical:Ne.afterCritical,onLiftImpact:Ne.onLiftImpact,home:Ne.dimensions.droppables[Ne.critical.droppable.id],viewport:Ne.viewport,draggables:Ne.dimensions.draggables}),Tt=At.impact,kt=At.didDropInsideDroppable,vn=kt?nt(Tt):null,cr=kt?rt(Tt):null,mr={index:St.draggable.index,droppableId:St.droppable.id},Nr={draggableId:Wt.descriptor.id,type:Wt.descriptor.type,source:mr,reason:Ge,mode:Ne.movementMode,destination:vn,combine:cr},Gr=Qr({impact:Tt,draggable:Wt,dimensions:jt,viewport:Ne.viewport,afterCritical:Ne.afterCritical}),na={critical:Ne.critical,afterCritical:Ne.afterCritical,result:Nr,impact:Tt},Hr=!lt(Ne.current.client.offset,Gr)||Boolean(Nr.combine);if(!Hr){ie(Qe({completed:na}));return}var Ia=Pr({current:Ne.current.client.offset,destination:Gr,reason:Ge}),Ra={newHomeClientOffset:Gr,dropDuration:Ia,completed:na};ie(_a(Ra))}}},Xn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Tr(Y){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){if(ie.target!==window&&ie.target!==window.document)return;Y()}}}function Yn(Y){var Z=Y.onWindowScroll;function ie(){Z(Xn())}var be=I(ie),Le=Tr(be),Ne=Te;function Ge(){return Ne!==Te}function ze(){Ge()&&$(!1),Ne=ye(window,[Le])}function St(){Ge()||$(!1),be.cancel(),Ne(),Ne=Te}return{start:ze,stop:St,isActive:Ge}}var Cn=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},Hn=function(Y){var Z=Yn({onWindowScroll:function(be){Y.dispatch(da({newScroll:be}))}});return function(ie){return function(be){!Z.isActive()&&be.type==="INITIAL_PUBLISH"&&Z.start(),Z.isActive()&&Cn(be)&&Z.stop(),ie(be)}}},Vr=function(Y){var Z=!1,ie=!1,be=setTimeout(function(){ie=!0}),Le=function(Ge){if(Z)return;if(ie)return;Z=!0,Y(Ge),clearTimeout(be)};return Le.wasCalled=function(){return Z},Le},ua=function(){var Y=[],Z=function(Ne){var Ge=et(Y,function(jt){return jt.timerId===Ne});Ge!==-1||$(!1);var ze=Y.splice(Ge,1),St=ze[0];St.callback()},ie=function(Ne){var Ge=setTimeout(function(){return Z(Ge)}),ze={timerId:Ge,callback:Ne};Y.push(ze)},be=function(){if(!Y.length)return;var Ne=[].concat(Y);Y.length=0,Ne.forEach(function(Ge){clearTimeout(Ge.timerId),Ge.callback()})};return{add:ie,flush:be}},hr=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.droppableId===ie.droppableId&&Z.index===ie.index},aa=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.draggableId===ie.draggableId&&Z.droppableId===ie.droppableId},Ca=function(Z,ie){if(Z===ie)return!0;var be=Z.draggable.id===ie.draggable.id&&Z.draggable.droppableId===ie.draggable.droppableId&&Z.draggable.type===ie.draggable.type&&Z.draggable.index===ie.draggable.index,Le=Z.droppable.id===ie.droppable.id&&Z.droppable.type===ie.droppable.type;return be&&Le},ha=function(Z,ie){Rr(),ie(),Ir()},Sa=function(Z,ie){return{draggableId:Z.draggable.id,type:Z.droppable.type,source:{droppableId:Z.droppable.id,index:Z.draggable.index},mode:ie}},Or=function(Z,ie,be,Le){if(!Z){be(Le(ie));return}var Ne=Vr(be),Ge={announce:Ne};Z(ie,Ge),Ne.wasCalled()||be(Le(ie))},br=function(Y,Z){var ie=ua(),be=null,Le=function(Tt,kt){be&&$(!1),ha("onBeforeCapture",function(){var vn=Y().onBeforeCapture;if(vn){var cr={draggableId:Tt,mode:kt};vn(cr)}})},Ne=function(Tt,kt){be&&$(!1),ha("onBeforeDragStart",function(){var vn=Y().onBeforeDragStart;vn&&vn(Sa(Tt,kt))})},Ge=function(Tt,kt){be&&$(!1);var vn=Sa(Tt,kt);be={mode:kt,lastCritical:Tt,lastLocation:vn.source,lastCombine:null},ie.add(function(){ha("onDragStart",function(){return Or(Y().onDragStart,vn,Z,_e.onDragStart)})})},ze=function(Tt,kt){var vn=nt(kt),cr=rt(kt);be||$(!1);var mr=!Ca(Tt,be.lastCritical);mr&&(be.lastCritical=Tt);var Nr=!hr(be.lastLocation,vn);Nr&&(be.lastLocation=vn);var Gr=!aa(be.lastCombine,cr);if(Gr&&(be.lastCombine=cr),!mr&&!Nr&&!Gr)return;var na=Object(b.a)({},Sa(Tt,be.mode),{combine:cr,destination:vn});ie.add(function(){ha("onDragUpdate",function(){return Or(Y().onDragUpdate,na,Z,_e.onDragUpdate)})})},St=function(){be||$(!1),ie.flush()},jt=function(Tt){be||$(!1),be=null,ha("onDragEnd",function(){return Or(Y().onDragEnd,Tt,Z,_e.onDragEnd)})},Wt=function(){if(!be)return;var Tt=Object(b.a)({},Sa(be.lastCritical,be.mode),{combine:null,destination:null,reason:"CANCEL"});jt(Tt)};return{beforeCapture:Le,beforeStart:Ne,start:Ge,update:ze,flush:St,drop:jt,abort:Wt}},Mr=function(Y,Z){var ie=br(Y,Z);return function(be){return function(Le){return function(Ne){if(Ne.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(Ne.payload.draggableId,Ne.payload.movementMode);return}if(Ne.type==="INITIAL_PUBLISH"){var Ge=Ne.payload.critical;ie.beforeStart(Ge,Ne.payload.movementMode),Le(Ne),ie.start(Ge,Ne.payload.movementMode);return}if(Ne.type==="DROP_COMPLETE"){var ze=Ne.payload.completed.result;ie.flush(),Le(Ne),ie.drop(ze);return}if(Le(Ne),Ne.type==="FLUSH"){ie.abort();return}var St=be.getState();St.phase==="DRAGGING"&&ie.update(St.critical,St.impact)}}}},ar=function(Y){return function(Z){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){Z(ie);return}var be=Y.getState();be.phase==="DROP_ANIMATING"||$(!1),Y.dispatch(Qe({completed:be.completed}))}}},pa=function(Y){var Z=null,ie=null;function be(){ie&&(cancelAnimationFrame(ie),ie=null),Z&&(Z(),Z=null)}return function(Le){return function(Ne){if((Ne.type==="FLUSH"||Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATION_FINISHED")&&be(),Le(Ne),Ne.type!=="DROP_ANIMATE")return;var Ge={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var St=Y.getState();St.phase==="DROP_ANIMATING"&&Y.dispatch(at())}};ie=requestAnimationFrame(function(){ie=null,Z=ye(window,[Ge])})}}},xa=function(Y){return function(){return function(Z){return function(ie){(ie.type==="DROP_COMPLETE"||ie.type==="FLUSH"||ie.type==="DROP_ANIMATE")&&Y.stopPublishing(),Z(ie)}}}},ba=function(Y){var Z=!1;return function(){return function(ie){return function(be){if(be.type==="INITIAL_PUBLISH"){Z=!0,Y.tryRecordFocus(be.payload.critical.draggable.id),ie(be),Y.tryRestoreFocusRecorded();return}if(ie(be),!Z)return;if(be.type==="FLUSH"){Z=!1,Y.tryRestoreFocusRecorded();return}if(be.type==="DROP_COMPLETE"){Z=!1;var Le=be.payload.completed.result;Le.combine&&Y.tryShiftRecord(Le.draggableId,Le.combine.draggableId),Y.tryRestoreFocusRecorded()}}}}},Aa=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},ga=function(Y){return function(Z){return function(ie){return function(be){if(Aa(be)){Y.stop(),ie(be);return}if(be.type==="INITIAL_PUBLISH"){ie(be);var Le=Z.getState();Le.phase==="DRAGGING"||$(!1),Y.start(Le);return}ie(be),Y.scroll(Z.getState())}}}},Na=function(Y){return function(Z){return function(ie){if(Z(ie),ie.type!=="PUBLISH_WHILE_DRAGGING")return;var be=Y.getState();if(be.phase!=="DROP_PENDING")return;if(be.isWaiting)return;Y.dispatch(ut({reason:be.reason}))}}},ka=y.d,Fa=function(Y){var Z=Y.dimensionMarshal,ie=Y.focusMarshal,be=Y.styleMarshal,Le=Y.getResponders,Ne=Y.announce,Ge=Y.autoScroller;return Object(y.e)(qt,ka(Object(y.a)($e(be),xa(Z),Ie(Z),ta,ar,pa,Na,ga(Ge),Hn,ba(ie),Mr(Le,Ne))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(Y){var Z=Y.registry,ie=Y.callbacks,be=ni(),Le=null,Ne=function(){if(Le)return;ie.collectionStarting(),Le=requestAnimationFrame(function(){Le=null,Rr();var Wt=be,At=Wt.additions,Tt=Wt.removals,kt=Wt.modified,vn=Object.keys(At).map(function(Nr){return Z.draggable.getById(Nr).getDimension(Oe)}).sort(function(Nr,Gr){return Nr.descriptor.index-Gr.descriptor.index}),cr=Object.keys(kt).map(function(Nr){var Gr=Z.droppable.getById(Nr),na=Gr.callbacks.getScrollWhileDragging();return{droppableId:Nr,scroll:na}}),mr={additions:vn,removals:Object.keys(Tt),modified:cr};be=ni(),Ir(),ie.publish(mr)})},Ge=function(Wt){var At=Wt.descriptor.id;be.additions[At]=Wt,be.modified[Wt.descriptor.droppableId]=!0,be.removals[At]&&delete be.removals[At],Ne()},ze=function(Wt){var At=Wt.descriptor;be.removals[At.id]=!0,be.modified[At.droppableId]=!0,be.additions[At.id]&&delete be.additions[At.id],Ne()},St=function(){if(!Le)return;cancelAnimationFrame(Le),Le=null,be=ni()};return{add:Ge,remove:ze,stop:St}}var Ai=function(Y){var Z=Y.scrollHeight,ie=Y.scrollWidth,be=Y.height,Le=Y.width,Ne=tt({x:ie,y:Z},{x:Le,y:be}),Ge={x:Math.max(0,Ne.x),y:Math.max(0,Ne.y)};return Ge},La=function(){var Y=document.documentElement;return Y||$(!1),Y},bi=function(){var Y=La(),Z=Ai({scrollHeight:Y.scrollHeight,scrollWidth:Y.scrollWidth,width:Y.clientWidth,height:Y.clientHeight});return Z},Si=function(){var Y=Xn(),Z=bi(),ie=Y.y,be=Y.x,Le=La(),Ne=Le.clientWidth,Ge=Le.clientHeight,ze=be+Ne,St=ie+Ge,jt=n({top:ie,left:be,right:ze,bottom:St}),Wt={frame:jt,scroll:{initial:Y,current:Y,max:Z,diff:{value:Oe,displacement:Oe}}};return Wt},ja=function(Y){var Z=Y.critical,ie=Y.scrollOptions,be=Y.registry;Rr();var Le=Si(),Ne=Le.scroll.current,Ge=Z.droppable,ze=be.droppable.getAllByType(Ge.type).map(function(At){return At.callbacks.getDimensionAndWatchScroll(Ne,ie)}),St=be.draggable.getAllByType(Z.draggable.type).map(function(At){return At.getDimension(Ne)}),jt={draggables:rn(St),droppables:Xt(ze)};Ir();var Wt={dimensions:jt,critical:Z,viewport:Le};return Wt};function Ma(Y,Z,ie){if(ie.descriptor.id===Z.id)return!1;if(ie.descriptor.type!==Z.type)return!1;var be=Y.droppable.getById(ie.descriptor.droppableId);return!(be.descriptor.mode!=="virtual")}var Za=function(Y,Z){var ie=null,be=Fi({callbacks:{publish:Z.publishWhileDragging,collectionStarting:Z.collectionStarting},registry:Y}),Le=function(kt,vn){if(Y.droppable.exists(kt)||$(!1),!ie)return;Z.updateDroppableIsEnabled({id:kt,isEnabled:vn})},Ne=function(kt,vn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableIsCombineEnabled({id:kt,isCombineEnabled:vn})},Ge=function(kt,vn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableScroll({id:kt,newScroll:vn})},ze=function(kt,vn){if(!ie)return;Y.droppable.getById(kt).callbacks.scroll(vn)},St=function(){if(!ie)return;be.stop();var kt=ie.critical.droppable;Y.droppable.getAllByType(kt.type).forEach(function(vn){return vn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null},jt=function(kt){ie||$(!1);var vn=ie.critical.draggable;kt.type==="ADDITION"&&(Ma(Y,vn,kt.value)&&be.add(kt.value)),kt.type==="REMOVAL"&&(Ma(Y,vn,kt.value)&&be.remove(kt.value))},Wt=function(kt){ie&&$(!1);var vn=Y.draggable.getById(kt.draggableId),cr=Y.droppable.getById(vn.descriptor.droppableId),mr={draggable:vn.descriptor,droppable:cr.descriptor},Nr=Y.subscribe(jt);return ie={critical:mr,unsubscribe:Nr},ja({critical:mr,registry:Y,scrollOptions:kt.scrollOptions})},At={updateDroppableIsEnabled:Le,updateDroppableIsCombineEnabled:Ne,scrollDroppable:ze,updateDroppableScroll:Ge,startPublishing:Wt,stopPublishing:St};return At},to=function(Y,Z){return Y.phase==="IDLE"?!0:Y.phase!=="DROP_ANIMATING"||Y.completed.result.draggableId===Z?!1:Y.completed.result.reason==="DROP"},Mo=function(Y){window.scrollBy(Y.x,Y.y)},Ii=T(function(Y){return wt(Y).filter(function(Z){return Z.isEnabled?!!Z.frame:!1})}),no=function(Z,ie){var be=mt(Ii(ie),function(Le){return Le.frame||$(!1),xn(Le.frame.pageMarginBox)(Z)});return be},ro=function(Y){var Z=Y.center,ie=Y.destination,be=Y.droppables;if(ie){var Le=be[ie];return Le.frame?Le:null}var Ne=no(Z,be);return Ne},mi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Z){return Math.pow(Z,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},uo=function(Y,Z){var ie=Y[Z.size]*mi.startFromPercentage,be=Y[Z.size]*mi.maxScrollAtPercentage,Le={startScrollingFrom:ie,maxScrollValueAt:be};return Le},Io=function(Y){var Z=Y.startOfRange,ie=Y.endOfRange,be=Y.current,Le=ie-Z;if(Le===0)return 0;var Ne=be-Z,Ge=Ne/Le;return Ge},Lo=1,bo=function(Y,Z){if(Y>Z.startScrollingFrom)return 0;if(Y<=Z.maxScrollValueAt)return mi.maxPixelScroll;if(Y===Z.startScrollingFrom)return Lo;var ie=Io({startOfRange:Z.maxScrollValueAt,endOfRange:Z.startScrollingFrom,current:Y}),be=1-ie,Le=mi.maxPixelScroll*mi.ease(be);return Math.ceil(Le)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(Y,Z){var ie=Z,be=co,Le=Date.now(),Ne=Le-ie;if(Ne>=co)return Y;if(Ne<Vi)return Lo;var Ge=Io({startOfRange:Vi,endOfRange:be,current:Ne}),ze=Y*mi.ease(Ge);return Math.ceil(ze)},Yi=function(Y){var Z=Y.distanceToEdge,ie=Y.thresholds,be=Y.dragStartTime,Le=Y.shouldUseTimeDampening,Ne=bo(Z,ie);return Ne===0?0:Le?Math.max(Xi(Ne,be),Lo):Ne},No=function(Y){var Z=Y.container,ie=Y.distanceToEdges,be=Y.dragStartTime,Le=Y.axis,Ne=Y.shouldUseTimeDampening,Ge=uo(Z,Le),ze=ie[Le.end]<ie[Le.start];return ze?Yi({distanceToEdge:ie[Le.end],thresholds:Ge,dragStartTime:be,shouldUseTimeDampening:Ne}):-1*Yi({distanceToEdge:ie[Le.start],thresholds:Ge,dragStartTime:be,shouldUseTimeDampening:Ne})},yo=function(Y){var Z=Y.container,ie=Y.subject,be=Y.proposedScroll,Le=ie.height>Z.height,Ne=ie.width>Z.width;return!Ne&&!Le?be:Ne&&Le?null:{x:Ne?0:be.x,y:Le?0:be.y}},ao=je(function(Y){return Y===0?0:Y}),Ji=function(Y){var Z=Y.dragStartTime,ie=Y.container,be=Y.subject,Le=Y.center,Ne=Y.shouldUseTimeDampening,Ge={top:Le.y-ie.top,right:ie.right-Le.x,bottom:ie.bottom-Le.y,left:Le.x-ie.left},ze=No({container:ie,distanceToEdges:Ge,dragStartTime:Z,axis:on,shouldUseTimeDampening:Ne}),St=No({container:ie,distanceToEdges:Ge,dragStartTime:Z,axis:cn,shouldUseTimeDampening:Ne}),jt=ao({x:St,y:ze});if(lt(jt,Oe))return null;var Wt=yo({container:ie,subject:be,proposedScroll:jt});return Wt?lt(Wt,Oe)?null:Wt:null},Qi=je(function(Y){return Y===0?0:Y>0?1:-1}),ei=function(){var Y=function(ie,be){return ie<0?ie:ie>be?ie-be:0};return function(Z){var ie=Z.current,be=Z.max,Le=Z.change,Ne=Xe(ie,Le),Ge={x:Y(Ne.x,be.x),y:Y(Ne.y,be.y)};return lt(Ge,Oe)?null:Ge}}(),Li=function(Z){var ie=Z.max,be=Z.current,Le=Z.change,Ne={x:Math.max(be.x,ie.x),y:Math.max(be.y,ie.y)},Ge=Qi(Le),ze=ei({max:Ne,current:be,change:Ge});return ze?Ge.x!==0&&ze.x===0?!0:Ge.y!==0&&ze.y===0:!0},Di=function(Z,ie){return Li({current:Z.scroll.current,max:Z.scroll.max,change:ie})},Zi=function(Z,ie){if(!Di(Z,ie))return null;var be=Z.scroll.max,Le=Z.scroll.current;return ei({current:Le,max:be,change:ie})},Ri=function(Z,ie){var be=Z.frame;return be?Li({current:be.scroll.current,max:be.scroll.max,change:ie}):!1},Eo=function(Z,ie){var be=Z.frame;return be&&Ri(Z,ie)?ei({current:be.scroll.current,max:be.scroll.max,change:ie}):null},xo=function(Y){var Z=Y.viewport,ie=Y.subject,be=Y.center,Le=Y.dragStartTime,Ne=Y.shouldUseTimeDampening,Ge=Ji({dragStartTime:Le,container:Z.frame,subject:ie,center:be,shouldUseTimeDampening:Ne});return Ge&&Di(Z,Ge)?Ge:null},Co=function(Y){var Z=Y.droppable,ie=Y.subject,be=Y.center,Le=Y.dragStartTime,Ne=Y.shouldUseTimeDampening,Ge=Z.frame;if(!Ge)return null;var ze=Ji({dragStartTime:Le,container:Ge.pageMarginBox,subject:ie,center:be,shouldUseTimeDampening:Ne});return ze&&Ri(Z,ze)?ze:null},io=function(Y){var Z=Y.state,ie=Y.dragStartTime,be=Y.shouldUseTimeDampening,Le=Y.scrollWindow,Ne=Y.scrollDroppable,Ge=Z.current.page.borderBoxCenter,ze=Z.dimensions.draggables[Z.critical.draggable.id],St=ze.page.marginBox;if(Z.isWindowScrollAllowed){var jt=Z.viewport,Wt=xo({dragStartTime:ie,viewport:jt,subject:St,center:Ge,shouldUseTimeDampening:be});if(Wt){Le(Wt);return}}var At=ro({center:Ge,destination:Ht(Z.impact),droppables:Z.dimensions.droppables});if(!At)return;var Tt=Co({dragStartTime:ie,droppable:At,subject:St,center:Ge,shouldUseTimeDampening:be});Tt&&Ne(At.descriptor.id,Tt)},Ni=function(Y){var Z=Y.scrollWindow,ie=Y.scrollDroppable,be=I(Z),Le=I(ie),Ne=null,Ge=function(Wt){Ne||$(!1);var At=Ne,Tt=At.shouldUseTimeDampening,kt=At.dragStartTime;io({state:Wt,scrollWindow:be,scrollDroppable:Le,dragStartTime:kt,shouldUseTimeDampening:Tt})},ze=function(Wt){Rr(),Ne&&$(!1);var At=Date.now(),Tt=!1,kt=function(){Tt=!0};io({state:Wt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:kt,scrollDroppable:kt}),Ne={dragStartTime:At,shouldUseTimeDampening:Tt},Ir(),Tt&&Ge(Wt)},St=function(){if(!Ne)return;be.cancel(),Le.cancel(),Ne=null};return{start:ze,stop:St,scroll:Ge}},qi=function(Y){var Z=Y.move,ie=Y.scrollDroppable,be=Y.scrollWindow,Le=function(jt,Wt){var At=Xe(jt.current.client.selection,Wt);Z({client:At})},Ne=function(jt,Wt){if(!Ri(jt,Wt))return Wt;var At=Eo(jt,Wt);if(!At)return ie(jt.descriptor.id,Wt),null;var Tt=tt(Wt,At);ie(jt.descriptor.id,Tt);var kt=tt(Wt,Tt);return kt},Ge=function(jt,Wt,At){if(!jt)return At;if(!Di(Wt,At))return At;var Tt=Zi(Wt,At);if(!Tt)return be(At),null;var kt=tt(At,Tt);be(kt);var vn=tt(At,kt);return vn},ze=function(jt){var Wt=jt.scrollJumpRequest;if(!Wt)return;var At=Ht(jt.impact);At||$(!1);var Tt=Ne(jt.dimensions.droppables[At],Wt);if(!Tt)return;var kt=jt.viewport,vn=Ge(jt.isWindowScrollAllowed,kt,Tt);if(!vn)return;Le(jt,vn)};return ze},ko=function(Y){var Z=Y.scrollDroppable,ie=Y.scrollWindow,be=Y.move,Le=Ni({scrollWindow:ie,scrollDroppable:Z}),Ne=qi({move:be,scrollWindow:ie,scrollDroppable:Z}),Ge=function(jt){if(jt.phase!=="DRAGGING")return;if(jt.movementMode==="FLUID"){Le.scroll(jt);return}if(!jt.scrollJumpRequest)return;Ne(jt)},ze={scroll:Ge,start:Le.start,stop:Le.stop};return ze},oo="data-rbd",so=function(){var Y=oo+"-drag-handle";return{base:Y,draggableId:Y+"-draggable-id",contextId:Y+"-context-id"}}(),So=function(){var Y=oo+"-draggable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),Uo=function(){var Y=oo+"-droppable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),jo={contextId:oo+"-scroll-container-context-id"},fi=function(Z){return function(ie){return"["+ie+'="'+Z+'"]'}},Ha=function(Z,ie){return Z.map(function(be){var Le=be.styles[ie];return Le?be.selector+" { "+Le+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(Y){var Z=fi(Y),ie=function(){var ze=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Z(so.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:ze,dragging:ri,dropAnimating:ze}}}(),be=function(){var ze=`
transition: `+zt.outOfTheWay+`;
`;return{selector:Z(So.contextId),styles:{dragging:ze,dropAnimating:ze,userCancel:ze}}}(),Le={selector:Z(Uo.contextId),styles:{always:"overflow-anchor: none;"}},Ne={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},Ge=[be,ie,Le,Ne];return{always:Ha(Ge,"always"),resting:Ha(Ge,"resting"),dragging:Ha(Ge,"dragging"),dropAnimating:Ha(Ge,"dropAnimating"),userCancel:Ha(Ge,"userCancel")}},ai=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?M.useLayoutEffect:M.useEffect,wo=function(){var Z=document.querySelector("head");return Z||$(!1),Z},yi=function(Z){var ie=document.createElement("style");return Z&&ie.setAttribute("nonce",Z),ie.type="text/css",ie};function Bo(Y,Z){var ie=f(function(){return Xa(Y)},[Y]),be=Object(M.useRef)(null),Le=Object(M.useRef)(null),Ne=a(T(function(At){var Tt=Le.current;Tt||$(!1),Tt.textContent=At}),[]),Ge=a(function(At){var Tt=be.current;Tt||$(!1),Tt.textContent=At},[]);ai(function(){!be.current&&!Le.current||$(!1);var At=yi(Z),Tt=yi(Z);return be.current=At,Le.current=Tt,At.setAttribute(oo+"-always",Y),Tt.setAttribute(oo+"-dynamic",Y),wo().appendChild(At),wo().appendChild(Tt),Ge(ie.always),Ne(ie.resting),function(){var kt=function(cr){var mr=cr.current;mr||$(!1),wo().removeChild(mr),cr.current=null};kt(be),kt(Le)}},[Z,Ge,Ne,ie.always,ie.resting,Y]);var ze=a(function(){return Ne(ie.dragging)},[Ne,ie.dragging]),St=a(function(At){if(At==="DROP"){Ne(ie.dropAnimating);return}Ne(ie.userCancel)},[Ne,ie.dropAnimating,ie.userCancel]),jt=a(function(){if(!Le.current)return;Ne(ie.resting)},[Ne,ie.resting]),Wt=f(function(){return{dragging:ze,dropping:St,resting:jt}},[ze,St,jt]);return Wt}var To=function(Y){return Y&&Y.ownerDocument?Y.ownerDocument.defaultView:window};function $i(Y){return Y instanceof To(Y).HTMLElement}function Wi(Y,Z){var ie="["+so.contextId+'="'+Y+'"]',be=Lt(document.querySelectorAll(ie));if(!be.length)return null;var Le=mt(be,function(Ne){return Ne.getAttribute(so.draggableId)===Z});return Le&&$i(Le)?Le:null}function Oo(Y){var Z=Object(M.useRef)({}),ie=Object(M.useRef)(null),be=Object(M.useRef)(null),Le=Object(M.useRef)(!1),Ne=a(function(Tt,kt){var vn={id:Tt,focus:kt};return Z.current[Tt]=vn,function(){var mr=Z.current,Nr=mr[Tt];Nr!==vn&&delete mr[Tt]}},[]),Ge=a(function(Tt){var kt=Wi(Y,Tt);kt&&kt!==document.activeElement&&kt.focus()},[Y]),ze=a(function(Tt,kt){ie.current===Tt&&(ie.current=kt)},[]),St=a(function(){if(be.current)return;if(!Le.current)return;be.current=requestAnimationFrame(function(){be.current=null;var Tt=ie.current;Tt&&Ge(Tt)})},[Ge]),jt=a(function(Tt){ie.current=null;var kt=document.activeElement;if(!kt)return;if(kt.getAttribute(so.draggableId)!==Tt)return;ie.current=Tt},[]);ai(function(){return Le.current=!0,function(){Le.current=!1;var Tt=be.current;Tt&&cancelAnimationFrame(Tt)}},[]);var Wt=f(function(){return{register:Ne,tryRecordFocus:jt,tryRestoreFocusRecorded:St,tryShiftRecord:ze}},[Ne,jt,St,ze]);return Wt}function fo(){var Y={draggables:{},droppables:{}},Z=[];function ie(At){return Z.push(At),function(){var kt=Z.indexOf(At);if(kt===-1)return;Z.splice(kt,1)}}function be(At){Z.length&&Z.forEach(function(Tt){return Tt(At)})}function Le(At){return Y.draggables[At]||null}function Ne(At){var Tt=Le(At);return Tt||$(!1),Tt}var Ge={register:function(Tt){Y.draggables[Tt.descriptor.id]=Tt,be({type:"ADDITION",value:Tt})},update:function(Tt,kt){var vn=Y.draggables[kt.descriptor.id];if(!vn)return;if(vn.uniqueId!==Tt.uniqueId)return;delete Y.draggables[kt.descriptor.id],Y.draggables[Tt.descriptor.id]=Tt},unregister:function(Tt){var kt=Tt.descriptor.id,vn=Le(kt);if(!vn)return;if(Tt.uniqueId!==vn.uniqueId)return;delete Y.draggables[kt],be({type:"REMOVAL",value:Tt})},getById:Ne,findById:Le,exists:function(Tt){return Boolean(Le(Tt))},getAllByType:function(Tt){return Fe(Y.draggables).filter(function(kt){return kt.descriptor.type===Tt})}};function ze(At){return Y.droppables[At]||null}function St(At){var Tt=ze(At);return Tt||$(!1),Tt}var jt={register:function(Tt){Y.droppables[Tt.descriptor.id]=Tt},unregister:function(Tt){var kt=ze(Tt.descriptor.id);if(!kt)return;if(Tt.uniqueId!==kt.uniqueId)return;delete Y.droppables[Tt.descriptor.id]},getById:St,findById:ze,exists:function(Tt){return Boolean(ze(Tt))},getAllByType:function(Tt){return Fe(Y.droppables).filter(function(kt){return kt.descriptor.type===Tt})}};function Wt(){Y.draggables={},Y.droppables={},Z.length=0}return{draggable:Ge,droppable:jt,subscribe:ie,clean:Wt}}function Wo(){var Y=f(fo,[]);return Object(M.useEffect)(function(){return function(){requestAnimationFrame(Y.clean)}},[Y]),Y}var lo=m.a.createContext(null),Da=function(){var Y=document.body;return Y||$(!1),Y},ya={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ga=function(Z){return"rbd-announcement-"+Z};function ui(Y){var Z=f(function(){return Ga(Y)},[Y]),ie=Object(M.useRef)(null);Object(M.useEffect)(function(){var Ne=document.createElement("div");return ie.current=Ne,Ne.id=Z,Ne.setAttribute("aria-live","assertive"),Ne.setAttribute("aria-atomic","true"),Object(b.a)(Ne.style,ya),Da().appendChild(Ne),function(){setTimeout(function(){var St=Da();St.contains(Ne)&&St.removeChild(Ne),Ne===ie.current&&(ie.current=null)})}},[Z]);var be=a(function(Le){var Ne=ie.current;if(Ne){Ne.textContent=Le;return}},[]);return be}var eo=0,ki={separator:"::"};function ho(){eo=0}function wi(Y,Z){return Z===void 0&&(Z=ki),f(function(){return""+Y+Z.separator+eo++},[Z.separator,Y])}function qa(Y){var Z=Y.contextId,ie=Y.uniqueId;return"rbd-hidden-text-"+Z+"-"+ie}function po(Y){var Z=Y.contextId,ie=Y.text,be=wi("hidden-text",{separator:"-"}),Le=f(function(){return qa({contextId:Z,uniqueId:be})},[be,Z]);return Object(M.useEffect)(function(){var Ge=document.createElement("div");return Ge.id=Le,Ge.textContent=ie,Ge.style.display="none",Da().appendChild(Ge),function(){var St=Da();St.contains(Ge)&&St.removeChild(Ge)}},[Le,ie]),Le}var Hi=m.a.createContext(null),mo={react:"^16.8.5","react-dom":"^16.8.5"},hi=/(\d+)\.(\d+)\.(\d+)/,Pa=function(Z){var ie=hi.exec(Z);ie!=null||$(!1);var be=Number(ie[1]),Le=Number(ie[2]),Ne=Number(ie[3]);return{major:be,minor:Le,patch:Ne,raw:Z}},sa=function(Z,ie){return ie.major>Z.major?!0:ie.major<Z.major?!1:ie.minor>Z.minor?!0:ie.minor<Z.minor?!1:ie.patch>=Z.patch},Sr=function(Y,Z){var ie=Pa(Y),be=Pa(Z);if(sa(ie,be))return},Zr=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,va=function(Y){var Z=Y.doctype;if(!Z)return;Z.name.toLowerCase()!=="html",Z.publicId!==""};function Wa(Y){}function Ei(Y,Z){Wa(function(){Object(M.useEffect)(function(){try{Y()}catch(ie){Ce(`
A setup problem was encountered.
> `+ie.message+`
`)}},Z)})}function Pi(){Ei(function(){Sr(mo.react,m.a.version),va(document)},[])}function $a(Y){var Z=Object(M.useRef)(Y);return Object(M.useEffect)(function(){Z.current=Y}),Z}function xi(){var Y=null;function Z(){return Boolean(Y)}function ie(Ge){return Ge===Y}function be(Ge){Y&&$(!1);var ze={abandon:Ge};return Y=ze,ze}function Le(){Y||$(!1),Y=null}function Ne(){Y&&(Y.abandon(),Le())}return{isClaimed:Z,isActive:ie,claim:be,release:Le,tryAbandon:Ne}}var Ki=9,go=13,Qa=27,As=32,Ys=33,Pl=34,hs=35,Ds=36,Js=37,Ml=38,Qs=39,Il=40,ps,ms=(ps={},ps[go]=!0,ps[Ki]=!0,ps),Rs=function(Y){ms[Y.keyCode]&&Y.preventDefault()},gs=function(){var Y="visibilitychange";if(typeof document=="undefined")return Y;var Z=[Y,"ms"+Y,"webkit"+Y,"moz"+Y,"o"+Y],ie=mt(Z,function(be){return"on"+be in document});return ie||Y}(),Zs=0,Ps=5;function Ho(Y,Z){return Math.abs(Z.x-Y.x)>=Ps||Math.abs(Z.y-Y.y)>=Ps}var vs={type:"IDLE"};function _s(Y){var Z=Y.cancel,ie=Y.completed,be=Y.getPhase,Le=Y.setPhase;return[{eventName:"mousemove",fn:function(Ge){var ze=Ge.button,St=Ge.clientX,jt=Ge.clientY;if(ze!==Zs)return;var Wt={x:St,y:jt},At=be();if(At.type==="DRAGGING"){Ge.preventDefault(),At.actions.move(Wt);return}At.type==="PENDING"||$(!1);var Tt=At.point;if(!Ho(Tt,Wt))return;Ge.preventDefault();var kt=At.actions.fluidLift(Wt);Le({type:"DRAGGING",actions:kt})}},{eventName:"mouseup",fn:function(Ge){var ze=be();if(ze.type!=="DRAGGING"){Z();return}Ge.preventDefault(),ze.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(Ge){be().type==="DRAGGING"&&Ge.preventDefault(),Z()}},{eventName:"keydown",fn:function(Ge){var ze=be();if(ze.type==="PENDING"){Z();return}if(Ge.keyCode===Qa){Ge.preventDefault(),Z();return}Rs(Ge)}},{eventName:"resize",fn:Z},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){be().type==="PENDING"&&Z()}},{eventName:"webkitmouseforcedown",fn:function(Ge){var ze=be();if(ze.type!=="IDLE"||$(!1),ze.actions.shouldRespectForcePress()){Z();return}Ge.preventDefault()}},{eventName:gs,fn:Z}]}function $s(Y){var Z=Object(M.useRef)(vs),ie=Object(M.useRef)(Te),be=f(function(){return{eventName:"mousedown",fn:function(At){if(At.defaultPrevented)return;if(At.button!==Zs)return;if(At.ctrlKey||At.metaKey||At.shiftKey||At.altKey)return;var Tt=Y.findClosestDraggableId(At);if(!Tt)return;var kt=Y.tryGetLock(Tt,Ge,{sourceEvent:At});if(!kt)return;At.preventDefault();var vn={x:At.clientX,y:At.clientY};ie.current(),jt(kt,vn)}}},[Y]),Le=f(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(At){if(At.defaultPrevented)return;var Tt=Y.findClosestDraggableId(At);if(!Tt)return;var kt=Y.findOptionsForDraggable(Tt);if(!kt)return;if(kt.shouldRespectForcePress)return;if(!Y.canGetLock(Tt))return;At.preventDefault()}}},[Y]),Ne=a(function(){var At={passive:!1,capture:!0};ie.current=ye(window,[Le,be],At)},[Le,be]),Ge=a(function(){var Wt=Z.current;if(Wt.type==="IDLE")return;Z.current=vs,ie.current(),Ne()},[Ne]),ze=a(function(){var Wt=Z.current;Ge(),Wt.type==="DRAGGING"&&Wt.actions.cancel({shouldBlockNextClick:!0}),Wt.type==="PENDING"&&Wt.actions.abort()},[Ge]),St=a(function(){var At={capture:!0,passive:!1},Tt=_s({cancel:ze,completed:Ge,getPhase:function(){return Z.current},setPhase:function(vn){Z.current=vn}});ie.current=ye(window,Tt,At)},[ze,Ge]),jt=a(function(At,Tt){Z.current.type==="IDLE"||$(!1),Z.current={type:"PENDING",point:Tt,actions:At},St()},[St]);ai(function(){return Ne(),function(){ie.current()}},[Ne])}var Ao;function el(){}var Ll=(Ao={},Ao[Pl]=!0,Ao[Ys]=!0,Ao[Ds]=!0,Ao[hs]=!0,Ao);function tl(Y,Z){function ie(){Z(),Y.cancel()}function be(){Z(),Y.drop()}return[{eventName:"keydown",fn:function(Ne){if(Ne.keyCode===Qa){Ne.preventDefault(),ie();return}if(Ne.keyCode===As){Ne.preventDefault(),be();return}if(Ne.keyCode===Il){Ne.preventDefault(),Y.moveDown();return}if(Ne.keyCode===Ml){Ne.preventDefault(),Y.moveUp();return}if(Ne.keyCode===Qs){Ne.preventDefault(),Y.moveRight();return}if(Ne.keyCode===Js){Ne.preventDefault(),Y.moveLeft();return}if(Ll[Ne.keyCode]){Ne.preventDefault();return}Rs(Ne)}},{eventName:"mousedown",fn:ie},{eventName:"mouseup",fn:ie},{eventName:"click",fn:ie},{eventName:"touchstart",fn:ie},{eventName:"resize",fn:ie},{eventName:"wheel",fn:ie,options:{passive:!0}},{eventName:gs,fn:ie}]}function gi(Y){var Z=Object(M.useRef)(el),ie=f(function(){return{eventName:"keydown",fn:function(Ne){if(Ne.defaultPrevented)return;if(Ne.keyCode!==As)return;var Ge=Y.findClosestDraggableId(Ne);if(!Ge)return;var ze=Y.tryGetLock(Ge,Wt,{sourceEvent:Ne});if(!ze)return;Ne.preventDefault();var St=!0,jt=ze.snapLift();Z.current();function Wt(){St||$(!1),St=!1,Z.current(),be()}Z.current=ye(window,tl(jt,Wt),{capture:!0,passive:!1})}}},[Y]),be=a(function(){var Ne={passive:!1,capture:!0};Z.current=ye(window,[ie],Ne)},[ie]);ai(function(){return be(),function(){Z.current()}},[be])}var Ko={type:"IDLE"},nl=120,rl=.15;function al(Y){var Z=Y.cancel,ie=Y.getPhase;return[{eventName:"orientationchange",fn:Z},{eventName:"resize",fn:Z},{eventName:"contextmenu",fn:function(Le){Le.preventDefault()}},{eventName:"keydown",fn:function(Le){if(ie().type!=="DRAGGING"){Z();return}Le.keyCode===Qa&&Le.preventDefault(),Z()}},{eventName:gs,fn:Z}]}function Go(Y){var Z=Y.cancel,ie=Y.completed,be=Y.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ne){var Ge=be();if(Ge.type!=="DRAGGING"){Z();return}Ge.hasMoved=!0;var ze=Ne.touches[0],St=ze.clientX,jt=ze.clientY,Wt={x:St,y:jt};Ne.preventDefault(),Ge.actions.move(Wt)}},{eventName:"touchend",fn:function(Ne){var Ge=be();if(Ge.type!=="DRAGGING"){Z();return}Ne.preventDefault(),Ge.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(Ne){if(be().type!=="DRAGGING"){Z();return}Ne.preventDefault(),Z()}},{eventName:"touchforcechange",fn:function(Ne){var Ge=be();Ge.type!=="IDLE"||$(!1);var ze=Ne.touches[0];if(!ze)return;var St=ze.force>=rl;if(!St)return;var jt=Ge.actions.shouldRespectForcePress();if(Ge.type==="PENDING"){jt&&Z();return}if(jt){if(Ge.hasMoved){Ne.preventDefault();return}Z();return}Ne.preventDefault()}},{eventName:gs,fn:Z}]}function bs(Y){var Z=Object(M.useRef)(Ko),ie=Object(M.useRef)(Te),be=a(function(){return Z.current},[]),Le=a(function(kt){Z.current=kt},[]),Ne=f(function(){return{eventName:"touchstart",fn:function(kt){if(kt.defaultPrevented)return;var vn=Y.findClosestDraggableId(kt);if(!vn)return;var cr=Y.tryGetLock(vn,ze,{sourceEvent:kt});if(!cr)return;var mr=kt.touches[0],Nr=mr.clientX,Gr=mr.clientY,na={x:Nr,y:Gr};ie.current(),At(cr,na)}}},[Y]),Ge=a(function(){var kt={capture:!0,passive:!1};ie.current=ye(window,[Ne],kt)},[Ne]),ze=a(function(){var Tt=Z.current;if(Tt.type==="IDLE")return;Tt.type==="PENDING"&&clearTimeout(Tt.longPressTimerId),Le(Ko),ie.current(),Ge()},[Ge,Le]),St=a(function(){var Tt=Z.current;ze(),Tt.type==="DRAGGING"&&Tt.actions.cancel({shouldBlockNextClick:!0}),Tt.type==="PENDING"&&Tt.actions.abort()},[ze]),jt=a(function(){var kt={capture:!0,passive:!1},vn={cancel:St,completed:ze,getPhase:be},cr=ye(window,Go(vn),kt),mr=ye(window,al(vn),kt);ie.current=function(){cr(),mr()}},[St,be,ze]),Wt=a(function(){var kt=be();kt.type==="PENDING"||$(!1);var vn=kt.actions.fluidLift(kt.point);Le({type:"DRAGGING",actions:vn,hasMoved:!1})},[be,Le]),At=a(function(kt,vn){be().type==="IDLE"||$(!1);var cr=setTimeout(Wt,nl);Le({type:"PENDING",point:vn,actions:kt,longPressTimerId:cr}),jt()},[jt,be,Le,Wt]);ai(function(){return Ge(),function(){ie.current();var vn=be();vn.type==="PENDING"&&(clearTimeout(vn.longPressTimerId),Le(Ko))}},[be,Ge,Le]),ai(function(){var kt=ye(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return kt},[])}function il(Y){Wa(function(){var Z=$a(Y);Ei(function(){Z.current.length===Y.length||$(!1)})})}var ol={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(Y,Z){if(Z==null)return!1;var ie=Boolean(ol[Z.tagName.toLowerCase()]);if(ie)return!0;var be=Z.getAttribute("contenteditable");return be==="true"||be===""?!0:Z===Y?!1:Ms(Y,Z.parentElement)}function zo(Y,Z){var ie=Z.target;return $i(ie)?Ms(Y,ie):!1}var sl=function(Y){return n(Y.getBoundingClientRect()).center};function ys(Y){return Y instanceof To(Y).Element}var ll=function(){var Y="matches";if(typeof document=="undefined")return Y;var Z=[Y,"msMatchesSelector","webkitMatchesSelector"],ie=mt(Z,function(be){return be in Element.prototype});return ie||Y}();function Vo(Y,Z){return Y==null?null:Y[ll](Z)?Y:Vo(Y.parentElement,Z)}function Nl(Y,Z){return Y.closest?Y.closest(Z):Vo(Y,Z)}function Xo(Y){return"["+so.contextId+'="'+Y+'"]'}function ul(Y,Z){var ie=Z.target;if(!ys(ie))return null;var be=Xo(Y),Le=Nl(ie,be);return Le&&$i(Le)?Le:null}function cl(Y,Z){var ie=ul(Y,Z);return ie?ie.getAttribute(so.draggableId):null}function dl(Y,Z){var ie="["+So.contextId+'="'+Y+'"]',be=Lt(document.querySelectorAll(ie)),Le=mt(be,function(Ne){return Ne.getAttribute(So.id)===Z});return Le&&$i(Le)?Le:null}function ts(Y){Y.preventDefault()}function Do(Y){var Z=Y.expected,ie=Y.phase,be=Y.isLockActive,Le=Y.shouldWarn;return be()?!(Z!==ie):!1}function Yo(Y){var Z=Y.lockAPI,ie=Y.store,be=Y.registry,Le=Y.draggableId;if(Z.isClaimed())return!1;var Ne=be.draggable.findById(Le);return Ne&&Ne.options.isEnabled?!!to(ie.getState(),Le):!1}function ns(Y){var Z=Y.lockAPI,ie=Y.contextId,be=Y.store,Le=Y.registry,Ne=Y.draggableId,Ge=Y.forceSensorStop,ze=Y.sourceEvent,St=Yo({lockAPI:Z,store:be,registry:Le,draggableId:Ne});if(!St)return null;var jt=Le.draggable.getById(Ne),Wt=dl(ie,jt.descriptor.id);if(!Wt)return null;if(ze&&!jt.options.canDragInteractiveElements&&zo(Wt,ze))return null;var At=Z.claim(Ge||Te),Tt="PRE_DRAG";function kt(){return jt.options.shouldRespectForcePress}function vn(){return Z.isActive(At)}function cr(Ra,za){Do({expected:Ra,phase:Tt,isLockActive:vn,shouldWarn:!0})&&be.dispatch(za())}var mr=cr.bind(null,"DRAGGING");function Nr(Ra){function za(){Z.release(),Tt="COMPLETED"}Tt!=="PRE_DRAG"&&(za(),Tt==="PRE_DRAG"||$(!1)),be.dispatch(Qn(Ra.liftActionArgs)),Tt="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Ra.cleanup(),p.shouldBlockNextClick){var B=ye(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(B)}za(),be.dispatch(ut({reason:t}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:Tt,isLockActive:vn,shouldWarn:!1})},shouldRespectForcePress:kt,drop:function(p){return si("DROP",p)},cancel:function(p){return si("CANCEL",p)}},Ra.actions)}function Gr(Ra){var za=I(function(t){mr(function(){return ur({client:t})})}),si=Nr({liftActionArgs:{id:Ne,clientSelection:Ra,movementMode:"FLUID"},cleanup:function(){return za.cancel()},actions:{move:za}});return Object(b.a)({},si,{move:za})}function na(){var Ra={moveUp:function(){return mr(_r)},moveRight:function(){return mr(Kr)},moveDown:function(){return mr(wr)},moveLeft:function(){return mr(Jr)}};return Nr({liftActionArgs:{id:Ne,clientSelection:sl(Wt),movementMode:"SNAP"},cleanup:Te,actions:Ra})}function Hr(){var Ra=Do({expected:"PRE_DRAG",phase:Tt,isLockActive:vn,shouldWarn:!0});Ra&&Z.release()}var Ia={isActive:function(){return Do({expected:"PRE_DRAG",phase:Tt,isLockActive:vn,shouldWarn:!1})},shouldRespectForcePress:kt,fluidLift:Gr,snapLift:na,abort:Hr};return Ia}var fl=[$s,gi,bs];function kl(Y){var Z=Y.contextId,ie=Y.store,be=Y.registry,Le=Y.customSensors,Ne=Y.enableDefaultSensors,Ge=[].concat(Ne?fl:[],Le||[]),ze=Object(M.useState)(function(){return xi()})[0],St=a(function(Gr,na){Gr.isDragging&&!na.isDragging&&ze.tryAbandon()},[ze]);ai(function(){var Gr=ie.getState(),na=ie.subscribe(function(){var Hr=ie.getState();St(Gr,Hr),Gr=Hr});return na},[ze,ie,St]),ai(function(){return ze.tryAbandon},[ze.tryAbandon]);var jt=a(function(Nr){return Yo({lockAPI:ze,registry:be,store:ie,draggableId:Nr})},[ze,be,ie]),Wt=a(function(Nr,Gr,na){return ns({lockAPI:ze,registry:be,contextId:Z,store:ie,draggableId:Nr,forceSensorStop:Gr,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Z,ze,be,ie]),At=a(function(Nr){return cl(Z,Nr)},[Z]),Tt=a(function(Nr){var Gr=be.draggable.findById(Nr);return Gr?Gr.options:null},[be.draggable]),kt=a(function(){if(!ze.isClaimed())return;ze.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Oa())},[ze,ie]),vn=a(ze.isClaimed,[ze]),cr=f(function(){return{canGetLock:jt,tryGetLock:Wt,findClosestDraggableId:At,findOptionsForDraggable:Tt,tryReleaseLock:kt,isLockClaimed:vn}},[jt,Wt,At,Tt,kt,vn]);il(Ge);for(var mr=0;mr<Ge.length;mr++)Ge[mr](cr)}var hl=function(Z){return{onBeforeCapture:Z.onBeforeCapture,onBeforeDragStart:Z.onBeforeDragStart,onDragStart:Z.onDragStart,onDragEnd:Z.onDragEnd,onDragUpdate:Z.onDragUpdate}};function Gi(Y){return Y.current||$(!1),Y.current}function Jo(Y){var Z=Y.contextId,ie=Y.setCallbacks,be=Y.sensors,Le=Y.nonce,Ne=Y.dragHandleUsageInstructions,Ge=Object(M.useRef)(null);Pi();var ze=$a(Y),St=a(function(){return hl(ze.current)},[ze]),jt=ui(Z),Wt=po({contextId:Z,text:Ne}),At=Bo(Z,Le),Tt=a(function(t){Gi(Ge).dispatch(t)},[]),kt=f(function(){return Object(y.b)({publishWhileDragging:jn,updateDroppableScroll:fr,updateDroppableIsEnabled:lr,updateDroppableIsCombineEnabled:qr,collectionStarting:or},Tt)},[Tt]),vn=Wo(),cr=f(function(){return Za(vn,kt)},[vn,kt]),mr=f(function(){return ko(Object(b.a)({scrollWindow:Mo,scrollDroppable:cr.scrollDroppable},Object(y.b)({move:ur},Tt)))},[cr.scrollDroppable,Tt]),Nr=Oo(Z),Gr=f(function(){return Fa({announce:jt,autoScroller:mr,dimensionMarshal:cr,focusMarshal:Nr,getResponders:St,styleMarshal:At})},[jt,mr,cr,Nr,St,At]);Ge.current=Gr;var na=a(function(){var t=Gi(Ge),p=t.getState();p.phase!=="IDLE"&&t.dispatch(Oa())},[]),Hr=a(function(){var t=Gi(Ge).getState();return t.isDragging||t.phase==="DROP_ANIMATING"},[]),Ia=f(function(){return{isDragging:Hr,tryAbort:na}},[Hr,na]);ie(Ia);var Ra=a(function(t){return to(Gi(Ge).getState(),t)},[]),za=a(function(){return nn(Gi(Ge).getState())},[]),si=f(function(){return{marshal:cr,focus:Nr,contextId:Z,canLift:Ra,isMovementAllowed:za,dragHandleUsageInstructionsId:Wt,registry:vn}},[Z,cr,Wt,Nr,Ra,za,vn]);return kl({contextId:Z,store:Gr,registry:vn,customSensors:be,enableDefaultSensors:Y.enableDefaultSensors!==!1}),Object(M.useEffect)(function(){return na},[na]),m.a.createElement(Hi.Provider,{value:si},m.a.createElement(C.a,{context:lo,store:Gr},Y.children))}var Qo=0;function Ul(){Qo=0}function pl(){return f(function(){return""+Qo++},[])}function iu(){Ul(),ho()}function jl(Y){var Z=pl(),ie=Y.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return m.a.createElement(me,null,function(be){return m.a.createElement(Jo,{nonce:Y.nonce,contextId:Z,setCallbacks:be,dragHandleUsageInstructions:ie,enableDefaultSensors:Y.enableDefaultSensors,sensors:Y.sensors,onBeforeCapture:Y.onBeforeCapture,onBeforeDragStart:Y.onBeforeDragStart,onDragStart:Y.onDragStart,onDragUpdate:Y.onDragUpdate,onDragEnd:Y.onDragEnd},Y.children)})}var Is=function(Z){return function(ie){return Z===ie}},Ti=Is("scroll"),ml=Is("auto"),Bl=Is("visible"),gl=function(Z,ie){return ie(Z.overflowX)||ie(Z.overflowY)},Fl=function(Z,ie){return ie(Z.overflowX)&&ie(Z.overflowY)},Ls=function(Z){var ie=window.getComputedStyle(Z),be={overflowX:ie.overflowX,overflowY:ie.overflowY};return gl(be,Ti)||gl(be,ml)},vl=function(){return!1;var Z,ie;if(!Ls(Z))return!1;var be,Le;if(Fl(Le,Bl))return!1},Ns=function Y(Z){return Z==null?null:Z===document.body?vl()?Z:null:Z===document.documentElement?null:Ls(Z)?Z:Y(Z.parentElement)},ou=function(Y){if(!Y)return;var Z=Ns(Y.parentElement);if(!Z)return},ks=function(Y){return{x:Y.scrollLeft,y:Y.scrollTop}},Wl=function Y(Z){if(!Z)return!1;var ie=window.getComputedStyle(Z);return ie.position==="fixed"?!0:Y(Z.parentElement)},Ro=function(Y){var Z=Ns(Y),ie=Wl(Y);return{closestScrollable:Z,isFixedOnPage:ie}},rs=function(Y){var Z=Y.descriptor,ie=Y.isEnabled,be=Y.isCombineEnabled,Le=Y.isFixedOnPage,Ne=Y.direction,Ge=Y.client,ze=Y.page,St=Y.closest,jt=function(){if(!St)return null;var kt=St.scrollSize,vn=St.client,cr=Ai({scrollHeight:kt.scrollHeight,scrollWidth:kt.scrollWidth,height:vn.paddingBox.height,width:vn.paddingBox.width});return{pageMarginBox:St.page.marginBox,frameClient:vn,scrollSize:kt,shouldClipSubject:St.shouldClipSubject,scroll:{initial:St.scroll,current:St.scroll,max:cr,diff:{value:Oe,displacement:Oe}}}}(),Wt=Ne==="vertical"?on:cn,At=Ae({page:ze,withPlaceholder:null,axis:Wt,frame:jt}),Tt={descriptor:Z,isCombineEnabled:be,isFixedOnPage:Le,axis:Wt,isEnabled:ie,client:Ge,page:ze,frame:jt,subject:At};return Tt},Es=function(Z,ie){var be=P(Z);if(!ie)return be;if(Z!==ie)return be;var Le=be.paddingBox.top-ie.scrollTop,Ne=be.paddingBox.left-ie.scrollLeft,Ge=Le+ie.scrollHeight,ze=Ne+ie.scrollWidth,St={top:Le,right:ze,bottom:Ge,left:Ne},jt=i(St,be.border),Wt=d({borderBox:jt,margin:be.margin,border:be.border,padding:be.padding});return Wt},as=function(Y){var Z=Y.ref,ie=Y.descriptor,be=Y.env,Le=Y.windowScroll,Ne=Y.direction,Ge=Y.isDropDisabled,ze=Y.isCombineEnabled,St=Y.shouldClipSubject,jt=be.closestScrollable,Wt=Es(Z,jt),At=E(Wt,Le),Tt=function(){if(!jt)return null;var vn=P(jt),cr={scrollHeight:jt.scrollHeight,scrollWidth:jt.scrollWidth};return{client:vn,page:E(vn,Le),scroll:ks(jt),scrollSize:cr,shouldClipSubject:St}}(),kt=rs({descriptor:ie,isEnabled:!Ge,isCombineEnabled:ze,isFixedOnPage:be.isFixedOnPage,direction:Ne,client:Wt,page:At,closest:Tt});return kt},vo={passive:!1},Hl={passive:!0},_l=function(Y){return Y.shouldPublishImmediately?vo:Hl};function _o(Y){var Z=Object(M.useContext)(Y);return Z||$(!1),Z}var is=function(Z){return Z&&Z.env.closestScrollable||null};function bl(Y){var Z=Object(M.useRef)(null),ie=_o(Hi),be=wi("droppable"),Le=ie.registry,Ne=ie.marshal,Ge=$a(Y),ze=f(function(){return{id:Y.droppableId,type:Y.type,mode:Y.mode}},[Y.droppableId,Y.mode,Y.type]),St=Object(M.useRef)(ze),jt=f(function(){return T(function(Hr,Ia){Z.current||$(!1);var Ra={x:Hr,y:Ia};Ne.updateDroppableScroll(ze.id,Ra)})},[ze.id,Ne]),Wt=a(function(){var Hr=Z.current;return!Hr||!Hr.env.closestScrollable?Oe:ks(Hr.env.closestScrollable)},[]),At=a(function(){var Hr=Wt();jt(Hr.x,Hr.y)},[Wt,jt]),Tt=f(function(){return I(At)},[At]),kt=a(function(){var Hr=Z.current,Ia=is(Hr);Hr&&Ia||$(!1);var Ra=Hr.scrollOptions;if(Ra.shouldPublishImmediately){At();return}Tt()},[Tt,At]),vn=a(function(Hr,Ia){Z.current&&$(!1);var Ra=Ge.current,za=Ra.getDroppableRef();za||$(!1);var si=Ro(za),t={ref:za,descriptor:ze,env:si,scrollOptions:Ia};Z.current=t;var p=as({ref:za,descriptor:ze,env:si,windowScroll:Hr,direction:Ra.direction,isDropDisabled:Ra.isDropDisabled,isCombineEnabled:Ra.isCombineEnabled,shouldClipSubject:!Ra.ignoreContainerClipping}),B=si.closestScrollable;return B&&(B.setAttribute(jo.contextId,ie.contextId),B.addEventListener("scroll",kt,_l(t.scrollOptions))),p},[ie.contextId,ze,kt,Ge]),cr=a(function(){var Hr=Z.current,Ia=is(Hr);return Hr&&Ia||$(!1),ks(Ia)},[]),mr=a(function(){var Hr=Z.current;Hr||$(!1);var Ia=is(Hr);if(Z.current=null,!Ia)return;Tt.cancel(),Ia.removeAttribute(jo.contextId),Ia.removeEventListener("scroll",kt,_l(Hr.scrollOptions))},[kt,Tt]),Nr=a(function(Hr){var Ia=Z.current;Ia||$(!1);var Ra=is(Ia);Ra||$(!1),Ra.scrollTop+=Hr.y,Ra.scrollLeft+=Hr.x},[]),Gr=f(function(){return{getDimensionAndWatchScroll:vn,getScrollWhileDragging:cr,dragStopped:mr,scroll:Nr}},[mr,vn,cr,Nr]),na=f(function(){return{uniqueId:be,descriptor:ze,callbacks:Gr}},[Gr,ze,be]);ai(function(){return St.current=na.descriptor,Le.droppable.register(na),function(){Z.current&&mr(),Le.droppable.unregister(na)}},[Gr,ze,mr,na,Ne,Le.droppable]),ai(function(){if(!Z.current)return;Ne.updateDroppableIsEnabled(St.current.id,!Y.isDropDisabled)},[Y.isDropDisabled,Ne]),ai(function(){if(!Z.current)return;Ne.updateDroppableIsCombineEnabled(St.current.id,Y.isCombineEnabled)},[Y.isCombineEnabled,Ne])}function xs(){}var os={width:0,height:0,margin:Pt},Zo=function(Z){var ie=Z.isAnimatingOpenOnMount,be=Z.placeholder,Le=Z.animate;return ie||Le==="close"?os:{height:be.client.borderBox.height,width:be.client.borderBox.width,margin:be.client.margin}},Us=function(Z){var ie=Z.isAnimatingOpenOnMount,be=Z.placeholder,Le=Z.animate,Ne=Zo({isAnimatingOpenOnMount:ie,placeholder:be,animate:Le});return{display:be.display,boxSizing:"border-box",width:Ne.width,height:Ne.height,marginTop:Ne.margin.top,marginRight:Ne.margin.right,marginBottom:Ne.margin.bottom,marginLeft:Ne.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Le!=="none"?zt.placeholder:null}};function js(Y){var Z=Object(M.useRef)(null),ie=a(function(){if(!Z.current)return;clearTimeout(Z.current),Z.current=null},[]),be=Y.animate,Le=Y.onTransitionEnd,Ne=Y.onClose,Ge=Y.contextId,ze=Object(M.useState)(Y.animate==="open"),St=ze[0],jt=ze[1];Object(M.useEffect)(function(){return St?be!=="open"?(ie(),jt(!1),xs):Z.current?xs:(Z.current=setTimeout(function(){Z.current=null,jt(!1)}),ie):xs},[be,St,ie]);var Wt=a(function(Tt){if(Tt.propertyName!=="height")return;Le(),be==="close"&&Ne()},[be,Ne,Le]),At=Us({isAnimatingOpenOnMount:St,animate:Y.animate,placeholder:Y.placeholder});return m.a.createElement(Y.placeholder.tagName,{style:At,"data-rbd-placeholder-context-id":Ge,onTransitionEnd:Wt,ref:Y.innerRef})}var Bs=m.a.memo(js),Fs=m.a.createContext(null);function qo(Y){Y&&$i(Y)||$(!1)}function Cs(Y){return typeof Y=="boolean"}function Ws(Y,Z){Z.forEach(function(ie){return ie(Y)})}var yl=[function(Z){var ie=Z.props;ie.droppableId||$(!1),typeof ie.droppableId=="string"||$(!1)},function(Z){var ie=Z.props;Cs(ie.isDropDisabled)||$(!1),Cs(ie.isCombineEnabled)||$(!1),Cs(ie.ignoreContainerClipping)||$(!1)},function(Z){var ie=Z.getDroppableRef;qo(ie())}],Ss=[function(Z){var ie=Z.props,be=Z.getPlaceholderRef;if(!ie.placeholder)return;var Le=be();if(Le)return}],Kl=[function(Z){var ie=Z.props;ie.renderClone||$(!1)},function(Z){var ie=Z.getPlaceholderRef;ie()&&$(!1)}];function Gl(Y){Ei(function(){Ws(Y,yl),Y.props.mode==="standard"&&Ws(Y,Ss),Y.props.mode==="virtual"&&Ws(Y,Kl)})}var ss=function(Y){Object(O.a)(Z,Y);function Z(){for(var be,Le=arguments.length,Ne=new Array(Le),Ge=0;Ge<Le;Ge++)Ne[Ge]=arguments[Ge];return be=Y.call.apply(Y,[this].concat(Ne))||this,be.state={isVisible:Boolean(be.props.on),data:be.props.on,animate:be.props.shouldAnimate&&be.props.on?"open":"none"},be.onClose=function(){if(be.state.animate!=="close")return;be.setState({isVisible:!1})},be}Z.getDerivedStateFromProps=function(Le,Ne){return Le.shouldAnimate?Le.on?{isVisible:!0,data:Le.on,animate:"open"}:Ne.isVisible?{isVisible:!0,data:Ne.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(Le.on),data:Le.on,animate:"none"}};var ie=Z.prototype;return ie.render=function(){if(!this.state.isVisible)return null;var Le={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Le)},Z}(m.a.PureComponent),Hs={dragging:5e3,dropAnimating:4500},El=function(Z,ie){return ie?zt.drop(ie.duration):Z?zt.snap:zt.fluid},zl=function(Z,ie){return Z?ie?pt.opacity.drop:pt.opacity.combining:null},Ks=function(Z){return Z.forceShouldAnimate!=null?Z.forceShouldAnimate:Z.mode==="SNAP"};function xl(Y){var Z=Y.dimension,ie=Z.client,be=Y.offset,Le=Y.combineWith,Ne=Y.dropping,Ge=Boolean(Le),ze=Ks(Y),St=Boolean(Ne),jt=St?dn.drop(be,Ge):dn.moveTo(be),Wt={position:"fixed",top:ie.marginBox.top,left:ie.marginBox.left,boxSizing:"border-box",width:ie.borderBox.width,height:ie.borderBox.height,transition:El(ze,Ne),transform:jt,opacity:zl(Ge,St),zIndex:St?Hs.dropAnimating:Hs.dragging,pointerEvents:"none"};return Wt}function Vl(Y){return{transform:dn.moveTo(Y.offset),transition:Y.shouldAnimateDisplacement?null:"none"}}function Cl(Y){return Y.type==="DRAGGING"?xl(Y):Vl(Y)}function Sl(Y,Z,ie){ie===void 0&&(ie=Oe);var be=window.getComputedStyle(Z),Le=Z.getBoundingClientRect(),Ne=_(Le,be),Ge=E(Ne,ie),ze={client:Ne,tagName:Z.tagName.toLowerCase(),display:be.display},St={x:Ne.marginBox.width,y:Ne.marginBox.height},jt={descriptor:Y,placeholder:ze,displaceBy:St,client:Ne,page:Ge};return jt}function Xl(Y){var Z=wi("draggable"),ie=Y.descriptor,be=Y.registry,Le=Y.getDraggableRef,Ne=Y.canDragInteractiveElements,Ge=Y.shouldRespectForcePress,ze=Y.isEnabled,St=f(function(){return{canDragInteractiveElements:Ne,shouldRespectForcePress:Ge,isEnabled:ze}},[Ne,ze,Ge]),jt=a(function(kt){var vn=Le();return vn||$(!1),Sl(ie,vn,kt)},[ie,Le]),Wt=f(function(){return{uniqueId:Z,descriptor:ie,options:St,getDimension:jt}},[ie,jt,St,Z]),At=Object(M.useRef)(Wt),Tt=Object(M.useRef)(!0);ai(function(){return be.draggable.register(At.current),function(){return be.draggable.unregister(At.current)}},[be.draggable]),ai(function(){if(Tt.current){Tt.current=!1;return}var kt=At.current;At.current=Wt,be.draggable.update(Wt,kt)},[Wt,be.draggable])}function Gs(Y,Z,ie){Ei(function(){function be(Ne){return"Draggable[id: "+Ne+"]: "}var Le=Y.draggableId;if(Le||$(!1),typeof Le=="string"||$(!1),He(Y.index)||$(!1),Y.mapped.type==="DRAGGING")return;qo(ie()),Y.isEnabled&&(Wi(Z,Le)||$(!1))})}function ls(Y){Wa(function(){var Z=Object(M.useRef)(Y);Ei(function(){Y===Z.current||$(!1)},[Y])})}function us(Y){Y.preventDefault()}function Yl(Y){var Z=Object(M.useRef)(null),ie=a(function(t){Z.current=t},[]),be=a(function(){return Z.current},[]),Le=_o(Hi),Ne=Le.contextId,Ge=Le.dragHandleUsageInstructionsId,ze=Le.registry,St=_o(Fs),jt=St.type,Wt=St.droppableId,At=f(function(){return{id:Y.draggableId,index:Y.index,type:jt,droppableId:Wt}},[Y.draggableId,Y.index,jt,Wt]),Tt=Y.children,kt=Y.draggableId,vn=Y.isEnabled,cr=Y.shouldRespectForcePress,mr=Y.canDragInteractiveElements,Nr=Y.isClone,Gr=Y.mapped,na=Y.dropAnimationFinished;if(Gs(Y,Ne,be),ls(Nr),!Nr){var Hr=f(function(){return{descriptor:At,registry:ze,getDraggableRef:be,canDragInteractiveElements:mr,shouldRespectForcePress:cr,isEnabled:vn}},[At,ze,be,mr,cr,vn]);Xl(Hr)}var Ia=f(function(){return vn?{tabIndex:0,role:"button","aria-describedby":Ge,"data-rbd-drag-handle-draggable-id":kt,"data-rbd-drag-handle-context-id":Ne,draggable:!1,onDragStart:us}:null},[Ne,Ge,kt,vn]),Ra=a(function(t){if(Gr.type!=="DRAGGING")return;if(!Gr.dropping)return;if(t.propertyName!=="transform")return;na()},[na,Gr]),za=f(function(){var t=Cl(Gr),p=Gr.type==="DRAGGING"&&Gr.dropping?Ra:null,B={innerRef:ie,draggableProps:{"data-rbd-draggable-context-id":Ne,"data-rbd-draggable-id":kt,style:t,onTransitionEnd:p},dragHandleProps:Ia};return B},[Ne,Ia,kt,Gr,Ra,ie]),si=f(function(){return{draggableId:At.id,type:At.type,source:{index:At.index,droppableId:At.droppableId}}},[At.droppableId,At.id,At.index,At.type]);return Tt(za,Gr.snapshot,si)}var zs=function(Y,Z){return Y===Z},wl=function(Y){var Z=Y.combine,ie=Y.destination;return ie?ie.droppableId:Z?Z.droppableId:null},Jl=function(Z){return Z.combine?Z.combine.draggableId:null},Ql=function(Z){return Z.at&&Z.at.type==="COMBINE"?Z.at.combine.draggableId:null};function Zl(){var Y=T(function(Le,Ne){return{x:Le,y:Ne}}),Z=T(function(Le,Ne,Ge,ze,St){return{isDragging:!0,isClone:Ne,isDropAnimating:Boolean(St),dropAnimation:St,mode:Le,draggingOver:Ge,combineWith:ze,combineTargetFor:null}}),ie=T(function(Le,Ne,Ge,ze,St,jt,Wt){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:St,combineWith:jt,mode:Ne,offset:Le,dimension:Ge,forceShouldAnimate:Wt,snapshot:Z(Ne,ze,St,jt,null)}}}),be=function(Ne,Ge){if(Ne.isDragging){if(Ne.critical.draggable.id!==Ge.draggableId)return null;var ze=Ne.current.client.offset,St=Ne.dimensions.draggables[Ge.draggableId],jt=Ht(Ne.impact),Wt=Ql(Ne.impact),At=Ne.forceShouldAnimate;return ie(Y(ze.x,ze.y),Ne.movementMode,St,Ge.isClone,jt,Wt,At)}if(Ne.phase==="DROP_ANIMATING"){var Tt=Ne.completed;if(Tt.result.draggableId!==Ge.draggableId)return null;var kt=Ge.isClone,vn=Ne.dimensions.draggables[Ge.draggableId],cr=Tt.result,mr=cr.mode,Nr=wl(cr),Gr=Jl(cr),na=Ne.dropDuration,Hr={duration:na,curve:qe.drop,moveTo:Ne.newHomeClientOffset,opacity:Gr?pt.opacity.drop:null,scale:Gr?pt.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Ne.newHomeClientOffset,dimension:vn,dropping:Hr,draggingOver:Nr,combineWith:Gr,mode:mr,forceShouldAnimate:null,snapshot:Z(mr,kt,Nr,Gr,Hr)}}}return null};return be}function Vs(Y){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Y,combineWith:null}}var ql={mapped:{type:"SECONDARY",offset:Oe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Vs(null)}};function $l(){var Y=T(function(Ge,ze){return{x:Ge,y:ze}}),Z=T(Vs),ie=T(function(Ge,ze,St){return ze===void 0&&(ze=null),{mapped:{type:"SECONDARY",offset:Ge,combineTargetFor:ze,shouldAnimateDisplacement:St,snapshot:Z(ze)}}}),be=function(ze){return ze?ie(Oe,ze,!0):null},Le=function(ze,St,jt,Wt){var At=jt.displaced.visible[ze],Tt=Boolean(Wt.inVirtualList&&Wt.effected[ze]),kt=rt(jt),vn=kt&&kt.draggableId===ze?St:null;if(!At){if(!Tt)return be(vn);if(jt.displaced.invisible[ze])return null;var cr=dt(Wt.displacedBy.point),mr=Y(cr.x,cr.y);return ie(mr,vn,!0)}if(Tt)return be(vn);var Nr=jt.displacedBy.point,Gr=Y(Nr.x,Nr.y);return ie(Gr,vn,At.shouldAnimate)},Ne=function(ze,St){if(ze.isDragging)return ze.critical.draggable.id===St.draggableId?null:Le(St.draggableId,ze.critical.draggable.id,ze.impact,ze.afterCritical);if(ze.phase==="DROP_ANIMATING"){var jt=ze.completed;return jt.result.draggableId===St.draggableId?null:Le(St.draggableId,jt.result.draggableId,jt.impact,jt.afterCritical)}return null};return Ne}var Tl=function(){var Z=Zl(),ie=$l(),be=function(Ne,Ge){return Z(Ne,Ge)||ie(Ne,Ge)||ql};return be},Xs={dropAnimationFinished:at},Ol=Object(C.c)(Tl,Xs,null,{context:lo,pure:!0,areStatePropsEqual:zs})(Yl);function Al(Y){var Z=_o(Fs),ie=Z.isUsingCloneFor;return ie===Y.draggableId&&!Y.isClone?null:m.a.createElement(Ol,Y)}function Dl(Y){var Z=typeof Y.isDragDisabled=="boolean"?!Y.isDragDisabled:!0,ie=Boolean(Y.disableInteractiveElementBlocking),be=Boolean(Y.shouldRespectForcePress);return m.a.createElement(Al,Object(b.a)({},Y,{isClone:!1,isEnabled:Z,canDragInteractiveElements:ie,shouldRespectForcePress:be}))}function $o(Y){var Z=Object(M.useContext)(Hi);Z||$(!1);var ie=Z.contextId,be=Z.isMovementAllowed,Le=Object(M.useRef)(null),Ne=Object(M.useRef)(null),Ge=Y.children,ze=Y.droppableId,St=Y.type,jt=Y.mode,Wt=Y.direction,At=Y.ignoreContainerClipping,Tt=Y.isDropDisabled,kt=Y.isCombineEnabled,vn=Y.snapshot,cr=Y.useClone,mr=Y.updateViewportMaxScroll,Nr=Y.getContainerForClone,Gr=a(function(){return Le.current},[]),na=a(function(j){Le.current=j},[]),Hr=a(function(){return Ne.current},[]),Ia=a(function(j){Ne.current=j},[]);Gl({props:Y,getDroppableRef:Gr,getPlaceholderRef:Hr});var Ra=a(function(){be()&&mr({maxScroll:bi()})},[be,mr]);bl({droppableId:ze,type:St,mode:jt,direction:Wt,isDropDisabled:Tt,isCombineEnabled:kt,ignoreContainerClipping:At,getDroppableRef:Gr});var za=m.a.createElement(ss,{on:Y.placeholder,shouldAnimate:Y.shouldAnimatePlaceholder},function(j){var G=j.onClose,ne=j.data,ge=j.animate;return m.a.createElement(Bs,{placeholder:ne,onClose:G,innerRef:Ia,animate:ge,contextId:ie,onTransitionEnd:Ra})}),si=f(function(){return{innerRef:na,placeholder:za,droppableProps:{"data-rbd-droppable-id":ze,"data-rbd-droppable-context-id":ie}}},[ie,ze,za,na]),t=cr?cr.dragging.draggableId:null,p=f(function(){return{droppableId:ze,type:St,isUsingCloneFor:t}},[ze,t,St]);function B(){if(!cr)return null;var j=cr.dragging,G=cr.render,ne=m.a.createElement(Al,{draggableId:j.draggableId,index:j.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ge,Se){return G(ge,Se,j)});return V.a.createPortal(ne,Nr())}return m.a.createElement(Fs.Provider,{value:p},Ge(si,vn),B())}var ws=function(Z,ie){return Z===ie.droppable.type},cs=function(Z,ie){return ie.draggables[Z.draggable.id]},eu=function(){var Z={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ie=Object(b.a)({},Z,{shouldAnimatePlaceholder:!1}),be=T(function(Ge){return{draggableId:Ge.id,type:Ge.type,source:{index:Ge.index,droppableId:Ge.droppableId}}}),Le=T(function(Ge,ze,St,jt,Wt,At){var Tt=Wt.descriptor.id,kt=Wt.descriptor.droppableId===Ge;if(kt){var vn=At?{render:At,dragging:be(Wt.descriptor)}:null,cr={isDraggingOver:St,draggingOverWith:St?Tt:null,draggingFromThisWith:Tt,isUsingPlaceholder:!0};return{placeholder:Wt.placeholder,shouldAnimatePlaceholder:!1,snapshot:cr,useClone:vn}}if(!ze)return ie;if(!jt)return Z;var mr={isDraggingOver:St,draggingOverWith:Tt,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Wt.placeholder,shouldAnimatePlaceholder:!0,snapshot:mr,useClone:null}}),Ne=function(ze,St){var jt=St.droppableId,Wt=St.type,At=!St.isDropDisabled,Tt=St.renderClone;if(ze.isDragging){var kt=ze.critical;if(!ws(Wt,kt))return ie;var vn=cs(kt,ze.dimensions),cr=Ht(ze.impact)===jt;return Le(jt,At,cr,cr,vn,Tt)}if(ze.phase==="DROP_ANIMATING"){var mr=ze.completed;if(!ws(Wt,mr.critical))return ie;var Nr=cs(mr.critical,ze.dimensions);return Le(jt,At,wl(mr.result)===jt,Ht(mr.impact)===jt,Nr,Tt)}if(ze.phase==="IDLE"&&ze.completed&&!ze.shouldFlush){var Gr=ze.completed;if(!ws(Wt,Gr.critical))return ie;var na=Ht(Gr.impact)===jt,Hr=Boolean(Gr.impact.at&&Gr.impact.at.type==="COMBINE"),Ia=Gr.critical.droppable.id===jt;return na?Hr?Z:ie:Ia?Z:ie}return ie};return Ne},tu={updateViewportMaxScroll:Yr};function nu(){return document.body||$(!1),document.body}var Ya={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nu},Rl=Object(C.c)(eu,tu,null,{context:lo,pure:!0,areStatePropsEqual:zs})($o);Rl.defaultProps=Ya},nnTU:function(k,z,o){"use strict";o.d(z,"b",function(){return A}),o.d(z,"a",function(){return g});var M=o("MI8n"),m=o("JYp7"),O=o("pmY6"),b=o("24hK"),y=o("746U"),C=o("Cg/j");const A=Object(C.c)("commandService"),g=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new M.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,f){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!f)throw new Error("invalid command");return this.registerCommand({id:e,handler:f})}if(e.description){const r=[];for(let h of e.description.args)r.push(h.constraint);const c=e.handler;e.handler=function(h,...d){return Object(y.o)(d,r),c(h,...d)}}const{id:a}=e;let l=this._commands.get(a);l||(l=new b.a,this._commands.set(a,l));let n=l.unshift(e),i=Object(O.i)(()=>{n();const r=this._commands.get(a);(r==null?void 0:r.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),i}registerCommandAlias(e,f){return g.registerCommand(e,(a,...l)=>a.get(A).executeCommand(f,...l))}getCommand(e){const f=this._commands.get(e);return!f||f.isEmpty()?void 0:m.a.first(f)}getCommands(){const e=new Map;for(const f of this._commands.keys()){const a=this.getCommand(f);a&&e.set(f,a)}return e}};g.registerCommand("noop",()=>{})},nukY:function(k,z){k.exports="data:image/png;base64,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"},oRuE:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso10126={pad:function(m,O){var b=O*4,y=b-m.sigBytes%b;m.concat(M.lib.WordArray.random(y-1)).concat(M.lib.WordArray.create([y<<24],1))},unpad:function(m){var O=m.words[m.sigBytes-1>>>2]&255;m.sigBytes-=O}},M.pad.Iso10126})},oaGz:function(k,z,o){k.exports={bg:"bg___24uy8",wrap:"wrap___14NGB",modal:"modal___2LUSY",content:"content___uJSz1",head:"head___1b8cM",headCount:"headCount___8qSbD",button:"button___3uWW2",itemWrap:"itemWrap___30TsE",imgWrap:"imgWrap___2LXqq",img:"img___3JUpQ",manager:"manager___VrVN1",itemContent:"itemContent___gyTTk",nameWrap:"nameWrap___3WMS2",name:"name___2ym5i",actionGroup:"actionGroup___8xT17",deleteIcon:"deleteIcon___24yPS",schoolWrap:"schoolWrap___23Lyd",school:"school___1PzsI",countWrap:"countWrap___8XfQc",deletetitle:"deletetitle___2yGtk",yseTitle:"yseTitle___sqFvw"}},ogmK:function(k,z,o){"use strict";o.d(z,"a",function(){return ma});var M=o("1OyB"),m=o("vuIU"),O=o("Ji7U"),b=o("LK+K"),y=o("rePB"),C=o("VTBJ"),A=o("ODXe"),g=o("q1tI"),e=o("TSYQ"),f=o.n(e),a=o("Kwbf"),l=o("6cGi"),n=o("U8pU"),i=o("4IlW"),r=g.createContext({}),c=r,h={visibility:"hidden"};function d(xe){var st=xe.prefixCls,Rt=xe.prevIcon,Ot=Rt===void 0?"\u2039":Rt,Ht=xe.nextIcon,Nt=Ht===void 0?"\u203A":Ht,Vt=xe.superPrevIcon,nn=Vt===void 0?"\xAB":Vt,xn=xe.superNextIcon,_n=xn===void 0?"\xBB":xn,Bn=xe.onSuperPrev,Dn=xe.onSuperNext,an=xe.onPrev,Mn=xe.onNext,yn=xe.children,Fn=g.useContext(c),Pn=Fn.hideNextBtn,qn=Fn.hidePrevBtn;return g.createElement("div",{className:st},Bn&&g.createElement("button",{type:"button",onClick:Bn,tabIndex:-1,className:"".concat(st,"-super-prev-btn"),style:qn?h:{}},nn),an&&g.createElement("button",{type:"button",onClick:an,tabIndex:-1,className:"".concat(st,"-prev-btn"),style:qn?h:{}},Ot),g.createElement("div",{className:"".concat(st,"-view")},yn),Mn&&g.createElement("button",{type:"button",onClick:Mn,tabIndex:-1,className:"".concat(st,"-next-btn"),style:Pn?h:{}},Nt),Dn&&g.createElement("button",{type:"button",onClick:Dn,tabIndex:-1,className:"".concat(st,"-super-next-btn"),style:Pn?h:{}},_n))}var s=d;function u(xe){var st=g.useContext(c),Rt=st.hideHeader;if(Rt)return null;var Ot=xe.prefixCls,Ht=xe.generateConfig,Nt=xe.locale,Vt=xe.value,nn=xe.format,xn="".concat(Ot,"-header");return g.createElement(s,{prefixCls:xn},Vt?Ht.locale.format(Nt.locale,Vt,nn):"\xA0")}var w=u,E=o("YrtM"),_=o("KQm4"),P=new Map;function R(xe,st,Rt){if(P.get(xe)&&cancelAnimationFrame(P.get(xe)),Rt<=0){P.set(xe,requestAnimationFrame(function(){xe.scrollTop=st}));return}var Ot=st-xe.scrollTop,Ht=Ot/Rt*10;P.set(xe,requestAnimationFrame(function(){xe.scrollTop+=Ht,xe.scrollTop!==st&&R(xe,st,Rt-10)}))}function x(xe,st){var Rt=st.onLeftRight,Ot=st.onCtrlLeftRight,Ht=st.onUpDown,Nt=st.onPageUpDown,Vt=st.onEnter,nn=xe.which,xn=xe.ctrlKey,_n=xe.metaKey;switch(nn){case i.a.LEFT:if(xn||_n){if(Ot)return Ot(-1),!0}else if(Rt)return Rt(-1),!0;break;case i.a.RIGHT:if(xn||_n){if(Ot)return Ot(1),!0}else if(Rt)return Rt(1),!0;break;case i.a.UP:if(Ht)return Ht(-1),!0;break;case i.a.DOWN:if(Ht)return Ht(1),!0;break;case i.a.PAGE_UP:if(Nt)return Nt(-1),!0;break;case i.a.PAGE_DOWN:if(Nt)return Nt(1),!0;break;case i.a.ENTER:if(Vt)return Vt(),!0;break}return!1}function S(xe,st,Rt,Ot){var Ht=xe;if(!Ht)switch(st){case"time":Ht=Ot?"hh:mm:ss a":"HH:mm:ss";break;case"week":Ht="gggg-wo";break;case"month":Ht="YYYY-MM";break;case"quarter":Ht="YYYY-[Q]Q";break;case"year":Ht="YYYY";break;default:Ht=Rt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Ht}function v(xe,st){var Rt=xe==="time"?8:10;return Math.max(Rt,st.length)+2}var T=null,U=new Set;function I(xe){return!T&&typeof window!="undefined"&&window.addEventListener&&(T=function(Rt){Object(_.a)(U).forEach(function(Ot){Ot(Rt)})},window.addEventListener("mousedown",T)),U.add(xe),function(){U.delete(xe),U.size===0&&(window.removeEventListener("mousedown",T),T=null)}}var N=function(st){return st==="month"||st==="date"?"year":st},V=function(st){return st==="date"?"month":st},H=function(st){return st==="month"||st==="date"?"quarter":st},D=function(st){return st==="date"?"week":st},W={year:N,month:V,quarter:H,week:D,time:null,date:null};function F(xe,st){return xe.some(function(Rt){return Rt&&Rt.contains(st)})}function L(xe){var st=xe.prefixCls,Rt=xe.units,Ot=xe.onSelect,Ht=xe.value,Nt=xe.active,Vt=xe.hideDisabledOptions,nn="".concat(st,"-cell"),xn=g.useContext(c),_n=xn.open,Bn=g.useRef(null),Dn=g.useRef(new Map);return g.useLayoutEffect(function(){var an=Dn.current.get(Ht);an&&_n!==!1&&R(Bn.current,an.offsetTop,120)},[Ht]),g.useLayoutEffect(function(){if(_n){var an=Dn.current.get(Ht);an&&R(Bn.current,an.offsetTop,0)}},[_n]),g.createElement("ul",{className:f()("".concat(st,"-column"),Object(y.a)({},"".concat(st,"-column-active"),Nt)),ref:Bn,style:{position:"relative"}},Rt.map(function(an){var Mn;return Vt&&an.disabled?null:g.createElement("li",{key:an.value,ref:function(Fn){Dn.current.set(an.value,Fn)},className:f()(nn,(Mn={},Object(y.a)(Mn,"".concat(nn,"-disabled"),an.disabled),Object(y.a)(Mn,"".concat(nn,"-selected"),Ht===an.value),Mn)),onClick:function(){if(an.disabled)return;Ot(an.value)}},g.createElement("div",{className:"".concat(nn,"-inner")},an.label))}))}var K=L;function ee(xe,st){for(var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Ot=String(xe);Ot.length<st;)Ot="".concat(Rt).concat(xe);return Ot}var he=function(){for(var st=arguments.length,Rt=new Array(st),Ot=0;Ot<st;Ot++)Rt[Ot]=arguments[Ot];return Rt};function fe(xe){return xe==null?[]:Array.isArray(xe)?xe:[xe]}function Ce(xe){var st={};return Object.keys(xe).forEach(function(Rt){(Rt.substr(0,5)==="data-"||Rt.substr(0,5)==="aria-"||Rt==="role"||Rt==="name")&&Rt.substr(0,7)!=="data-__"&&(st[Rt]=xe[Rt])}),st}function Te(xe,st){return xe?xe[st]:null}function ce(xe,st,Rt){var Ot=[Te(xe,0),Te(xe,1)];return Ot[Rt]=typeof st=="function"?st(Ot[Rt]):st,!Ot[0]&&!Ot[1]?null:Ot}function ye(xe,st,Rt,Ot,Ht){var Nt=xe.setHour(st,Rt);return Nt=xe.setMinute(Nt,Ot),Nt=xe.setSecond(Nt,Ht),Nt}function Ee(xe,st,Rt,Ot,Ht,Nt){var Vt=Math.floor(xe/Ot)*Ot;if(Vt<xe)return[Vt,60-Ht,60-Nt];var nn=Math.floor(st/Ht)*Ht;if(nn<st)return[Vt,nn,60-Nt];var xn=Math.floor(Rt/Nt)*Nt;return[Vt,nn,xn]}function ue(xe,st){if(xe.length!==st.length)return!0;for(var Rt=0;Rt<xe.length;Rt+=1)if(xe[Rt].disabled!==st[Rt].disabled)return!0;return!1}function se(xe,st,Rt,Ot){for(var Ht=[],Nt=xe;Nt<=st;Nt+=Rt)Ht.push({label:ee(Nt,2),value:Nt,disabled:(Ot||[]).includes(Nt)});return Ht}function $(xe){var st=xe.generateConfig,Rt=xe.prefixCls,Ot=xe.operationRef,Ht=xe.activeColumnIndex,Nt=xe.value,Vt=xe.showHour,nn=xe.showMinute,xn=xe.showSecond,_n=xe.use12Hours,Bn=xe.hourStep,Dn=Bn===void 0?1:Bn,an=xe.minuteStep,Mn=an===void 0?1:an,yn=xe.secondStep,Fn=yn===void 0?1:yn,Pn=xe.disabledHours,qn=xe.disabledMinutes,pr=xe.disabledSeconds,Fr=xe.hideDisabledOptions,wn=xe.onSelect,Yt=[],mn="".concat(Rt,"-content"),Rn="".concat(Rt,"-time-panel"),en,Tn=Nt?st.getHour(Nt):-1,bn=Nt?st.getMinute(Nt):-1,Un=Nt?st.getSecond(Nt):-1,Wn=function(qt,Jt,Qn,nr){var jn=Nt||st.getNow(),or=Math.max(0,Jt),fr=Math.max(0,Qn),lr=Math.max(0,nr);return jn=ye(st,jn,!_n||!qt?or:or+12,fr,lr),jn},sr=se(0,23,Dn,Pn&&Pn()),tr=Object(E.a)(function(){return sr},sr,ue);_n&&(en=Tn>=12,Tn%=12);var Rr=g.useMemo(function(){if(!_n)return[!1,!1];var Kt=[!0,!0];return tr.forEach(function(qt){var Jt=qt.disabled,Qn=qt.value;if(Jt)return;Qn>=12?Kt[1]=!1:Kt[0]=!1}),Kt},[_n,tr]),Ir=Object(A.a)(Rr,2),$n=Ir[0],Dr=Ir[1],vr=g.useMemo(function(){return _n?tr.filter(en?function(Kt){return Kt.value>=12}:function(Kt){return Kt.value<12}).map(function(Kt){var qt=Kt.value%12,Jt=qt===0?"12":ee(qt,2);return Object(C.a)(Object(C.a)({},Kt),{},{label:Jt,value:qt})}):tr},[_n,tr]),zr=se(0,59,Mn,qn&&qn(Tn)),Lr=se(0,59,Fn,pr&&pr(Tn,bn));Ot.current={onUpDown:function(qt){var Jt=Yt[Ht];if(Jt)for(var Qn=Jt.units.findIndex(function(fr){return fr.value===Jt.value}),nr=Jt.units.length,jn=1;jn<nr;jn+=1){var or=Jt.units[(Qn+qt*jn+nr)%nr];if(or.disabled!==!0){Jt.onSelect(or.value);break}}}};function $r(Kt,qt,Jt,Qn,nr){Kt!==!1&&Yt.push({node:g.cloneElement(qt,{prefixCls:Rn,value:Jt,active:Ht===Yt.length,onSelect:nr,units:Qn,hideDisabledOptions:Fr}),onSelect:nr,value:Jt,units:Qn})}$r(Vt,g.createElement(K,{key:"hour"}),Tn,vr,function(Kt){wn(Wn(en,Kt,bn,Un),"mouse")}),$r(nn,g.createElement(K,{key:"minute"}),bn,zr,function(Kt){wn(Wn(en,Tn,Kt,Un),"mouse")}),$r(xn,g.createElement(K,{key:"second"}),Un,Lr,function(Kt){wn(Wn(en,Tn,bn,Kt),"mouse")});var ir=-1;return typeof en=="boolean"&&(ir=en?1:0),$r(_n===!0,g.createElement(K,{key:"12hours"}),ir,[{label:"AM",value:0,disabled:$n},{label:"PM",value:1,disabled:Dr}],function(Kt){wn(Wn(!!Kt,Tn,bn,Un),"mouse")}),g.createElement("div",{className:mn},Yt.map(function(Kt){var qt=Kt.node;return qt}))}var me=$,re=function(st){return st.filter(function(Rt){return Rt!==!1}).length};function ae(xe){var st=xe.generateConfig,Rt=xe.format,Ot=Rt===void 0?"HH:mm:ss":Rt,Ht=xe.prefixCls,Nt=xe.active,Vt=xe.operationRef,nn=xe.showHour,xn=xe.showMinute,_n=xe.showSecond,Bn=xe.use12Hours,Dn=Bn===void 0?!1:Bn,an=xe.onSelect,Mn=xe.value,yn="".concat(Ht,"-time-panel"),Fn=g.useRef(),Pn=g.useState(-1),qn=Object(A.a)(Pn,2),pr=qn[0],Fr=qn[1],wn=re([nn,xn,_n,Dn]);return Vt.current={onKeyDown:function(mn){return x(mn,{onLeftRight:function(en){Fr((pr+en+wn)%wn)},onUpDown:function(en){pr===-1?Fr(0):Fn.current&&Fn.current.onUpDown(en)},onEnter:function(){an(Mn||st.getNow(),"key"),Fr(-1)}})},onBlur:function(){Fr(-1)}},g.createElement("div",{className:f()(yn,Object(y.a)({},"".concat(yn,"-active"),Nt))},g.createElement(w,Object.assign({},xe,{format:Ot,prefixCls:Ht})),g.createElement(me,Object.assign({},xe,{prefixCls:Ht,activeColumnIndex:pr,operationRef:Fn})))}var we=ae,le=7;function te(xe,st){return!xe&&!st?!0:!xe||!st?!1:void 0}function Q(xe,st,Rt){var Ot=te(st,Rt);if(typeof Ot=="boolean")return Ot;var Ht=Math.floor(xe.getYear(st)/10),Nt=Math.floor(xe.getYear(Rt)/10);return Ht===Nt}function J(xe,st,Rt){var Ot=te(st,Rt);return typeof Ot=="boolean"?Ot:xe.getYear(st)===xe.getYear(Rt)}function ve(xe,st){var Rt=Math.floor(xe.getMonth(st)/3);return Rt+1}function _e(xe,st,Rt){var Ot=te(st,Rt);return typeof Ot=="boolean"?Ot:J(xe,st,Rt)&&ve(xe,st)===ve(xe,Rt)}function Oe(xe,st,Rt){var Ot=te(st,Rt);return typeof Ot=="boolean"?Ot:J(xe,st,Rt)&&xe.getMonth(st)===xe.getMonth(Rt)}function Xe(xe,st,Rt){var Ot=te(st,Rt);return typeof Ot=="boolean"?Ot:xe.getYear(st)===xe.getYear(Rt)&&xe.getMonth(st)===xe.getMonth(Rt)&&xe.getDate(st)===xe.getDate(Rt)}function tt(xe,st,Rt){var Ot=te(st,Rt);return typeof Ot=="boolean"?Ot:xe.getHour(st)===xe.getHour(Rt)&&xe.getMinute(st)===xe.getMinute(Rt)&&xe.getSecond(st)===xe.getSecond(Rt)}function lt(xe,st,Rt,Ot){var Ht=te(Rt,Ot);return typeof Ht=="boolean"?Ht:xe.locale.getWeek(st,Rt)===xe.locale.getWeek(st,Ot)}function dt(xe,st,Rt){return Xe(xe,st,Rt)&&tt(xe,st,Rt)}function vt(xe,st,Rt,Ot){return!st||!Rt||!Ot?!1:!Xe(xe,st,Ot)&&!Xe(xe,Rt,Ot)&&xe.isAfter(Ot,st)&&xe.isAfter(Rt,Ot)}function _t(xe,st,Rt){var Ot=st.locale.getWeekFirstDay(xe),Ht=st.setDate(Rt,1),Nt=st.getWeekDay(Ht),Vt=st.addDate(Ht,Ot-Nt);return st.getMonth(Vt)===st.getMonth(Rt)&&st.getDate(Vt)>1&&(Vt=st.addDate(Vt,-7)),Vt}function Ye(xe,st,Rt){var Ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(st){case"year":return Rt.addYear(xe,Ot*10);case"quarter":case"month":return Rt.addYear(xe,Ot);default:return Rt.addMonth(xe,Ot)}}var je=g.createContext({}),ht=je;function Bt(xe){var st=xe.cellPrefixCls,Rt=xe.generateConfig,Ot=xe.rangedValue,Ht=xe.hoverRangedValue,Nt=xe.isInView,Vt=xe.isSameCell,nn=xe.offsetCell,xn=xe.today,_n=xe.value;function Bn(Dn){var an,Mn=nn(Dn,-1),yn=nn(Dn,1),Fn=Te(Ot,0),Pn=Te(Ot,1),qn=Te(Ht,0),pr=Te(Ht,1),Fr=vt(Rt,qn,pr,Dn);function wn(bn){return Vt(Fn,bn)}function Yt(bn){return Vt(Pn,bn)}var mn=Vt(qn,Dn),Rn=Vt(pr,Dn),en=(Fr||Rn)&&(!Nt(Mn)||Yt(Mn)),Tn=(Fr||mn)&&(!Nt(yn)||wn(yn));return an={},Object(y.a)(an,"".concat(st,"-in-view"),Nt(Dn)),Object(y.a)(an,"".concat(st,"-in-range"),vt(Rt,Fn,Pn,Dn)),Object(y.a)(an,"".concat(st,"-range-start"),wn(Dn)),Object(y.a)(an,"".concat(st,"-range-end"),Yt(Dn)),Object(y.a)(an,"".concat(st,"-range-start-single"),wn(Dn)&&!Pn),Object(y.a)(an,"".concat(st,"-range-end-single"),Yt(Dn)&&!Fn),Object(y.a)(an,"".concat(st,"-range-start-near-hover"),wn(Dn)&&(Vt(Mn,qn)||vt(Rt,qn,pr,Mn))),Object(y.a)(an,"".concat(st,"-range-end-near-hover"),Yt(Dn)&&(Vt(yn,pr)||vt(Rt,qn,pr,yn))),Object(y.a)(an,"".concat(st,"-range-hover"),Fr),Object(y.a)(an,"".concat(st,"-range-hover-start"),mn),Object(y.a)(an,"".concat(st,"-range-hover-end"),Rn),Object(y.a)(an,"".concat(st,"-range-hover-edge-start"),en),Object(y.a)(an,"".concat(st,"-range-hover-edge-end"),Tn),Object(y.a)(an,"".concat(st,"-range-hover-edge-start-near-range"),en&&Vt(Mn,Pn)),Object(y.a)(an,"".concat(st,"-range-hover-edge-end-near-range"),Tn&&Vt(yn,Fn)),Object(y.a)(an,"".concat(st,"-today"),Vt(xn,Dn)),Object(y.a)(an,"".concat(st,"-selected"),Vt(_n,Dn)),an}return Bn}function Et(xe){for(var st=xe.prefixCls,Rt=xe.disabledDate,Ot=xe.onSelect,Ht=xe.rowNum,Nt=xe.colNum,Vt=xe.prefixColumn,nn=xe.rowClassName,xn=xe.baseDate,_n=xe.getCellClassName,Bn=xe.getCellText,Dn=xe.getCellNode,an=xe.getCellDate,Mn=xe.titleCell,yn=xe.headerCells,Fn=g.useContext(c),Pn=Fn.onDateMouseEnter,qn=Fn.onDateMouseLeave,pr="".concat(st,"-cell"),Fr=[],wn=0;wn<Ht;wn+=1){for(var Yt=[],mn=void 0,Rn=function(bn){var Un=wn*Nt+bn,Wn=an(xn,Un),sr=Rt&&Rt(Wn);bn===0&&(mn=Wn,Vt&&Yt.push(Vt(mn))),Yt.push(g.createElement("td",{key:bn,title:Mn&&Mn(Wn),className:f()(pr,Object(C.a)(Object(y.a)({},"".concat(pr,"-disabled"),sr),_n(Wn))),onClick:function(){sr||Ot(Wn)},onMouseEnter:function(){!sr&&Pn&&Pn(Wn)},onMouseLeave:function(){!sr&&qn&&qn(Wn)}},Dn?Dn(Wn):g.createElement("div",{className:"".concat(pr,"-inner")},Bn(Wn))))},en=0;en<Nt;en+=1)Rn(en);Fr.push(g.createElement("tr",{key:wn,className:nn&&nn(mn)},Yt))}return g.createElement("div",{className:"".concat(st,"-body")},g.createElement("table",{className:"".concat(st,"-content")},yn&&g.createElement("thead",null,g.createElement("tr",null,yn)),g.createElement("tbody",null,Fr)))}function Pt(xe){var st=xe.prefixCls,Rt=xe.generateConfig,Ot=xe.prefixColumn,Ht=xe.locale,Nt=xe.rowCount,Vt=xe.viewDate,nn=xe.value,xn=xe.dateRender,_n=g.useContext(ht),Bn=_n.rangedValue,Dn=_n.hoverRangedValue,an=_t(Ht.locale,Rt,Vt),Mn="".concat(st,"-cell"),yn=Rt.locale.getWeekFirstDay(Ht.locale),Fn=Rt.getNow(),Pn=[],qn=Ht.shortWeekDays||(Rt.locale.getShortWeekDays?Rt.locale.getShortWeekDays(Ht.locale):[]);Ot&&Pn.push(g.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var pr=0;pr<le;pr+=1)Pn.push(g.createElement("th",{key:pr},qn[(pr+yn)%le]));var Fr=Bt({cellPrefixCls:Mn,today:Fn,value:nn,generateConfig:Rt,rangedValue:Ot?null:Bn,hoverRangedValue:Ot?null:Dn,isSameCell:function(mn,Rn){return Xe(Rt,mn,Rn)},isInView:function(mn){return Oe(Rt,mn,Vt)},offsetCell:function(mn,Rn){return Rt.addDate(mn,Rn)}}),wn=xn?function(Yt){return xn(Yt,Fn)}:void 0;return g.createElement(Et,Object.assign({},xe,{rowNum:Nt,colNum:le,baseDate:an,getCellNode:wn,getCellText:Rt.getDate,getCellClassName:Fr,getCellDate:Rt.addDate,titleCell:function(mn){return Rt.locale.format(Ht.locale,mn,"YYYY-MM-DD")},headerCells:Pn}))}var Ze=Pt;function We(xe){var st=xe.prefixCls,Rt=xe.generateConfig,Ot=xe.locale,Ht=xe.viewDate,Nt=xe.onNextMonth,Vt=xe.onPrevMonth,nn=xe.onNextYear,xn=xe.onPrevYear,_n=xe.onYearClick,Bn=xe.onMonthClick,Dn=g.useContext(c),an=Dn.hideHeader;if(an)return null;var Mn="".concat(st,"-header"),yn=Ot.shortMonths||(Rt.locale.getShortMonths?Rt.locale.getShortMonths(Ot.locale):[]),Fn=Rt.getMonth(Ht),Pn=g.createElement("button",{type:"button",key:"year",onClick:_n,tabIndex:-1,className:"".concat(st,"-year-btn")},Rt.locale.format(Ot.locale,Ht,Ot.yearFormat)),qn=g.createElement("button",{type:"button",key:"month",onClick:Bn,tabIndex:-1,className:"".concat(st,"-month-btn")},Ot.monthFormat?Rt.locale.format(Ot.locale,Ht,Ot.monthFormat):yn[Fn]),pr=Ot.monthBeforeYear?[qn,Pn]:[Pn,qn];return g.createElement(s,Object.assign({},xe,{prefixCls:Mn,onSuperPrev:xn,onPrev:Vt,onNext:Nt,onSuperNext:nn}),pr)}var Je=We,Ae=6;function Ue(xe){var st=xe.prefixCls,Rt=xe.panelName,Ot=Rt===void 0?"date":Rt,Ht=xe.keyboardConfig,Nt=xe.active,Vt=xe.operationRef,nn=xe.generateConfig,xn=xe.value,_n=xe.viewDate,Bn=xe.onViewDateChange,Dn=xe.onPanelChange,an=xe.onSelect,Mn="".concat(st,"-").concat(Ot,"-panel");Vt.current={onKeyDown:function(qn){return x(qn,Object(C.a)({onLeftRight:function(Fr){an(nn.addDate(xn||_n,Fr),"key")},onCtrlLeftRight:function(Fr){an(nn.addYear(xn||_n,Fr),"key")},onUpDown:function(Fr){an(nn.addDate(xn||_n,Fr*le),"key")},onPageUpDown:function(Fr){an(nn.addMonth(xn||_n,Fr),"key")}},Ht))}};var yn=function(qn){var pr=nn.addYear(_n,qn);Bn(pr),Dn(null,pr)},Fn=function(qn){var pr=nn.addMonth(_n,qn);Bn(pr),Dn(null,pr)};return g.createElement("div",{className:f()(Mn,Object(y.a)({},"".concat(Mn,"-active"),Nt))},g.createElement(Je,Object.assign({},xe,{prefixCls:st,value:xn,viewDate:_n,onPrevYear:function(){yn(-1)},onNextYear:function(){yn(1)},onPrevMonth:function(){Fn(-1)},onNextMonth:function(){Fn(1)},onMonthClick:function(){Dn("month",_n)},onYearClick:function(){Dn("year",_n)}})),g.createElement(Ze,Object.assign({},xe,{onSelect:function(qn){return an(qn,"mouse")},prefixCls:st,value:xn,viewDate:_n,rowCount:Ae})))}var He=Ue;function Fe(xe,st,Rt){if(!Rt)return st;var Ot=st;return Ot=xe.setHour(Ot,xe.getHour(Rt)),Ot=xe.setMinute(Ot,xe.getMinute(Rt)),Ot=xe.setSecond(Ot,xe.getSecond(Rt)),Ot}var et=he("date","time");function mt(xe){var st=xe.prefixCls,Rt=xe.operationRef,Ot=xe.generateConfig,Ht=xe.value,Nt=xe.defaultValue,Vt=xe.disabledTime,nn=xe.showTime,xn=xe.onSelect,_n="".concat(st,"-datetime-panel"),Bn=g.useState(null),Dn=Object(A.a)(Bn,2),an=Dn[0],Mn=Dn[1],yn=g.useRef({}),Fn=g.useRef({}),Pn=Object(n.a)(nn)==="object"?Object(C.a)({},nn):{};function qn(Yt){var mn=et.indexOf(an)+Yt,Rn=et[mn]||null;return Rn}var pr=function(mn){Fn.current.onBlur&&Fn.current.onBlur(mn),Mn(null)};Rt.current={onKeyDown:function(mn){if(mn.which===i.a.TAB){var Rn=qn(mn.shiftKey?-1:1);return Mn(Rn),Rn&&mn.preventDefault(),!0}if(an){var en=an==="date"?yn:Fn;return en.current&&en.current.onKeyDown&&en.current.onKeyDown(mn),!0}return[i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN].includes(mn.which)?(Mn("date"),!0):!1},onBlur:pr,onClose:pr};var Fr=function(mn,Rn){var en=mn;Rn==="date"&&!Ht&&Pn.defaultValue?(en=Ot.setHour(en,Ot.getHour(Pn.defaultValue)),en=Ot.setMinute(en,Ot.getMinute(Pn.defaultValue)),en=Ot.setSecond(en,Ot.getSecond(Pn.defaultValue))):Rn==="time"&&!Ht&&Nt&&(en=Ot.setYear(en,Ot.getYear(Nt)),en=Ot.setMonth(en,Ot.getMonth(Nt)),en=Ot.setDate(en,Ot.getDate(Nt))),xn&&xn(en,"mouse")},wn=Vt?Vt(Ht||null):{};return g.createElement("div",{className:f()(_n,Object(y.a)({},"".concat(_n,"-active"),an))},g.createElement(He,Object.assign({},xe,{operationRef:yn,active:an==="date",onSelect:function(mn){Fr(Fe(Ot,mn,nn&&Object(n.a)(nn)==="object"?nn.defaultValue:null),"date")}})),g.createElement(we,Object.assign({},xe,{format:void 0},Pn,wn,{defaultValue:void 0,operationRef:Fn,active:an==="time",onSelect:function(mn){Fr(mn,"time")}})))}var Lt=mt;function Xt(xe){var st=xe.prefixCls,Rt=xe.generateConfig,Ot=xe.locale,Ht=xe.value,Nt="".concat(st,"-cell"),Vt=function(Bn){return g.createElement("td",{key:"week",className:f()(Nt,"".concat(Nt,"-week"))},Rt.locale.getWeek(Ot.locale,Bn))},nn="".concat(st,"-week-panel-row"),xn=function(Bn){return f()(nn,Object(y.a)({},"".concat(nn,"-selected"),lt(Rt,Ot.locale,Ht,Bn)))};return g.createElement(He,Object.assign({},xe,{panelName:"week",prefixColumn:Vt,rowClassName:xn,keyboardConfig:{onLeftRight:null}}))}var rn=Xt;function wt(xe){var st=xe.prefixCls,Rt=xe.generateConfig,Ot=xe.locale,Ht=xe.viewDate,Nt=xe.onNextYear,Vt=xe.onPrevYear,nn=xe.onYearClick,xn=g.useContext(c),_n=xn.hideHeader;if(_n)return null;var Bn="".concat(st,"-header");return g.createElement(s,Object.assign({},xe,{prefixCls:Bn,onSuperPrev:Vt,onSuperNext:Nt}),g.createElement("button",{type:"button",onClick:nn,className:"".concat(st,"-year-btn")},Rt.locale.format(Ot.locale,Ht,Ot.yearFormat)))}var bt=wt,ke=3,nt=4;function rt(xe){var st=xe.prefixCls,Rt=xe.locale,Ot=xe.value,Ht=xe.viewDate,Nt=xe.generateConfig,Vt=xe.monthCellRender,nn=g.useContext(ht),xn=nn.rangedValue,_n=nn.hoverRangedValue,Bn="".concat(st,"-cell"),Dn=Bt({cellPrefixCls:Bn,value:Ot,generateConfig:Nt,rangedValue:xn,hoverRangedValue:_n,isSameCell:function(Pn,qn){return Oe(Nt,Pn,qn)},isInView:function(){return!0},offsetCell:function(Pn,qn){return Nt.addMonth(Pn,qn)}}),an=Rt.shortMonths||(Nt.locale.getShortMonths?Nt.locale.getShortMonths(Rt.locale):[]),Mn=Nt.setMonth(Ht,0),yn=Vt?function(Fn){return Vt(Fn,Rt)}:void 0;return g.createElement(Et,Object.assign({},xe,{rowNum:nt,colNum:ke,baseDate:Mn,getCellNode:yn,getCellText:function(Pn){return Rt.monthFormat?Nt.locale.format(Rt.locale,Pn,Rt.monthFormat):an[Nt.getMonth(Pn)]},getCellClassName:Dn,getCellDate:Nt.addMonth,titleCell:function(Pn){return Nt.locale.format(Rt.locale,Pn,"YYYY-MM")}}))}var De=rt;function Ke(xe){var st=xe.prefixCls,Rt=xe.operationRef,Ot=xe.onViewDateChange,Ht=xe.generateConfig,Nt=xe.value,Vt=xe.viewDate,nn=xe.onPanelChange,xn=xe.onSelect,_n="".concat(st,"-month-panel");Rt.current={onKeyDown:function(an){return x(an,{onLeftRight:function(yn){xn(Ht.addMonth(Nt||Vt,yn),"key")},onCtrlLeftRight:function(yn){xn(Ht.addYear(Nt||Vt,yn),"key")},onUpDown:function(yn){xn(Ht.addMonth(Nt||Vt,yn*ke),"key")},onEnter:function(){nn("date",Nt||Vt)}})}};var Bn=function(an){var Mn=Ht.addYear(Vt,an);Ot(Mn),nn(null,Mn)};return g.createElement("div",{className:_n},g.createElement(bt,Object.assign({},xe,{prefixCls:st,onPrevYear:function(){Bn(-1)},onNextYear:function(){Bn(1)},onYearClick:function(){nn("year",Vt)}})),g.createElement(De,Object.assign({},xe,{prefixCls:st,onSelect:function(an){xn(an,"mouse"),nn("date",an)}})))}var Ct=Ke;function ft(xe){var st=xe.prefixCls,Rt=xe.generateConfig,Ot=xe.locale,Ht=xe.viewDate,Nt=xe.onNextYear,Vt=xe.onPrevYear,nn=xe.onYearClick,xn=g.useContext(c),_n=xn.hideHeader;if(_n)return null;var Bn="".concat(st,"-header");return g.createElement(s,Object.assign({},xe,{prefixCls:Bn,onSuperPrev:Vt,onSuperNext:Nt}),g.createElement("button",{type:"button",onClick:nn,className:"".concat(st,"-year-btn")},Rt.locale.format(Ot.locale,Ht,Ot.yearFormat)))}var xt=ft,Mt=4,ct=1;function Ut(xe){var st=xe.prefixCls,Rt=xe.locale,Ot=xe.value,Ht=xe.viewDate,Nt=xe.generateConfig,Vt=g.useContext(ht),nn=Vt.rangedValue,xn=Vt.hoverRangedValue,_n="".concat(st,"-cell"),Bn=Bt({cellPrefixCls:_n,value:Ot,generateConfig:Nt,rangedValue:nn,hoverRangedValue:xn,isSameCell:function(Mn,yn){return _e(Nt,Mn,yn)},isInView:function(){return!0},offsetCell:function(Mn,yn){return Nt.addMonth(Mn,yn*3)}}),Dn=Nt.setDate(Nt.setMonth(Ht,0),1);return g.createElement(Et,Object.assign({},xe,{rowNum:ct,colNum:Mt,baseDate:Dn,getCellText:function(Mn){return Nt.locale.format(Rt.locale,Mn,Rt.quarterFormat||"[Q]Q")},getCellClassName:Bn,getCellDate:function(Mn,yn){return Nt.addMonth(Mn,yn*3)},titleCell:function(Mn){return Nt.locale.format(Rt.locale,Mn,"YYYY-[Q]Q")}}))}var Ft=Ut;function on(xe){var st=xe.prefixCls,Rt=xe.operationRef,Ot=xe.onViewDateChange,Ht=xe.generateConfig,Nt=xe.value,Vt=xe.viewDate,nn=xe.onPanelChange,xn=xe.onSelect,_n="".concat(st,"-quarter-panel");Rt.current={onKeyDown:function(an){return x(an,{onLeftRight:function(yn){xn(Ht.addMonth(Nt||Vt,yn*3),"key")},onCtrlLeftRight:function(yn){xn(Ht.addYear(Nt||Vt,yn),"key")},onUpDown:function(yn){xn(Ht.addYear(Nt||Vt,yn),"key")}})}};var Bn=function(an){var Mn=Ht.addYear(Vt,an);Ot(Mn),nn(null,Mn)};return g.createElement("div",{className:_n},g.createElement(xt,Object.assign({},xe,{prefixCls:st,onPrevYear:function(){Bn(-1)},onNextYear:function(){Bn(1)},onYearClick:function(){nn("year",Vt)}})),g.createElement(Ft,Object.assign({},xe,{prefixCls:st,onSelect:function(an){xn(an,"mouse")}})))}var cn=on;function ln(xe){var st=xe.prefixCls,Rt=xe.generateConfig,Ot=xe.viewDate,Ht=xe.onPrevDecade,Nt=xe.onNextDecade,Vt=xe.onDecadeClick,nn=g.useContext(c),xn=nn.hideHeader;if(xn)return null;var _n="".concat(st,"-header"),Bn=Rt.getYear(Ot),Dn=Math.floor(Bn/Vn)*Vn,an=Dn+Vn-1;return g.createElement(s,Object.assign({},xe,{prefixCls:_n,onSuperPrev:Ht,onSuperNext:Nt}),g.createElement("button",{type:"button",onClick:Vt,className:"".concat(st,"-decade-btn")},Dn,"-",an))}var kn=ln,In=3,sn=4;function Gn(xe){var st=xe.prefixCls,Rt=xe.value,Ot=xe.viewDate,Ht=xe.locale,Nt=xe.generateConfig,Vt=g.useContext(ht),nn=Vt.rangedValue,xn=Vt.hoverRangedValue,_n="".concat(st,"-cell"),Bn=Nt.getYear(Ot),Dn=Math.floor(Bn/Vn)*Vn,an=Dn+Vn-1,Mn=Nt.setYear(Ot,Dn-Math.ceil((In*sn-Vn)/2)),yn=function(qn){var pr=Nt.getYear(qn);return Dn<=pr&&pr<=an},Fn=Bt({cellPrefixCls:_n,value:Rt,generateConfig:Nt,rangedValue:nn,hoverRangedValue:xn,isSameCell:function(qn,pr){return J(Nt,qn,pr)},isInView:yn,offsetCell:function(qn,pr){return Nt.addYear(qn,pr)}});return g.createElement(Et,Object.assign({},xe,{rowNum:sn,colNum:In,baseDate:Mn,getCellText:Nt.getYear,getCellClassName:Fn,getCellDate:Nt.addYear,titleCell:function(qn){return Nt.locale.format(Ht.locale,qn,"YYYY")}}))}var Nn=Gn,Vn=10;function Zn(xe){var st=xe.prefixCls,Rt=xe.operationRef,Ot=xe.onViewDateChange,Ht=xe.generateConfig,Nt=xe.value,Vt=xe.viewDate,nn=xe.sourceMode,xn=xe.onSelect,_n=xe.onPanelChange,Bn="".concat(st,"-year-panel");Rt.current={onKeyDown:function(Mn){return x(Mn,{onLeftRight:function(Fn){xn(Ht.addYear(Nt||Vt,Fn),"key")},onCtrlLeftRight:function(Fn){xn(Ht.addYear(Nt||Vt,Fn*Vn),"key")},onUpDown:function(Fn){xn(Ht.addYear(Nt||Vt,Fn*In),"key")},onEnter:function(){_n(nn==="date"?"date":"month",Nt||Vt)}})}};var Dn=function(Mn){var yn=Ht.addYear(Vt,Mn*10);Ot(yn),_n(null,yn)};return g.createElement("div",{className:Bn},g.createElement(kn,Object.assign({},xe,{prefixCls:st,onPrevDecade:function(){Dn(-1)},onNextDecade:function(){Dn(1)},onDecadeClick:function(){_n("decade",Vt)}})),g.createElement(Nn,Object.assign({},xe,{prefixCls:st,onSelect:function(Mn){_n(nn==="date"?"date":"month",Mn),xn(Mn,"mouse")}})))}var xr=Zn;function dr(xe){var st=xe.prefixCls,Rt=xe.generateConfig,Ot=xe.viewDate,Ht=xe.onPrevDecades,Nt=xe.onNextDecades,Vt=g.useContext(c),nn=Vt.hideHeader;if(nn)return null;var xn="".concat(st,"-header"),_n=Rt.getYear(Ot),Bn=Math.floor(_n/gr)*gr,Dn=Bn+gr-1;return g.createElement(s,Object.assign({},xe,{prefixCls:xn,onSuperPrev:Ht,onSuperNext:Nt}),Bn,"-",Dn)}var un=dr,$t=3,An=4;function Ur(xe){var st=Cr-1,Rt=xe.prefixCls,Ot=xe.viewDate,Ht=xe.generateConfig,Nt=xe.disabledDate,Vt="".concat(Rt,"-cell"),nn=Ht.getYear(Ot),xn=Math.floor(nn/Cr)*Cr,_n=Math.floor(nn/gr)*gr,Bn=_n+gr-1,Dn=Ht.setYear(Ot,_n-Math.ceil(($t*An*Cr-gr)/2)),an=function(yn){var Fn,Pn=Nt&&Nt(yn),qn=Ht.getYear(yn),pr=qn+st;return Fn={},Object(y.a)(Fn,"".concat(Vt,"-disabled"),Pn),Object(y.a)(Fn,"".concat(Vt,"-in-view"),_n<=qn&&pr<=Bn),Object(y.a)(Fn,"".concat(Vt,"-selected"),qn===xn),Fn};return g.createElement(Et,Object.assign({},xe,{rowNum:An,colNum:$t,baseDate:Dn,getCellText:function(yn){var Fn=Ht.getYear(yn);return"".concat(Fn,"-").concat(Fn+st)},getCellClassName:an,getCellDate:function(yn,Fn){return Ht.addYear(yn,Fn*Cr)}}))}var Ar=Ur,Cr=10,gr=Cr*10;function pe(xe){var st=xe.prefixCls,Rt=xe.onViewDateChange,Ot=xe.generateConfig,Ht=xe.viewDate,Nt=xe.operationRef,Vt=xe.onSelect,nn=xe.onPanelChange,xn="".concat(st,"-decade-panel");Nt.current={onKeyDown:function(an){return x(an,{onLeftRight:function(yn){Vt(Ot.addYear(Ht,yn*Cr),"key")},onCtrlLeftRight:function(yn){Vt(Ot.addYear(Ht,yn*gr),"key")},onUpDown:function(yn){Vt(Ot.addYear(Ht,yn*Cr*$t),"key")},onEnter:function(){nn("year",Ht)}})}};var _n=function(an){var Mn=Ot.addYear(Ht,an*gr);Rt(Mn),nn(null,Mn)},Bn=function(an){Vt(an,"mouse"),nn("year",an)};return g.createElement("div",{className:xn},g.createElement(un,Object.assign({},xe,{prefixCls:st,onPrevDecades:function(){_n(-1)},onNextDecades:function(){_n(1)}})),g.createElement(Ar,Object.assign({},xe,{prefixCls:st,onSelect:Bn})))}var X=pe;function q(xe,st,Rt){return Rt?g.createElement("div",{className:"".concat(xe,"-footer-extra")},Rt(st)):null}function oe(xe){var st=xe.prefixCls,Rt=xe.rangeList,Ot=Rt===void 0?[]:Rt,Ht=xe.components,Nt=Ht===void 0?{}:Ht,Vt=xe.needConfirmButton,nn=xe.onNow,xn=xe.onOk,_n=xe.okDisabled,Bn=xe.showNow,Dn=xe.locale,an,Mn;if(Ot.length){var yn=Nt.rangeItem||"span";an=g.createElement(g.Fragment,null,Ot.map(function(Pn){var qn=Pn.label,pr=Pn.onClick,Fr=Pn.onMouseEnter,wn=Pn.onMouseLeave;return g.createElement("li",{key:qn,className:"".concat(st,"-preset")},g.createElement(yn,{onClick:pr,onMouseEnter:Fr,onMouseLeave:wn},qn))}))}if(Vt){var Fn=Nt.button||"button";nn&&!an&&Bn!==!1&&(an=g.createElement("li",{className:"".concat(st,"-now")},g.createElement("a",{className:"".concat(st,"-now-btn"),onClick:nn},Dn.now))),Mn=Vt&&g.createElement("li",{className:"".concat(st,"-ok")},g.createElement(Fn,{disabled:_n,onClick:xn},Dn.ok))}return!an&&!Mn?null:g.createElement("ul",{className:"".concat(st,"-ranges")},an,Mn)}function Re(xe){var st,Rt=xe.prefixCls,Ot=Rt===void 0?"rc-picker":Rt,Ht=xe.className,Nt=xe.style,Vt=xe.locale,nn=xe.generateConfig,xn=xe.value,_n=xe.defaultValue,Bn=xe.pickerValue,Dn=xe.defaultPickerValue,an=xe.disabledDate,Mn=xe.mode,yn=xe.picker,Fn=yn===void 0?"date":yn,Pn=xe.tabIndex,qn=Pn===void 0?0:Pn,pr=xe.showNow,Fr=xe.showTime,wn=xe.showToday,Yt=xe.renderExtraFooter,mn=xe.hideHeader,Rn=xe.onSelect,en=xe.onChange,Tn=xe.onPanelChange,bn=xe.onMouseDown,Un=xe.onPickerValueChange,Wn=xe.onOk,sr=xe.components,tr=xe.direction,Rr=xe.hourStep,Ir=Rr===void 0?1:Rr,$n=xe.minuteStep,Dr=$n===void 0?1:$n,vr=xe.secondStep,zr=vr===void 0?1:vr,Lr=Fn==="date"&&!!Fr||Fn==="time",$r=24%Ir===0,ir=60%Dr===0,Kt=60%zr===0,qt=g.useContext(c),Jt=qt.operationRef,Qn=qt.panelRef,nr=qt.onSelect,jn=qt.hideRanges,or=qt.defaultOpenValue,fr=g.useContext(ht),lr=fr.inRange,qr=fr.panelPosition,ur=fr.rangedValue,da=fr.hoverRangedValue,Yr=g.useRef({}),_r=g.useRef(!0),wr=Object(l.a)(null,{value:xn,defaultValue:_n,postState:function(Cn){return!Cn&&or&&Fn==="time"?or:Cn}}),Kr=Object(A.a)(wr,2),Jr=Kr[0],Oa=Kr[1],_a=Object(l.a)(null,{value:Bn,defaultValue:Dn||Jr,postState:function(Cn){return Cn||nn.getNow()}}),Qe=Object(A.a)(_a,2),ut=Qe[0],yt=Qe[1],at=function(Cn){yt(Cn),Un&&Un(Cn)},Me=function(Cn){var Hn=W[Fn];return Hn?Hn(Cn):Cn},Ve=Object(l.a)(function(){return Fn==="time"?"time":Me("date")},{value:Mn}),Ie=Object(A.a)(Ve,2),$e=Ie[0],qe=Ie[1];g.useEffect(function(){qe(Fn)},[Fn]);var pt=g.useState(function(){return $e}),it=Object(A.a)(pt,2),It=it[0],zt=it[1],gn=function(Cn,Hn){var Vr=Me(Cn||$e);zt($e),qe(Vr),Tn&&($e!==Vr||dt(nn,ut,ut))&&Tn(Hn,Vr)},dn=function(Cn,Hn){var Vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;($e===Fn||Vr)&&(Oa(Cn),Rn&&Rn(Cn),nr&&nr(Cn,Hn),en&&!dt(nn,Cn,Jr)&&en(Cn))},pn=function(Cn){return Yr.current&&Yr.current.onKeyDown?([i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN,i.a.PAGE_UP,i.a.PAGE_DOWN,i.a.ENTER].includes(Cn.which)&&Cn.preventDefault(),Yr.current.onKeyDown(Cn)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},hn=function(Cn){Yr.current&&Yr.current.onBlur&&Yr.current.onBlur(Cn)};Jt&&qr!=="right"&&(Jt.current={onKeyDown:pn,onClose:function(){Yr.current&&Yr.current.onClose&&Yr.current.onClose()}}),g.useEffect(function(){xn&&!_r.current&&yt(xn)},[xn]),g.useEffect(function(){_r.current=!1},[]);var zn,Sn=Object(C.a)(Object(C.a)({},xe),{},{operationRef:Yr,prefixCls:Ot,viewDate:ut,value:Jr,onViewDateChange:at,sourceMode:It,onPanelChange:gn,disabledDate:$e!=="decade"?an:void 0});delete Sn.onChange,delete Sn.onSelect;switch($e){case"decade":zn=g.createElement(X,Object.assign({},Sn,{onSelect:function(Cn,Hn){at(Cn),dn(Cn,Hn)}}));break;case"year":zn=g.createElement(xr,Object.assign({},Sn,{onSelect:function(Cn,Hn){at(Cn),dn(Cn,Hn)}}));break;case"month":zn=g.createElement(Ct,Object.assign({},Sn,{onSelect:function(Cn,Hn){at(Cn),dn(Cn,Hn)}}));break;case"quarter":zn=g.createElement(cn,Object.assign({},Sn,{onSelect:function(Cn,Hn){at(Cn),dn(Cn,Hn)}}));break;case"week":zn=g.createElement(rn,Object.assign({},Sn,{onSelect:function(Cn,Hn){at(Cn),dn(Cn,Hn)}}));break;case"time":delete Sn.showTime,zn=g.createElement(we,Object.assign({},Sn,Object(n.a)(Fr)==="object"?Fr:null,{onSelect:function(Cn,Hn){at(Cn),dn(Cn,Hn)}}));break;default:Fr?zn=g.createElement(Lt,Object.assign({},Sn,{onSelect:function(Cn,Hn){at(Cn),dn(Cn,Hn)}})):zn=g.createElement(He,Object.assign({},Sn,{onSelect:function(Cn,Hn){at(Cn),dn(Cn,Hn)}}))}var jr,Pr,Qr=function(){var Cn=nn.getNow(),Hn=Ee(nn.getHour(Cn),nn.getMinute(Cn),nn.getSecond(Cn),$r?Ir:1,ir?Dr:1,Kt?zr:1),Vr=ye(nn,Cn,Hn[0],Hn[1],Hn[2]);dn(Vr,"submit")};jn||(jr=q(Ot,$e,Yt),Pr=oe({prefixCls:Ot,components:sr,needConfirmButton:Lr,okDisabled:!Jr||an&&an(Jr),locale:Vt,showNow:pr,onNow:Lr&&Qr,onOk:function(){Jr&&(dn(Jr,"submit",!0),Wn&&Wn(Jr))}}));var Wr;if(wn&&$e==="date"&&Fn==="date"&&!Fr){var ta=nn.getNow(),Xn="".concat(Ot,"-today-btn"),Tr=an&&an(ta);Wr=g.createElement("a",{className:f()(Xn,Tr&&"".concat(Xn,"-disabled")),"aria-disabled":Tr,onClick:function(){Tr||dn(ta,"mouse",!0)}},Vt.today)}return g.createElement(c.Provider,{value:Object(C.a)(Object(C.a)({},qt),{},{hideHeader:"hideHeader"in xe?mn:qt.hideHeader,hidePrevBtn:lr&&qr==="right",hideNextBtn:lr&&qr==="left"})},g.createElement("div",{tabIndex:qn,className:f()("".concat(Ot,"-panel"),Ht,(st={},Object(y.a)(st,"".concat(Ot,"-panel-has-range"),ur&&ur[0]&&ur[1]),Object(y.a)(st,"".concat(Ot,"-panel-has-range-hover"),da&&da[0]&&da[1]),Object(y.a)(st,"".concat(Ot,"-panel-rtl"),tr==="rtl"),st)),style:Nt,onKeyDown:pn,onBlur:hn,onMouseDown:bn,ref:Qn},zn,jr||Pr||Wr?g.createElement("div",{className:"".concat(Ot,"-footer")},jr,Pr,Wr):null))}var de=Re,ot=o("uciX"),Qt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Ln(xe){var st,Rt=xe.prefixCls,Ot=xe.popupElement,Ht=xe.popupStyle,Nt=xe.visible,Vt=xe.dropdownClassName,nn=xe.dropdownAlign,xn=xe.transitionName,_n=xe.getPopupContainer,Bn=xe.children,Dn=xe.range,an=xe.popupPlacement,Mn=xe.direction,yn="".concat(Rt,"-dropdown"),Fn=function(){return an!==void 0?an:Mn==="rtl"?"bottomRight":"bottomLeft"};return g.createElement(ot.a,{showAction:[],hideAction:[],popupPlacement:Fn(),builtinPlacements:Qt,prefixCls:yn,popupTransitionName:xn,popup:Ot,popupAlign:nn,popupVisible:Nt,popupClassName:f()(Vt,(st={},Object(y.a)(st,"".concat(yn,"-range"),Dn),Object(y.a)(st,"".concat(yn,"-rtl"),Mn==="rtl"),st)),popupStyle:Ht,getPopupContainer:_n},Bn)}var Jn=Ln;function Zt(xe){var st=xe.open,Rt=xe.value,Ot=xe.isClickOutside,Ht=xe.triggerOpen,Nt=xe.forwardKeyDown,Vt=xe.blurToCancel,nn=xe.onSubmit,xn=xe.onCancel,_n=xe.onFocus,Bn=xe.onBlur,Dn=Object(g.useState)(!1),an=Object(A.a)(Dn,2),Mn=an[0],yn=an[1],Fn=Object(g.useState)(!1),Pn=Object(A.a)(Fn,2),qn=Pn[0],pr=Pn[1],Fr=Object(g.useRef)(!1),wn=Object(g.useRef)(!1),Yt={onMouseDown:function(){yn(!0),Ht(!0)},onKeyDown:function(Rn){switch(Rn.which){case i.a.ENTER:{st?nn()!==!1&&yn(!0):Ht(!0),Rn.preventDefault();return}case i.a.TAB:{Mn&&st&&!Rn.shiftKey?(yn(!1),Rn.preventDefault()):!Mn&&st&&(!Nt(Rn)&&Rn.shiftKey&&(yn(!0),Rn.preventDefault()));return}case i.a.ESC:{yn(!0),xn();return}}!st&&![i.a.SHIFT].includes(Rn.which)?Ht(!0):Mn||Nt(Rn)},onFocus:function(Rn){yn(!0),pr(!0),_n&&_n(Rn)},onBlur:function(Rn){if(Fr.current||!Ot(document.activeElement)){Fr.current=!1;return}Vt?setTimeout(function(){Ot(document.activeElement)&&xn()},0):st&&(Ht(!1),wn.current&&nn()),pr(!1),Bn&&Bn(Rn)}};return Object(g.useEffect)(function(){wn.current=!1},[st]),Object(g.useEffect)(function(){wn.current=!0},[Rt]),Object(g.useEffect)(function(){return I(function(mn){var Rn=mn.target;st&&(Ot(Rn)?qn||Ht(!1):(Fr.current=!0,requestAnimationFrame(function(){Fr.current=!1})))})}),[Yt,{focused:qn,typing:Mn}]}function En(xe){var st=xe.valueTexts,Rt=xe.onTextChange,Ot=g.useState(""),Ht=Object(A.a)(Ot,2),Nt=Ht[0],Vt=Ht[1],nn=g.useRef([]);nn.current=st;function xn(Bn){Vt(Bn),Rt(Bn)}function _n(){Vt(nn.current[0])}return g.useEffect(function(){st.every(function(Bn){return Bn!==Nt})&&_n()},[st.join("||")]),[Nt,xn,_n]}var fn=o("Gytx"),Br=o.n(fn);function ra(xe,st){var Rt=st.formatList,Ot=st.generateConfig,Ht=st.locale;return Object(E.a)(function(){if(!xe)return[[""],""];for(var Nt="",Vt=[],nn=0;nn<Rt.length;nn+=1){var xn=Rt[nn],_n=Ot.locale.format(Ht.locale,xe,xn);Vt.push(_n),nn===0&&(Nt=_n)}return[Vt,Nt]},[xe,Rt],function(Nt,Vt){return Nt[0]!==Vt[0]||!Br()(Nt[1],Vt[1])})}function oa(xe,st){var Rt=st.formatList,Ot=st.generateConfig,Ht=st.locale,Nt=Object(g.useState)(null),Vt=Object(A.a)(Nt,2),nn=Vt[0],xn=Vt[1],_n=Object(g.useRef)(null);function Bn(Pn){var qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(_n.current),qn){xn(Pn);return}_n.current=requestAnimationFrame(function(){xn(Pn)})}var Dn=ra(nn,{formatList:Rt,generateConfig:Ot,locale:Ht}),an=Object(A.a)(Dn,2),Mn=an[1];function yn(Pn){Bn(Pn)}function Fn(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Bn(null,Pn)}return Object(g.useEffect)(function(){Fn(!0)},[xe]),Object(g.useEffect)(function(){return function(){return cancelAnimationFrame(_n.current)}},[]),[Mn,yn,Fn]}function rr(xe){var st,Rt=xe.prefixCls,Ot=Rt===void 0?"rc-picker":Rt,Ht=xe.id,Nt=xe.tabIndex,Vt=xe.style,nn=xe.className,xn=xe.dropdownClassName,_n=xe.dropdownAlign,Bn=xe.popupStyle,Dn=xe.transitionName,an=xe.generateConfig,Mn=xe.locale,yn=xe.inputReadOnly,Fn=xe.allowClear,Pn=xe.autoFocus,qn=xe.showTime,pr=xe.picker,Fr=pr===void 0?"date":pr,wn=xe.format,Yt=xe.use12Hours,mn=xe.value,Rn=xe.defaultValue,en=xe.open,Tn=xe.defaultOpen,bn=xe.defaultOpenValue,Un=xe.suffixIcon,Wn=xe.clearIcon,sr=xe.disabled,tr=xe.disabledDate,Rr=xe.placeholder,Ir=xe.getPopupContainer,$n=xe.pickerRef,Dr=xe.panelRender,vr=xe.onChange,zr=xe.onOpenChange,Lr=xe.onFocus,$r=xe.onBlur,ir=xe.onMouseDown,Kt=xe.onMouseUp,qt=xe.onMouseEnter,Jt=xe.onMouseLeave,Qn=xe.onContextMenu,nr=xe.onClick,jn=xe.direction,or=xe.autoComplete,fr=or===void 0?"off":or,lr=g.useRef(null),qr=Fr==="date"&&!!qn||Fr==="time",ur=fe(S(wn,Fr,qn,Yt)),da=g.useRef(null),Yr=g.useRef(null),_r=Object(l.a)(null,{value:mn,defaultValue:Rn}),wr=Object(A.a)(_r,2),Kr=wr[0],Jr=wr[1],Oa=g.useState(Kr),_a=Object(A.a)(Oa,2),Qe=_a[0],ut=_a[1],yt=g.useRef(null),at=Object(l.a)(!1,{value:en,defaultValue:Tn,postState:function(ar){return sr?!1:ar},onChange:function(ar){zr&&zr(ar),!ar&&yt.current&&yt.current.onClose&&yt.current.onClose()}}),Me=Object(A.a)(at,2),Ve=Me[0],Ie=Me[1],$e=ra(Qe,{formatList:ur,generateConfig:an,locale:Mn}),qe=Object(A.a)($e,2),pt=qe[0],it=qe[1],It=En({valueTexts:pt,onTextChange:function(ar){var pa=an.locale.parse(Mn.locale,ar,ur);pa&&(!tr||!tr(pa))&&ut(pa)}}),zt=Object(A.a)(It,3),gn=zt[0],dn=zt[1],pn=zt[2],hn=function(ar){ut(ar),Jr(ar),vr&&!dt(an,Kr,ar)&&vr(ar,ar?an.locale.format(Mn.locale,ar,ur[0]):"")},zn=function(ar){if(sr&&ar)return;Ie(ar)},Sn=function(ar){return Ve&&yt.current&&yt.current.onKeyDown?yt.current.onKeyDown(ar):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},jr=function(){Kt&&Kt.apply(void 0,arguments),lr.current&&(lr.current.focus(),zn(!0))},Pr=Zt({blurToCancel:qr,open:Ve,value:gn,triggerOpen:zn,forwardKeyDown:Sn,isClickOutside:function(ar){return!F([da.current,Yr.current],ar)},onSubmit:function(){return tr&&tr(Qe)?!1:(hn(Qe),zn(!1),pn(),!0)},onCancel:function(){zn(!1),ut(Kr),pn()},onFocus:Lr,onBlur:$r}),Qr=Object(A.a)(Pr,2),Wr=Qr[0],ta=Qr[1],Xn=ta.focused,Tr=ta.typing;g.useEffect(function(){Ve||(ut(Kr),!pt.length||pt[0]===""?dn(""):it!==gn&&pn())},[Ve,pt]),g.useEffect(function(){Ve||pn()},[Fr]),g.useEffect(function(){ut(Kr)},[Kr]),$n&&($n.current={focus:function(){lr.current&&lr.current.focus()},blur:function(){lr.current&&lr.current.blur()}});var Yn=Object(C.a)(Object(C.a)({},xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Cn=g.createElement(de,Object.assign({},Yn,{generateConfig:an,className:f()(Object(y.a)({},"".concat(Ot,"-panel-focused"),!Tr)),value:Qe,locale:Mn,tabIndex:-1,onChange:ut,direction:jn}));Dr&&(Cn=Dr(Cn));var Hn=g.createElement("div",{className:"".concat(Ot,"-panel-container"),onMouseDown:function(ar){ar.preventDefault()}},Cn),Vr;Un&&(Vr=g.createElement("span",{className:"".concat(Ot,"-suffix")},Un));var ua;Fn&&Kr&&!sr&&(ua=g.createElement("span",{onMouseDown:function(ar){ar.preventDefault(),ar.stopPropagation()},onMouseUp:function(ar){ar.preventDefault(),ar.stopPropagation(),hn(null),zn(!1)},className:"".concat(Ot,"-clear")},Wn||g.createElement("span",{className:"".concat(Ot,"-clear-btn")})));var hr=function(ar,pa){(pa==="submit"||pa!=="key"&&!qr)&&(hn(ar),zn(!1))},aa=jn==="rtl"?"bottomRight":"bottomLeft",Ca=oa(gn,{formatList:ur,generateConfig:an,locale:Mn}),ha=Object(A.a)(Ca,3),Sa=ha[0],Or=ha[1],br=ha[2];return g.createElement(c.Provider,{value:{operationRef:yt,hideHeader:Fr==="time",panelRef:da,onSelect:hr,open:Ve,defaultOpenValue:bn,onDateMouseEnter:Or,onDateMouseLeave:br}},g.createElement(Jn,{visible:Ve,popupElement:Hn,popupStyle:Bn,prefixCls:Ot,dropdownClassName:xn,dropdownAlign:_n,getPopupContainer:Ir,transitionName:Dn,popupPlacement:aa,direction:jn},g.createElement("div",{className:f()(Ot,nn,(st={},Object(y.a)(st,"".concat(Ot,"-disabled"),sr),Object(y.a)(st,"".concat(Ot,"-focused"),Xn),Object(y.a)(st,"".concat(Ot,"-rtl"),jn==="rtl"),st)),style:Vt,onMouseDown:ir,onMouseUp:jr,onMouseEnter:qt,onMouseLeave:Jt,onContextMenu:Qn,onClick:nr},g.createElement("div",{className:f()("".concat(Ot,"-input"),Object(y.a)({},"".concat(Ot,"-input-placeholder"),!!Sa)),ref:Yr},g.createElement("input",Object.assign({id:Ht,tabIndex:Nt,disabled:sr,readOnly:yn||!Tr,value:Sa||gn,onChange:function(ar){dn(ar.target.value)},autoFocus:Pn,placeholder:Rr,ref:lr,title:gn},Wr,{size:v(Fr,ur[0])},Ce(xe),{autoComplete:fr})),Vr,ua))))}var Ba=function(xe){Object(O.a)(Rt,xe);var st=Object(b.a)(Rt);function Rt(){var Ot;return Object(M.a)(this,Rt),Ot=st.apply(this,arguments),Ot.pickerRef=g.createRef(),Ot.focus=function(){Ot.pickerRef.current&&Ot.pickerRef.current.focus()},Ot.blur=function(){Ot.pickerRef.current&&Ot.pickerRef.current.blur()},Ot}return Object(m.a)(Rt,[{key:"render",value:function(){return g.createElement(rr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(g.Component),Ea=Ba;function ca(xe,st,Rt){var Ot=xe.picker,Ht=xe.locale,Nt=xe.selectedValue,Vt=xe.disabledDate,nn=xe.disabled,xn=xe.generateConfig,_n=Te(Nt,0),Bn=Te(Nt,1);function Dn(Pn){var qn=xn.getYear(Pn),pr=xn.locale.getWeek(Ht.locale,Pn);return qn*100+pr}function an(Pn){var qn=xn.getYear(Pn),pr=xn.getMonth(Pn);return qn*100+pr}function Mn(Pn){var qn=xn.getYear(Pn),pr=ve(xn,Pn);return qn*10+pr}var yn=g.useCallback(function(Pn){if(Vt&&Vt(Pn))return!0;if(nn[1]&&Bn)return!Xe(xn,Pn,Bn)&&xn.isAfter(Pn,Bn);if(st&&Bn)switch(Ot){case"quarter":return Mn(Pn)>Mn(Bn);case"month":return an(Pn)>an(Bn);case"week":return Dn(Pn)>Dn(Bn);default:return!Xe(xn,Pn,Bn)&&xn.isAfter(Pn,Bn)}return!1},[Vt,nn[1],Bn,st]),Fn=g.useCallback(function(Pn){if(Vt&&Vt(Pn))return!0;if(nn[0]&&_n)return!Xe(xn,Pn,Bn)&&xn.isAfter(_n,Pn);if(Rt&&_n)switch(Ot){case"quarter":return Mn(Pn)<Mn(_n);case"month":return an(Pn)<an(_n);case"week":return Dn(Pn)<Dn(_n);default:return!Xe(xn,Pn,_n)&&xn.isAfter(_n,Pn)}return!1},[Vt,nn[0],_n,Rt]);return[yn,Fn]}function Ka(xe,st,Rt,Ot){var Ht=Ye(xe,Rt,Ot,1);function Nt(Vt){return Vt(xe,st)?"same":Vt(Ht,st)?"closing":"far"}switch(Rt){case"year":return Nt(function(Vt,nn){return Q(Ot,Vt,nn)});case"quarter":case"month":return Nt(function(Vt,nn){return J(Ot,Vt,nn)});default:return Nt(function(Vt,nn){return Oe(Ot,Vt,nn)})}}function Ta(xe,st,Rt,Ot){var Ht=Te(xe,0),Nt=Te(xe,1);if(st===0)return Ht;if(Ht&&Nt){var Vt=Ka(Ht,Nt,Rt,Ot);switch(Vt){case"same":return Ht;case"closing":return Ht;default:return Ye(Nt,Rt,Ot,-1)}}return Ht}function Ja(xe){var st=xe.values,Rt=xe.picker,Ot=xe.defaultDates,Ht=xe.generateConfig,Nt=g.useState(function(){return[Te(Ot,0),Te(Ot,1)]}),Vt=Object(A.a)(Nt,2),nn=Vt[0],xn=Vt[1],_n=g.useState(null),Bn=Object(A.a)(_n,2),Dn=Bn[0],an=Bn[1],Mn=Te(st,0),yn=Te(st,1);function Fn(qn){return nn[qn]?nn[qn]:Te(Dn,qn)||Ta(st,qn,Rt,Ht)||Mn||yn||Ht.getNow()}function Pn(qn,pr){if(qn){var Fr=ce(Dn,qn,pr);xn(ce(nn,null,pr)||[null,null]);var wn=(pr+1)%2;Te(st,wn)||(Fr=ce(Fr,qn,wn)),an(Fr)}else(Mn||yn)&&an(null)}return[Fn,Pn]}function Ua(xe,st){return xe&&xe[0]&&xe[1]&&st.isAfter(xe[0],xe[1])?[xe[1],xe[0]]:xe}function li(xe,st,Rt,Ot){return xe||Ot&&Ot[st]?!0:!!Rt[(st+1)%2]}function oi(xe){var st,Rt,Ot,Ht=xe.prefixCls,Nt=Ht===void 0?"rc-picker":Ht,Vt=xe.id,nn=xe.style,xn=xe.className,_n=xe.popupStyle,Bn=xe.dropdownClassName,Dn=xe.transitionName,an=xe.dropdownAlign,Mn=xe.getPopupContainer,yn=xe.generateConfig,Fn=xe.locale,Pn=xe.placeholder,qn=xe.autoFocus,pr=xe.disabled,Fr=xe.format,wn=xe.picker,Yt=wn===void 0?"date":wn,mn=xe.showTime,Rn=xe.use12Hours,en=xe.separator,Tn=en===void 0?"~":en,bn=xe.value,Un=xe.defaultValue,Wn=xe.defaultPickerValue,sr=xe.open,tr=xe.defaultOpen,Rr=xe.disabledDate,Ir=xe.disabledTime,$n=xe.dateRender,Dr=xe.panelRender,vr=xe.ranges,zr=xe.allowEmpty,Lr=xe.allowClear,$r=xe.suffixIcon,ir=xe.clearIcon,Kt=xe.pickerRef,qt=xe.inputReadOnly,Jt=xe.mode,Qn=xe.renderExtraFooter,nr=xe.onChange,jn=xe.onOpenChange,or=xe.onPanelChange,fr=xe.onCalendarChange,lr=xe.onFocus,qr=xe.onBlur,ur=xe.onOk,da=xe.components,Yr=xe.order,_r=xe.direction,wr=xe.activePickerIndex,Kr=xe.autoComplete,Jr=Kr===void 0?"off":Kr,Oa=Yt==="date"&&!!mn||Yt==="time",_a=Object(g.useRef)({}),Qe=Object(g.useRef)(null),ut=Object(g.useRef)(null),yt=Object(g.useRef)(null),at=Object(g.useRef)(null),Me=Object(g.useRef)(null),Ve=Object(g.useRef)(null),Ie=Object(g.useRef)(null),$e=fe(S(Fr,Yt,mn,Rn)),qe=Object(l.a)(0,{value:wr}),pt=Object(A.a)(qe,2),it=pt[0],It=pt[1],zt=Object(g.useRef)(null),gn=g.useMemo(function(){return Array.isArray(pr)?pr:[pr||!1,pr||!1]},[pr]),dn=Object(l.a)(null,{value:bn,defaultValue:Un,postState:function(Sr){return Yt==="time"&&!Yr?Sr:Ua(Sr,yn)}}),pn=Object(A.a)(dn,2),hn=pn[0],zn=pn[1],Sn=Ja({values:hn,picker:Yt,defaultDates:Wn,generateConfig:yn}),jr=Object(A.a)(Sn,2),Pr=jr[0],Qr=jr[1],Wr=Object(l.a)(hn,{postState:function(Sr){var Zr=Sr;if(gn[0]&&gn[1])return Zr;for(var va=0;va<2;va+=1)gn[va]&&!Te(Zr,va)&&!Te(zr,va)&&(Zr=ce(Zr,yn.getNow(),va));return Zr}}),ta=Object(A.a)(Wr,2),Xn=ta[0],Tr=ta[1],Yn=Object(l.a)([Yt,Yt],{value:Jt}),Cn=Object(A.a)(Yn,2),Hn=Cn[0],Vr=Cn[1];Object(g.useEffect)(function(){Vr([Yt,Yt])},[Yt]);var ua=function(Sr,Zr){Vr(Sr),or&&or(Zr,Sr)},hr=ca({picker:Yt,selectedValue:Xn,locale:Fn,disabled:gn,disabledDate:Rr,generateConfig:yn},_a.current[1],_a.current[0]),aa=Object(A.a)(hr,2),Ca=aa[0],ha=aa[1],Sa=Object(l.a)(!1,{value:sr,defaultValue:tr,postState:function(Sr){return gn[it]?!1:Sr},onChange:function(Sr){jn&&jn(Sr),!Sr&&zt.current&&zt.current.onClose&&zt.current.onClose()}}),Or=Object(A.a)(Sa,2),br=Or[0],Mr=Or[1],ar=br&&it===0,pa=br&&it===1,xa=Object(g.useState)(0),ba=Object(A.a)(xa,2),Aa=ba[0],ga=ba[1];Object(g.useEffect)(function(){!br&&Qe.current&&ga(Qe.current.offsetWidth)},[br]);var Na=g.useRef();function ka(sa,Sr){if(sa)clearTimeout(Na.current),_a.current[Sr]=!0,It(Sr),Mr(sa),br||Qr(null,Sr);else if(it===Sr){Mr(sa);var Zr=_a.current;Na.current=setTimeout(function(){Zr===_a.current&&(_a.current={})})}}function Fa(sa){ka(!0,sa),setTimeout(function(){var Sr=[Ve,Ie][sa];Sr.current&&Sr.current.focus()},0)}function ni(sa,Sr){var Zr=sa,va=Te(Zr,0),Wa=Te(Zr,1);va&&Wa&&yn.isAfter(va,Wa)&&(Yt==="week"&&!lt(yn,Fn.locale,va,Wa)||Yt==="quarter"&&!_e(yn,va,Wa)||Yt!=="week"&&Yt!=="quarter"&&Yt!=="time"&&!Xe(yn,va,Wa)?(Sr===0?(Zr=[va,null],Wa=null):(va=null,Zr=[null,Wa]),_a.current=Object(y.a)({},Sr,!0)):(Yt!=="time"||Yr!==!1)&&(Zr=Ua(Zr,yn))),Tr(Zr);var Ei=Zr&&Zr[0]?yn.locale.format(Fn.locale,Zr[0],$e[0]):"",Pi=Zr&&Zr[1]?yn.locale.format(Fn.locale,Zr[1],$e[0]):"";if(fr){var $a={range:Sr===0?"start":"end"};fr(Zr,[Ei,Pi],$a)}var xi=li(va,0,gn,zr),Ki=li(Wa,1,gn,zr),go=Zr===null||xi&&Ki;go&&(zn(Zr),nr&&(!dt(yn,Te(hn,0),va)||!dt(yn,Te(hn,1),Wa))&&nr(Zr,[Ei,Pi]));var Qa=null;Sr===0&&!gn[1]?Qa=1:Sr===1&&!gn[0]&&(Qa=0),Qa!==null&&Qa!==it&&(!_a.current[Qa]||!Te(Zr,Qa))&&Te(Zr,Sr)?Fa(Qa):ka(!1,Sr)}var Fi=function(Sr){return br&&zt.current&&zt.current.onKeyDown?zt.current.onKeyDown(Sr):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ai={formatList:$e,generateConfig:yn,locale:Fn},La=ra(Te(Xn,0),Ai),bi=Object(A.a)(La,2),Si=bi[0],ja=bi[1],Ma=ra(Te(Xn,1),Ai),Za=Object(A.a)(Ma,2),to=Za[0],Mo=Za[1],Ii=function(Sr,Zr){var va=yn.locale.parse(Fn.locale,Sr,$e),Wa=Zr===0?Ca:ha;va&&!Wa(va)&&(Tr(ce(Xn,va,Zr)),Qr(va,Zr))},no=En({valueTexts:Si,onTextChange:function(Sr){return Ii(Sr,0)}}),ro=Object(A.a)(no,3),mi=ro[0],uo=ro[1],Io=ro[2],Lo=En({valueTexts:to,onTextChange:function(Sr){return Ii(Sr,1)}}),bo=Object(A.a)(Lo,3),Vi=bo[0],co=bo[1],Xi=bo[2],Yi=Object(g.useState)(null),No=Object(A.a)(Yi,2),yo=No[0],ao=No[1],Ji=Object(g.useState)(null),Qi=Object(A.a)(Ji,2),ei=Qi[0],Li=Qi[1],Di=oa(mi,{formatList:$e,generateConfig:yn,locale:Fn}),Zi=Object(A.a)(Di,3),Ri=Zi[0],Eo=Zi[1],xo=Zi[2],Co=oa(Vi,{formatList:$e,generateConfig:yn,locale:Fn}),io=Object(A.a)(Co,3),Ni=io[0],qi=io[1],ko=io[2],oo=function(Sr){Li(ce(Xn,Sr,it)),it===0?Eo(Sr):qi(Sr)},so=function(){Li(ce(Xn,null,it)),it===0?xo():ko()},So=function(Sr,Zr){return{blurToCancel:Oa,forwardKeyDown:Fi,onBlur:qr,isClickOutside:function(Wa){return!F([ut.current,yt.current,at.current],Wa)},onFocus:function(Wa){It(Sr),lr&&lr(Wa)},triggerOpen:function(Wa){ka(Wa,Sr)},onSubmit:function(){ni(Xn,Sr),Zr()},onCancel:function(){ka(!1,Sr),Tr(hn),Zr()}}},Uo=Zt(Object(C.a)(Object(C.a)({},So(0,Io)),{},{open:ar,value:mi})),jo=Object(A.a)(Uo,2),fi=jo[0],Ha=jo[1],ri=Ha.focused,Xa=Ha.typing,ai=Zt(Object(C.a)(Object(C.a)({},So(1,Xi)),{},{open:pa,value:Vi})),wo=Object(A.a)(ai,2),yi=wo[0],Bo=wo[1],To=Bo.focused,$i=Bo.typing,Wi=function(Sr){!br&&!Ve.current.contains(Sr.target)&&!Ie.current.contains(Sr.target)&&(gn[0]?gn[1]||Fa(1):Fa(0))},Oo=function(Sr){br&&(ri||To)&&!Ve.current.contains(Sr.target)&&!Ie.current.contains(Sr.target)&&Sr.preventDefault()},fo=hn&&hn[0]?yn.locale.format(Fn.locale,hn[0],"YYYYMMDDHHmmss"):"",Wo=hn&&hn[1]?yn.locale.format(Fn.locale,hn[1],"YYYYMMDDHHmmss"):"";Object(g.useEffect)(function(){br||(Tr(hn),!Si.length||Si[0]===""?uo(""):ja!==mi&&Io(),!to.length||to[0]===""?co(""):Mo!==Vi&&Xi())},[br,Si,to]),Object(g.useEffect)(function(){Tr(hn)},[fo,Wo]),Kt&&(Kt.current={focus:function(){Ve.current&&Ve.current.focus()},blur:function(){Ve.current&&Ve.current.blur(),Ie.current&&Ie.current.blur()}});var lo=Object.keys(vr||{}),Da=lo.map(function(sa){var Sr=vr[sa],Zr=typeof Sr=="function"?Sr():Sr;return{label:sa,onClick:function(){ni(Zr,null),ka(!1,it)},onMouseEnter:function(){ao(Zr)},onMouseLeave:function(){ao(null)}}});function ya(){var sa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zr=null;br&&ei&&ei[0]&&ei[1]&&yn.isAfter(ei[1],ei[0])&&(Zr=ei);var va=mn;if(mn&&Object(n.a)(mn)==="object"&&mn.defaultValue){var Wa=mn.defaultValue;va=Object(C.a)(Object(C.a)({},mn),{},{defaultValue:Te(Wa,it)||void 0})}var Ei=null;return $n&&(Ei=function($a,xi){return $n($a,xi,{range:it?"end":"start"})}),g.createElement(ht.Provider,{value:{inRange:!0,panelPosition:sa,rangedValue:yo||Xn,hoverRangedValue:Zr}},g.createElement(de,Object.assign({},xe,Sr,{dateRender:Ei,showTime:va,mode:Hn[it],generateConfig:yn,style:void 0,direction:_r,disabledDate:it===0?Ca:ha,disabledTime:function($a){return Ir?Ir($a,it===0?"start":"end"):!1},className:f()(Object(y.a)({},"".concat(Nt,"-panel-focused"),it===0?!Xa:!$i)),value:Te(Xn,it),locale:Fn,tabIndex:-1,onPanelChange:function($a,xi){ua(ce(Hn,xi,it),ce(Xn,$a,it));var Ki=$a;sa==="right"&&Hn[it]===xi&&(Ki=Ye(Ki,xi,yn,-1)),Qr(Ki,it)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ga=0,ui=0;it&&yt.current&&Me.current&&ut.current&&(Ga=yt.current.offsetWidth+Me.current.offsetWidth,ut.current.offsetWidth&&Ga>ut.current.offsetWidth&&(ui=Ga));var eo=_r==="rtl"?{right:Ga}:{left:Ga};function ki(){var sa,Sr=q(Nt,Hn[it],Qn),Zr=oe({prefixCls:Nt,components:da,needConfirmButton:Oa,okDisabled:!Te(Xn,it)||Rr&&Rr(Xn[it]),locale:Fn,rangeList:Da,onOk:function(){Te(Xn,it)&&(ni(Xn,it),ur&&ur(Xn))}});if(Yt!=="time"&&!mn){var va=Pr(it),Wa=Ye(va,Yt,yn),Ei=Hn[it],Pi=Ei===Yt,$a=ya(Pi?"left":!1,{pickerValue:va,onPickerValueChange:function(Qa){Qr(Qa,it)}}),xi=ya("right",{pickerValue:Wa,onPickerValueChange:function(Qa){Qr(Ye(Qa,Yt,yn,-1),it)}});_r==="rtl"?sa=g.createElement(g.Fragment,null,xi,Pi&&$a):sa=g.createElement(g.Fragment,null,$a,Pi&&xi)}else sa=ya();var Ki=g.createElement(g.Fragment,null,g.createElement("div",{className:"".concat(Nt,"-panels")},sa),(Sr||Zr)&&g.createElement("div",{className:"".concat(Nt,"-footer")},Sr,Zr));return Dr&&(Ki=Dr(Ki)),g.createElement("div",{className:"".concat(Nt,"-panel-container"),style:{marginLeft:ui},ref:ut,onMouseDown:function(Qa){Qa.preventDefault()}},Ki)}var ho=g.createElement("div",{className:f()("".concat(Nt,"-range-wrapper"),"".concat(Nt,"-").concat(Yt,"-range-wrapper")),style:{minWidth:Aa}},g.createElement("div",{className:"".concat(Nt,"-range-arrow"),style:eo}),ki()),wi;$r&&(wi=g.createElement("span",{className:"".concat(Nt,"-suffix")},$r));var qa;Lr&&(Te(hn,0)&&!gn[0]||Te(hn,1)&&!gn[1])&&(qa=g.createElement("span",{onMouseDown:function(Sr){Sr.preventDefault(),Sr.stopPropagation()},onMouseUp:function(Sr){Sr.preventDefault(),Sr.stopPropagation();var Zr=hn;gn[0]||(Zr=ce(Zr,null,0)),gn[1]||(Zr=ce(Zr,null,1)),ni(Zr,null),ka(!1,it)},className:"".concat(Nt,"-clear")},ir||g.createElement("span",{className:"".concat(Nt,"-clear-btn")})));var po={size:v(Yt,$e[0])},Hi=0,mo=0;yt.current&&at.current&&Me.current&&(it===0?mo=yt.current.offsetWidth:(Hi=Ga,mo=at.current.offsetWidth));var hi=_r==="rtl"?{right:Hi}:{left:Hi},Pa=function(Sr,Zr){var va=ce(Xn,Sr,it);Zr==="submit"||Zr!=="key"&&!Oa?(ni(va,it),it===0?xo():ko()):Tr(va)};return g.createElement(c.Provider,{value:{operationRef:zt,hideHeader:Yt==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Pa,open:br}},g.createElement(Jn,{visible:br,popupElement:ho,popupStyle:_n,prefixCls:Nt,dropdownClassName:Bn,dropdownAlign:an,getPopupContainer:Mn,transitionName:Dn,range:!0,direction:_r},g.createElement("div",Object.assign({ref:Qe,className:f()(Nt,"".concat(Nt,"-range"),xn,(st={},Object(y.a)(st,"".concat(Nt,"-disabled"),gn[0]&&gn[1]),Object(y.a)(st,"".concat(Nt,"-focused"),it===0?ri:To),Object(y.a)(st,"".concat(Nt,"-rtl"),_r==="rtl"),st)),style:nn,onClick:Wi,onMouseDown:Oo},Ce(xe)),g.createElement("div",{className:f()("".concat(Nt,"-input"),(Rt={},Object(y.a)(Rt,"".concat(Nt,"-input-active"),it===0),Object(y.a)(Rt,"".concat(Nt,"-input-placeholder"),!!Ri),Rt)),ref:yt},g.createElement("input",Object.assign({id:Vt,disabled:gn[0],readOnly:qt||!Xa,value:Ri||mi,onChange:function(Sr){uo(Sr.target.value)},autoFocus:qn,placeholder:Te(Pn,0)||"",ref:Ve},fi,po,{autoComplete:Jr}))),g.createElement("div",{className:"".concat(Nt,"-range-separator"),ref:Me},Tn),g.createElement("div",{className:f()("".concat(Nt,"-input"),(Ot={},Object(y.a)(Ot,"".concat(Nt,"-input-active"),it===1),Object(y.a)(Ot,"".concat(Nt,"-input-placeholder"),!!Ni),Ot)),ref:at},g.createElement("input",Object.assign({disabled:gn[1],readOnly:qt||!$i,value:Ni||Vi,onChange:function(Sr){co(Sr.target.value)},placeholder:Te(Pn,1)||"",ref:Ie},yi,po,{autoComplete:Jr}))),g.createElement("div",{className:"".concat(Nt,"-active-bar"),style:Object(C.a)(Object(C.a)({},hi),{},{width:mo,position:"absolute"})}),wi,qa)))}var fa=function(xe){Object(O.a)(Rt,xe);var st=Object(b.a)(Rt);function Rt(){var Ot;return Object(M.a)(this,Rt),Ot=st.apply(this,arguments),Ot.pickerRef=g.createRef(),Ot.focus=function(){Ot.pickerRef.current&&Ot.pickerRef.current.focus()},Ot.blur=function(){Ot.pickerRef.current&&Ot.pickerRef.current.blur()},Ot}return Object(m.a)(Rt,[{key:"render",value:function(){return g.createElement(oi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(g.Component),ma=fa,la=z.b=Ea},onxn:function(k,z){k.exports="data:image/png;base64,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"},osHv:function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";var m=M.Pos;function O(h,d){return h.line-d.line||h.ch-d.ch}var b="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",y=b+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",C=new RegExp("<(/?)(["+b+"]["+y+"]*)","g");function A(h,d,s,u){this.line=d,this.ch=s,this.cm=h,this.text=h.getLine(d),this.min=u?Math.max(u.from,h.firstLine()):h.firstLine(),this.max=u?Math.min(u.to-1,h.lastLine()):h.lastLine()}function g(h,d){var s=h.cm.getTokenTypeAt(m(h.line,d));return s&&/\btag\b/.test(s)}function e(h){return h.line>=h.max?void 0:(h.ch=0,h.text=h.cm.getLine(++h.line),!0)}function f(h){return h.line<=h.min?void 0:(h.text=h.cm.getLine(--h.line),h.ch=h.text.length,!0)}function a(h){for(;;){var d=h.text.indexOf(">",h.ch);if(d==-1){if(e(h))continue;return}if(!g(h,d+1)){h.ch=d+1;continue}var s=h.text.lastIndexOf("/",d),u=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,u?"selfClose":"regular"}}function l(h){for(;;){var d=h.ch?h.text.lastIndexOf("<",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!g(h,d+1)){h.ch=d;continue}C.lastIndex=d,h.ch=d;var s=C.exec(h.text);if(s&&s.index==d)return s}}function n(h){for(;;){C.lastIndex=h.ch;var d=C.exec(h.text);if(!d){if(e(h))continue;return}if(!g(h,d.index+1)){h.ch=d.index+1;continue}return h.ch=d.index+d[0].length,d}}function i(h){for(;;){var d=h.ch?h.text.lastIndexOf(">",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!g(h,d+1)){h.ch=d;continue}var s=h.text.lastIndexOf("/",d),u=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,u?"selfClose":"regular"}}function r(h,d){for(var s=[];;){var u=n(h),w,E=h.line,_=h.ch-(u?u[0].length:0);if(!u||!(w=a(h)))return;if(w=="selfClose")continue;if(u[1]){for(var P=s.length-1;P>=0;--P)if(s[P]==u[2]){s.length=P;break}if(P<0&&(!d||d==u[2]))return{tag:u[2],from:m(E,_),to:m(h.line,h.ch)}}else s.push(u[2])}}function c(h,d){for(var s=[];;){var u=i(h);if(!u)return;if(u=="selfClose"){l(h);continue}var w=h.line,E=h.ch,_=l(h);if(!_)return;if(_[1])s.push(_[2]);else{for(var P=s.length-1;P>=0;--P)if(s[P]==_[2]){s.length=P;break}if(P<0&&(!d||d==_[2]))return{tag:_[2],from:m(h.line,h.ch),to:m(w,E)}}}}M.registerHelper("fold","xml",function(h,d){for(var s=new A(h,d.line,0);;){var u=n(s);if(!u||s.line!=d.line)return;var w=a(s);if(!w)return;if(!u[1]&&w!="selfClose"){var E=m(s.line,s.ch),_=r(s,u[2]);return _&&O(_.from,E)>0?{from:E,to:_.from}:null}}}),M.findMatchingTag=function(h,d,s){var u=new A(h,d.line,d.ch,s);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var w=a(u),E=w&&m(u.line,u.ch),_=w&&l(u);if(!w||!_||O(u,d)>0)return;var P={from:m(u.line,u.ch),to:E,tag:_[2]};return w=="selfClose"?{open:P,close:null,at:"open"}:_[1]?{open:c(u,_[2]),close:P,at:"close"}:(u=new A(h,E.line,E.ch,s),{open:P,close:r(u,_[2]),at:"open"})},M.findEnclosingTag=function(h,d,s,u){for(var w=new A(h,d.line,d.ch,s);;){var E=c(w,u);if(!E)break;var _=new A(h,d.line,d.ch,s),P=r(_,E.tag);if(P)return{open:E,close:P}}},M.scanForClosingTag=function(h,d,s,u){var w=new A(h,d.line,d.ch,u?{from:0,to:u}:null);return r(w,s)}})},p5ED:function(k,z,o){"use strict";var M=o("+L6B"),m=o("2/Rp"),O=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),C=o("9og8"),A=o("tJVT"),g=o("WmNS"),e=o.n(g),f=o("q1tI"),a=o.n(f),l=o("vHTk"),n=o.n(l),i=o("yEEn"),r=o("ZW9T"),c=o("1vsH"),h=o("V0Rq"),d=o("m3rI");z.a=function(s){var u,w,E,_,P,R,x,S=s.editOffice,v=S===void 0?"view":S,T=s.data,U=s.theme,I=s.type,N=s.filename,V=s.monacoEditor,H=s.className,D=s.style,W=s.close,F=s.onClose,L=s.hasMask,K=s.disabledDownload,ee=Object(f.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),he=Object(A.a)(ee,2),fe=he[0],Ce=he[1],Te=Object(f.useState)(""),ce=Object(A.a)(Te,2),ye=ce[0],Ee=ce[1],ue=Object(f.useState)(),se=Object(A.a)(ue,2),$=se[0],me=se[1],re=window.ENV==="build"?"/react/build":"",ae=d.a.PROXY_SERVER||location.origin,we,le=1024*1024,te=10*le,Q=Object(f.useRef)();(u=T)!==null&&u!==void 0&&u.startsWith("/api")&&I!=="txt"&&(T=d.a.API_SERVER+T),I==="office"&&(we=Object(c.T)(T).filesize,we>te&&(I="other")),N&&V&&(V.filename=N),Object(f.useEffect)(function(){var Oe,Xe,tt=(Oe=document.cookie)===null||Oe===void 0||((Xe=Oe.replace(/\s/g,""))===null||Xe===void 0)?void 0:Xe.split(";");tt==null||tt.map(function(lt){var dt=lt.split("=");dt[0]==="_educoder_session"&&Ee(dt[1])})},[]),Object(f.useEffect)(function(){I==="office"&&J()},[I,T]);var J=function(){var Oe=Object(C.a)(e.a.mark(function Xe(){var tt,lt,dt;return e.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return console.log("data:",T),tt=T,T.startsWith("http")||(tt=location.origin+tt),lt=new URL(tt).pathname.split("/").pop(),_t.next=6,Object(h.V)({attachment_id:lt});case 6:dt=_t.sent,me(dt);case 8:case"end":return _t.stop()}},Xe)}));return function(){return Oe.apply(this,arguments)}}(),ve=function(){if(T.startsWith("http")||T.startsWith("blob:")){_e();return}Object(c.z)(N||"educoder",T,N)},_e=function(){Object(c.x)(N||"educoder",decodeURIComponent(T))};return a.a.createElement("div",{style:Object(y.a)({},D||{}),className:"".concat(L&&n.a.bgBlack," ").concat(I?n.a.wrp:"hide")},W&&a.a.createElement("div",{className:n.a.close,ref:Q},!K&&a.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Q.current}},a.a.createElement("span",{onClick:_e},a.a.createElement("i",{className:"icon-quxiaozhiding"}))),a.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Q.current}},a.a.createElement("span",{className:"",onClick:F},a.a.createElement("i",{className:"icon-guanbi1"})))),a.a.createElement("div",{className:"".concat(n.a[H]," ").concat(H," ").concat(n.a.monaco," ").concat(I==="txt"?"show":"hide")},I==="txt"&&a.a.createElement(r.b,V)),I==="audio"&&a.a.createElement("audio",{src:"".concat(((w=T)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((E=T)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(T),autoPlay:!0}),I==="video"&&a.a.createElement(a.a.Fragment,null,((_=T)===null||_===void 0?void 0:_.indexOf("http"))>-1?a.a.createElement("video",{controls:!0,src:"".concat(T),autoPlay:!0}):a.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(T),autoPlay:!0})),I==="office"&&$&&a.a.createElement("iframe",{src:"".concat(re,"/office.html?key=").concat($.key,"&url=").concat(ae+$.url,"&callbackUrl=").concat(ae+$.callbackUrl,"&fileType=").concat($.fileType,"&title=").concat($.title,"&model=").concat(v,"&officeServer=").concat(d.a.OFFICE_SERVER,"&disabledDownload=").concat(!!K)}),I==="html"&&a.a.createElement("iframe",{src:T+"&disposition=inline"}),I==="pdf"&&a.a.createElement("iframe",{src:"".concat(re,"/js/pdfview/index.html?url=").concat(T,"&disabledDownload=").concat(!!K)}),I==="image"&&a.a.createElement("img",{src:"".concat(((P=T)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((R=T)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(x=T)!==null&&x!==void 0&&x.startsWith("/api")?"":"data:image/png;base64,").concat(T)}),I==="other"&&a.a.createElement("div",null,a.a.createElement(m.a,{type:"primary",size:"large",onClick:ve},a.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),I==="download"&&a.a.createElement(m.a,{type:"primary",size:"large",onClick:ve},a.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(k,z,o){},pA7S:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.WordArray,y=O.BlockCipher,C=m.algo,A=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],g=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],a=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=C.DES=y.extend({_doReset:function(){for(var c=this._key,h=c.words,d=[],s=0;s<56;s++){var u=A[s]-1;d[s]=h[u>>>5]>>>31-u%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var _=w[E]=[],P=e[E],s=0;s<24;s++)_[s/6|0]|=d[(g[s]-1+P)%28]<<31-s%6,_[4+(s/6|0)]|=d[28+(g[s+24]-1+P)%28]<<31-s%6;_[0]=_[0]<<1|_[0]>>>31;for(var s=1;s<7;s++)_[s]=_[s]>>>(s-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var R=this._invSubKeys=[],s=0;s<16;s++)R[s]=w[15-s]},encryptBlock:function(c,h){this._doCryptBlock(c,h,this._subKeys)},decryptBlock:function(c,h){this._doCryptBlock(c,h,this._invSubKeys)},_doCryptBlock:function(c,h,d){this._lBlock=c[h],this._rBlock=c[h+1],n.call(this,4,252645135),n.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),n.call(this,1,1431655765);for(var s=0;s<16;s++){for(var u=d[s],w=this._lBlock,E=this._rBlock,_=0,P=0;P<8;P++)_|=f[P][((E^u[P])&a[P])>>>0];this._lBlock=E,this._rBlock=w^_}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,n.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),n.call(this,16,65535),n.call(this,4,252645135),c[h]=this._lBlock,c[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function n(c,h){var d=(this._lBlock>>>c^this._rBlock)&h;this._rBlock^=d,this._lBlock^=d<<c}function i(c,h){var d=(this._rBlock>>>c^this._lBlock)&h;this._lBlock^=d,this._rBlock^=d<<c}m.DES=y._createHelper(l);var r=C.TripleDES=y.extend({_doReset:function(){var c=this._key,h=c.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var d=h.slice(0,2),s=h.length<4?h.slice(0,2):h.slice(2,4),u=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=l.createEncryptor(b.create(d)),this._des2=l.createEncryptor(b.create(s)),this._des3=l.createEncryptor(b.create(u))},encryptBlock:function(c,h){this._des1.encryptBlock(c,h),this._des2.decryptBlock(c,h),this._des3.encryptBlock(c,h)},decryptBlock:function(c,h){this._des3.decryptBlock(c,h),this._des2.encryptBlock(c,h),this._des1.decryptBlock(c,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});m.TripleDES=y._createHelper(r)}(),M.TripleDES})},pUFm:function(k,z,o){k.exports=o.p+"static/no-data.c803c40c.png"},pmY6:function(k,z,o){"use strict";o.d(z,"h",function(){return f}),o.d(z,"g",function(){return l}),o.d(z,"f",function(){return n}),o.d(z,"e",function(){return i}),o.d(z,"i",function(){return r}),o.d(z,"b",function(){return c}),o.d(z,"a",function(){return h}),o.d(z,"d",function(){return d}),o.d(z,"c",function(){return s});var M=o("C/vA"),m=o("JYp7");const O=!1;let b=null;function y(u){b=u}if(O){const u="__is_disposable_tracked__";y(new class{trackDisposable(w){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[u]||console.log(E)},3e3)}setParent(w,E){if(w&&w!==h.None)try{w[u]=!0}catch(_){}}markAsDisposed(w){if(w&&w!==h.None)try{w[u]=!0}catch(E){}}markAsSingleton(w){}})}function C(u){return b==null||b.trackDisposable(u),u}function A(u){b==null||b.markAsDisposed(u)}function g(u,w){b==null||b.setParent(u,w)}function e(u,w){if(!b)return;for(const E of u)b.setParent(E,w)}function f(u){return b==null||b.markAsSingleton(u),u}class a extends Error{constructor(u){super(`Encountered errors while disposing of store. Errors: [${u.join(", ")}]`);this.errors=u}}function l(u){return typeof u.dispose=="function"&&u.dispose.length===0}function n(u){if(m.a.is(u)){let w=[];for(const E of u)if(E)try{E.dispose()}catch(_){w.push(_)}if(w.length===1)throw w[0];if(w.length>1)throw new a(w);return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}function i(...u){const w=r(()=>n(u));return e(u,w),w}function r(u){const w=C({dispose:Object(M.a)(()=>{A(w),u()})});return w}class c{constructor(){this._toDispose=new Set,this._isDisposed=!1,C(this)}dispose(){if(this._isDisposed)return;A(this),this._isDisposed=!0,this.clear()}clear(){try{n(this._toDispose.values())}finally{this._toDispose.clear()}}add(u){if(!u)return u;if(u===this)throw new Error("Cannot register a disposable on itself!");return g(u,this),this._isDisposed?c.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(u),u}}c.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new c,C(this),g(this._store,this)}dispose(){A(this),this._store.dispose()}_register(u){if(u===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(u)}}h.None=Object.freeze({dispose(){}});class d{constructor(){this._isDisposed=!1,C(this)}get value(){return this._isDisposed?void 0:this._value}set value(u){var w;if(this._isDisposed||u===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),u&&g(u,this),this._value=u}clear(){this.value=void 0}dispose(){var u;this._isDisposed=!0,A(this),(u=this._value)===null||u===void 0||u.dispose(),this._value=void 0}clearAndLeak(){const u=this._value;return this._value=void 0,u&&g(u,null),u}}class s{constructor(u){this.object=u}dispose(){}}},psGv:function(k,z,o){var M,m;(function(){var O;(function(){"use strict";var A=[,,function(a){function l(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}l.prototype.clone_empty=function(){var r=new l(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},l.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},l.prototype.has_match=function(r){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(r))return!0;return!1},l.prototype.set_indent=function(r,c){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.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)},l.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},l.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(r){this.__items.push(r);var c=r.lastIndexOf(`
`);c!==-1?this.__character_count=r.length-c:this.__character_count+=r.length},l.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function n(r,c){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),c=c||"",r.indent_level>0&&(c=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}n.prototype.get_indent_size=function(r,c){var h=this.__base_string_length;return c=c||0,r<0&&(h=0),h+=r*this.__indent_size,h+=c,h},n.prototype.get_indent_string=function(r,c){var h=this.__base_string;return c=c||0,r<0&&(r=0,h=""),c+=r*this.__indent_size,this.__ensure_cache(c),h+=this.__cache[c],h},n.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var r=this.__cache.length,c=0,h="";this.__indent_size&&r>=this.__indent_size&&(c=Math.floor(r/this.__indent_size),r-=c*this.__indent_size,h=new Array(c+1).join(this.__indent_string)),r&&(h+=new Array(r+1).join(" ")),this.__cache.push(h)};function i(r,c){this.__indent_cache=new n(r,c),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(r,c){return this.__indent_cache.get_indent_string(r,c)},i.prototype.get_indent_size=function(r,c){return this.__indent_cache.get_indent_size(r,c)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(r){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(`
`);return r!==`
`&&(h=h.replace(/[\n]/g,r)),h},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(r,c){return r=r||0,c=c||0,this.next_line.set_indent(r,c),this.__lines.length>1?(this.current_line.set_indent(r,c),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(r){for(var c=0;c<r.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(r){for(var c=this.__lines.length;r<c;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&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},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(r,c){for(var h=this.__lines.length-2;h>=0;){var d=this.__lines[h];if(d.is_empty())break;if(d.item(0).indexOf(r)!==0&&d.item(-1)!==c){this.__lines.splice(h+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},a.exports.Output=i},function(a){function l(n,i,r,c){this.type=n,this.text=i,this.comments_before=null,this.newlines=r||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}a.exports.Token=l},,,function(a){function l(r,c){this.raw_options=n(r,c),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}l.prototype._get_array=function(r,c){var h=this.raw_options[r],d=c||[];return typeof h=="object"?h!==null&&typeof h.concat=="function"&&(d=h.concat()):typeof h=="string"&&(d=h.split(/[^a-zA-Z0-9_\/\-]+/)),d},l.prototype._get_boolean=function(r,c){var h=this.raw_options[r],d=h===void 0?!!c:!!h;return d},l.prototype._get_characters=function(r,c){var h=this.raw_options[r],d=c||"";return typeof h=="string"&&(d=h.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),d},l.prototype._get_number=function(r,c){var h=this.raw_options[r];c=parseInt(c,10),isNaN(c)&&(c=0);var d=parseInt(h,10);return isNaN(d)&&(d=c),d},l.prototype._get_selection=function(r,c,h){var d=this._get_selection_list(r,c,h);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
`+c+`
You passed in: '`+this.raw_options[r]+"'");return d[0]},l.prototype._get_selection_list=function(r,c,h){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[c[0]],!this._is_valid_selection(h,c))throw new Error("Invalid Default Value!");var d=this._get_array(r,h);if(!this._is_valid_selection(d,c))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
`+c+`
You passed in: '`+this.raw_options[r]+"'");return d},l.prototype._is_valid_selection=function(r,c){return r.length&&c.length&&!r.some(function(h){return c.indexOf(h)===-1})};function n(r,c){var h={};r=i(r);var d;for(d in r)d!==c&&(h[d]=r[d]);if(c&&r[c])for(d in r[c])h[d]=r[c][d];return h}function i(r){var c={},h;for(h in r){var d=h.replace(/-/g,"_");c[d]=r[h]}return c}a.exports.Options=l,a.exports.normalizeOpts=i,a.exports.mergeOpts=n},,function(a){var l=RegExp.prototype.hasOwnProperty("sticky");function n(i){this.__input=i||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},n.prototype.peek=function(i){var r=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(r=this.__input.charAt(i)),r},n.prototype.__match=function(i,r){i.lastIndex=r;var c=i.exec(this.__input);return c&&!(l&&i.sticky)&&(c.index!==r&&(c=null)),c},n.prototype.test=function(i,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(i,r):!1},n.prototype.testChar=function(i,r){var c=this.peek(r);return i.lastIndex=0,c!==null&&i.test(c)},n.prototype.match=function(i){var r=this.__match(i,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(i,r,c){var h="",d;return i&&(d=this.match(i),d&&(h+=d[0])),r&&(d||!i)&&(h+=this.readUntil(r,c)),h},n.prototype.readUntil=function(i,r){var c="",h=this.__position;i.lastIndex=this.__position;var d=i.exec(this.__input);return d?(h=d.index,r&&(h+=d[0].length)):h=this.__input_length,c=this.__input.substring(this.__position,h),this.__position=h,c},n.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},n.prototype.get_regexp=function(i,r){var c=null,h="g";return r&&l&&(h="y"),typeof i=="string"&&i!==""?c=new RegExp(i,h):i&&(c=new RegExp(i.source,h)),c},n.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(i){var r=this.__position,c=this.readUntilAfter(i);return this.__position=r,c},n.prototype.lookBack=function(i){var r=this.__position-1;return r>=i.length&&this.__input.substring(r-i.length,r).toLowerCase()===i},a.exports.InputScanner=n},function(a,l,n){var i=n(8).InputScanner,r=n(3).Token,c=n(10).TokenStream,h=n(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(u,w){this._input=new i(u),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new h(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var u,w=new r(d.START,""),E=null,_=[],P=new c;w.type!==d.EOF;){for(u=this._get_next_token(w,E);this._is_comment(u);)P.add(u),u=this._get_next_token(w,E);P.isEmpty()||(u.comments_before=P,P=new c),u.parent=E,this._is_opening(u)?(_.push(E),E=u):E&&this._is_closing(u,E)&&(u.opened=E,E.closed=u,E=_.pop(),u.parent=E),u.previous=w,w.next=u,this.__tokens.add(u),w=u}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(u,w){this._readWhitespace();var E=this._input.read(/.+/g);return E?this._create_token(d.RAW,E):this._create_token(d.EOF,"")},s.prototype._is_comment=function(u){return!1},s.prototype._is_opening=function(u){return!1},s.prototype._is_closing=function(u,w){return!1},s.prototype._create_token=function(u,w){var E=new r(u,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return E},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},a.exports.Tokenizer=s,a.exports.TOKEN=d},function(a){function l(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}l.prototype.restart=function(){this.__position=0},l.prototype.isEmpty=function(){return this.__tokens_length===0},l.prototype.hasNext=function(){return this.__position<this.__tokens_length},l.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},l.prototype.peek=function(n){var i=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(i=this.__tokens[n]),i},l.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},a.exports.TokenStream=l},function(a,l,n){var i=n(12).Pattern;function r(c,h){i.call(this,c,h),h?this._line_regexp=this._input.get_regexp(h._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new i,r.prototype.__set_whitespace_patterns=function(c,h){c+="\\t ",h+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+h+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+h+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var c=this._input.read(this._match_pattern);if(c===" ")this.whitespace_before_token=" ";else if(c){var h=this.__split(this._newline_regexp,c);this.newline_count=h.length-1,this.whitespace_before_token=h[this.newline_count]}return c},r.prototype.matching=function(c,h){var d=this._create();return d.__set_whitespace_patterns(c,h),d._update(),d},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(c,h){c.lastIndex=0;for(var d=0,s=[],u=c.exec(h);u;)s.push(h.substring(d,u.index)),d=u.index+u[0].length,u=c.exec(h);return d<h.length?s.push(h.substring(d,h.length)):s.push(""),s},a.exports.WhitespacePattern=r},function(a){function l(n,i){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,i&&(this._starting_pattern=this._input.get_regexp(i._starting_pattern,!0),this._match_pattern=this._input.get_regexp(i._match_pattern,!0),this._until_pattern=this._input.get_regexp(i._until_pattern),this._until_after=i._until_after)}l.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},l.prototype.read_match=function(){return this._input.match(this._match_pattern)},l.prototype.until_after=function(n){var i=this._create();return i._until_after=!0,i._until_pattern=this._input.get_regexp(n),i._update(),i},l.prototype.until=function(n){var i=this._create();return i._until_after=!1,i._until_pattern=this._input.get_regexp(n),i._update(),i},l.prototype.starting_with=function(n){var i=this._create();return i._starting_pattern=this._input.get_regexp(n,!0),i._update(),i},l.prototype.matching=function(n){var i=this._create();return i._match_pattern=this._input.get_regexp(n,!0),i._update(),i},l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){},a.exports.Pattern=l},function(a){function l(n,i){n=typeof n=="string"?n:n.source,i=typeof i=="string"?i:i.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+i,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+i,"g")}l.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)i[r[1]]=r[2],r=this.__directive_pattern.exec(n);return i},l.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},a.exports.Directives=l},function(a,l,n){var i=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function c(h,d){i.call(this,h,d),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),d&&(this.__template_pattern=this._input.get_regexp(d.__template_pattern),this._excluded=Object.assign(this._excluded,d._excluded),this._disabled=Object.assign(this._disabled,d._disabled));var s=new i(h);this.__patterns={handlebars_comment:s.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:s.starting_with(/{{{/).until_after(/}}}/),handlebars:s.starting_with(/{{/).until_after(/}}/),php:s.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),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}/)}}c.prototype=new i,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(h){var d=this._create();return d._disabled[h]=!0,d._update(),d},c.prototype.read_options=function(h){var d=this._create();for(var s in r)d._disabled[s]=h.templating.indexOf(s)===-1;return d._update(),d},c.prototype.exclude=function(h){var d=this._create();return d._excluded[h]=!0,d._update(),d},c.prototype.read=function(){var h="";this._match_pattern?h=this._input.read(this._starting_pattern):h=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),h+=d,d=this._read_template();return this._until_after&&(h+=this._input.readUntilAfter(this._until_pattern)),h},c.prototype.__set_templated_pattern=function(){var h=[];this._disabled.php||h.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||h.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||h.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(h.push(this.__patterns.django._starting_pattern.source),h.push(this.__patterns.django_value._starting_pattern.source),h.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||h.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&h.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+h.join("|")+")")},c.prototype._read_template=function(){var h="",d=this._input.peek();if(d==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(h=h||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(h=h||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(h=h||this.__patterns.handlebars_comment.read(),h=h||this.__patterns.handlebars_unescaped.read(),h=h||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(h=h||this.__patterns.django_value.read()),this._excluded.django||(h=h||this.__patterns.django_comment.read(),h=h||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(h=h||this.__patterns.smarty_comment.read(),h=h||this.__patterns.smarty_literal.read(),h=h||this.__patterns.smarty.read()));return h},a.exports.TemplatablePattern=c},,,,function(a,l,n){var i=n(19).Beautifier,r=n(20).Options;function c(h,d,s,u){var w=new i(h,d,s,u);return w.beautify()}a.exports=c,a.exports.defaultOptions=function(){return new r}},function(a,l,n){var i=n(20).Options,r=n(2).Output,c=n(21).Tokenizer,h=n(21).TOKEN,d=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,u=function(U,I){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=U.max_preserve_newlines,this.preserve_newlines=U.preserve_newlines,this._output=new r(U,I)};u.prototype.current_line_has_match=function(U){return this._output.current_line.has_match(U)},u.prototype.set_space_before_token=function(U,I){this._output.space_before_token=U,this._output.non_breaking_space=I},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(U){this._output.add_raw_token(U)},u.prototype.print_preserved_newlines=function(U){var I=0;U.type!==h.TEXT&&U.previous.type!==h.TEXT&&(I=U.newlines?1:0),this.preserve_newlines&&(I=U.newlines<this.max_preserve_newlines+1?U.newlines:this.max_preserve_newlines+1);for(var N=0;N<I;N++)this.print_newline(N>0);return I!==0},u.prototype.traverse_whitespace=function(U){return U.whitespace_before||U.newlines?(this.print_preserved_newlines(U)||(this._output.space_before_token=!0),!0):!1},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(U){this._output.add_new_line(U)},u.prototype.print_token=function(U){U.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(U.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.get_full_indent=function(U){return U=this.indent_level+(U||0),U<1?"":this._output.get_indent_string(U)};var w=function(U){for(var I=null,N=U.next;N.type!==h.EOF&&U.closed!==N;){if(N.type===h.ATTRIBUTE&&N.text==="type"){N.next&&N.next.type===h.EQUALS&&N.next.next&&N.next.next.type===h.VALUE&&(I=N.next.next.text);break}N=N.next}return I},E=function(U,I){var N=null,V=null;return I.closed?(U==="script"?N="text/javascript":U==="style"&&(N="text/css"),N=w(I)||N,N.search("text/css")>-1?V="css":N.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?V="javascript":N.search(/(text|application|dojo)\/(x-)?(html)/)>-1?V="html":N.search(/test\/null/)>-1&&(V="null"),V):null};function _(U,I){return I.indexOf(U)!==-1}function P(U,I,N){this.parent=U||null,this.tag=I?I.tag_name:"",this.indent_level=N||0,this.parser_token=I||null}function R(U){this._printer=U,this._current_frame=null}R.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},R.prototype.record_tag=function(U){var I=new P(this._current_frame,U,this._printer.indent_level);this._current_frame=I},R.prototype._try_pop_frame=function(U){var I=null;return U&&(I=U.parser_token,this._printer.indent_level=U.indent_level,this._current_frame=U.parent),I},R.prototype._get_frame=function(U,I){for(var N=this._current_frame;N&&!(U.indexOf(N.tag)!==-1);){if(I&&I.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},R.prototype.try_pop=function(U,I){var N=this._get_frame([U],I);return this._try_pop_frame(N)},R.prototype.indent_to_tag=function(U){var I=this._get_frame(U);I&&(this._printer.indent_level=I.indent_level)};function x(U,I,N,V){this._source_text=U||"",I=I||{},this._js_beautify=N,this._css_beautify=V,this._tag_stack=null;var H=new i(I,"html");this._options=H,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}x.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var U=this._source_text,I=this._options.eol;this._options.eol==="auto"&&(I=`
`,U&&d.test(U)&&(I=U.match(d)[0])),U=U.replace(s,`
`);var N=U.match(/^[\t ]*/)[0],V={text:"",type:""},H=new S,D=new u(this._options,N),W=new c(U,this._options).tokenize();this._tag_stack=new R(D);for(var F=null,L=W.next();L.type!==h.EOF;)L.type===h.TAG_OPEN||L.type===h.COMMENT?(F=this._handle_tag_open(D,L,H,V),H=F):L.type===h.ATTRIBUTE||L.type===h.EQUALS||L.type===h.VALUE||L.type===h.TEXT&&!H.tag_complete?F=this._handle_inside_tag(D,L,H,W):L.type===h.TAG_CLOSE?F=this._handle_tag_close(D,L,H):L.type===h.TEXT?F=this._handle_text(D,L,H):D.add_raw_token(L),V=F,L=W.next();var K=D._output.get_code(I);return K},x.prototype._handle_tag_close=function(U,I,N){var V={text:I.text,type:I.type};return U.alignment_size=0,N.tag_complete=!0,U.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),N.is_unformatted?U.add_raw_token(I):(N.tag_start_char==="<"&&(U.set_space_before_token(I.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&U.print_newline(!1)),U.print_token(I)),N.indent_content&&!(N.is_unformatted||N.is_content_unformatted)&&(U.indent(),N.indent_content=!1),!N.is_inline_element&&!(N.is_unformatted||N.is_content_unformatted)&&U.set_wrap_point(),V},x.prototype._handle_inside_tag=function(U,I,N,V){var H=N.has_wrapped_attrs,D={text:I.text,type:I.type};if(U.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),N.is_unformatted)U.add_raw_token(I);else if(N.tag_start_char==="{"&&I.type===h.TEXT)U.print_preserved_newlines(I)?(I.newlines=0,U.add_raw_token(I)):U.print_token(I);else{if(I.type===h.ATTRIBUTE?(U.set_space_before_token(!0),N.attr_count+=1):(I.type===h.EQUALS||I.type===h.VALUE&&I.previous.type===h.EQUALS)&&U.set_space_before_token(!1),I.type===h.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(U.traverse_whitespace(I),H=H||I.newlines!==0),this._is_wrap_attributes_force)){var W=N.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&N.attr_count===1){var F=!0,L=0,K;do{if(K=V.peek(L),K.type===h.ATTRIBUTE){F=!1;break}L+=1}while(L<4&&K.type!==h.EOF&&K.type!==h.TAG_CLOSE);W=!F}W&&(U.print_newline(!1),H=!0)}U.print_token(I),H=H||U.previous_token_wrapped(),N.has_wrapped_attrs=H}return D},x.prototype._handle_text=function(U,I,N){var V={text:I.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(U,I,N):N.is_unformatted||N.is_content_unformatted?U.add_raw_token(I):(U.traverse_whitespace(I),U.print_token(I)),V},x.prototype._print_custom_beatifier_text=function(U,I,N){var V=this;if(I.text!==""){var H=I.text,D,W=1,F="",L="";N.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?D=this._js_beautify:N.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?D=this._css_beautify:N.custom_beautifier_name==="html"&&(D=function(Te,ce){var ye=new x(Te,ce,V._js_beautify,V._css_beautify);return ye.beautify()}),this._options.indent_scripts==="keep"?W=0:this._options.indent_scripts==="separate"&&(W=-U.indent_level);var K=U.get_full_indent(W);if(H=H.replace(/\n[ \t]*$/,""),N.custom_beautifier_name!=="html"&&H[0]==="<"&&H.match(/^(<!--|<!\[CDATA\[)/)){var ee=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(H);if(!ee){U.add_raw_token(I);return}F=K+ee[1]+`
`,H=ee[4],ee[5]&&(L=K+ee[5]),H=H.replace(/\n[ \t]*$/,""),(ee[2]||ee[3].indexOf(`
`)!==-1)&&(ee=ee[3].match(/[ \t]+$/),ee&&(I.whitespace_before=ee[0]))}if(H)if(D){var he=function(){this.eol=`
`};he.prototype=this._options.raw_options;var fe=new he;H=D(K+H,fe)}else{var Ce=I.whitespace_before;Ce&&(H=H.replace(new RegExp(`
(`+Ce+")?","g"),`
`)),H=K+H.replace(/\n/g,`
`+K)}F&&(H?H=F+H+`
`+L:H=F+L),U.print_newline(!1),H&&(I.text=H,I.whitespace_before="",I.newlines=0,U.add_raw_token(I),U.print_newline(!0))}},x.prototype._handle_tag_open=function(U,I,N,V){var H=this._get_tag_open_token(I);return(N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&I.type===h.TAG_OPEN&&I.text.indexOf("</")===0?(U.add_raw_token(I),H.start_tag_token=this._tag_stack.try_pop(H.tag_name)):(U.traverse_whitespace(I),this._set_tag_position(U,I,H,N,V),H.is_inline_element||U.set_wrap_point(),U.print_token(I)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(H.alignment_size=I.text.length+1),!H.tag_complete&&!H.is_unformatted&&(U.alignment_size=H.alignment_size),H};var S=function(U,I){if(this.parent=U||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!I)this.tag_complete=!0;else{var N;this.tag_start_char=I.text[0],this.text=I.text,this.tag_start_char==="<"?(N=I.text.match(/^<([^\s>]*)/),this.tag_check=N?N[1]:""):(N=I.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=N?N[1]:"",(I.text.startsWith("{{#>")||I.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&I.next!==null?this.tag_check=I.next.text.split(" ")[0]:this.tag_check=I.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),I.type===h.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||I.closed&&I.closed.text==="/>";var V=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(V=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(V)))}};x.prototype._get_tag_open_token=function(U){var I=new S(this._tag_stack.get_parser_token(),U);return I.alignment_size=this._options.wrap_attributes_indent_size,I.is_end_tag=I.is_end_tag||_(I.tag_check,this._options.void_elements),I.is_empty_element=I.tag_complete||I.is_start_tag&&I.is_end_tag,I.is_unformatted=!I.tag_complete&&_(I.tag_check,this._options.unformatted),I.is_content_unformatted=!I.is_empty_element&&_(I.tag_check,this._options.content_unformatted),I.is_inline_element=_(I.tag_name,this._options.inline)||I.tag_name.includes("-")||I.tag_start_char==="{",I},x.prototype._set_tag_position=function(U,I,N,V,H){if(N.is_empty_element||(N.is_end_tag?N.start_tag_token=this._tag_stack.try_pop(N.tag_name):(this._do_optional_end_element(N)&&(N.is_inline_element||U.print_newline(!1)),this._tag_stack.record_tag(N),(N.tag_name==="script"||N.tag_name==="style")&&!(N.is_unformatted||N.is_content_unformatted)&&(N.custom_beautifier_name=E(N.tag_check,I)))),_(N.tag_check,this._options.extra_liners)&&(U.print_newline(!1),U._output.just_added_blankline()||U.print_newline(!0)),N.is_empty_element){if(N.tag_start_char==="{"&&N.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),N.indent_content=!0;var D=U.current_line_has_match(/{{#if/);D||U.print_newline(!1)}N.tag_name==="!--"&&H.type===h.TAG_CLOSE&&V.is_end_tag&&N.text.indexOf(`
`)===-1||(N.is_inline_element||N.is_unformatted||U.print_newline(!1),this._calcluate_parent_multiline(U,N))}else if(N.is_end_tag){var W=!1;W=N.start_tag_token&&N.start_tag_token.multiline_content,W=W||!N.is_inline_element&&!(V.is_inline_element||V.is_unformatted)&&!(H.type===h.TAG_CLOSE&&N.start_tag_token===V)&&H.type!=="TK_CONTENT",(N.is_content_unformatted||N.is_unformatted)&&(W=!1),W&&U.print_newline(!1)}else N.indent_content=!N.custom_beautifier_name,N.tag_start_char==="<"&&(N.tag_name==="html"?N.indent_content=this._options.indent_inner_html:N.tag_name==="head"?N.indent_content=this._options.indent_head_inner_html:N.tag_name==="body"&&(N.indent_content=this._options.indent_body_inner_html)),!(N.is_inline_element||N.is_unformatted)&&(H.type!=="TK_CONTENT"||N.is_content_unformatted)&&U.print_newline(!1),this._calcluate_parent_multiline(U,N)},x.prototype._calcluate_parent_multiline=function(U,I){I.parent&&U._output.just_added_newline()&&!((I.is_inline_element||I.is_unformatted)&&I.parent.is_inline_element)&&(I.parent.multiline_content=!0)};var v=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],T=["a","audio","del","ins","map","noscript","video"];x.prototype._do_optional_end_element=function(U){var I=null;if(U.is_empty_element||!U.is_start_tag||!U.parent)return;if(U.tag_name==="body")I=I||this._tag_stack.try_pop("head");else if(U.tag_name==="li")I=I||this._tag_stack.try_pop("li",["ol","ul"]);else if(U.tag_name==="dd"||U.tag_name==="dt")I=I||this._tag_stack.try_pop("dt",["dl"]),I=I||this._tag_stack.try_pop("dd",["dl"]);else if(U.parent.tag_name==="p"&&v.indexOf(U.tag_name)!==-1){var N=U.parent.parent;(!N||T.indexOf(N.tag_name)===-1)&&(I=I||this._tag_stack.try_pop("p"))}else U.tag_name==="rp"||U.tag_name==="rt"?(I=I||this._tag_stack.try_pop("rt",["ruby","rtc"]),I=I||this._tag_stack.try_pop("rp",["ruby","rtc"])):U.tag_name==="optgroup"?I=I||this._tag_stack.try_pop("optgroup",["select"]):U.tag_name==="option"?I=I||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):U.tag_name==="colgroup"?I=I||this._tag_stack.try_pop("caption",["table"]):U.tag_name==="thead"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"])):U.tag_name==="tbody"||U.tag_name==="tfoot"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"]),I=I||this._tag_stack.try_pop("thead",["table"]),I=I||this._tag_stack.try_pop("tbody",["table"])):U.tag_name==="tr"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"]),I=I||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(U.tag_name==="th"||U.tag_name==="td")&&(I=I||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),I=I||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return U.parent=this._tag_stack.get_parser_token(),I},a.exports.Beautifier=x},function(a,l,n){var i=n(6).Options;function r(c){i.call(this,c,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,a.exports.Options=r},function(a,l,n){var i=n(9).Tokenizer,r=n(9).TOKEN,c=n(13).Directives,h=n(14).TemplatablePattern,d=n(12).Pattern,s={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},u=new c(/<\!--/,/-->/),w=function(E,_){i.call(this,E,_),this._current_tag_name="";var P=new h(this._input).read_options(this._options),R=new d(this._input);if(this.__patterns={word:P.until(/[\n\r\t <]/),single_quote:P.until_after(/'/),double_quote:P.until_after(/"/),attribute:P.until(/[\n\r\t =>]|\/>/),element_name:P.until(/[\n\r\t >\/]/),handlebars_comment:R.starting_with(/{{!--/).until_after(/--}}/),handlebars:R.starting_with(/{{/).until_after(/}}/),handlebars_open:R.until(/[\n\r\t }]/),handlebars_raw_close:R.until(/}}/),comment:R.starting_with(/<!--/).until_after(/-->/),cdata:R.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:R.starting_with(/<!\[/).until_after(/]>/),processing:R.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var x=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=R.matching(x).until_after(x)}};w.prototype=new i,w.prototype._is_comment=function(E){return!1},w.prototype._is_opening=function(E){return E.type===s.TAG_OPEN},w.prototype._is_closing=function(E,_){return E.type===s.TAG_CLOSE&&_&&((E.text===">"||E.text==="/>")&&_.text[0]==="<"||E.text==="}}"&&_.text[0]==="{"&&_.text[1]==="{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(E,_){var P=null;this._readWhitespace();var R=this._input.peek();return R===null?this._create_token(s.EOF,""):(P=P||this._read_open_handlebars(R,_),P=P||this._read_attribute(R,E,_),P=P||this._read_close(R,_),P=P||this._read_raw_content(R,E,_),P=P||this._read_content_word(R),P=P||this._read_comment_or_cdata(R),P=P||this._read_processing(R),P=P||this._read_open(R,_),P=P||this._create_token(s.UNKNOWN,this._input.next()),P)},w.prototype._read_comment_or_cdata=function(E){var _=null,P=null,R=null;if(E==="<"){var x=this._input.peek(1);x==="!"&&(P=this.__patterns.comment.read(),P?(R=u.get_directives(P),R&&R.ignore==="start"&&(P+=u.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(_=this._create_token(s.COMMENT,P),_.directives=R)}return _},w.prototype._read_processing=function(E){var _=null,P=null,R=null;if(E==="<"){var x=this._input.peek(1);(x==="!"||x==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(_=this._create_token(s.COMMENT,P),_.directives=R)}return _},w.prototype._read_open=function(E,_){var P=null,R=null;return _||E==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),R=this._create_token(s.TAG_OPEN,P)),R},w.prototype._read_open_handlebars=function(E,_){var P=null,R=null;return _||this._options.indent_handlebars&&E==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),R=this._create_token(s.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),R=this._create_token(s.TAG_OPEN,P))),R},w.prototype._read_close=function(E,_){var P=null,R=null;return _&&(_.text[0]==="<"&&(E===">"||E==="/"&&this._input.peek(1)===">")?(P=this._input.next(),E==="/"&&(P+=this._input.next()),R=this._create_token(s.TAG_CLOSE,P)):_.text[0]==="{"&&E==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),R=this._create_token(s.TAG_CLOSE,"}}"))),R},w.prototype._read_attribute=function(E,_,P){var R=null,x="";if(P&&P.text[0]==="<")if(E==="=")R=this._create_token(s.EQUALS,this._input.next());else if(E==='"'||E==="'"){var S=this._input.next();E==='"'?S+=this.__patterns.double_quote.read():S+=this.__patterns.single_quote.read(),R=this._create_token(s.VALUE,S)}else x=this.__patterns.attribute.read(),x&&(_.type===s.EQUALS?R=this._create_token(s.VALUE,x):R=this._create_token(s.ATTRIBUTE,x));return R},w.prototype._is_content_unformatted=function(E){return this._options.void_elements.indexOf(E)===-1&&(this._options.content_unformatted.indexOf(E)!==-1||this._options.unformatted.indexOf(E)!==-1)},w.prototype._read_raw_content=function(E,_,P){var R="";if(P&&P.text[0]==="{")R=this.__patterns.handlebars_raw_close.read();else if(_.type===s.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var x=_.opened.text.substr(1).toLowerCase();if(x==="script"||x==="style"){var S=this._read_comment_or_cdata(E);if(S)return S.type=s.TEXT,S;R=this._input.readUntil(new RegExp("</"+x+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(x)&&(R=this._input.readUntil(new RegExp("</"+x+"[\\n\\r\\t ]*?>","ig")))}return R?this._create_token(s.TEXT,R):null},w.prototype._read_content_word=function(E){var _="";if(this._options.unformatted_content_delimiter&&(E===this._options.unformatted_content_delimiter[0]&&(_=this.__patterns.unformatted_content_delimiter.read())),_||(_=this.__patterns.word.read()),_)return this._create_token(s.TEXT,_)},a.exports.Tokenizer=w,a.exports.TOKEN=s}],g={};function e(a){var l=g[a];if(l!==void 0)return l.exports;var n=g[a]={exports:{}};return A[a](n,n.exports,e),n.exports}var f=e(18);O=f})();var b=O;if(!0)!(M=[o,o("6UM0"),o("TXwP")],m=function(A){var g=o("6UM0"),e=o("TXwP");return{html_beautify:function(f,a){return b(f,a,g.js_beautify,e.css_beautify)}}}.apply(z,M),m!==void 0&&(k.exports=m));else var y,C})()},qB8g:function(k,z,o){k.exports={flexRow:"flexRow___Aj71W",flexColumn:"flexColumn___2jvSr",formWrap:"formWrap___3OxLN",upload:"upload___2lUf4",color0152d9:"color0152d9___10ICR",colorCCC:"colorCCC___2mbRd",footerWrap:"footerWrap___1Ytvb",qrCode:"qrCode___2RFKG",a1:"a1___HdrHw",code:"code___17cwA",group:"group___DUj4t",groupNumber:"groupNumber___3_2zt",a2:"a2___2_e5C"}},qBft:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.AnsiX923={pad:function(m,O){var b=m.sigBytes,y=O*4,C=y-b%y,A=b+C-1;m.clamp(),m.words[A>>>2]|=C<<24-A%4*8,m.sigBytes+=C},unpad:function(m){var O=m.words[m.sigBytes-1>>>2]&255;m.sigBytes-=O}},M.pad.Ansix923})},qM6L:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.WordArray,y=m.enc,C=y.Utf16=y.Utf16BE={stringify:function(g){for(var e=g.words,f=g.sigBytes,a=[],l=0;l<f;l+=2){var n=e[l>>>2]>>>16-l%4*8&65535;a.push(String.fromCharCode(n))}return a.join("")},parse:function(g){for(var e=g.length,f=[],a=0;a<e;a++)f[a>>>1]|=g.charCodeAt(a)<<16-a%2*16;return b.create(f,e*2)}};y.Utf16LE={stringify:function(g){for(var e=g.words,f=g.sigBytes,a=[],l=0;l<f;l+=2){var n=A(e[l>>>2]>>>16-l%4*8&65535);a.push(String.fromCharCode(n))}return a.join("")},parse:function(g){for(var e=g.length,f=[],a=0;a<e;a++)f[a>>>1]|=A(g.charCodeAt(a)<<16-a%2*16);return b.create(f,e*2)}};function A(g){return g<<8&4278255360|g>>>8&16711935}}(),M.enc.Utf16})},qgvg:function(k,z){k.exports="data:image/gif;base64,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"},qu8F:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return M.mode.CTRGladman=function(){var m=M.lib.BlockCipherMode.extend();function O(C){if((C>>24&255)===255){var A=C>>16&255,g=C>>8&255,e=C&255;A===255?(A=0,g===255?(g=0,e===255?e=0:++e):++g):++A,C=0,C+=A<<16,C+=g<<8,C+=e}else C+=1<<24;return C}function b(C){return(C[0]=O(C[0]))===0&&(C[1]=O(C[1])),C}var y=m.Encryptor=m.extend({processBlock:function(C,A){var g=this._cipher,e=g.blockSize,f=this._iv,a=this._counter;f&&(a=this._counter=f.slice(0),this._iv=void 0),b(a);var l=a.slice(0);g.encryptBlock(l,0);for(var n=0;n<e;n++)C[A+n]^=l[n]}});return m.Decryptor=y,m}(),M.mode.CTRGladman})},"rAM+":function(k,z,o){"use strict";o.d(z,"a",function(){return m});var M=o("Qw5x");function m(O,b){var y;if(typeof Symbol=="undefined"||O[Symbol.iterator]==null){if(Array.isArray(O)||(y=Object(M.a)(O))||b&&O&&typeof O.length=="number"){y&&(O=y);var C=0,A=function(){};return{s:A,n:function(){return C>=O.length?{done:!0}:{done:!1,value:O[C++]}},e:function(l){throw l},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,e=!1,f;return{s:function(){y=O[Symbol.iterator]()},n:function(){var l=y.next();return g=l.done,l},e:function(l){e=!0,f=l},f:function(){try{!g&&y.return!=null&&y.return()}finally{if(e)throw f}}}}},rHrb:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.CopyToClipboard=void 0;var M=O(o("q1tI")),m=O(o("+QRC"));function O(s){return s&&s.__esModule?s:{default:s}}function b(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(w){return typeof w}:b=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},b(s)}function y(s,u){var w=Object.keys(s);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(s);u&&(E=E.filter(function(_){return Object.getOwnPropertyDescriptor(s,_).enumerable})),w.push.apply(w,E)}return w}function C(s){for(var u=1;u<arguments.length;u++){var w=arguments[u]!=null?arguments[u]:{};u%2?y(w,!0).forEach(function(E){h(s,E,w[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(w)):y(w).forEach(function(E){Object.defineProperty(s,E,Object.getOwnPropertyDescriptor(w,E))})}return s}function A(s,u){if(s==null)return{};var w=g(s,u),E,_;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(s);for(_=0;_<P.length;_++){if(E=P[_],u.indexOf(E)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(s,E))continue;w[E]=s[E]}}return w}function g(s,u){if(s==null)return{};var w={},E=Object.keys(s),_,P;for(P=0;P<E.length;P++){if(_=E[P],u.indexOf(_)>=0)continue;w[_]=s[_]}return w}function e(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function f(s,u){for(var w=0;w<u.length;w++){var E=u[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}function a(s,u,w){return u&&f(s.prototype,u),w&&f(s,w),s}function l(s,u){return u&&(b(u)==="object"||typeof u=="function")?u:i(s)}function n(s){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},n(s)}function i(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function r(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(u&&u.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),u&&c(s,u)}function c(s,u){return c=Object.setPrototypeOf||function(E,_){return E.__proto__=_,E},c(s,u)}function h(s,u,w){return u in s?Object.defineProperty(s,u,{value:w,enumerable:!0,configurable:!0,writable:!0}):s[u]=w,s}var d=function(s){r(u,s);function u(){var w,E;e(this,u);for(var _=arguments.length,P=new Array(_),R=0;R<_;R++)P[R]=arguments[R];return E=l(this,(w=n(u)).call.apply(w,[this].concat(P))),h(i(E),"onClick",function(x){var S=E.props,v=S.text,T=S.onCopy,U=S.children,I=S.options,N=M.default.Children.only(U),V=(0,m.default)(v,I);T&&T(v,V),N&&N.props&&typeof N.props.onClick=="function"&&N.props.onClick(x)}),E}return a(u,[{key:"render",value:function(){var E=this.props,_=E.text,P=E.onCopy,R=E.options,x=E.children,S=A(E,["text","onCopy","options","children"]),v=M.default.Children.only(x);return M.default.cloneElement(v,C({},S,{onClick:this.onClick}))}}]),u}(M.default.PureComponent);z.CopyToClipboard=d,h(d,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(k,z){const o=/[&<>"']/,M=/[&<>"']/g,m=/[<>"']|&(?!#?\w+;)/,O=/[<>"']|&(?!#?\w+;)/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},y=R=>b[R];function C(R,x){if(x){if(o.test(R))return R.replace(M,y)}else if(m.test(R))return R.replace(O,y);return R}const A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(R){return R.replace(A,(x,S)=>(S=S.toLowerCase(),S==="colon"?":":S.charAt(0)==="#"?S.charAt(1)==="x"?String.fromCharCode(parseInt(S.substring(2),16)):String.fromCharCode(+S.substring(1)):""))}const e=/(^|[^\[])\^/g;function f(R,x){R=R.source||R,x=x||"";const S={replace:(v,T)=>(T=T.source||T,T=T.replace(e,"$1"),R=R.replace(v,T),S),getRegex:()=>new RegExp(R,x)};return S}const a=/[^\w:]/g,l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function n(R,x,S){if(R){let v;try{v=decodeURIComponent(g(S)).replace(a,"").toLowerCase()}catch(T){return null}if(v.indexOf("javascript:")===0||v.indexOf("vbscript:")===0||v.indexOf("data:")===0)return null}x&&!l.test(S)&&(S=d(x,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(v){return null}return S}const i={},r=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(R,x){i[" "+R]||(r.test(R)?i[" "+R]=R+"/":i[" "+R]=E(R,"/",!0)),R=i[" "+R];const S=R.indexOf(":")===-1;return x.substring(0,2)==="//"?S?x:R.replace(c,"$1")+x:x.charAt(0)==="/"?S?x:R.replace(h,"$1")+x:R+x}const s={exec:function(){}};function u(R){let x=1,S,v;for(;x<arguments.length;x++){S=arguments[x];for(v in S)Object.prototype.hasOwnProperty.call(S,v)&&(R[v]=S[v])}return R}function w(R,x){const S=R.replace(/\|/g,(U,I,N)=>{let V=!1,H=I;for(;--H>=0&&N[H]==="\\";)V=!V;return V?"|":" |"}),v=S.split(/ \|/);let T=0;if(v.length>x)v.splice(x);else for(;v.length<x;)v.push("");for(;T<v.length;T++)v[T]=v[T].trim().replace(/\\\|/g,"|");return v}function E(R,x,S){const v=R.length;if(v===0)return"";let T=0;for(;T<v;){const U=R.charAt(v-T-1);if(U===x&&!S)T++;else if(U!==x&&S)T++;else break}return R.substr(0,v-T)}function _(R,x){if(R.indexOf(x[1])===-1)return-1;const S=R.length;let v=0,T=0;for(;T<S;T++)if(R[T]==="\\")T++;else if(R[T]===x[0])v++;else if(R[T]===x[1]&&(v--,v<0))return T;return-1}function P(R){R&&R.sanitize&&!R.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}k.exports={escape:C,unescape:g,edit:f,cleanUrl:n,resolveUrl:d,noopTest:s,merge:u,splitCells:w,rtrim:E,findClosingBracket:_,checkSanitizeDeprecation:P}},ruvs:function(k,z,o){"use strict";o.d(z,"b",function(){return ht});var M=o("2qtc"),m=o("kLXV"),O=o("9og8"),b=o("rAM+"),y=o("tJVT"),C=o("PpiC"),A=o("k1fw"),g=o("5NDa"),e=o("5rEg"),f=o("B9cy"),a=o("Ol7k"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),r=o.n(i),c=o("Ty5D"),h=o("55Ip"),d=o("9kvl"),s=o("xrsn"),u=o.n(s),w=o("1Sn+"),E=o("qVdP"),_=o("jsC+"),P=o("14J3"),R=o("BMrR"),x=o("jCWc"),S=o("kPKH"),v=o("lUTK"),T=o("BvKs"),U=o("miYZ"),I=o("tsqr"),N=o("7Kak"),V=o("9yH6"),H=o("6CvP"),D=o("1vsH"),W;(function(Ze){Ze.Manager="manager",Ze.Developer="developer",Ze.Reporter="reporter"})(W||(W={}));var F=function(We){var Je=We.visible,Ae=We.onCancel,Ue=Ae===void 0?function(){}:Ae,He=Object(i.useState)(),Fe=Object(y.a)(He,2),et=Fe[0],mt=Fe[1],Lt=Object(i.useState)(),Xt=Object(y.a)(Lt,2),rn=Xt[0],wt=Xt[1],bt=Object(i.useState)(!1),ke=Object(y.a)(bt,2),nt=ke[0],rt=ke[1],De=function(){var Ct=Object(O.a)(n.a.mark(function ft(){var xt,Mt;return n.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(et){Ut.next=3;break}return I.b.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Ut.abrupt("return");case 3:if(!(et.length!==6)){Ut.next=6;break}return I.b.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Ut.abrupt("return");case 6:if(rn){Ut.next=9;break}return I.b.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01"),Ut.abrupt("return");case 9:return rt(!0),Ut.next=12,Object(H.e)({code:et,role:rn});case 12:if(xt=Ut.sent,rt(!1),Ke(),Mt={1:"\u60A8\u8F93\u5165\u7684\u9080\u8BF7\u7801\u9519\u8BEF",2:"\u60A8\u5DF2\u7ECF\u662F\u8BE5\u9879\u76EE\u6210\u5458",3:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u89D2\u8272",4:"\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279",5:"\u60A8\u5DF2\u7ECF\u7533\u8BF7\u52A0\u5165\u8BE5\u9879\u76EE\u4E86\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85",6:"\u60A8\u5DF2\u6210\u529F\u52A0\u5165\u9879\u76EE"},!Mt[xt.status]){Ut.next=19;break}return I.b.info(Mt[xt.status]),Ut.abrupt("return");case 19:if(!(xt.status===0)){Ut.next=22;break}return rn==="reporter"?(I.b.success("\u60A8\u52A0\u5165\u9879\u76EE\u6210\u529F\uFF01"),Object(D.cb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u6210\u529F"]),d.d.push("/projects/".concat(xt==null?void 0:xt.project_id))):(Object(D.cb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u7B49\u5F85\u5BA1\u6279"]),I.b.success("\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279\uFF01")),Ut.abrupt("return");case 22:case"end":return Ut.stop()}},ft)}));return function(){return Ct.apply(this,arguments)}}(),Ke=function(){var Ct=Object(O.a)(n.a.mark(function ft(){return n.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:Ue();case 1:case"end":return Mt.stop()}},ft)}));return function(){return Ct.apply(this,arguments)}}();return r.a.createElement(r.a.Fragment,null,r.a.createElement(m.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u9879\u76EE",visible:Je,confirmLoading:nt,onOk:De,onCancel:Ke},r.a.createElement("div",{className:"tc"},r.a.createElement("div",null,r.a.createElement("span",null,"\u9879\u76EE\u9080\u8BF7\u7801\uFF1A"),r.a.createElement(e.a,{placeholder:"\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",style:{width:270},value:et,onChange:function(ft){if(ft.target.value.length>=7){I.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}mt(ft.target.value)}})),r.a.createElement("div",{className:"mt10 font14"},r.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),r.a.createElement(V.a.Group,{value:rn,onChange:function(ft){return wt(ft.target.value)}},r.a.createElement(V.a,{value:W.Manager},"\u7BA1\u7406\u4EBA\u5458"),r.a.createElement(V.a,{value:W.Developer},"\u5F00\u53D1\u4EBA\u5458"),r.a.createElement(V.a,{value:W.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},L=F,K=o("Jky8"),ee=o("6Fuo"),he=o.n(ee),fe=o("NLgs"),Ce=o("xKgJ"),Te;(function(Ze){Ze.Projects="projects",Ze.Shixuns="shixuns",Ze.Classrooms="classrooms"})(Te||(Te={}));var ce;(function(Ze){Ze.Classrooms="classrooms",Ze.Shixuns="shixuns",Ze.Paths="paths",Ze.Projects="projects",Ze.Videos="videos",Ze.Topics="topics"})(ce||(ce={}));var ye=function(We){var Je,Ae,Ue,He,Fe,et,mt,Lt=We.homePage,Xt=We.user,rn=We.globalSetting,wt=We.loading,bt=We.dispatch,ke=We.location,nt=Object(C.a)(We,["homePage","user","globalSetting","loading","dispatch","location"]),rt=Object(i.useState)(),De=Object(y.a)(rt,2),Ke=De[0],Ct=De[1],ft=Object(i.useState)(),xt=Object(y.a)(ft,2),Mt=xt[0],ct=xt[1],Ut=function(Gn){var Nn;if(!Object(fe.e)(bt))return;if(Gn===Te.Projects&&!((Nn=Xt.userInfo)!==null&&Nn!==void 0&&Nn.email)){I.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Gn===Te.Classrooms?Ct(!0):Gn===Te.Projects&&ct(!0)},Ft=function(Gn,Nn){var Vn;if(!Object(fe.e)(bt))return;if(Nn===Te.Projects&&!((Vn=Xt.userInfo)!==null&&Vn!==void 0&&Vn.email)){I.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(Nn===Te.Shixuns&&!Object(fe.c)())return;Gn&&(window.location.href=Gn)},on=(Je=(((Ae=rn.setting)===null||Ae===void 0?void 0:Ae.navbar)||[]).find(function(sn){return sn.link==="/".concat(ce.Classrooms)}))===null||Je===void 0?void 0:Je.hidden,cn=(Ue=(((He=rn.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(sn){return sn.link==="/".concat(ce.Shixuns)}))===null||Ue===void 0?void 0:Ue.hidden,ln=(Fe=(((et=rn.setting)===null||et===void 0?void 0:et.navbar)||[]).find(function(sn){return sn.link==="/".concat(ce.Paths)}))===null||Fe===void 0?void 0:Fe.hidden;if(rn!=null&&(mt=rn.setting)!==null&&mt!==void 0&&mt.is_local){var kn;Xt!=null&&(kn=Xt.userInfo)!==null&&kn!==void 0&&kn.is_shixun_marker||(cn=!0)}var In=function(Gn){var Nn,Vn,Zn,xr,dr,un,$t,An;return r.a.createElement(r.a.Fragment,null,r.a.createElement(R.a,{justify:"space-around",className:"pt5 pb5"},r.a.createElement(S.a,{className:he.a.joinCol},((Nn=Xt.userInfo)===null||Nn===void 0?void 0:Nn.user_identity)!=="\u5B66\u751F"&&!on&&r.a.createElement(T.a.Item,Gn,r.a.createElement("a",{onClick:function(){return Ft("/classrooms/new")}},(Vn=Xt.userInfo)!==null&&Vn!==void 0&&Vn.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(rn!=null&&rn.setting.hide_shixun&&Object(Ce.m)())&&r.a.createElement(T.a.Item,Gn,r.a.createElement("a",{onClick:function(){return Ft("/shixuns/new",Te.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),!(rn!=null&&(Zn=rn.setting)!==null&&Zn!==void 0&&Zn.hide_subject&&Object(Ce.m)())&&r.a.createElement(T.a.Item,Gn,r.a.createElement("a",{onClick:function(){return Ft("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(rn!=null&&(xr=rn.setting)!==null&&xr!==void 0&&xr.is_local)&&((dr=Xt.userInfo)===null||dr===void 0?void 0:dr.main_site)&&r.a.createElement(T.a.Item,Gn,r.a.createElement("a",{onClick:function(){var Ar,Cr;return Ft("".concat((Ar=Xt.navigationInfo)===null||Ar===void 0||((Cr=Ar.top)===null||Cr===void 0)?void 0:Cr.old_url,"/projects/deposit/new"),Te.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),r.a.createElement(S.a,null,r.a.createElement("div",{className:he.a.joinBoard})),r.a.createElement(S.a,{className:he.a.joinCol},!on&&r.a.createElement(T.a.Item,Gn,r.a.createElement("a",{onClick:function(){return Ut(Te.Classrooms)}},(un=Xt.userInfo)!==null&&un!==void 0&&un.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),(($t=Xt.userInfo)===null||$t===void 0?void 0:$t.main_site)&&!(rn!=null&&(An=rn.setting)!==null&&An!==void 0&&An.is_local)&&r.a.createElement(T.a.Item,Gn,r.a.createElement("a",{onClick:function(){return Ut(Te.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return r.a.createElement("section",null,r.a.createElement(_.a,{overlay:r.a.createElement(T.a,{className:"".concat(he.a.rightMenu," ").concat(he.a.joinMenu," mt10")},r.a.createElement(In,null)),placement:"bottomRight"},r.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),r.a.createElement(K.a,{visible:Ke,onCancel:function(){return Ct(!1)}}),r.a.createElement(L,{visible:Mt,onCancel:function(){return ct(!1)}}))},Ee=Object(d.a)(function(Ze){var We=Ze.homePage,Je=Ze.loading,Ae=Ze.user,Ue=Ze.globalSetting;return{homePage:We,user:Ae,globalSetting:Ue,loading:Je.models.index}})(ye),ue=o("vToQ"),se=o.n(ue),$=o("jb+D"),me=o("m3rI"),re=function(We){var Je,Ae=RegExp("(^| )"+We+"=([^;]+)(;|$)");return(Je=document.cookie.match(Ae))?decodeURIComponent(Je[2]):null},ae=function(We){var Je=new Date;Je.setTime(Je.getTime()-1);var Ae=re(We);Ae!=null&&(document.cookie=We+"="+Ae+";expires="+Je.toGMTString())},we;(function(Ze){Ze.Classrooms="classrooms",Ze.Shixuns="shixuns",Ze.Paths="paths",Ze.Projects="projects",Ze.Videos="videos",Ze.Topics="topics"})(we||(we={}));var le=function(We){var Je,Ae,Ue,He,Fe,et,mt,Lt,Xt,rn,wt,bt=We.homePage,ke=We.user,nt=We.globalSetting,rt=We.loading,De=We.dispatch,Ke=We.shixunHomeworks,Ct=We.location,ft=We.payload,xt=ft===void 0?{}:ft,Mt=Object(C.a)(We,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),ct=(Je=(((Ae=nt.setting)===null||Ae===void 0?void 0:Ae.navbar)||[]).find(function(sn){return sn.link==="/".concat(we.Classrooms)}))===null||Je===void 0?void 0:Je.hidden,Ut=(Ue=(((He=nt.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(sn){return sn.link==="/".concat(we.Shixuns)}))===null||Ue===void 0?void 0:Ue.hidden,Ft=(Fe=(((et=nt.setting)===null||et===void 0?void 0:et.navbar)||[]).find(function(sn){return sn.link==="/".concat(we.Paths)}))===null||Fe===void 0?void 0:Fe.hidden,on=((mt=ke.userInfo)===null||mt===void 0?void 0:mt.admin)||((Lt=ke.userInfo)===null||Lt===void 0?void 0:Lt.business)||((Xt=ke.userInfo)===null||Xt===void 0?void 0:Xt.is_shixun_marker)||((rn=ke.userInfo)===null||rn===void 0?void 0:rn.is_teacher)||((wt=ke.userInfo)===null||wt===void 0?void 0:wt.user_identity)!=="\u5B66\u751F",cn=function(){if(Object(D.r)())return r.a.createElement(T.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var Gn,Nn,Vn,Zn,xr,dr,un,$t,An,Ur,Ar,Cr,gr,pe,X,q,oe,Re,de,ot,Qt,Ln;return r.a.createElement(T.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Gn=ke.userInfo)===null||Gn===void 0?void 0:Gn.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!ct&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Nn=ke.userInfo)===null||Nn===void 0?void 0:Nn.login,"/classrooms")},(Vn=ke.userInfo)!==null&&Vn!==void 0&&Vn.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!Ut&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Zn=ke.userInfo)===null||Zn===void 0?void 0:Zn.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!Ft&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((xr=ke.userInfo)===null||xr===void 0?void 0:xr.login,"/paths")},(dr=ke.userInfo)!==null&&dr!==void 0&&dr.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((un=ke.userInfo)===null||un===void 0?void 0:un.main_site)&&!(($t=nt.setting)!==null&&$t!==void 0&&$t.is_local)&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((An=ke.userInfo)===null||An===void 0?void 0:An.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),on&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Ur=ke.userInfo)===null||Ur===void 0?void 0:Ur.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),on&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{onClick:function(){if(!Object(fe.e)(De))return;d.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),on&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{onClick:function(){if(!Object(fe.e)(De))return;d.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((Ar=ke.navigationInfo)===null||Ar===void 0||((Cr=Ar.top)===null||Cr===void 0)?void 0:Cr.customer_management_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(gr=ke.navigationInfo)===null||gr===void 0||((pe=gr.top)===null||pe===void 0)?void 0:pe.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((X=ke.navigationInfo)===null||X===void 0||((q=X.top)===null||q===void 0)?void 0:q.college_identifier)&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/colleges/".concat((oe=ke.navigationInfo)===null||oe===void 0||((Re=oe.top)===null||Re===void 0)?void 0:Re.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((de=ke.navigationInfo)===null||de===void 0||((ot=de.top)===null||ot===void 0)?void 0:ot.laboratory_admin_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(Qt=ke.navigationInfo)===null||Qt===void 0||((Ln=Qt.top)===null||Ln===void 0)?void 0:Ln.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||De({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:r.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),r.a.createElement(T.a.Item,{className:se.a.exit},r.a.createElement("a",{onClick:Object(O.a)(n.a.mark(function Jn(){var Zt;return n.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:return fn.next=2,Object($.c)({});case 2:Zt=fn.sent,(Zt==null?void 0:Zt.status)===1&&(De({type:"user/getUserInfo",payload:Object(A.a)({},xt)}),De({type:"user/getNavigationInfo",payload:Object(A.a)({},xt)}),ae("autologin_trustie"),ae("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),I.b.success(Zt==null?void 0:Zt.message),d.d.replace("/"));case 4:case"end":return fn.stop()}},Jn)}))},"\u9000\u51FA")))};if(Object(Ce.p)()){var ln,kn;return r.a.createElement(_.a,{className:"".concat(se.a.height67),overlay:cn,placement:"bottomRight"},r.a.createElement("section",null,r.a.createElement("aside",null,r.a.createElement("div",{className:Ke.actionTabs.type===1?se.a.classromediv:""},r.a.createElement("img",{className:"".concat(se.a.userPic," current ml15"),src:"".concat(me.a===null||me.a===void 0?void 0:me.a.IMG_SERVER,"/images/").concat((ln=ke.userInfo)===null||ln===void 0?void 0:ln.image_url),alt:"",onClick:function(){var Gn;return d.d.push(Object(D.r)()?"/account/profile":"/users/".concat((Gn=ke.userInfo)===null||Gn===void 0?void 0:Gn.login,"/classrooms"))}}),Object(D.r)()&&r.a.createElement("span",{className:"ml10 font16"},(kn=ke.userInfo)===null||kn===void 0?void 0:kn.username)))))}else{var In;return r.a.createElement("div",{className:"font15 ".concat(nt.isIlearning?se.a.login:"")},r.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){De({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((In=nt.setting)!==null&&In!==void 0&&In.close_register)&&r.a.createElement(r.a.Fragment,null,r.a.createElement("span",{className:"ml5 mr5"},"|"),r.a.createElement(h.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},te=Object(d.a)(function(Ze){var We=Ze.homePage,Je=Ze.loading,Ae=Ze.user,Ue=Ze.globalSetting,He=Ze.shixunHomeworks;return{homePage:We,user:Ae,globalSetting:Ue,shixunHomeworks:He,loading:Je.models.index}})(le),Q=o("+L6B"),J=o("2/Rp"),ve=o("Cs+z"),_e=o.n(ve),Oe=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Xe=function(We){var Je=We.homePage,Ae=We.user,Ue=We.globalSetting,He=We.loading,Fe=We.dispatch,et=We.location,mt=We.text,Lt=We.shixunHomeworks,Xt=We.payload,rn=Xt===void 0?{}:Xt,wt=Object(C.a)(We,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),bt=Object(i.useState)("none"),ke=Object(y.a)(bt,2),nt=ke[0],rt=ke[1];return Object(i.useEffect)(function(){Lt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&rt("flex")},[Lt.actionTabs.key]),Object(i.useEffect)(function(){Lt.actionTabs.key==="\u9690\u85CF"&&(rt("none"),localStorage.setItem("Noviceguide","0"))},[Lt.actionTabs.key]),r.a.createElement("div",{style:{display:nt,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},r.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},r.a.createElement("img",{src:_e.a,style:{position:"absolute",top:"-32px"}}),r.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Lt.actionTabs.text),Lt.actionTabs.type===9?r.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},r.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),rt("none"),Fe({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):r.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},r.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Fe({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),rt("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},tt=Object(d.a)(function(Ze){var We=Ze.homePage,Je=Ze.loading,Ae=Ze.user,Ue=Ze.globalSetting,He=Ze.shixunHomeworks;return{homePage:We,user:Ae,globalSetting:Ue,loading:Je.models.index,shixunHomeworks:He}})(Xe),lt=o("498V"),dt=o.n(lt),vt=o("wd/R"),_t=o.n(vt),Ye=a.a.Header,je=e.a.Search;function ht(){var Ze,We,Je=window.location.pathname,Ae=Je.split("/"),Ue={};return Ae[1]=="classrooms"&&Ae.length>3&&!((Ze=Ae[4])!==null&&Ze!==void 0&&Ze.includes("newgold"))&&!((We=Ae[5])!==null&&We!==void 0&&We.includes("newgold"))&&Ae[2]!=="coursesId"&&(Ue.course_id=Ae[2]),Ae[1]==="shixuns"&&Ae.length>3&&(Ue.objective_type="shixun",Ue.objective_id=Ae[2]),Ae[1]==="paths"&&Ae.length>3&&(Ue.objective_type="path",Ue.objective_id=Ae[2]),Object(A.a)(Object(A.a)({},Ue),{school:1})}var Bt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Et=function(We){var Je,Ae,Ue=We.homePage,He=We.user,Fe=We.globalSetting,et=We.loading,mt=We.dispatch,Lt=We.location,Xt=We.isLogin,rn=Xt===void 0?!1:Xt,wt=We.shixunHomeworks,bt=Object(C.a)(We,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),ke=Object(c.g)(),nt=Object(i.useState)(!1),rt=Object(y.a)(nt,2),De=rt[0],Ke=rt[1],Ct=Object(i.useState)(""),ft=Object(y.a)(Ct,2),xt=ft[0],Mt=ft[1],ct=Object(i.useState)(!1),Ut=Object(y.a)(ct,2),Ft=Ut[0],on=Ut[1],cn=ht(),ln=Object(i.useState)("0"),kn=Object(y.a)(ln,2),In=kn[0],sn=kn[1],Gn=Object(i.useRef)({id:0});Object(i.useEffect)(function(){var de;return He!=null&&(de=He.userInfo)!==null&&de!==void 0&&de.now_time&&(Gn.current.id=setInterval(function(){sn(function(ot){if(ot==="0"){var Qt;return _t()(He==null||((Qt=He.userInfo)===null||Qt===void 0)?void 0:Qt.now_time,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")}else return _t()(ot,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")})},1e3)),function(){clearInterval(Gn.current.id)}},[He==null||((Je=He.userInfo)===null||Je===void 0)?void 0:Je.now_time]),Object(i.useEffect)(function(){mt({type:"user/getNavigationInfo",payload:Object(A.a)({},cn)})},[Fe.name]),Object(i.useEffect)(function(){wt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(Bt!=null&&Bt.includes(Lt==null?void 0:Lt.pathname)||(Lt==null?void 0:Lt.pathname.indexOf("/classrooms"))===0||mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Lt.pathname]),Object(i.useEffect)(function(){wt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(wt.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[wt.actionTabs.key]),Object(i.useEffect)(function(){if(Fe!=null&&Fe.setting){var de,ot,Qt=Fe==null||((de=Fe.setting)===null||de===void 0||((ot=de.navbar)===null||ot===void 0))?void 0:ot.filter(function(fn){return!(fn!=null&&fn.hidden)&&!(Object(Ce.m)()&&fn.link==="/paperlibrary")}),Ln=Object(b.a)(Qt),Jn;try{for(Ln.s();!(Jn=Ln.n()).done;){var Zt=Jn.value;Zt.subitem&&(Zt.subitem=Zt.subitem.filter(function(fn){return!(fn!=null&&fn.hidden)&&!(Object(Ce.m)()&&fn.link==="/paperlibrary")}))}}catch(fn){Ln.e(fn)}finally{Ln.f()}var En=!1;Qt==null||Qt.map(function(fn,Br){var ra,oa,rr,Ba="/"+((ra=Lt.pathname)===null||ra===void 0||((oa=ra.split("/"))===null||oa===void 0)?void 0:oa[1]);if(fn.link===Ba&&(Mt(fn==null?void 0:fn.link),Object(D.X)(fn==null?void 0:fn.name),$t(Ur(Br,{name:fn==null?void 0:fn.name,link:fn==null?void 0:fn.link},Qt)),En=!0),fn!=null&&(rr=fn.subitem)!==null&&rr!==void 0&&rr.length){var Ea;fn==null||((Ea=fn.subitem)===null||Ea===void 0)||Ea.map(function(ca){ca.link===Ba&&(Mt(ca==null?void 0:ca.link),Object(D.X)(ca==null?void 0:ca.name),$t(Ur(Br,{name:ca==null?void 0:ca.name,link:ca==null?void 0:ca.link},Qt)),En=!0)})}}),En||$t(Qt)}},[Fe==null?void 0:Fe.setting,He]);var Nn=Object(i.useMemo)(function(){var de;if(Fe!=null&&(de=Fe.setting)!==null&&de!==void 0&&de.nav_logo_url){var ot;return"".concat(me.a.IMG_SERVER,"/").concat(Fe==null||((ot=Fe.setting)===null||ot===void 0)?void 0:ot.nav_logo_url)}else return"".concat(me.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[Fe==null||((Ae=Fe.setting)===null||Ae===void 0)?void 0:Ae.nav_logo_url]);function Vn(de){ke.push("/search?value="+de)}var Zn=function(){return De?r.a.createElement("div",{onBlur:function(){setTimeout(function(){Ke(!1)},300)}},r.a.createElement(je,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:Vn,autoFocus:!0})):r.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){ke.push("/search?value=")}})},xr=Object(i.useState)([]),dr=Object(y.a)(xr,2),un=dr[0],$t=dr[1],An=function(){var de=Object(O.a)(n.a.mark(function ot(Qt,Ln){var Jn,Zt,En,fn,Br,ra,oa,rr;return n.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:if(!((Qt==null?void 0:Qt.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Ea.next=6;break}return Ea.next=3,Object($.j)();case 3:return En=Ea.sent,En!=null&&(Zt=En.data)!==null&&Zt!==void 0&&Zt.engineer_url?En!=null&&(fn=En.data)!==null&&fn!==void 0&&(Br=fn.engineer_url)!==null&&Br!==void 0&&Br.includes("http")?Object(D.S)(En==null||((ra=En.data)===null||ra===void 0)?void 0:ra.engineer_url):ke.push(En==null||((oa=En.data)===null||oa===void 0)?void 0:oa.engineer_url):(En==null?void 0:En.status)!=401&&(Fe!=null&&(rr=Fe.setting)!==null&&rr!==void 0&&rr.authority_qrcode_url?on(!0):on(!1)),Ea.abrupt("return");case 6:Qt!=null&&(Jn=Qt.link)!==null&&Jn!==void 0&&Jn.includes("http")?Object(D.S)(Qt==null?void 0:Qt.link):ke.push(Qt==null?void 0:Qt.link),(Qt==null?void 0:Qt.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:r.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}});case 8:case"end":return Ea.stop()}},ot)}));return function(Qt,Ln){return de.apply(this,arguments)}}(),Ur=function(ot,Qt,Ln){var Jn=Ln.slice();return Jn[ot]&&(Jn[ot].name=Qt.name,Jn[ot].link=Qt.link),Jn||[]};if(Fe.showHeader&&Fe.showHeaderFooter){var Ar,Cr,gr,pe,X,q,oe,Re;return r.a.createElement(a.a,{className:"".concat(Fe.isIlearning?u.a["header-iearning"]:u.a.header," ").concat(Fe.showHeaderFixed?u.a.headerFixed:"")},r.a.createElement(Ye,{className:"header"},r.a.createElement("section",{className:u.a["edu-menu"]},(!!Fe.isIlearning||!(Fe!=null&&(Ar=Fe.setting)!==null&&Ar!==void 0&&Ar.main_site)&&!!(Fe!=null&&(Cr=Fe.setting)!==null&&Cr!==void 0&&Cr.navbar))&&r.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){mt({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},r.a.createElement("img",{className:u.a.logo,title:(gr=Fe.setting)===null||gr===void 0?void 0:gr.name,src:Nn||dt.a})),r.a.createElement("ul",{className:"".concat(u.a.menu," ").concat(Object(D.r)()&&"ml0")},Object(D.r)()&&r.a.createElement("li",null,r.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(D.r)()&&Fe.setting&&un.map(function(de,ot){var Qt,Ln,Jn,Zt,En;return r.a.createElement("li",{key:ot,className:!(de!=null&&(Qt=de.subitem)!==null&&Qt!==void 0&&Qt.length)&&xt===(de==null?void 0:de.link)||de!=null&&(Ln=de.subitem)!==null&&Ln!==void 0&&Ln.some(function(fn){return xt===(fn==null?void 0:fn.link)})?u.a.actived:""},r.a.createElement("div",{onClick:function(){return An(de,ot)},className:wt.actionTabs.type===4?"".concat(u.a.name," ").concat(u.a.classromediv):u.a.name},r.a.createElement("span",null,function(){var fn=de==null?void 0:de.name;{var Br;de==null||((Br=de.subitem)===null||Br===void 0)||Br.map(function(ra,oa){return ra.link===Lt.pathname&&(fn=ra.name),ra})}return fn}()),(de==null||((Jn=de.subitem)===null||Jn===void 0)?void 0:Jn.length)>0&&r.a.createElement("i",{className:"iconfont icon-zhankai4"})),(de==null||((Zt=de.subitem)===null||Zt===void 0)?void 0:Zt.length)>0&&r.a.createElement("div",{className:u.a.dropDown},de==null||((En=de.subitem)===null||En===void 0)?void 0:En.map(function(fn,Br){return r.a.createElement("div",{className:u.a.subName,onClick:function(){return An(fn,ot)},key:ot+"-"+Br},!!Br&&r.a.createElement("div",{className:u.a.line}),r.a.createElement("aside",{className:"font16 c-black"},fn.name),r.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},fn.content))})))})),r.a.createElement("div",{className:"search-bar",style:{flex:Fe.isIlearning?"initial":"1 0 auto"}},!Object(D.r)()&&!(Fe!=null&&Fe.isIlearning)&&r.a.createElement(r.a.Fragment,null,r.a.createElement(Zn,null),!rn&&r.a.createElement(Ee,null),!rn&&!!(He!=null&&(pe=He.userInfo)!==null&&pe!==void 0&&pe.login)&&r.a.createElement(h.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(He==null||((X=He.userInfo)===null||X===void 0)?void 0:X.login,"/user_tidings")},(He==null||((q=He.navigationInfo)===null||q===void 0||((oe=q.top)===null||oe===void 0))?void 0:oe.new_message)&&r.a.createElement("span",{className:u.a.newslight}))),!rn&&r.a.createElement(te,{payload:cn}))),r.a.createElement(m.a,{centered:!0,destroyOnClose:!0,visible:Ft,title:"\u63D0\u793A",width:"500px",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){on(!1)},onCancel:function(){return on(!1)}},r.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},r.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),r.a.createElement("img",{src:me.a.IMG_SERVER+(Fe==null||((Re=Fe.setting)===null||Re===void 0)?void 0:Re.authority_qrcode_url),width:200,height:200})))),r.a.createElement(tt,null))}else return r.a.createElement(r.a.Fragment,null)},Pt=z.a=Object(d.a)(function(Ze){var We=Ze.homePage,Je=Ze.loading,Ae=Ze.user,Ue=Ze.globalSetting,He=Ze.shixunHomeworks;return{homePage:We,user:Ae,globalSetting:Ue,loading:Je.models.index,shixunHomeworks:He}})(Et)},sLOW:function(k,z,o){"use strict";var M=o("iQDF"),m=o("+eQT"),O=o("Awhp"),b=o("KrTs"),y=o("O3gP"),C=o("lrIw"),A=o("7Kak"),g=o("9yH6"),e=o("sRBo"),f=o("kaz8"),a=o("+L6B"),l=o("2/Rp"),n=o("oBTY"),i=o("miYZ"),r=o("tsqr"),c=o("2qtc"),h=o("kLXV"),d=o("9og8"),s=o("tJVT"),u=o("PpiC"),w=o("WmNS"),E=o.n(w),_=o("q1tI"),P=o.n(_),R=o("9kvl"),x=o("Z0Lh"),S=o.n(x),v=o("9ZNV"),T=o("NLgs"),U=o("wd/R"),I=o.n(U),N=o("L+Ii"),V=o.n(N),H=function(L){if(!L)return L;var K=L.split(":");if(K[1]=="00"||K[1]=="30")return L;var ee=parseInt(K[1]);if(ee<30||ee==60)return[K[0],"30"].join(":");if(ee<60){var he=[K[0],"00"].join(":"),fe="YYYY-MM-DD HH:mm",Ce=I()(he,fe);return Ce.add(1,"hours"),Ce.format(fe)}return L},D="YYYY-MM-DD HH:mm",W=function(L){var K,ee,he,fe,Ce,Te,ce,ye,Ee=L.shixunsDetail,ue=L.globalSetting,se=L.loading,$=L.user,me=L.dispatch,re=Object(u.a)(L,["shixunsDetail","globalSetting","loading","user","dispatch"]),ae=Object(_.useRef)(),we=Object(_.useState)(),le=Object(s.a)(we,2),te=le[0],Q=le[1],J=Object(_.useState)(),ve=Object(s.a)(J,2),_e=ve[0],Oe=ve[1],Xe=Object(_.useState)([]),tt=Object(s.a)(Xe,2),lt=tt[0],dt=tt[1],vt=Object(_.useState)([]),_t=Object(s.a)(vt,2),Ye=_t[0],je=_t[1],ht=Object(_.useState)(""),Bt=Object(s.a)(ht,2),Et=Bt[0],Pt=Bt[1],Ze=Object(_.useState)(),We=Object(s.a)(Ze,2),Je=We[0],Ae=We[1],Ue=Object(_.useState)(),He=Object(s.a)(Ue,2),Fe=He[0],et=He[1],mt=(K=$.userInfo)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.editable;Object(_.useEffect)(function(){var ke,nt;ae.current=(ke=location.pathname)===null||ke===void 0||((nt=ke.split("/"))===null||nt===void 0)?void 0:nt[2],Lt()},[]),Object(_.useEffect)(function(){var ke,nt,rt,De,Ke,Ct,ft,xt,Mt,ct;if(!Ee.setting)return;Q((ke=Ee.setting)===null||ke===void 0||((nt=ke.shixun)===null||nt===void 0)?void 0:nt.can_copy),Oe((rt=Ee.setting)===null||rt===void 0||((De=rt.shixun)===null||De===void 0)?void 0:De.use_scope),Ae(!!((Ke=Ee.setting)!==null&&Ke!==void 0&&(Ct=Ke.shixun)!==null&&Ct!==void 0&&Ct.opening_time)),et((ft=Ee.setting)===null||ft===void 0||((xt=ft.shixun)===null||xt===void 0)?void 0:xt.opening_time),dt((Mt=Ee.setting)===null||Mt===void 0||((ct=Mt.shixun)===null||ct===void 0)?void 0:ct.scope_partment)},[Ee.setting]);var Lt=function(){var ke=Object(d.a)(E.a.mark(function nt(rt){var De;return E.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:rt}});case 2:De=Ct.sent,De&&je(De.shools_name||[]);case 4:case"end":return Ct.stop()}},nt)}));return function(rt){return ke.apply(this,arguments)}}(),Xt=function(){var ke=Object(d.a)(E.a.mark(function nt(){var rt,De,Ke,Ct,ft,xt,Mt;return E.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ae.current}});case 2:if(Ut.t0=Ut.sent,Ut.t0){Ut.next=5;break}Ut.t0={};case 5:Mt=Ut.t0,h.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:P.a.createElement("div",{className:"tc font14 ".concat(V.a.modal)},!!((rt=Mt.subjects)!==null&&rt!==void 0&&rt.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(De=Mt.subjects)===null||De===void 0||((Ke=De.splice(0,2))===null||Ke===void 0)?void 0:Ke.map(function(Ft){return"\u300A".concat(Ft,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},Mt==null?void 0:Mt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),P.a.createElement("br",null)),!!((Ct=Mt.courses)!==null&&Ct!==void 0&&Ct.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(ft=Mt.courses)===null||ft===void 0||((xt=ft.splice(0,2))===null||xt===void 0)?void 0:xt.map(function(Ft){return"\u300A".concat(Ft,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},Mt==null?void 0:Mt.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),P.a.createElement("br",null)),P.a.createElement("span",{className:"".concat(V.a.colorYellow," mt30")},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:function(){var Ft=Object(d.a)(E.a.mark(function cn(){var ln;return E.a.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ae.current}});case 2:ln=In.sent,ln.status===1&&(r.b.success("\u64CD\u4F5C\u6210\u529F"),R.d.push("/shixuns"));case 4:case"end":return In.stop()}},cn)}));function on(){return Ft.apply(this,arguments)}return on}()});case 7:case"end":return Ut.stop()}},nt)}));return function(){return ke.apply(this,arguments)}}(),rn=function(){if(Object(T.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},wt=function(nt){if(lt.includes(nt)){r.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Pt(null),dt([].concat(Object(n.a)(lt),[nt]))},bt=function(){var ke=Object(d.a)(E.a.mark(function nt(){var rt;return E.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(!(Je&&!Fe)){Ke.next=3;break}return r.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Ke.abrupt("return");case 3:if(!(_e===1&&!lt.length)){Ke.next=6;break}return r.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Ke.abrupt("return");case 6:return Ke.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ae.current,scope_partment:_e===0?null:lt,shixun:{can_copy:te,use_scope:_e,opening_time:Fe}}});case 8:rt=Ke.sent,rt.status!==-1&&(r.b.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),me({type:"shixunsDetail/getSettingsData",payload:{id:ae.current}}),me({type:"shixunsDetail/getShixunsDetail",payload:{id:ae.current}}));case 10:case"end":return Ke.stop()}},nt)}));return function(){return ke.apply(this,arguments)}}();return P.a.createElement("section",{className:V.a.wrap},P.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(Ee==null||((he=Ee.detail)===null||he===void 0)?void 0:he.shixun_status)!==2?P.a.createElement(l.a,{danger:!0,onClick:Xt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):P.a.createElement(l.a,{danger:!0,onClick:rn},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u590D\u5236:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement("div",null,P.a.createElement(f.a,{checked:te,onChange:function(nt){return Q(nt.target.checked)},disabled:!mt}),P.a.createElement("span",{className:"".concat(V.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((fe=Ee.detail)===null||fe===void 0?void 0:fe.shixun_status)>1||((Ce=Ee.detail)===null||Ce===void 0?void 0:Ce.public)===2)&&((Te=Ee.setting)===null||Te===void 0||((ce=Te.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((ye=Ee.detail)===null||ye===void 0?void 0:ye.identity)>2)&&P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u516C\u5F00\u7A0B\u5EA6:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement(g.a.Group,{value:_e,onChange:function(nt){return Oe(nt.target.value)},disabled:!mt},P.a.createElement(g.a,{className:V.a.radio,value:0},P.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement(g.a,{className:V.a.radio,value:1},P.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),_e===1&&P.a.createElement(P.a.Fragment,null,P.a.createElement("div",{className:"mt10"},P.a.createElement(C.a,{showSearch:!0,className:V.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:Et,onChange:function(nt){Pt(nt),Lt(nt)},disabled:!mt,onSelect:wt,options:Ye==null?void 0:Ye.map(function(ke){return{value:ke}})}),P.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement("div",{className:"mt10"},lt==null?void 0:lt.map(function(ke){return mt?P.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return dt(lt.filter(function(rt){return rt!==ke}))}},P.a.createElement(l.a,{type:"primary",ghost:!0},ke)):P.a.createElement(l.a,{type:"primary",ghost:!0,className:"mr20"},ke)}))))),P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u5F00\u542F\u65F6\u95F4:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement("div",null,P.a.createElement(f.a,{checked:Je,onChange:function(nt){return Ae(nt.target.checked)},disabled:!mt}),P.a.createElement("span",{className:"".concat(V.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\uFF0C\u624D\u80FD\u5F00\u542F\u5B66\u4E60\uFF1B\u4E0D\u9009\u4E2D\u5219\u5B66\u5458\u5728\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u80FD\u7ACB\u5373\u5F00\u542F\u5B66\u4E60\uFF09")),Je&&P.a.createElement(m.a,{className:"".concat(V.a.dataPicker," mt10"),format:D,locale:S.a,disabled:!mt,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(nt){return nt&&nt<I()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:Fe&&I()(Fe,D),onChange:function(nt,rt){return et(H(rt))}}))),P.a.createElement(v.a,{okText:"\u4FDD\u5B58",hasOkBtn:mt,loading:se.effects["shixunsDetail/updatePermissionSetting"],onCancel:function(){return R.d.push("/shixuns/".concat(ae.current,"/challenges"))},onOk:bt}))};z.a=Object(R.a)(function(F){var L=F.shixunsDetail,K=F.loading,ee=F.globalSetting,he=F.user;return{shixunsDetail:L,globalSetting:ee,user:he,loading:K}})(W)},sR1s:function(k,z,o){"use strict";o.d(z,"b",function(){return b}),o.d(z,"a",function(){return y}),o.d(z,"c",function(){return C}),o.d(z,"d",function(){return A});var M=o("U8pU"),m="RC_TABLE_KEY";function O(g){return g==null?[]:Array.isArray(g)?g:[g]}function b(g,e){if(!e&&typeof e!="number")return g;for(var f=O(e),a=g,l=0;l<f.length;l+=1){if(!a)return null;var n=f[l];a=a[n]}return a}function y(g){var e=[],f={};return g.forEach(function(a){for(var l=a||{},n=l.key,i=l.dataIndex,r=n||O(i).join("-")||m;f[r];)r="".concat(r,"_next");f[r]=!0,e.push(r)}),e}function C(){var g={};function e(n,i){i&&Object.keys(i).forEach(function(r){var c=i[r];c&&Object(M.a)(c)==="object"?(n[r]=n[r]||{},e(n[r],c)):n[r]=c})}for(var f=arguments.length,a=new Array(f),l=0;l<f;l++)a[l]=arguments[l];return a.forEach(function(n){e(g,n)}),g}function A(g){return g!=null}},sboe:function(k,z,o){"use strict";o.d(z,"a",function(){return O});var M=o("q1tI"),m=o.n(M),O=M.createContext(null)},sckv:function(k,z,o){k.exports={wrap:"wrap___3kep6",colorBlue:"colorBlue___3r5Hq",repeatedName:"repeatedName___vESvE"}},siWv:function(k,z,o){k.exports={flex_box_center:"flex_box_center___3IH6S",flex_space_between:"flex_space_between___3AU-S",flex_box_vertical_center:"flex_box_vertical_center___1ykIO",flex_box_center_end:"flex_box_center_end___1aIQB",flex_box_column:"flex_box_column___2A_ra",btn:"btn___23gjd"}},t23M:function(k,z,o){"use strict";var M=o("VTBJ"),m=o("1OyB"),O=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),C=o("q1tI"),A=o.n(C),g=o("m+aA"),e=o("Zm9Q"),f=o("Kwbf"),a=o("c+Xe"),l=o("bdgK"),n="rc-observer-key",i=function(r){Object(b.a)(h,r);var c=Object(y.a)(h);function h(){var d;return Object(m.a)(this,h),d=c.apply(this,arguments),d.resizeObserver=null,d.childNode=null,d.currentElement=null,d.state={width:0,height:0,offsetHeight:0,offsetWidth:0},d.onResize=function(s){var u=d.props.onResize,w=s[0].target,E=w.getBoundingClientRect(),_=E.width,P=E.height,R=w.offsetWidth,x=w.offsetHeight,S=Math.floor(_),v=Math.floor(P);if(d.state.width!==S||d.state.height!==v||d.state.offsetWidth!==R||d.state.offsetHeight!==x){var T={width:S,height:v,offsetWidth:R,offsetHeight:x};d.setState(T),u&&Promise.resolve().then(function(){u(Object(M.a)(Object(M.a)({},T),{},{offsetWidth:R,offsetHeight:x}))})}},d.setChildNode=function(s){d.childNode=s},d}return Object(O.a)(h,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var s=this.props.disabled;if(s){this.destroyObserver();return}var u=Object(g.a)(this.childNode||this),w=u!==this.currentElement;w&&(this.destroyObserver(),this.currentElement=u),!this.resizeObserver&&u&&(this.resizeObserver=new l.default(this.onResize),this.resizeObserver.observe(u))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var s=this.props.children,u=Object(e.a)(s);if(u.length>1)Object(f.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(f.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=u[0];if(C.isValidElement(w)&&Object(a.c)(w)){var E=w.ref;u[0]=C.cloneElement(w,{ref:Object(a.a)(E,this.setChildNode)})}return u.length===1?u[0]:u.map(function(_,P){return!C.isValidElement(_)||"key"in _&&_.key!==null?_:C.cloneElement(_,{key:"".concat(n,"-").concat(P)})})}}]),h}(C.Component);i.displayName="ResizeObserver",z.a=i},t9D7:function(k,z,o){"use strict";o.d(z,"b",function(){return A}),o.d(z,"g",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"e",function(){return a}),o.d(z,"a",function(){return l}),o.d(z,"f",function(){return r}),o.d(z,"c",function(){return c});var M=o("Vhoy"),m=o("MI8n"),O=o("pmY6"),b=o("Cg/j"),y=o("ic2d"),C=o("nEHx");const A=Object(b.c)("themeService");var g;(function(h){function d(s){return s&&typeof s=="object"&&typeof s.id=="string"}h.isThemeColor=d})(g||(g={}));function e(h){return{id:h}}var f;(function(h){function d(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||g.isThemeColor(P.color))}h.isThemeIcon=d;const s=new RegExp(`^\\$\\((${M.a.iconNameExpression}(?:${M.a.iconModifierExpression})?)\\)$`);function u(P){const R=s.exec(P);if(!R)return;let[,x]=R;return{id:x}}h.fromString=u;function w(P,R){let x=P.id;const S=x.lastIndexOf("~");return S!==-1&&(x=x.substring(0,S)),R&&(x=`${x}~${R}`),{id:x}}h.modify=w;function E(P,R){var x,S;return P.id===R.id&&((x=P.color)===null||x===void 0?void 0:x.id)===((S=R.color)===null||S===void 0?void 0:S.id)}h.isEqual=E;function _(P,R){return{id:P.id,color:R?e(R):void 0}}h.asThemeIcon=_,h.asClassNameArray=M.a.asClassNameArray,h.asClassName=M.a.asClassName,h.asCSSSelector=M.a.asCSSSelector})(f||(f={}));function a(h){switch(h){case C.a.DARK:return"vs-dark";case C.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const l={ThemingContribution:"base.contributions.theming"};class n{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new m.b}onColorThemeChange(h){return this.themingParticipants.push(h),this.onThemingParticipantAddedEmitter.fire(h),Object(O.i)(()=>{const d=this.themingParticipants.indexOf(h);this.themingParticipants.splice(d,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new n;y.a.add(l.ThemingContribution,i);function r(h){return i.onColorThemeChange(h)}class c extends O.a{constructor(h){super();this.themeService=h,this.theme=h.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(d=>this.onThemeChange(d)))}onThemeChange(h){this.theme=h,this.updateStyles()}updateStyles(){}}},tWlo:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},uGsb:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(M){return function(){var m=M,O=m.x64,b=O.Word,y=O.WordArray,C=m.algo,A=C.SHA512,g=C.SHA384=A.extend({_doReset:function(){this._hash=new y.init([new b.init(3418070365,3238371032),new b.init(1654270250,914150663),new b.init(2438529370,812702999),new b.init(355462360,4144912697),new b.init(1731405415,4290775857),new b.init(2394180231,1750603025),new b.init(3675008525,1694076839),new b.init(1203062813,3204075428)])},_doFinalize:function(){var e=A._doFinalize.call(this);return e.sigBytes-=16,e}});m.SHA384=A._createHelper(g),m.HmacSHA384=A._createHmacHelper(g)}(),M.SHA384})},uGxW:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.NoPadding={pad:function(){},unpad:function(){}},M.pad.NoPadding})},uK0f:function(k,z,o){(function(M,m){k.exports=m()})(this,function(){"use strict";function M(m,O,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=m||[],C=[],A=0;do{var g=y.filter(function(e){return O(e,A)})[0];if(!g)break;C.push(g),y=g[b.childrenKeyName]||[],A+=1}while(y.length>0);return C}return M})},ulZh:function(k,z,o){typeof window!="undefined"&&function(m,O){k.exports=O()}(this,function(){return function(M){var m={};function O(b){if(m[b])return m[b].exports;var y=m[b]={i:b,l:!1,exports:{}};return M[b].call(y.exports,y,y.exports,O),y.l=!0,y.exports}return O.m=M,O.c=m,O.d=function(b,y,C){O.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:C})},O.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},O.t=function(b,y){if(y&1&&(b=O(b)),y&8)return b;if(y&4&&typeof b=="object"&&b&&b.__esModule)return b;var C=Object.create(null);if(O.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var A in b)O.d(C,A,function(g){return b[g]}.bind(null,A));return C},O.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return O.d(y,"a",y),y},O.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},O.p="/dist/",O(O.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(M,m,O){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function C(){}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(y=!1));function A(a,l,n){this.fn=a,this.context=l,this.once=n||!1}function g(a,l,n,i,r){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new A(n,i||a,r),h=y?y+l:l;return a._events[h]?a._events[h].fn?a._events[h]=[a._events[h],c]:a._events[h].push(c):(a._events[h]=c,a._eventsCount++),a}function e(a,l){--a._eventsCount===0?a._events=new C:delete a._events[l]}function f(){this._events=new C,this._eventsCount=0}f.prototype.eventNames=function(){var l=[],n,i;if(this._eventsCount===0)return l;for(i in n=this._events)b.call(n,i)&&l.push(y?i.slice(1):i);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(n)):l},f.prototype.listeners=function(l){var n=y?y+l:l,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,c=i.length,h=new Array(c);r<c;r++)h[r]=i[r].fn;return h},f.prototype.listenerCount=function(l){var n=y?y+l:l,i=this._events[n];return i?i.fn?1:i.length:0},f.prototype.emit=function(l,n,i,r,c,h){var d=y?y+l:l;if(!this._events[d])return!1;var s=this._events[d],u=arguments.length,w,E;if(s.fn){s.once&&this.removeListener(l,s.fn,void 0,!0);switch(u){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,n),!0;case 3:return s.fn.call(s.context,n,i),!0;case 4:return s.fn.call(s.context,n,i,r),!0;case 5:return s.fn.call(s.context,n,i,r,c),!0;case 6:return s.fn.call(s.context,n,i,r,c,h),!0}for(E=1,w=new Array(u-1);E<u;E++)w[E-1]=arguments[E];s.fn.apply(s.context,w)}else{var _=s.length,P;for(E=0;E<_;E++){s[E].once&&this.removeListener(l,s[E].fn,void 0,!0);switch(u){case 1:s[E].fn.call(s[E].context);break;case 2:s[E].fn.call(s[E].context,n);break;case 3:s[E].fn.call(s[E].context,n,i);break;case 4:s[E].fn.call(s[E].context,n,i,r);break;default:if(!w)for(P=1,w=new Array(u-1);P<u;P++)w[P-1]=arguments[P];s[E].fn.apply(s[E].context,w)}}}return!0},f.prototype.on=function(l,n,i){return g(this,l,n,i,!1)},f.prototype.once=function(l,n,i){return g(this,l,n,i,!0)},f.prototype.removeListener=function(l,n,i,r){var c=y?y+l:l;if(!this._events[c])return this;if(!n)return e(this,c),this;var h=this._events[c];if(h.fn)h.fn===n&&(!r||h.once)&&(!i||h.context===i)&&e(this,c);else{for(var d=0,s=[],u=h.length;d<u;d++)(h[d].fn!==n||r&&!h[d].once||i&&h[d].context!==i)&&s.push(h[d]);s.length?this._events[c]=s.length===1?s[0]:s:e(this,c)}return this},f.prototype.removeAllListeners=function(l){var n;return l?(n=y?y+l:l,this._events[n]&&e(this,n)):(this._events=new C,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=y,f.EventEmitter=f,M.exports=f},"./node_modules/url-toolkit/src/url-toolkit.js":function(M,m,O){(function(b){var y=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,C=/^([^\/?#]*)([^]*)$/,A=/(?:\/|^)\.(?=\/)/g,g=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(f,a,l){if(l=l||{},f=f.trim(),a=a.trim(),!a){if(!l.alwaysNormalize)return f;var n=e.parseURL(f);if(!n)throw new Error("Error trying to parse base URL.");return n.path=e.normalizePath(n.path),e.buildURLFromParts(n)}var i=e.parseURL(a);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return l.alwaysNormalize?(i.path=e.normalizePath(i.path),e.buildURLFromParts(i)):a;var r=e.parseURL(f);if(!r)throw new Error("Error trying to parse base URL.");if(!r.netLoc&&r.path&&r.path[0]!=="/"){var c=C.exec(r.path);r.netLoc=c[1],r.path=c[2]}r.netLoc&&!r.path&&(r.path="/");var h={scheme:r.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(h.netLoc=r.netLoc,i.path[0]!=="/"))if(!i.path)h.path=r.path,i.params||(h.params=r.params,i.query||(h.query=r.query));else{var d=r.path,s=d.substring(0,d.lastIndexOf("/")+1)+i.path;h.path=e.normalizePath(s)}return h.path===null&&(h.path=l.alwaysNormalize?e.normalizePath(i.path):i.path),e.buildURLFromParts(h)},parseURL:function(f){var a=y.exec(f);return a?{scheme:a[1]||"",netLoc:a[2]||"",path:a[3]||"",params:a[4]||"",query:a[5]||"",fragment:a[6]||""}:null},normalizePath:function(f){for(f=f.split("").reverse().join("").replace(A,"");f.length!==(f=f.replace(g,"")).length;);return f.split("").reverse().join("")},buildURLFromParts:function(f){return f.scheme+f.netLoc+f.path+f.params+f.query+f.fragment}};M.exports=e})(this)},"./node_modules/webworkify-webpack/index.js":function(M,m,O){function b(l){var n={};function i(c){if(n[c])return n[c].exports;var h=n[c]={i:c,l:!1,exports:{}};return l[c].call(h.exports,h,h.exports,i),h.l=!0,h.exports}i.m=l,i.c=n,i.i=function(c){return c},i.d=function(c,h,d){i.o(c,h)||Object.defineProperty(c,h,{configurable:!1,enumerable:!0,get:d})},i.r=function(c){Object.defineProperty(c,"__esModule",{value:!0})},i.n=function(c){var h=c&&c.__esModule?function(){return c.default}:function(){return c};return i.d(h,"a",h),h},i.o=function(c,h){return Object.prototype.hasOwnProperty.call(c,h)},i.p="/",i.oe=function(c){throw console.error(c),c};var r=i(i.s=ENTRY_MODULE);return r.default||r}var y="[\\.|\\-|\\+|\\w|/|@]+",C="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+y+").*?\\)";function A(l){return(l+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function g(l){return!isNaN(1*l)}function e(l,n,i){var r={};r[i]=[];var c=n.toString(),h=c.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!h)return r;for(var d=h[1],s=new RegExp("(\\\\n|\\W)"+A(d)+C,"g"),u;u=s.exec(c);){if(u[3]==="dll-reference")continue;r[i].push(u[3])}for(s=new RegExp("\\("+A(d)+'\\("(dll-reference\\s('+y+'))"\\)\\)'+C,"g");u=s.exec(c);)l[u[2]]||(r[i].push(u[1]),l[u[2]]=O(u[1]).m),r[u[2]]=r[u[2]]||[],r[u[2]].push(u[4]);for(var w=Object.keys(r),E=0;E<w.length;E++)for(var _=0;_<r[w[E]].length;_++)g(r[w[E]][_])&&(r[w[E]][_]=1*r[w[E]][_]);return r}function f(l){var n=Object.keys(l);return n.reduce(function(i,r){return i||l[r].length>0},!1)}function a(l,n){for(var i={main:[n]},r={main:[]},c={main:{}};f(i);)for(var h=Object.keys(i),d=0;d<h.length;d++){var s=h[d],u=i[s],w=u.pop();if(c[s]=c[s]||{},c[s][w]||!l[s][w])continue;c[s][w]=!0,r[s]=r[s]||[],r[s].push(w);for(var E=e(l,l[s][w],s),_=Object.keys(E),P=0;P<_.length;P++)i[_[P]]=i[_[P]]||[],i[_[P]]=i[_[P]].concat(E[_[P]])}return r}M.exports=function(l,n){n=n||{};var i={main:O.m},r=n.all?{main:Object.keys(i.main)}:a(i,l),c="";Object.keys(r).filter(function(w){return w!=="main"}).forEach(function(w){for(var E=0;r[w][E];)E++;r[w].push(E),i[w][E]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",c=c+"var "+w+" = ("+b.toString().replace("ENTRY_MODULE",JSON.stringify(E))+")({"+r[w].map(function(_){return""+JSON.stringify(_)+": "+i[w][_].toString()}).join(",")+`});
`}),c=c+"new (("+b.toString().replace("ENTRY_MODULE",JSON.stringify(l))+")({"+r.main.map(function(w){return""+JSON.stringify(w)+": "+i.main[w].toString()}).join(",")+"}))(self);";var h=new window.Blob([c],{type:"text/javascript"});if(n.bare)return h;var d=window.URL||window.webkitURL||window.mozURL||window.msURL,s=d.createObjectURL(h),u=new window.Worker(s);return u.objectURL=s,u}},"./src/config.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"hlsDefaultConfig",function(){return P}),O.d(m,"mergeConfig",function(){return x}),O.d(m,"enableStreamingMode",function(){return S});var b=O("./src/controller/abr-controller.ts"),y=O("./src/controller/audio-stream-controller.ts"),C=O("./src/controller/audio-track-controller.ts"),A=O("./src/controller/subtitle-stream-controller.ts"),g=O("./src/controller/subtitle-track-controller.ts"),e=O("./src/controller/buffer-controller.ts"),f=O("./src/controller/timeline-controller.ts"),a=O("./src/controller/cap-level-controller.ts"),l=O("./src/controller/fps-controller.ts"),n=O("./src/controller/eme-controller.ts"),i=O("./src/controller/cmcd-controller.ts"),r=O("./src/utils/xhr-loader.ts"),c=O("./src/utils/fetch-loader.ts"),h=O("./src/utils/cues.ts"),d=O("./src/utils/mediakeys-helper.ts"),s=O("./src/utils/logger.ts");function u(){return u=Object.assign||function(v){for(var T=1;T<arguments.length;T++){var U=arguments[T];for(var I in U)Object.prototype.hasOwnProperty.call(U,I)&&(v[I]=U[I])}return v},u.apply(this,arguments)}function w(v,T){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);T&&(I=I.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,I)}return U}function E(v){for(var T=1;T<arguments.length;T++){var U=arguments[T]!=null?arguments[T]:{};T%2?w(Object(U),!0).forEach(function(I){_(v,I,U[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(U)):w(Object(U)).forEach(function(I){Object.defineProperty(v,I,Object.getOwnPropertyDescriptor(U,I))})}return v}function _(v,T,U){return T in v?Object.defineProperty(v,T,{value:U,enumerable:!0,configurable:!0,writable:!0}):v[T]=U,v}var P=E(E({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:r.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:b.default,bufferController:e.default,capLevelController:a.default,fpsController:l.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:d.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},R()),{},{subtitleStreamController:A.SubtitleStreamController,subtitleTrackController:g.default,timelineController:f.TimelineController,audioStreamController:y.default,audioTrackController:C.default,emeController:n.default,cmcdController:i.default});function R(){return{cueHandler:h.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function x(v,T){if((T.liveSyncDurationCount||T.liveMaxLatencyDurationCount)&&(T.liveSyncDuration||T.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(T.liveMaxLatencyDurationCount!==void 0&&(T.liveSyncDurationCount===void 0||T.liveMaxLatencyDurationCount<=T.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(T.liveMaxLatencyDuration!==void 0&&(T.liveSyncDuration===void 0||T.liveMaxLatencyDuration<=T.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return u({},v,T)}function S(v){var T=v.loader;if(T!==c.default&&T!==r.default)s.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),v.progressive=!1;else{var U=Object(c.fetchSupported)();U&&(v.loader=c.default,v.progressive=!0,v.enableSoftwareAES=!0,s.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/polyfills/number.ts"),y=O("./src/utils/ewma-bandwidth-estimator.ts"),C=O("./src/events.ts"),A=O("./src/utils/buffer-helper.ts"),g=O("./src/errors.ts"),e=O("./src/types/loader.ts"),f=O("./src/utils/logger.ts");function a(i,r){for(var c=0;c<r.length;c++){var h=r[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function l(i,r,c){return r&&a(i.prototype,r),c&&a(i,c),i}var n=function(){function i(c){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=c;var h=c.config;this.bwEstimator=new y.default(h.abrEwmaSlowVoD,h.abrEwmaFastVoD,h.abrEwmaDefaultEstimate),this.registerListeners()}var r=i.prototype;return r.registerListeners=function(){var h=this.hls;h.on(C.Events.FRAG_LOADING,this.onFragLoading,this),h.on(C.Events.FRAG_LOADED,this.onFragLoaded,this),h.on(C.Events.FRAG_BUFFERED,this.onFragBuffered,this),h.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.on(C.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){var h=this.hls;h.off(C.Events.FRAG_LOADING,this.onFragLoading,this),h.off(C.Events.FRAG_LOADED,this.onFragLoaded,this),h.off(C.Events.FRAG_BUFFERED,this.onFragBuffered,this),h.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.off(C.Events.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},r.onFragLoading=function(h,d){var s=d.frag;if(s.type===e.PlaylistLevelType.MAIN&&!this.timer){var u;this.fragCurrent=s,this.partCurrent=(u=d.part)!=null?u:null,this.timer=self.setInterval(this.onCheck,100)}},r.onLevelLoaded=function(h,d){var s=this.hls.config;d.details.live?this.bwEstimator.update(s.abrEwmaSlowLive,s.abrEwmaFastLive):this.bwEstimator.update(s.abrEwmaSlowVoD,s.abrEwmaFastVoD)},r._abandonRulesCheck=function(){var h=this.fragCurrent,d=this.partCurrent,s=this.hls,u=s.autoLevelEnabled,w=s.config,E=s.media;if(!h||!E)return;var _=d?d.stats:h.stats,P=d?d.duration:h.duration;if(_.aborted){f.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!u||E.paused||!E.playbackRate||!E.readyState)return;var R=performance.now()-_.loading.start,x=Math.abs(E.playbackRate);if(R<=500*P/x)return;var S=s.levels,v=s.minAutoLevel,T=S[h.level],U=_.total||Math.max(_.loaded,Math.round(P*T.maxBitrate/8)),I=Math.max(1,_.bwEstimate?_.bwEstimate/8:_.loaded*1e3/R),N=(U-_.loaded)/I,V=E.currentTime,H=(A.BufferHelper.bufferInfo(E,V,w.maxBufferHole).end-V)/x;if(H>=2*P/x||N<=H)return;var D=Number.POSITIVE_INFINITY,W;for(W=h.level-1;W>v;W--){var F=S[W].maxBitrate;if(D=P*F/(8*.8*I),D<H)break}if(D>=N)return;var L=this.bwEstimator.getEstimate();f.logger.warn("Fragment "+h.sn+(d?" part "+d.index:"")+" of level "+h.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+W+`
Current BW estimate: `+(Object(b.isFiniteNumber)(L)?(L/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+N.toFixed(3)+` s
Estimated load time for the next fragment: `+D.toFixed(3)+` s
Time to underbuffer: `+H.toFixed(3)+" s"),s.nextLoadLevel=W,this.bwEstimator.sample(R,_.loaded),this.clearTimer(),h.loader&&(this.fragCurrent=this.partCurrent=null,h.loader.abort()),s.trigger(C.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:h,part:d,stats:_})},r.onFragLoaded=function(h,d){var s=d.frag,u=d.part;if(s.type===e.PlaylistLevelType.MAIN&&Object(b.isFiniteNumber)(s.sn)){var w=u?u.stats:s.stats,E=u?u.duration:s.duration;if(this.clearTimer(),this.lastLoadedFragLevel=s.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var _=this.hls.levels[s.level],P=(_.loaded?_.loaded.bytes:0)+w.loaded,R=(_.loaded?_.loaded.duration:0)+E;_.loaded={bytes:P,duration:R},_.realBitrate=Math.round(8*P/R)}if(s.bitrateTest){var x={stats:w,frag:s,part:u,id:s.type};this.onFragBuffered(C.Events.FRAG_BUFFERED,x),s.bitrateTest=!1}}},r.onFragBuffered=function(h,d){var s=d.frag,u=d.part,w=u?u.stats:s.stats;if(w.aborted)return;if(s.type!==e.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var E=w.parsing.end-w.loading.start;this.bwEstimator.sample(E,w.loaded),w.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},r.onError=function(h,d){switch(d.details){case g.ErrorDetails.FRAG_LOAD_ERROR:case g.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},r.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},r.getNextABRAutoLevel=function(){var h=this.fragCurrent,d=this.partCurrent,s=this.hls,u=s.maxAutoLevel,w=s.config,E=s.minAutoLevel,_=s.media,P=d?d.duration:h?h.duration:0,R=_?_.currentTime:0,x=_&&_.playbackRate!==0?Math.abs(_.playbackRate):1,S=this.bwEstimator?this.bwEstimator.getEstimate():w.abrEwmaDefaultEstimate,v=(A.BufferHelper.bufferInfo(_,R,w.maxBufferHole).end-R)/x,T=this.findBestLevel(S,E,u,v,w.abrBandWidthFactor,w.abrBandWidthUpFactor);if(T>=0)return T;f.logger.trace((v?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var U=P?Math.min(P,w.maxStarvationDelay):w.maxStarvationDelay,I=w.abrBandWidthFactor,N=w.abrBandWidthUpFactor;if(!v){var V=this.bitrateTestDelay;if(V){var H=P?Math.min(P,w.maxLoadingDelay):w.maxLoadingDelay;U=H-V,f.logger.trace("bitrate test took "+Math.round(1e3*V)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*U)+" ms"),I=N=1}}return T=this.findBestLevel(S,E,u,v+U,I,N),Math.max(T,0)},r.findBestLevel=function(h,d,s,u,w,E){for(var _,P=this.fragCurrent,R=this.partCurrent,x=this.lastLoadedFragLevel,S=this.hls.levels,v=S[x],T=!!(v!=null&&(_=v.details)!==null&&_!==void 0&&_.live),U=v==null?void 0:v.codecSet,I=R?R.duration:P?P.duration:0,N=s;N>=d;N--){var V=S[N];if(!V||U&&V.codecSet!==U)continue;var H=V.details,D=(R?H==null?void 0:H.partTarget:H==null?void 0:H.averagetargetduration)||I,W=void 0;N<=x?W=w*h:W=E*h;var F=S[N].maxBitrate,L=F*D/W;if(f.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+N+"/"+Math.round(W)+"/"+F+"/"+D+"/"+u+"/"+L),W>F&&(!L||T&&!this.bitrateTestDelay||L<u))return N}return-1},l(i,[{key:"nextAutoLevel",get:function(){var h=this._nextAutoLevel,d=this.bwEstimator;if(h!==-1&&(!d||!d.canEstimate()))return h;var s=this.getNextABRAutoLevel();return h!==-1&&(s=Math.min(h,s)),s},set:function(h){this._nextAutoLevel=h}}]),i}();m.default=n},"./src/controller/audio-stream-controller.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/polyfills/number.ts"),y=O("./src/controller/base-stream-controller.ts"),C=O("./src/events.ts"),A=O("./src/utils/buffer-helper.ts"),g=O("./src/controller/fragment-tracker.ts"),e=O("./src/types/level.ts"),f=O("./src/types/loader.ts"),a=O("./src/loader/fragment.ts"),l=O("./src/demux/chunk-cache.ts"),n=O("./src/demux/transmuxer-interface.ts"),i=O("./src/types/transmuxer.ts"),r=O("./src/controller/fragment-finders.ts"),c=O("./src/utils/discontinuities.ts"),h=O("./src/errors.ts"),d=O("./src/utils/logger.ts");function s(){return s=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var x=arguments[R];for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(P[S]=x[S])}return P},s.apply(this,arguments)}function u(P,R){P.prototype=Object.create(R.prototype),P.prototype.constructor=P,w(P,R)}function w(P,R){return w=Object.setPrototypeOf||function(S,v){return S.__proto__=v,S},w(P,R)}var E=100,_=function(P){u(R,P);function R(S,v){var T;return T=P.call(this,S,v,"[audio-stream-controller]")||this,T.videoBuffer=null,T.videoTrackCC=-1,T.waitingVideoCC=-1,T.audioSwitch=!1,T.trackId=-1,T.waitingData=null,T.mainDetails=null,T.bufferFlushed=!1,T._registerListeners(),T}var x=R.prototype;return x.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},x._registerListeners=function(){var v=this.hls;v.on(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),v.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),v.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),v.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),v.on(C.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),v.on(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),v.on(C.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),v.on(C.Events.ERROR,this.onError,this),v.on(C.Events.BUFFER_RESET,this.onBufferReset,this),v.on(C.Events.BUFFER_CREATED,this.onBufferCreated,this),v.on(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),v.on(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),v.on(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},x._unregisterListeners=function(){var v=this.hls;v.off(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),v.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),v.off(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),v.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),v.off(C.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),v.off(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),v.off(C.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),v.off(C.Events.ERROR,this.onError,this),v.off(C.Events.BUFFER_RESET,this.onBufferReset,this),v.off(C.Events.BUFFER_CREATED,this.onBufferCreated,this),v.off(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),v.off(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),v.off(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},x.onInitPtsFound=function(v,T){var U=T.frag,I=T.id,N=T.initPTS;if(I==="main"){var V=U.cc;this.initPTS[U.cc]=N,this.log("InitPTS for cc: "+V+" found from main: "+N),this.videoTrackCC=V,this.state===y.State.WAITING_INIT_PTS&&this.tick()}},x.startLoad=function(v){if(!this.levels){this.startPosition=v,this.state=y.State.STOPPED;return}var T=this.lastCurrentTime;this.stopLoad(),this.setInterval(E),this.fragLoadError=0,T>0&&v===-1?(this.log("Override startPosition with lastCurrentTime @"+T.toFixed(3)),this.state=y.State.IDLE):(this.loadedmetadata=!1,this.state=y.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=v,this.tick()},x.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_TRACK:{var v,T=this.levels,U=this.trackId,I=T==null||((v=T[U])===null||v===void 0)?void 0:v.details;if(I){if(this.waitForCdnTuneIn(I))break;this.state=y.State.WAITING_INIT_PTS}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var N,V=performance.now(),H=this.retryDate;(!H||V>=H||(N=this.media)!==null&&N!==void 0&&N.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=y.State.IDLE);break}case y.State.WAITING_INIT_PTS:{var D=this.waitingData;if(D){var W=D.frag,F=D.part,L=D.cache,K=D.complete;if(this.initPTS[W.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.FRAG_LOADING;var ee=L.flush(),he={frag:W,part:F,payload:ee,networkDetails:null};this._handleFragmentLoadProgress(he),K&&P.prototype._handleFragmentLoadComplete.call(this,he)}else if(this.videoTrackCC!==this.waitingVideoCC)d.logger.log("Waiting fragment cc ("+W.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var fe=this.getLoadPosition(),Ce=A.BufferHelper.bufferInfo(this.mediaBuffer,fe,this.config.maxBufferHole),Te=Object(r.fragmentWithinToleranceTest)(Ce.end,this.config.maxFragLookUpTolerance,W);Te<0&&(d.logger.log("Waiting fragment cc ("+W.cc+") @ "+W.start+" cancelled because another fragment at "+Ce.end+" is needed"),this.clearWaitingFragment())}}else this.state=y.State.IDLE}}this.onTickEnd()},x.clearWaitingFragment=function(){var v=this.waitingData;v&&(this.fragmentTracker.removeFragment(v.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.IDLE)},x.onTickEnd=function(){var v=this.media;if(!v||!v.readyState)return;var T=this.mediaBuffer?this.mediaBuffer:v,U=T.buffered;!this.loadedmetadata&&U.length&&(this.loadedmetadata=!0),this.lastCurrentTime=v.currentTime},x.doTickIdle=function(){var v,T,U=this.hls,I=this.levels,N=this.media,V=this.trackId,H=U.config;if(!I||!I[V])return;if(!N&&(this.startFragRequested||!H.startFragPrefetch))return;var D=I[V],W=D.details;if(!W||W.live&&this.levelLastLoaded!==V||this.waitForCdnTuneIn(W)){this.state=y.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,a.ElementaryStreamTypes.AUDIO,f.PlaylistLevelType.AUDIO));var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,f.PlaylistLevelType.AUDIO);if(F===null)return;var L=F.len,K=this.getMaxBufferLength(),ee=this.audioSwitch;if(L>=K&&!ee)return;if(!ee&&this._streamEnded(F,W)){U.trigger(C.Events.BUFFER_EOS,{type:"audio"}),this.state=y.State.ENDED;return}var he=W.fragments,fe=he[0].start,Ce=F.end;if(ee){var Te=this.getLoadPosition();Ce=Te,W.PTSKnown&&Te<fe&&((F.end>fe||F.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),N.currentTime=fe+.05))}var ce=this.getNextFragment(Ce,W);if(!ce){this.bufferFlushed=!0;return}((v=ce.decryptdata)===null||v===void 0?void 0:v.keyFormat)==="identity"&&!((T=ce.decryptdata)!==null&&T!==void 0&&T.key)?this.loadKey(ce,W):this.loadFragment(ce,W,Ce)},x.getMaxBufferLength=function(){var v=P.prototype.getMaxBufferLength.call(this),T=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,f.PlaylistLevelType.MAIN);return T===null?v:Math.max(v,T.len)},x.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},x.onAudioTracksUpdated=function(v,T){var U=T.audioTracks;this.resetTransmuxer(),this.levels=U.map(function(I){return new e.Level(I)})},x.onAudioTrackSwitching=function(v,T){var U=!!T.url;this.trackId=T.id;var I=this.fragCurrent;I!=null&&I.loader&&I.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),U?this.setInterval(E):this.resetTransmuxer(),U?(this.audioSwitch=!0,this.state=y.State.IDLE):this.state=y.State.STOPPED,this.tick()},x.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},x.onLevelLoaded=function(v,T){this.mainDetails=T.details},x.onAudioTrackLoaded=function(v,T){var U,I=this.levels,N=T.details,V=T.id;if(!I){this.warn("Audio tracks were reset while loading level "+V);return}this.log("Track "+V+" loaded ["+N.startSN+","+N.endSN+"],duration:"+N.totalduration);var H=I[V],D=0;if(N.live||(U=H.details)!==null&&U!==void 0&&U.live){var W=this.mainDetails;if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed||!W)return;!H.details&&N.hasProgramDateTime&&W.hasProgramDateTime?(Object(c.alignMediaPlaylistByPDT)(N,W),D=N.fragments[0].start):D=this.alignPlaylists(N,H.details)}H.details=N,this.levelLastLoaded=V,!this.startFragRequested&&(this.mainDetails||!N.live)&&this.setStartPosition(H.details,D),this.state===y.State.WAITING_TRACK&&!this.waitForCdnTuneIn(N)&&(this.state=y.State.IDLE),this.tick()},x._handleFragmentLoadProgress=function(v){var T,U=v.frag,I=v.part,N=v.payload,V=this.config,H=this.trackId,D=this.levels;if(!D){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+U.sn+" of level "+U.level+" will not be buffered");return}var W=D[H];console.assert(W,"Audio track is defined on fragment load progress");var F=W.details;console.assert(F,"Audio track details are defined on fragment load progress");var L=V.defaultAudioCodec||W.audioCodec||"mp4a.40.2",K=this.transmuxer;K||(K=this.transmuxer=new n.default(this.hls,f.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ee=this.initPTS[U.cc],he=(T=U.initSegment)===null||T===void 0?void 0:T.data;if(ee!==void 0){var fe=!1,Ce=I?I.index:-1,Te=Ce!==-1,ce=new i.ChunkMetadata(U.level,U.sn,U.stats.chunkCount,N.byteLength,Ce,Te);K.push(N,he,L,"",U,I,F.totalduration,fe,ce,ee)}else{d.logger.log("Unknown video PTS for cc "+U.cc+", waiting for video PTS before demuxing audio frag "+U.sn+" of ["+F.startSN+" ,"+F.endSN+"],track "+H);var ye=this.waitingData=this.waitingData||{frag:U,part:I,cache:new l.default,complete:!1},Ee=ye.cache;Ee.push(new Uint8Array(N)),this.waitingVideoCC=this.videoTrackCC,this.state=y.State.WAITING_INIT_PTS}},x._handleFragmentLoadComplete=function(v){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,v)},x.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},x.onBufferCreated=function(v,T){var U=T.tracks.audio;U&&(this.mediaBuffer=U.buffer),T.tracks.video&&(this.videoBuffer=T.tracks.video.buffer)},x.onFragBuffered=function(v,T){var U=T.frag,I=T.part;if(U.type!==f.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(U)){this.warn("Fragment "+U.sn+(I?" p: "+I.index:"")+" of level "+U.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}U.sn!=="initSegment"&&(this.fragPrevious=U,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(U,I)},x.onError=function(v,T){switch(T.details){case h.ErrorDetails.FRAG_LOAD_ERROR:case h.ErrorDetails.FRAG_LOAD_TIMEOUT:case h.ErrorDetails.KEY_LOAD_ERROR:case h.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f.PlaylistLevelType.AUDIO,T);break;case h.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case h.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==y.State.ERROR&&this.state!==y.State.STOPPED&&(this.state=T.fatal?y.State.ERROR:y.State.IDLE,this.warn(T.details+" while loading frag, switching to "+this.state+" state"));break;case h.ErrorDetails.BUFFER_FULL_ERROR:if(T.parent==="audio"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var U=!0,I=this.getFwdBufferInfo(this.mediaBuffer,f.PlaylistLevelType.AUDIO);I&&I.len>.5&&(U=!this.reduceMaxBufferLength(I.len)),U&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},x.onBufferFlushed=function(v,T){var U=T.type;U===a.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},x._handleTransmuxComplete=function(v){var T,U="audio",I=this.hls,N=v.remuxResult,V=v.chunkMeta,H=this.getCurrentContext(V);if(!H){this.warn("The loading context changed while buffering fragment "+V.sn+" of level "+V.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(V.level);return}var D=H.frag,W=H.part,F=N.audio,L=N.text,K=N.id3,ee=N.initSegment;if(this.fragContextChanged(D))return;if(this.state=y.State.PARSING,this.audioSwitch&&F&&this.completeAudioSwitch(),ee!=null&&ee.tracks&&(this._bufferInitSegment(ee.tracks,D,V),I.trigger(C.Events.FRAG_PARSING_INIT_SEGMENT,{frag:D,id:U,tracks:ee.tracks})),F){var he=F.startPTS,fe=F.endPTS,Ce=F.startDTS,Te=F.endDTS;W&&(W.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:he,endPTS:fe,startDTS:Ce,endDTS:Te}),D.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,he,fe,Ce,Te),this.bufferFragmentData(F,D,W,V)}if(K!=null&&(T=K.samples)!==null&&T!==void 0&&T.length){var ce=s({frag:D,id:U},K);I.trigger(C.Events.FRAG_PARSING_METADATA,ce)}if(L){var ye=s({frag:D,id:U},L);I.trigger(C.Events.FRAG_PARSING_USERDATA,ye)}},x._bufferInitSegment=function(v,T,U){if(this.state!==y.State.PARSING)return;v.video&&delete v.video;var I=v.audio;if(!I)return;I.levelCodec=I.codec,I.id="audio",this.log("Init audio buffer, container:"+I.container+", codecs[parsed]=["+I.codec+"]"),this.hls.trigger(C.Events.BUFFER_CODECS,v);var N=I.initSegment;if(N!=null&&N.byteLength){var V={type:"audio",frag:T,part:null,chunkMeta:U,parent:T.type,data:N};this.hls.trigger(C.Events.BUFFER_APPENDING,V)}this.tick()},x.loadFragment=function(v,T,U){var I=this.fragmentTracker.getState(v);this.fragCurrent=v,(this.audioSwitch||I===g.FragmentState.NOT_LOADED||I===g.FragmentState.PARTIAL)&&(v.sn==="initSegment"?this._loadInitSegment(v):T.live&&!Object(b.isFiniteNumber)(this.initPTS[v.cc])?(this.log("Waiting for video PTS in continuity counter "+v.cc+" of live stream before loading audio fragment "+v.sn+" of level "+this.trackId),this.state=y.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,v,T,U)))},x.completeAudioSwitch=function(){var v=this.hls,T=this.media,U=this.trackId;T&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,v.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:U})},R}(y.default);m.default=_},"./src/controller/audio-track-controller.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/events.ts"),y=O("./src/errors.ts"),C=O("./src/controller/base-playlist-controller.ts"),A=O("./src/types/loader.ts");function g(n,i){for(var r=0;r<i.length;r++){var c=i[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(n,c.key,c)}}function e(n,i,r){return i&&g(n.prototype,i),r&&g(n,r),n}function f(n,i){n.prototype=Object.create(i.prototype),n.prototype.constructor=n,a(n,i)}function a(n,i){return a=Object.setPrototypeOf||function(c,h){return c.__proto__=h,c},a(n,i)}var l=function(n){f(i,n);function i(c){var h;return h=n.call(this,c,"[audio-track-controller]")||this,h.tracks=[],h.groupId=null,h.tracksInGroup=[],h.trackId=-1,h.trackName="",h.selectDefaultTrack=!0,h.registerListeners(),h}var r=i.prototype;return r.registerListeners=function(){var h=this.hls;h.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.on(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),h.on(b.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){var h=this.hls;h.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.off(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),h.off(b.Events.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,n.prototype.destroy.call(this)},r.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},r.onManifestParsed=function(h,d){this.tracks=d.audioTracks||[]},r.onAudioTrackLoaded=function(h,d){var s=d.id,u=d.details,w=this.tracksInGroup[s];if(!w){this.warn("Invalid audio track id "+s);return}var E=w.details;w.details=d.details,this.log("audioTrack "+s+" loaded ["+u.startSN+"-"+u.endSN+"]"),s===this.trackId&&(this.retryCount=0,this.playlistLoaded(s,d,E))},r.onLevelLoading=function(h,d){this.switchLevel(d.level)},r.onLevelSwitching=function(h,d){this.switchLevel(d.level)},r.switchLevel=function(h){var d=this.hls.levels[h];if(!(d!=null&&d.audioGroupIds))return;var s=d.audioGroupIds[d.urlId];if(this.groupId!==s){this.groupId=s;var u=this.tracks.filter(function(E){return!s||E.groupId===s});this.selectDefaultTrack&&!u.some(function(E){return E.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=u;var w={audioTracks:u};this.log("Updating audio tracks, "+u.length+' track(s) found in "'+s+'" group-id'),this.hls.trigger(b.Events.AUDIO_TRACKS_UPDATED,w),this.selectInitialTrack()}},r.onError=function(h,d){if(n.prototype.onError.call(this,h,d),d.fatal||!d.context)return;d.context.type===A.PlaylistContextType.AUDIO_TRACK&&d.context.id===this.trackId&&d.context.groupId===this.groupId&&this.retryLoadingOrFail(d)},r.setAudioTrack=function(h){var d=this.tracksInGroup;if(h<0||h>=d.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var s=d[this.trackId];this.log("Now switching to audio-track index "+h);var u=d[h],w=u.id,E=u.groupId,_=E===void 0?"":E,P=u.name,R=u.type,x=u.url;if(this.trackId=h,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(b.Events.AUDIO_TRACK_SWITCHING,{id:w,groupId:_,name:P,type:R,url:x}),u.details&&!u.details.live)return;var S=this.switchParams(u.url,s==null?void 0:s.details);this.loadPlaylist(S)},r.selectInitialTrack=function(){var h=this.tracksInGroup;console.assert(h.length,"Initial audio track should be selected when tracks are known");var d=this.trackName,s=this.findTrackId(d)||this.findTrackId();s!==-1?this.setAudioTrack(s):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},r.findTrackId=function(h){for(var d=this.tracksInGroup,s=0;s<d.length;s++){var u=d[s];if((!this.selectDefaultTrack||u.default)&&(!h||h===u.name))return u.id}return-1},r.loadPlaylist=function(h){var d=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(d)){var s=d.id,u=d.groupId,w=d.url;if(h)try{w=h.addDirectives(w)}catch(E){this.warn("Could not construct new URL with HLS Delivery Directives: "+E)}this.log("loading audio-track playlist for id: "+s),this.clearTimer(),this.hls.trigger(b.Events.AUDIO_TRACK_LOADING,{url:w,id:s,groupId:u,deliveryDirectives:h||null})}},e(i,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(h){this.selectDefaultTrack=!1,this.setAudioTrack(h)}}]),i}(C.default);m.default=l},"./src/controller/base-playlist-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return e});var b=O("./src/polyfills/number.ts"),y=O("./src/types/level.ts"),C=O("./src/controller/level-helper.ts"),A=O("./src/utils/logger.ts"),g=O("./src/errors.ts"),e=function(){function f(l,n){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=A.logger.log.bind(A.logger,n+":"),this.warn=A.logger.warn.bind(A.logger,n+":"),this.hls=l}var a=f.prototype;return a.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},a.onError=function(n,i){i.fatal&&i.type===g.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},a.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},a.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},a.stopLoad=function(){this.canLoad=!1,this.clearTimer()},a.switchParams=function(n,i){var r=i==null?void 0:i.renditionReports;if(r)for(var c=0;c<r.length;c++){var h=r[c],d=""+h.URI;if(d===n.substr(-d.length)){var s=parseInt(h["LAST-MSN"]),u=parseInt(h["LAST-PART"]);if(i&&this.hls.config.lowLatencyMode){var w=Math.min(i.age-i.partTarget,i.targetduration);u!==void 0&&w>i.partTarget&&(u+=1)}if(Object(b.isFiniteNumber)(s))return new y.HlsUrlParameters(s,Object(b.isFiniteNumber)(u)?u:void 0,y.HlsSkip.No)}}},a.loadPlaylist=function(n){},a.shouldLoadTrack=function(n){return this.canLoad&&n&&!!n.url&&(!n.details||n.details.live)},a.playlistLoaded=function(n,i,r){var c=this,h=i.details,d=i.stats,s=d.loading.end?Math.max(0,self.performance.now()-d.loading.end):0;if(h.advancedDateTime=Date.now()-s,h.live||r!=null&&r.live){if(h.reloaded(r),r&&this.log("live playlist "+n+" "+(h.advanced?"REFRESHED "+h.lastPartSn+"-"+h.lastPartIndex:"MISSED")),r&&h.fragments.length>0&&Object(C.mergeDetails)(r,h),!this.canLoad||!h.live)return;var u,w=void 0,E=void 0;if(h.canBlockReload&&h.endSN&&h.advanced){var _=this.hls.config.lowLatencyMode,P=h.lastPartSn,R=h.endSN,x=h.lastPartIndex,S=x!==-1,v=P===R,T=_?0:x;S?(w=v?R+1:P,E=v?T:x+1):w=R+1;var U=h.age,I=U+h.ageHeader,N=Math.min(I-h.partTarget,h.targetduration*1.5);if(N>0){if(r&&N>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+N+" with playlist age: "+h.age),N=0;else{var V=Math.floor(N/h.targetduration);if(w+=V,E!==void 0){var H=Math.round(N%h.targetduration/h.partTarget);E+=H}this.log("CDN Tune-in age: "+h.ageHeader+"s last advanced "+U.toFixed(2)+"s goal: "+N+" skip sn "+V+" to part "+E)}h.tuneInGoal=N}if(u=this.getDeliveryDirectives(h,i.deliveryDirectives,w,E),_||!v){this.loadPlaylist(u);return}}else u=this.getDeliveryDirectives(h,i.deliveryDirectives,w,E);var D=Object(C.computeReloadInterval)(h,d);w!==void 0&&h.canBlockReload&&(D-=h.partTarget||1),this.log("reload live playlist "+n+" in "+Math.round(D)+" ms"),this.timer=self.setTimeout(function(){return c.loadPlaylist(u)},D)}else this.clearTimer()},a.getDeliveryDirectives=function(n,i,r,c){var h=Object(y.getSkipValue)(n,r);return i!=null&&i.skip&&n.deltaUpdateFailed&&(r=i.msn,c=i.part,h=y.HlsSkip.No),new y.HlsUrlParameters(r,c,h)},a.retryLoadingOrFail=function(n){var i=this,r=this.hls.config,c=this.retryCount<r.levelLoadingMaxRetry;if(c){var h;if(this.retryCount++,n.details.indexOf("LoadTimeOut")>-1&&(h=n.context)!==null&&h!==void 0&&h.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+n.details+'"'),this.loadPlaylist();else{var d=Math.min(Math.pow(2,this.retryCount)*r.levelLoadingRetryDelay,r.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return i.loadPlaylist()},d),this.warn("retry playlist loading #"+this.retryCount+" in "+d+' ms after "'+n.details+'"')}}else this.warn('cannot recover from error "'+n.details+'"'),this.clearTimer(),n.fatal=!0;return c},f}()},"./src/controller/base-stream-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"State",function(){return R}),O.d(m,"default",function(){return x});var b=O("./src/polyfills/number.ts"),y=O("./src/task-loop.ts"),C=O("./src/controller/fragment-tracker.ts"),A=O("./src/utils/buffer-helper.ts"),g=O("./src/utils/logger.ts"),e=O("./src/events.ts"),f=O("./src/errors.ts"),a=O("./src/types/transmuxer.ts"),l=O("./src/utils/mp4-tools.ts"),n=O("./src/utils/discontinuities.ts"),i=O("./src/controller/fragment-finders.ts"),r=O("./src/controller/level-helper.ts"),c=O("./src/loader/fragment-loader.ts"),h=O("./src/crypt/decrypter.ts"),d=O("./src/utils/time-ranges.ts"),s=O("./src/types/loader.ts");function u(S,v){for(var T=0;T<v.length;T++){var U=v[T];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(S,U.key,U)}}function w(S,v,T){return v&&u(S.prototype,v),T&&u(S,T),S}function E(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function _(S,v){S.prototype=Object.create(v.prototype),S.prototype.constructor=S,P(S,v)}function P(S,v){return P=Object.setPrototypeOf||function(U,I){return U.__proto__=I,U},P(S,v)}var R={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},x=function(S){_(v,S);function v(U,I,N){var V;return V=S.call(this)||this,V.hls=void 0,V.fragPrevious=null,V.fragCurrent=null,V.fragmentTracker=void 0,V.transmuxer=null,V._state=R.STOPPED,V.media=void 0,V.mediaBuffer=void 0,V.config=void 0,V.bitrateTest=!1,V.lastCurrentTime=0,V.nextLoadPosition=0,V.startPosition=0,V.loadedmetadata=!1,V.fragLoadError=0,V.retryDate=0,V.levels=null,V.fragmentLoader=void 0,V.levelLastLoaded=null,V.startFragRequested=!1,V.decrypter=void 0,V.initPTS=[],V.onvseeking=null,V.onvended=null,V.logPrefix="",V.log=void 0,V.warn=void 0,V.logPrefix=N,V.log=g.logger.log.bind(g.logger,N+":"),V.warn=g.logger.warn.bind(g.logger,N+":"),V.hls=U,V.fragmentLoader=new c.default(U.config),V.fragmentTracker=I,V.config=U.config,V.decrypter=new h.default(U,U.config),U.on(e.Events.KEY_LOADED,V.onKeyLoaded,E(V)),V}var T=v.prototype;return T.doTick=function(){this.onTickEnd()},T.onTickEnd=function(){},T.startLoad=function(I){},T.stopLoad=function(){this.fragmentLoader.abort();var I=this.fragCurrent;I&&this.fragmentTracker.removeFragment(I),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=R.STOPPED},T._streamEnded=function(I,N){var V=this.fragCurrent,H=this.fragmentTracker;if(!N.live&&V&&V.sn===N.endSN&&!I.nextStart){var D=H.getState(V);return D===C.FragmentState.PARTIAL||D===C.FragmentState.OK}return!1},T.onMediaAttached=function(I,N){var V=this.media=this.mediaBuffer=N.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),V.addEventListener("seeking",this.onvseeking),V.addEventListener("ended",this.onvended);var H=this.config;this.levels&&H.autoStartLoad&&this.state===R.STOPPED&&this.startLoad(H.startPosition)},T.onMediaDetaching=function(){var I=this.media;I!=null&&I.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),I&&(I.removeEventListener("seeking",this.onvseeking),I.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},T.onMediaSeeking=function(){var I=this.config,N=this.fragCurrent,V=this.media,H=this.mediaBuffer,D=this.state,W=V?V.currentTime:0,F=A.BufferHelper.bufferInfo(H||V,W,I.maxBufferHole);if(this.log("media seeking to "+(Object(b.isFiniteNumber)(W)?W.toFixed(3):W)+", state: "+D),D===R.ENDED)this.resetLoadingState();else if(N&&!F.len){var L=I.maxFragLookUpTolerance,K=N.start-L,ee=N.start+N.duration+L,he=W>ee;(W<K||he)&&(he&&N.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),N.loader.abort()),this.resetLoadingState())}V&&(this.lastCurrentTime=W),!this.loadedmetadata&&!F.len&&(this.nextLoadPosition=this.startPosition=W),this.tickImmediate()},T.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},T.onKeyLoaded=function(I,N){if(this.state!==R.KEY_LOADING||N.frag!==this.fragCurrent||!this.levels)return;this.state=R.IDLE;var V=this.levels[N.frag.level].details;V&&this.loadFragment(N.frag,V,N.frag.start)},T.onHandlerDestroying=function(){this.stopLoad(),S.prototype.onHandlerDestroying.call(this)},T.onHandlerDestroyed=function(){this.state=R.STOPPED,this.hls.off(e.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,S.prototype.onHandlerDestroyed.call(this)},T.loadKey=function(I,N){this.log("Loading key for "+I.sn+" of ["+N.startSN+"-"+N.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+I.level),this.state=R.KEY_LOADING,this.fragCurrent=I,this.hls.trigger(e.Events.KEY_LOADING,{frag:I})},T.loadFragment=function(I,N,V){this._loadFragForPlayback(I,N,V)},T._loadFragForPlayback=function(I,N,V){var H=this,D=function(F){if(H.fragContextChanged(I)){H.warn("Fragment "+I.sn+(F.part?" p: "+F.part.index:"")+" of level "+I.level+" was dropped during download."),H.fragmentTracker.removeFragment(I);return}I.stats.chunkCount++,H._handleFragmentLoadProgress(F)};this._doFragLoad(I,N,V,D).then(function(W){if(!W)return;H.fragLoadError=0;var F=H.state;if(H.fragContextChanged(I)){(F===R.FRAG_LOADING||F===R.BACKTRACKING||!H.fragCurrent&&F===R.PARSING)&&(H.fragmentTracker.removeFragment(I),H.state=R.IDLE);return}if("payload"in W&&(H.log("Loaded fragment "+I.sn+" of level "+I.level),H.hls.trigger(e.Events.FRAG_LOADED,W),H.state===R.BACKTRACKING)){H.fragmentTracker.backtrack(I,W),H.resetFragmentLoading(I);return}H._handleFragmentLoadComplete(W)}).catch(function(W){H.warn(W),H.resetFragmentLoading(I)})},T.flushMainBuffer=function(I,N,V){if(V===void 0&&(V=null),!(I-N))return;var H={startOffset:I,endOffset:N,type:V};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,H)},T._loadInitSegment=function(I){var N=this;this._doFragLoad(I).then(function(V){if(!V||N.fragContextChanged(I)||!N.levels)throw new Error("init load aborted");return V}).then(function(V){var H=N.hls,D=V.payload,W=I.decryptdata;if(D&&D.byteLength>0&&W&&W.key&&W.iv&&W.method==="AES-128"){var F=self.performance.now();return N.decrypter.webCryptoDecrypt(new Uint8Array(D),W.key.buffer,W.iv.buffer).then(function(L){var K=self.performance.now();return H.trigger(e.Events.FRAG_DECRYPTED,{frag:I,payload:L,stats:{tstart:F,tdecrypt:K}}),V.payload=L,V})}return V}).then(function(V){var H=N.fragCurrent,D=N.hls,W=N.levels;if(!W)throw new Error("init load aborted, missing levels");var F=W[I.level].details;console.assert(F,"Level details are defined when init segment is loaded");var L=I.stats;N.state=R.IDLE,N.fragLoadError=0,I.data=new Uint8Array(V.payload),L.parsing.start=L.buffering.start=self.performance.now(),L.parsing.end=L.buffering.end=self.performance.now(),V.frag===H&&D.trigger(e.Events.FRAG_BUFFERED,{stats:L,frag:H,part:null,id:I.type}),N.tick()}).catch(function(V){N.warn(V),N.resetFragmentLoading(I)})},T.fragContextChanged=function(I){var N=this.fragCurrent;return!I||!N||I.level!==N.level||I.sn!==N.sn||I.urlId!==N.urlId},T.fragBufferedComplete=function(I,N){var V=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+I.type+" sn: "+I.sn+(N?" part: "+N.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+I.level+" "+d.default.toString(A.BufferHelper.getBuffered(V))),this.state=R.IDLE,this.tick()},T._handleFragmentLoadComplete=function(I){var N=this.transmuxer;if(!N)return;var V=I.frag,H=I.part,D=I.partsLoaded,W=!D||D.length===0||D.some(function(L){return!L}),F=new a.ChunkMetadata(V.level,V.sn,V.stats.chunkCount+1,0,H?H.index:-1,!W);N.flush(F)},T._handleFragmentLoadProgress=function(I){},T._doFragLoad=function(I,N,V,H){var D=this;if(V===void 0&&(V=null),!this.levels)throw new Error("frag load aborted, missing levels");if(V=Math.max(I.start,V||0),this.config.lowLatencyMode&&N){var W=N.partList;if(W&&H){V>I.end&&N.fragmentHint&&(I=N.fragmentHint);var F=this.getNextPart(W,I,V);if(F>-1){var L=W[F];return this.log("Loading part sn: "+I.sn+" p: "+L.index+" cc: "+I.cc+" of playlist ["+N.startSN+"-"+N.endSN+"] parts [0-"+F+"-"+(W.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(V.toFixed(3))),this.nextLoadPosition=L.start+L.duration,this.state=R.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:I,part:W[F],targetBufferTime:V}),this.doFragPartsLoad(I,W,F,H).catch(function(K){return D.handleFragLoadError(K)})}else if(!I.url||this.loadedEndOfParts(W,V))return Promise.resolve(null)}}return this.log("Loading fragment "+I.sn+" cc: "+I.cc+" "+(N?"of ["+N.startSN+"-"+N.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(V.toFixed(3))),Object(b.isFiniteNumber)(I.sn)&&!this.bitrateTest&&(this.nextLoadPosition=I.start+I.duration),this.state=R.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:I,targetBufferTime:V}),this.fragmentLoader.load(I,H).catch(function(K){return D.handleFragLoadError(K)})},T.doFragPartsLoad=function(I,N,V,H){var D=this;return new Promise(function(W,F){var L=[],K=function ee(he){var fe=N[he];D.fragmentLoader.loadPart(I,fe,H).then(function(Ce){L[fe.index]=Ce;var Te=Ce.part;D.hls.trigger(e.Events.FRAG_LOADED,Ce);var ce=N[he+1];if(ce&&ce.fragment===I)ee(he+1);else return W({frag:I,part:Te,partsLoaded:L})}).catch(F)};K(V)})},T.handleFragLoadError=function(I){var N=I.data;return N&&N.details===f.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(N.frag,N.part):this.hls.trigger(e.Events.ERROR,N),null},T._handleTransmuxerFlush=function(I){var N=this.getCurrentContext(I);if(!N||this.state!==R.PARSING){this.fragCurrent||(this.state=R.IDLE);return}var V=N.frag,H=N.part,D=N.level,W=self.performance.now();V.stats.parsing.end=W,H&&(H.stats.parsing.end=W),this.updateLevelTiming(V,H,D,I.partial)},T.getCurrentContext=function(I){var N=this.levels,V=I.level,H=I.sn,D=I.part;if(!N||!N[V])return this.warn("Levels object was unset while buffering fragment "+H+" of level "+V+". The current chunk will not be buffered."),null;var W=N[V],F=D>-1?Object(r.getPartWith)(W,H,D):null,L=F?F.fragment:Object(r.getFragmentWithSN)(W,H,this.fragCurrent);return L?{frag:L,part:F,level:W}:null},T.bufferFragmentData=function(I,N,V,H){if(!I||this.state!==R.PARSING)return;var D=I.data1,W=I.data2,F=D;if(D&&W&&(F=Object(l.appendUint8Array)(D,W)),!F||!F.length)return;var L={type:I.type,frag:N,part:V,chunkMeta:H,parent:N.type,data:F};this.hls.trigger(e.Events.BUFFER_APPENDING,L),I.dropped&&I.independent&&!V&&this.flushBufferGap(N)},T.flushBufferGap=function(I){var N=this.media;if(!N)return;if(!A.BufferHelper.isBuffered(N,N.currentTime)){this.flushMainBuffer(0,I.start);return}var V=N.currentTime,H=A.BufferHelper.bufferInfo(N,V,0),D=I.duration,W=Math.min(this.config.maxFragLookUpTolerance*2,D*.25),F=Math.max(Math.min(I.start-W,H.end-W),V+W);I.start-F>W&&this.flushMainBuffer(F,I.start)},T.getFwdBufferInfo=function(I,N){var V=this.config,H=this.getLoadPosition();if(!Object(b.isFiniteNumber)(H))return null;var D=A.BufferHelper.bufferInfo(I,H,V.maxBufferHole);if(D.len===0&&D.nextStart!==void 0){var W=this.fragmentTracker.getBufferedFrag(H,N);if(W&&D.nextStart<W.end)return A.BufferHelper.bufferInfo(I,H,Math.max(D.nextStart,V.maxBufferHole))}return D},T.getMaxBufferLength=function(I){var N=this.config,V;return I?V=Math.max(8*N.maxBufferSize/I,N.maxBufferLength):V=N.maxBufferLength,Math.min(V,N.maxMaxBufferLength)},T.reduceMaxBufferLength=function(I){var N=this.config,V=I||N.maxBufferLength;return N.maxMaxBufferLength>=V?(N.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+N.maxMaxBufferLength+"s"),!0):!1},T.getNextFragment=function(I,N){var V,H,D=N.fragments,W=D.length;if(!W)return null;var F=this.config,L=D[0].start,K;if(N.live){var ee=F.initialLiveManifestSize;if(W<ee)return this.warn("Not enough fragments to start playback (have: "+W+", need: "+ee+")"),null;!N.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(K=this.getInitialLiveFragment(N,D),this.startPosition=K?this.hls.liveSyncPosition||K.start:I)}else I<=L&&(K=D[0]);if(!K){var he=F.lowLatencyMode?N.partEnd:N.fragmentEnd;K=this.getFragmentAtPosition(I,he,N)}return(V=K)!==null&&V!==void 0&&V.initSegment&&!((H=K)!==null&&H!==void 0&&H.initSegment.data)&&!this.bitrateTest&&(K=K.initSegment),K},T.getNextPart=function(I,N,V){for(var H=-1,D=!1,W=!0,F=0,L=I.length;F<L;F++){var K=I[F];if(W=W&&!K.independent,H>-1&&V<K.start)break;var ee=K.loaded;!ee&&(D||K.independent||W)&&K.fragment===N&&(H=F),D=ee}return H},T.loadedEndOfParts=function(I,N){var V=I[I.length-1];return V&&N>V.start&&V.loaded},T.getInitialLiveFragment=function(I,N){var V=this.fragPrevious,H=null;if(V){if(I.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+V.programDateTime),H=Object(i.findFragmentByPDT)(N,V.endProgramDateTime,this.config.maxFragLookUpTolerance)),!H){var D=V.sn+1;if(D>=I.startSN&&D<=I.endSN){var W=N[D-I.startSN];V.cc===W.cc&&(H=W,this.log("Live playlist, switching playlist, load frag with next SN: "+H.sn))}H||(H=Object(i.findFragWithCC)(N,V.cc),H&&this.log("Live playlist, switching playlist, load frag with same CC: "+H.sn))}}else{var F=this.hls.liveSyncPosition;F!==null&&(H=this.getFragmentAtPosition(F,this.bitrateTest?I.fragmentEnd:I.edge,I))}return H},T.getFragmentAtPosition=function(I,N,V){var H=this.config,D=this.fragPrevious,W=V.fragments,F=V.endSN,L=V.fragmentHint,K=H.maxFragLookUpTolerance,ee=!!(H.lowLatencyMode&&V.partList&&L);ee&&L&&!this.bitrateTest&&(W=W.concat(L),F=L.sn);var he;if(I<N){var fe=I>N-K?0:K;he=Object(i.findFragmentByPTS)(D,W,I,fe)}else he=W[W.length-1];if(he){var Ce=he.sn-V.startSN,Te=D&&he.level===D.level,ce=W[Ce+1],ye=this.fragmentTracker.getState(he);if(ye===C.FragmentState.BACKTRACKED){he=null;for(var Ee=Ce;W[Ee]&&this.fragmentTracker.getState(W[Ee])===C.FragmentState.BACKTRACKED;)D?he=W[Ee--]:he=W[--Ee];he||(he=ce)}else D&&he.sn===D.sn&&!ee&&(Te&&(he.sn<F&&this.fragmentTracker.getState(ce)!==C.FragmentState.OK?(this.log("SN "+he.sn+" just loaded, load next one: "+ce.sn),he=ce):he=null))}return he},T.synchronizeToLiveEdge=function(I){var N=this.config,V=this.media;if(!V)return;var H=this.hls.liveSyncPosition,D=V.currentTime,W=I.fragments[0].start,F=I.edge,L=D>=W-N.maxFragLookUpTolerance&&D<=F;if(H!==null&&V.duration>H&&(D<H||!L)){var K=N.liveMaxLatencyDuration!==void 0?N.liveMaxLatencyDuration:N.liveMaxLatencyDurationCount*I.targetduration;(!L&&V.readyState<4||D<F-K)&&(this.loadedmetadata||(this.nextLoadPosition=H),V.readyState&&(this.warn("Playback: "+D.toFixed(3)+" is located too far from the end of live sliding playlist: "+F+", reset currentTime to : "+H.toFixed(3)),V.currentTime=H))}},T.alignPlaylists=function(I,N){var V=this.levels,H=this.levelLastLoaded,D=this.fragPrevious,W=H!==null?V[H]:null,F=I.fragments.length;if(!F)return this.warn("No fragments in live playlist"),0;var L=I.fragments[0].start,K=!N,ee=I.alignedSliding&&Object(b.isFiniteNumber)(L);if(K||!ee&&!L){Object(n.alignStream)(D,W,I);var he=I.fragments[0].start;return this.log("Live playlist sliding: "+he.toFixed(2)+" start-sn: "+(N?N.startSN:"na")+"->"+I.startSN+" prev-sn: "+(D?D.sn:"na")+" fragments: "+F),he}return L},T.waitForCdnTuneIn=function(I){var N=3;return I.live&&I.canBlockReload&&I.tuneInGoal>Math.max(I.partHoldBack,I.partTarget*N)},T.setStartPosition=function(I,N){var V=this.startPosition;if(V<N&&(V=-1),V===-1||this.lastCurrentTime===-1){var H=I.startTimeOffset;Object(b.isFiniteNumber)(H)?(V=N+H,H<0&&(V+=I.totalduration),V=Math.min(Math.max(N,V),N+I.totalduration),this.log("Start time offset "+H+" found in playlist, adjust startPosition to "+V),this.startPosition=V):I.live?V=this.hls.liveSyncPosition||N:this.startPosition=V=0,this.lastCurrentTime=V}this.nextLoadPosition=V},T.getLoadPosition=function(){var I=this.media,N=0;return this.loadedmetadata&&I?N=I.currentTime:this.nextLoadPosition&&(N=this.nextLoadPosition),N},T.handleFragLoadAborted=function(I,N){this.transmuxer&&I.sn!=="initSegment"&&I.stats.aborted&&(this.warn("Fragment "+I.sn+(N?" part"+N.index:"")+" of level "+I.level+" was aborted"),this.resetFragmentLoading(I))},T.resetFragmentLoading=function(I){(!this.fragCurrent||!this.fragContextChanged(I))&&(this.state=R.IDLE)},T.onFragmentOrKeyLoadError=function(I,N){if(N.fatal)return;var V=N.frag;if(!V||V.type!==I)return;var H=this.fragCurrent;console.assert(H&&V.sn===H.sn&&V.level===H.level&&V.urlId===H.urlId,"Frag load error must match current frag to retry");var D=this.config;if(this.fragLoadError+1<=D.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(V.level))return;var W=Math.min(Math.pow(2,this.fragLoadError)*D.fragLoadingRetryDelay,D.fragLoadingMaxRetryTimeout);this.warn("Fragment "+V.sn+" of "+I+" "+V.level+" failed to load, retrying in "+W+"ms"),this.retryDate=self.performance.now()+W,this.fragLoadError++,this.state=R.FRAG_LOADING_WAITING_RETRY}else N.levelRetry?(I===s.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=R.IDLE):(g.logger.error(N.details+" reaches max retry, redispatch as fatal ..."),N.fatal=!0,this.hls.stopLoad(),this.state=R.ERROR)},T.afterBufferFlushed=function(I,N,V){if(!I)return;var H=A.BufferHelper.getBuffered(I);this.fragmentTracker.detectEvictedFragments(N,H,V),this.state===R.ENDED&&this.resetLoadingState()},T.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=R.IDLE},T.resetLiveStartWhenNotLoaded=function(I){if(!this.loadedmetadata){this.startFragRequested=!1;var N=this.levels?this.levels[I].details:null;if(N!=null&&N.live)return this.startPosition=-1,this.setStartPosition(N,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},T.updateLevelTiming=function(I,N,V,H){var D=this,W=V.details;console.assert(!!W,"level.details must be defined");var F=Object.keys(I.elementaryStreams).reduce(function(L,K){var ee=I.elementaryStreams[K];if(ee){var he=ee.endPTS-ee.startPTS;if(he<=0)return D.warn("Could not parse fragment "+I.sn+" "+K+" duration reliably ("+he+") resetting transmuxer to fallback to playlist timing"),D.resetTransmuxer(),L||!1;var fe=H?0:Object(r.updateFragPTSDTS)(W,I,ee.startPTS,ee.endPTS,ee.startDTS,ee.endDTS);return D.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:W,level:V,drift:fe,type:K,frag:I,start:ee.startPTS,end:ee.endPTS}),!0}return L},!1);F?(this.state=R.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:I,part:N})):this.resetLoadingState()},T.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},w(v,[{key:"state",get:function(){return this._state},set:function(I){var N=this._state;N!==I&&(this._state=I,this.log(N+"->"+I))}}]),v}(y.default)},"./src/controller/buffer-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return i});var b=O("./src/polyfills/number.ts"),y=O("./src/events.ts"),C=O("./src/utils/logger.ts"),A=O("./src/errors.ts"),g=O("./src/utils/buffer-helper.ts"),e=O("./src/utils/mediasource-helper.ts"),f=O("./src/loader/fragment.ts"),a=O("./src/controller/buffer-operation-queue.ts"),l=Object(e.getMediaSource)(),n=/([ha]vc.)(?:\.[^.,]+)+/,i=function(){function r(h){var d=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var s=d.hls,u=d.media,w=d.mediaSource;C.logger.log("[buffer-controller]: Media source opened"),u&&(d.updateMediaElementDuration(),s.trigger(y.Events.MEDIA_ATTACHED,{media:u})),w&&w.removeEventListener("sourceopen",d._onMediaSourceOpen),d.checkPendingTracks()},this._onMediaSourceClose=function(){C.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){C.logger.log("[buffer-controller]: Media source ended")},this.hls=h,this._initSourceBuffer(),this.registerListeners()}var c=r.prototype;return c.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},c.destroy=function(){this.unregisterListeners(),this.details=null},c.registerListeners=function(){var d=this.hls;d.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(y.Events.BUFFER_RESET,this.onBufferReset,this),d.on(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.on(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.on(y.Events.BUFFER_EOS,this.onBufferEos,this),d.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.on(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.on(y.Events.FRAG_PARSED,this.onFragParsed,this),d.on(y.Events.FRAG_CHANGED,this.onFragChanged,this)},c.unregisterListeners=function(){var d=this.hls;d.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(y.Events.BUFFER_RESET,this.onBufferReset,this),d.off(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.off(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.off(y.Events.BUFFER_EOS,this.onBufferEos,this),d.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.off(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.off(y.Events.FRAG_PARSED,this.onFragParsed,this),d.off(y.Events.FRAG_CHANGED,this.onFragChanged,this)},c._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new a.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},c.onManifestParsed=function(d,s){var u=2;(s.audio&&!s.video||!s.altAudio)&&(u=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=u,this.details=null,C.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},c.onMediaAttaching=function(d,s){var u=this.media=s.media;if(u&&l){var w=this.mediaSource=new l;w.addEventListener("sourceopen",this._onMediaSourceOpen),w.addEventListener("sourceended",this._onMediaSourceEnded),w.addEventListener("sourceclose",this._onMediaSourceClose),u.src=self.URL.createObjectURL(w),this._objectUrl=u.src}},c.onMediaDetaching=function(){var d=this.media,s=this.mediaSource,u=this._objectUrl;if(s){if(C.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(w){C.logger.warn("[buffer-controller]: onMediaDetaching: "+w.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),d&&(u&&self.URL.revokeObjectURL(u),d.src===u?(d.removeAttribute("src"),d.load()):C.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(y.Events.MEDIA_DETACHED,void 0)},c.onBufferReset=function(){var d=this;this.getSourceBufferTypes().forEach(function(s){var u=d.sourceBuffer[s];try{u&&(d.removeBufferListeners(s),d.mediaSource&&d.mediaSource.removeSourceBuffer(u),d.sourceBuffer[s]=void 0)}catch(w){C.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",w)}}),this._initSourceBuffer()},c.onBufferCodecs=function(d,s){var u=this,w=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(E){if(w){var _=u.tracks[E];if(_&&typeof _.buffer.changeType=="function"){var P=s[E],R=P.codec,x=P.levelCodec,S=P.container,v=(_.levelCodec||_.codec).replace(n,"$1"),T=(x||R).replace(n,"$1");if(v!==T){var U=S+";codecs="+(x||R);u.appendChangeType(E,U)}}}else u.pendingTracks[E]=s[E]}),w)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},c.appendChangeType=function(d,s){var u=this,w=this.operationQueue,E={execute:function(){var P=u.sourceBuffer[d];P&&(C.logger.log("[buffer-controller]: changing "+d+" sourceBuffer type to "+s),P.changeType(s)),w.shiftAndExecuteNext(d)},onStart:function(){},onComplete:function(){},onError:function(P){C.logger.warn("[buffer-controller]: Failed to change "+d+" SourceBuffer type",P)}};w.append(E,d)},c.onBufferAppending=function(d,s){var u=this,w=this.hls,E=this.operationQueue,_=this.tracks,P=s.data,R=s.type,x=s.frag,S=s.part,v=s.chunkMeta,T=v.buffering[R],U=self.performance.now();T.start=U;var I=x.stats.buffering,N=S?S.stats.buffering:null;I.start===0&&(I.start=U),N&&N.start===0&&(N.start=U);var V=_.audio,H=R==="audio"&&v.id===1&&(V==null?void 0:V.container)==="audio/mpeg",D={execute:function(){if(T.executeStart=self.performance.now(),H){var F=u.sourceBuffer[R];if(F){var L=x.start-F.timestampOffset;Math.abs(L)>=.1&&(C.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+x.start+" (delta: "+L+") sn: "+x.sn+")"),F.timestampOffset=x.start)}}u.appendExecutor(P,R)},onStart:function(){},onComplete:function(){var F=self.performance.now();T.executeEnd=T.end=F,I.first===0&&(I.first=F),N&&N.first===0&&(N.first=F);var L=u.sourceBuffer,K={};for(var ee in L)K[ee]=g.BufferHelper.getBuffered(L[ee]);u.appendError=0,u.hls.trigger(y.Events.BUFFER_APPENDED,{type:R,frag:x,part:S,chunkMeta:v,parent:x.type,timeRanges:K})},onError:function(F){C.logger.error("[buffer-controller]: Error encountered while trying to append to the "+R+" SourceBuffer",F);var L={type:A.ErrorTypes.MEDIA_ERROR,parent:x.type,details:A.ErrorDetails.BUFFER_APPEND_ERROR,err:F,fatal:!1};F.code===DOMException.QUOTA_EXCEEDED_ERR?L.details=A.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,L.details=A.ErrorDetails.BUFFER_APPEND_ERROR,u.appendError>w.config.appendErrorMaxRetry&&(C.logger.error("[buffer-controller]: Failed "+w.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),L.fatal=!0)),w.trigger(y.Events.ERROR,L)}};E.append(D,R)},c.onBufferFlushing=function(d,s){var u=this,w=this.operationQueue,E=function(P){return{execute:u.removeExecutor.bind(u,P,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){u.hls.trigger(y.Events.BUFFER_FLUSHED,{type:P})},onError:function(x){C.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",x)}}};s.type?w.append(E(s.type),s.type):this.getSourceBufferTypes().forEach(function(_){w.append(E(_),_)})},c.onFragParsed=function(d,s){var u=this,w=s.frag,E=s.part,_=[],P=E?E.elementaryStreams:w.elementaryStreams;P[f.ElementaryStreamTypes.AUDIOVIDEO]?_.push("audiovideo"):(P[f.ElementaryStreamTypes.AUDIO]&&_.push("audio"),P[f.ElementaryStreamTypes.VIDEO]&&_.push("video"));var R=function(){var S=self.performance.now();w.stats.buffering.end=S,E&&(E.stats.buffering.end=S);var v=E?E.stats:w.stats;u.hls.trigger(y.Events.FRAG_BUFFERED,{frag:w,part:E,stats:v,id:w.type})};_.length===0&&C.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+w.type+" level: "+w.level+" sn: "+w.sn),this.blockBuffers(R,_)},c.onFragChanged=function(d,s){this.flushBackBuffer()},c.onBufferEos=function(d,s){var u=this,w=this.getSourceBufferTypes().reduce(function(E,_){var P=u.sourceBuffer[_];return(!s.type||s.type===_)&&(P&&!P.ended&&(P.ended=!0,C.logger.log("[buffer-controller]: "+_+" sourceBuffer now EOS"))),E&&!!(!P||P.ended)},!0);w&&this.blockBuffers(function(){var E=u.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},c.onLevelUpdated=function(d,s){var u=s.details;if(!u.fragments.length)return;this.details=u,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},c.flushBackBuffer=function(){var d=this.hls,s=this.details,u=this.media,w=this.sourceBuffer;if(!u||s===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var _=s.live&&d.config.liveBackBufferLength!==null?d.config.liveBackBufferLength:d.config.backBufferLength;if(!Object(b.isFiniteNumber)(_)||_<0)return;var P=u.currentTime,R=s.levelTargetDuration,x=Math.max(_,R),S=Math.floor(P/R)*R-x;E.forEach(function(v){var T=w[v];if(T){var U=g.BufferHelper.getBuffered(T);U.length>0&&S>U.start(0)&&(d.trigger(y.Events.BACK_BUFFER_REACHED,{bufferEnd:S}),s.live&&d.trigger(y.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:S}),d.trigger(y.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:S,type:v}))}})},c.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var d=this.details,s=this.hls,u=this.media,w=this.mediaSource,E=d.fragments[0].start+d.totalduration,_=u.duration,P=Object(b.isFiniteNumber)(w.duration)?w.duration:0;d.live&&s.config.liveDurationInfinity?(C.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),w.duration=Infinity,this.updateSeekableRange(d)):(E>P&&E>_||!Object(b.isFiniteNumber)(_))&&(C.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),w.duration=E)},c.updateSeekableRange=function(d){var s=this.mediaSource,u=d.fragments,w=u.length;if(w&&d.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var E=Math.max(0,u[0].start),_=Math.max(E,E+d.totalduration);s.setLiveSeekableRange(E,_)}},c.checkPendingTracks=function(){var d=this.bufferCodecEventsExpected,s=this.operationQueue,u=this.pendingTracks,w=Object.keys(u).length;if(w&&!d||w===2){this.createSourceBuffers(u),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(y.Events.ERROR,{type:A.ErrorTypes.MEDIA_ERROR,details:A.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(_){s.executeNext(_)})}},c.createSourceBuffers=function(d){var s=this.sourceBuffer,u=this.mediaSource;if(!u)throw Error("createSourceBuffers called when mediaSource was null");var w=0;for(var E in d)if(!s[E]){var _=d[E];if(!_)throw Error("source buffer exists for track "+E+", however track does not");var P=_.levelCodec||_.codec,R=_.container+";codecs="+P;C.logger.log("[buffer-controller]: creating sourceBuffer("+R+")");try{var x=s[E]=u.addSourceBuffer(R),S=E;this.addBufferListener(S,"updatestart",this._onSBUpdateStart),this.addBufferListener(S,"updateend",this._onSBUpdateEnd),this.addBufferListener(S,"error",this._onSBUpdateError),this.tracks[E]={buffer:x,codec:P,container:_.container,levelCodec:_.levelCodec,id:_.id},w++}catch(v){C.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+v.message),this.hls.trigger(y.Events.ERROR,{type:A.ErrorTypes.MEDIA_ERROR,details:A.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,mimeType:R})}}w&&this.hls.trigger(y.Events.BUFFER_CREATED,{tracks:this.tracks})},c._onSBUpdateStart=function(d){var s=this.operationQueue,u=s.current(d);u.onStart()},c._onSBUpdateEnd=function(d){var s=this.operationQueue,u=s.current(d);u.onComplete(),s.shiftAndExecuteNext(d)},c._onSBUpdateError=function(d,s){C.logger.error("[buffer-controller]: "+d+" SourceBuffer error",s),this.hls.trigger(y.Events.ERROR,{type:A.ErrorTypes.MEDIA_ERROR,details:A.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var u=this.operationQueue.current(d);u&&u.onError(s)},c.removeExecutor=function(d,s,u){var w=this.media,E=this.mediaSource,_=this.operationQueue,P=this.sourceBuffer,R=P[d];if(!w||!E||!R){C.logger.warn("[buffer-controller]: Attempting to remove from the "+d+" SourceBuffer, but it does not exist"),_.shiftAndExecuteNext(d);return}var x=Object(b.isFiniteNumber)(w.duration)?w.duration:Infinity,S=Object(b.isFiniteNumber)(E.duration)?E.duration:Infinity,v=Math.max(0,s),T=Math.min(u,x,S);T>v?(C.logger.log("[buffer-controller]: Removing ["+v+","+T+"] from the "+d+" SourceBuffer"),console.assert(!R.updating,d+" sourceBuffer must not be updating"),R.remove(v,T)):_.shiftAndExecuteNext(d)},c.appendExecutor=function(d,s){var u=this.operationQueue,w=this.sourceBuffer,E=w[s];if(!E){C.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),u.shiftAndExecuteNext(s);return}E.ended=!1,console.assert(!E.updating,s+" sourceBuffer must not be updating"),E.appendBuffer(d)},c.blockBuffers=function(d,s){var u=this;if(s===void 0&&(s=this.getSourceBufferTypes()),!s.length){C.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(d);return}var w=this.operationQueue,E=s.map(function(_){return w.appendBlocker(_)});Promise.all(E).then(function(){d(),s.forEach(function(_){var P=u.sourceBuffer[_];(!P||!P.updating)&&w.shiftAndExecuteNext(_)})})},c.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},c.addBufferListener=function(d,s,u){var w=this.sourceBuffer[d];if(!w)return;var E=u.bind(this,d);this.listeners[d].push({event:s,listener:E}),w.addEventListener(s,E)},c.removeBufferListeners=function(d){var s=this.sourceBuffer[d];if(!s)return;this.listeners[d].forEach(function(u){s.removeEventListener(u.event,u.listener)})},r}()},"./src/controller/buffer-operation-queue.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return y});var b=O("./src/utils/logger.ts"),y=function(){function C(g){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=g}var A=C.prototype;return A.append=function(e,f){var a=this.queues[f];a.push(e),a.length===1&&this.buffers[f]&&this.executeNext(f)},A.insertAbort=function(e,f){var a=this.queues[f];a.unshift(e),this.executeNext(f)},A.appendBlocker=function(e){var f,a=new Promise(function(n){f=n}),l={execute:f,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(l,e),a},A.executeNext=function(e){var f=this.buffers,a=this.queues,l=f[e],n=a[e];if(n.length){var i=n[0];try{i.execute()}catch(r){b.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),i.onError(r),(!l||!l.updating)&&(n.shift(),this.executeNext(e))}}},A.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},A.current=function(e){return this.queues[e][0]},C}()},"./src/controller/cap-level-controller.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/events.ts");function y(g,e){for(var f=0;f<e.length;f++){var a=e[f];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(g,a.key,a)}}function C(g,e,f){return e&&y(g.prototype,e),f&&y(g,f),g}var A=function(){function g(f){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=f,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=g.prototype;return e.setStreamController=function(a){this.streamController=a},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var a=this.hls;a.on(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var a=this.hls;a.off(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(a,l){g.isLevelAllowed(l.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(l.droppedLevel)},e.onMediaAttaching=function(a,l){this.media=l.media instanceof HTMLVideoElement?l.media:null},e.onManifestParsed=function(a,l){var n=this.hls;this.restrictedLevels=[],this.firstLevel=l.firstLevel,n.config.capLevelToPlayerSize&&l.video&&this.startCapping()},e.onBufferCodecs=function(a,l){var n=this.hls;n.config.capLevelToPlayerSize&&l.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var a=this.hls.levels;if(a.length){var l=this.hls;l.autoLevelCapping=this.getMaxLevel(a.length-1),l.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=l.autoLevelCapping}}},e.getMaxLevel=function(a){var l=this,n=this.hls.levels;if(!n.length)return-1;var i=n.filter(function(r,c){return g.isLevelAllowed(c,l.restrictedLevels)&&c<=a});return this.clientRect=null,g.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var a=this.media,l={width:0,height:0};if(a){var n=a.getBoundingClientRect();l.width=n.width,l.height=n.height,!l.width&&!l.height&&(l.width=n.right-n.left||a.width||0,l.height=n.bottom-n.top||a.height||0)}return this.clientRect=l,l},g.isLevelAllowed=function(a,l){return l===void 0&&(l=[]),l.indexOf(a)===-1},g.getMaxLevelByMediaSize=function(a,l,n){if(!a||!a.length)return-1;for(var i=function(s,u){return u?s.width!==u.width||s.height!==u.height:!0},r=a.length-1,c=0;c<a.length;c+=1){var h=a[c];if((h.width>=l||h.height>=n)&&i(h,a[c+1])){r=c;break}}return r},C(g,[{key:"mediaWidth",get:function(){return this.getDimensions().width*g.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*g.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(l){}return a}}]),g}();m.default=A},"./src/controller/cmcd-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return i});var b=O("./src/events.ts"),y=O("./src/types/cmcd.ts"),C=O("./src/utils/buffer-helper.ts"),A=O("./src/utils/logger.ts");function g(r,c){for(var h=0;h<c.length;h++){var d=c[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(r,d.key,d)}}function e(r,c,h){return c&&g(r.prototype,c),h&&g(r,h),r}function f(r,c){var h=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(h)return(h=h.call(r)).next.bind(h);if(Array.isArray(r)||(h=a(r))||c&&r&&typeof r.length=="number"){h&&(r=h);var d=0;return function(){return d>=r.length?{done:!0}:{done:!1,value:r[d++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(r,c){if(!r)return;if(typeof r=="string")return l(r,c);var h=Object.prototype.toString.call(r).slice(8,-1);if(h==="Object"&&r.constructor&&(h=r.constructor.name),h==="Map"||h==="Set")return Array.from(r);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return l(r,c)}function l(r,c){(c==null||c>r.length)&&(c=r.length);for(var h=0,d=new Array(c);h<c;h++)d[h]=r[h];return d}function n(){return n=Object.assign||function(r){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(r[d]=h[d])}return r},n.apply(this,arguments)}var i=function(){function r(h){var d=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){d.initialized&&(d.starved=!0),d.buffering=!0},this.onPlaying=function(){d.initialized||(d.initialized=!0),d.buffering=!1},this.applyPlaylistData=function(w){try{d.apply(w,{ot:y.CMCDObjectType.MANIFEST,su:!d.initialized})}catch(E){A.logger.warn("Could not generate manifest CMCD data.",E)}},this.applyFragmentData=function(w){try{var E=w.frag,_=d.hls.levels[E.level],P=d.getObjectType(E),R={d:E.duration*1e3,ot:P};(P===y.CMCDObjectType.VIDEO||P===y.CMCDObjectType.AUDIO||P==y.CMCDObjectType.MUXED)&&(R.br=_.bitrate/1e3,R.tb=d.getTopBandwidth(P),R.bl=d.getBufferLength(P)),d.apply(w,R)}catch(x){A.logger.warn("Could not generate segment CMCD data.",x)}},this.hls=h;var s=this.config=h.config,u=s.cmcd;u!=null&&(s.pLoader=this.createPlaylistLoader(),s.fLoader=this.createFragmentLoader(),this.sid=u.sessionId||r.uuid(),this.cid=u.contentId,this.useHeaders=u.useHeaders===!0,this.registerListeners())}var c=r.prototype;return c.registerListeners=function(){var d=this.hls;d.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.on(b.Events.BUFFER_CREATED,this.onBufferCreated,this)},c.unregisterListeners=function(){var d=this.hls;d.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.off(b.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},c.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},c.onMediaAttached=function(d,s){this.media=s.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},c.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},c.onBufferCreated=function(d,s){var u,w;this.audioBuffer=(u=s.tracks.audio)===null||u===void 0?void 0:u.buffer,this.videoBuffer=(w=s.tracks.video)===null||w===void 0?void 0:w.buffer},c.createData=function(){var d;return{v:y.CMCDVersion,sf:y.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(d=this.media)===null||d===void 0?void 0:d.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},c.apply=function(d,s){s===void 0&&(s={}),n(s,this.createData());var u=s.ot===y.CMCDObjectType.INIT||s.ot===y.CMCDObjectType.VIDEO||s.ot===y.CMCDObjectType.MUXED;if(this.starved&&u&&(s.bs=!0,s.su=!0,this.starved=!1),s.su==null&&(s.su=this.buffering),this.useHeaders){var w=r.toHeaders(s);if(!Object.keys(w).length)return;d.headers||(d.headers={}),n(d.headers,w)}else{var E=r.toQuery(s);if(!E)return;d.url=r.appendQueryToUri(d.url,E)}},c.getObjectType=function(d){var s=d.type;return s==="subtitle"?y.CMCDObjectType.TIMED_TEXT:d.sn==="initSegment"?y.CMCDObjectType.INIT:s==="audio"?y.CMCDObjectType.AUDIO:s==="main"?this.hls.audioTracks.length?y.CMCDObjectType.VIDEO:y.CMCDObjectType.MUXED:void 0},c.getTopBandwidth=function(d){for(var s=0,u=d===y.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,w=f(u),E;!(E=w()).done;){var _=E.value;_.bitrate>s&&(s=_.bitrate)}return s>0?s:NaN},c.getBufferLength=function(d){var s=this.hls.media,u=d===y.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!u||!s)return NaN;var w=C.BufferHelper.bufferInfo(u,s.currentTime,this.config.maxBufferHole);return w.len*1e3},c.createPlaylistLoader=function(){var d=this.config.pLoader,s=this.applyPlaylistData,u=d||this.config.loader;return function(){function w(_){this.loader=void 0,this.loader=new u(_)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(P,R,x){s(P),this.loader.load(P,R,x)},e(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},c.createFragmentLoader=function(){var d=this.config.fLoader,s=this.applyFragmentData,u=d||this.config.loader;return function(){function w(_){this.loader=void 0,this.loader=new u(_)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(P,R,x){s(P),this.loader.load(P,R,x)},e(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},r.uuid=function(){var d=URL.createObjectURL(new Blob),s=d.toString();return URL.revokeObjectURL(d),s.substr(s.lastIndexOf("/")+1)},r.serialize=function(d){for(var s=[],u=function(H){return!Number.isNaN(H)&&H!=null&&H!==""&&H!==!1},w=function(H){return Math.round(H)},E=function(H){return w(H/100)*100},_=function(H){return encodeURIComponent(H)},P={br:w,d:w,bl:E,dl:E,mtp:E,nor:_,rtp:E,tb:w},R=Object.keys(d||{}).sort(),x=f(R),S;!(S=x()).done;){var v=S.value,T=d[v];if(!u(T))continue;if(v==="v"&&T===1)continue;if(v=="pr"&&T===1)continue;var U=P[v];U&&(T=U(T));var I=typeof T,N=void 0;v==="ot"||v==="sf"||v==="st"?N=v+"="+T:I==="boolean"?N=v:I==="number"?N=v+"="+T:N=v+"="+JSON.stringify(T),s.push(N)}return s.join(",")},r.toHeaders=function(d){for(var s=Object.keys(d),u={},w=["Object","Request","Session","Status"],E=[{},{},{},{}],_={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},P=0,R=s;P<R.length;P++){var x=R[P],S=_[x]!=null?_[x]:1;E[S][x]=d[x]}for(var v=0;v<E.length;v++){var T=r.serialize(E[v]);T&&(u["CMCD-"+w[v]]=T)}return u},r.toQuery=function(d){return"CMCD="+encodeURIComponent(r.serialize(d))},r.appendQueryToUri=function(d,s){if(!s)return d;var u=d.includes("?")?"&":"?";return""+d+u+s},r}()},"./src/controller/eme-controller.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/events.ts"),y=O("./src/errors.ts"),C=O("./src/utils/logger.ts"),A=O("./src/utils/mediakeys-helper.ts");function g(i,r){for(var c=0;c<r.length;c++){var h=r[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function e(i,r,c){return r&&g(i.prototype,r),c&&g(i,c),i}var f=3,a=function(r,c,h){var d={audioCapabilities:[],videoCapabilities:[]};return r.forEach(function(s){d.audioCapabilities.push({contentType:'audio/mp4; codecs="'+s+'"',robustness:h.audioRobustness||""})}),c.forEach(function(s){d.videoCapabilities.push({contentType:'video/mp4; codecs="'+s+'"',robustness:h.videoRobustness||""})}),[d]},l=function(r,c,h,d){switch(r){case A.KeySystems.WIDEVINE:return a(c,h,d);default:throw new Error("Unknown key-system: "+r)}},n=function(){function i(c){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=c,this._config=c.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var r=i.prototype;return r.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},r._registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this)},r._unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this)},r.getLicenseServerUrl=function(h){switch(h){case A.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+h+'"')},r._attemptKeySystemAccess=function(h,d,s){var u=this,w=l(h,d,s,this._drmSystemOptions);C.logger.log("Requesting encrypted media key-system access");var E=this.requestMediaKeySystemAccess(h,w);this.mediaKeysPromise=E.then(function(_){return u._onMediaKeySystemAccessObtained(h,_)}),E.catch(function(_){C.logger.error('Failed to obtain key-system "'+h+'" access:',_)})},r._onMediaKeySystemAccessObtained=function(h,d){var s=this;C.logger.log('Access for key-system "'+h+'" obtained');var u={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:d,mediaKeySystemDomain:h};this._mediaKeysList.push(u);var w=Promise.resolve().then(function(){return d.createMediaKeys()}).then(function(E){return u.mediaKeys=E,C.logger.log('Media-keys created for key-system "'+h+'"'),s._onMediaKeysCreated(),E});return w.catch(function(E){C.logger.error("Failed to create media-keys:",E)}),w},r._onMediaKeysCreated=function(){var h=this;this._mediaKeysList.forEach(function(d){d.mediaKeysSession||(d.mediaKeysSession=d.mediaKeys.createSession(),h._onNewMediaKeySession(d.mediaKeysSession))})},r._onNewMediaKeySession=function(h){var d=this;C.logger.log("New key-system session "+h.sessionId),h.addEventListener("message",function(s){d._onKeySessionMessage(h,s.message)},!1)},r._onKeySessionMessage=function(h,d){C.logger.log("Got EME message event, creating license request"),this._requestLicense(d,function(s){C.logger.log("Received license data (length: "+(s&&s.byteLength)+"), updating key-session"),h.update(s)})},r.onMediaEncrypted=function(h){var d=this;if(C.logger.log('Media is encrypted using "'+h.initDataType+'" init data type'),!this.mediaKeysPromise){C.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var s=function(w){if(!d._media)return;d._attemptSetMediaKeys(w),d._generateRequestWithPreferredKeySession(h.initDataType,h.initData)};this.mediaKeysPromise.then(s).catch(s)},r._attemptSetMediaKeys=function(h){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var d=this._mediaKeysList[0];if(!d||!d.mediaKeys){C.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}C.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(d.mediaKeys),this._hasSetMediaKeys=!0}},r._generateRequestWithPreferredKeySession=function(h,d){var s=this,u=this._mediaKeysList[0];if(!u){C.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(u.mediaKeysSessionInitialized){C.logger.warn("Key-Session already initialized but requested again");return}var w=u.mediaKeysSession;if(!w){C.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!d){C.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}C.logger.log('Generating key-session request for "'+h+'" init data type'),u.mediaKeysSessionInitialized=!0,w.generateRequest(h,d).then(function(){C.logger.debug("Key-session generation succeeded")}).catch(function(E){C.logger.error("Error generating key-session request:",E),s.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},r._createLicenseXhr=function(h,d,s){var u=new XMLHttpRequest;u.responseType="arraybuffer",u.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,u,h,d,s);var w=this._licenseXhrSetup;if(w)try{w.call(this.hls,u,h),w=void 0}catch(E){C.logger.error(E)}try{u.readyState||u.open("POST",h,!0),w&&w.call(this.hls,u,h)}catch(E){throw new Error("issue setting up KeySystem license XHR "+E)}return u},r._onLicenseRequestReadyStageChange=function(h,d,s,u){switch(h.readyState){case 4:if(h.status===200){this._requestLicenseFailureCount=0,C.logger.log("License request succeeded");var w=h.response,E=this._licenseResponseCallback;if(E)try{w=E.call(this.hls,h,d)}catch(P){C.logger.error(P)}u(w)}else{if(C.logger.error("License Request XHR failed ("+d+"). Status: "+h.status+" ("+h.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>f){this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var _=f-this._requestLicenseFailureCount+1;C.logger.warn("Retrying license request, "+_+" attempts left"),this._requestLicense(s,u)}break}},r._generateLicenseRequestChallenge=function(h,d){switch(h.mediaKeySystemDomain){case A.KeySystems.WIDEVINE:return d}throw new Error("unsupported key-system: "+h.mediaKeySystemDomain)},r._requestLicense=function(h,d){C.logger.log("Requesting content license for key-system");var s=this._mediaKeysList[0];if(!s){C.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var u=this.getLicenseServerUrl(s.mediaKeySystemDomain),w=this._createLicenseXhr(u,h,d);C.logger.log("Sending license request to URL: "+u);var E=this._generateLicenseRequestChallenge(s,h);w.send(E)}catch(_){C.logger.error("Failure requesting DRM license: "+_),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},r.onMediaAttached=function(h,d){if(!this._emeEnabled)return;var s=d.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},r.onMediaDetached=function(){var h=this._media,d=this._mediaKeysList;if(!h)return;h.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(d.map(function(s){if(s.mediaKeysSession)return s.mediaKeysSession.close().catch(function(){})})).then(function(){return h.setMediaKeys(null)}).catch(function(){})},r.onManifestParsed=function(h,d){if(!this._emeEnabled)return;var s=d.levels.map(function(w){return w.audioCodec}).filter(function(w){return!!w}),u=d.levels.map(function(w){return w.videoCodec}).filter(function(w){return!!w});this._attemptKeySystemAccess(A.KeySystems.WIDEVINE,s,u)},e(i,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),i}();m.default=n},"./src/controller/fps-controller.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/events.ts"),y=O("./src/utils/logger.ts"),C=function(){function A(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var g=A.prototype;return g.setStreamController=function(f){this.streamController=f},g.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},g.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching)},g.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},g.onMediaAttaching=function(f,a){var l=this.hls.config;if(l.capLevelOnFPSDrop){var n=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=n,n&&typeof n.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),l.fpsDroppedMonitoringPeriod)}},g.checkFPS=function(f,a,l){var n=performance.now();if(a){if(this.lastTime){var i=n-this.lastTime,r=l-this.lastDroppedFrames,c=a-this.lastDecodedFrames,h=1e3*r/i,d=this.hls;if(d.trigger(b.Events.FPS_DROP,{currentDropped:r,currentDecoded:c,totalDroppedFrames:l}),h>0&&r>d.config.fpsDroppedMonitoringThreshold*c){var s=d.currentLevel;y.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+s),s>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=s)&&(s=s-1,d.trigger(b.Events.FPS_DROP_LEVEL_CAPPING,{level:s,droppedLevel:d.currentLevel}),d.autoLevelCapping=s,this.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=l,this.lastDecodedFrames=a}},g.checkFPSInterval=function(){var f=this.media;if(f)if(this.isVideoPlaybackQualityAvailable){var a=f.getVideoPlaybackQuality();this.checkFPS(f,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(f,f.webkitDecodedFrameCount,f.webkitDroppedFrameCount)},A}();m.default=C},"./src/controller/fragment-finders.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"findFragmentByPDT",function(){return C}),O.d(m,"findFragmentByPTS",function(){return A}),O.d(m,"fragmentWithinToleranceTest",function(){return g}),O.d(m,"pdtWithinToleranceTest",function(){return e}),O.d(m,"findFragWithCC",function(){return f});var b=O("./src/polyfills/number.ts"),y=O("./src/utils/binary-search.ts");function C(a,l,n){if(l===null||!Array.isArray(a)||!a.length||!Object(b.isFiniteNumber)(l))return null;var i=a[0].programDateTime;if(l<(i||0))return null;var r=a[a.length-1].endProgramDateTime;if(l>=(r||0))return null;n=n||0;for(var c=0;c<a.length;++c){var h=a[c];if(e(l,n,h))return h}return null}function A(a,l,n,i){n===void 0&&(n=0),i===void 0&&(i=0);var r=null;if(a?r=l[a.sn-l[0].sn+1]||null:n===0&&l[0].start===0&&(r=l[0]),r&&g(n,i,r)===0)return r;var c=y.default.search(l,g.bind(null,n,i));return c||r}function g(a,l,n){a===void 0&&(a=0),l===void 0&&(l=0);var i=Math.min(l,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=a?1:n.start-i>a&&n.start?-1:0}function e(a,l,n){var i=Math.min(l,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3,r=n.endProgramDateTime||0;return r-i>a}function f(a,l){return y.default.search(a,function(n){return n.cc<l?1:n.cc>l?-1:0})}},"./src/controller/fragment-tracker.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"FragmentState",function(){return C}),O.d(m,"FragmentTracker",function(){return A});var b=O("./src/events.ts"),y=O("./src/types/loader.ts"),C;(function(f){f.NOT_LOADED="NOT_LOADED",f.BACKTRACKED="BACKTRACKED",f.APPENDING="APPENDING",f.PARTIAL="PARTIAL",f.OK="OK"})(C||(C={}));var A=function(){function f(l){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=l,this._registerListeners()}var a=f.prototype;return a._registerListeners=function(){var n=this.hls;n.on(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),n.on(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),n.on(b.Events.FRAG_LOADED,this.onFragLoaded,this)},a._unregisterListeners=function(){var n=this.hls;n.off(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),n.off(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),n.off(b.Events.FRAG_LOADED,this.onFragLoaded,this)},a.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},a.getAppendedFrag=function(n,i){if(i===y.PlaylistLevelType.MAIN){var r=this.activeFragment,c=this.activeParts;if(!r)return null;if(c)for(var h=c.length;h--;){var d=c[h],s=d?d.end:r.appendedPTS;if(d.start<=n&&s!==void 0&&n<=s)return h>9&&(this.activeParts=c.slice(h-9)),d}else if(r.start<=n&&r.appendedPTS!==void 0&&n<=r.appendedPTS)return r}return this.getBufferedFrag(n,i)},a.getBufferedFrag=function(n,i){for(var r=this.fragments,c=Object.keys(r),h=c.length;h--;){var d=r[c[h]];if((d==null?void 0:d.body.type)===i&&d.buffered){var s=d.body;if(s.start<=n&&n<=s.end)return s}}return null},a.detectEvictedFragments=function(n,i,r){var c=this;Object.keys(this.fragments).forEach(function(h){var d=c.fragments[h];if(!d)return;if(!d.buffered){d.body.type===r&&c.removeFragment(d.body);return}var s=d.range[n];if(!s)return;s.time.some(function(u){var w=!c.isTimeBuffered(u.startPTS,u.endPTS,i);return w&&c.removeFragment(d.body),w})})},a.detectPartialFragments=function(n){var i=this,r=this.timeRanges,c=n.frag,h=n.part;if(!r||c.sn==="initSegment")return;var d=e(c),s=this.fragments[d];if(!s)return;Object.keys(r).forEach(function(u){var w=c.elementaryStreams[u];if(!w)return;var E=r[u],_=h!==null||w.partial===!0;s.range[u]=i.getBufferedTimes(c,h,_,E)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},a.fragBuffered=function(n){var i=e(n),r=this.fragments[i];r&&(r.backtrack=r.loaded=null,r.buffered=!0)},a.getBufferedTimes=function(n,i,r,c){for(var h={time:[],partial:r},d=i?i.start:n.start,s=i?i.end:n.end,u=n.minEndPTS||s,w=n.maxStartPTS||d,E=0;E<c.length;E++){var _=c.start(E)-this.bufferPadding,P=c.end(E)+this.bufferPadding;if(w>=_&&u<=P){h.time.push({startPTS:Math.max(d,c.start(E)),endPTS:Math.min(s,c.end(E))});break}else if(d<P&&s>_)h.partial=!0,h.time.push({startPTS:Math.max(d,c.start(E)),endPTS:Math.min(s,c.end(E))});else if(s<=_)break}return h},a.getPartialFragment=function(n){var i=null,r,c,h,d=0,s=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach(function(w){var E=u[w];if(!E)return;g(E)&&(c=E.body.start-s,h=E.body.end+s,n>=c&&n<=h&&(r=Math.min(n-c,h-n),d<=r&&(i=E.body,d=r)))}),i},a.getState=function(n){var i=e(n),r=this.fragments[i];return r?r.buffered?g(r)?C.PARTIAL:C.OK:r.backtrack?C.BACKTRACKED:C.APPENDING:C.NOT_LOADED},a.backtrack=function(n,i){var r=e(n),c=this.fragments[r];if(!c||c.backtrack)return null;var h=c.backtrack=i||c.loaded;return c.loaded=null,h},a.getBacktrackData=function(n){var i=e(n),r=this.fragments[i];if(r){var c,h=r.backtrack;if(h!=null&&(c=h.payload)!==null&&c!==void 0&&c.byteLength)return h;this.removeFragment(n)}return null},a.isTimeBuffered=function(n,i,r){for(var c,h,d=0;d<r.length;d++){if(c=r.start(d)-this.bufferPadding,h=r.end(d)+this.bufferPadding,n>=c&&i<=h)return!0;if(i<=c)return!1}return!1},a.onFragLoaded=function(n,i){var r=i.frag,c=i.part;if(r.sn==="initSegment"||r.bitrateTest||c)return;var h=e(r);this.fragments[h]={body:r,loaded:i,backtrack:null,buffered:!1,range:Object.create(null)}},a.onBufferAppended=function(n,i){var r=this,c=i.frag,h=i.part,d=i.timeRanges;if(c.type===y.PlaylistLevelType.MAIN)if(this.activeFragment=c,h){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(h)}else this.activeParts=null;this.timeRanges=d,Object.keys(d).forEach(function(u){var w=d[u];if(r.detectEvictedFragments(u,w),!h)for(var E=0;E<w.length;E++)c.appendedPTS=Math.max(w.end(E),c.appendedPTS||0)})},a.onFragBuffered=function(n,i){this.detectPartialFragments(i)},a.hasFragment=function(n){var i=e(n);return!!this.fragments[i]},a.removeFragmentsInRange=function(n,i,r){var c=this;Object.keys(this.fragments).forEach(function(h){var d=c.fragments[h];if(!d)return;if(d.buffered){var s=d.body;s.type===r&&s.start<i&&s.end>n&&c.removeFragment(s)}})},a.removeFragment=function(n){var i=e(n);n.stats.loaded=0,n.clearElementaryStreamInfo(),delete this.fragments[i]},a.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},f}();function g(f){var a,l;return f.buffered&&(((a=f.range.video)===null||a===void 0?void 0:a.partial)||((l=f.range.audio)===null||l===void 0?void 0:l.partial))}function e(f){return f.type+"_"+f.level+"_"+f.urlId+"_"+f.sn}},"./src/controller/gap-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"STALL_MINIMUM_DURATION_MS",function(){return g}),O.d(m,"MAX_START_GAP_JUMP",function(){return e}),O.d(m,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return f}),O.d(m,"SKIP_BUFFER_RANGE_START",function(){return a}),O.d(m,"default",function(){return l});var b=O("./src/utils/buffer-helper.ts"),y=O("./src/errors.ts"),C=O("./src/events.ts"),A=O("./src/utils/logger.ts"),g=250,e=2,f=.1,a=.05,l=function(){function n(r,c,h,d){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=r,this.media=c,this.fragmentTracker=h,this.hls=d}var i=n.prototype;return i.destroy=function(){this.hls=this.fragmentTracker=this.media=null},i.poll=function(c){var h=this.config,d=this.media,s=this.stalled,u=d.currentTime,w=d.seeking,E=this.seeking&&!w,_=!this.seeking&&w;if(this.seeking=w,u!==c){if(this.moved=!0,s!==null){if(this.stallReported){var P=self.performance.now()-s;A.logger.warn("playback not stuck anymore @"+u+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((_||E)&&(this.stalled=null),d.paused||d.ended||d.playbackRate===0||!b.BufferHelper.getBuffered(d).length)return;var R=b.BufferHelper.bufferInfo(d,u,0),x=R.len>0,S=R.nextStart||0;if(!x&&!S)return;if(w){var v=R.len>e,T=!S||S-u>e&&!this.fragmentTracker.getPartialFragment(u);if(v||T)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var U,I=Math.max(S,R.start||0)-u,N=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,V=N==null||((U=N.details)===null||U===void 0)?void 0:U.live,H=V?N.details.targetduration*2:e;if(I>0&&I<=H){this._trySkipBufferHole(null);return}}var D=self.performance.now();if(s===null){this.stalled=D;return}var W=D-s;!w&&W>=g&&this._reportStall(R.len);var F=b.BufferHelper.bufferInfo(d,u,h.maxBufferHole);this._tryFixBufferStall(F,W)},i._tryFixBufferStall=function(c,h){var d=this.config,s=this.fragmentTracker,u=this.media,w=u.currentTime,E=s.getPartialFragment(w);if(E){var _=this._trySkipBufferHole(E);if(_)return}c.len>d.maxBufferHole&&h>d.highBufferWatchdogPeriod*1e3&&(A.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},i._reportStall=function(c){var h=this.hls,d=this.media,s=this.stallReported;s||(this.stallReported=!0,A.logger.warn("Playback stalling at @"+d.currentTime+" due to low buffer (buffer="+c+")"),h.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:c}))},i._trySkipBufferHole=function(c){for(var h=this.config,d=this.hls,s=this.media,u=s.currentTime,w=0,E=b.BufferHelper.getBuffered(s),_=0;_<E.length;_++){var P=E.start(_);if(u+h.maxBufferHole>=w&&u<P){var R=Math.max(P+a,s.currentTime+f);return A.logger.warn("skipping hole, adjusting currentTime from "+u+" to "+R),this.moved=!0,this.stalled=null,s.currentTime=R,c&&d.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+u+" to "+R,frag:c}),R}w=E.end(_)}return 0},i._tryNudgeBuffer=function(){var c=this.config,h=this.hls,d=this.media,s=d.currentTime,u=(this.nudgeRetry||0)+1;if(this.nudgeRetry=u,u<c.nudgeMaxRetry){var w=s+u*c.nudgeOffset;A.logger.warn("Nudging 'currentTime' from "+s+" to "+w),d.currentTime=w,h.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else A.logger.error("Playhead still not moving while enough data buffered @"+s+" after "+c.nudgeMaxRetry+" nudges"),h.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},n}()},"./src/controller/id3-track-controller.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/events.ts"),y=O("./src/utils/texttrack-utils.ts"),C=O("./src/demux/id3.ts"),A=.25,g=function(){function e(a){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=a,this._registerListeners()}var f=e.prototype;return f.destroy=function(){this._unregisterListeners()},f._registerListeners=function(){var l=this.hls;l.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),l.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},f._unregisterListeners=function(){var l=this.hls;l.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),l.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},f.onMediaAttached=function(l,n){this.media=n.media},f.onMediaDetaching=function(){if(!this.id3Track)return;Object(y.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},f.getID3Track=function(l){if(!this.media)return;for(var n=0;n<l.length;n++){var i=l[n];if(i.kind==="metadata"&&i.label==="id3")return Object(y.sendAddTrackEvent)(i,this.media),i}return this.media.addTextTrack("metadata","id3")},f.onFragParsingMetadata=function(l,n){if(!this.media)return;var i=n.frag,r=n.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var c=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,h=0;h<r.length;h++){var d=C.getID3Frames(r[h].data);if(d){var s=r[h].pts,u=h<r.length-1?r[h+1].pts:i.end,w=u-s;w<=0&&(u=s+A);for(var E=0;E<d.length;E++){var _=d[E];if(!C.isTimeStampFrame(_)){var P=new c(s,u,"");P.value=_,this.id3Track.addCue(P)}}}}},f.onBufferFlushing=function(l,n){var i=n.startOffset,r=n.endOffset,c=n.type;if(!c||c==="audio"){var h=this.id3Track;h&&Object(y.removeCuesInRange)(h,i,r)}},e}();m.default=g},"./src/controller/latency-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return e});var b=O("./src/errors.ts"),y=O("./src/events.ts"),C=O("./src/utils/logger.ts");function A(f,a){for(var l=0;l<a.length;l++){var n=a[l];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(f,n.key,n)}}function g(f,a,l){return a&&A(f.prototype,a),l&&A(f,l),f}var e=function(){function f(l){var n=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return n.timeupdate()},this.hls=l,this.config=l.config,this.registerListeners()}var a=f.prototype;return a.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},a.registerListeners=function(){this.hls.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(y.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){this.hls.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(y.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(y.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(y.Events.ERROR,this.onError)},a.onMediaAttached=function(n,i){this.media=i.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},a.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},a.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},a.onLevelUpdated=function(n,i){var r=i.details;this.levelDetails=r,r.advanced&&this.timeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},a.onError=function(n,i){if(i.details!==b.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,C.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},a.timeupdate=function(){var n=this.media,i=this.levelDetails;if(!n||!i)return;this.currentTime=n.currentTime;var r=this.computeLatency();if(r===null)return;this._latency=r;var c=this.config,h=c.lowLatencyMode,d=c.maxLiveSyncPlaybackRate;if(!h||d===1)return;var s=this.targetLatency;if(s===null)return;var u=r-s,w=Math.min(this.maxLatency,s+i.targetduration),E=u<w;if(i.live&&E&&u>.05&&this.forwardBufferLength>1){var _=Math.min(2,Math.max(1,d)),P=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;n.playbackRate=Math.min(_,Math.max(1,P))}else n.playbackRate!==1&&n.playbackRate!==0&&(n.playbackRate=1)},a.estimateLiveEdge=function(){var n=this.levelDetails;return n===null?null:n.edge+n.age},a.computeLatency=function(){var n=this.estimateLiveEdge();return n===null?null:n-this.currentTime},g(f,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var n=this.config,i=this.levelDetails;return n.liveMaxLatencyDuration!==void 0?n.liveMaxLatencyDuration:i?n.liveMaxLatencyDurationCount*i.targetduration:0}},{key:"targetLatency",get:function(){var n=this.levelDetails;if(n===null)return null;var i=n.holdBack,r=n.partHoldBack,c=n.targetduration,h=this.config,d=h.liveSyncDuration,s=h.liveSyncDurationCount,u=h.lowLatencyMode,w=this.hls.userConfig,E=u&&r||i;(w.liveSyncDuration||w.liveSyncDurationCount||E===0)&&(E=d!==void 0?d:s*c);var _=c,P=1;return E+Math.min(this.stallCount*P,_)}},{key:"liveSyncPosition",get:function(){var n=this.estimateLiveEdge(),i=this.targetLatency,r=this.levelDetails;if(n===null||i===null||r===null)return null;var c=r.edge,h=n-i-this.edgeStalled,d=c-r.totalduration,s=c-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(d,h),s)}},{key:"drift",get:function(){var n=this.levelDetails;return n===null?1:n.drift}},{key:"edgeStalled",get:function(){var n=this.levelDetails;if(n===null)return 0;var i=(this.config.lowLatencyMode&&n.partTarget||n.targetduration)*3;return Math.max(n.age-i,0)}},{key:"forwardBufferLength",get:function(){var n=this.media,i=this.levelDetails;if(!n||!i)return 0;var r=n.buffered.length;return r?n.buffered.end(r-1):i.edge-this.currentTime}}]),f}()},"./src/controller/level-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return h});var b=O("./src/types/level.ts"),y=O("./src/events.ts"),C=O("./src/errors.ts"),A=O("./src/utils/codecs.ts"),g=O("./src/controller/level-helper.ts"),e=O("./src/controller/base-playlist-controller.ts"),f=O("./src/types/loader.ts");function a(){return a=Object.assign||function(d){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var w in u)Object.prototype.hasOwnProperty.call(u,w)&&(d[w]=u[w])}return d},a.apply(this,arguments)}function l(d,s){for(var u=0;u<s.length;u++){var w=s[u];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(d,w.key,w)}}function n(d,s,u){return s&&l(d.prototype,s),u&&l(d,u),d}function i(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,r(d,s)}function r(d,s){return r=Object.setPrototypeOf||function(w,E){return w.__proto__=E,w},r(d,s)}var c=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),h=function(d){i(s,d);function s(w){var E;return E=d.call(this,w,"[level-controller]")||this,E._levels=[],E._firstLevel=-1,E._startLevel=void 0,E.currentLevelIndex=-1,E.manualLevelIndex=-1,E.onParsedComplete=void 0,E._registerListeners(),E}var u=s.prototype;return u._registerListeners=function(){var E=this.hls;E.on(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),E.on(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.on(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),E.on(y.Events.ERROR,this.onError,this)},u._unregisterListeners=function(){var E=this.hls;E.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),E.off(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.off(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),E.off(y.Events.ERROR,this.onError,this)},u.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,d.prototype.destroy.call(this)},u.startLoad=function(){var E=this._levels;E.forEach(function(_){_.loadError=0}),d.prototype.startLoad.call(this)},u.onManifestLoaded=function(E,_){var P=[],R=[],x=[],S,v={},T,U=!1,I=!1,N=!1;if(_.levels.forEach(function(W){var F=W.attrs;U=U||!!(W.width&&W.height),I=I||!!W.videoCodec,N=N||!!W.audioCodec,c&&W.audioCodec&&W.audioCodec.indexOf("mp4a.40.34")!==-1&&(W.audioCodec=void 0);var L=W.bitrate+"-"+W.attrs.RESOLUTION+"-"+W.attrs.CODECS;T=v[L],T?T.url.push(W.url):(T=new b.Level(W),v[L]=T,P.push(T)),F&&(F.AUDIO&&Object(g.addGroupId)(T,"audio",F.AUDIO),F.SUBTITLES&&Object(g.addGroupId)(T,"text",F.SUBTITLES))}),(U||I)&&N&&(P=P.filter(function(W){var F=W.videoCodec,L=W.width,K=W.height;return!!F||!!(L&&K)})),P=P.filter(function(W){var F=W.audioCodec,L=W.videoCodec;return(!F||Object(A.isCodecSupportedInMp4)(F,"audio"))&&(!L||Object(A.isCodecSupportedInMp4)(L,"video"))}),_.audioTracks&&(R=_.audioTracks.filter(function(W){return!W.audioCodec||Object(A.isCodecSupportedInMp4)(W.audioCodec,"audio")}),Object(g.assignTrackIdsByGroup)(R)),_.subtitles&&(x=_.subtitles,Object(g.assignTrackIdsByGroup)(x)),P.length>0){S=P[0].bitrate,P.sort(function(W,F){return W.bitrate-F.bitrate}),this._levels=P;for(var V=0;V<P.length;V++)if(P[V].bitrate===S){this._firstLevel=V,this.log("manifest loaded, "+P.length+" level(s) found, first bitrate: "+S);break}var H=N&&!I,D={levels:P,audioTracks:R,subtitleTracks:x,firstLevel:this._firstLevel,stats:_.stats,audio:N,video:I,altAudio:!H&&R.some(function(W){return!!W.url})};this.hls.trigger(y.Events.MANIFEST_PARSED,D),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(y.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:_.url,reason:"no level with compatible codecs found in manifest"})},u.onError=function(E,_){if(d.prototype.onError.call(this,E,_),_.fatal)return;var P=_.context,R=this._levels[this.currentLevelIndex];if(P&&(P.type===f.PlaylistContextType.AUDIO_TRACK&&R.audioGroupIds&&P.groupId===R.audioGroupIds[R.urlId]||P.type===f.PlaylistContextType.SUBTITLE_TRACK&&R.textGroupIds&&P.groupId===R.textGroupIds[R.urlId])){this.redundantFailover(this.currentLevelIndex);return}var x=!1,S=!0,v;switch(_.details){case C.ErrorDetails.FRAG_LOAD_ERROR:case C.ErrorDetails.FRAG_LOAD_TIMEOUT:case C.ErrorDetails.KEY_LOAD_ERROR:case C.ErrorDetails.KEY_LOAD_TIMEOUT:if(_.frag){var T=this._levels[_.frag.level];T?(T.fragmentError++,T.fragmentError>this.hls.config.fragLoadingMaxRetry&&(v=_.frag.level)):v=_.frag.level}break;case C.ErrorDetails.LEVEL_LOAD_ERROR:case C.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(S=!1),v=P.level),x=!0;break;case C.ErrorDetails.REMUX_ALLOC_ERROR:v=_.level,x=!0;break}v!==void 0&&this.recoverLevel(_,v,x,S)},u.recoverLevel=function(E,_,P,R){var x=E.details,S=this._levels[_];if(S.loadError++,P){var v=this.retryLoadingOrFail(E);if(v)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var T=S.url.length;if(T>1&&S.loadError<T)E.levelRetry=!0,this.redundantFailover(_);else if(this.manualLevelIndex===-1){var U=_===0?this._levels.length-1:_-1;this.currentLevelIndex!==U&&this._levels[U].loadError===0&&(this.warn(x+": switch to "+U),E.levelRetry=!0,this.hls.nextAutoLevel=U)}}},u.redundantFailover=function(E){var _=this._levels[E],P=_.url.length;if(P>1){var R=(_.urlId+1)%P;this.warn("Switching to redundant URL-id "+R),this._levels.forEach(function(x){x.urlId=R}),this.level=E}},u.onFragLoaded=function(E,_){var P=_.frag;if(P!==void 0&&P.type===f.PlaylistLevelType.MAIN){var R=this._levels[P.level];R!==void 0&&(R.fragmentError=0,R.loadError=0)}},u.onLevelLoaded=function(E,_){var P,R=_.level,x=_.details,S=this._levels[R];if(!S){var v;this.warn("Invalid level index "+R),(v=_.deliveryDirectives)!==null&&v!==void 0&&v.skip&&(x.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(S.fragmentError===0&&(S.loadError=0,this.retryCount=0),this.playlistLoaded(R,_,S.details)):(P=_.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(x.deltaUpdateFailed=!0)},u.onAudioTrackSwitched=function(E,_){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var R=-1,x=this.hls.audioTracks[_.id].groupId,S=0;S<P.audioGroupIds.length;S++)if(P.audioGroupIds[S]===x){R=S;break}R!==P.urlId&&(P.urlId=R,this.startLoad())}},u.loadPlaylist=function(E){var _=this.currentLevelIndex,P=this._levels[_];if(this.canLoad&&P&&P.url.length>0){var R=P.urlId,x=P.url[R];if(E)try{x=E.addDirectives(x)}catch(S){this.warn("Could not construct new URL with HLS Delivery Directives: "+S)}this.log("Attempt loading level index "+_+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+R+" "+x),this.clearTimer(),this.hls.trigger(y.Events.LEVEL_LOADING,{url:x,level:_,id:R,deliveryDirectives:E||null})}},u.removeLevel=function(E,_){var P=function(S,v){return v!==_},R=this._levels.filter(function(x,S){return S!==E?!0:x.url.length>1&&_!==void 0?(x.url=x.url.filter(P),x.audioGroupIds&&(x.audioGroupIds=x.audioGroupIds.filter(P)),x.textGroupIds&&(x.textGroupIds=x.textGroupIds.filter(P)),x.urlId=0,!0):!1}).map(function(x,S){var v=x.details;return v!=null&&v.fragments&&v.fragments.forEach(function(T){T.level=S}),x});this._levels=R,this.hls.trigger(y.Events.LEVELS_UPDATED,{levels:R})},n(s,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var _,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===E&&(_=P[E])!==null&&_!==void 0&&_.details)return;if(E<0||E>=P.length){var R=E<0;if(this.hls.trigger(y.Events.ERROR,{type:C.ErrorTypes.OTHER_ERROR,details:C.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:R,reason:"invalid level idx"}),R)return;E=Math.min(E,P.length-1)}this.clearTimer();var x=this.currentLevelIndex,S=P[x],v=P[E];this.log("switching to level "+E+" from "+x),this.currentLevelIndex=E;var T=a({},v,{level:E,maxBitrate:v.maxBitrate,uri:v.uri,urlId:v.urlId});delete T._urlId,this.hls.trigger(y.Events.LEVEL_SWITCHING,T);var U=v.details;if(!U||U.live){var I=this.switchParams(v.uri,S==null?void 0:S.details);this.loadPlaylist(I)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),s}(e.default)},"./src/controller/level-helper.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"addGroupId",function(){return C}),O.d(m,"assignTrackIdsByGroup",function(){return A}),O.d(m,"updatePTS",function(){return g}),O.d(m,"updateFragPTSDTS",function(){return f}),O.d(m,"mergeDetails",function(){return a}),O.d(m,"mapPartIntersection",function(){return l}),O.d(m,"mapFragmentIntersection",function(){return n}),O.d(m,"adjustSliding",function(){return i}),O.d(m,"addSliding",function(){return r}),O.d(m,"computeReloadInterval",function(){return c}),O.d(m,"getFragmentWithSN",function(){return h}),O.d(m,"getPartWith",function(){return d});var b=O("./src/polyfills/number.ts"),y=O("./src/utils/logger.ts");function C(s,u,w){switch(u){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(w);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(w);break}}function A(s){var u={};s.forEach(function(w){var E=w.groupId||"";w.id=u[E]=u[E]||0,u[E]++})}function g(s,u,w){var E=s[u],_=s[w];e(E,_)}function e(s,u){var w=u.startPTS;if(Object(b.isFiniteNumber)(w)){var E=0,_;u.sn>s.sn?(E=w-s.start,_=s):(E=s.start-w,_=u),_.duration!==E&&(_.duration=E)}else if(u.sn>s.sn){var P=s.cc===u.cc;P&&s.minEndPTS?u.start=s.start+(s.minEndPTS-s.start):u.start=s.start+s.duration}else u.start=Math.max(s.start-u.duration,0)}function f(s,u,w,E,_,P){var R=E-w;R<=0&&(y.logger.warn("Fragment should have a positive duration",u),E=w+u.duration,P=_+u.duration);var x=w,S=E,v=u.startPTS,T=u.endPTS;if(Object(b.isFiniteNumber)(v)){var U=Math.abs(v-w);Object(b.isFiniteNumber)(u.deltaPTS)?u.deltaPTS=Math.max(U,u.deltaPTS):u.deltaPTS=U,x=Math.max(w,v),w=Math.min(w,v),_=Math.min(_,u.startDTS),S=Math.min(E,T),E=Math.max(E,T),P=Math.max(P,u.endDTS)}u.duration=E-w;var I=w-u.start;u.appendedPTS=E,u.start=u.startPTS=w,u.maxStartPTS=x,u.startDTS=_,u.endPTS=E,u.minEndPTS=S,u.endDTS=P;var N=u.sn;if(!s||N<s.startSN||N>s.endSN)return 0;var V,H=N-s.startSN,D=s.fragments;for(D[H]=u,V=H;V>0;V--)e(D[V],D[V-1]);for(V=H;V<D.length-1;V++)e(D[V],D[V+1]);return s.fragmentHint&&e(D[D.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,I}function a(s,u){for(var w=null,E=s.fragments,_=E.length-1;_>=0;_--){var P=E[_].initSegment;if(P){w=P;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var R=0,x;if(n(s,u,function(V,H){V.relurl&&(R=V.cc-H.cc),Object(b.isFiniteNumber)(V.startPTS)&&Object(b.isFiniteNumber)(V.endPTS)&&(H.start=H.startPTS=V.startPTS,H.startDTS=V.startDTS,H.appendedPTS=V.appendedPTS,H.maxStartPTS=V.maxStartPTS,H.endPTS=V.endPTS,H.endDTS=V.endDTS,H.minEndPTS=V.minEndPTS,H.duration=V.endPTS-V.startPTS,H.duration&&(x=H),u.PTSKnown=u.alignedSliding=!0),H.elementaryStreams=V.elementaryStreams,H.loader=V.loader,H.stats=V.stats,H.urlId=V.urlId,V.initSegment&&(H.initSegment=V.initSegment,w=V.initSegment)}),w){var S=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments;S.forEach(function(V){var H;(!V.initSegment||V.initSegment.relurl===((H=w)===null||H===void 0?void 0:H.relurl))&&(V.initSegment=w)})}if(u.skippedSegments&&(u.deltaUpdateFailed=u.fragments.some(function(V){return!V}),u.deltaUpdateFailed)){y.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var v=u.skippedSegments;v--;)u.fragments.shift();u.startSN=u.fragments[0].sn,u.startCC=u.fragments[0].cc}var T=u.fragments;if(R){y.logger.warn("discontinuity sliding from playlist, take drift into account");for(var U=0;U<T.length;U++)T[U].cc+=R}u.skippedSegments&&(u.startCC=u.fragments[0].cc),l(s.partList,u.partList,function(V,H){H.elementaryStreams=V.elementaryStreams,H.stats=V.stats}),x?f(u,x,x.startPTS,x.endPTS,x.startDTS,x.endDTS):i(s,u),T.length&&(u.totalduration=u.edge-T[0].start),u.driftStartTime=s.driftStartTime,u.driftStart=s.driftStart;var I=u.advancedDateTime;if(u.advanced&&I){var N=u.edge;u.driftStart||(u.driftStartTime=I,u.driftStart=N),u.driftEndTime=I,u.driftEnd=N}else u.driftEndTime=s.driftEndTime,u.driftEnd=s.driftEnd,u.advancedDateTime=s.advancedDateTime}function l(s,u,w){if(s&&u)for(var E=0,_=0,P=s.length;_<=P;_++){var R=s[_],x=u[_+E];R&&x&&R.index===x.index&&R.fragment.sn===x.fragment.sn?w(R,x):E--}}function n(s,u,w){for(var E=u.skippedSegments,_=Math.max(s.startSN,u.startSN)-u.startSN,P=(s.fragmentHint?1:0)+(E?u.endSN:Math.min(s.endSN,u.endSN))-u.startSN,R=u.startSN-s.startSN,x=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments,S=s.fragmentHint?s.fragments.concat(s.fragmentHint):s.fragments,v=_;v<=P;v++){var T=S[R+v],U=x[v];E&&!U&&v<E&&(U=u.fragments[v]=T),T&&U&&w(T,U)}}function i(s,u){var w=u.startSN+u.skippedSegments-s.startSN,E=s.fragments;if(w<0||w>=E.length)return;r(u,E[w].start)}function r(s,u){if(u){for(var w=s.fragments,E=s.skippedSegments;E<w.length;E++)w[E].start+=u;s.fragmentHint&&(s.fragmentHint.start+=u)}}function c(s,u){var w=1e3*s.levelTargetDuration,E=w/2,_=s.age,P=_>0&&_<w*3,R=u.loading.end-u.loading.start,x,S=s.availabilityDelay;if(s.updated===!1)if(P){var v=333*s.misses;x=Math.max(Math.min(E,R*2),v),s.availabilityDelay=(s.availabilityDelay||0)+x}else x=E;else P?(S=Math.min(S||w/2,_),s.availabilityDelay=S,x=S+w-_):x=w-R;return Math.round(x)}function h(s,u,w){if(!s||!s.details)return null;var E=s.details,_=E.fragments[u-E.startSN];return _||(_=E.fragmentHint,_&&_.sn===u?_:u<E.startSN&&w&&w.sn===u?w:null)}function d(s,u,w){if(!s||!s.details)return null;var E=s.details.partList;if(E)for(var _=E.length;_--;){var P=E[_];if(P.index===w&&P.fragment.sn===u)return P}return null}},"./src/controller/stream-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return E});var b=O("./src/polyfills/number.ts"),y=O("./src/controller/base-stream-controller.ts"),C=O("./src/is-supported.ts"),A=O("./src/events.ts"),g=O("./src/utils/buffer-helper.ts"),e=O("./src/controller/fragment-tracker.ts"),f=O("./src/types/loader.ts"),a=O("./src/loader/fragment.ts"),l=O("./src/demux/transmuxer-interface.ts"),n=O("./src/types/transmuxer.ts"),i=O("./src/controller/gap-controller.ts"),r=O("./src/errors.ts"),c=O("./src/utils/logger.ts");function h(_,P){for(var R=0;R<P.length;R++){var x=P[R];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}function d(_,P,R){return P&&h(_.prototype,P),R&&h(_,R),_}function s(_,P){_.prototype=Object.create(P.prototype),_.prototype.constructor=_,u(_,P)}function u(_,P){return u=Object.setPrototypeOf||function(x,S){return x.__proto__=S,x},u(_,P)}var w=100,E=function(_){s(P,_);function P(x,S){var v;return v=_.call(this,x,S,"[stream-controller]")||this,v.audioCodecSwap=!1,v.gapController=null,v.level=-1,v._forceStartLoad=!1,v.altAudio=!1,v.audioOnly=!1,v.fragPlaying=null,v.onvplaying=null,v.onvseeked=null,v.fragLastKbps=0,v.stalled=!1,v.couldBacktrack=!1,v.audioCodecSwitch=!1,v.videoBuffer=null,v._registerListeners(),v}var R=P.prototype;return R._registerListeners=function(){var S=this.hls;S.on(A.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.on(A.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.on(A.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.on(A.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.on(A.Events.LEVEL_LOADING,this.onLevelLoading,this),S.on(A.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.on(A.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.on(A.Events.ERROR,this.onError,this),S.on(A.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.on(A.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.on(A.Events.BUFFER_CREATED,this.onBufferCreated,this),S.on(A.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.on(A.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.on(A.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R._unregisterListeners=function(){var S=this.hls;S.off(A.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.off(A.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.off(A.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.off(A.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.off(A.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.off(A.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.off(A.Events.ERROR,this.onError,this),S.off(A.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.off(A.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.off(A.Events.BUFFER_CREATED,this.onBufferCreated,this),S.off(A.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.off(A.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.off(A.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},R.startLoad=function(S){if(this.levels){var v=this.lastCurrentTime,T=this.hls;if(this.stopLoad(),this.setInterval(w),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var U=T.startLevel;U===-1&&(T.config.testBandwidth?(U=0,this.bitrateTest=!0):U=T.nextAutoLevel),this.level=T.nextLoadLevel=U,this.loadedmetadata=!1}v>0&&S===-1&&(this.log("Override startPosition with lastCurrentTime @"+v.toFixed(3)),S=v),this.state=y.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=S,this.tick()}else this._forceStartLoad=!0,this.state=y.State.STOPPED},R.stopLoad=function(){this._forceStartLoad=!1,_.prototype.stopLoad.call(this)},R.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_LEVEL:{var S,v=this.levels,T=this.level,U=v==null||((S=v[T])===null||S===void 0)?void 0:S.details;if(U&&(!U.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(U))break;this.state=y.State.IDLE;break}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var I,N=self.performance.now(),V=this.retryDate;(!V||N>=V||(I=this.media)!==null&&I!==void 0&&I.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=y.State.IDLE)}break;default:break}this.onTickEnd()},R.onTickEnd=function(){_.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},R.doTickIdle=function(){var S,v,T=this.hls,U=this.levelLastLoaded,I=this.levels,N=this.media,V=T.config,H=T.nextLoadLevel;if(U===null||!N&&(this.startFragRequested||!V.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!I||!I[H])return;var D=I[H];this.level=T.nextLoadLevel=H;var W=D.details;if(!W||this.state===y.State.WAITING_LEVEL||W.live&&this.levelLastLoaded!==H){this.state=y.State.WAITING_LEVEL;return}var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:N,f.PlaylistLevelType.MAIN);if(F===null)return;var L=F.len,K=this.getMaxBufferLength(D.maxBitrate);if(L>=K)return;if(this._streamEnded(F,W)){var ee={};this.altAudio&&(ee.type="video"),this.hls.trigger(A.Events.BUFFER_EOS,ee),this.state=y.State.ENDED;return}var he=F.end,fe=this.getNextFragment(he,W);if(this.couldBacktrack&&!this.fragPrevious&&fe&&fe.sn!=="initSegment"){var Ce=fe.sn-W.startSN;Ce>1&&(fe=W.fragments[Ce-1],this.fragmentTracker.removeFragment(fe))}if(fe&&this.fragmentTracker.getState(fe)===e.FragmentState.OK&&this.nextLoadPosition>he){var Te=this.audioOnly&&!this.altAudio?a.ElementaryStreamTypes.AUDIO:a.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(N,Te,f.PlaylistLevelType.MAIN),fe=this.getNextFragment(this.nextLoadPosition,W)}if(!fe)return;fe.initSegment&&!fe.initSegment.data&&!this.bitrateTest&&(fe=fe.initSegment),((S=fe.decryptdata)===null||S===void 0?void 0:S.keyFormat)==="identity"&&!((v=fe.decryptdata)!==null&&v!==void 0&&v.key)?this.loadKey(fe,W):this.loadFragment(fe,W,he)},R.loadFragment=function(S,v,T){var U,I=this.fragmentTracker.getState(S);if(this.fragCurrent=S,I===e.FragmentState.BACKTRACKED){var N=this.fragmentTracker.getBacktrackData(S);if(N){this._handleFragmentLoadProgress(N),this._handleFragmentLoadComplete(N);return}else I=e.FragmentState.NOT_LOADED}I===e.FragmentState.NOT_LOADED||I===e.FragmentState.PARTIAL?S.sn==="initSegment"?this._loadInitSegment(S):this.bitrateTest?(S.bitrateTest=!0,this.log("Fragment "+S.sn+" of level "+S.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(S)):(this.startFragRequested=!0,_.prototype.loadFragment.call(this,S,v,T)):I===e.FragmentState.APPENDING?this.reduceMaxBufferLength(S.duration)&&this.fragmentTracker.removeFragment(S):((U=this.media)===null||U===void 0?void 0:U.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(S){var v=this.fragmentTracker.getAppendedFrag(S,f.PlaylistLevelType.MAIN);return v&&"fragment"in v?v.fragment:v},R.getBufferedFrag=function(S){return this.fragmentTracker.getBufferedFrag(S,f.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(S){return S?this.getBufferedFrag(S.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var S=this.levels,v=this.media;if(v!=null&&v.readyState){var T,U=this.getAppendedFrag(v.currentTime);if(U&&U.start>1&&this.flushMainBuffer(0,U.start-1),!v.paused&&S){var I=this.hls.nextLoadLevel,N=S[I],V=this.fragLastKbps;V&&this.fragCurrent?T=this.fragCurrent.duration*N.maxBitrate/(1e3*V)+1:T=0}else T=0;var H=this.getBufferedFrag(v.currentTime+T);if(H){var D=this.followingBufferedFrag(H);if(D){this.abortCurrentFrag();var W=D.maxStartPTS?D.maxStartPTS:D.start,F=D.duration,L=Math.max(H.end,W+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(L,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var S=this.fragCurrent;this.fragCurrent=null,S!=null&&S.loader&&S.loader.abort(),this.state===y.State.KEY_LOADING&&(this.state=y.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(S,v){_.prototype.flushMainBuffer.call(this,S,v,this.altAudio?"video":null)},R.onMediaAttached=function(S,v){_.prototype.onMediaAttached.call(this,S,v);var T=v.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),T.addEventListener("playing",this.onvplaying),T.addEventListener("seeked",this.onvseeked),this.gapController=new i.default(this.config,T,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var S=this.media;S&&(S.removeEventListener("playing",this.onvplaying),S.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),_.prototype.onMediaDetaching.call(this)},R.onMediaPlaying=function(){this.tick()},R.onMediaSeeked=function(){var S=this.media,v=S?S.currentTime:null;Object(b.isFiniteNumber)(v)&&this.log("Media seeked to "+v.toFixed(3)),this.tick()},R.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(A.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(S,v){var T=!1,U=!1,I;v.levels.forEach(function(N){I=N.audioCodec,I&&(I.indexOf("mp4a.40.2")!==-1&&(T=!0),I.indexOf("mp4a.40.5")!==-1&&(U=!0))}),this.audioCodecSwitch=T&&U&&!Object(C.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=v.levels,this.startFragRequested=!1},R.onLevelLoading=function(S,v){var T=this.levels;if(!T||this.state!==y.State.IDLE)return;var U=T[v.level];(!U.details||U.details.live&&this.levelLastLoaded!==v.level||this.waitForCdnTuneIn(U.details))&&(this.state=y.State.WAITING_LEVEL)},R.onLevelLoaded=function(S,v){var T,U=this.levels,I=v.level,N=v.details,V=N.totalduration;if(!U){this.warn("Levels were reset while loading level "+I);return}this.log("Level "+I+" loaded ["+N.startSN+","+N.endSN+"], cc ["+N.startCC+", "+N.endCC+"] duration:"+V);var H=this.fragCurrent;H&&(this.state===y.State.FRAG_LOADING||this.state===y.State.FRAG_LOADING_WAITING_RETRY)&&(H.level!==v.level&&H.loader&&(this.state=y.State.IDLE,H.loader.abort()));var D=U[I],W=0;if(N.live||(T=D.details)!==null&&T!==void 0&&T.live){if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed)return;W=this.alignPlaylists(N,D.details)}if(D.details=N,this.levelLastLoaded=I,this.hls.trigger(A.Events.LEVEL_UPDATED,{details:N,level:I}),this.state===y.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(N))return;this.state=y.State.IDLE}this.startFragRequested?N.live&&this.synchronizeToLiveEdge(N):this.setStartPosition(N,W),this.tick()},R._handleFragmentLoadProgress=function(S){var v,T=S.frag,U=S.part,I=S.payload,N=this.levels;if(!N){this.warn("Levels were reset while fragment load was in progress. Fragment "+T.sn+" of level "+T.level+" will not be buffered");return}var V=N[T.level],H=V.details;if(!H){this.warn("Dropping fragment "+T.sn+" of level "+T.level+" after level details were reset");return}var D=V.videoCodec,W=H.PTSKnown||!H.live,F=(v=T.initSegment)===null||v===void 0?void 0:v.data,L=this._getAudioCodec(V),K=this.transmuxer=this.transmuxer||new l.default(this.hls,f.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ee=U?U.index:-1,he=ee!==-1,fe=new n.ChunkMetadata(T.level,T.sn,T.stats.chunkCount,I.byteLength,ee,he),Ce=this.initPTS[T.cc];K.push(I,F,L,D,T,U,H.totalduration,W,fe,Ce)},R.onAudioTrackSwitching=function(S,v){var T=this.altAudio,U=!!v.url,I=v.id;if(!U){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var N=this.fragCurrent;N!=null&&N.loader&&(this.log("Switching to main audio track, cancel main fragment load"),N.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var V=this.hls;T&&V.trigger(A.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),V.trigger(A.Events.AUDIO_TRACK_SWITCHED,{id:I})}},R.onAudioTrackSwitched=function(S,v){var T=v.id,U=!!this.hls.audioTracks[T].url;if(U){var I=this.videoBuffer;I&&this.mediaBuffer!==I&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=I)}this.altAudio=U,this.tick()},R.onBufferCreated=function(S,v){var T=v.tracks,U,I,N=!1;for(var V in T){var H=T[V];if(H.id==="main"){if(I=V,U=H,V==="video"){var D=T[V];D&&(this.videoBuffer=D.buffer)}}else N=!0}N&&U?(this.log("Alternate track found, use "+I+".buffered to schedule main fragment loading"),this.mediaBuffer=U.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(S,v){var T=v.frag,U=v.part;if(T&&T.type!==f.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(T)){this.warn("Fragment "+T.sn+(U?" p: "+U.index:"")+" of level "+T.level+" finished buffering, but was aborted. state: "+this.state),this.state===y.State.PARSED&&(this.state=y.State.IDLE);return}var I=U?U.stats:T.stats;this.fragLastKbps=Math.round(8*I.total/(I.buffering.end-I.loading.first)),T.sn!=="initSegment"&&(this.fragPrevious=T),this.fragBufferedComplete(T,U)},R.onError=function(S,v){switch(v.details){case r.ErrorDetails.FRAG_LOAD_ERROR:case r.ErrorDetails.FRAG_LOAD_TIMEOUT:case r.ErrorDetails.KEY_LOAD_ERROR:case r.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f.PlaylistLevelType.MAIN,v);break;case r.ErrorDetails.LEVEL_LOAD_ERROR:case r.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==y.State.ERROR&&(v.fatal?(this.warn(""+v.details),this.state=y.State.ERROR):!v.levelRetry&&this.state===y.State.WAITING_LEVEL&&(this.state=y.State.IDLE));break;case r.ErrorDetails.BUFFER_FULL_ERROR:if(v.parent==="main"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var T=!0,U=this.getFwdBufferInfo(this.media,f.PlaylistLevelType.MAIN);U&&U.len>.5&&(T=!this.reduceMaxBufferLength(U.len)),T&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var S=this.media,v=this.gapController;if(!S||!v||!S.readyState)return;var T=g.BufferHelper.getBuffered(S);!this.loadedmetadata&&T.length?(this.loadedmetadata=!0,this.seekToStartPos()):v.poll(this.lastCurrentTime),this.lastCurrentTime=S.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=y.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(S,v){var T=v.type;if(T!==a.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var U=(T===a.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(U,T,f.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(S,v){this.levels=v.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var S=this.media,v=S.currentTime,T=this.startPosition;if(T>=0&&v<T){if(S.seeking){c.logger.log("could not seek to "+T+", already seeking at "+v);return}var U=g.BufferHelper.getBuffered(S),I=U.length?U.start(0):0,N=I-T;N>0&&(N<this.config.maxBufferHole||N<this.config.maxFragLookUpTolerance)&&(c.logger.log("adjusting start position by "+N+" to match buffer start"),T+=N,this.startPosition=T),this.log("seek to target start position "+T+" from current time "+v),S.currentTime=T}},R._getAudioCodec=function(S){var v=this.config.defaultAudioCodec||S.audioCodec;return this.audioCodecSwap&&v&&(this.log("Swapping audio codec"),v.indexOf("mp4a.40.5")!==-1?v="mp4a.40.2":v="mp4a.40.5"),v},R._loadBitrateTestFrag=function(S){var v=this;this._doFragLoad(S).then(function(T){var U=v.hls;if(!T||U.nextLoadLevel||v.fragContextChanged(S))return;v.fragLoadError=0,v.state=y.State.IDLE,v.startFragRequested=!1,v.bitrateTest=!1;var I=S.stats;I.parsing.start=I.parsing.end=I.buffering.start=I.buffering.end=self.performance.now(),U.trigger(A.Events.FRAG_LOADED,T)})},R._handleTransmuxComplete=function(S){var v,T="main",U=this.hls,I=S.remuxResult,N=S.chunkMeta,V=this.getCurrentContext(N);if(!V){this.warn("The loading context changed while buffering fragment "+N.sn+" of level "+N.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(N.level);return}var H=V.frag,D=V.part,W=V.level,F=I.video,L=I.text,K=I.id3,ee=I.initSegment,he=this.altAudio?void 0:I.audio;if(this.fragContextChanged(H))return;if(this.state=y.State.PARSING,ee){ee.tracks&&(this._bufferInitSegment(W,ee.tracks,H,N),U.trigger(A.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:T,tracks:ee.tracks}));var fe=ee.initPTS,Ce=ee.timescale;Object(b.isFiniteNumber)(fe)&&(this.initPTS[H.cc]=fe,U.trigger(A.Events.INIT_PTS_FOUND,{frag:H,id:T,initPTS:fe,timescale:Ce}))}if(F&&I.independent!==!1){if(W.details){var Te=F.startPTS,ce=F.endPTS,ye=F.startDTS,Ee=F.endDTS;if(D)D.elementaryStreams[F.type]={startPTS:Te,endPTS:ce,startDTS:ye,endDTS:Ee};else if(F.firstKeyFrame&&F.independent&&(this.couldBacktrack=!0),F.dropped&&F.independent){var ue=this.getLoadPosition()+this.config.maxBufferHole;if(ue<Te){this.backtrack(H);return}H.setElementaryStreamInfo(F.type,H.start,ce,H.start,Ee,!0)}H.setElementaryStreamInfo(F.type,Te,ce,ye,Ee),this.bufferFragmentData(F,H,D,N)}}else if(I.independent===!1){this.backtrack(H);return}if(he){var se=he.startPTS,$=he.endPTS,me=he.startDTS,re=he.endDTS;D&&(D.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:se,endPTS:$,startDTS:me,endDTS:re}),H.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,se,$,me,re),this.bufferFragmentData(he,H,D,N)}if(K!=null&&(v=K.samples)!==null&&v!==void 0&&v.length){var ae={frag:H,id:T,samples:K.samples};U.trigger(A.Events.FRAG_PARSING_METADATA,ae)}if(L){var we={frag:H,id:T,samples:L.samples};U.trigger(A.Events.FRAG_PARSING_USERDATA,we)}},R._bufferInitSegment=function(S,v,T,U){var I=this;if(this.state!==y.State.PARSING)return;this.audioOnly=!!v.audio&&!v.video,this.altAudio&&!this.audioOnly&&delete v.audio;var N=v.audio,V=v.video,H=v.audiovideo;if(N){var D=S.audioCodec,W=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(D&&(D.indexOf("mp4a.40.5")!==-1?D="mp4a.40.2":D="mp4a.40.5"),N.metadata.channelCount!==1&&W.indexOf("firefox")===-1&&(D="mp4a.40.5")),W.indexOf("android")!==-1&&N.container!=="audio/mpeg"&&(D="mp4a.40.2",this.log("Android: force audio codec to "+D)),S.audioCodec&&S.audioCodec!==D&&this.log('Swapping manifest audio codec "'+S.audioCodec+'" for "'+D+'"'),N.levelCodec=D,N.id="main",this.log("Init audio buffer, container:"+N.container+", codecs[selected/level/parsed]=["+(D||"")+"/"+(S.audioCodec||"")+"/"+N.codec+"]")}V&&(V.levelCodec=S.videoCodec,V.id="main",this.log("Init video buffer, container:"+V.container+", codecs[level/parsed]=["+(S.videoCodec||"")+"/"+V.codec+"]")),H&&this.log("Init audiovideo buffer, container:"+H.container+", codecs[level/parsed]=["+(S.attrs.CODECS||"")+"/"+H.codec+"]"),this.hls.trigger(A.Events.BUFFER_CODECS,v),Object.keys(v).forEach(function(F){var L=v[F],K=L.initSegment;K!=null&&K.byteLength&&I.hls.trigger(A.Events.BUFFER_APPENDING,{type:F,data:K,frag:T,part:null,chunkMeta:U,parent:T.type})}),this.tick()},R.backtrack=function(S){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(S);var v=this.fragmentTracker.backtrack(S);this.fragPrevious=null,this.nextLoadPosition=S.start,v?this.resetFragmentLoading(S):this.state=y.State.BACKTRACKING},R.checkFragmentChanged=function(){var S=this.media,v=null;if(S&&S.readyState>1&&S.seeking===!1){var T=S.currentTime;if(g.BufferHelper.isBuffered(S,T)?v=this.getAppendedFrag(T):g.BufferHelper.isBuffered(S,T+.1)&&(v=this.getAppendedFrag(T+.1)),v){var U=this.fragPlaying,I=v.level;(!U||v.sn!==U.sn||U.level!==I||v.urlId!==U.urlId)&&(this.hls.trigger(A.Events.FRAG_CHANGED,{frag:v}),(!U||U.level!==I)&&this.hls.trigger(A.Events.LEVEL_SWITCHED,{level:I}),this.fragPlaying=v)}}},d(P,[{key:"nextLevel",get:function(){var S=this.nextBufferedFrag;return S?S.level:-1}},{key:"currentLevel",get:function(){var S=this.media;if(S){var v=this.getAppendedFrag(S.currentTime);if(v)return v.level}return-1}},{key:"nextBufferedFrag",get:function(){var S=this.media;if(S){var v=this.getAppendedFrag(S.currentTime);return this.followingBufferedFrag(v)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(y.default)},"./src/controller/subtitle-stream-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"SubtitleStreamController",function(){return s});var b=O("./src/events.ts"),y=O("./src/utils/logger.ts"),C=O("./src/utils/buffer-helper.ts"),A=O("./src/controller/fragment-finders.ts"),g=O("./src/utils/discontinuities.ts"),e=O("./src/controller/level-helper.ts"),f=O("./src/controller/fragment-tracker.ts"),a=O("./src/controller/base-stream-controller.ts"),l=O("./src/types/loader.ts"),n=O("./src/types/level.ts");function i(u,w){for(var E=0;E<w.length;E++){var _=w[E];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(u,_.key,_)}}function r(u,w,E){return w&&i(u.prototype,w),E&&i(u,E),u}function c(u,w){u.prototype=Object.create(w.prototype),u.prototype.constructor=u,h(u,w)}function h(u,w){return h=Object.setPrototypeOf||function(_,P){return _.__proto__=P,_},h(u,w)}var d=500,s=function(u){c(w,u);function w(_,P){var R;return R=u.call(this,_,P,"[subtitle-stream-controller]")||this,R.levels=[],R.currentTrackId=-1,R.tracksBuffered=[],R.mainDetails=null,R._registerListeners(),R}var E=w.prototype;return E.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},E._registerListeners=function(){var P=this.hls;P.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.on(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.on(b.Events.ERROR,this.onError,this),P.on(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.on(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.on(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},E._unregisterListeners=function(){var P=this.hls;P.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.off(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.off(b.Events.ERROR,this.onError,this),P.off(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.off(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.off(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},E.startLoad=function(){this.stopLoad(),this.state=a.State.IDLE,this.setInterval(d),this.tick()},E.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},E.onLevelLoaded=function(P,R){this.mainDetails=R.details},E.onSubtitleFragProcessed=function(P,R){var x=R.frag,S=R.success;if(this.fragPrevious=x,this.state=a.State.IDLE,!S)return;var v=this.tracksBuffered[this.currentTrackId];if(!v)return;for(var T,U=x.start,I=0;I<v.length;I++)if(U>=v[I].start&&U<=v[I].end){T=v[I];break}var N=x.start+x.duration;T?T.end=N:(T={start:U,end:N},v.push(T)),this.fragmentTracker.fragBuffered(x)},E.onBufferFlushing=function(P,R){var x=R.startOffset,S=R.endOffset;if(x===0&&S!==Number.POSITIVE_INFINITY){var v=this.currentTrackId,T=this.levels;if(!T.length||!T[v]||!T[v].details)return;var U=T[v].details,I=U.targetduration,N=S-I;if(N<=0)return;R.endOffsetSubtitles=Math.max(0,N),this.tracksBuffered.forEach(function(V){for(var H=0;H<V.length;){if(V[H].end<=N){V.shift();continue}else if(V[H].start<N)V[H].start=N;else break;H++}}),this.fragmentTracker.removeFragmentsInRange(x,N,l.PlaylistLevelType.SUBTITLE)}},E.onError=function(P,R){var x,S=R.frag;if(!S||S.type!==l.PlaylistLevelType.SUBTITLE)return;(x=this.fragCurrent)!==null&&x!==void 0&&x.loader&&this.fragCurrent.loader.abort(),this.state=a.State.IDLE},E.onSubtitleTracksUpdated=function(P,R){var x=this,S=R.subtitleTracks;this.tracksBuffered=[],this.levels=S.map(function(v){return new n.Level(v)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(v){x.tracksBuffered[v.id]=[]}),this.mediaBuffer=null},E.onSubtitleTrackSwitch=function(P,R){if(this.currentTrackId=R.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var x=this.levels[this.currentTrackId];x!=null&&x.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,x&&this.setInterval(d)},E.onSubtitleTrackLoaded=function(P,R){var x,S=R.details,v=R.id,T=this.currentTrackId,U=this.levels;if(!U.length)return;var I=U[T];if(v>=U.length||v!==T||!I)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,S.live||(x=I.details)!==null&&x!==void 0&&x.live){var N=this.mainDetails;if(S.deltaUpdateFailed||!N)return;var V=N.fragments[0];if(!I.details)S.hasProgramDateTime&&N.hasProgramDateTime?Object(g.alignMediaPlaylistByPDT)(S,N):V&&Object(e.addSliding)(S,V.start);else{var H=this.alignPlaylists(S,I.details);H===0&&V&&Object(e.addSliding)(S,V.start)}}if(I.details=S,this.levelLastLoaded=v,this.tick(),S.live&&!this.fragCurrent&&this.media&&this.state===a.State.IDLE){var D=Object(A.findFragmentByPTS)(null,S.fragments,this.media.currentTime,0);D||(this.warn("Subtitle playlist not aligned with playback"),I.details=void 0)}},E._handleFragmentLoadComplete=function(P){var R=P.frag,x=P.payload,S=R.decryptdata,v=this.hls;if(this.fragContextChanged(R))return;if(x&&x.byteLength>0&&S&&S.key&&S.iv&&S.method==="AES-128"){var T=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(x),S.key.buffer,S.iv.buffer).then(function(U){var I=performance.now();v.trigger(b.Events.FRAG_DECRYPTED,{frag:R,payload:U,stats:{tstart:T,tdecrypt:I}})})}},E.doTick=function(){if(!this.media){this.state=a.State.IDLE;return}if(this.state===a.State.IDLE){var P,R=this.currentTrackId,x=this.levels;if(!x.length||!x[R]||!x[R].details)return;var S=x[R].details,v=S.targetduration,T=this.config,U=this.media,I=C.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,U.currentTime-v,T.maxBufferHole),N=I.end,V=I.len,H=this.getMaxBufferLength()+v;if(V>H)return;console.assert(S,"Subtitle track details are defined on idle subtitle stream controller tick");var D=S.fragments,W=D.length,F=S.edge,L,K=this.fragPrevious;if(N<F){var ee=T.maxFragLookUpTolerance;K&&S.hasProgramDateTime&&(L=Object(A.findFragmentByPDT)(D,K.endProgramDateTime,ee)),L||(L=Object(A.findFragmentByPTS)(K,D,N,ee),!L&&K&&K.start<D[0].start&&(L=D[0]))}else L=D[W-1];(P=L)!==null&&P!==void 0&&P.encrypted?(y.logger.log("Loading key for "+L.sn),this.state=a.State.KEY_LOADING,this.hls.trigger(b.Events.KEY_LOADING,{frag:L})):L&&this.fragmentTracker.getState(L)===f.FragmentState.NOT_LOADED&&this.loadFragment(L,S,N)}},E.loadFragment=function(P,R,x){this.fragCurrent=P,u.prototype.loadFragment.call(this,P,R,x)},r(w,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),w}(a.default)},"./src/controller/subtitle-track-controller.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/events.ts"),y=O("./src/utils/texttrack-utils.ts"),C=O("./src/controller/base-playlist-controller.ts"),A=O("./src/types/loader.ts");function g(i,r){for(var c=0;c<r.length;c++){var h=r[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function e(i,r,c){return r&&g(i.prototype,r),c&&g(i,c),i}function f(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,a(i,r)}function a(i,r){return a=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h},a(i,r)}var l=function(i){f(r,i);function r(h){var d;return d=i.call(this,h,"[subtitle-track-controller]")||this,d.media=null,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.selectDefaultTrack=!0,d.queuedDefaultTrack=-1,d.trackChangeListener=function(){return d.onTextTracksChanged()},d.asyncPollTrackChange=function(){return d.pollTrackChange(0)},d.useTextTrackPolling=!1,d.subtitlePollingInterval=-1,d.subtitleDisplay=!0,d.registerListeners(),d}var c=r.prototype;return c.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,i.prototype.destroy.call(this)},c.registerListeners=function(){var d=this.hls;d.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.on(b.Events.ERROR,this.onError,this)},c.unregisterListeners=function(){var d=this.hls;d.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.off(b.Events.ERROR,this.onError,this)},c.onMediaAttached=function(d,s){if(this.media=s.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},c.pollTrackChange=function(d){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,d)},c.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var d=n(this.media.textTracks);d.forEach(function(s){Object(y.clearCurrentCues)(s)}),this.subtitleTrack=-1,this.media=null},c.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},c.onManifestParsed=function(d,s){this.tracks=s.subtitleTracks},c.onSubtitleTrackLoaded=function(d,s){var u=s.id,w=s.details,E=this.trackId,_=this.tracksInGroup[E];if(!_){this.warn("Invalid subtitle track id "+u);return}var P=_.details;_.details=s.details,this.log("subtitle track "+u+" loaded ["+w.startSN+"-"+w.endSN+"]"),u===this.trackId&&(this.retryCount=0,this.playlistLoaded(u,s,P))},c.onLevelLoading=function(d,s){this.switchLevel(s.level)},c.onLevelSwitching=function(d,s){this.switchLevel(s.level)},c.switchLevel=function(d){var s=this.hls.levels[d];if(!(s!=null&&s.textGroupIds))return;var u=s.textGroupIds[s.urlId];if(this.groupId!==u){var w=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(R){return!u||R.groupId===u});this.tracksInGroup=E;var _=this.findTrackId(w==null?void 0:w.name)||this.findTrackId();this.groupId=u;var P={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+u+'" group-id'),this.hls.trigger(b.Events.SUBTITLE_TRACKS_UPDATED,P),_!==-1&&this.setSubtitleTrack(_,w)}},c.findTrackId=function(d){for(var s=this.tracksInGroup,u=0;u<s.length;u++){var w=s[u];if((!this.selectDefaultTrack||w.default)&&(!d||d===w.name))return w.id}return-1},c.onError=function(d,s){if(i.prototype.onError.call(this,d,s),s.fatal||!s.context)return;s.context.type===A.PlaylistContextType.SUBTITLE_TRACK&&s.context.id===this.trackId&&s.context.groupId===this.groupId&&this.retryLoadingOrFail(s)},c.loadPlaylist=function(d){var s=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(s)){var u=s.id,w=s.groupId,E=s.url;if(d)try{E=d.addDirectives(E)}catch(_){this.warn("Could not construct new URL with HLS Delivery Directives: "+_)}this.log("Loading subtitle playlist for id "+u),this.hls.trigger(b.Events.SUBTITLE_TRACK_LOADING,{url:E,id:u,groupId:w,deliveryDirectives:d||null})}},c.toggleTrackModes=function(d){var s=this,u=this.media,w=this.subtitleDisplay,E=this.trackId;if(!u)return;var _=n(u.textTracks),P=_.filter(function(S){return S.groupId===s.groupId});if(d===-1)[].slice.call(_).forEach(function(S){S.mode="disabled"});else{var R=P[E];R&&(R.mode="disabled")}var x=P[d];x&&(x.mode=w?"showing":"hidden")},c.setSubtitleTrack=function(d,s){var u,w=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=d;return}if(this.trackId!==d&&this.toggleTrackModes(d),this.trackId===d&&(d===-1||(u=w[d])!==null&&u!==void 0&&u.details)||d<-1||d>=w.length)return;this.clearTimer();var E=w[d];if(this.log("Switching to subtitle track "+d),this.trackId=d,E){var _=E.id,P=E.groupId,R=P===void 0?"":P,x=E.name,S=E.type,v=E.url;this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:_,groupId:R,name:x,type:S,url:v});var T=this.switchParams(E.url,s==null?void 0:s.details);this.loadPlaylist(T)}else this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:d})},c.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var d=-1,s=n(this.media.textTracks),u=0;u<s.length;u++)if(s[u].mode==="hidden")d=u;else if(s[u].mode==="showing"){d=u;break}this.subtitleTrack!==d&&(this.subtitleTrack=d)},e(r,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(d){this.selectDefaultTrack=!1;var s=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(d,s)}}]),r}(C.default);function n(i){for(var r=[],c=0;c<i.length;c++){var h=i[c];h.kind==="subtitles"&&h.label&&r.push(i[c])}return r}m.default=l},"./src/controller/timeline-controller.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"TimelineController",function(){return n});var b=O("./src/polyfills/number.ts"),y=O("./src/events.ts"),C=O("./src/utils/cea-608-parser.ts"),A=O("./src/utils/output-filter.ts"),g=O("./src/utils/webvtt-parser.ts"),e=O("./src/utils/texttrack-utils.ts"),f=O("./src/utils/imsc1-ttml-parser.ts"),a=O("./src/types/loader.ts"),l=O("./src/utils/logger.ts"),n=function(){function h(s){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=c(),this.captionsProperties=void 0,this.hls=s,this.config=s.config,this.Cues=s.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var u=new A.default(this,"textTrack1"),w=new A.default(this,"textTrack2"),E=new A.default(this,"textTrack3"),_=new A.default(this,"textTrack4");this.cea608Parser1=new C.default(1,u,w),this.cea608Parser2=new C.default(3,E,_)}s.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),s.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),s.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.on(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),s.on(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),s.on(y.Events.FRAG_LOADING,this.onFragLoading,this),s.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),s.on(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),s.on(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),s.on(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),s.on(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),s.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var d=h.prototype;return d.destroy=function(){var u=this.hls;u.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),u.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),u.off(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),u.off(y.Events.FRAG_LOADING,this.onFragLoading,this),u.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),u.off(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),u.off(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),u.off(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),u.off(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),u.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},d.addCues=function(u,w,E,_,P){for(var R=!1,x=P.length;x--;){var S=P[x],v=r(S[0],S[1],w,E);if(v>=0&&(S[0]=Math.min(S[0],w),S[1]=Math.max(S[1],E),R=!0,v/(E-w)>.5))return}if(R||P.push([w,E]),this.config.renderTextTracksNatively){var T=this.captionsTracks[u];this.Cues.newCue(T,w,E,_)}else{var U=this.Cues.newCue(null,w,E,_);this.hls.trigger(y.Events.CUES_PARSED,{type:"captions",cues:U,track:u})}},d.onInitPtsFound=function(u,w){var E=this,_=w.frag,P=w.id,R=w.initPTS,x=w.timescale,S=this.unparsedVttFrags;P==="main"&&(this.initPTS[_.cc]=R,this.timescale[_.cc]=x),S.length&&(this.unparsedVttFrags=[],S.forEach(function(v){E.onFragLoaded(y.Events.FRAG_LOADED,v)}))},d.getExistingTrack=function(u){var w=this.media;if(w)for(var E=0;E<w.textTracks.length;E++){var _=w.textTracks[E];if(_[u])return _}return null},d.createCaptionsTrack=function(u){this.config.renderTextTracksNatively?this.createNativeTrack(u):this.createNonNativeTrack(u)},d.createNativeTrack=function(u){if(this.captionsTracks[u])return;var w=this.captionsProperties,E=this.captionsTracks,_=this.media,P=w[u],R=P.label,x=P.languageCode,S=this.getExistingTrack(u);if(S)E[u]=S,Object(e.clearCurrentCues)(E[u]),Object(e.sendAddTrackEvent)(E[u],_);else{var v=this.createTextTrack("captions",R,x);v&&(v[u]=!0,E[u]=v)}},d.createNonNativeTrack=function(u){if(this.nonNativeCaptionsTracks[u])return;var w=this.captionsProperties[u];if(!w)return;var E=w.label,_={_id:u,label:E,kind:"captions",default:w.media?!!w.media.default:!1,closedCaptions:w.media};this.nonNativeCaptionsTracks[u]=_,this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[_]})},d.createTextTrack=function(u,w,E){var _=this.media;return _?_.addTextTrack(u,w,E):void 0},d.onMediaAttaching=function(u,w){this.media=w.media,this._cleanTracks()},d.onMediaDetaching=function(){var u=this.captionsTracks;Object.keys(u).forEach(function(w){Object(e.clearCurrentCues)(u[w]),delete u[w]}),this.nonNativeCaptionsTracks={}},d.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=c(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},d._cleanTracks=function(){var u=this.media;if(!u)return;var w=u.textTracks;if(w)for(var E=0;E<w.length;E++)Object(e.clearCurrentCues)(w[E])},d.onSubtitleTracksUpdated=function(u,w){var E=this;this.textTracks=[];var _=w.subtitleTracks||[],P=_.some(function(v){return v.textCodec===f.IMSC1_CODEC});if(this.config.enableWebVTT||P&&this.config.enableIMSC1){var R=this.tracks&&_&&this.tracks.length===_.length;if(this.tracks=_||[],this.config.renderTextTracksNatively){var x=this.media?this.media.textTracks:[];this.tracks.forEach(function(v,T){var U;if(T<x.length){for(var I=null,N=0;N<x.length;N++)if(i(x[N],v)){I=x[N];break}I&&(U=I)}U?Object(e.clearCurrentCues)(U):(U=E.createTextTrack("subtitles",v.name,v.lang),U&&(U.mode="disabled")),U&&(U.groupId=v.groupId,E.textTracks.push(U))})}else if(!R&&this.tracks&&this.tracks.length){var S=this.tracks.map(function(v){return{label:v.name,kind:v.type.toLowerCase(),default:v.default,subtitleTrack:v}});this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:S})}}},d.onManifestLoaded=function(u,w){var E=this;this.config.enableCEA708Captions&&w.captions&&w.captions.forEach(function(_){var P=/(?:CC|SERVICE)([1-4])/.exec(_.instreamId);if(!P)return;var R="textTrack"+P[1],x=E.captionsProperties[R];if(!x)return;x.label=_.name,_.lang&&(x.languageCode=_.lang),x.media=_})},d.onFragLoading=function(u,w){var E=this.cea608Parser1,_=this.cea608Parser2,P=this.lastSn,R=this.lastPartIndex;if(!this.enabled||!(E&&_))return;if(w.frag.type===a.PlaylistLevelType.MAIN){var x,S,v=w.frag.sn,T=(x=w==null||((S=w.part)===null||S===void 0)?void 0:S.index)!=null?x:-1;v===P+1||v===P&&T===R+1||(E.reset(),_.reset()),this.lastSn=v,this.lastPartIndex=T}},d.onFragLoaded=function(u,w){var E=w.frag,_=w.payload,P=this.initPTS,R=this.unparsedVttFrags;if(E.type===a.PlaylistLevelType.SUBTITLE)if(_.byteLength){if(!Object(b.isFiniteNumber)(P[E.cc])){R.push(w),P.length&&this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:E,error:new Error("Missing initial subtitle PTS")});return}var x=E.decryptdata;if(x==null||x.key==null||x.method!=="AES-128"){var S=this.tracks[E.level],v=this.vttCCs;v[E.cc]||(v[E.cc]={start:E.start,prevCC:this.prevCC,new:!0},this.prevCC=E.cc),S&&S.textCodec===f.IMSC1_CODEC?this._parseIMSC1(E,_):this._parseVTTs(E,_,v)}}else this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:E,error:new Error("Empty subtitle payload")})},d._parseIMSC1=function(u,w){var E=this,_=this.hls;Object(f.parseIMSC1)(w,this.initPTS[u.cc],this.timescale[u.cc],function(P){E._appendCues(P,u.level),_.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:u})},function(P){l.logger.log("Failed to parse IMSC1: "+P),_.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:u,error:P})})},d._parseVTTs=function(u,w,E){var _=this,P=this.hls;Object(g.parseWebVTT)(w,this.initPTS[u.cc],this.timescale[u.cc],E,u.cc,u.start,function(R){_._appendCues(R,u.level),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:u})},function(R){_._fallbackToIMSC1(u,w),l.logger.log("Failed to parse VTT cue: "+R),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:u,error:R})})},d._fallbackToIMSC1=function(u,w){var E=this,_=this.tracks[u.level];_.textCodec||Object(f.parseIMSC1)(w,this.initPTS[u.cc],this.timescale[u.cc],function(){_.textCodec=f.IMSC1_CODEC,E._parseIMSC1(u,w)},function(){_.textCodec="wvtt"})},d._appendCues=function(u,w){var E=this.hls;if(this.config.renderTextTracksNatively){var _=this.textTracks[w];if(_.mode==="disabled")return;u.forEach(function(x){return Object(e.addCueToTrack)(_,x)})}else{var P=this.tracks[w],R=P.default?"default":"subtitles"+w;E.trigger(y.Events.CUES_PARSED,{type:"subtitles",cues:u,track:R})}},d.onFragDecrypted=function(u,w){var E=w.frag;if(E.type===a.PlaylistLevelType.SUBTITLE){if(!Object(b.isFiniteNumber)(this.initPTS[E.cc])){this.unparsedVttFrags.push(w);return}this.onFragLoaded(y.Events.FRAG_LOADED,w)}},d.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},d.onFragParsingUserdata=function(u,w){var E=this.cea608Parser1,_=this.cea608Parser2;if(!this.enabled||!(E&&_))return;for(var P=0;P<w.samples.length;P++){var R=w.samples[P].bytes;if(R){var x=this.extractCea608Data(R);E.addData(w.samples[P].pts,x[0]),_.addData(w.samples[P].pts,x[1])}}},d.onBufferFlushing=function(u,w){var E=w.startOffset,_=w.endOffset,P=w.endOffsetSubtitles,R=w.type,x=this.media;if(!x||x.currentTime<_)return;if(!R||R==="video"){var S=this.captionsTracks;Object.keys(S).forEach(function(T){return Object(e.removeCuesInRange)(S[T],E,_)})}if(this.config.renderTextTracksNatively&&(E===0&&P!==void 0)){var v=this.textTracks;Object.keys(v).forEach(function(T){return Object(e.removeCuesInRange)(v[T],E,P)})}},d.extractCea608Data=function(u){for(var w=u[0]&31,E=2,_=[[],[]],P=0;P<w;P++){var R=u[E++],x=127&u[E++],S=127&u[E++],v=(4&R)!==0,T=3&R;if(x===0&&S===0)continue;v&&((T===0||T===1)&&(_[T].push(x),_[T].push(S)))}return _},h}();function i(h,d){return h&&h.label===d.name&&!(h.textTrack1||h.textTrack2)}function r(h,d,s,u){return Math.min(d,u)-Math.max(h,s)}function c(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return b});var b=function(){function y(A,g){this.subtle=void 0,this.aesIV=void 0,this.subtle=A,this.aesIV=g}var C=y.prototype;return C.decrypt=function(g,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,g)},y}()},"./src/crypt/aes-decryptor.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"removePadding",function(){return y}),O.d(m,"default",function(){return C});var b=O("./src/utils/typed-array.ts");function y(A){var g=A.byteLength,e=g&&new DataView(A.buffer).getUint8(g-1);return e?Object(b.sliceUint8)(A,0,g-e):A}var C=function(){function A(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var g=A.prototype;return g.uint8ArrayToUint32Array_=function(f){for(var a=new DataView(f),l=new Uint32Array(4),n=0;n<4;n++)l[n]=a.getUint32(n*4);return l},g.initTable=function(){var f=this.sBox,a=this.invSBox,l=this.subMix,n=l[0],i=l[1],r=l[2],c=l[3],h=this.invSubMix,d=h[0],s=h[1],u=h[2],w=h[3],E=new Uint32Array(256),_=0,P=0,R=0;for(R=0;R<256;R++)R<128?E[R]=R<<1:E[R]=R<<1^283;for(R=0;R<256;R++){var x=P^P<<1^P<<2^P<<3^P<<4;x=x>>>8^x&255^99,f[_]=x,a[x]=_;var S=E[_],v=E[S],T=E[v],U=E[x]*257^x*16843008;n[_]=U<<24|U>>>8,i[_]=U<<16|U>>>16,r[_]=U<<8|U>>>24,c[_]=U,U=T*16843009^v*65537^S*257^_*16843008,d[x]=U<<24|U>>>8,s[x]=U<<16|U>>>16,u[x]=U<<8|U>>>24,w[x]=U,_?(_=S^E[E[E[T^S]]],P^=E[E[P]]):_=P=1}},g.expandKey=function(f){for(var a=this.uint8ArrayToUint32Array_(f),l=!0,n=0;n<a.length&&l;)l=a[n]===this.key[n],n++;if(l)return;this.key=a;var i=this.keySize=a.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);var r=this.ksRows=(i+6+1)*4,c,h,d=this.keySchedule=new Uint32Array(r),s=this.invKeySchedule=new Uint32Array(r),u=this.sBox,w=this.rcon,E=this.invSubMix,_=E[0],P=E[1],R=E[2],x=E[3],S,v;for(c=0;c<r;c++){if(c<i){S=d[c]=a[c];continue}v=S,c%i===0?(v=v<<8|v>>>24,v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255],v^=w[c/i|0]<<24):i>6&&c%i===4&&(v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255]),d[c]=S=(d[c-i]^v)>>>0}for(h=0;h<r;h++)c=r-h,h&3?v=d[c]:v=d[c-4],h<4||c<=4?s[h]=v:s[h]=_[u[v>>>24]]^P[u[v>>>16&255]]^R[u[v>>>8&255]]^x[u[v&255]],s[h]=s[h]>>>0},g.networkToHostOrderSwap=function(f){return f<<24|(f&65280)<<8|(f&16711680)>>8|f>>>24},g.decrypt=function(f,a,l){for(var n=this.keySize+6,i=this.invKeySchedule,r=this.invSBox,c=this.invSubMix,h=c[0],d=c[1],s=c[2],u=c[3],w=this.uint8ArrayToUint32Array_(l),E=w[0],_=w[1],P=w[2],R=w[3],x=new Int32Array(f),S=new Int32Array(x.length),v,T,U,I,N,V,H,D,W,F,L,K,ee,he,fe=this.networkToHostOrderSwap;a<x.length;){for(W=fe(x[a]),F=fe(x[a+1]),L=fe(x[a+2]),K=fe(x[a+3]),N=W^i[0],V=K^i[1],H=L^i[2],D=F^i[3],ee=4,he=1;he<n;he++)v=h[N>>>24]^d[V>>16&255]^s[H>>8&255]^u[D&255]^i[ee],T=h[V>>>24]^d[H>>16&255]^s[D>>8&255]^u[N&255]^i[ee+1],U=h[H>>>24]^d[D>>16&255]^s[N>>8&255]^u[V&255]^i[ee+2],I=h[D>>>24]^d[N>>16&255]^s[V>>8&255]^u[H&255]^i[ee+3],N=v,V=T,H=U,D=I,ee=ee+4;v=r[N>>>24]<<24^r[V>>16&255]<<16^r[H>>8&255]<<8^r[D&255]^i[ee],T=r[V>>>24]<<24^r[H>>16&255]<<16^r[D>>8&255]<<8^r[N&255]^i[ee+1],U=r[H>>>24]<<24^r[D>>16&255]<<16^r[N>>8&255]<<8^r[V&255]^i[ee+2],I=r[D>>>24]<<24^r[N>>16&255]<<16^r[V>>8&255]<<8^r[H&255]^i[ee+3],S[a]=fe(v^E),S[a+1]=fe(I^_),S[a+2]=fe(U^P),S[a+3]=fe(T^R),E=W,_=F,P=L,R=K,a=a+4}return S.buffer},A}()},"./src/crypt/decrypter.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return a});var b=O("./src/crypt/aes-crypto.ts"),y=O("./src/crypt/fast-aes-key.ts"),C=O("./src/crypt/aes-decryptor.ts"),A=O("./src/utils/logger.ts"),g=O("./src/utils/mp4-tools.ts"),e=O("./src/utils/typed-array.ts"),f=16,a=function(){function l(i,r,c){var h=c===void 0?{}:c,d=h.removePKCS7Padding,s=d===void 0?!0:d;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=i,this.config=r,this.removePKCS7Padding=s,s)try{var u=self.crypto;u&&(this.subtle=u.subtle||u.webkitSubtle)}catch(w){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var n=l.prototype;return n.destroy=function(){this.observer=null},n.isSync=function(){return this.config.enableSoftwareAES},n.flush=function(){var r=this.currentResult;if(!r){this.reset();return}var c=new Uint8Array(r);return this.reset(),this.removePKCS7Padding?Object(C.removePadding)(c):c},n.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},n.decrypt=function(r,c,h,d){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(r),c,h);var s=this.flush();s&&d(s.buffer)}else this.webCryptoDecrypt(new Uint8Array(r),c,h).then(d)},n.softwareDecrypt=function(r,c,h){var d=this.currentIV,s=this.currentResult,u=this.remainderData;this.logOnce("JS AES decrypt"),u&&(r=Object(g.appendUint8Array)(u,r),this.remainderData=null);var w=this.getValidChunk(r);if(!w.length)return null;d&&(h=d);var E=this.softwareDecrypter;E||(E=this.softwareDecrypter=new C.default),E.expandKey(c);var _=s;return this.currentResult=E.decrypt(w.buffer,0,h),this.currentIV=Object(e.sliceUint8)(w,-16).buffer,_||null},n.webCryptoDecrypt=function(r,c,h){var d=this,s=this.subtle;return(this.key!==c||!this.fastAesKey)&&(this.key=c,this.fastAesKey=new y.default(s,c)),this.fastAesKey.expandKey().then(function(u){if(!s)return Promise.reject(new Error("web crypto not initialized"));var w=new b.default(s,h);return w.decrypt(r.buffer,u)}).catch(function(u){return d.onWebCryptoError(u,r,c,h)})},n.onWebCryptoError=function(r,c,h,d){return A.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",r),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(c,h,d)},n.getValidChunk=function(r){var c=r,h=r.length-r.length%f;return h!==r.length&&(c=Object(e.sliceUint8)(r,0,h),this.remainderData=Object(e.sliceUint8)(r,h)),c},n.logOnce=function(r){if(!this.logEnabled)return;A.logger.log("[decrypter.ts]: "+r),this.logEnabled=!1},l}()},"./src/crypt/fast-aes-key.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return b});var b=function(){function y(A,g){this.subtle=void 0,this.key=void 0,this.subtle=A,this.key=g}var C=y.prototype;return C.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},y}()},"./src/demux/aacdemuxer.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/demux/base-audio-demuxer.ts"),y=O("./src/demux/adts.ts"),C=O("./src/utils/logger.ts"),A=O("./src/demux/id3.ts");function g(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,e(a,l)}function e(a,l){return e=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i},e(a,l)}var f=function(a){g(l,a);function l(i,r){var c;return c=a.call(this)||this,c.observer=void 0,c.config=void 0,c.observer=i,c.config=r,c}var n=l.prototype;return n.resetInitSegment=function(r,c,h){a.prototype.resetInitSegment.call(this,r,c,h),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:r,duration:h,inputTimeScale:9e4,dropped:0}},l.probe=function(r){if(!r)return!1;for(var c=A.getID3Data(r,0)||[],h=c.length,d=r.length;h<d;h++)if(y.probe(r,h))return C.logger.log("ADTS sync word found !"),!0;return!1},n.canParse=function(r,c){return y.canParse(r,c)},n.appendFrame=function(r,c,h){y.initTrackConfig(r,this.observer,c,h,r.manifestCodec);var d=y.appendFrame(r,c,h,this.initPTS,this.frameIndex);if(d&&d.missing===0)return d},l}(b.default);f.minProbeByteLength=9,m.default=f},"./src/demux/adts.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"getAudioConfig",function(){return A}),O.d(m,"isHeaderPattern",function(){return g}),O.d(m,"getHeaderLength",function(){return e}),O.d(m,"getFullFrameLength",function(){return f}),O.d(m,"canGetFrameLength",function(){return a}),O.d(m,"isHeader",function(){return l}),O.d(m,"canParse",function(){return n}),O.d(m,"probe",function(){return i}),O.d(m,"initTrackConfig",function(){return r}),O.d(m,"getFrameDuration",function(){return c}),O.d(m,"parseFrameHeader",function(){return h}),O.d(m,"appendFrame",function(){return d});var b=O("./src/utils/logger.ts"),y=O("./src/errors.ts"),C=O("./src/events.ts");function A(s,u,w,E){var _,P,R,x,S=navigator.userAgent.toLowerCase(),v=E,T=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];_=((u[w+2]&192)>>>6)+1;var U=(u[w+2]&60)>>>2;if(U>T.length-1){s.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+U});return}return R=(u[w+2]&1)<<2,R|=(u[w+3]&192)>>>6,b.logger.log("manifest codec:"+E+", ADTS type:"+_+", samplingIndex:"+U),/firefox/i.test(S)?U>=6?(_=5,x=new Array(4),P=U-3):(_=2,x=new Array(2),P=U):S.indexOf("android")!==-1?(_=2,x=new Array(2),P=U):(_=5,x=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&U>=6?P=U-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(U>=6&&R===1||/vivaldi/i.test(S))||!E&&R===1)&&(_=2,x=new Array(2)),P=U)),x[0]=_<<3,x[0]|=(U&14)>>1,x[1]|=(U&1)<<7,x[1]|=R<<3,_===5&&(x[1]|=(P&14)>>1,x[2]=(P&1)<<7,x[2]|=2<<2,x[3]=0),{config:x,samplerate:T[U],channelCount:R,codec:"mp4a.40."+_,manifestCodec:v}}function g(s,u){return s[u]===255&&(s[u+1]&246)===240}function e(s,u){return s[u+1]&1?7:9}function f(s,u){return(s[u+3]&3)<<11|s[u+4]<<3|(s[u+5]&224)>>>5}function a(s,u){return u+5<s.length}function l(s,u){return u+1<s.length&&g(s,u)}function n(s,u){return a(s,u)&&g(s,u)&&f(s,u)<=s.length-u}function i(s,u){if(l(s,u)){var w=e(s,u);if(u+w>=s.length)return!1;var E=f(s,u);if(E<=w)return!1;var _=u+E;return _===s.length||l(s,_)}return!1}function r(s,u,w,E,_){if(!s.samplerate){var P=A(u,w,E,_);if(!P)return;s.config=P.config,s.samplerate=P.samplerate,s.channelCount=P.channelCount,s.codec=P.codec,s.manifestCodec=P.manifestCodec,b.logger.log("parsed codec:"+s.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function c(s){return 1024*9e4/s}function h(s,u,w,E,_){var P=e(s,u),R=f(s,u);if(R-=P,R>0){var x=w+E*_;return{headerLength:P,frameLength:R,stamp:x}}}function d(s,u,w,E,_){var P=c(s.samplerate),R=h(u,w,E,_,P);if(R){var x=R.frameLength,S=R.headerLength,v=R.stamp,T=S+x,U=Math.max(0,w+T-u.length),I;U?(I=new Uint8Array(T-S),I.set(u.subarray(w+S,u.length),0)):I=u.subarray(w+S,w+T);var N={unit:I,pts:v};return U||s.samples.push(N),{sample:N,length:T,missing:U}}}},"./src/demux/base-audio-demuxer.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"initPTSFn",function(){return f});var b=O("./src/polyfills/number.ts"),y=O("./src/demux/id3.ts"),C=O("./src/demux/dummy-demuxed-track.ts"),A=O("./src/utils/mp4-tools.ts"),g=O("./src/utils/typed-array.ts"),e=function(){function a(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var l=a.prototype;return l.resetInitSegment=function(i,r,c){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},l.resetTimeStamp=function(){},l.resetContiguity=function(){},l.canParse=function(i,r){return!1},l.appendFrame=function(i,r,c){},l.demux=function(i,r){this.cachedData&&(i=Object(A.appendUint8Array)(this.cachedData,i),this.cachedData=null);var c=y.getID3Data(i,0),h=c?c.length:0,d,s,u=this._audioTrack,w=this._id3Track,E=c?y.getTimeStamp(c):void 0,_=i.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=f(E,r)),c&&c.length>0&&w.samples.push({pts:this.initPTS,dts:this.initPTS,data:c}),s=this.initPTS;h<_;){if(this.canParse(i,h)){var P=this.appendFrame(u,i,h);P?(this.frameIndex++,s=P.sample.pts,h+=P.length,d=h):h=_}else y.canParse(i,h)?(c=y.getID3Data(i,h),w.samples.push({pts:s,dts:s,data:c}),h+=c.length,d=h):h++;if(h===_&&d!==_){var R=Object(g.sliceUint8)(i,d);this.cachedData?this.cachedData=Object(A.appendUint8Array)(this.cachedData,R):this.cachedData=R}}return{audioTrack:u,avcTrack:Object(C.dummyTrack)(),id3Track:w,textTrack:Object(C.dummyTrack)()}},l.demuxSampleAes=function(i,r,c){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},l.flush=function(i){var r=this.cachedData;return r&&(this.cachedData=null,this.demux(r,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(C.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(C.dummyTrack)()}},l.destroy=function(){},a}(),f=function(l,n){return Object(b.isFiniteNumber)(l)?l*90:n*9e4};m.default=e},"./src/demux/chunk-cache.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return b});var b=function(){function C(){this.chunks=[],this.dataLength=0}var A=C.prototype;return A.push=function(e){this.chunks.push(e),this.dataLength+=e.length},A.flush=function(){var e=this.chunks,f=this.dataLength,a;if(e.length)e.length===1?a=e[0]:a=y(e,f);else return new Uint8Array(0);return this.reset(),a},A.reset=function(){this.chunks.length=0,this.dataLength=0},C}();function y(C,A){for(var g=new Uint8Array(A),e=0,f=0;f<C.length;f++){var a=C[f];g.set(a,e),e+=a.length}return g}},"./src/demux/dummy-demuxed-track.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"dummyTrack",function(){return b});function b(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/utils/logger.ts"),y=function(){function C(g){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=g,this.bytesAvailable=g.byteLength,this.word=0,this.bitsAvailable=0}var A=C.prototype;return A.loadWord=function(){var e=this.data,f=this.bytesAvailable,a=e.byteLength-f,l=new Uint8Array(4),n=Math.min(4,f);if(n===0)throw new Error("no bytes available");l.set(e.subarray(a,a+n)),this.word=new DataView(l.buffer).getUint32(0),this.bitsAvailable=n*8,this.bytesAvailable-=n},A.skipBits=function(e){var f;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,f=e>>3,e-=f>>3,this.bytesAvailable-=f,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},A.readBits=function(e){var f=Math.min(this.bitsAvailable,e),a=this.word>>>32-f;return e>32&&b.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=f,this.bitsAvailable>0?this.word<<=f:this.bytesAvailable>0&&this.loadWord(),f=e-f,f>0&&this.bitsAvailable?a<<f|this.readBits(f):a},A.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!==0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},A.skipUEG=function(){this.skipBits(1+this.skipLZ())},A.skipEG=function(){this.skipBits(1+this.skipLZ())},A.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},A.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},A.readBoolean=function(){return this.readBits(1)===1},A.readUByte=function(){return this.readBits(8)},A.readUShort=function(){return this.readBits(16)},A.readUInt=function(){return this.readBits(32)},A.skipScalingList=function(e){for(var f=8,a=8,l,n=0;n<e;n++)a!==0&&(l=this.readEG(),a=(f+l+256)%256),f=a===0?f:a},A.readSPS=function(){var e=0,f=0,a=0,l=0,n,i,r,c=this.readUByte.bind(this),h=this.readBits.bind(this),d=this.readUEG.bind(this),s=this.readBoolean.bind(this),u=this.skipBits.bind(this),w=this.skipEG.bind(this),E=this.skipUEG.bind(this),_=this.skipScalingList.bind(this);c();var P=c();if(h(5),u(3),c(),E(),P===100||P===110||P===122||P===244||P===44||P===83||P===86||P===118||P===128){var R=d();if(R===3&&u(1),E(),E(),u(1),s())for(i=R!==3?8:12,r=0;r<i;r++)s()&&(r<6?_(16):_(64))}E();var x=d();if(x===0)d();else if(x===1)for(u(1),w(),w(),n=d(),r=0;r<n;r++)w();E(),u(1);var S=d(),v=d(),T=h(1);T===0&&u(1),u(1),s()&&(e=d(),f=d(),a=d(),l=d());var U=[1,1];if(s()&&s()){var I=c();switch(I){case 1:U=[1,1];break;case 2:U=[12,11];break;case 3:U=[10,11];break;case 4:U=[16,11];break;case 5:U=[40,33];break;case 6:U=[24,11];break;case 7:U=[20,11];break;case 8:U=[32,11];break;case 9:U=[80,33];break;case 10:U=[18,11];break;case 11:U=[15,11];break;case 12:U=[64,33];break;case 13:U=[160,99];break;case 14:U=[4,3];break;case 15:U=[3,2];break;case 16:U=[2,1];break;case 255:{U=[c()<<8|c(),c()<<8|c()];break}}}return{width:Math.ceil((S+1)*16-e*2-f*2),height:(2-T)*(v+1)*16-(T?2:4)*(a+l),pixelRatio:U}},A.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},C}();m.default=y},"./src/demux/id3.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"isHeader",function(){return b}),O.d(m,"isFooter",function(){return y}),O.d(m,"getID3Data",function(){return C}),O.d(m,"canParse",function(){return g}),O.d(m,"getTimeStamp",function(){return e}),O.d(m,"isTimeStampFrame",function(){return f}),O.d(m,"getID3Frames",function(){return l}),O.d(m,"decodeFrame",function(){return n}),O.d(m,"utf8ArrayToStr",function(){return d}),O.d(m,"testables",function(){return s});var b=function(_,P){return P+10<=_.length&&(_[P]===73&&_[P+1]===68&&_[P+2]===51&&(_[P+3]<255&&_[P+4]<255&&(_[P+6]<128&&_[P+7]<128&&_[P+8]<128&&_[P+9]<128)))},y=function(_,P){return P+10<=_.length&&(_[P]===51&&_[P+1]===68&&_[P+2]===73&&(_[P+3]<255&&_[P+4]<255&&(_[P+6]<128&&_[P+7]<128&&_[P+8]<128&&_[P+9]<128)))},C=function(_,P){for(var R=P,x=0;b(_,P);){x+=10;var S=A(_,P+6);x+=S,y(_,P+10)&&(x+=10),P+=x}return x>0?_.subarray(R,R+x):void 0},A=function(_,P){var R=0;return R=(_[P]&127)<<21,R|=(_[P+1]&127)<<14,R|=(_[P+2]&127)<<7,R|=_[P+3]&127,R},g=function(_,P){return b(_,P)&&A(_,P+6)+10<=_.length-P},e=function(_){for(var P=l(_),R=0;R<P.length;R++){var x=P[R];if(f(x))return h(x)}return},f=function(_){return _&&_.key==="PRIV"&&_.info==="com.apple.streaming.transportStreamTimestamp"},a=function(_){var P=String.fromCharCode(_[0],_[1],_[2],_[3]),R=A(_,4),x=10;return{type:P,size:R,data:_.subarray(x,x+R)}},l=function(_){for(var P=0,R=[];b(_,P);){var x=A(_,P+6);P+=10;for(var S=P+x;P+8<S;){var v=a(_.subarray(P)),T=n(v);T&&R.push(T),P+=v.size+10}y(_,P)&&(P+=10)}return R},n=function(_){return _.type==="PRIV"?i(_):_.type[0]==="W"?c(_):r(_)},i=function(_){if(_.size<2)return;var P=d(_.data,!0),R=new Uint8Array(_.data.subarray(P.length+1));return{key:_.type,info:P,data:R.buffer}},r=function(_){if(_.size<2)return;if(_.type==="TXXX"){var P=1,R=d(_.data.subarray(P),!0);P+=R.length+1;var x=d(_.data.subarray(P));return{key:_.type,info:R,data:x}}var S=d(_.data.subarray(1));return{key:_.type,data:S}},c=function(_){if(_.type==="WXXX"){if(_.size<2)return;var P=1,R=d(_.data.subarray(P),!0);P+=R.length+1;var x=d(_.data.subarray(P));return{key:_.type,info:R,data:x}}var S=d(_.data);return{key:_.type,data:S}},h=function(_){if(_.data.byteLength===8){var P=new Uint8Array(_.data),R=P[3]&1,x=(P[4]<<23)+(P[5]<<15)+(P[6]<<7)+P[7];return x/=45,R&&(x+=4772185884e-2),Math.round(x)}return},d=function(_,P){P===void 0&&(P=!1);var R=w();if(R){var x=R.decode(_);if(P){var S=x.indexOf("\0");return S!==-1?x.substring(0,S):x}return x.replace(/\0/g,"")}for(var v=_.length,T,U,I,N="",V=0;V<v;){if(T=_[V++],T===0&&P)return N;if(T===0||T===3)continue;switch(T>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:N+=String.fromCharCode(T);break;case 12:case 13:U=_[V++],N+=String.fromCharCode((T&31)<<6|U&63);break;case 14:U=_[V++],I=_[V++],N+=String.fromCharCode((T&15)<<12|(U&63)<<6|(I&63)<<0);break;default:}}return N},s={decodeTextFrame:r},u;function w(){return!u&&typeof self.TextDecoder!="undefined"&&(u=new self.TextDecoder("utf-8")),u}},"./src/demux/mp3demuxer.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/demux/base-audio-demuxer.ts"),y=O("./src/demux/id3.ts"),C=O("./src/utils/logger.ts"),A=O("./src/demux/mpegaudio.ts");function g(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,e(a,l)}function e(a,l){return e=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i},e(a,l)}var f=function(a){g(l,a);function l(){return a.apply(this,arguments)||this}var n=l.prototype;return n.resetInitSegment=function(r,c,h){a.prototype.resetInitSegment.call(this,r,c,h),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:r,duration:h,inputTimeScale:9e4,dropped:0}},l.probe=function(r){if(!r)return!1;for(var c=y.getID3Data(r,0)||[],h=c.length,d=r.length;h<d;h++)if(A.probe(r,h))return C.logger.log("MPEG Audio sync word found !"),!0;return!1},n.canParse=function(r,c){return A.canParse(r,c)},n.appendFrame=function(r,c,h){return this.initPTS===null?void 0:A.appendFrame(r,c,h,this.initPTS,this.frameIndex)},l}(b.default);f.minProbeByteLength=4,m.default=f},"./src/demux/mp4demuxer.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/utils/mp4-tools.ts"),y=O("./src/demux/dummy-demuxed-track.ts"),C=function(){function A(e,f){this.remainderData=null,this.config=void 0,this.config=f}var g=A.prototype;return g.resetTimeStamp=function(){},g.resetInitSegment=function(){},g.resetContiguity=function(){},A.probe=function(f){return Object(b.findBox)({data:f,start:0,end:Math.min(f.length,16384)},["moof"]).length>0},g.demux=function(f){var a=f,l=Object(y.dummyTrack)();if(this.config.progressive){this.remainderData&&(a=Object(b.appendUint8Array)(this.remainderData,f));var n=Object(b.segmentValidRange)(a);this.remainderData=n.remainder,l.samples=n.valid||new Uint8Array}else l.samples=a;return{audioTrack:Object(y.dummyTrack)(),avcTrack:l,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},g.flush=function(){var f=Object(y.dummyTrack)();return f.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(y.dummyTrack)(),avcTrack:f,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},g.demuxSampleAes=function(f,a,l){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},g.destroy=function(){},A}();C.minProbeByteLength=1024,m.default=C},"./src/demux/mpegaudio.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"appendFrame",function(){return e}),O.d(m,"parseHeader",function(){return f}),O.d(m,"isHeaderPattern",function(){return a}),O.d(m,"isHeader",function(){return l}),O.d(m,"canParse",function(){return n}),O.d(m,"probe",function(){return i});var b=null,y=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],C=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],A=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],g=[0,1,1,4];function e(r,c,h,d,s){if(h+24>c.length)return;var u=f(c,h);if(u&&h+u.frameLength<=c.length){var w=u.samplesPerFrame*9e4/u.sampleRate,E=d+s*w,_={unit:c.subarray(h,h+u.frameLength),pts:E,dts:E};return r.config=[],r.channelCount=u.channelCount,r.samplerate=u.sampleRate,r.samples.push(_),{sample:_,length:u.frameLength,missing:0}}}function f(r,c){var h=r[c+1]>>3&3,d=r[c+1]>>1&3,s=r[c+2]>>4&15,u=r[c+2]>>2&3;if(h!==1&&s!==0&&s!==15&&u!==3){var w=r[c+2]>>1&1,E=r[c+3]>>6,_=h===3?3-d:d===3?3:4,P=y[_*14+s-1]*1e3,R=h===3?0:h===2?1:2,x=C[R*3+u],S=E===3?1:2,v=A[h][d],T=g[d],U=v*8*T,I=Math.floor(v*P/x+w)*T;if(b===null){var N=navigator.userAgent||"",V=N.match(/Chrome\/(\d+)/i);b=V?parseInt(V[1]):0}var H=!!b&&b<=87;return H&&d===2&&P>=224e3&&E===0&&(r[c+3]=r[c+3]|128),{sampleRate:x,channelCount:S,frameLength:I,samplesPerFrame:U}}}function a(r,c){return r[c]===255&&(r[c+1]&224)===224&&(r[c+1]&6)!==0}function l(r,c){return c+1<r.length&&a(r,c)}function n(r,c){var h=4;return a(r,c)&&h<=r.length-c}function i(r,c){if(c+1<r.length&&a(r,c)){var h=4,d=f(r,c),s=h;d!=null&&d.frameLength&&(s=d.frameLength);var u=c+s;return u===r.length||l(r,u)}return!1}},"./src/demux/sample-aes.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/crypt/decrypter.ts"),y=O("./src/demux/tsdemuxer.ts"),C=function(){function A(e,f,a){this.keyData=void 0,this.decrypter=void 0,this.keyData=a,this.decrypter=new b.default(e,f,{removePKCS7Padding:!1})}var g=A.prototype;return g.decryptBuffer=function(f,a){this.decrypter.decrypt(f,this.keyData.key.buffer,this.keyData.iv.buffer,a)},g.decryptAacSample=function(f,a,l,n){var i=f[a].unit,r=i.subarray(16,i.length-i.length%16),c=r.buffer.slice(r.byteOffset,r.byteOffset+r.length),h=this;this.decryptBuffer(c,function(d){var s=new Uint8Array(d);i.set(s,16),n||h.decryptAacSamples(f,a+1,l)})},g.decryptAacSamples=function(f,a,l){for(;;a++){if(a>=f.length){l();return}if(f[a].unit.length<32)continue;var n=this.decrypter.isSync();if(this.decryptAacSample(f,a,l,n),!n)return}},g.getAvcEncryptedData=function(f){for(var a=Math.floor((f.length-48)/160)*16+16,l=new Int8Array(a),n=0,i=32;i<=f.length-16;i+=160,n+=16)l.set(f.subarray(i,i+16),n);return l},g.getAvcDecryptedUnit=function(f,a){for(var l=new Uint8Array(a),n=0,i=32;i<=f.length-16;i+=160,n+=16)f.set(l.subarray(n,n+16),i);return f},g.decryptAvcSample=function(f,a,l,n,i,r){var c=Object(y.discardEPB)(i.data),h=this.getAvcEncryptedData(c),d=this;this.decryptBuffer(h.buffer,function(s){i.data=d.getAvcDecryptedUnit(c,s),r||d.decryptAvcSamples(f,a,l+1,n)})},g.decryptAvcSamples=function(f,a,l,n){if(f instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;a++,l=0){if(a>=f.length){n();return}for(var i=f[a].units;!(l>=i.length);l++){var r=i[l];if(r.data.length<=48||r.type!==1&&r.type!==5)continue;var c=this.decrypter.isSync();if(this.decryptAvcSample(f,a,l,n,r,c),!c)return}}},A}();m.default=C},"./src/demux/transmuxer-interface.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return i});var b=O("./node_modules/webworkify-webpack/index.js"),y=O.n(b),C=O("./src/events.ts"),A=O("./src/demux/transmuxer.ts"),g=O("./src/utils/logger.ts"),e=O("./src/errors.ts"),f=O("./src/utils/mediasource-helper.ts"),a=O("./node_modules/eventemitter3/index.js"),l=O.n(a),n=Object(f.getMediaSource)()||{isTypeSupported:function(){return!1}},i=function(){function r(h,d,s,u){var w=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=h,this.id=d,this.onTransmuxComplete=s,this.onFlush=u;var E=h.config,_=function(v,T){T=T||{},T.frag=w.frag,T.id=w.id,h.trigger(v,T)};this.observer=new a.EventEmitter,this.observer.on(C.Events.FRAG_DECRYPTED,_),this.observer.on(C.Events.ERROR,_);var P={mp4:n.isTypeSupported("video/mp4"),mpeg:n.isTypeSupported("audio/mpeg"),mp3:n.isTypeSupported('audio/mp4; codecs="mp3"')},R=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){g.logger.log("demuxing in webworker");var x;try{x=this.worker=b("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),x.addEventListener("message",this.onwmsg),x.onerror=function(S){h.trigger(C.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(S.message+" ("+S.filename+":"+S.lineno+")")})},x.postMessage({cmd:"init",typeSupported:P,vendor:R,id:d,config:JSON.stringify(E)})}catch(S){g.logger.warn("Error in worker:",S),g.logger.error("Error while initializing DemuxerWorker, fallback to inline"),x&&self.URL.revokeObjectURL(x.objectURL),this.transmuxer=new A.default(this.observer,P,E,R,d),this.worker=null}}else this.transmuxer=new A.default(this.observer,P,E,R,d)}var c=r.prototype;return c.destroy=function(){var d=this.worker;if(d)d.removeEventListener("message",this.onwmsg),d.terminate(),this.worker=null;else{var s=this.transmuxer;s&&(s.destroy(),this.transmuxer=null)}var u=this.observer;u&&u.removeAllListeners(),this.observer=null},c.push=function(d,s,u,w,E,_,P,R,x,S){var v=this;x.transmuxing.start=self.performance.now();var T=this.transmuxer,U=this.worker,I=_?_.start:E.start,N=E.decryptdata,V=this.frag,H=!(V&&E.cc===V.cc),D=!(V&&x.level===V.level),W=V?x.sn-V.sn:-1,F=this.part?x.part-this.part.index:1,L=!D&&(W===1||W===0&&F===1),K=self.performance.now();(D||W||E.stats.parsing.start===0)&&(E.stats.parsing.start=K),_&&(F||!L)&&(_.stats.parsing.start=K);var ee=new A.TransmuxState(H,L,R,D,I);if(!L||H){g.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+x.sn+" p: "+x.part+" level: "+x.level+" id: "+x.id+`
discontinuity: `+H+`
trackSwitch: `+D+`
contiguous: `+L+`
accurateTimeOffset: `+R+`
timeOffset: `+I);var he=new A.TransmuxConfig(u,w,s,P,S);this.configureTransmuxer(he)}if(this.frag=E,this.part=_,U)U.postMessage({cmd:"demux",data:d,decryptdata:N,chunkMeta:x,state:ee},d instanceof ArrayBuffer?[d]:[]);else if(T){var fe=T.push(d,N,x,ee);Object(A.isPromise)(fe)?fe.then(function(Ce){v.handleTransmuxComplete(Ce)}):this.handleTransmuxComplete(fe)}},c.flush=function(d){var s=this;d.transmuxing.start=self.performance.now();var u=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:d});else if(u){var E=u.flush(d);Object(A.isPromise)(E)?E.then(function(_){s.handleFlushResult(_,d)}):this.handleFlushResult(E,d)}},c.handleFlushResult=function(d,s){var u=this;d.forEach(function(w){u.handleTransmuxComplete(w)}),this.onFlush(s)},c.onWorkerMessage=function(d){var s=d.data,u=this.hls;switch(s.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(s.data);break}case"flush":{this.onFlush(s.data);break}default:{s.data=s.data||{},s.data.frag=this.frag,s.data.id=this.id,u.trigger(s.event,s.data);break}}},c.configureTransmuxer=function(d){var s=this.worker,u=this.transmuxer;s?s.postMessage({cmd:"configure",config:d}):u&&u.configure(d)},c.handleTransmuxComplete=function(d){d.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(d)},r}()},"./src/demux/transmuxer-worker.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return e});var b=O("./src/demux/transmuxer.ts"),y=O("./src/events.ts"),C=O("./src/utils/logger.ts"),A=O("./node_modules/eventemitter3/index.js"),g=O.n(A);function e(i){var r=new A.EventEmitter,c=function(d,s){i.postMessage({event:d,data:s})};r.on(y.Events.FRAG_DECRYPTED,c),r.on(y.Events.ERROR,c),i.addEventListener("message",function(h){var d=h.data;switch(d.cmd){case"init":{var s=JSON.parse(d.config);i.transmuxer=new b.default(r,d.typeSupported,s,d.vendor,d.id),Object(C.enableLogs)(s.debug),c("init",null);break}case"configure":{i.transmuxer.configure(d.config);break}case"demux":{var u=i.transmuxer.push(d.data,d.decryptdata,d.chunkMeta,d.state);Object(b.isPromise)(u)?u.then(function(_){f(i,_)}):f(i,u);break}case"flush":{var w=d.chunkMeta,E=i.transmuxer.flush(w);Object(b.isPromise)(E)?E.then(function(_){l(i,_,w)}):l(i,E,w);break}default:break}})}function f(i,r){if(n(r.remuxResult))return;var c=[],h=r.remuxResult,d=h.audio,s=h.video;d&&a(c,d),s&&a(c,s),i.postMessage({event:"transmuxComplete",data:r},c)}function a(i,r){r.data1&&i.push(r.data1.buffer),r.data2&&i.push(r.data2.buffer)}function l(i,r,c){r.forEach(function(h){f(i,h)}),i.postMessage({event:"flush",data:c})}function n(i){return!i.audio&&!i.video&&!i.text&&!i.id3&&!i.initSegment}},"./src/demux/transmuxer.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return s}),O.d(m,"isPromise",function(){return E}),O.d(m,"TransmuxConfig",function(){return _}),O.d(m,"TransmuxState",function(){return P});var b=O("./src/events.ts"),y=O("./src/errors.ts"),C=O("./src/crypt/decrypter.ts"),A=O("./src/demux/aacdemuxer.ts"),g=O("./src/demux/mp4demuxer.ts"),e=O("./src/demux/tsdemuxer.ts"),f=O("./src/demux/mp3demuxer.ts"),a=O("./src/remux/mp4-remuxer.ts"),l=O("./src/remux/passthrough-remuxer.ts"),n=O("./src/demux/chunk-cache.ts"),i=O("./src/utils/mp4-tools.ts"),r=O("./src/utils/logger.ts"),c;try{c=self.performance.now.bind(self.performance)}catch(R){r.logger.debug("Unable to use Performance API on this environment"),c=self.Date.now}var h=[{demux:e.default,remux:a.default},{demux:g.default,remux:l.default},{demux:A.default,remux:a.default},{demux:f.default,remux:a.default}],d=1024;h.forEach(function(R){var x=R.demux;d=Math.max(d,x.minProbeByteLength)});var s=function(){function R(S,v,T,U,I){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new n.default,this.observer=S,this.typeSupported=v,this.config=T,this.vendor=U,this.id=I}var x=R.prototype;return x.configure=function(v){this.transmuxConfig=v,this.decrypter&&this.decrypter.reset()},x.push=function(v,T,U,I){var N=this,V=U.transmuxing;V.executeStart=c();var H=new Uint8Array(v),D=this.cache,W=this.config,F=this.currentTransmuxState,L=this.transmuxConfig;I&&(this.currentTransmuxState=I);var K=u(H,T);if(K&&K.method==="AES-128"){var ee=this.getDecrypter();if(W.enableSoftwareAES){var he=ee.softwareDecrypt(H,K.key.buffer,K.iv.buffer);if(!he)return V.executeEnd=c(),w(U);H=new Uint8Array(he)}else return this.decryptionPromise=ee.webCryptoDecrypt(H,K.key.buffer,K.iv.buffer).then(function(te){var Q=N.push(te,null,U);return N.decryptionPromise=null,Q}),this.decryptionPromise}var fe=I||F,Ce=fe.contiguous,Te=fe.discontinuity,ce=fe.trackSwitch,ye=fe.accurateTimeOffset,Ee=fe.timeOffset,ue=L.audioCodec,se=L.videoCodec,$=L.defaultInitPts,me=L.duration,re=L.initSegmentData;if((Te||ce)&&this.resetInitSegment(re,ue,se,me),Te&&this.resetInitialTimestamp($),Ce||this.resetContiguity(),this.needsProbing(H,Te,ce)){if(D.dataLength){var ae=D.flush();H=Object(i.appendUint8Array)(ae,H)}this.configureTransmuxer(H,L)}var we=this.transmux(H,K,Ee,ye,U),le=this.currentTransmuxState;return le.contiguous=!0,le.discontinuity=!1,le.trackSwitch=!1,V.executeEnd=c(),we},x.flush=function(v){var T=this,U=v.transmuxing;U.executeStart=c();var I=this.decrypter,N=this.cache,V=this.currentTransmuxState,H=this.decryptionPromise;if(H)return H.then(function(){return T.flush(v)});var D=[],W=V.timeOffset;if(I){var F=I.flush();F&&D.push(this.push(F,null,v))}var L=N.dataLength;N.reset();var K=this.demuxer,ee=this.remuxer;if(!K||!ee)return L>=d&&this.observer.emit(b.Events.ERROR,b.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),U.executeEnd=c(),[w(v)];var he=K.flush(W);return E(he)?he.then(function(fe){return T.flushRemux(D,fe,v),D}):(this.flushRemux(D,he,v),D)},x.flushRemux=function(v,T,U){var I=T.audioTrack,N=T.avcTrack,V=T.id3Track,H=T.textTrack,D=this.currentTransmuxState,W=D.accurateTimeOffset,F=D.timeOffset;r.logger.log("[transmuxer.ts]: Flushed fragment "+U.sn+(U.part>-1?" p: "+U.part:"")+" of level "+U.level);var L=this.remuxer.remux(I,N,V,H,F,W,!0,this.id);v.push({remuxResult:L,chunkMeta:U}),U.transmuxing.executeEnd=c()},x.resetInitialTimestamp=function(v){var T=this.demuxer,U=this.remuxer;if(!T||!U)return;T.resetTimeStamp(v),U.resetTimeStamp(v)},x.resetContiguity=function(){var v=this.demuxer,T=this.remuxer;if(!v||!T)return;v.resetContiguity(),T.resetNextTimestamp()},x.resetInitSegment=function(v,T,U,I){var N=this.demuxer,V=this.remuxer;if(!N||!V)return;N.resetInitSegment(T,U,I),V.resetInitSegment(v,T,U)},x.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},x.transmux=function(v,T,U,I,N){var V;return T&&T.method==="SAMPLE-AES"?V=this.transmuxSampleAes(v,T,U,I,N):V=this.transmuxUnencrypted(v,U,I,N),V},x.transmuxUnencrypted=function(v,T,U,I){var N=this.demuxer.demux(v,T,!1,!this.config.progressive),V=N.audioTrack,H=N.avcTrack,D=N.id3Track,W=N.textTrack,F=this.remuxer.remux(V,H,D,W,T,U,!1,this.id);return{remuxResult:F,chunkMeta:I}},x.transmuxSampleAes=function(v,T,U,I,N){var V=this;return this.demuxer.demuxSampleAes(v,T,U).then(function(H){var D=V.remuxer.remux(H.audioTrack,H.avcTrack,H.id3Track,H.textTrack,U,I,!1,V.id);return{remuxResult:D,chunkMeta:N}})},x.configureTransmuxer=function(v,T){for(var U=this.config,I=this.observer,N=this.typeSupported,V=this.vendor,H=T.audioCodec,D=T.defaultInitPts,W=T.duration,F=T.initSegmentData,L=T.videoCodec,K,ee=0,he=h.length;ee<he;ee++)if(h[ee].demux.probe(v)){K=h[ee];break}K||(r.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),K={demux:g.default,remux:l.default});var fe=this.demuxer,Ce=this.remuxer,Te=K.remux,ce=K.demux;(!Ce||!(Ce instanceof Te))&&(this.remuxer=new Te(I,U,N,V)),(!fe||!(fe instanceof ce))&&(this.demuxer=new ce(I,U,N),this.probe=ce.probe),this.resetInitSegment(F,H,L,W),this.resetInitialTimestamp(D)},x.needsProbing=function(v,T,U){return!this.demuxer||!this.remuxer||T||U},x.getDecrypter=function(){var v=this.decrypter;return v||(v=this.decrypter=new C.default(this.observer,this.config)),v},R}();function u(R,x){var S=null;return R.byteLength>0&&x!=null&&x.key!=null&&x.iv!==null&&x.method!=null&&(S=x),S}var w=function(x){return{remuxResult:{},chunkMeta:x}};function E(R){return"then"in R&&R.then instanceof Function}var _=function(x,S,v,T,U){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=x,this.videoCodec=S,this.initSegmentData=v,this.duration=T,this.defaultInitPts=U},P=function(x,S,v,T,U){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=x,this.contiguous=S,this.accurateTimeOffset=v,this.trackSwitch=T,this.timeOffset=U}},"./src/demux/tsdemuxer.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"discardEPB",function(){return w});var b=O("./src/demux/adts.ts"),y=O("./src/demux/mpegaudio.ts"),C=O("./src/demux/exp-golomb.ts"),A=O("./src/demux/id3.ts"),g=O("./src/demux/sample-aes.ts"),e=O("./src/events.ts"),f=O("./src/utils/mp4-tools.ts"),a=O("./src/utils/logger.ts"),l=O("./src/errors.ts"),n={video:1,audio:2,id3:3,text:4},i=function(){function E(P,R,x){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=P,this.config=R,this.typeSupported=x}E.probe=function(R){var x=E.syncOffset(R);return x<0?!1:(x&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+x+", junk ahead ?"),!0)},E.syncOffset=function(R){for(var x=Math.min(1e3,R.length-3*188),S=0;S<x;){if(R[S]===71&&R[S+188]===71&&R[S+2*188]===71)return S;S++}return-1},E.createTrack=function(R,x){return{container:R==="video"||R==="audio"?"video/mp2t":void 0,type:R,id:n[R],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:R==="audio"?x:void 0}};var _=E.prototype;return _.resetInitSegment=function(R,x,S){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=E.createTrack("video",S),this._audioTrack=E.createTrack("audio",S),this._id3Track=E.createTrack("id3",S),this._txtTrack=E.createTrack("text",S),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=R,this.videoCodec=x,this._duration=S},_.resetTimeStamp=function(){},_.resetContiguity=function(){var R=this._audioTrack,x=this._avcTrack,S=this._id3Track;R&&(R.pesData=null),x&&(x.pesData=null),S&&(S.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},_.demux=function(R,x,S,v){S===void 0&&(S=!1),v===void 0&&(v=!1),S||(this.sampleAes=null);var T,U=this._avcTrack,I=this._audioTrack,N=this._id3Track,V=U.pid,H=U.pesData,D=I.pid,W=N.pid,F=I.pesData,L=N.pesData,K=!1,ee=this.pmtParsed,he=this._pmtId,fe=R.length;if(this.remainderData&&(R=Object(f.appendUint8Array)(this.remainderData,R),fe=R.length,this.remainderData=null),fe<188&&!v)return this.remainderData=R,{audioTrack:I,avcTrack:U,id3Track:N,textTrack:this._txtTrack};var Ce=Math.max(0,E.syncOffset(R));fe-=(fe+Ce)%188,fe<R.byteLength&&!v&&(this.remainderData=new Uint8Array(R.buffer,fe,R.buffer.byteLength-fe));for(var Te=Ce;Te<fe;Te+=188)if(R[Te]===71){var ce=!!(R[Te+1]&64),ye=((R[Te+1]&31)<<8)+R[Te+2],Ee=(R[Te+3]&48)>>4,ue=void 0;if(Ee>1){if(ue=Te+5+R[Te+4],ue===Te+188)continue}else ue=Te+4;switch(ye){case V:ce&&(H&&(T=d(H))&&this.parseAVCPES(T,!1),H={data:[],size:0}),H&&(H.data.push(R.subarray(ue,Te+188)),H.size+=Te+188-ue);break;case D:ce&&(F&&(T=d(F))&&(I.isAAC?this.parseAACPES(T):this.parseMPEGPES(T)),F={data:[],size:0}),F&&(F.data.push(R.subarray(ue,Te+188)),F.size+=Te+188-ue);break;case W:ce&&(L&&(T=d(L))&&this.parseID3PES(T),L={data:[],size:0}),L&&(L.data.push(R.subarray(ue,Te+188)),L.size+=Te+188-ue);break;case 0:ce&&(ue+=R[ue]+1),he=this._pmtId=c(R,ue);break;case he:{ce&&(ue+=R[ue]+1);var se=h(R,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,S);V=se.avc,V>0&&(U.pid=V),D=se.audio,D>0&&(I.pid=D,I.isAAC=se.isAAC),W=se.id3,W>0&&(N.pid=W),K&&!ee&&(a.logger.log("reparse from beginning"),K=!1,Te=Ce-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:K=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});U.pesData=H,I.pesData=F,N.pesData=L;var $={audioTrack:I,avcTrack:U,id3Track:N,textTrack:this._txtTrack};return v&&this.extractRemainingSamples($),$},_.flush=function(){var R=this.remainderData;this.remainderData=null;var x;return R?x=this.demux(R,-1,!1,!0):x={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(x),this.sampleAes?this.decrypt(x,this.sampleAes):x},_.extractRemainingSamples=function(R){var x=R.audioTrack,S=R.avcTrack,v=R.id3Track,T=S.pesData,U=x.pesData,I=v.pesData,N;T&&(N=d(T))?(this.parseAVCPES(N,!0),S.pesData=null):S.pesData=T,U&&(N=d(U))?(x.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),x.pesData=null):(U!=null&&U.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),x.pesData=U),I&&(N=d(I))?(this.parseID3PES(N),v.pesData=null):v.pesData=I},_.demuxSampleAes=function(R,x,S){var v=this.demux(R,S,!0,!this.config.progressive),T=this.sampleAes=new g.default(this.observer,this.config,x);return this.decrypt(v,T)},_.decrypt=function(R,x){return new Promise(function(S){var v=R.audioTrack,T=R.avcTrack;v.samples&&v.isAAC?x.decryptAacSamples(v.samples,0,function(){T.samples?x.decryptAvcSamples(T.samples,0,0,function(){S(R)}):S(R)}):T.samples&&x.decryptAvcSamples(T.samples,0,0,function(){S(R)})})},_.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},_.parseAVCPES=function(R,x){var S=this,v=this._avcTrack,T=this.parseAVCNALu(R.data),U=!1,I=this.avcSample,N,V=!1;R.data=null,I&&T.length&&!v.audFound&&(s(I,v),I=this.avcSample=r(!1,R.pts,R.dts,"")),T.forEach(function(H){switch(H.type){case 1:{N=!0,I||(I=S.avcSample=r(!0,R.pts,R.dts,"")),U&&(I.debug+="NDR "),I.frame=!0;var D=H.data;if(V&&D.length>4){var W=new C.default(D).readSliceType();(W===2||W===4||W===7||W===9)&&(I.key=!0)}break}case 5:N=!0,I||(I=S.avcSample=r(!0,R.pts,R.dts,"")),U&&(I.debug+="IDR "),I.key=!0,I.frame=!0;break;case 6:{N=!0,U&&I&&(I.debug+="SEI ");var F=new C.default(w(H.data));F.readUByte();for(var L=0,K=0,ee=!1,he=0;!ee&&F.bytesAvailable>1;){L=0;do he=F.readUByte(),L+=he;while(he===255);K=0;do he=F.readUByte(),K+=he;while(he===255);if(L===4&&F.bytesAvailable!==0){ee=!0;var fe=F.readUByte();if(fe===181){var Ce=F.readUShort();if(Ce===49){var Te=F.readUInt();if(Te===1195456820){var ce=F.readUByte();if(ce===3){for(var ye=F.readUByte(),Ee=F.readUByte(),ue=31&ye,se=[ye,Ee],$=0;$<ue;$++)se.push(F.readUByte()),se.push(F.readUByte()),se.push(F.readUByte());u(S._txtTrack.samples,{type:3,pts:R.pts,bytes:se})}}}}}else if(L===5&&F.bytesAvailable!==0){if(ee=!0,K>16){for(var me=[],re=0;re<16;re++)me.push(F.readUByte().toString(16)),(re===3||re===5||re===7||re===9)&&me.push("-");for(var ae=K-16,we=new Uint8Array(ae),le=0;le<ae;le++)we[le]=F.readUByte();u(S._txtTrack.samples,{pts:R.pts,payloadType:L,uuid:me.join(""),userData:Object(A.utf8ArrayToStr)(we),userDataBytes:we})}}else if(K<F.bytesAvailable)for(var te=0;te<K;te++)F.readUByte()}break}case 7:if(N=!0,V=!0,U&&I&&(I.debug+="SPS "),!v.sps){var Q=new C.default(H.data),J=Q.readSPS();v.width=J.width,v.height=J.height,v.pixelRatio=J.pixelRatio,v.sps=[H.data],v.duration=S._duration;for(var ve=H.data.subarray(1,4),_e="avc1.",Oe=0;Oe<3;Oe++){var Xe=ve[Oe].toString(16);Xe.length<2&&(Xe="0"+Xe),_e+=Xe}v.codec=_e}break;case 8:N=!0,U&&I&&(I.debug+="PPS "),v.pps||(v.pps=[H.data]);break;case 9:N=!1,v.audFound=!0,I&&s(I,v),I=S.avcSample=r(!1,R.pts,R.dts,U?"AUD ":"");break;case 12:N=!1;break;default:N=!1,I&&(I.debug+="unknown NAL "+H.type+" ");break}if(I&&N){var tt=I.units;tt.push(H)}}),x&&I&&(s(I,v),this.avcSample=null)},_.getLastNalUnit=function(){var R,x=this.avcSample,S;if(!x||x.units.length===0){var v=this._avcTrack.samples;x=v[v.length-1]}if((R=x)!==null&&R!==void 0&&R.units){var T=x.units;S=T[T.length-1]}return S},_.parseAVCNALu=function(R){var x=R.byteLength,S=this._avcTrack,v=S.naluState||0,T=v,U=[],I=0,N,V,H,D=-1,W=0;for(v===-1&&(D=0,W=R[0]&31,v=0,I=1);I<x;){if(N=R[I++],!v){v=N?0:1;continue}if(v===1){v=N?0:2;continue}if(!N)v=3;else if(N===1){if(D>=0){var F={data:R.subarray(D,I-v-1),type:W};U.push(F)}else{var L=this.getLastNalUnit();if(L&&(T&&I<=4-T&&(L.state&&(L.data=L.data.subarray(0,L.data.byteLength-T))),V=I-v-1,V>0)){var K=new Uint8Array(L.data.byteLength+V);K.set(L.data,0),K.set(R.subarray(0,V),L.data.byteLength),L.data=K,L.state=0}}I<x?(H=R[I]&31,D=I,W=H,v=0):v=-1}else v=0}if(D>=0&&v>=0){var ee={data:R.subarray(D,x),type:W,state:v};U.push(ee)}if(U.length===0){var he=this.getLastNalUnit();if(he){var fe=new Uint8Array(he.data.byteLength+R.byteLength);fe.set(he.data,0),fe.set(R,he.data.byteLength),he.data=fe}}return S.naluState=v,U},_.parseAACPES=function(R){var x=0,S=this._audioTrack,v=this.aacOverFlow,T=R.data;if(v){this.aacOverFlow=null;var U=v.sample.unit.byteLength,I=Math.min(v.missing,U),N=U-I;v.sample.unit.set(T.subarray(0,I),N),S.samples.push(v.sample),x=v.missing}var V,H;for(V=x,H=T.length;V<H-1&&!b.isHeader(T,V);V++);if(V!==x){var D,W;if(V<H-1?(D="AAC PES did not start with ADTS header,offset:"+V,W=!1):(D="no ADTS header found in AAC PES",W=!0),a.logger.warn("parsing error:"+D),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_PARSING_ERROR,fatal:W,reason:D}),W)return}b.initTrackConfig(S,this.observer,T,V,this.audioCodec);var F;if(R.pts!==void 0)F=R.pts;else if(v){var L=b.getFrameDuration(S.samplerate);F=v.sample.pts+L}else{a.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var K=0;V<H;)if(b.isHeader(T,V)){if(V+5<H){var ee=b.appendFrame(S,T,V,F,K);if(ee)if(ee.missing)this.aacOverFlow=ee;else{V+=ee.length,K++;continue}}break}else V++},_.parseMPEGPES=function(R){var x=R.data,S=x.length,v=0,T=0,U=R.pts;if(U===void 0){a.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;T<S;)if(y.isHeader(x,T)){var I=y.appendFrame(this._audioTrack,x,T,U,v);if(I)T+=I.length,v++;else break}else T++},_.parseID3PES=function(R){if(R.pts===void 0){a.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(R)},E}();i.minProbeByteLength=188;function r(E,_,P,R){return{key:E,frame:!1,pts:_,dts:P,units:[],debug:R,length:0}}function c(E,_){return(E[_+10]&31)<<8|E[_+11]}function h(E,_,P,R){var x={audio:-1,avc:-1,id3:-1,isAAC:!0},S=(E[_+1]&15)<<8|E[_+2],v=_+3+S-4,T=(E[_+10]&15)<<8|E[_+11];for(_+=12+T;_<v;){var U=(E[_+1]&31)<<8|E[_+2];switch(E[_]){case 207:if(!R){a.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:x.audio===-1&&(x.audio=U);break;case 21:x.id3===-1&&(x.id3=U);break;case 219:if(!R){a.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:x.avc===-1&&(x.avc=U);break;case 3:case 4:P?x.audio===-1&&(x.audio=U,x.isAAC=!1):a.logger.log("MPEG audio found, not supported in this browser");break;case 36:a.logger.warn("Unsupported HEVC stream type found");break;default:break}_+=((E[_+3]&15)<<8|E[_+4])+5}return x}function d(E){var _=0,P,R,x,S,v,T=E.data;if(!E||E.size===0)return null;for(;T[0].length<19&&T.length>1;){var U=new Uint8Array(T[0].length+T[1].length);U.set(T[0]),U.set(T[1],T[0].length),T[0]=U,T.splice(1,1)}P=T[0];var I=(P[0]<<16)+(P[1]<<8)+P[2];if(I===1){if(R=(P[4]<<8)+P[5],R&&R>E.size-6)return null;var N=P[7];N&192&&(S=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,N&64?(v=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,S-v>60*9e4&&(a.logger.warn(Math.round((S-v)/9e4)+"s delta between PTS and DTS, align them"),S=v)):v=S),x=P[8];var V=x+9;if(E.size<=V)return null;E.size-=V;for(var H=new Uint8Array(E.size),D=0,W=T.length;D<W;D++){P=T[D];var F=P.byteLength;if(V)if(V>F){V-=F;continue}else P=P.subarray(V),F-=V,V=0;H.set(P,_),_+=F}return R&&(R-=x+3),{data:H,pts:S,dts:v,len:R}}return null}function s(E,_){if(E.units.length&&E.frame){if(E.pts===void 0){var P=_.samples,R=P.length;if(R){var x=P[R-1];E.pts=x.pts,E.dts=x.dts}else{_.dropped++;return}}_.samples.push(E)}E.debug.length&&a.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function u(E,_){var P=E.length;if(P>0){if(_.pts>=E[P-1].pts)E.push(_);else for(var R=P-1;R>=0;R--)if(_.pts<E[R].pts){E.splice(R,0,_);break}}else E.push(_)}function w(E){for(var _=E.byteLength,P=[],R=1;R<_-2;)E[R]===0&&E[R+1]===0&&E[R+2]===3?(P.push(R+2),R+=2):R++;if(P.length===0)return E;var x=_-P.length,S=new Uint8Array(x),v=0;for(R=0;R<x;v++,R++)v===P[0]&&(v++,P.shift()),S[R]=E[v];return S}m.default=i},"./src/errors.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"ErrorTypes",function(){return b}),O.d(m,"ErrorDetails",function(){return y});var b;(function(C){C.NETWORK_ERROR="networkError",C.MEDIA_ERROR="mediaError",C.KEY_SYSTEM_ERROR="keySystemError",C.MUX_ERROR="muxError",C.OTHER_ERROR="otherError"})(b||(b={}));var y;(function(C){C.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",C.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",C.KEY_SYSTEM_NO_SESSION="keySystemNoSession",C.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",C.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",C.MANIFEST_LOAD_ERROR="manifestLoadError",C.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",C.MANIFEST_PARSING_ERROR="manifestParsingError",C.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",C.LEVEL_EMPTY_ERROR="levelEmptyError",C.LEVEL_LOAD_ERROR="levelLoadError",C.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",C.LEVEL_SWITCH_ERROR="levelSwitchError",C.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",C.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",C.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",C.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",C.FRAG_LOAD_ERROR="fragLoadError",C.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",C.FRAG_DECRYPT_ERROR="fragDecryptError",C.FRAG_PARSING_ERROR="fragParsingError",C.REMUX_ALLOC_ERROR="remuxAllocError",C.KEY_LOAD_ERROR="keyLoadError",C.KEY_LOAD_TIMEOUT="keyLoadTimeOut",C.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",C.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",C.BUFFER_APPEND_ERROR="bufferAppendError",C.BUFFER_APPENDING_ERROR="bufferAppendingError",C.BUFFER_STALLED_ERROR="bufferStalledError",C.BUFFER_FULL_ERROR="bufferFullError",C.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",C.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",C.INTERNAL_EXCEPTION="internalException",C.INTERNAL_ABORTED="aborted",C.UNKNOWN="unknown"})(y||(y={}))},"./src/events.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"Events",function(){return b});var b;(function(y){y.MEDIA_ATTACHING="hlsMediaAttaching",y.MEDIA_ATTACHED="hlsMediaAttached",y.MEDIA_DETACHING="hlsMediaDetaching",y.MEDIA_DETACHED="hlsMediaDetached",y.BUFFER_RESET="hlsBufferReset",y.BUFFER_CODECS="hlsBufferCodecs",y.BUFFER_CREATED="hlsBufferCreated",y.BUFFER_APPENDING="hlsBufferAppending",y.BUFFER_APPENDED="hlsBufferAppended",y.BUFFER_EOS="hlsBufferEos",y.BUFFER_FLUSHING="hlsBufferFlushing",y.BUFFER_FLUSHED="hlsBufferFlushed",y.MANIFEST_LOADING="hlsManifestLoading",y.MANIFEST_LOADED="hlsManifestLoaded",y.MANIFEST_PARSED="hlsManifestParsed",y.LEVEL_SWITCHING="hlsLevelSwitching",y.LEVEL_SWITCHED="hlsLevelSwitched",y.LEVEL_LOADING="hlsLevelLoading",y.LEVEL_LOADED="hlsLevelLoaded",y.LEVEL_UPDATED="hlsLevelUpdated",y.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",y.LEVELS_UPDATED="hlsLevelsUpdated",y.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",y.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",y.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",y.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",y.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",y.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",y.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",y.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",y.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",y.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",y.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",y.CUES_PARSED="hlsCuesParsed",y.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",y.INIT_PTS_FOUND="hlsInitPtsFound",y.FRAG_LOADING="hlsFragLoading",y.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",y.FRAG_LOADED="hlsFragLoaded",y.FRAG_DECRYPTED="hlsFragDecrypted",y.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",y.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",y.FRAG_PARSING_METADATA="hlsFragParsingMetadata",y.FRAG_PARSED="hlsFragParsed",y.FRAG_BUFFERED="hlsFragBuffered",y.FRAG_CHANGED="hlsFragChanged",y.FPS_DROP="hlsFpsDrop",y.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",y.ERROR="hlsError",y.DESTROYING="hlsDestroying",y.KEY_LOADING="hlsKeyLoading",y.KEY_LOADED="hlsKeyLoaded",y.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",y.BACK_BUFFER_REACHED="hlsBackBufferReached"})(b||(b={}))},"./src/hls.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return E});var b=O("./node_modules/url-toolkit/src/url-toolkit.js"),y=O.n(b),C=O("./src/loader/playlist-loader.ts"),A=O("./src/loader/key-loader.ts"),g=O("./src/controller/id3-track-controller.ts"),e=O("./src/controller/latency-controller.ts"),f=O("./src/controller/level-controller.ts"),a=O("./src/controller/fragment-tracker.ts"),l=O("./src/controller/stream-controller.ts"),n=O("./src/is-supported.ts"),i=O("./src/utils/logger.ts"),r=O("./src/config.ts"),c=O("./node_modules/eventemitter3/index.js"),h=O.n(c),d=O("./src/events.ts"),s=O("./src/errors.ts");function u(_,P){for(var R=0;R<P.length;R++){var x=P[R];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}function w(_,P,R){return P&&u(_.prototype,P),R&&u(_,R),_}var E=function(){_.isSupported=function(){return Object(n.isSupported)()};function _(R){R===void 0&&(R={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new c.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var x=this.config=Object(r.mergeConfig)(_.DefaultConfig,R);this.userConfig=R,Object(i.enableLogs)(x.debug),this._autoLevelCapping=-1,x.progressive&&Object(r.enableStreamingMode)(x);var S=x.abrController,v=x.bufferController,T=x.capLevelController,U=x.fpsController,I=this.abrController=new S(this),N=this.bufferController=new v(this),V=this.capLevelController=new T(this),H=new U(this),D=new C.default(this),W=new A.default(this),F=new g.default(this),L=this.levelController=new f.default(this),K=new a.FragmentTracker(this),ee=this.streamController=new l.default(this,K);V.setStreamController(ee),H.setStreamController(ee);var he=[L,ee];this.networkControllers=he;var fe=[D,W,I,N,V,H,F,K];this.audioTrackController=this.createController(x.audioTrackController,null,he),this.createController(x.audioStreamController,K,he),this.subtitleTrackController=this.createController(x.subtitleTrackController,null,he),this.createController(x.subtitleStreamController,K,he),this.createController(x.timelineController,null,fe),this.emeController=this.createController(x.emeController,null,fe),this.cmcdController=this.createController(x.cmcdController,null,fe),this.latencyController=this.createController(e.default,null,fe),this.coreComponents=fe}var P=_.prototype;return P.createController=function(x,S,v){if(x){var T=S?new x(this,S):new x(this);return v&&v.push(T),T}return null},P.on=function(x,S,v){v===void 0&&(v=this),this._emitter.on(x,S,v)},P.once=function(x,S,v){v===void 0&&(v=this),this._emitter.once(x,S,v)},P.removeAllListeners=function(x){this._emitter.removeAllListeners(x)},P.off=function(x,S,v,T){v===void 0&&(v=this),this._emitter.off(x,S,v,T)},P.listeners=function(x){return this._emitter.listeners(x)},P.emit=function(x,S,v){return this._emitter.emit(x,S,v)},P.trigger=function(x,S){if(this.config.debug)return this.emit(x,x,S);try{return this.emit(x,x,S)}catch(v){i.logger.error("An internal error happened while handling event "+x+'. Error message: "'+v.message+'". Here is a stacktrace:',v),this.trigger(d.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:x,error:v})}return!1},P.listenerCount=function(x){return this._emitter.listenerCount(x)},P.destroy=function(){i.logger.log("destroy"),this.trigger(d.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(x){return x.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(x){return x.destroy()}),this.coreComponents.length=0},P.attachMedia=function(x){i.logger.log("attachMedia"),this._media=x,this.trigger(d.Events.MEDIA_ATTACHING,{media:x})},P.detachMedia=function(){i.logger.log("detachMedia"),this.trigger(d.Events.MEDIA_DETACHING,void 0),this._media=null},P.loadSource=function(x){this.stopLoad();var S=this.media,v=this.url,T=this.url=b.buildAbsoluteURL(self.location.href,x,{alwaysNormalize:!0});i.logger.log("loadSource:"+T),S&&v&&v!==T&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(S)),this.trigger(d.Events.MANIFEST_LOADING,{url:x})},P.startLoad=function(x){x===void 0&&(x=-1),i.logger.log("startLoad("+x+")"),this.networkControllers.forEach(function(S){S.startLoad(x)})},P.stopLoad=function(){i.logger.log("stopLoad"),this.networkControllers.forEach(function(x){x.stopLoad()})},P.swapAudioCodec=function(){i.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},P.recoverMediaError=function(){i.logger.log("recoverMediaError");var x=this._media;this.detachMedia(),x&&this.attachMedia(x)},P.removeLevel=function(x,S){S===void 0&&(S=0),this.levelController.removeLevel(x,S)},w(_,[{key:"levels",get:function(){var x=this.levelController.levels;return x||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(x){i.logger.log("set currentLevel:"+x),this.loadLevel=x,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(x){i.logger.log("set nextLevel:"+x),this.levelController.manualLevel=x,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(x){i.logger.log("set loadLevel:"+x),this.levelController.manualLevel=x}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(x){this.levelController.nextLoadLevel=x}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(x){i.logger.log("set firstLevel:"+x),this.levelController.firstLevel=x}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(x){i.logger.log("set startLevel:"+x),x!==-1&&(x=Math.max(x,this.minAutoLevel)),this.levelController.startLevel=x}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(x){var S=!!x;S!==this.config.capLevelToPlayerSize&&(S?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=S)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(x){this._autoLevelCapping!==x&&(i.logger.log("set autoLevelCapping:"+x),this._autoLevelCapping=x)}},{key:"bandwidthEstimate",get:function(){var x=this.abrController.bwEstimator;return x?x.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var x=this.levels,S=this.config.minAutoBitrate;if(!x)return 0;for(var v=x.length,T=0;T<v;T++)if(x[T].maxBitrate>S)return T;return 0}},{key:"maxAutoLevel",get:function(){var x=this.levels,S=this.autoLevelCapping,v;return S===-1&&x&&x.length?v=x.length-1:v=S,v}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(x){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,x)}},{key:"audioTracks",get:function(){var x=this.audioTrackController;return x?x.audioTracks:[]}},{key:"audioTrack",get:function(){var x=this.audioTrackController;return x?x.audioTrack:-1},set:function(x){var S=this.audioTrackController;S&&(S.audioTrack=x)}},{key:"subtitleTracks",get:function(){var x=this.subtitleTrackController;return x?x.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var x=this.subtitleTrackController;return x?x.subtitleTrack:-1},set:function(x){var S=this.subtitleTrackController;S&&(S.subtitleTrack=x)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var x=this.subtitleTrackController;return x?x.subtitleDisplay:!1},set:function(x){var S=this.subtitleTrackController;S&&(S.subtitleDisplay=x)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(x){this.config.lowLatencyMode=x}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return d.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return _.defaultConfig?_.defaultConfig:r.hlsDefaultConfig},set:function(x){_.defaultConfig=x}}]),_}();E.defaultConfig=void 0},"./src/is-supported.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"isSupported",function(){return C}),O.d(m,"changeTypeSupported",function(){return A});var b=O("./src/utils/mediasource-helper.ts");function y(){return self.SourceBuffer||self.WebKitSourceBuffer}function C(){var g=Object(b.getMediaSource)();if(!g)return!1;var e=y(),f=g&&typeof g.isTypeSupported=="function"&&g.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!f&&!!a}function A(){var g,e=y();return typeof(e==null||((g=e.prototype)===null||g===void 0)?void 0:g.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return i}),O.d(m,"LoadError",function(){return c});var b=O("./src/polyfills/number.ts"),y=O("./src/errors.ts");function C(h,d){h.prototype=Object.create(d.prototype),h.prototype.constructor=h,a(h,d)}function A(h){var d=typeof Map=="function"?new Map:void 0;return A=function(u){if(u===null||!f(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d!="undefined"){if(d.has(u))return d.get(u);d.set(u,w)}function w(){return g(u,arguments,l(this).constructor)}return w.prototype=Object.create(u.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),a(w,u)},A(h)}function g(h,d,s){return e()?g=Reflect.construct:g=function(w,E,_){var P=[null];P.push.apply(P,E);var R=Function.bind.apply(w,P),x=new R;return _&&a(x,_.prototype),x},g.apply(null,arguments)}function e(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}function f(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function a(h,d){return a=Object.setPrototypeOf||function(u,w){return u.__proto__=w,u},a(h,d)}function l(h){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},l(h)}var n=Math.pow(2,17),i=function(){function h(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var d=h.prototype;return d.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},d.abort=function(){this.loader&&this.loader.abort()},d.load=function(u,w){var E=this,_=u.url;if(!_)return Promise.reject(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,networkDetails:null},"Fragment does not have a "+(_?"part list":"url")));this.abort();var P=this.config,R=P.fLoader,x=P.loader;return new Promise(function(S,v){E.loader&&E.loader.destroy();var T=E.loader=u.loader=R?new R(P):new x(P),U=r(u),I={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};u.stats=T.stats,T.load(U,I,{onSuccess:function(V,H,D,W){E.resetLoader(u,T),S({frag:u,part:null,payload:V.data,networkDetails:W})},onError:function(V,H,D){E.resetLoader(u,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,response:V,networkDetails:D}))},onAbort:function(V,H,D){E.resetLoader(u,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,networkDetails:D}))},onTimeout:function(V,H,D){E.resetLoader(u,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,networkDetails:D}))},onProgress:function(V,H,D,W){w&&w({frag:u,part:null,payload:D,networkDetails:W})}})})},d.loadPart=function(u,w,E){var _=this;this.abort();var P=this.config,R=P.fLoader,x=P.loader;return new Promise(function(S,v){_.loader&&_.loader.destroy();var T=_.loader=u.loader=R?new R(P):new x(P),U=r(u,w),I={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};w.stats=T.stats,T.load(U,I,{onSuccess:function(V,H,D,W){_.resetLoader(u,T),_.updateStatsFromPart(u,w);var F={frag:u,part:w,payload:V.data,networkDetails:W};E(F),S(F)},onError:function(V,H,D){_.resetLoader(u,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,part:w,response:V,networkDetails:D}))},onAbort:function(V,H,D){u.stats.aborted=w.stats.aborted,_.resetLoader(u,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,part:w,networkDetails:D}))},onTimeout:function(V,H,D){_.resetLoader(u,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,part:w,networkDetails:D}))}})})},d.updateStatsFromPart=function(u,w){var E=u.stats,_=w.stats,P=_.total;if(E.loaded+=_.loaded,P){var R=Math.round(u.duration/w.duration),x=Math.min(Math.round(E.loaded/P),R),S=R-x,v=S*Math.round(E.loaded/x);E.total=E.loaded+v}else E.total=Math.max(E.loaded,E.total);var T=E.loading,U=_.loading;T.start?T.first+=U.first-U.start:(T.start=U.start,T.first=U.first),T.end=U.end},d.resetLoader=function(u,w){u.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},h}();function r(h,d){d===void 0&&(d=null);var s=d||h,u={frag:h,part:d,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},w=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(b.isFiniteNumber)(w)&&Object(b.isFiniteNumber)(E)&&(u.rangeStart=w,u.rangeEnd=E),u}var c=function(h){C(d,h);function d(s){for(var u,w=arguments.length,E=new Array(w>1?w-1:0),_=1;_<w;_++)E[_-1]=arguments[_];return u=h.call.apply(h,[this].concat(E))||this,u.data=void 0,u.data=s,u}return d}(A(Error))},"./src/loader/fragment.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"ElementaryStreamTypes",function(){return i}),O.d(m,"BaseSegment",function(){return r}),O.d(m,"Fragment",function(){return c}),O.d(m,"Part",function(){return h});var b=O("./src/polyfills/number.ts"),y=O("./node_modules/url-toolkit/src/url-toolkit.js"),C=O.n(y),A=O("./src/utils/logger.ts"),g=O("./src/loader/level-key.ts"),e=O("./src/loader/load-stats.ts");function f(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,a(d,s)}function a(d,s){return a=Object.setPrototypeOf||function(w,E){return w.__proto__=E,w},a(d,s)}function l(d,s){for(var u=0;u<s.length;u++){var w=s[u];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(d,w.key,w)}}function n(d,s,u){return s&&l(d.prototype,s),u&&l(d,u),d}var i;(function(d){d.AUDIO="audio",d.VIDEO="video",d.AUDIOVIDEO="audiovideo"})(i||(i={}));var r=function(){function d(u){var w;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(w={},w[i.AUDIO]=null,w[i.VIDEO]=null,w[i.AUDIOVIDEO]=null,w),this.baseurl=u}var s=d.prototype;return s.setByteRange=function(w,E){var _=w.split("@",2),P=[];_.length===1?P[0]=E?E.byteRangeEndOffset:0:P[0]=parseInt(_[1]),P[1]=parseInt(_[0])+P[0],this._byteRange=P},n(d,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(y.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(w){this._url=w}}]),d}(),c=function(d){f(s,d);function s(w,E){var _;return _=d.call(this,E)||this,_._decryptdata=null,_.rawProgramDateTime=null,_.programDateTime=null,_.tagList=[],_.duration=0,_.sn=0,_.levelkey=void 0,_.type=void 0,_.loader=null,_.level=-1,_.cc=0,_.startPTS=void 0,_.endPTS=void 0,_.appendedPTS=void 0,_.startDTS=void 0,_.endDTS=void 0,_.start=0,_.deltaPTS=void 0,_.maxStartPTS=void 0,_.minEndPTS=void 0,_.stats=new e.LoadStats,_.urlId=0,_.data=void 0,_.bitrateTest=!1,_.title=null,_.initSegment=null,_.type=w,_}var u=s.prototype;return u.createInitializationVector=function(E){for(var _=new Uint8Array(16),P=12;P<16;P++)_[P]=E>>8*(15-P)&255;return _},u.setDecryptDataFromLevelKey=function(E,_){var P=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(P=g.LevelKey.fromURI(E.uri),P.method=E.method,P.iv=this.createInitializationVector(_),P.keyFormat="identity"),P},u.setElementaryStreamInfo=function(E,_,P,R,x,S){S===void 0&&(S=!1);var v=this.elementaryStreams,T=v[E];if(!T){v[E]={startPTS:_,endPTS:P,startDTS:R,endDTS:x,partial:S};return}T.startPTS=Math.min(T.startPTS,_),T.endPTS=Math.max(T.endPTS,P),T.startDTS=Math.min(T.startDTS,R),T.endDTS=Math.max(T.endDTS,x)},u.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[i.AUDIO]=null,E[i.VIDEO]=null,E[i.AUDIOVIDEO]=null},n(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&A.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(b.isFiniteNumber)(this.programDateTime))return null;var E=Object(b.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),s}(r),h=function(d){f(s,d);function s(u,w,E,_,P){var R;R=d.call(this,E)||this,R.fragOffset=0,R.duration=0,R.gap=!1,R.independent=!1,R.relurl=void 0,R.fragment=void 0,R.index=void 0,R.stats=new e.LoadStats,R.duration=u.decimalFloatingPoint("DURATION"),R.gap=u.bool("GAP"),R.independent=u.bool("INDEPENDENT"),R.relurl=u.enumeratedString("URI"),R.fragment=w,R.index=_;var x=u.enumeratedString("BYTERANGE");return x&&R.setByteRange(x,P),P&&(R.fragOffset=P.fragOffset+P.duration),R}return n(s,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),s}(r)},"./src/loader/key-loader.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return A});var b=O("./src/events.ts"),y=O("./src/errors.ts"),C=O("./src/utils/logger.ts"),A=function(){function g(f){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=f,this._registerListeners()}var e=g.prototype;return e._registerListeners=function(){this.hls.on(b.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(b.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var l=this.loaders[a];l&&l.destroy()}this.loaders={}},e.onKeyLoading=function(a,l){var n=l.frag,i=n.type,r=this.loaders[i];if(!n.decryptdata){C.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var c=n.decryptdata.uri;if(c!==this.decrypturl||this.decryptkey===null){var h=this.hls.config;if(r&&(C.logger.warn("abort previous key loader for type:"+i),r.abort()),!c){C.logger.warn("key uri is falsy");return}var d=h.loader,s=n.loader=this.loaders[i]=new d(h);this.decrypturl=c,this.decryptkey=null;var u={url:c,frag:n,responseType:"arraybuffer"},w={timeout:h.fragLoadingTimeOut,maxRetry:0,retryDelay:h.fragLoadingRetryDelay,maxRetryDelay:h.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(u,w,E)}else this.decryptkey&&(n.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:n}))},e.loadsuccess=function(a,l,n){var i=n.frag;if(!i.decryptdata){C.logger.error("after key load, decryptdata unset");return}this.decryptkey=i.decryptdata.key=new Uint8Array(a.data),i.loader=null,delete this.loaders[i.type],this.hls.trigger(b.Events.KEY_LOADED,{frag:i})},e.loaderror=function(a,l){var n=l.frag,i=n.loader;i&&i.abort(),delete this.loaders[n.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:n,response:a})},e.loadtimeout=function(a,l){var n=l.frag,i=n.loader;i&&i.abort(),delete this.loaders[n.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:n})},g}()},"./src/loader/level-details.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"LevelDetails",function(){return g});var b=O("./src/polyfills/number.ts");function y(e,f){for(var a=0;a<f.length;a++){var l=f[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function C(e,f,a){return f&&y(e.prototype,f),a&&y(e,a),e}var A=10,g=function(){function e(a){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=a}var f=e.prototype;return f.reloaded=function(l){if(!l){this.advanced=!0,this.updated=!0;return}var n=this.lastPartSn-l.lastPartSn,i=this.lastPartIndex-l.lastPartIndex;this.updated=this.endSN!==l.endSN||!!i||!!n,this.advanced=this.endSN>l.endSN||n>0||n===0&&i>0,this.updated||this.advanced?this.misses=Math.floor(l.misses*.6):this.misses=l.misses+1,this.availabilityDelay=l.availabilityDelay},C(e,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(b.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||A}},{key:"drift",get:function(){var l=this.driftEndTime-this.driftStartTime;if(l>0){var n=this.driftEnd-this.driftStart;return n*1e3/l}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var l;return(l=this.fragments)!==null&&l!==void 0&&l.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"LevelKey",function(){return g});var b=O("./node_modules/url-toolkit/src/url-toolkit.js"),y=O.n(b);function C(e,f){for(var a=0;a<f.length;a++){var l=f[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function A(e,f,a){return f&&C(e.prototype,f),a&&C(e,a),e}var g=function(){e.fromURL=function(a,l){return new e(a,l)},e.fromURI=function(a){return new e(a)};function e(f,a){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,a?this._uri=Object(b.buildAbsoluteURL)(f,a,{alwaysNormalize:!0}):this._uri=f}return A(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"LoadStats",function(){return b});var b=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return s});var b=O("./src/polyfills/number.ts"),y=O("./node_modules/url-toolkit/src/url-toolkit.js"),C=O.n(y),A=O("./src/loader/fragment.ts"),g=O("./src/loader/level-details.ts"),e=O("./src/loader/level-key.ts"),f=O("./src/utils/attr-list.ts"),a=O("./src/utils/logger.ts"),l=O("./src/utils/codecs.ts"),n=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,i=/#EXT-X-MEDIA:(.*)/g,r=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),c=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),h=/\.(mp4|m4s|m4v|m4a)$/i;function d(P){var R,x;return h.test((R=(x=y.parseURL(P))===null||x===void 0?void 0:x.path)!=null?R:"")}var s=function(){function P(){}return P.findGroup=function(x,S){for(var v=0;v<x.length;v++){var T=x[v];if(T.id===S)return T}},P.convertAVC1ToAVCOTI=function(x){var S=x.split(".");if(S.length>2){var v=S.shift()+".";return v+=parseInt(S.shift()).toString(16),v+=("000"+parseInt(S.shift()).toString(16)).substr(-4),v}return x},P.resolve=function(x,S){return y.buildAbsoluteURL(S,x,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(x,S){var v=[],T={},U=!1;n.lastIndex=0;for(var I;(I=n.exec(x))!=null;)if(I[1]){var N=new f.AttrList(I[1]),V={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:P.resolve(I[2],S)},H=N.decimalResolution("RESOLUTION");H&&(V.width=H.width,V.height=H.height),u((N.CODECS||"").split(/[ ,]+/).filter(function(W){return W}),V),V.videoCodec&&V.videoCodec.indexOf("avc1")!==-1&&(V.videoCodec=P.convertAVC1ToAVCOTI(V.videoCodec)),v.push(V)}else if(I[3]){var D=new f.AttrList(I[3]);D["DATA-ID"]&&(U=!0,T[D["DATA-ID"]]=D)}return{levels:v,sessionData:U?T:null}},P.parseMasterPlaylistMedia=function(x,S,v,T){T===void 0&&(T=[]);var U,I=[],N=0;for(i.lastIndex=0;(U=i.exec(x))!==null;){var V=new f.AttrList(U[1]);if(V.TYPE===v){var H={attrs:V,bitrate:0,id:N++,groupId:V["GROUP-ID"],instreamId:V["INSTREAM-ID"],name:V.NAME||V.LANGUAGE||"",type:v,default:V.bool("DEFAULT"),autoselect:V.bool("AUTOSELECT"),forced:V.bool("FORCED"),lang:V.LANGUAGE,url:V.URI?P.resolve(V.URI,S):""};if(T.length){var D=P.findGroup(T,H.groupId)||T[0];w(H,D,"audioCodec"),w(H,D,"textCodec")}I.push(H)}}return I},P.parseLevelPlaylist=function(x,S,v,T,U){var I=new g.LevelDetails(S),N=I.fragments,V=null,H=0,D=0,W=0,F=0,L=null,K=new A.Fragment(T,S),ee,he,fe,Ce=-1,Te=!1;for(r.lastIndex=0,I.m3u8=x;(ee=r.exec(x))!==null;){Te&&(Te=!1,K=new A.Fragment(T,S),K.start=W,K.sn=H,K.cc=F,K.level=v,V&&(K.initSegment=V,K.rawProgramDateTime=V.rawProgramDateTime));var ce=ee[1];if(ce){K.duration=parseFloat(ce);var ye=(" "+ee[2]).slice(1);K.title=ye||null,K.tagList.push(ye?["INF",ce,ye]:["INF",ce])}else if(ee[3])Object(b.isFiniteNumber)(K.duration)&&(K.start=W,fe&&(K.levelkey=fe),K.sn=H,K.level=v,K.cc=F,K.urlId=U,N.push(K),K.relurl=(" "+ee[3]).slice(1),_(K,L),L=K,W+=K.duration,H++,D=0,Te=!0);else if(ee[4]){var Ee=(" "+ee[4]).slice(1);L?K.setByteRange(Ee,L):K.setByteRange(Ee)}else if(ee[5])K.rawProgramDateTime=(" "+ee[5]).slice(1),K.tagList.push(["PROGRAM-DATE-TIME",K.rawProgramDateTime]),Ce===-1&&(Ce=N.length);else{if(ee=ee[0].match(c),!ee){a.logger.warn("No matches on slow regex match for level playlist!");continue}for(he=1;he<ee.length&&!(typeof ee[he]!="undefined");he++);var ue=(" "+ee[he]).slice(1),se=(" "+ee[he+1]).slice(1),$=ee[he+2]?(" "+ee[he+2]).slice(1):"";switch(ue){case"PLAYLIST-TYPE":I.type=se.toUpperCase();break;case"MEDIA-SEQUENCE":H=I.startSN=parseInt(se);break;case"SKIP":{var me=new f.AttrList(se),re=me.decimalInteger("SKIPPED-SEGMENTS");if(Object(b.isFiniteNumber)(re)){I.skippedSegments=re;for(var ae=re;ae--;)N.unshift(null);H+=re}var we=me.enumeratedString("RECENTLY-REMOVED-DATERANGES");we&&(I.recentlyRemovedDateranges=we.split(" "));break}case"TARGETDURATION":I.targetduration=parseFloat(se);break;case"VERSION":I.version=parseInt(se);break;case"EXTM3U":break;case"ENDLIST":I.live=!1;break;case"#":(se||$)&&K.tagList.push($?[se,$]:[se]);break;case"DIS":F++;case"GAP":K.tagList.push([ue]);break;case"BITRATE":K.tagList.push([ue,se]);break;case"DISCONTINUITY-SEQ":F=parseInt(se);break;case"KEY":{var le,te=new f.AttrList(se),Q=te.enumeratedString("METHOD"),J=te.URI,ve=te.hexadecimalInteger("IV"),_e=te.enumeratedString("KEYFORMATVERSIONS"),Oe=te.enumeratedString("KEYID"),Xe=(le=te.enumeratedString("KEYFORMAT"))!=null?le:"identity",tt=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(tt.indexOf(Xe)>-1){a.logger.warn("Keyformat "+Xe+" is not supported from the manifest");continue}else if(Xe!=="identity")continue;Q&&(fe=e.LevelKey.fromURL(S,J),J&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(fe.method=Q,fe.keyFormat=Xe,Oe&&(fe.keyID=Oe),_e&&(fe.keyFormatVersions=_e),fe.iv=ve));break}case"START":{var lt=new f.AttrList(se),dt=lt.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(dt)&&(I.startTimeOffset=dt);break}case"MAP":{var vt=new f.AttrList(se);K.relurl=vt.URI,vt.BYTERANGE&&K.setByteRange(vt.BYTERANGE),K.level=v,K.sn="initSegment",fe&&(K.levelkey=fe),K.initSegment=null,V=K,Te=!0;break}case"SERVER-CONTROL":{var _t=new f.AttrList(se);I.canBlockReload=_t.bool("CAN-BLOCK-RELOAD"),I.canSkipUntil=_t.optionalFloat("CAN-SKIP-UNTIL",0),I.canSkipDateRanges=I.canSkipUntil>0&&_t.bool("CAN-SKIP-DATERANGES"),I.partHoldBack=_t.optionalFloat("PART-HOLD-BACK",0),I.holdBack=_t.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ye=new f.AttrList(se);I.partTarget=Ye.decimalFloatingPoint("PART-TARGET");break}case"PART":{var je=I.partList;je||(je=I.partList=[]);var ht=D>0?je[je.length-1]:void 0,Bt=D++,Et=new A.Part(new f.AttrList(se),K,S,Bt,ht);je.push(Et),K.duration+=Et.duration;break}case"PRELOAD-HINT":{var Pt=new f.AttrList(se);I.preloadHint=Pt;break}case"RENDITION-REPORT":{var Ze=new f.AttrList(se);I.renditionReports=I.renditionReports||[],I.renditionReports.push(Ze);break}default:a.logger.warn("line parsed but not handled: "+ee);break}}}L&&!L.relurl?(N.pop(),W-=L.duration,I.partList&&(I.fragmentHint=L)):I.partList&&(_(K,L),K.cc=F,I.fragmentHint=K);var We=N.length,Je=N[0],Ae=N[We-1];if(W+=I.skippedSegments*I.targetduration,W>0&&We&&Ae){I.averagetargetduration=W/We;var Ue=Ae.sn;I.endSN=Ue!=="initSegment"?Ue:0,Je&&(I.startCC=Je.cc,Je.initSegment||I.fragments.every(function(He){return He.relurl&&d(He.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),K=new A.Fragment(T,S),K.relurl=Ae.relurl,K.level=v,K.sn="initSegment",Je.initSegment=K,I.needSidxRanges=!0))}else I.endSN=0,I.startCC=0;return I.fragmentHint&&(W+=I.fragmentHint.duration),I.totalduration=W,I.endCC=F,Ce>0&&E(N,Ce),I},P}();function u(P,R){["video","audio","text"].forEach(function(x){var S=P.filter(function(T){return Object(l.isCodecType)(T,x)});if(S.length){var v=S.filter(function(T){return T.lastIndexOf("avc1",0)===0||T.lastIndexOf("mp4a",0)===0});R[x+"Codec"]=v.length>0?v[0]:S[0],P=P.filter(function(T){return S.indexOf(T)===-1})}}),R.unknownCodecs=P}function w(P,R,x){var S=R[x];S&&(P[x]=S)}function E(P,R){for(var x=P[R],S=R;S--;){var v=P[S];if(!v)return;v.programDateTime=x.programDateTime-v.duration*1e3,x=v}}function _(P,R){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):R!=null&&R.programDateTime&&(P.programDateTime=R.endProgramDateTime),Object(b.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/polyfills/number.ts"),y=O("./src/events.ts"),C=O("./src/errors.ts"),A=O("./src/utils/logger.ts"),g=O("./src/utils/mp4-tools.ts"),e=O("./src/loader/m3u8-parser.ts"),f=O("./src/types/loader.ts"),a=O("./src/utils/attr-list.ts");function l(r){var c=r.type;switch(c){case f.PlaylistContextType.AUDIO_TRACK:return f.PlaylistLevelType.AUDIO;case f.PlaylistContextType.SUBTITLE_TRACK:return f.PlaylistLevelType.SUBTITLE;default:return f.PlaylistLevelType.MAIN}}function n(r,c){var h=r.url;return(h===void 0||h.indexOf("data:")===0)&&(h=c.url),h}var i=function(){function r(h){this.hls=void 0,this.loaders=Object.create(null),this.hls=h,this.registerListeners()}var c=r.prototype;return c.registerListeners=function(){var d=this.hls;d.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.on(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.unregisterListeners=function(){var d=this.hls;d.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.off(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.createInternalLoader=function(d){var s=this.hls.config,u=s.pLoader,w=s.loader,E=u||w,_=new E(s);return d.loader=_,this.loaders[d.type]=_,_},c.getInternalLoader=function(d){return this.loaders[d.type]},c.resetInternalLoader=function(d){this.loaders[d]&&delete this.loaders[d]},c.destroyInternalLoaders=function(){for(var d in this.loaders){var s=this.loaders[d];s&&s.destroy(),this.resetInternalLoader(d)}},c.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},c.onManifestLoading=function(d,s){var u=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:f.PlaylistContextType.MANIFEST,url:u,deliveryDirectives:null})},c.onLevelLoading=function(d,s){var u=s.id,w=s.level,E=s.url,_=s.deliveryDirectives;this.load({id:u,groupId:null,level:w,responseType:"text",type:f.PlaylistContextType.LEVEL,url:E,deliveryDirectives:_})},c.onAudioTrackLoading=function(d,s){var u=s.id,w=s.groupId,E=s.url,_=s.deliveryDirectives;this.load({id:u,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:_})},c.onSubtitleTrackLoading=function(d,s){var u=s.id,w=s.groupId,E=s.url,_=s.deliveryDirectives;this.load({id:u,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:_})},c.load=function(d){var s,u=this.hls.config,w=this.getInternalLoader(d);if(w){var E=w.context;if(E&&E.url===d.url){A.logger.trace("[playlist-loader]: playlist request ongoing");return}A.logger.log("[playlist-loader]: aborting previous loader for type: "+d.type),w.abort()}var _,P,R,x;switch(d.type){case f.PlaylistContextType.MANIFEST:_=u.manifestLoadingMaxRetry,P=u.manifestLoadingTimeOut,R=u.manifestLoadingRetryDelay,x=u.manifestLoadingMaxRetryTimeout;break;case f.PlaylistContextType.LEVEL:case f.PlaylistContextType.AUDIO_TRACK:case f.PlaylistContextType.SUBTITLE_TRACK:_=0,P=u.levelLoadingTimeOut;break;default:_=u.levelLoadingMaxRetry,P=u.levelLoadingTimeOut,R=u.levelLoadingRetryDelay,x=u.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(d),(s=d.deliveryDirectives)!==null&&s!==void 0&&s.part){var S;if(d.type===f.PlaylistContextType.LEVEL&&d.level!==null?S=this.hls.levels[d.level].details:d.type===f.PlaylistContextType.AUDIO_TRACK&&d.id!==null?S=this.hls.audioTracks[d.id].details:d.type===f.PlaylistContextType.SUBTITLE_TRACK&&d.id!==null&&(S=this.hls.subtitleTracks[d.id].details),S){var v=S.partTarget,T=S.targetduration;v&&T&&(P=Math.min(Math.max(v*3,T*.8)*1e3,P))}}var U={timeout:P,maxRetry:_,retryDelay:R,maxRetryDelay:x,highWaterMark:0},I={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(d,U,I)},c.loadsuccess=function(d,s,u,w){if(w===void 0&&(w=null),u.isSidxRequest){this.handleSidxRequest(d,u),this.handlePlaylistLoaded(d,s,u,w);return}this.resetInternalLoader(u.type);var E=d.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(d,u,"no EXTM3U delimiter",w);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(d,s,u,w):this.handleMasterPlaylist(d,s,u,w)},c.loaderror=function(d,s,u){u===void 0&&(u=null),this.handleNetworkError(s,u,!1,d)},c.loadtimeout=function(d,s,u){u===void 0&&(u=null),this.handleNetworkError(s,u,!0)},c.handleMasterPlaylist=function(d,s,u,w){var E=this.hls,_=d.data,P=n(d,u),R=e.default.parseMasterPlaylist(_,P),x=R.levels,S=R.sessionData;if(!x.length){this.handleManifestParsingError(d,u,"no level found in manifest",w);return}var v=x.map(function(H){return{id:H.attrs.AUDIO,audioCodec:H.audioCodec}}),T=x.map(function(H){return{id:H.attrs.SUBTITLES,textCodec:H.textCodec}}),U=e.default.parseMasterPlaylistMedia(_,P,"AUDIO",v),I=e.default.parseMasterPlaylistMedia(_,P,"SUBTITLES",T),N=e.default.parseMasterPlaylistMedia(_,P,"CLOSED-CAPTIONS");if(U.length){var V=U.some(function(H){return!H.url});!V&&x[0].audioCodec&&!x[0].attrs.AUDIO&&(A.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),U.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}E.trigger(y.Events.MANIFEST_LOADED,{levels:x,audioTracks:U,subtitles:I,captions:N,url:P,stats:s,networkDetails:w,sessionData:S})},c.handleTrackOrLevelPlaylist=function(d,s,u,w){var E=this.hls,_=u.id,P=u.level,R=u.type,x=n(d,u),S=Object(b.isFiniteNumber)(_)?_:0,v=Object(b.isFiniteNumber)(P)?P:S,T=l(u),U=e.default.parseLevelPlaylist(d.data,x,v,T,S);if(!U.fragments.length){E.trigger(y.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:x,reason:"no fragments found in level",level:typeof u.level=="number"?u.level:void 0});return}if(R===f.PlaylistContextType.MANIFEST){var I={attrs:new a.AttrList({}),bitrate:0,details:U,name:"",url:x};E.trigger(y.Events.MANIFEST_LOADED,{levels:[I],audioTracks:[],url:x,stats:s,networkDetails:w,sessionData:null})}if(s.parsing.end=performance.now(),U.needSidxRanges){var N,V=(N=U.fragments[0].initSegment)===null||N===void 0?void 0:N.url;this.load({url:V,isSidxRequest:!0,type:R,level:P,levelDetails:U,id:_,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}u.levelDetails=U,this.handlePlaylistLoaded(d,s,u,w)},c.handleSidxRequest=function(d,s){var u=Object(g.parseSegmentIndex)(new Uint8Array(d.data));if(!u)return;var w=u.references,E=s.levelDetails;w.forEach(function(_,P){var R=_.info,x=E.fragments[P];x.byteRange.length===0&&x.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),x.initSegment&&x.initSegment.setByteRange(String(u.moovEndOffset)+"@0")})},c.handleManifestParsingError=function(d,s,u,w){this.hls.trigger(y.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===f.PlaylistContextType.MANIFEST,url:d.url,reason:u,response:d,context:s,networkDetails:w})},c.handleNetworkError=function(d,s,u,w){u===void 0&&(u=!1),A.logger.warn("[playlist-loader]: A network "+(u?"timeout":"error")+" occurred while loading "+d.type+" level: "+d.level+" id: "+d.id+' group-id: "'+d.groupId+'"');var E=C.ErrorDetails.UNKNOWN,_=!1,P=this.getInternalLoader(d);switch(d.type){case f.PlaylistContextType.MANIFEST:E=u?C.ErrorDetails.MANIFEST_LOAD_TIMEOUT:C.ErrorDetails.MANIFEST_LOAD_ERROR,_=!0;break;case f.PlaylistContextType.LEVEL:E=u?C.ErrorDetails.LEVEL_LOAD_TIMEOUT:C.ErrorDetails.LEVEL_LOAD_ERROR,_=!1;break;case f.PlaylistContextType.AUDIO_TRACK:E=u?C.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:C.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,_=!1;break;case f.PlaylistContextType.SUBTITLE_TRACK:E=u?C.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:C.ErrorDetails.SUBTITLE_LOAD_ERROR,_=!1;break}P&&this.resetInternalLoader(d.type);var R={type:C.ErrorTypes.NETWORK_ERROR,details:E,fatal:_,url:d.url,loader:P,context:d,networkDetails:s};w&&(R.response=w),this.hls.trigger(y.Events.ERROR,R)},c.handlePlaylistLoaded=function(d,s,u,w){var E=u.type,_=u.level,P=u.id,R=u.groupId,x=u.loader,S=u.levelDetails,v=u.deliveryDirectives;if(!(S!=null&&S.targetduration)){this.handleManifestParsingError(d,u,"invalid target duration",w);return}if(!x)return;S.live&&(x.getCacheAge&&(S.ageHeader=x.getCacheAge()||0),(!x.getCacheAge||isNaN(S.ageHeader))&&(S.ageHeader=0));switch(E){case f.PlaylistContextType.MANIFEST:case f.PlaylistContextType.LEVEL:this.hls.trigger(y.Events.LEVEL_LOADED,{details:S,level:_||0,id:P||0,stats:s,networkDetails:w,deliveryDirectives:v});break;case f.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(y.Events.AUDIO_TRACK_LOADED,{details:S,id:P||0,groupId:R||"",stats:s,networkDetails:w,deliveryDirectives:v});break;case f.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(y.Events.SUBTITLE_TRACK_LOADED,{details:S,id:P||0,groupId:R||"",stats:s,networkDetails:w,deliveryDirectives:v});break}},r}();m.default=i},"./src/polyfills/number.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"isFiniteNumber",function(){return b}),O.d(m,"MAX_SAFE_INTEGER",function(){return y});var b=Number.isFinite||function(C){return typeof C=="number"&&isFinite(C)},y=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(M,m,O){"use strict";O.r(m);var b=function(){function y(){}return y.getSilentFrame=function(A,g){switch(A){case"mp4a.40.2":if(g===1)return new Uint8Array([0,200,0,128,35,128]);if(g===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(g===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(g===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(g===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(g===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(g===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(g===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(g===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},y}();m.default=b},"./src/remux/mp4-generator.ts":function(M,m,O){"use strict";O.r(m);var b=Math.pow(2,32)-1,y=function(){function C(){}return C.init=function(){C.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var g;for(g in C.types)C.types.hasOwnProperty(g)&&(C.types[g]=[g.charCodeAt(0),g.charCodeAt(1),g.charCodeAt(2),g.charCodeAt(3)]);var e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),f=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);C.HDLR_TYPES={video:e,audio:f};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),l=new Uint8Array([0,0,0,0,0,0,0,0]);C.STTS=C.STSC=C.STCO=l,C.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),C.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),C.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),C.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var n=new Uint8Array([105,115,111,109]),i=new Uint8Array([97,118,99,49]),r=new Uint8Array([0,0,0,1]);C.FTYP=C.box(C.types.ftyp,n,r,n,i),C.DINF=C.box(C.types.dinf,C.box(C.types.dref,a))},C.box=function(g){for(var e=8,f=arguments.length,a=new Array(f>1?f-1:0),l=1;l<f;l++)a[l-1]=arguments[l];for(var n=a.length,i=n;n--;)e+=a[n].byteLength;var r=new Uint8Array(e);for(r[0]=e>>24&255,r[1]=e>>16&255,r[2]=e>>8&255,r[3]=e&255,r.set(g,4),n=0,e=8;n<i;n++)r.set(a[n],e),e+=a[n].byteLength;return r},C.hdlr=function(g){return C.box(C.types.hdlr,C.HDLR_TYPES[g])},C.mdat=function(g){return C.box(C.types.mdat,g)},C.mdhd=function(g,e){e*=g;var f=Math.floor(e/(b+1)),a=Math.floor(e%(b+1));return C.box(C.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,g>>24&255,g>>16&255,g>>8&255,g&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},C.mdia=function(g){return C.box(C.types.mdia,C.mdhd(g.timescale,g.duration),C.hdlr(g.type),C.minf(g))},C.mfhd=function(g){return C.box(C.types.mfhd,new Uint8Array([0,0,0,0,g>>24,g>>16&255,g>>8&255,g&255]))},C.minf=function(g){return g.type==="audio"?C.box(C.types.minf,C.box(C.types.smhd,C.SMHD),C.DINF,C.stbl(g)):C.box(C.types.minf,C.box(C.types.vmhd,C.VMHD),C.DINF,C.stbl(g))},C.moof=function(g,e,f){return C.box(C.types.moof,C.mfhd(g),C.traf(f,e))},C.moov=function(g){for(var e=g.length,f=[];e--;)f[e]=C.trak(g[e]);return C.box.apply(null,[C.types.moov,C.mvhd(g[0].timescale,g[0].duration)].concat(f).concat(C.mvex(g)))},C.mvex=function(g){for(var e=g.length,f=[];e--;)f[e]=C.trex(g[e]);return C.box.apply(null,[C.types.mvex].concat(f))},C.mvhd=function(g,e){e*=g;var f=Math.floor(e/(b+1)),a=Math.floor(e%(b+1)),l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,g>>24&255,g>>16&255,g>>8&255,g&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return C.box(C.types.mvhd,l)},C.sdtp=function(g){var e=g.samples||[],f=new Uint8Array(4+e.length),a,l;for(a=0;a<e.length;a++)l=e[a].flags,f[a+4]=l.dependsOn<<4|l.isDependedOn<<2|l.hasRedundancy;return C.box(C.types.sdtp,f)},C.stbl=function(g){return C.box(C.types.stbl,C.stsd(g),C.box(C.types.stts,C.STTS),C.box(C.types.stsc,C.STSC),C.box(C.types.stsz,C.STSZ),C.box(C.types.stco,C.STCO))},C.avc1=function(g){var e=[],f=[],a,l,n;for(a=0;a<g.sps.length;a++)l=g.sps[a],n=l.byteLength,e.push(n>>>8&255),e.push(n&255),e=e.concat(Array.prototype.slice.call(l));for(a=0;a<g.pps.length;a++)l=g.pps[a],n=l.byteLength,f.push(n>>>8&255),f.push(n&255),f=f.concat(Array.prototype.slice.call(l));var i=C.box(C.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|g.sps.length].concat(e).concat([g.pps.length]).concat(f))),r=g.width,c=g.height,h=g.pixelRatio[0],d=g.pixelRatio[1];return C.box(C.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,r>>8&255,r&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i,C.box(C.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),C.box(C.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,d>>24,d>>16&255,d>>8&255,d&255])))},C.esds=function(g){var e=g.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(g.config).concat([6,1,2]))},C.mp4a=function(g){var e=g.samplerate;return C.box(C.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,g.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),C.box(C.types.esds,C.esds(g)))},C.mp3=function(g){var e=g.samplerate;return C.box(C.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,g.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},C.stsd=function(g){return g.type==="audio"?!g.isAAC&&g.codec==="mp3"?C.box(C.types.stsd,C.STSD,C.mp3(g)):C.box(C.types.stsd,C.STSD,C.mp4a(g)):C.box(C.types.stsd,C.STSD,C.avc1(g))},C.tkhd=function(g){var e=g.id,f=g.duration*g.timescale,a=g.width,l=g.height,n=Math.floor(f/(b+1)),i=Math.floor(f%(b+1));return C.box(C.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,i>>24,i>>16&255,i>>8&255,i&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,a&255,0,0,l>>8&255,l&255,0,0]))},C.traf=function(g,e){var f=C.sdtp(g),a=g.id,l=Math.floor(e/(b+1)),n=Math.floor(e%(b+1));return C.box(C.types.traf,C.box(C.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),C.box(C.types.tfdt,new Uint8Array([1,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,n>>24,n>>16&255,n>>8&255,n&255])),C.trun(g,f.length+16+20+8+16+8+8),f)},C.trak=function(g){return g.duration=g.duration||4294967295,C.box(C.types.trak,C.tkhd(g),C.mdia(g))},C.trex=function(g){var e=g.id;return C.box(C.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},C.trun=function(g,e){var f=g.samples||[],a=f.length,l=12+16*a,n=new Uint8Array(l),i,r,c,h,d,s;for(e+=8+l,n.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),i=0;i<a;i++)r=f[i],c=r.duration,h=r.size,d=r.flags,s=r.cts,n.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&240<<8,d.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*i);return C.box(C.types.trun,n)},C.initSegment=function(g){C.types||C.init();var e=C.moov(g),f=new Uint8Array(C.FTYP.byteLength+e.byteLength);return f.set(C.FTYP),f.set(e,C.FTYP.byteLength),f},C}();y.types=void 0,y.HDLR_TYPES=void 0,y.STTS=void 0,y.STSC=void 0,y.STCO=void 0,y.STSZ=void 0,y.VMHD=void 0,y.SMHD=void 0,y.STSD=void 0,y.FTYP=void 0,y.DINF=void 0,m.default=y},"./src/remux/mp4-remuxer.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return s}),O.d(m,"normalizePts",function(){return u});var b=O("./src/polyfills/number.ts"),y=O("./src/remux/aac-helper.ts"),C=O("./src/remux/mp4-generator.ts"),A=O("./src/events.ts"),g=O("./src/errors.ts"),e=O("./src/utils/logger.ts"),f=O("./src/types/loader.ts"),a=O("./src/utils/timescale-conversion.ts");function l(){return l=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var x=arguments[R];for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(P[S]=x[S])}return P},l.apply(this,arguments)}var n=10*1e3,i=1024,r=1152,c=null,h=null,d=!1,s=function(){function P(x,S,v,T){if(T===void 0&&(T=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=x,this.config=S,this.typeSupported=v,this.ISGenerated=!1,c===null){var U=navigator.userAgent||"",I=U.match(/Chrome\/(\d+)/i);c=I?parseInt(I[1]):0}if(h===null){var N=navigator.userAgent.match(/Safari\/(\d+)/i);h=N?parseInt(N[1]):0}d=!!c&&c<75||!!h&&h<600}var R=P.prototype;return R.destroy=function(){},R.resetTimeStamp=function(S){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=S},R.resetNextTimestamp=function(){e.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},R.resetInitSegment=function(){e.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},R.getVideoStartPts=function(S){var v=!1,T=S.reduce(function(U,I){var N=I.pts-U;return N<-4294967296?(v=!0,u(U,I.pts)):N>0?U:I.pts},S[0].pts);return v&&e.logger.debug("PTS rollover detected"),T},R.remux=function(S,v,T,U,I,N,V,H){var D,W,F,L,K,ee,he=I,fe=I,Ce=S.pid>-1,Te=v.pid>-1,ce=v.samples.length,ye=S.samples.length>0,Ee=ce>1,ue=(!Ce||ye)&&(!Te||Ee)||this.ISGenerated||V;if(ue){this.ISGenerated||(F=this.generateIS(S,v,I));var se=this.isVideoContiguous,$=-1;if(Ee&&($=w(v.samples),!se&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,$>0){e.logger.warn("[mp4-remuxer]: Dropped "+$+" out of "+ce+" video samples due to a missing keyframe");var me=this.getVideoStartPts(v.samples);v.samples=v.samples.slice($),v.dropped+=$,fe+=(v.samples[0].pts-me)/(v.timescale||9e4)}else $===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),ee=!1);if(this.ISGenerated){if(ye&&Ee){var re=this.getVideoStartPts(v.samples),ae=u(S.samples[0].pts,re)-re,we=ae/v.inputTimeScale;he+=Math.max(0,we),fe+=Math.max(0,-we)}if(ye){if(S.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(S,v,I)),W=this.remuxAudio(S,he,this.isAudioContiguous,N,Te||Ee||H===f.PlaylistLevelType.AUDIO?fe:void 0),Ee){var le=W?W.endPTS-W.startPTS:0;v.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(S,v,I)),D=this.remuxVideo(v,fe,se,le)}}else Ee&&(D=this.remuxVideo(v,fe,se,0));D&&(D.firstKeyFrame=$,D.independent=$!==-1)}}return this.ISGenerated&&(T.samples.length&&(K=this.remuxID3(T,I)),U.samples.length&&(L=this.remuxText(U,I))),{audio:W,video:D,initSegment:F,independent:ee,text:L,id3:K}},R.generateIS=function(S,v,T){var U=S.samples,I=v.samples,N=this.typeSupported,V={},H=!Object(b.isFiniteNumber)(this._initPTS),D="audio/mp4",W,F,L;if(H&&(W=F=Infinity),S.config&&U.length&&(S.timescale=S.samplerate,S.isAAC||(N.mpeg?(D="audio/mpeg",S.codec=""):N.mp3&&(S.codec="mp3")),V.audio={id:"audio",container:D,codec:S.codec,initSegment:!S.isAAC&&N.mpeg?new Uint8Array(0):C.default.initSegment([S]),metadata:{channelCount:S.channelCount}},H&&(L=S.inputTimeScale,W=F=U[0].pts-Math.round(L*T))),v.sps&&v.pps&&I.length&&(v.timescale=v.inputTimeScale,V.video={id:"main",container:"video/mp4",codec:v.codec,initSegment:C.default.initSegment([v]),metadata:{width:v.width,height:v.height}},H)){L=v.inputTimeScale;var K=this.getVideoStartPts(I),ee=Math.round(L*T);F=Math.min(F,u(I[0].dts,K)-ee),W=Math.min(W,K-ee)}if(Object.keys(V).length)return this.ISGenerated=!0,H&&(this._initPTS=W,this._initDTS=F),{tracks:V,initPTS:W,timescale:L}},R.remuxVideo=function(S,v,T,U){var I=S.inputTimeScale,N=S.samples,V=[],H=N.length,D=this._initPTS,W=this.nextAvcDts,F=8,L,K,ee,he=Number.POSITIVE_INFINITY,fe=Number.NEGATIVE_INFINITY,Ce=0,Te=!1;if(!T||W===null){var ce=v*I,ye=N[0].pts-u(N[0].dts,N[0].pts);W=ce-ye}for(var Ee=0;Ee<H;Ee++){var ue=N[Ee];if(ue.pts=u(ue.pts-D,W),ue.dts=u(ue.dts-D,W),ue.dts>ue.pts){var se=9e4*.2;Ce=Math.max(Math.min(Ce,ue.pts-ue.dts),-1*se)}ue.dts<N[Ee>0?Ee-1:Ee].dts&&(Te=!0)}Te&&N.sort(function(bt,ke){var nt=bt.dts-ke.dts,rt=bt.pts-ke.pts;return nt||rt}),K=N[0].dts,ee=N[N.length-1].dts;var $=Math.round((ee-K)/(H-1));if(Ce<0){if(Ce<$*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(a.toMsFromMpegTsClock)(-$,!0)+" ms");for(var me=Ce,re=0;re<H;re++)N[re].dts=me=Math.max(me,N[re].pts-$),N[re].pts=Math.max(me,N[re].pts)}else{e.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(a.toMsFromMpegTsClock)(Ce,!0)+" ms to overcome this issue");for(var ae=0;ae<H;ae++)N[ae].dts=N[ae].dts+Ce}K=N[0].dts}if(T){var we=K-W,le=we>$,te=we<-1;if(le||te){le?e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(we,!0)+" ms ("+we+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-we,!0)+" ms ("+we+"dts) overlapping between fragments detected"),K=W;var Q=N[0].pts-we;N[0].dts=K,N[0].pts=Q,e.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(Q,!0)+"/"+Object(a.toMsFromMpegTsClock)(K,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(we,!0)+" ms")}}d&&(K=Math.max(0,K));for(var J=0,ve=0,_e=0;_e<H;_e++){for(var Oe=N[_e],Xe=Oe.units,tt=Xe.length,lt=0,dt=0;dt<tt;dt++)lt+=Xe[dt].data.length;ve+=lt,J+=tt,Oe.length=lt,Oe.dts=Math.max(Oe.dts,K),Oe.pts=Math.max(Oe.pts,Oe.dts,0),he=Math.min(Oe.pts,he),fe=Math.max(Oe.pts,fe)}ee=N[H-1].dts;var vt=ve+4*J+8,_t;try{_t=new Uint8Array(vt)}catch(bt){this.observer.emit(A.Events.ERROR,A.Events.ERROR,{type:g.ErrorTypes.MUX_ERROR,details:g.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:vt,reason:"fail allocating video mdat "+vt});return}var Ye=new DataView(_t.buffer);Ye.setUint32(0,vt),_t.set(C.default.types.mdat,4);for(var je=0;je<H;je++){for(var ht=N[je],Bt=ht.units,Et=0,Pt=0,Ze=Bt.length;Pt<Ze;Pt++){var We=Bt[Pt],Je=We.data,Ae=We.data.byteLength;Ye.setUint32(F,Ae),F+=4,_t.set(Je,F),F+=Ae,Et+=4+Ae}if(je<H-1)L=N[je+1].dts-ht.dts;else{var Ue=this.config,He=ht.dts-N[je>0?je-1:je].dts;if(Ue.stretchShortVideoTrack&&this.nextAudioPts!==null){var Fe=Math.floor(Ue.maxBufferHole*I),et=(U?he+U*I:this.nextAudioPts)-ht.pts;et>Fe?(L=et-He,L<0&&(L=He),e.logger.log("[mp4-remuxer]: It is approximately "+et/90+" ms to the next segment; using duration "+L/90+" ms for the last video frame.")):L=He}else L=He}var mt=Math.round(ht.pts-ht.dts);V.push(new E(ht.key,L,Et,mt))}if(V.length&&c&&c<70){var Lt=V[0].flags;Lt.dependsOn=2,Lt.isNonSync=0}console.assert(L!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=W=ee+L,this.isVideoContiguous=!0;var Xt=C.default.moof(S.sequenceNumber++,K,l({},S,{samples:V})),rn="video",wt={data1:Xt,data2:_t,startPTS:he/I,endPTS:(fe+L)/I,startDTS:K/I,endDTS:W/I,type:rn,hasAudio:!1,hasVideo:!0,nb:V.length,dropped:S.dropped};return S.samples=[],S.dropped=0,console.assert(_t.length,"MDAT length must not be zero"),wt},R.remuxAudio=function(S,v,T,U,I){var N=S.inputTimeScale,V=S.samplerate?S.samplerate:N,H=N/V,D=S.isAAC?i:r,W=D*H,F=this._initPTS,L=!S.isAAC&&this.typeSupported.mpeg,K=[],ee=S.samples,he=L?0:8,fe=this.nextAudioPts||-1,Ce=v*N;if(this.isAudioContiguous=T=T||ee.length&&fe>0&&(U&&Math.abs(Ce-fe)<9e3||Math.abs(u(ee[0].pts-F,Ce)-fe)<20*W),ee.forEach(function(Je){Je.pts=u(Je.pts-F,Ce)}),!T||fe<0){if(ee=ee.filter(function(Je){return Je.pts>=0}),!ee.length)return;I===0?fe=0:U?fe=Math.max(0,Ce):fe=ee[0].pts}if(S.isAAC)for(var Te=I!==void 0,ce=this.config.maxAudioFramesDrift,ye=0,Ee=fe;ye<ee.length;ye++){var ue=ee[ye],se=ue.pts,$=se-Ee,me=Math.abs(1e3*$/N);if($<=-ce*W&&Te)ye===0&&(e.logger.warn("Audio frame @ "+(se/N).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*$/N)+" ms."),this.nextAudioPts=fe=Ee=se);else if($>=ce*W&&me<n&&Te){var re=Math.round($/W);Ee=se-re*W,Ee<0&&(re--,Ee+=W),ye===0&&(this.nextAudioPts=fe=Ee),e.logger.warn("[mp4-remuxer]: Injecting "+re+" audio frame @ "+(Ee/N).toFixed(3)+"s due to "+Math.round(1e3*$/N)+" ms gap.");for(var ae=0;ae<re;ae++){var we=Math.max(Ee,0),le=y.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);le||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),le=ue.unit.subarray()),ee.splice(ye,0,{unit:le,pts:we}),Ee+=W,ye++}}ue.pts=Ee,Ee+=W}for(var te=null,Q=null,J,ve=0,_e=ee.length;_e--;)ve+=ee[_e].unit.byteLength;for(var Oe=0,Xe=ee.length;Oe<Xe;Oe++){var tt=ee[Oe],lt=tt.unit,dt=tt.pts;if(Q!==null){var vt=K[Oe-1];vt.duration=Math.round((dt-Q)/H)}else if(T&&S.isAAC&&(dt=fe),te=dt,ve>0){ve+=he;try{J=new Uint8Array(ve)}catch(Je){this.observer.emit(A.Events.ERROR,A.Events.ERROR,{type:g.ErrorTypes.MUX_ERROR,details:g.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!L){var _t=new DataView(J.buffer);_t.setUint32(0,ve),J.set(C.default.types.mdat,4)}}else return;J.set(lt,he);var Ye=lt.byteLength;he+=Ye,K.push(new E(!0,D,Ye,0)),Q=dt}var je=K.length;if(!je)return;var ht=K[K.length-1];this.nextAudioPts=fe=Q+H*ht.duration;var Bt=L?new Uint8Array(0):C.default.moof(S.sequenceNumber++,te/H,l({},S,{samples:K}));S.samples=[];var Et=te/N,Pt=fe/N,Ze="audio",We={data1:Bt,data2:J,startPTS:Et,endPTS:Pt,startDTS:Et,endDTS:Pt,type:Ze,hasAudio:!0,hasVideo:!1,nb:je};return this.isAudioContiguous=!0,console.assert(J.length,"MDAT length must not be zero"),We},R.remuxEmptyAudio=function(S,v,T,U){var I=S.inputTimeScale,N=S.samplerate?S.samplerate:I,V=I/N,H=this.nextAudioPts,D=(H!==null?H:U.startDTS*I)+this._initDTS,W=U.endDTS*I+this._initDTS,F=V*i,L=Math.ceil((W-D)/F),K=y.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!K){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],he=0;he<L;he++){var fe=D+he*F;ee.push({unit:K,pts:fe,dts:fe})}return S.samples=ee,this.remuxAudio(S,v,T,!1)},R.remuxID3=function(S,v){var T=S.samples.length;if(!T)return;for(var U=S.inputTimeScale,I=this._initPTS,N=this._initDTS,V=0;V<T;V++){var H=S.samples[V];H.pts=u(H.pts-I,v*U)/U,H.dts=u(H.dts-N,v*U)/U}var D=S.samples;return S.samples=[],{samples:D}},R.remuxText=function(S,v){var T=S.samples.length;if(!T)return;for(var U=S.inputTimeScale,I=this._initPTS,N=0;N<T;N++){var V=S.samples[N];V.pts=u(V.pts-I,v*U)/U}S.samples.sort(function(D,W){return D.pts-W.pts});var H=S.samples;return S.samples=[],{samples:H}},P}();function u(P,R){var x;if(R===null)return P;for(R<P?x=-8589934592:x=8589934592;Math.abs(P-R)>4294967296;)P+=x;return P}function w(P){for(var R=0;R<P.length;R++)if(P[R].key)return R;return-1}var E=function(R,x,S,v){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=x,this.size=S,this.cts=v,this.flags=new _(R)},_=function(R){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=R?2:1,this.isNonSync=R?0:1}},"./src/remux/passthrough-remuxer.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/polyfills/number.ts"),y=O("./src/utils/mp4-tools.ts"),C=O("./src/loader/fragment.ts"),A=O("./src/utils/logger.ts"),g=function(){function a(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var l=a.prototype;return l.destroy=function(){},l.resetTimeStamp=function(i){this.initPTS=i,this.lastEndDTS=null},l.resetNextTimestamp=function(){this.lastEndDTS=null},l.resetInitSegment=function(i,r,c){this.audioCodec=r,this.videoCodec=c,this.generateInitSegment(i),this.emitInitSegment=!0},l.generateInitSegment=function(i){var r=this.audioCodec,c=this.videoCodec;if(!i||!i.byteLength){this.initTracks=void 0,this.initData=void 0;return}var h=this.initData=Object(y.parseInitSegment)(i);r||(r=f(h.audio,C.ElementaryStreamTypes.AUDIO)),c||(c=f(h.video,C.ElementaryStreamTypes.VIDEO));var d={};h.audio&&h.video?d.audiovideo={container:"video/mp4",codec:r+","+c,initSegment:i,id:"main"}:h.audio?d.audio={container:"audio/mp4",codec:r,initSegment:i,id:"audio"}:h.video?d.video={container:"video/mp4",codec:c,initSegment:i,id:"main"}:A.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=d},l.remux=function(i,r,c,h,d){var s=this.initPTS,u=this.lastEndDTS,w={audio:void 0,video:void 0,text:h,id3:c,initSegment:void 0};Object(b.isFiniteNumber)(u)||(u=this.lastEndDTS=d||0);var E=r.samples;if(!E||!E.length)return w;var _={initPTS:void 0,timescale:1},P=this.initData;if((!P||!P.length)&&(this.generateInitSegment(E),P=this.initData),!P||!P.length)return A.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),w;this.emitInitSegment&&(_.tracks=this.initTracks,this.emitInitSegment=!1),Object(b.isFiniteNumber)(s)||(this.initPTS=_.initPTS=s=e(P,E,u));var R=Object(y.getDuration)(E,P),x=u,S=R+x;Object(y.offsetStartDTS)(P,E,s),R>0?this.lastEndDTS=S:(A.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var v=!!P.audio,T=!!P.video,U="";v&&(U+="audio"),T&&(U+="video");var I={data1:E,startPTS:x,startDTS:x,endPTS:S,endDTS:S,type:U,hasAudio:v,hasVideo:T,nb:1,dropped:0};return w.audio=I.type==="audio"?I:void 0,w.video=I.type!=="audio"?I:void 0,w.text=h,w.id3=c,w.initSegment=_,w},a}(),e=function(l,n,i){return Object(y.getStartDTS)(l,n)-i};function f(a,l){var n=a==null?void 0:a.codec;return n&&n.length>4?n:n==="hvc1"?"hvc1.1.c.L120.90":n==="av01"?"av01.0.04M.08":n==="avc1"||l===C.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}m.default=g},"./src/task-loop.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return b});var b=function(){function y(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var C=y.prototype;return C.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},C.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},C.onHandlerDestroyed=function(){},C.hasInterval=function(){return!!this._tickInterval},C.hasNextTick=function(){return!!this._tickTimer},C.setInterval=function(g){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,g),!0)},C.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},C.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},C.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},C.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},C.doTick=function(){},y}()},"./src/types/cmcd.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"CMCDVersion",function(){return b}),O.d(m,"CMCDObjectType",function(){return y}),O.d(m,"CMCDStreamingFormat",function(){return C}),O.d(m,"CMCDStreamType",function(){return A});var b=1,y;(function(g){g.MANIFEST="m",g.AUDIO="a",g.VIDEO="v",g.MUXED="av",g.INIT="i",g.CAPTION="c",g.TIMED_TEXT="tt",g.KEY="k",g.OTHER="o"})(y||(y={}));var C;(function(g){g.DASH="d",g.HLS="h",g.SMOOTH="s",g.OTHER="o"})(C||(C={}));var A;(function(g){g.VOD="v",g.LIVE="l"})(A||(A={}))},"./src/types/level.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"HlsSkip",function(){return C}),O.d(m,"getSkipValue",function(){return A}),O.d(m,"HlsUrlParameters",function(){return g}),O.d(m,"Level",function(){return e});function b(f,a){for(var l=0;l<a.length;l++){var n=a[l];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(f,n.key,n)}}function y(f,a,l){return a&&b(f.prototype,a),l&&b(f,l),f}var C;(function(f){f.No="",f.Yes="YES",f.v2="v2"})(C||(C={}));function A(f,a){var l=f.canSkipUntil,n=f.canSkipDateRanges,i=f.endSN,r=a!==void 0?a-i:0;return l&&r<l?n?C.v2:C.Yes:C.No}var g=function(){function f(l,n,i){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=l,this.part=n,this.skip=i}var a=f.prototype;return a.addDirectives=function(n){var i=new self.URL(n);return this.msn!==void 0&&i.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&i.searchParams.set("_HLS_part",this.part.toString()),this.skip&&i.searchParams.set("_HLS_skip",this.skip),i.toString()},f}(),e=function(){function f(a){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[a.url],this.attrs=a.attrs,this.bitrate=a.bitrate,a.details&&(this.details=a.details),this.id=a.id||0,this.name=a.name,this.width=a.width||0,this.height=a.height||0,this.audioCodec=a.audioCodec,this.videoCodec=a.videoCodec,this.unknownCodecs=a.unknownCodecs,this.codecSet=[a.videoCodec,a.audioCodec].filter(function(l){return l}).join(",").replace(/\.[^.,]+/g,"")}return y(f,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(l){var n=l%this.url.length;this._urlId!==n&&(this.details=void 0,this._urlId=n)}}]),f}()},"./src/types/loader.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"PlaylistContextType",function(){return b}),O.d(m,"PlaylistLevelType",function(){return y});var b;(function(C){C.MANIFEST="manifest",C.LEVEL="level",C.AUDIO_TRACK="audioTrack",C.SUBTITLE_TRACK="subtitleTrack"})(b||(b={}));var y;(function(C){C.MAIN="main",C.AUDIO="audio",C.SUBTITLE="subtitle"})(y||(y={}))},"./src/types/transmuxer.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"ChunkMetadata",function(){return b});var b=function(A,g,e,f,a,l){f===void 0&&(f=0),a===void 0&&(a=-1),l===void 0&&(l=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=y(),this.buffering={audio:y(),video:y(),audiovideo:y()},this.level=A,this.sn=g,this.id=e,this.size=f,this.part=a,this.partial=l};function y(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"AttrList",function(){return C});var b=/^(\d+)x(\d+)$/,y=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,C=function(){function A(e){typeof e=="string"&&(e=A.parseAttrList(e));for(var f in e)e.hasOwnProperty(f)&&(this[f]=e[f])}var g=A.prototype;return g.decimalInteger=function(f){var a=parseInt(this[f],10);return a>Number.MAX_SAFE_INTEGER?Infinity:a},g.hexadecimalInteger=function(f){if(this[f]){var a=(this[f]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var l=new Uint8Array(a.length/2),n=0;n<a.length/2;n++)l[n]=parseInt(a.slice(n*2,n*2+2),16);return l}else return null},g.hexadecimalIntegerAsNumber=function(f){var a=parseInt(this[f],16);return a>Number.MAX_SAFE_INTEGER?Infinity:a},g.decimalFloatingPoint=function(f){return parseFloat(this[f])},g.optionalFloat=function(f,a){var l=this[f];return l?parseFloat(l):a},g.enumeratedString=function(f){return this[f]},g.bool=function(f){return this[f]==="YES"},g.decimalResolution=function(f){var a=b.exec(this[f]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},A.parseAttrList=function(f){var a,l={},n='"';for(y.lastIndex=0;(a=y.exec(f))!==null;){var i=a[2];i.indexOf(n)===0&&i.lastIndexOf(n)===i.length-1&&(i=i.slice(1,-1)),l[a[1]]=i}return l},A}()},"./src/utils/binary-search.ts":function(M,m,O){"use strict";O.r(m);var b={search:function(C,A){for(var g=0,e=C.length-1,f=null,a=null;g<=e;){f=(g+e)/2|0,a=C[f];var l=A(a);if(l>0)g=f+1;else if(l<0)e=f-1;else return a}return null}};m.default=b},"./src/utils/buffer-helper.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"BufferHelper",function(){return C});var b=O("./src/utils/logger.ts"),y={length:0,start:function(){return 0},end:function(){return 0}},C=function(){function A(){}return A.isBuffered=function(e,f){try{if(e){for(var a=A.getBuffered(e),l=0;l<a.length;l++)if(f>=a.start(l)&&f<=a.end(l))return!0}}catch(n){}return!1},A.bufferInfo=function(e,f,a){try{if(e){var l=A.getBuffered(e),n=[],i;for(i=0;i<l.length;i++)n.push({start:l.start(i),end:l.end(i)});return this.bufferedInfo(n,f,a)}}catch(r){}return{len:0,start:f,end:f,nextStart:void 0}},A.bufferedInfo=function(e,f,a){f=Math.max(0,f),e.sort(function(_,P){var R=_.start-P.start;return R||P.end-_.end});var l=[];if(a)for(var n=0;n<e.length;n++){var i=l.length;if(i){var r=l[i-1].end;e[n].start-r<a?e[n].end>r&&(l[i-1].end=e[n].end):l.push(e[n])}else l.push(e[n])}else l=e;for(var c=0,h,d=f,s=f,u=0;u<l.length;u++){var w=l[u].start,E=l[u].end;if(f+a>=w&&f<E)d=w,s=E,c=s-f;else if(f+a<w){h=w;break}}return{len:c,start:d||0,end:s||0,nextStart:h}},A.getBuffered=function(e){try{return e.buffered}catch(f){return b.logger.log("failed to get media.buffered",f),y}},A}()},"./src/utils/cea-608-parser.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"Row",function(){return s}),O.d(m,"CaptionScreen",function(){return u});var b=O("./src/utils/logger.ts"),y={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},C=function(S){var v=S;return y.hasOwnProperty(S)&&(v=y[S]),String.fromCharCode(v)},A=15,g=100,e={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},f={17:2,18:4,21:6,22:8,23:10,19:13,20:15},a={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},l={25:2,26:4,29:6,30:8,31:10,27:13,28:15},n=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],i;(function(x){x[x.ERROR=0]="ERROR",x[x.TEXT=1]="TEXT",x[x.WARNING=2]="WARNING",x[x.INFO=2]="INFO",x[x.DEBUG=3]="DEBUG",x[x.DATA=3]="DATA"})(i||(i={}));var r=function(){function x(){this.time=null,this.verboseLevel=i.ERROR}var S=x.prototype;return S.log=function(T,U){this.verboseLevel>=T&&b.logger.log(this.time+" ["+T+"] "+U)},x}(),c=function(S){for(var v=[],T=0;T<S.length;T++)v.push(S[T].toString(16));return v},h=function(){function x(v,T,U,I,N){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=v||"white",this.underline=T||!1,this.italics=U||!1,this.background=I||"black",this.flash=N||!1}var S=x.prototype;return S.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},S.setStyles=function(T){for(var U=["foreground","underline","italics","background","flash"],I=0;I<U.length;I++){var N=U[I];T.hasOwnProperty(N)&&(this[N]=T[N])}},S.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},S.equals=function(T){return this.foreground===T.foreground&&this.underline===T.underline&&this.italics===T.italics&&this.background===T.background&&this.flash===T.flash},S.copy=function(T){this.foreground=T.foreground,this.underline=T.underline,this.italics=T.italics,this.background=T.background,this.flash=T.flash},S.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},x}(),d=function(){function x(v,T,U,I,N,V){this.uchar=void 0,this.penState=void 0,this.uchar=v||" ",this.penState=new h(T,U,I,N,V)}var S=x.prototype;return S.reset=function(){this.uchar=" ",this.penState.reset()},S.setChar=function(T,U){this.uchar=T,this.penState.copy(U)},S.setPenState=function(T){this.penState.copy(T)},S.equals=function(T){return this.uchar===T.uchar&&this.penState.equals(T.penState)},S.copy=function(T){this.uchar=T.uchar,this.penState.copy(T.penState)},S.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},x}(),s=function(){function x(v){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var T=0;T<g;T++)this.chars.push(new d);this.logger=v,this.pos=0,this.currPenState=new h}var S=x.prototype;return S.equals=function(T){for(var U=!0,I=0;I<g;I++)if(!this.chars[I].equals(T.chars[I])){U=!1;break}return U},S.copy=function(T){for(var U=0;U<g;U++)this.chars[U].copy(T.chars[U])},S.isEmpty=function(){for(var T=!0,U=0;U<g;U++)if(!this.chars[U].isEmpty()){T=!1;break}return T},S.setCursor=function(T){this.pos!==T&&(this.pos=T),this.pos<0?(this.logger.log(i.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>g&&(this.logger.log(i.DEBUG,"Too large cursor position "+this.pos),this.pos=g)},S.moveCursor=function(T){var U=this.pos+T;if(T>1)for(var I=this.pos+1;I<U+1;I++)this.chars[I].setPenState(this.currPenState);this.setCursor(U)},S.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},S.insertChar=function(T){T>=144&&this.backSpace();var U=C(T);if(this.pos>=g){this.logger.log(i.ERROR,"Cannot insert "+T.toString(16)+" ("+U+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(U,this.currPenState),this.moveCursor(1)},S.clearFromPos=function(T){var U;for(U=T;U<g;U++)this.chars[U].reset()},S.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},S.clearToEndOfRow=function(){this.clearFromPos(this.pos)},S.getTextString=function(){for(var T=[],U=!0,I=0;I<g;I++){var N=this.chars[I].uchar;N!==" "&&(U=!1),T.push(N)}return U?"":T.join("")},S.setPenStyles=function(T){this.currPenState.setStyles(T);var U=this.chars[this.pos];U.setPenState(this.currPenState)},x}(),u=function(){function x(v){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var T=0;T<A;T++)this.rows.push(new s(v));this.logger=v,this.currRow=A-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var S=x.prototype;return S.reset=function(){for(var T=0;T<A;T++)this.rows[T].clear();this.currRow=A-1},S.equals=function(T){for(var U=!0,I=0;I<A;I++)if(!this.rows[I].equals(T.rows[I])){U=!1;break}return U},S.copy=function(T){for(var U=0;U<A;U++)this.rows[U].copy(T.rows[U])},S.isEmpty=function(){for(var T=!0,U=0;U<A;U++)if(!this.rows[U].isEmpty()){T=!1;break}return T},S.backSpace=function(){var T=this.rows[this.currRow];T.backSpace()},S.clearToEndOfRow=function(){var T=this.rows[this.currRow];T.clearToEndOfRow()},S.insertChar=function(T){var U=this.rows[this.currRow];U.insertChar(T)},S.setPen=function(T){var U=this.rows[this.currRow];U.setPenStyles(T)},S.moveCursor=function(T){var U=this.rows[this.currRow];U.moveCursor(T)},S.setCursor=function(T){this.logger.log(i.INFO,"setCursor: "+T);var U=this.rows[this.currRow];U.setCursor(T)},S.setPAC=function(T){this.logger.log(i.INFO,"pacData = "+JSON.stringify(T));var U=T.row-1;if(this.nrRollUpRows&&U<this.nrRollUpRows-1&&(U=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==U){for(var I=0;I<A;I++)this.rows[I].clear();var N=this.currRow+1-this.nrRollUpRows,V=this.lastOutputScreen;if(V){var H=V.rows[N].cueStartTime,D=this.logger.time;if(H&&D!==null&&H<D)for(var W=0;W<this.nrRollUpRows;W++)this.rows[U-this.nrRollUpRows+W+1].copy(V.rows[N+W])}}this.currRow=U;var F=this.rows[this.currRow];if(T.indent!==null){var L=T.indent,K=Math.max(L-1,0);F.setCursor(T.indent),T.color=F.chars[K].penState.foreground}var ee={foreground:T.color,underline:T.underline,italics:T.italics,background:"black",flash:!1};this.setPen(ee)},S.setBkgData=function(T){this.logger.log(i.INFO,"bkgData = "+JSON.stringify(T)),this.backSpace(),this.setPen(T),this.insertChar(32)},S.setRollUpRows=function(T){this.nrRollUpRows=T},S.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(i.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(i.TEXT,this.getDisplayText());var T=this.currRow+1-this.nrRollUpRows,U=this.rows.splice(T,1)[0];U.clear(),this.rows.splice(this.currRow,0,U),this.logger.log(i.INFO,"Rolling up")},S.getDisplayText=function(T){T=T||!1;for(var U=[],I="",N=-1,V=0;V<A;V++){var H=this.rows[V].getTextString();H&&(N=V+1,T?U.push("Row "+N+": '"+H+"'"):U.push(H.trim()))}return U.length>0&&(T?I="["+U.join(" | ")+"]":I=U.join(`
`)),I},S.getTextAndFormat=function(){return this.rows},x}(),w=function(){function x(v,T,U){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=v,this.outputFilter=T,this.mode=null,this.verbose=0,this.displayedMemory=new u(U),this.nonDisplayedMemory=new u(U),this.lastOutputScreen=new u(U),this.currRollUpRow=this.displayedMemory.rows[A-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=U}var S=x.prototype;return S.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[A-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},S.getHandler=function(){return this.outputFilter},S.setHandler=function(T){this.outputFilter=T},S.setPAC=function(T){this.writeScreen.setPAC(T)},S.setBkgData=function(T){this.writeScreen.setBkgData(T)},S.setMode=function(T){if(T===this.mode)return;this.mode=T,this.logger.log(i.INFO,"MODE="+T),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=T},S.insertChars=function(T){for(var U=0;U<T.length;U++)this.writeScreen.insertChar(T[U]);var I=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(i.INFO,I+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(i.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},S.ccRCL=function(){this.logger.log(i.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},S.ccBS=function(){if(this.logger.log(i.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},S.ccAOF=function(){},S.ccAON=function(){},S.ccDER=function(){this.logger.log(i.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},S.ccRU=function(T){this.logger.log(i.INFO,"RU("+T+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(T)},S.ccFON=function(){this.logger.log(i.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},S.ccRDC=function(){this.logger.log(i.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},S.ccTR=function(){this.logger.log(i.INFO,"TR"),this.setMode("MODE_TEXT")},S.ccRTD=function(){this.logger.log(i.INFO,"RTD"),this.setMode("MODE_TEXT")},S.ccEDM=function(){this.logger.log(i.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},S.ccCR=function(){this.logger.log(i.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},S.ccENM=function(){this.logger.log(i.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},S.ccEOC=function(){if(this.logger.log(i.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var T=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=T,this.writeScreen=this.nonDisplayedMemory,this.logger.log(i.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},S.ccTO=function(T){this.logger.log(i.INFO,"TO("+T+") - Tab Offset"),this.writeScreen.moveCursor(T)},S.ccMIDROW=function(T){var U={flash:!1};if(U.underline=T%2===1,U.italics=T>=46,U.italics)U.foreground="white";else{var I=Math.floor(T/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];U.foreground=N[I]}this.logger.log(i.INFO,"MIDROW: "+JSON.stringify(U)),this.writeScreen.setPen(U)},S.outputDataUpdate=function(T){T===void 0&&(T=!1);var U=this.logger.time;if(U===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=U:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,U,this.lastOutputScreen),T&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:U),this.lastOutputScreen.copy(this.displayedMemory))},S.cueSplitAtTime=function(T){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,T,this.displayedMemory),this.cueStartTime=T))},x}(),E=function(){function x(v,T,U){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var I=new r;this.channels=[null,new w(v,T,I),new w(v+1,U,I)],this.cmdHistory=R(),this.logger=I}var S=x.prototype;return S.getHandler=function(T){return this.channels[T].getHandler()},S.setHandler=function(T,U){this.channels[T].setHandler(U)},S.addData=function(T,U){var I,N,V,H=!1;this.logger.time=T;for(var D=0;D<U.length;D+=2){if(N=U[D]&127,V=U[D+1]&127,N===0&&V===0)continue;if(this.logger.log(i.DATA,"["+c([U[D],U[D+1]])+"] -> ("+c([N,V])+")"),I=this.parseCmd(N,V),I||(I=this.parseMidrow(N,V)),I||(I=this.parsePAC(N,V)),I||(I=this.parseBackgroundAttributes(N,V)),!I&&(H=this.parseChars(N,V),H)){var W=this.currentChannel;if(W&&W>0){var F=this.channels[W];F.insertChars(H)}else this.logger.log(i.WARNING,"No channel found yet. TEXT-MODE?")}!I&&!H&&this.logger.log(i.WARNING,"Couldn't parse cleaned data "+c([N,V])+" orig: "+c([U[D],U[D+1]]))}},S.parseCmd=function(T,U){var I=this.cmdHistory,N=(T===20||T===28||T===21||T===29)&&U>=32&&U<=47,V=(T===23||T===31)&&U>=33&&U<=35;if(!(N||V))return!1;if(P(T,U,I))return _(null,null,I),this.logger.log(i.DEBUG,"Repeated command ("+c([T,U])+") is dropped"),!0;var H=T===20||T===21||T===23?1:2,D=this.channels[H];return T===20||T===21||T===28||T===29?U===32?D.ccRCL():U===33?D.ccBS():U===34?D.ccAOF():U===35?D.ccAON():U===36?D.ccDER():U===37?D.ccRU(2):U===38?D.ccRU(3):U===39?D.ccRU(4):U===40?D.ccFON():U===41?D.ccRDC():U===42?D.ccTR():U===43?D.ccRTD():U===44?D.ccEDM():U===45?D.ccCR():U===46?D.ccENM():U===47&&D.ccEOC():D.ccTO(U-32),_(T,U,I),this.currentChannel=H,!0},S.parseMidrow=function(T,U){var I=0;if((T===17||T===25)&&U>=32&&U<=47){if(T===17?I=1:I=2,I!==this.currentChannel)return this.logger.log(i.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[I];return N?(N.ccMIDROW(U),this.logger.log(i.DEBUG,"MIDROW ("+c([T,U])+")"),!0):!1}return!1},S.parsePAC=function(T,U){var I,N=this.cmdHistory,V=(T>=17&&T<=23||T>=25&&T<=31)&&U>=64&&U<=127,H=(T===16||T===24)&&U>=64&&U<=95;if(!(V||H))return!1;if(P(T,U,N))return _(null,null,N),!0;var D=T<=23?1:2;U>=64&&U<=95?I=D===1?e[T]:a[T]:I=D===1?f[T]:l[T];var W=this.channels[D];return W?(W.setPAC(this.interpretPAC(I,U)),_(T,U,N),this.currentChannel=D,!0):!1},S.interpretPAC=function(T,U){var I,N={color:null,italics:!1,indent:null,underline:!1,row:T};return U>95?I=U-96:I=U-64,N.underline=(I&1)===1,I<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(I/2)]:I<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((I-16)/2)*4,N},S.parseChars=function(T,U){var I,N=null,V=null;if(T>=25?(I=2,V=T-8):(I=1,V=T),V>=17&&V<=19){var H;V===17?H=U+80:V===18?H=U+112:H=U+144,this.logger.log(i.INFO,"Special char '"+C(H)+"' in channel "+I),N=[H]}else T>=32&&T<=127&&(N=U===0?[T]:[T,U]);if(N){var D=c(N);this.logger.log(i.DEBUG,"Char codes = "+D.join(",")),_(T,U,this.cmdHistory)}return N},S.parseBackgroundAttributes=function(T,U){var I=(T===16||T===24)&&U>=32&&U<=47,N=(T===23||T===31)&&U>=45&&U<=47;if(!(I||N))return!1;var V,H={};T===16||T===24?(V=Math.floor((U-32)/2),H.background=n[V],U%2===1&&(H.background=H.background+"_semi")):U===45?H.background="transparent":(H.foreground="black",U===47&&(H.underline=!0));var D=T<=23?1:2,W=this.channels[D];return W.setBkgData(H),_(T,U,this.cmdHistory),!0},S.reset=function(){for(var T=0;T<Object.keys(this.channels).length;T++){var U=this.channels[T];U&&U.reset()}this.cmdHistory=R()},S.cueSplitAtTime=function(T){for(var U=0;U<this.channels.length;U++){var I=this.channels[U];I&&I.cueSplitAtTime(T)}},x}();function _(x,S,v){v.a=x,v.b=S}function P(x,S,v){return v.a===x&&v.b===S}function R(){return{a:null,b:null}}m.default=E},"./src/utils/codecs.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"isCodecType",function(){return y}),O.d(m,"isCodecSupportedInMp4",function(){return C});var b={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function y(A,g){var e=b[g];return!!e&&e[A.slice(0,4)]===!0}function C(A,g){return MediaSource.isTypeSupported((g||"video")+'/mp4;codecs="'+A+'"')}},"./src/utils/cues.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/utils/vttparser.ts"),y=O("./src/utils/webvtt-parser.ts"),C=O("./src/utils/texttrack-utils.ts"),A=/\s/,g={newCue:function(f,a,l,n){for(var i=[],r,c,h,d,s,u=self.VTTCue||self.TextTrackCue,w=0;w<n.rows.length;w++)if(r=n.rows[w],h=!0,d=0,s="",!r.isEmpty()){for(var E=0;E<r.chars.length;E++)A.test(r.chars[E].uchar)&&h?d++:(s+=r.chars[E].uchar,h=!1);r.cueStartTime=a,a===l&&(l+=1e-4),d>=16?d--:d++;var _=Object(b.fixLineBreaks)(s.trim()),P=Object(y.generateCueId)(a,l,_);(!f||!f.cues||!f.cues.getCueById(P))&&(c=new u(a,l,_),c.id=P,c.line=w+1,c.align="left",c.position=10+Math.min(80,Math.floor(d*8/32)*10),i.push(c))}return f&&i.length&&(i.sort(function(R,x){return R.line==="auto"||x.line==="auto"?0:R.line>8&&x.line>8?x.line-R.line:R.line-x.line}),i.forEach(function(R){return Object(C.addCueToTrack)(f,R)})),i}};m.default=g},"./src/utils/discontinuities.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"findFirstFragWithCC",function(){return A}),O.d(m,"shouldAlignOnDiscontinuities",function(){return g}),O.d(m,"findDiscontinuousReferenceFrag",function(){return e}),O.d(m,"adjustSlidingStart",function(){return a}),O.d(m,"alignStream",function(){return l}),O.d(m,"alignPDT",function(){return i}),O.d(m,"alignFragmentByPDTDelta",function(){return r}),O.d(m,"alignMediaPlaylistByPDT",function(){return c});var b=O("./src/polyfills/number.ts"),y=O("./src/utils/logger.ts"),C=O("./src/controller/level-helper.ts");function A(h,d){for(var s=null,u=0,w=h.length;u<w;u++){var E=h[u];if(E&&E.cc===d){s=E;break}}return s}function g(h,d,s){return!!(d.details&&(s.endCC>s.startCC||h&&h.cc<s.startCC))}function e(h,d){var s=h.fragments,u=d.fragments;if(!u.length||!s.length){y.logger.log("No fragments to align");return}var w=A(s,u[0].cc);if(!w||w&&!w.startPTS){y.logger.log("No frag in previous level to align on");return}return w}function f(h,d){if(h){var s=h.start+d;h.start=h.startPTS=s,h.endPTS=s+h.duration}}function a(h,d){for(var s=d.fragments,u=0,w=s.length;u<w;u++)f(s[u],h);d.fragmentHint&&f(d.fragmentHint,h),d.alignedSliding=!0}function l(h,d,s){if(!d)return;n(h,s,d),!s.alignedSliding&&d.details&&i(s,d.details),!s.alignedSliding&&d.details&&!s.skippedSegments&&Object(C.adjustSliding)(d.details,s)}function n(h,d,s){if(g(h,s,d)){var u=e(s.details,d);u&&Object(b.isFiniteNumber)(u.start)&&(y.logger.log("Adjusting PTS using last level due to CC increase within current level "+d.url),a(u.start,d))}}function i(h,d){if(!d.fragments.length||!h.hasProgramDateTime||!d.hasProgramDateTime)return;var s=d.fragments[0].programDateTime,u=h.fragments[0].programDateTime,w=(u-s)/1e3+d.fragments[0].start;w&&Object(b.isFiniteNumber)(w)&&(y.logger.log("Adjusting PTS using programDateTime delta "+(u-s)+"ms, sliding:"+w.toFixed(3)+" "+h.url+" "),a(w,h))}function r(h,d){var s=h.programDateTime;if(!s)return;var u=(s-d)/1e3;h.start=h.startPTS=u,h.endPTS=u+h.duration}function c(h,d){if(!d.fragments.length||!h.hasProgramDateTime||!d.hasProgramDateTime)return;var s=d.fragments[0].programDateTime,u=d.fragments[0].start,w=s-u*1e3;h.fragments.forEach(function(E){r(E,w)}),h.fragmentHint&&r(h.fragmentHint,w),h.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/utils/ewma.ts"),y=function(){function C(g,e,f){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=f,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new b.default(g),this.fast_=new b.default(e)}var A=C.prototype;return A.update=function(e,f){var a=this.slow_,l=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new b.default(e,a.getEstimate(),a.getTotalWeight())),this.fast_.halfLife!==f&&(this.fast_=new b.default(f,l.getEstimate(),l.getTotalWeight()))},A.sample=function(e,f){e=Math.max(e,this.minDelayMs_);var a=8*f,l=e/1e3,n=a/l;this.fast_.sample(l,n),this.slow_.sample(l,n)},A.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},A.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},A.destroy=function(){},C}();m.default=y},"./src/utils/ewma.ts":function(M,m,O){"use strict";O.r(m);var b=function(){function y(A,g,e){g===void 0&&(g=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=A,this.alpha_=A?Math.exp(Math.log(.5)/A):0,this.estimate_=g,this.totalWeight_=e}var C=y.prototype;return C.sample=function(g,e){var f=Math.pow(this.alpha_,g);this.estimate_=e*(1-f)+f*this.estimate_,this.totalWeight_+=g},C.getTotalWeight=function(){return this.totalWeight_},C.getEstimate=function(){if(this.alpha_){var g=1-Math.pow(this.alpha_,this.totalWeight_);if(g)return this.estimate_/g}return this.estimate_},y}();m.default=b},"./src/utils/fetch-loader.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"fetchSupported",function(){return r});var b=O("./src/polyfills/number.ts"),y=O("./src/loader/load-stats.ts"),C=O("./src/demux/chunk-cache.ts");function A(u,w){u.prototype=Object.create(w.prototype),u.prototype.constructor=u,l(u,w)}function g(u){var w=typeof Map=="function"?new Map:void 0;return g=function(_){if(_===null||!a(_))return _;if(typeof _!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w!="undefined"){if(w.has(_))return w.get(_);w.set(_,P)}function P(){return e(_,arguments,n(this).constructor)}return P.prototype=Object.create(_.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),l(P,_)},g(u)}function e(u,w,E){return f()?e=Reflect.construct:e=function(P,R,x){var S=[null];S.push.apply(S,R);var v=Function.bind.apply(P,S),T=new v;return x&&l(T,x.prototype),T},e.apply(null,arguments)}function f(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function a(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function l(u,w){return l=Object.setPrototypeOf||function(_,P){return _.__proto__=P,_},l(u,w)}function n(u){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},n(u)}function i(){return i=Object.assign||function(u){for(var w=1;w<arguments.length;w++){var E=arguments[w];for(var _ in E)Object.prototype.hasOwnProperty.call(E,_)&&(u[_]=E[_])}return u},i.apply(this,arguments)}function r(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(u){}return!1}var c=function(){function u(E){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=E.fetchSetup||d,this.controller=new self.AbortController,this.stats=new y.LoadStats}var w=u.prototype;return w.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},w.abortInternal=function(){var _=this.response;(!_||!_.ok)&&(this.stats.aborted=!0,this.controller.abort())},w.abort=function(){var _;this.abortInternal(),(_=this.callbacks)!==null&&_!==void 0&&_.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},w.load=function(_,P,R){var x=this,S=this.stats;if(S.loading.start)throw new Error("Loader can only be used once.");S.loading.start=self.performance.now();var v=h(_,this.controller.signal),T=R.onProgress,U=_.responseType==="arraybuffer",I=U?"byteLength":"length";this.context=_,this.config=P,this.callbacks=R,this.request=this.fetchSetup(_,v),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){x.abortInternal(),R.onTimeout(S,_,x.response)},P.timeout),self.fetch(this.request).then(function(N){if(x.response=x.loader=N,!N.ok){var V=N.status,H=N.statusText;throw new s(H||"fetch, bad network response",V,N)}return S.loading.first=Math.max(self.performance.now(),S.loading.start),S.total=parseInt(N.headers.get("Content-Length")||"0"),T&&Object(b.isFiniteNumber)(P.highWaterMark)?x.loadProgressively(N,S,_,P.highWaterMark,T):U?N.arrayBuffer():N.text()}).then(function(N){var V=x.response;self.clearTimeout(x.requestTimeout),S.loading.end=Math.max(self.performance.now(),S.loading.first),S.loaded=S.total=N[I];var H={url:V.url,data:N};T&&!Object(b.isFiniteNumber)(P.highWaterMark)&&T(S,_,N,V),R.onSuccess(H,S,_,V)}).catch(function(N){if(self.clearTimeout(x.requestTimeout),S.aborted)return;var V=N.code||0;R.onError({code:V,text:N.message},_,N.details)})},w.getCacheAge=function(){var _=null;if(this.response){var P=this.response.headers.get("age");_=P?parseFloat(P):null}return _},w.loadProgressively=function(_,P,R,x,S){x===void 0&&(x=0);var v=new C.default,T=_.body.getReader(),U=function I(){return T.read().then(function(N){if(N.done)return v.dataLength&&S(P,R,v.flush(),_),Promise.resolve(new ArrayBuffer(0));var V=N.value,H=V.length;return P.loaded+=H,H<x||v.dataLength?(v.push(V),v.dataLength>=x&&S(P,R,v.flush(),_)):S(P,R,V,_),I()}).catch(function(){return Promise.reject()})};return U()},u}();function h(u,w){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:w,headers:new self.Headers(i({},u.headers))};return u.rangeEnd&&E.headers.set("Range","bytes="+u.rangeStart+"-"+String(u.rangeEnd-1)),E}function d(u,w){return new self.Request(u.url,w)}var s=function(u){A(w,u);function w(E,_,P){var R;return R=u.call(this,E)||this,R.code=void 0,R.details=void 0,R.code=_,R.details=P,R}return w}(g(Error));m.default=c},"./src/utils/imsc1-ttml-parser.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"IMSC1_CODEC",function(){return a}),O.d(m,"parseIMSC1",function(){return r});var b=O("./src/utils/mp4-tools.ts"),y=O("./src/utils/vttparser.ts"),C=O("./src/utils/vttcue.ts"),A=O("./src/demux/id3.ts"),g=O("./src/utils/timescale-conversion.ts"),e=O("./src/utils/webvtt-parser.ts");function f(){return f=Object.assign||function(x){for(var S=1;S<arguments.length;S++){var v=arguments[S];for(var T in v)Object.prototype.hasOwnProperty.call(v,T)&&(x[T]=v[T])}return x},f.apply(this,arguments)}var a="stpp.ttml.im1t",l=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,n=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,i={left:"start",center:"center",right:"end",start:"start",end:"end"};function r(x,S,v,T,U){var I=Object(b.findBox)(new Uint8Array(x),["mdat"]);if(I.length===0){U(new Error("Could not parse IMSC1 mdat"));return}var N=I[0],V=Object(A.utf8ArrayToStr)(new Uint8Array(x,N.start,N.end-N.start)),H=Object(g.toTimescaleFromScale)(S,1,v);try{T(c(V,H))}catch(D){U(D)}}function c(x,S){var v=new DOMParser,T=v.parseFromString(x,"text/xml"),U=T.getElementsByTagName("tt")[0];if(!U)throw new Error("Invalid ttml");var I={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},N=Object.keys(I).reduce(function(F,L){return F[L]=U.getAttribute("ttp:"+L)||I[L],F},{}),V=U.getAttribute("xml:space")!=="preserve",H=d(h(U,"styling","style")),D=d(h(U,"layout","region")),W=h(U,"body","[begin]");return[].map.call(W,function(F){var L=s(F,V);if(!L||!F.hasAttribute("begin"))return null;var K=_(F.getAttribute("begin"),N),ee=_(F.getAttribute("dur"),N),he=_(F.getAttribute("end"),N);if(K===null)throw E(F);if(he===null){if(ee===null)throw E(F);he=K+ee}var fe=new C.default(K-S,he-S,L);fe.id=Object(e.generateCueId)(fe.startTime,fe.endTime,fe.text);var Ce=D[F.getAttribute("region")],Te=H[F.getAttribute("style")];fe.position=10,fe.size=80;var ce=u(Ce,Te),ye=ce.textAlign;if(ye){var Ee=i[ye];Ee&&(fe.lineAlign=Ee),fe.align=ye}return f(fe,ce),fe}).filter(function(F){return F!==null})}function h(x,S,v){var T=x.getElementsByTagName(S)[0];return T?[].slice.call(T.querySelectorAll(v)):[]}function d(x){return x.reduce(function(S,v){var T=v.getAttribute("xml:id");return T&&(S[T]=v),S},{})}function s(x,S){return[].slice.call(x.childNodes).reduce(function(v,T,U){var I;return T.nodeName==="br"&&U?v+`
`:(I=T.childNodes)!==null&&I!==void 0&&I.length?s(T,S):S?v+T.textContent.trim().replace(/\s+/g," "):v+T.textContent},"")}function u(x,S){var v="http://www.w3.org/ns/ttml#styling",T=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return T.reduce(function(U,I){var N=w(S,v,I)||w(x,v,I);return N&&(U[I]=N),U},{})}function w(x,S,v){return x.hasAttributeNS(S,v)?x.getAttributeNS(S,v):null}function E(x){return new Error("Could not parse ttml timestamp "+x)}function _(x,S){if(!x)return null;var v=Object(y.parseTimeStamp)(x);return v===null&&(l.test(x)?v=P(x,S):n.test(x)&&(v=R(x,S))),v}function P(x,S){var v=l.exec(x),T=(v[4]|0)+(v[5]|0)/S.subFrameRate;return(v[1]|0)*3600+(v[2]|0)*60+(v[3]|0)+T/S.frameRate}function R(x,S){var v=n.exec(x),T=Number(v[1]),U=v[2];switch(U){case"h":return T*3600;case"m":return T*60;case"ms":return T*1e3;case"f":return T/S.frameRate;case"t":return T/S.tickRate}return T}},"./src/utils/logger.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"enableLogs",function(){return e}),O.d(m,"logger",function(){return f});var b=function(){},y={trace:b,debug:b,log:b,warn:b,info:b,error:b},C=y;function A(a){var l=self.console[a];return l?l.bind(self.console,"["+a+"] >"):b}function g(a){for(var l=arguments.length,n=new Array(l>1?l-1:0),i=1;i<l;i++)n[i-1]=arguments[i];n.forEach(function(r){C[r]=a[r]?a[r].bind(a):A(r)})}function e(a){if(self.console&&a===!0||typeof a=="object"){g(a,"debug","log","info","warn","error");try{C.log()}catch(l){C=y}}else C=y}var f=C},"./src/utils/mediakeys-helper.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"KeySystems",function(){return b}),O.d(m,"requestMediaKeySystemAccess",function(){return y});var b;(function(C){C.WIDEVINE="com.widevine.alpha",C.PLAYREADY="com.microsoft.playready"})(b||(b={}));var y=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"getMediaSource",function(){return b});function b(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"bin2str",function(){return g}),O.d(m,"readUint16",function(){return e}),O.d(m,"readUint32",function(){return f}),O.d(m,"writeUint32",function(){return a}),O.d(m,"findBox",function(){return l}),O.d(m,"parseSegmentIndex",function(){return n}),O.d(m,"parseInitSegment",function(){return i}),O.d(m,"getStartDTS",function(){return r}),O.d(m,"getDuration",function(){return c}),O.d(m,"computeRawDurationFromSamples",function(){return h}),O.d(m,"offsetStartDTS",function(){return d}),O.d(m,"segmentValidRange",function(){return s}),O.d(m,"appendUint8Array",function(){return u});var b=O("./src/utils/typed-array.ts"),y=O("./src/loader/fragment.ts"),C=Math.pow(2,32)-1,A=[].push;function g(w){return String.fromCharCode.apply(null,w)}function e(w,E){"data"in w&&(E+=w.start,w=w.data);var _=w[E]<<8|w[E+1];return _<0?65536+_:_}function f(w,E){"data"in w&&(E+=w.start,w=w.data);var _=w[E]<<24|w[E+1]<<16|w[E+2]<<8|w[E+3];return _<0?4294967296+_:_}function a(w,E,_){"data"in w&&(E+=w.start,w=w.data),w[E]=_>>24,w[E+1]=_>>16&255,w[E+2]=_>>8&255,w[E+3]=_&255}function l(w,E){var _=[];if(!E.length)return _;var P,R,x;"data"in w?(P=w.data,R=w.start,x=w.end):(P=w,R=0,x=P.byteLength);for(var S=R;S<x;){var v=f(P,S),T=g(P.subarray(S+4,S+8)),U=v>1?S+v:x;if(T===E[0])if(E.length===1)_.push({data:P,start:S+8,end:U});else{var I=l({data:P,start:S+8,end:U},E.slice(1));I.length&&A.apply(_,I)}S=U}return _}function n(w){var E=l(w,["moov"]),_=E[0],P=_?_.end:null,R=l(w,["sidx"]);if(!R||!R[0])return null;var x=[],S=R[0],v=S.data[0],T=v===0?8:16,U=f(S,T);T+=4;var I=0,N=0;v===0?T+=8:T+=16,T+=2;var V=S.end+N,H=e(S,T);T+=2;for(var D=0;D<H;D++){var W=T,F=f(S,W);W+=4;var L=F&2147483647,K=(F&2147483648)>>>31;if(K===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ee=f(S,W);W+=4,x.push({referenceSize:L,subsegmentDuration:ee,info:{duration:ee/U,start:V,end:V+L-1}}),V+=L,W+=4,T=W}return{earliestPresentationTime:I,timescale:U,version:v,referencesCount:H,references:x,moovEndOffset:P}}function i(w){for(var E=[],_=l(w,["moov","trak"]),P=0;P<_.length;P++){var R=_[P],x=l(R,["tkhd"])[0];if(x){var S=x.data[x.start],v=S===0?12:20,T=f(x,v),U=l(R,["mdia","mdhd"])[0];if(U){S=U.data[U.start],v=S===0?12:20;var I=f(U,v),N=l(R,["mdia","hdlr"])[0];if(N){var V=g(N.data.subarray(N.start+8,N.start+12)),H={soun:y.ElementaryStreamTypes.AUDIO,vide:y.ElementaryStreamTypes.VIDEO}[V];if(H){var D=l(R,["mdia","minf","stbl","stsd"])[0],W=void 0;D&&(W=g(D.data.subarray(D.start+12,D.start+16))),E[T]={timescale:I,type:H},E[H]={timescale:I,id:T,codec:W}}}}}}var F=l(w,["moov","mvex","trex"]);return F.forEach(function(L){var K=f(L,4),ee=E[K];ee&&(ee.default={duration:f(L,12),flags:f(L,20)})}),E}function r(w,E){return l(E,["moof","traf"]).reduce(function(_,P){var R=l(P,["tfdt"])[0],x=R.data[R.start],S=l(P,["tfhd"]).reduce(function(v,T){var U=f(T,4),I=w[U];if(I){var N=f(R,4);x===1&&(N*=Math.pow(2,32),N+=f(R,8));var V=I.timescale||9e4,H=N/V;if(isFinite(H)&&(v===null||H<v))return H}return v},null);return S!==null&&isFinite(S)&&(_===null||S<_)?S:_},null)||0}function c(w,E){for(var _=0,P=0,R=0,x=l(w,["moof","traf"]),S=0;S<x.length;S++){var v=x[S],T=l(v,["tfhd"])[0],U=f(T,4),I=E[U];if(!I)continue;var N=I.default,V=f(T,0)|(N==null?void 0:N.flags),H=N==null?void 0:N.duration;V&8&&(V&2?H=f(T,12):H=f(T,8));for(var D=I.timescale||9e4,W=l(v,["trun"]),F=0;F<W.length;F++){if(H){var L=f(W[F],4);_=H*L}else _=h(W[F]);I.type===y.ElementaryStreamTypes.VIDEO?P+=_/D:I.type===y.ElementaryStreamTypes.AUDIO&&(R+=_/D)}}if(P===0&&R===0){var K=n(w);if(K!=null&&K.references)return K.references.reduce(function(ee,he){return ee+he.info.duration||0},0)}return P||R}function h(w){var E=f(w,0),_=8;E&1&&(_+=4),E&4&&(_+=4);for(var P=0,R=f(w,4),x=0;x<R;x++){if(E&256){var S=f(w,_);P+=S,_+=4}E&512&&(_+=4),E&1024&&(_+=4),E&2048&&(_+=4)}return P}function d(w,E,_){l(E,["moof","traf"]).forEach(function(P){l(P,["tfhd"]).forEach(function(R){var x=f(R,4),S=w[x];if(!S)return;var v=S.timescale||9e4;l(P,["tfdt"]).forEach(function(T){var U=T.data[T.start],I=f(T,4);if(U===0)a(T,4,I-_*v);else{I*=Math.pow(2,32),I+=f(T,8),I-=_*v,I=Math.max(I,0);var N=Math.floor(I/(C+1)),V=Math.floor(I%(C+1));a(T,4,N),a(T,8,V)}})})})}function s(w){var E={valid:null,remainder:null},_=l(w,["moof"]);if(_){if(_.length<2)return E.remainder=w,E}else return E;var P=_[_.length-1];return E.valid=Object(b.sliceUint8)(w,0,P.start-8),E.remainder=Object(b.sliceUint8)(w,P.start-8),E}function u(w,E){var _=new Uint8Array(w.length+E.length);return _.set(w),_.set(E,w.length),_}},"./src/utils/output-filter.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"default",function(){return b});var b=function(){function y(A,g){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=A,this.trackName=g}var C=y.prototype;return C.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},C.newCue=function(g,e,f){(this.startTime===null||this.startTime>g)&&(this.startTime=g),this.endTime=e,this.screen=f,this.timelineController.createCaptionsTrack(this.trackName)},C.reset=function(){this.cueRanges=[]},y}()},"./src/utils/texttrack-utils.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"sendAddTrackEvent",function(){return y}),O.d(m,"addCueToTrack",function(){return C}),O.d(m,"clearCurrentCues",function(){return A}),O.d(m,"removeCuesInRange",function(){return g}),O.d(m,"getCuesInRange",function(){return f});var b=O("./src/utils/logger.ts");function y(a,l){var n;try{n=new Event("addtrack")}catch(i){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=a,l.dispatchEvent(n)}function C(a,l){var n=a.mode;if(n==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(l.id))try{if(a.addCue(l),!a.cues.getCueById(l.id))throw new Error("addCue is failed for: "+l)}catch(r){b.logger.debug("[texttrack-utils]: "+r);var i=new self.TextTrackCue(l.startTime,l.endTime,l.text);i.id=l.id,a.addCue(i)}n==="disabled"&&(a.mode=n)}function A(a){var l=a.mode;if(l==="disabled"&&(a.mode="hidden"),a.cues)for(var n=a.cues.length;n--;)a.removeCue(a.cues[n]);l==="disabled"&&(a.mode=l)}function g(a,l,n){var i=a.mode;if(i==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var r=f(a.cues,l,n),c=0;c<r.length;c++)a.removeCue(r[c]);i==="disabled"&&(a.mode=i)}function e(a,l){if(l<a[0].startTime)return 0;var n=a.length-1;if(l>a[n].endTime)return-1;for(var i=0,r=n;i<=r;){var c=Math.floor((r+i)/2);if(l<a[c].startTime)r=c-1;else if(l>a[c].startTime&&i<n)i=c+1;else return c}return a[i].startTime-l<l-a[r].startTime?i:r}function f(a,l,n){var i=[],r=e(a,l);if(r>-1)for(var c=r,h=a.length;c<h;c++){var d=a[c];if(d.startTime>=l&&d.endTime<=n)i.push(d);else if(d.startTime>n)return i}return i}},"./src/utils/time-ranges.ts":function(M,m,O){"use strict";O.r(m);var b={toString:function(C){for(var A="",g=C.length,e=0;e<g;e++)A+="["+C.start(e).toFixed(3)+","+C.end(e).toFixed(3)+"]";return A}};m.default=b},"./src/utils/timescale-conversion.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"toTimescaleFromBase",function(){return y}),O.d(m,"toTimescaleFromScale",function(){return C}),O.d(m,"toMsFromMpegTsClock",function(){return A}),O.d(m,"toMpegTsClockFromTimescale",function(){return g});var b=9e4;function y(e,f,a,l){a===void 0&&(a=1),l===void 0&&(l=!1);var n=e*f*a;return l?Math.round(n):n}function C(e,f,a,l){return a===void 0&&(a=1),l===void 0&&(l=!1),y(e,f,1/a,l)}function A(e,f){return f===void 0&&(f=!1),y(e,1e3,1/b,f)}function g(e,f){return f===void 0&&(f=1),y(e,b,1/f)}},"./src/utils/typed-array.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"sliceUint8",function(){return b});function b(y,C,A){return Uint8Array.prototype.slice?y.slice(C,A):new Uint8Array(Array.prototype.slice.call(y,C,A))}},"./src/utils/vttcue.ts":function(M,m,O){"use strict";O.r(m),m.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var b=["","lr","rl"],y=["start","middle","end","left","right"];function C(a,l){if(typeof l!="string")return!1;if(!Array.isArray(a))return!1;var n=l.toLowerCase();return~a.indexOf(n)?n:!1}function A(a){return C(b,a)}function g(a){return C(y,a)}function e(a){for(var l=arguments.length,n=new Array(l>1?l-1:0),i=1;i<l;i++)n[i-1]=arguments[i];for(var r=1;r<arguments.length;r++){var c=arguments[r];for(var h in c)a[h]=c[h]}return a}function f(a,l,n){var i=this,r={enumerable:!0};i.hasBeenReset=!1;var c="",h=!1,d=a,s=l,u=n,w=null,E="",_=!0,P="auto",R="start",x=50,S="middle",v=50,T="middle";Object.defineProperty(i,"id",e({},r,{get:function(){return c},set:function(I){c=""+I}})),Object.defineProperty(i,"pauseOnExit",e({},r,{get:function(){return h},set:function(I){h=!!I}})),Object.defineProperty(i,"startTime",e({},r,{get:function(){return d},set:function(I){if(typeof I!="number")throw new TypeError("Start time must be set to a number.");d=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"endTime",e({},r,{get:function(){return s},set:function(I){if(typeof I!="number")throw new TypeError("End time must be set to a number.");s=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",e({},r,{get:function(){return u},set:function(I){u=""+I,this.hasBeenReset=!0}})),Object.defineProperty(i,"region",e({},r,{get:function(){return w},set:function(I){w=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"vertical",e({},r,{get:function(){return E},set:function(I){var N=A(I);if(N===!1)throw new SyntaxError("An invalid or illegal string was specified.");E=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"snapToLines",e({},r,{get:function(){return _},set:function(I){_=!!I,this.hasBeenReset=!0}})),Object.defineProperty(i,"line",e({},r,{get:function(){return P},set:function(I){if(typeof I!="number"&&I!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");P=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"lineAlign",e({},r,{get:function(){return R},set:function(I){var N=g(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");R=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"position",e({},r,{get:function(){return x},set:function(I){if(I<0||I>100)throw new Error("Position must be between 0 and 100.");x=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",e({},r,{get:function(){return S},set:function(I){var N=g(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");S=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",e({},r,{get:function(){return v},set:function(I){if(I<0||I>100)throw new Error("Size must be between 0 and 100.");v=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",e({},r,{get:function(){return T},set:function(I){var N=g(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");T=N,this.hasBeenReset=!0}})),i.displayState=void 0}return f.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},f}()},"./src/utils/vttparser.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"parseTimeStamp",function(){return C}),O.d(m,"fixLineBreaks",function(){return l}),O.d(m,"VTTParser",function(){return n});var b=O("./src/utils/vttcue.ts"),y=function(){function i(){}var r=i.prototype;return r.decode=function(h,d){if(!h)return"";if(typeof h!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(h))},i}();function C(i){function r(h,d,s,u){return(h|0)*3600+(d|0)*60+(s|0)+parseFloat(u||0)}var c=i.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return c?parseFloat(c[2])>59?r(c[2],c[3],0,c[4]):r(c[1],c[2],c[3],c[4]):null}var A=function(){function i(){this.values=Object.create(null)}var r=i.prototype;return r.set=function(h,d){!this.get(h)&&d!==""&&(this.values[h]=d)},r.get=function(h,d,s){return s?this.has(h)?this.values[h]:d[s]:this.has(h)?this.values[h]:d},r.has=function(h){return h in this.values},r.alt=function(h,d,s){for(var u=0;u<s.length;++u)if(d===s[u]){this.set(h,d);break}},r.integer=function(h,d){/^-?\d+$/.test(d)&&this.set(h,parseInt(d,10))},r.percent=function(h,d){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(d)){var s=parseFloat(d);if(s>=0&&s<=100)return this.set(h,s),!0}return!1},i}();function g(i,r,c,h){var d=h?i.split(h):[i];for(var s in d){if(typeof d[s]!="string")continue;var u=d[s].split(c);if(u.length!==2)continue;var w=u[0],E=u[1];r(w,E)}}var e=new b.default(0,0,""),f=e.align==="middle"?"middle":"center";function a(i,r,c){var h=i;function d(){var w=C(i);if(w===null)throw new Error("Malformed timestamp: "+h);return i=i.replace(/^[^\sa-zA-Z-]+/,""),w}function s(w,E){var _=new A;g(w,function(x,S){var v;switch(x){case"region":for(var T=c.length-1;T>=0;T--)if(c[T].id===S){_.set(x,c[T].region);break}break;case"vertical":_.alt(x,S,["rl","lr"]);break;case"line":v=S.split(","),_.integer(x,v[0]),_.percent(x,v[0])&&_.set("snapToLines",!1),_.alt(x,v[0],["auto"]),v.length===2&&_.alt("lineAlign",v[1],["start",f,"end"]);break;case"position":v=S.split(","),_.percent(x,v[0]),v.length===2&&_.alt("positionAlign",v[1],["start",f,"end","line-left","line-right","auto"]);break;case"size":_.percent(x,S);break;case"align":_.alt(x,S,["start",f,"end","left","right"]);break}},/:/,/\s/),E.region=_.get("region",null),E.vertical=_.get("vertical","");var P=_.get("line","auto");P==="auto"&&e.line===-1&&(P=-1),E.line=P,E.lineAlign=_.get("lineAlign","start"),E.snapToLines=_.get("snapToLines",!0),E.size=_.get("size",100),E.align=_.get("align",f);var R=_.get("position","auto");R==="auto"&&e.position===50&&(R=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=R}function u(){i=i.replace(/^\s+/,"")}if(u(),r.startTime=d(),u(),i.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+h);i=i.substr(3),u(),r.endTime=d(),u(),s(i,r)}function l(i){return i.replace(/<br(?: \/)?>/gi,`
`)}var n=function(){function i(){this.state="INITIAL",this.buffer="",this.decoder=new y,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var r=i.prototype;return r.parse=function(h){var d=this;h&&(d.buffer+=d.decoder.decode(h,{stream:!0}));function s(){var R=d.buffer,x=0;for(R=l(R);x<R.length&&R[x]!=="\r"&&R[x]!==`
`;)++x;var S=R.substr(0,x);return R[x]==="\r"&&++x,R[x]===`
`&&++x,d.buffer=R.substr(x),S}function u(R){g(R,function(x,S){},/:/)}try{var w="";if(d.state==="INITIAL"){if(!/\r\n|\n/.test(d.buffer))return this;w=s();var E=w.match(/^()?WEBVTT([ \t].*)?$/);if(!E||!E[0])throw new Error("Malformed WebVTT signature.");d.state="HEADER"}for(var _=!1;d.buffer;){if(!/\r\n|\n/.test(d.buffer))return this;_?_=!1:w=s();switch(d.state){case"HEADER":/:/.test(w)?u(w):w||(d.state="ID");continue;case"NOTE":w||(d.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(w)){d.state="NOTE";break}if(!w)continue;if(d.cue=new b.default(0,0,""),d.state="CUE",w.indexOf("-->")===-1){d.cue.id=w;continue}case"CUE":if(!d.cue){d.state="BADCUE";continue}try{a(w,d.cue,d.regionList)}catch(R){d.cue=null,d.state="BADCUE";continue}d.state="CUETEXT";continue;case"CUETEXT":{var P=w.indexOf("-->")!==-1;if(!w||P&&(_=!0)){d.oncue&&d.cue&&d.oncue(d.cue),d.cue=null,d.state="ID";continue}if(d.cue===null)continue;d.cue.text&&(d.cue.text+=`
`),d.cue.text+=w}continue;case"BADCUE":w||(d.state="ID")}}}catch(R){d.state==="CUETEXT"&&d.cue&&d.oncue&&d.oncue(d.cue),d.cue=null,d.state=d.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},r.flush=function(){var h=this;try{if((h.cue||h.state==="HEADER")&&(h.buffer+=`
`,h.parse()),h.state==="INITIAL"||h.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(d){h.onparsingerror&&h.onparsingerror(d)}return h.onflush&&h.onflush(),this},i}()},"./src/utils/webvtt-parser.ts":function(M,m,O){"use strict";O.r(m),O.d(m,"generateCueId",function(){return n}),O.d(m,"parseWebVTT",function(){return r});var b=O("./src/polyfills/number.ts"),y=O("./src/utils/vttparser.ts"),C=O("./src/demux/id3.ts"),A=O("./src/utils/timescale-conversion.ts"),g=O("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,f=function(h,d,s){return s===void 0&&(s=0),h.substr(s,d.length)===d},a=function(h){var d=parseInt(h.substr(-3)),s=parseInt(h.substr(-6,2)),u=parseInt(h.substr(-9,2)),w=h.length>9?parseInt(h.substr(0,h.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(d)||!Object(b.isFiniteNumber)(s)||!Object(b.isFiniteNumber)(u)||!Object(b.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+h);return d+=1e3*s,d+=60*1e3*u,d+=60*60*1e3*w,d},l=function(h){for(var d=5381,s=h.length;s;)d=d*33^h.charCodeAt(--s);return(d>>>0).toString()};function n(c,h,d){return l(c.toString())+l(h.toString())+l(d)}var i=function(h,d,s){var u=h[d],w=h[u.prevCC];if(!w||!w.new&&u.new){h.ccOffset=h.presentationOffset=u.start,u.new=!1;return}for(;(E=w)!==null&&E!==void 0&&E.new;){var E;h.ccOffset+=u.start-w.start,u.new=!1,u=w,w=h[u.prevCC]}h.presentationOffset=s};function r(c,h,d,s,u,w,E,_){var P=new y.VTTParser,R=Object(C.utf8ArrayToStr)(new Uint8Array(c)).trim().replace(e,`
`).split(`
`),x=[],S=Object(A.toMpegTsClockFromTimescale)(h,d),v="00:00.000",T=0,U=0,I,N=!0,V=!1;P.oncue=function(H){var D=s[u],W=s.ccOffset,F=(T-S)/9e4;if(D!=null&&D.new&&(U!==void 0?W=s.ccOffset=D.start:i(s,u,F)),F&&(W=F-s.presentationOffset),V){var L=H.endTime-H.startTime,K=Object(g.normalizePts)((H.startTime+W-U)*9e4,w*9e4)/9e4;H.startTime=K,H.endTime=K+L}var ee=H.text.trim();H.text=decodeURIComponent(encodeURIComponent(ee)),H.id||(H.id=n(H.startTime,H.endTime,ee)),H.endTime>0&&x.push(H)},P.onparsingerror=function(H){I=H},P.onflush=function(){if(I){_(I);return}E(x)},R.forEach(function(H){if(N)if(f(H,"X-TIMESTAMP-MAP=")){N=!1,V=!0,H.substr(16).split(",").forEach(function(D){f(D,"LOCAL:")?v=D.substr(6):f(D,"MPEGTS:")&&(T=parseInt(D.substr(7)))});try{U=a(v)/1e3}catch(D){V=!1,I=D}return}else H===""&&(N=!1);P.parse(H+`
`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(M,m,O){"use strict";O.r(m);var b=O("./src/utils/logger.ts"),y=O("./src/loader/load-stats.ts"),C=/^age:\s*[\d.]+\s*$/m,A=function(){function g(f){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=f?f.xhrSetup:null,this.stats=new y.LoadStats,this.retryDelay=0}var e=g.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},e.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(a,l,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=l,this.callbacks=n,this.retryDelay=l.retryDelay,this.loadInternal()},e.loadInternal=function(){var a=this.config,l=this.context;if(!a)return;var n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0;var r=this.xhrSetup;try{if(r)try{r(n,l.url)}catch(d){n.open("GET",l.url,!0),r(n,l.url)}n.readyState||n.open("GET",l.url,!0);var c=this.context.headers;if(c)for(var h in c)n.setRequestHeader(h,c[h])}catch(d){this.callbacks.onError({code:n.status,text:d.message},l,n);return}l.rangeEnd&&n.setRequestHeader("Range","bytes="+l.rangeStart+"-"+(l.rangeEnd-1)),n.onreadystatechange=this.readystatechange.bind(this),n.onprogress=this.loadprogress.bind(this),n.responseType=l.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),n.send()},e.readystatechange=function(){var a=this.context,l=this.loader,n=this.stats;if(!a||!l)return;var i=l.readyState,r=this.config;if(n.aborted)return;if(i>=2)if(self.clearTimeout(this.requestTimeout),n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start)),i===4){l.onreadystatechange=null,l.onprogress=null;var c=l.status;if(c>=200&&c<300){n.loading.end=Math.max(self.performance.now(),n.loading.first);var h,d;if(a.responseType==="arraybuffer"?(h=l.response,d=h.byteLength):(h=l.responseText,d=h.length),n.loaded=n.total=d,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(n,a,h,l),!this.callbacks)return;var u={url:l.responseURL,data:h};this.callbacks.onSuccess(u,n,a,l)}else n.retry>=r.maxRetry||c>=400&&c<499?(b.logger.error(c+" while loading "+a.url),this.callbacks.onError({code:c,text:l.statusText},a,l)):(b.logger.warn(c+" while loading "+a.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,r.maxRetryDelay),n.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout)},e.loadtimeout=function(){b.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(a){var l=this.stats;l.loaded=a.loaded,a.lengthComputable&&(l.total=a.total)},e.getCacheAge=function(){var a=null;if(this.loader&&C.test(this.loader.getAllResponseHeaders())){var l=this.loader.getResponseHeader("age");a=l?parseFloat(l):null}return a},g}();m.default=A}}).default})},vHTk:function(k,z,o){k.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(k,z,o){k.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},w7YG:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.StreamCipher,y=m.algo,C=y.RC4=b.extend({_doReset:function(){for(var e=this._key,f=e.words,a=e.sigBytes,l=this._S=[],n=0;n<256;n++)l[n]=n;for(var n=0,i=0;n<256;n++){var r=n%a,c=f[r>>>2]>>>24-r%4*8&255;i=(i+l[n]+c)%256;var h=l[n];l[n]=l[i],l[i]=h}this._i=this._j=0},_doProcessBlock:function(e,f){e[f]^=A.call(this)},keySize:256/32,ivSize:0});function A(){for(var e=this._S,f=this._i,a=this._j,l=0,n=0;n<4;n++){f=(f+1)%256,a=(a+e[f])%256;var i=e[f];e[f]=e[a],e[a]=i,l|=e[(e[f]+e[a])%256]<<24-n*8}return this._i=f,this._j=a,l}m.RC4=b._createHelper(C);var g=y.RC4Drop=C.extend({cfg:C.cfg.extend({drop:192}),_doReset:function(){C._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)A.call(this)}});m.RC4Drop=b._createHelper(g)}(),M.RC4})},wCXF:function(k,z,o){"use strict";o.d(z,"a",function(){return lt});var M=o("rePB"),m=o("VTBJ"),O=o("KQm4"),b=o("U8pU"),y=o("ODXe"),C=o("q1tI"),A=o("TSYQ"),g=o.n(A),e=o("Gytx"),f=o.n(e),a=o("Kwbf"),l=o("t23M"),n=o("qx4F"),i=o("6eGT"),r=o("IBYe"),c=o("Ff2n"),h=o("c+Xe"),d=o("fyJ8"),s=o("biw7");function u(Ye,je,ht,Bt,Et){var Pt=ht[Ye]||{},Ze=ht[je]||{},We,Je;Pt.fixed==="left"?We=Bt.left[Ye]:Ze.fixed==="right"&&(Je=Bt.right[je]);var Ae=!1,Ue=!1,He=!1,Fe=!1,et=ht[je+1],mt=ht[Ye-1];if(Et==="rtl"){if(We!==void 0){var Lt=mt&&mt.fixed==="left";Fe=!Lt}else if(Je!==void 0){var Xt=et&&et.fixed==="right";He=!Xt}}else if(We!==void 0){var rn=et&&et.fixed==="left";Ae=!rn}else if(Je!==void 0){var wt=mt&&mt.fixed==="right";Ue=!wt}return{fixLeft:We,fixRight:Je,lastFixLeft:Ae,firstFixRight:Ue,lastFixRight:He,firstFixLeft:Fe,isSticky:Bt.isSticky}}var w=o("sR1s");function E(Ye){var je=Ye.cells,ht=Ye.stickyOffsets,Bt=Ye.flattenColumns,Et=Ye.rowComponent,Pt=Ye.cellComponent,Ze=Ye.onHeaderRow,We=Ye.index,Je=C.useContext(s.a),Ae=Je.prefixCls,Ue=Je.direction,He;Ze&&(He=Ze(je.map(function(et){return et.column}),We));var Fe=Object(w.a)(je.map(function(et){return et.column}));return C.createElement(Et,Object.assign({},He),je.map(function(et,mt){var Lt=et.column,Xt=u(et.colStart,et.colEnd,Bt,ht,Ue),rn;return Lt&&Lt.onHeaderCell&&(rn=et.column.onHeaderCell(Lt)),C.createElement(d.a,Object.assign({},et,{ellipsis:Lt.ellipsis,align:Lt.align,component:Pt,prefixCls:Ae,key:Fe[mt]},Xt,{additionalProps:rn,rowType:"header"}))}))}E.displayName="HeaderRow";var _=E;function P(Ye){var je=[];function ht(Ze,We){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;je[Je]=je[Je]||[];var Ae=We,Ue=Ze.filter(Boolean).map(function(He){var Fe={key:He.key,className:He.className||"",children:He.title,column:He,colStart:Ae},et=1,mt=He.children;return mt&&mt.length>0&&(et=ht(mt,Ae,Je+1).reduce(function(Lt,Xt){return Lt+Xt},0),Fe.hasSubColumns=!0),"colSpan"in He&&(et=He.colSpan),"rowSpan"in He&&(Fe.rowSpan=He.rowSpan),Fe.colSpan=et,Fe.colEnd=Fe.colStart+et-1,je[Je].push(Fe),Ae+=et,et});return Ue}ht(Ye,0);for(var Bt=je.length,Et=function(We){je[We].forEach(function(Je){!("rowSpan"in Je)&&!Je.hasSubColumns&&(Je.rowSpan=Bt-We)})},Pt=0;Pt<Bt;Pt+=1)Et(Pt);return je}function R(Ye){var je=Ye.stickyOffsets,ht=Ye.columns,Bt=Ye.flattenColumns,Et=Ye.onHeaderRow,Pt=C.useContext(s.a),Ze=Pt.prefixCls,We=Pt.getComponent,Je=C.useMemo(function(){return P(ht)},[ht]),Ae=We(["header","wrapper"],"thead"),Ue=We(["header","row"],"tr"),He=We(["header","cell"],"th");return C.createElement(Ae,{className:"".concat(Ze,"-thead")},Je.map(function(Fe,et){var mt=C.createElement(_,{key:et,flattenColumns:Bt,cells:Fe,stickyOffsets:je,rowComponent:Ue,cellComponent:He,onHeaderRow:Et,index:et});return mt}))}var x=R,S=o("hW8S");function v(Ye){for(var je=Ye.colWidths,ht=Ye.columns,Bt=Ye.columCount,Et=[],Pt=Bt||ht.length,Ze=!1,We=Pt-1;We>=0;We-=1){var Je=je[We],Ae=ht&&ht[We],Ue=Ae&&Ae[S.a];(Je||Ue||Ze)&&(Et.unshift(C.createElement("col",Object.assign({key:We,style:{width:Je,minWidth:Je}},Ue))),Ze=!0)}return C.createElement("colgroup",null,Et)}var T=v;function U(Ye,je){return Object(C.useMemo)(function(){for(var ht=[],Bt=0;Bt<je;Bt+=1){var Et=Ye[Bt];if(Et!==void 0)ht[Bt]=Et;else return null}return ht},[Ye.join("_"),je])}var I=C.forwardRef(function(Ye,je){var ht=Ye.noData,Bt=Ye.columns,Et=Ye.flattenColumns,Pt=Ye.colWidths,Ze=Ye.columCount,We=Ye.stickyOffsets,Je=Ye.direction,Ae=Ye.fixHeader,Ue=Ye.offsetHeader,He=Ye.stickyClassName,Fe=Ye.onScroll,et=Object(c.a)(Ye,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),mt=C.useContext(s.a),Lt=mt.prefixCls,Xt=mt.scrollbarSize,rn=mt.isSticky,wt=rn&&!Ae?0:Xt,bt=C.useRef(null),ke=C.useCallback(function(xt){Object(h.b)(je,xt),Object(h.b)(bt,xt)},[]);C.useEffect(function(){var xt;function Mt(ct){var Ut=ct.currentTarget,Ft=ct.deltaX;Ft&&(Fe({currentTarget:Ut,scrollLeft:Ut.scrollLeft+Ft}),ct.preventDefault())}return(xt=bt.current)===null||xt===void 0||xt.addEventListener("wheel",Mt),function(){var ct;(ct=bt.current)===null||ct===void 0||ct.removeEventListener("wheel",Mt)}},[]);var nt=Et[Et.length-1],rt={fixed:nt?nt.fixed:null,onHeaderCell:function(){return{className:"".concat(Lt,"-cell-scrollbar")}}},De=Object(C.useMemo)(function(){return wt?[].concat(Object(O.a)(Bt),[rt]):Bt},[wt,Bt]),Ke=Object(C.useMemo)(function(){return wt?[].concat(Object(O.a)(Et),[rt]):Et},[wt,Et]),Ct=Object(C.useMemo)(function(){var xt=We.right,Mt=We.left;return Object(m.a)(Object(m.a)({},We),{},{left:Je==="rtl"?[].concat(Object(O.a)(Mt.map(function(ct){return ct+wt})),[0]):Mt,right:Je==="rtl"?xt:[].concat(Object(O.a)(xt.map(function(ct){return ct+wt})),[0]),isSticky:rn})},[wt,We,rn]),ft=U(Pt,Ze);return C.createElement("div",{style:Object(m.a)({overflow:"hidden"},rn?{top:Ue}:{}),ref:ke,className:g()("".concat(Lt,"-header"),Object(M.a)({},He,!!He))},C.createElement("table",{style:{tableLayout:"fixed",visibility:ht||ft?null:"hidden"}},C.createElement(T,{colWidths:ft?[].concat(Object(O.a)(ft),[wt]):[],columCount:Ze+1,columns:Ke}),C.createElement(x,Object.assign({},et,{stickyOffsets:Ct,columns:De,flattenColumns:Ke}))))});I.displayName="FixedHeader";var N=I,V=C.createContext(null),H=V;function D(Ye){var je=Ye.prefixCls,ht=Ye.children,Bt=Ye.component,Et=Ye.cellComponent,Pt=Ye.fixHeader,Ze=Ye.fixColumn,We=Ye.horizonScroll,Je=Ye.className,Ae=Ye.expanded,Ue=Ye.componentWidth,He=Ye.colSpan,Fe=C.useContext(s.a),et=Fe.scrollbarSize;return C.useMemo(function(){var mt=ht;return Ze&&(mt=C.createElement("div",{style:{width:Ue-(Pt?et:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(je,"-expanded-row-fixed")},mt)),C.createElement(Bt,{className:Je,style:{display:Ae?null:"none"}},C.createElement(d.a,{component:Et,prefixCls:je,colSpan:He},mt))},[ht,Bt,Pt,We,Je,Ae,Ue,He,et])}var W=D;function F(Ye){var je=Ye.className,ht=Ye.style,Bt=Ye.record,Et=Ye.index,Pt=Ye.rowKey,Ze=Ye.getRowKey,We=Ye.rowExpandable,Je=Ye.expandedKeys,Ae=Ye.onRow,Ue=Ye.indent,He=Ue===void 0?0:Ue,Fe=Ye.rowComponent,et=Ye.cellComponent,mt=Ye.childrenColumnName,Lt=C.useContext(s.a),Xt=Lt.prefixCls,rn=Lt.fixedInfoList,wt=C.useContext(H),bt=wt.fixHeader,ke=wt.fixColumn,nt=wt.horizonScroll,rt=wt.componentWidth,De=wt.flattenColumns,Ke=wt.expandableType,Ct=wt.expandRowByClick,ft=wt.onTriggerExpand,xt=wt.rowClassName,Mt=wt.expandedRowClassName,ct=wt.indentSize,Ut=wt.expandIcon,Ft=wt.expandedRowRender,on=wt.expandIconColumnIndex,cn=C.useState(!1),ln=Object(y.a)(cn,2),kn=ln[0],In=ln[1],sn=Je&&Je.has(Ye.recordKey);C.useEffect(function(){sn&&In(!0)},[sn]);var Gn=Ke==="row"&&(!We||We(Bt)),Nn=Ke==="nest",Vn=mt&&Bt&&Bt[mt],Zn=Gn||Nn,xr;Ae&&(xr=Ae(Bt,Et));var dr=function(X){if(Ct&&Zn&&ft(Bt,X),xr&&xr.onClick){for(var q,oe=arguments.length,Re=new Array(oe>1?oe-1:0),de=1;de<oe;de++)Re[de-1]=arguments[de];(q=xr).onClick.apply(q,[X].concat(Re))}},un;typeof xt=="string"?un=xt:typeof xt=="function"&&(un=xt(Bt,Et,He));var $t=Object(w.a)(De),An=C.createElement(Fe,Object.assign({},xr,{"data-row-key":Pt,className:g()(je,"".concat(Xt,"-row"),"".concat(Xt,"-row-level-").concat(He),un,xr&&xr.className),style:Object(m.a)(Object(m.a)({},ht),xr?xr.style:null),onClick:dr}),De.map(function(pe,X){var q=pe.render,oe=pe.dataIndex,Re=pe.className,de=$t[X],ot=rn[X],Qt;X===(on||0)&&Nn&&(Qt=C.createElement(C.Fragment,null,C.createElement("span",{style:{paddingLeft:"".concat(ct*He,"px")},className:"".concat(Xt,"-row-indent indent-level-").concat(He)}),Ut({prefixCls:Xt,expanded:sn,expandable:Vn,record:Bt,onExpand:ft})));var Ln;return pe.onCell&&(Ln=pe.onCell(Bt,Et)),C.createElement(d.a,Object.assign({className:Re,ellipsis:pe.ellipsis,align:pe.align,component:et,prefixCls:Xt,key:de,record:Bt,index:Et,dataIndex:oe,render:q,shouldCellUpdate:pe.shouldCellUpdate},ot,{appendNode:Qt,additionalProps:Ln}))})),Ur;if(Gn&&(kn||sn)){var Ar=Ft(Bt,Et,He+1,sn),Cr=Mt&&Mt(Bt,Et,He);Ur=C.createElement(W,{expanded:sn,className:g()("".concat(Xt,"-expanded-row"),"".concat(Xt,"-expanded-row-level-").concat(He+1),Cr),prefixCls:Xt,fixHeader:bt,fixColumn:ke,horizonScroll:nt,component:Fe,componentWidth:rt,cellComponent:et,colSpan:De.length},Ar)}var gr;return Vn&&sn&&(gr=(Bt[mt]||[]).map(function(pe,X){var q=Ze(pe,X);return C.createElement(F,Object.assign({},Ye,{key:q,rowKey:q,record:pe,recordKey:q,index:X,indent:He+1}))})),C.createElement(C.Fragment,null,An,Ur,gr)}F.displayName="BodyRow";var L=F,K=C.createContext(null),ee=K;function he(Ye){var je=Ye.columnKey,ht=Ye.onColumnResize,Bt=C.useRef();return C.useEffect(function(){Bt.current&&ht(je,Bt.current.offsetWidth)},[]),C.createElement(l.a,{onResize:function(Pt){var Ze=Pt.offsetWidth;ht(je,Ze)}},C.createElement("td",{ref:Bt,style:{padding:0,border:0,height:0}},C.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function fe(Ye){var je=Ye.data,ht=Ye.getRowKey,Bt=Ye.measureColumnWidth,Et=Ye.expandedKeys,Pt=Ye.onRow,Ze=Ye.rowExpandable,We=Ye.emptyNode,Je=Ye.childrenColumnName,Ae=C.useContext(ee),Ue=Ae.onColumnResize,He=C.useContext(s.a),Fe=He.prefixCls,et=He.getComponent,mt=C.useContext(H),Lt=mt.fixHeader,Xt=mt.horizonScroll,rn=mt.flattenColumns,wt=mt.componentWidth;return C.useMemo(function(){var bt=et(["body","wrapper"],"tbody"),ke=et(["body","row"],"tr"),nt=et(["body","cell"],"td"),rt;je.length?rt=je.map(function(Ke,Ct){var ft=ht(Ke,Ct);return C.createElement(L,{key:ft,rowKey:ft,record:Ke,recordKey:ft,index:Ct,rowComponent:ke,cellComponent:nt,expandedKeys:Et,onRow:Pt,getRowKey:ht,rowExpandable:Ze,childrenColumnName:Je})}):rt=C.createElement(W,{expanded:!0,className:"".concat(Fe,"-placeholder"),prefixCls:Fe,fixHeader:Lt,fixColumn:Xt,horizonScroll:Xt,component:ke,componentWidth:wt,cellComponent:nt,colSpan:rn.length},We);var De=Object(w.a)(rn);return C.createElement(bt,{className:"".concat(Fe,"-tbody")},Bt&&C.createElement("tr",{"aria-hidden":"true",className:"".concat(Fe,"-measure-row"),style:{height:0}},De.map(function(Ke){return C.createElement(he,{key:Ke,columnKey:Ke,onColumnResize:Ue})})),rt)},[je,Fe,Pt,Bt,Et,ht,et,wt,We,rn])}var Ce=C.memo(fe);Ce.displayName="Body";var Te=Ce,ce=o("wRmb"),ye=o("xEkU"),Ee=o.n(ye);function ue(Ye){var je=Object(C.useRef)(Ye),ht=Object(C.useState)({}),Bt=Object(y.a)(ht,2),Et=Bt[1],Pt=Object(C.useRef)(null),Ze=Object(C.useRef)([]);function We(Je){Pt.current===null&&(Ze.current=[],Pt.current=Ee()(function(){Ze.current.forEach(function(Ae){je.current=Ae(je.current)}),Pt.current=null,Et({})})),Ze.current.push(Je)}return Object(C.useEffect)(function(){return function(){Ee.a.cancel(Pt.current)}},[]),[je.current,We]}function se(Ye){var je=Object(C.useRef)(Ye),ht=Object(C.useRef)(null);function Bt(){window.clearTimeout(ht.current)}function Et(Ze){je.current=Ze,Bt(),ht.current=window.setTimeout(function(){je.current=null,ht.current=null},100)}function Pt(){return je.current}return Object(C.useEffect)(function(){return Bt},[]),[Et,Pt]}function $(Ye,je,ht){var Bt=Object(C.useMemo)(function(){for(var Et=[],Pt=[],Ze=0,We=0,Je=0;Je<je;Je+=1)if(ht==="rtl"){Pt[Je]=We,We+=Ye[Je]||0;var Ae=je-Je-1;Et[Ae]=Ze,Ze+=Ye[Ae]||0}else{Et[Je]=Ze,Ze+=Ye[Je]||0;var Ue=je-Je-1;Pt[Ue]=We,We+=Ye[Ue]||0}return{left:Et,right:Pt}},[Ye,je,ht]);return Bt}var me=$;function re(Ye){var je=Ye.className,ht=Ye.children;return C.createElement("div",{className:je},ht)}var ae=re,we=o("n6Qo");function le(Ye){var je,ht=Ye.prefixCls,Bt=Ye.record,Et=Ye.onExpand,Pt=Ye.expanded,Ze=Ye.expandable,We="".concat(ht,"-row-expand-icon");if(!Ze)return C.createElement("span",{className:g()(We,"".concat(ht,"-row-spaced"))});var Je=function(Ue){Et(Bt,Ue),Ue.stopPropagation()};return C.createElement("span",{className:g()(We,(je={},Object(M.a)(je,"".concat(ht,"-row-expanded"),Pt),Object(M.a)(je,"".concat(ht,"-row-collapsed"),!Pt),je)),onClick:Je})}function te(Ye,je,ht){var Bt=[];function Et(Pt){(Pt||[]).forEach(function(Ze,We){Bt.push(je(Ze,We)),Et(Ze[ht])})}return Et(Ye),Bt}var Q=o("zT1h"),J=o("y0+3"),ve=function(je,ht){var Bt,Et,Pt=je.scrollBodyRef,Ze=je.onScroll,We=je.offsetScroll,Je=C.useContext(s.a),Ae=Je.prefixCls,Ue=((Bt=Pt.current)===null||Bt===void 0?void 0:Bt.scrollWidth)||0,He=((Et=Pt.current)===null||Et===void 0?void 0:Et.clientWidth)||0,Fe=Ue&&He*(He/Ue),et=C.useRef(),mt=ue({scrollLeft:0,isHiddenScrollBar:!1}),Lt=Object(y.a)(mt,2),Xt=Lt[0],rn=Lt[1],wt=C.useRef({delta:0,x:0}),bt=C.useState(!1),ke=Object(y.a)(bt,2),nt=ke[0],rt=ke[1],De=function(){rt(!1)},Ke=function(ct){ct.persist(),wt.current.delta=ct.pageX-Xt.scrollLeft,wt.current.x=0,rt(!0),ct.preventDefault()},Ct=function(ct){var Ut,Ft=ct||((Ut=window)===null||Ut===void 0?void 0:Ut.event),on=Ft.buttons;if(!nt||on===0){nt&&rt(!1);return}var cn=wt.current.x+ct.pageX-wt.current.x-wt.current.delta;cn<=0&&(cn=0),cn+Fe>=He&&(cn=He-Fe),Ze({scrollLeft:cn/He*(Ue+2)}),wt.current.x=ct.pageX},ft=function(){var ct=Object(J.b)(Pt.current).top,Ut=ct+Pt.current.offsetHeight,Ft=document.documentElement.scrollTop+window.innerHeight;Ut-Object(n.a)()<=Ft||ct>=Ft-We?rn(function(on){return Object(m.a)(Object(m.a)({},on),{},{isHiddenScrollBar:!0})}):rn(function(on){return Object(m.a)(Object(m.a)({},on),{},{isHiddenScrollBar:!1})})},xt=function(ct){rn(function(Ut){return Object(m.a)(Object(m.a)({},Ut),{},{scrollLeft:ct/Ue*He||0})})};return C.useImperativeHandle(ht,function(){return{setScrollLeft:xt}}),C.useEffect(function(){var Mt=Object(Q.a)(document.body,"mouseup",De,!1),ct=Object(Q.a)(document.body,"mousemove",Ct,!1);return ft(),function(){Mt.remove(),ct.remove()}},[Fe,nt]),C.useEffect(function(){var Mt=Object(Q.a)(window,"scroll",ft,!1),ct=Object(Q.a)(window,"resize",ft,!1);return function(){Mt.remove(),ct.remove()}},[]),C.useEffect(function(){Xt.isHiddenScrollBar||rn(function(Mt){var ct,Ut;return Object(m.a)(Object(m.a)({},Mt),{},{scrollLeft:Pt.current.scrollLeft/((ct=Pt.current)===null||ct===void 0?void 0:ct.scrollWidth)*((Ut=Pt.current)===null||Ut===void 0?void 0:Ut.clientWidth)})})},[Xt.isHiddenScrollBar]),Ue<=He||!Fe||Xt.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(n.a)(),width:He,bottom:We},className:"".concat(Ae,"-sticky-scroll")},C.createElement("div",{onMouseDown:Ke,ref:et,className:g()("".concat(Ae,"-sticky-scroll-bar"),Object(M.a)({},"".concat(Ae,"-sticky-scroll-bar-active"),nt)),style:{width:"".concat(Fe,"px"),transform:"translate3d(".concat(Xt.scrollLeft,"px, 0, 0)")}}))},_e=C.forwardRef(ve);function Oe(Ye,je){return C.useMemo(function(){var ht=!!Ye;return{isSticky:ht,stickyClassName:ht?"".concat(je,"-sticky-header"):"",offsetHeader:Object(b.a)(Ye)==="object"&&Ye.offsetHeader||0,offsetScroll:Object(b.a)(Ye)==="object"&&Ye.offsetScroll||0}},[Ye,je])}var Xe=[],tt={},lt="rc-table-internal-hook",dt=C.memo(function(Ye){var je=Ye.children;return je},function(Ye,je){return f()(Ye.props,je.props)?Ye.pingLeft!==je.pingLeft||Ye.pingRight!==je.pingRight:!1});function vt(Ye){var je,ht=Ye.prefixCls,Bt=Ye.className,Et=Ye.rowClassName,Pt=Ye.style,Ze=Ye.data,We=Ye.rowKey,Je=Ye.scroll,Ae=Ye.tableLayout,Ue=Ye.direction,He=Ye.title,Fe=Ye.footer,et=Ye.summary,mt=Ye.id,Lt=Ye.showHeader,Xt=Ye.components,rn=Ye.emptyText,wt=Ye.onRow,bt=Ye.onHeaderRow,ke=Ye.internalHooks,nt=Ye.transformColumns,rt=Ye.internalRefs,De=Ye.sticky,Ke=Ze||Xe,Ct=!!Ke.length,ft=C.useState(0),xt=Object(y.a)(ft,2),Mt=xt[0],ct=xt[1];C.useEffect(function(){ct(Object(n.a)())});var Ut=C.useMemo(function(){return Object(w.c)(Xt,{})},[Xt]),Ft=C.useCallback(function(Kt,qt){return Object(w.b)(Ut,Kt)||qt},[Ut]),on=C.useMemo(function(){return typeof We=="function"?We:function(Kt){var qt=Kt&&Kt[We];return qt}},[We]),cn=Object(S.c)(Ye),ln=cn.expandIcon,kn=cn.expandedRowKeys,In=cn.defaultExpandedRowKeys,sn=cn.defaultExpandAllRows,Gn=cn.expandedRowRender,Nn=cn.onExpand,Vn=cn.onExpandedRowsChange,Zn=cn.expandRowByClick,xr=cn.rowExpandable,dr=cn.expandIconColumnIndex,un=cn.expandedRowClassName,$t=cn.childrenColumnName,An=cn.indentSize,Ur=ln||le,Ar=$t||"children",Cr=C.useMemo(function(){return Gn?"row":Ye.expandable&&ke===lt&&Ye.expandable.__PARENT_RENDER_ICON__||Ke.some(function(Kt){return Kt&&Object(b.a)(Kt)==="object"&&Kt[Ar]})?"nest":!1},[!!Gn,Ke]),gr=C.useState(function(){return In||(sn?te(Ke,on,Ar):[])}),pe=Object(y.a)(gr,2),X=pe[0],q=pe[1],oe=C.useMemo(function(){return new Set(kn||X||[])},[kn,X]),Re=C.useCallback(function(Kt){var qt=on(Kt,Ke.indexOf(Kt)),Jt,Qn=oe.has(qt);Qn?(oe.delete(qt),Jt=Object(O.a)(oe)):Jt=[].concat(Object(O.a)(oe),[qt]),q(Jt),Nn&&Nn(!Qn,Kt),Vn&&Vn(Jt)},[on,oe,Ke,Nn,Vn]),de=C.useState(0),ot=Object(y.a)(de,2),Qt=ot[0],Ln=ot[1],Jn=Object(ce.b)(Object(m.a)(Object(m.a)(Object(m.a)({},Ye),cn),{},{expandable:!!Gn,expandedKeys:oe,getRowKey:on,onTriggerExpand:Re,expandIcon:Ur,expandIconColumnIndex:dr,direction:Ue}),ke===lt?nt:null),Zt=Object(y.a)(Jn,2),En=Zt[0],fn=Zt[1],Br=C.useMemo(function(){return{columns:En,flattenColumns:fn}},[En,fn]),ra=C.useRef(),oa=C.useRef(),rr=C.useRef(),Ba=C.useState(!1),Ea=Object(y.a)(Ba,2),ca=Ea[0],Ka=Ea[1],Ta=C.useState(!1),Ja=Object(y.a)(Ta,2),Ua=Ja[0],li=Ja[1],oi=ue(new Map),fa=Object(y.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(w.a)(fn),st=xe.map(function(Kt){return ma.get(Kt)}),Rt=C.useMemo(function(){return st},[st.join("_")]),Ot=me(Rt,fn.length,Ue),Ht=Je&&Object(w.d)(Je.y),Nt=Je&&Object(w.d)(Je.x),Vt=Nt&&fn.some(function(Kt){var qt=Kt.fixed;return qt}),nn=C.useRef(),xn=Oe(De,ht),_n=xn.isSticky,Bn=xn.offsetHeader,Dn=xn.offsetScroll,an=xn.stickyClassName,Mn,yn,Fn;Ht&&(yn={overflowY:"scroll",maxHeight:Je.y}),Nt&&(Mn={overflowX:"auto"},Ht||(yn={overflowY:"hidden"}),Fn={width:Je.x===!0?"auto":Je.x,minWidth:"100%"});var Pn=C.useCallback(function(Kt,qt){la(function(Jt){var Qn=new Map(Jt);return Qn.set(Kt,qt),Qn})},[]),qn=se(null),pr=Object(y.a)(qn,2),Fr=pr[0],wn=pr[1];function Yt(Kt,qt){if(!qt)return;typeof qt=="function"?qt(Kt):qt.scrollLeft!==Kt&&(qt.scrollLeft=Kt)}var mn=function(qt){var Jt=qt.currentTarget,Qn=qt.scrollLeft,nr=typeof Qn=="number"?Qn:Jt.scrollLeft,jn=Jt||tt;if(!wn()||wn()===jn){var or;Fr(jn),Yt(nr,oa.current),Yt(nr,rr.current),Yt(nr,(or=nn.current)===null||or===void 0?void 0:or.setScrollLeft)}if(Jt){var fr=Jt.scrollWidth,lr=Jt.clientWidth;Ka(nr>0),li(nr<fr-lr)}},Rn=function(){rr.current&&mn({currentTarget:rr.current})},en=function(qt){var Jt=qt.width;Rn(),Ln(ra.current?ra.current.offsetWidth:Jt)};C.useEffect(function(){return Rn},[]),C.useEffect(function(){Nt&&Rn()},[Nt]),C.useEffect(function(){ke===lt&&rt&&(rt.body.current=rr.current)});var Tn=Ft(["table"],"table"),bn=C.useMemo(function(){return Ae||(Vt?Je.x==="max-content"?"auto":"fixed":Ht||fn.some(function(Kt){var qt=Kt.ellipsis;return qt})?"fixed":"auto")},[Ht,Vt,fn,Ae]),Un,Wn={colWidths:Rt,columCount:fn.length,stickyOffsets:Ot,onHeaderRow:bt,fixHeader:Ht},sr=C.useMemo(function(){return Ct?null:typeof rn=="function"?rn():rn},[Ct,rn]),tr=C.createElement(Te,{data:Ke,measureColumnWidth:Ht||Nt||_n,expandedKeys:oe,rowExpandable:xr,getRowKey:on,onRow:wt,emptyNode:sr,childrenColumnName:Ar}),Rr=C.createElement(T,{colWidths:fn.map(function(Kt){var qt=Kt.width;return qt}),columns:fn}),Ir=et&&C.createElement(we.b,null,et(Ke)),$n=Ft(["body"]);if(Ht||_n){var Dr;typeof $n=="function"?(Dr=$n(Ke,{scrollbarSize:Mt,ref:rr,onScroll:mn}),Wn.colWidths=fn.map(function(Kt,qt){var Jt=Kt.width,Qn=qt===En.length-1?Jt-Mt:Jt;return typeof Qn=="number"&&!Number.isNaN(Qn)?Qn:(Object(a.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Dr=C.createElement("div",{style:Object(m.a)(Object(m.a)({},Mn),yn),onScroll:mn,ref:rr,className:g()("".concat(ht,"-body"))},C.createElement(Tn,{style:Object(m.a)(Object(m.a)({},Fn),{},{tableLayout:bn})},Rr,tr,Ir),_n&&C.createElement(_e,{ref:nn,offsetScroll:Dn,scrollBodyRef:rr,onScroll:mn})),Un=C.createElement(C.Fragment,null,Lt!==!1&&C.createElement(N,Object.assign({noData:!Ke.length},Wn,Br,{direction:Ue,offsetHeader:Bn,stickyClassName:an,ref:oa,onScroll:mn})),Dr)}else Un=C.createElement("div",{style:Object(m.a)(Object(m.a)({},Mn),yn),className:g()("".concat(ht,"-content")),onScroll:mn,ref:rr},C.createElement(Tn,{style:Object(m.a)(Object(m.a)({},Fn),{},{tableLayout:bn})},Rr,Lt!==!1&&C.createElement(x,Object.assign({},Wn,Br)),tr,Ir));var vr=Object(S.b)(Ye),zr=C.createElement("div",Object.assign({className:g()(ht,Bt,(je={},Object(M.a)(je,"".concat(ht,"-rtl"),Ue==="rtl"),Object(M.a)(je,"".concat(ht,"-ping-left"),ca),Object(M.a)(je,"".concat(ht,"-ping-right"),Ua),Object(M.a)(je,"".concat(ht,"-layout-fixed"),Ae==="fixed"),Object(M.a)(je,"".concat(ht,"-fixed-header"),Ht),Object(M.a)(je,"".concat(ht,"-fixed-column"),Vt),Object(M.a)(je,"".concat(ht,"-scroll-horizontal"),Nt),Object(M.a)(je,"".concat(ht,"-has-fix-left"),fn[0]&&fn[0].fixed),Object(M.a)(je,"".concat(ht,"-has-fix-right"),fn[fn.length-1]&&fn[fn.length-1].fixed==="right"),je)),style:Pt,id:mt,ref:ra},vr),C.createElement(dt,{pingLeft:ca,pingRight:Ua,props:Object(m.a)(Object(m.a)({},Ye),{},{stickyOffsets:Ot,mergedExpandedKeys:oe})},He&&C.createElement(ae,{className:"".concat(ht,"-title")},He(Ke)),C.createElement("div",{className:"".concat(ht,"-container")},Un),Fe&&C.createElement(ae,{className:"".concat(ht,"-footer")},Fe(Ke))));Nt&&(zr=C.createElement(l.a,{onResize:en},zr));var Lr=C.useMemo(function(){return{prefixCls:ht,getComponent:Ft,scrollbarSize:Mt,direction:Ue,fixedInfoList:fn.map(function(Kt,qt){return u(qt,qt,fn,Ot,Ue)}),isSticky:_n}},[ht,Ft,Mt,Ue,fn,Ot,Ue,_n]),$r=C.useMemo(function(){return Object(m.a)(Object(m.a)({},Br),{},{tableLayout:bn,rowClassName:Et,expandedRowClassName:un,componentWidth:Qt,fixHeader:Ht,fixColumn:Vt,horizonScroll:Nt,expandIcon:Ur,expandableType:Cr,expandRowByClick:Zn,expandedRowRender:Gn,onTriggerExpand:Re,expandIconColumnIndex:dr,indentSize:An})},[Br,bn,Et,un,Qt,Ht,Vt,Nt,Ur,Cr,Zn,Gn,Re,dr,An]),ir=C.useMemo(function(){return{onColumnResize:Pn}},[Pn]);return C.createElement(s.a.Provider,{value:Lr},C.createElement(H.Provider,{value:$r},C.createElement(ee.Provider,{value:ir},zr)))}vt.Column=r.a,vt.ColumnGroup=i.a,vt.Summary=we.a,vt.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var _t=z.b=vt},wRmb:function(k,z,o){"use strict";o.d(z,"a",function(){return f});var M=o("rePB"),m=o("KQm4"),O=o("VTBJ"),b=o("Ff2n"),y=o("q1tI"),C=o.n(y),A=o("Kwbf"),g=o("Zm9Q"),e=o("hW8S");function f(r){return Object(g.a)(r).filter(function(c){return y.isValidElement(c)}).map(function(c){var h=c.key,d=c.props,s=d.children,u=Object(b.a)(d,["children"]),w=Object(O.a)({key:h},u);return s&&(w.children=f(s)),w})}function a(r){return r.reduce(function(c,h){var d=h.fixed,s=d===!0?"left":d,u=h.children;return u&&u.length>0?[].concat(Object(m.a)(c),Object(m.a)(a(u).map(function(w){return Object(O.a)({fixed:s},w)}))):[].concat(Object(m.a)(c),[Object(O.a)(Object(O.a)({},h),{},{fixed:s})])},[])}function l(r){for(var c=!0,h=0;h<r.length;h+=1){var d=r[h];if(c&&d.fixed!=="left")c=!1;else if(!c&&d.fixed==="left"){Object(A.a)(!1,"Index ".concat(h-1," of `columns` missing `fixed='left'` prop."));break}}for(var s=!0,u=r.length-1;u>=0;u-=1){var w=r[u];if(s&&w.fixed!=="right")s=!1;else if(!s&&w.fixed==="right"){Object(A.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function n(r){return r.map(function(c){var h=c.fixed,d=Object(b.a)(c,["fixed"]),s=h;return h==="left"?s="right":h==="right"&&(s="left"),Object(O.a)({fixed:s},d)})}function i(r,c){var h=r.prefixCls,d=r.columns,s=r.children,u=r.expandable,w=r.expandedKeys,E=r.getRowKey,_=r.onTriggerExpand,P=r.expandIcon,R=r.rowExpandable,x=r.expandIconColumnIndex,S=r.direction,v=r.expandRowByClick,T=y.useMemo(function(){return d||f(s)},[d,s]),U=y.useMemo(function(){if(u){var V,H=x||0,D=T[H],W=(V={},Object(M.a)(V,e.a,{className:"".concat(h,"-expand-icon-col")}),Object(M.a)(V,"title",""),Object(M.a)(V,"fixed",D?D.fixed:null),Object(M.a)(V,"className","".concat(h,"-row-expand-icon-cell")),Object(M.a)(V,"render",function(K,ee,he){var fe=E(ee,he),Ce=w.has(fe),Te=R?R(ee):!0,ce=P({prefixCls:h,expanded:Ce,expandable:Te,record:ee,onExpand:_});return v?y.createElement("span",{onClick:function(Ee){return Ee.stopPropagation()}},ce):ce}),V),F=T.slice();return H>=0&&F.splice(H,0,W),F}return T},[u,T,E,w,P,S]),I=y.useMemo(function(){var V=U;return c&&(V=c(V)),V.length||(V=[{render:function(){return null}}]),V},[c,U,S]),N=y.useMemo(function(){return S==="rtl"?n(a(I)):a(I)},[I,S]);return[I,N]}z.b=i},wZgz:function(k,z,o){(function(M,m,O){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.BlockCipher,y=m.algo,C=[],A=[],g=[],e=[],f=[],a=[],l=[],n=[],i=[],r=[];(function(){for(var d=[],s=0;s<256;s++)s<128?d[s]=s<<1:d[s]=s<<1^283;for(var u=0,w=0,s=0;s<256;s++){var E=w^w<<1^w<<2^w<<3^w<<4;E=E>>>8^E&255^99,C[u]=E,A[E]=u;var _=d[u],P=d[_],R=d[P],x=d[E]*257^E*16843008;g[u]=x<<24|x>>>8,e[u]=x<<16|x>>>16,f[u]=x<<8|x>>>24,a[u]=x;var x=R*16843009^P*65537^_*257^u*16843008;l[E]=x<<24|x>>>8,n[E]=x<<16|x>>>16,i[E]=x<<8|x>>>24,r[E]=x,u?(u=_^d[d[d[R^_]]],w^=d[d[w]]):u=w=1}})();var c=[0,1,2,4,8,16,32,64,128,27,54],h=y.AES=b.extend({_doReset:function(){var d;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var s=this._keyPriorReset=this._key,u=s.words,w=s.sigBytes/4,E=this._nRounds=w+6,_=(E+1)*4,P=this._keySchedule=[],R=0;R<_;R++)R<w?P[R]=u[R]:(d=P[R-1],R%w?w>6&&R%w==4&&(d=C[d>>>24]<<24|C[d>>>16&255]<<16|C[d>>>8&255]<<8|C[d&255]):(d=d<<8|d>>>24,d=C[d>>>24]<<24|C[d>>>16&255]<<16|C[d>>>8&255]<<8|C[d&255],d^=c[R/w|0]<<24),P[R]=P[R-w]^d);for(var x=this._invKeySchedule=[],S=0;S<_;S++){var R=_-S;if(S%4)var d=P[R];else var d=P[R-4];S<4||R<=4?x[S]=d:x[S]=l[C[d>>>24]]^n[C[d>>>16&255]]^i[C[d>>>8&255]]^r[C[d&255]]}},encryptBlock:function(d,s){this._doCryptBlock(d,s,this._keySchedule,g,e,f,a,C)},decryptBlock:function(d,s){var u=d[s+1];d[s+1]=d[s+3],d[s+3]=u,this._doCryptBlock(d,s,this._invKeySchedule,l,n,i,r,A);var u=d[s+1];d[s+1]=d[s+3],d[s+3]=u},_doCryptBlock:function(d,s,u,w,E,_,P,R){for(var x=this._nRounds,S=d[s]^u[0],v=d[s+1]^u[1],T=d[s+2]^u[2],U=d[s+3]^u[3],I=4,N=1;N<x;N++){var V=w[S>>>24]^E[v>>>16&255]^_[T>>>8&255]^P[U&255]^u[I++],H=w[v>>>24]^E[T>>>16&255]^_[U>>>8&255]^P[S&255]^u[I++],D=w[T>>>24]^E[U>>>16&255]^_[S>>>8&255]^P[v&255]^u[I++],W=w[U>>>24]^E[S>>>16&255]^_[v>>>8&255]^P[T&255]^u[I++];S=V,v=H,T=D,U=W}var V=(R[S>>>24]<<24|R[v>>>16&255]<<16|R[T>>>8&255]<<8|R[U&255])^u[I++],H=(R[v>>>24]<<24|R[T>>>16&255]<<16|R[U>>>8&255]<<8|R[S&255])^u[I++],D=(R[T>>>24]<<24|R[U>>>16&255]<<16|R[S>>>8&255]<<8|R[v&255])^u[I++],W=(R[U>>>24]<<24|R[S>>>16&255]<<16|R[v>>>8&255]<<8|R[T&255])^u[I++];d[s]=V,d[s+1]=H,d[s+2]=D,d[s+3]=W},keySize:256/32});m.AES=b._createHelper(h)}(),M.AES})},wbyO:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){var m=M,O=m.lib,b=O.WordArray,y=m.enc,C=y.Base64url={stringify:function(g,e=!0){var f=g.words,a=g.sigBytes,l=e?this._safe_map:this._map;g.clamp();for(var n=[],i=0;i<a;i+=3)for(var r=f[i>>>2]>>>24-i%4*8&255,c=f[i+1>>>2]>>>24-(i+1)%4*8&255,h=f[i+2>>>2]>>>24-(i+2)%4*8&255,d=r<<16|c<<8|h,s=0;s<4&&i+s*.75<a;s++)n.push(l.charAt(d>>>6*(3-s)&63));var u=l.charAt(64);if(u)for(;n.length%4;)n.push(u);return n.join("")},parse:function(g,e=!0){var f=g.length,a=e?this._safe_map:this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var n=0;n<a.length;n++)l[a.charCodeAt(n)]=n}var i=a.charAt(64);if(i){var r=g.indexOf(i);r!==-1&&(f=r)}return A(g,f,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function A(g,e,f){for(var a=[],l=0,n=0;n<e;n++)if(n%4){var i=f[g.charCodeAt(n-1)]<<n%4*2,r=f[g.charCodeAt(n)]>>>6-n%4*2,c=i|r;a[l>>>2]|=c<<24-l%4*8,l++}return b.create(a,l)}}(),M.enc.Base64url})},xiVL:function(k,z){k.exports="data:image/png;base64,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"},xrsn:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",dropDown:"dropDown___3Phxo",line:"line___3lQ2g",subName:"subName___3sqtP",name:"name___1Odvx",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":function(k,z,o){"use strict";o.d(z,"a",function(){return a}),o.d(z,"b",function(){return n});var M=/margin|padding|width|height|max|min|offset/,m={left:!0,top:!0},O={cssFloat:1,styleFloat:1,float:1};function b(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function y(i,r,c){if(r=r.toLowerCase(),c==="auto"){if(r==="height")return i.offsetHeight;if(r==="width")return i.offsetWidth}return r in m||(m[r]=M.test(r)),m[r]?parseFloat(c)||0:c}function C(i,r){var c=arguments.length,h=b(i);return r=O[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,c===1?h:y(i,r,h[r]||i.style[r])}function A(i,r,c){var h=arguments.length;if(r=O[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,h===3)return typeof c=="number"&&M.test(r)&&(c="".concat(c,"px")),i.style[r]=c,c;for(var d in r)r.hasOwnProperty(d)&&A(i,d,r[d]);return b(i)}function g(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function e(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function f(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:r}}function a(){var i=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:r}}function l(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function n(i){var r=i.getBoundingClientRect(),c=document.documentElement;return{left:r.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}},yDYP:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1ns9C",flex_space_between:"flex_space_between___CtYWo",flex_box_vertical_center:"flex_box_vertical_center___1BY1r",flex_box_center_end:"flex_box_center_end___1f_qK",flex_box_column:"flex_box_column___vKDYT",commitWrap:"commitWrap___3D8wo",wrap:"wrap___3FqEy",colorGray:"colorGray___cRpZO",content:"content___3lBLc",itemTime:"itemTime___Tgw2b",imageUrl:"imageUrl___2Lb2n",blueLight:"blueLight___1hcIr",divider:"divider___3FYHo",empty:"empty___oYMsw"}},"yTi+":function(k,z,o){k.exports=o.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(k,z){k.exports="data:image/png;base64,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"},yslc:function(k,z){k.exports="data:image/png;base64,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"},z4EP:function(k,z){k.exports="data:image/png;base64,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"}}]);