|
|
(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(g,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 m(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=m("importmodule","tag",["string","builtin"]),e.documentclass=m("documentclass","tag",["","atom"]),e.usepackage=m("usepackage","tag",["atom"]),e.begin=m("begin","tag",["atom"]),e.end=m("end","tag",["atom"]),e.label=m("label","tag",["atom"]),e.ref=m("ref","tag",["atom"]),e.eqref=m("eqref","tag",["atom"]),e.cite=m("cite","tag",["atom"]),e.bibitem=m("bibitem","tag",["atom"]),e.Bibitem=m("Bibitem","tag",["atom"]),e.RBibitem=m("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"),g={"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 m,e,f,a,l,n,i=!1;A||(A={}),m=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"){m&&console.warn("unable to use e.clipboardData"),m&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=g[A.format]||g.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){m&&console.error("unable to copy using execCommand: ",c),m&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(A.format||"text",C),A.onCopy&&A.onCopy(window.clipboardData),i=!0}catch(h){m&&console.error("unable to copy using clipboardData: ",h),m&&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 m}),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 g=new M;function O(l){A(l)||g.onUnexpectedError(l);return}function b(l){A(l)||g.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 m(){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_input_number_style__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("giR+"),antd_es_input_number__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("fyUT"),antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("5Dmo"),antd_es_tooltip__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("3S7+"),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"),_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("jrin"),_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("k1fw"),_root_workspace_ppte5yg23_local_v8_test4_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"),_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("9og8"),_root_workspace_ppte5yg23_local_v8_test4_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"),_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("WmNS"),_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v8_test4_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 g=[o[0],"00"].join(":"),O="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(g,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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var M;return _root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z;return _root_workspace_ppte5yg23_local_v8_test4_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 g=serviceConfigList.map(function(O,b){return b===M?Object(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)(Object(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)({},O),{},Object(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__.a)({},o,z)):O});setServiceConfigList(g)},handleInitState=function(){var z,o,M,g,O,b,y,C,A,m,e,f,a,l,n,i,r,c,h,d,s,u,w,E,_,P,R,x,S,v,T,U,L,N,V,H,D,W,F,I,K,ee,he,de,Se,Te,ce,be,ye,ue,se,$,me,re,ae,Oe,le,te,Q,J,ve,_e,Ae,Je,tt,ut,ft,vt=(shixunsDetail==null||((z=shixunsDetail.setting)===null||z===void 0)?void 0:z.shixun)||{},_t=vt.choice_main_type,Ve=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,qe=vt.shixun_service_configs;if(setEvaluateScript(Pt),setServiceConfigList(qe),setStandardScripts(Et||[]),setWindowVNCTemplate((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.windows_start_template),setWebsshCloud((g=shixunsDetail.setting)===null||g===void 0||((O=g.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((m=shixunsDetail.setting)===null||m===void 0||((e=m.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||((L=U.shixun)===null||L===void 0)?void 0:L.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&&(I=F.shixun)!==null&&I!==void 0&&I.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||((de=he.shixun)===null||de===void 0)?void 0:de.scope_partment),setevaluationScript((Se=shixunsDetail.setting)===null||Se===void 0||((Te=Se.shixun)===null||Te===void 0)?void 0:Te.choice_standard_scripts),setDisableDiscuss((ce=shixunsDetail.setting)===null||ce===void 0||((be=ce.shixun)===null||be===void 0)?void 0:be.is_disable_discuss),setterminal_count((ye=shixunsDetail.setting)===null||ye===void 0||((ue=ye.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 He,Ye;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((He=shixunsDetail.setting)===null||He===void 0||((Ye=He.shixun)===null||Ye===void 0))?void 0:Ye.shixun_virtual_templates))}setport((Oe=shixunsDetail.setting)===null||Oe===void 0||((le=Oe.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&&(Ae=_e.shixun)!==null&&Ae!==void 0&&Ae.vnc||(Je=shixunsDetail.setting)!==null&&Je!==void 0&&(tt=Je.shixun)!==null&&tt!==void 0&&tt.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(ut=shixunsDetail.setting)!==null&&ut!==void 0&&(ft=ut.shixun)!==null&&ft!==void 0&&ft.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,g,O,b,y,C,A,m,e,f,a;(k==null?void 0:k.cpu_limit)!=((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0||((g=M.shixun_service_configs[z])===null||g===void 0))?void 0:g.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||((m=A.shixun_service_configs[z])===null||m===void 0))?void 0:m.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(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z,o,M,g;return _root_workspace_ppte5yg23_local_v8_test4_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:g=b.sent,(g==null?void 0:g.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(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function g(){return _root_workspace_ppte5yg23_local_v8_test4_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()}},g)}));function M(){return o.apply(this,arguments)}return M}()})},handleGetScriptContent=function(){var k=Object(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var M;return _root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(){var o,M,g,O,b,y,C;return _root_workspace_ppte5yg23_local_v8_test4_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,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(m.t0=m.sent,m.t0){m.next=5;break}m.t0={};case 5:C=m.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||((g=M.splice(0,2))===null||g===void 0)?void 0:g.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(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test4_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function a(){var l;return _root_workspace_ppte5yg23_local_v8_test4_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 m.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,g,O,b,y,C,A,m,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&&!((g=shixunsDetail.setting)!==null&&g!==void 0&&(O=g.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)&&(m=shixunsDetail.setting)!==null&&m!==void 0&&(e=m.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,g,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,m;setport((A=shixunsDetail.setting)===null||A===void 0||((m=A.shixun)===null||m===void 0)?void 0:m.port_mapping)}else if(C===2&&((g=shixunsDetail.setting)===null||g===void 0||((O=g.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(4),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"))),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:3},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u4E91\u4E3B\u673A\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\u4E3A\u5B66\u751F\u63D0\u4F9B\u4E00\u53F0\u8FDC\u7A0B\u547D\u4EE4\u884C\u7684\u4E91\u4E3B\u673A\uFF0C\u547D\u4EE4\u884C\u64CD\u4F5C\u53EF\u4EE5\u5BF9\u5B66\u751F\u7684\u5B9E\u9A8C\u73AF\u5883\u4EA7\u751F\u5F71\u54CD\uFF09")),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},"\u57FA\u7840\u4E91\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_select__WEBPACK_IMPORTED_MODULE_36__.a,{style:{width:90},value:webssh_cloud,onChange:function(z){return setWebsshCloud(z)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{key:4,value:4},"\u5929\u7FFC\u4E91")))),(webssh_cloud===1||webssh_cloud===4)&&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"})))))),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,g,O,b,y,C,A,m,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"&&(g=shixunsDetail.setting)!==null&&g!==void 0&&(O=g.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||((m=A.shixun_virtual_templates)===null||m===void 0)))?void 0:m.length)>0){var E,_;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test4_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"))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:"linux_vnc",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"Linux\u4E91\u4E3B\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\u7528Linux\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\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_7__.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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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(_root_workspace_ppte5yg23_local_v8_test4_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_5__.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,g,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:((g=shixunsDetail.setting)===null||g===void 0||((O=g.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(m,e,f){var a=f&&f!=M.Init;if(e&&!a)m.on("blur",y),m.on("change",C),m.on("swapDoc",C),M.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){b(m)}),C(m);else if(!e&&a){m.off("blur",y),m.off("change",C),m.off("swapDoc",C),M.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),g(m);var l=m.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}e&&!m.hasFocus()&&y(m)});function g(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function O(m){g(m);var e=m.state.placeholder=document.createElement("pre");e.style.cssText="height: 0; overflow: visible",e.style.direction=m.getOption("direction"),e.className="CodeMirror-placeholder CodeMirror-line-like";var f=m.getOption("placeholder");typeof f=="string"&&(f=document.createTextNode(f)),e.appendChild(f),m.display.lineSpace.insertBefore(e,m.display.lineSpace.firstChild)}function b(m){setTimeout(function(){var e=!1,f=m.getInputField();f.nodeName=="TEXTAREA"?e=!f.value:m.lineCount()==1&&(e=!/[^\u200b]/.test(f.querySelector(".CodeMirror-line").textContent)),e?O(m):g(m)},20)}function y(m){A(m)&&O(m)}function C(m){var e=m.getWrapperElement(),f=A(m);e.className=e.className.replace(" CodeMirror-empty","")+(f?" CodeMirror-empty":""),f?O(m):g(m)}function A(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Sn+":function(k,z,o){},"1XHU":function(k,z,o){"use strict";var M=o("2qtc"),g=o("kLXV"),O=o("q1tI"),b=o.n(O),y=o("9kvl"),C=o("3wET"),A=o.n(C),m=o("bUJZ"),e=o.n(m),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(g.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 g={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={},m=y.htmlMode?g:O;for(var e in m)A[e]=m[e];for(var e in y)A[e]=y[e];var f,a;function l(T,U){function L(H){return U.tokenize=H,H(T,U)}var N=T.next();if(N=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?L(r("atom","]]>")):null:T.match("--")?L(r("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),L(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 L=T.next();if(L==">"||L=="/"&&T.eat(">"))return U.tokenize=l,f=L==">"?"endTag":"selfcloseTag","tag bracket";if(L=="=")return f="equals",null;if(L=="<"){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(L)?(U.tokenize=i(L),U.stringStartCol=T.column(),U.tokenize(T,U)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function i(T){var U=function(L,N){for(;!L.eol();)if(L.next()==T){N.tokenize=n;break}return"string"};return U.isInAttribute=!0,U}function r(T,U){return function(L,N){for(;!L.eol();){if(L.match(U)){N.tokenize=l;break}L.next()}return T}}function c(T){return function(U,L){for(var N;(N=U.next())!=null;){if(N=="<")return L.tokenize=c(T+1),L.tokenize(U,L);if(N==">")if(T==1){L.tokenize=l;break}else return L.tokenize=c(T-1),L.tokenize(U,L)}return"meta"}}function h(T,U,L){this.prev=T.context,this.tagName=U,this.indent=T.indented,this.startOfLine=L,(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 L;;){if(!T.context)return;if(L=T.context.tagName,!A.contextGrabbers.hasOwnProperty(L)||!A.contextGrabbers[L].hasOwnProperty(U))return;d(T)}}function u(T,U,L){return T=="openTag"?(L.tagStart=U.column(),w):T=="closeTag"?E:u}function w(T,U,L){return T=="word"?(L.tagName=U.current(),a="tag",R):A.allowMissingTagName&&T=="endTag"?(a="tag bracket",R(T,U,L)):(a="error",w)}function E(T,U,L){if(T=="word"){var N=U.current();return L.context&&L.context.tagName!=N&&A.implicitlyClosed.hasOwnProperty(L.context.tagName)&&d(L),L.context&&L.context.tagName==N||A.matchClosing===!1?(a="tag",_):(a="tag error",P)}else return A.allowMissingTagName&&T=="endTag"?(a="tag bracket",_(T,U,L)):(a="error",P)}function _(T,U,L){return T!="endTag"?(a="error",_):(d(L),u)}function P(T,U,L){return a="error",_(T,U,L)}function R(T,U,L){if(T=="word")return a="attribute",x;if(T=="endTag"||T=="selfcloseTag"){var N=L.tagName,V=L.tagStart;return L.tagName=L.tagStart=null,T=="selfcloseTag"||A.autoSelfClosers.hasOwnProperty(N)?s(L,N):(s(L,N),L.context=new h(L,N,V==L.indented)),u}return a="error",R}function x(T,U,L){return T=="equals"?S:(A.allowMissing||(a="error"),R(T,U,L))}function S(T,U,L){return T=="string"?v:T=="word"&&A.allowUnquoted?(a="string",R):(a="error",R(T,U,L))}function v(T,U,L){return T=="string"?v:R(T,U,L)}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 L=U.tokenize(T,U);return(L||f)&&L!="comment"&&(a=null,U.state=U.state(f||L,T,U),a&&(L=a=="error"?L+" error":a)),L},indent:function(T,U,L){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 L?L.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=[],L=T.context;L;L=L.prev)L.tagName&&U.push(L.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 Je}),o.d(z,"b",function(){return ze}),o.d(z,"c",function(){return Ct}),o.d(z,"a",function(){return Qt});var M=o("VTBJ"),g=o("1OyB"),O=o("vuIU"),b=o("JX7q"),y=o("Ji7U"),C=o("LK+K"),A=o("q1tI"),m=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,L=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,V=/Mobile(?:.+)Firefox\b/i;function H(Ot,Fe){return Ot.test(Fe)}function D(Ot){var Fe=Ot||(typeof navigator!="undefined"?navigator.userAgent:""),at=Fe.split("[FBAN");if(typeof at[1]!="undefined"){var it=at,Pe=Object(s.a)(it,1);Fe=Pe[0]}if(at=Fe.split("Twitter"),typeof at[1]!="undefined"){var Qe=at,pt=Object(s.a)(Qe,1);Fe=pt[0]}var bt={apple:{phone:H(u,Fe)&&!H(S,Fe),ipod:H(w,Fe),tablet:!H(u,Fe)&&H(E,Fe)&&!H(S,Fe),device:(H(u,Fe)||H(w,Fe)||H(E,Fe))&&!H(S,Fe)},amazon:{phone:H(R,Fe),tablet:!H(R,Fe)&&H(x,Fe),device:H(R,Fe)||H(x,Fe)},android:{phone:!H(S,Fe)&&H(R,Fe)||!H(S,Fe)&&H(_,Fe),tablet:!H(S,Fe)&&!H(R,Fe)&&!H(_,Fe)&&(H(x,Fe)||H(P,Fe)),device:!H(S,Fe)&&(H(R,Fe)||H(x,Fe)||H(_,Fe)||H(P,Fe))||H(/\bokhttp\b/i,Fe)},windows:{phone:H(S,Fe),tablet:H(v,Fe),device:H(S,Fe)||H(v,Fe)},other:{blackberry:H(T,Fe),blackberry10:H(U,Fe),opera:H(L,Fe),firefox:H(V,Fe),chrome:H(N,Fe),device:H(T,Fe)||H(U,Fe)||H(L,Fe)||H(V,Fe)||H(N,Fe)},any:null,phone:null,tablet:null};return bt.any=bt.apple.device||bt.android.device||bt.windows.device||bt.other.device,bt.phone=bt.apple.phone||bt.android.phone||bt.windows.phone,bt.tablet=bt.apple.tablet||bt.android.tablet||bt.windows.tablet,bt}var W=Object(M.a)(Object(M.a)({},D()),{},{isMobile:D}),F=W;function I(){}function K(Ot,Fe,at){var it=Fe||"";return Ot.key||"".concat(it,"item_").concat(at)}function ee(Ot){return"".concat(Ot,"-menu-")}function he(Ot,Fe){var at=-1;A.Children.forEach(Ot,function(it){at+=1,it&&it.type&&it.type.isMenuItemGroup?A.Children.forEach(it.props.children,function(Pe){at+=1,Fe(Pe,at)}):Fe(it,at)})}function de(Ot,Fe,at){if(!Ot||at.find)return;A.Children.forEach(Ot,function(it){if(it){var Pe=it.type;if(!Pe||!(Pe.isSubMenu||Pe.isMenuItem||Pe.isMenuItemGroup))return;Fe.indexOf(it.key)!==-1?at.find=!0:it.props.children&&de(it.props.children,Fe,at)}})}var Se=["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(Fe){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=Fe&&typeof Fe.getBoundingClientRect=="function"&&Fe.getBoundingClientRect().width;if(it){if(at){var Pe=getComputedStyle(Fe),Qe=Pe.marginLeft,pt=Pe.marginRight;it+=+Qe.replace("px","")+ +pt.replace("px","")}it=+it.toFixed(6)}return it||0},ce=function(Fe,at,it){Fe&&Object(d.a)(Fe.style)==="object"&&(Fe.style[at]=it)},be=function(){return F.any},ye=o("KQm4"),ue=o("Ff2n"),se=o("i8i4"),$=o("bdgK"),me=o("uciX"),re=o("8XRh"),ae={adjustX:1,adjustY:1},Oe={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=Oe,Q=0,J={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ve=function(Fe,at,it){var Pe=ee(at),Qe=Fe.getState();Fe.setState({defaultActiveFirst:Object(M.a)(Object(M.a)({},Qe.defaultActiveFirst),{},Object(a.a)({},Pe,it))})},_e=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(it){var Pe;Object(g.a)(this,at),Pe=Fe.call(this,it),Pe.onDestroy=function(ct){Pe.props.onDestroy(ct)},Pe.onKeyDown=function(ct){var Nt=ct.keyCode,jt=Pe.menuInstance,on=Pe.props,vn=on.isOpen,Wn=on.store;if(Nt===l.a.ENTER)return Pe.onTitleClick(ct),ve(Wn,Pe.props.eventKey,!0),!0;if(Nt===l.a.RIGHT)return vn?jt.onKeyDown(ct):(Pe.triggerOpenChange(!0),ve(Wn,Pe.props.eventKey,!0)),!0;if(Nt===l.a.LEFT){var Kn;if(vn)Kn=jt.onKeyDown(ct);else return;return Kn||(Pe.triggerOpenChange(!1),Kn=!0),Kn}return vn&&(Nt===l.a.UP||Nt===l.a.DOWN)?jt.onKeyDown(ct):void 0},Pe.onOpenChange=function(ct){Pe.props.onOpenChange(ct)},Pe.onPopupVisibleChange=function(ct){Pe.triggerOpenChange(ct,ct?"mouseenter":"mouseleave")},Pe.onMouseEnter=function(ct){var Nt=Pe.props,jt=Nt.eventKey,on=Nt.onMouseEnter,vn=Nt.store;ve(vn,Pe.props.eventKey,!1),on({key:jt,domEvent:ct})},Pe.onMouseLeave=function(ct){var Nt=Pe.props,jt=Nt.parentMenu,on=Nt.eventKey,vn=Nt.onMouseLeave;jt.subMenuInstance=Object(b.a)(Pe),vn({key:on,domEvent:ct})},Pe.onTitleMouseEnter=function(ct){var Nt=Pe.props,jt=Nt.eventKey,on=Nt.onItemHover,vn=Nt.onTitleMouseEnter;on({key:jt,hover:!0}),vn({key:jt,domEvent:ct})},Pe.onTitleMouseLeave=function(ct){var Nt=Pe.props,jt=Nt.parentMenu,on=Nt.eventKey,vn=Nt.onItemHover,Wn=Nt.onTitleMouseLeave;jt.subMenuInstance=Object(b.a)(Pe),vn({key:on,hover:!1}),Wn({key:on,domEvent:ct})},Pe.onTitleClick=function(ct){var Nt=Object(b.a)(Pe),jt=Nt.props;if(jt.onTitleClick({key:jt.eventKey,domEvent:ct}),jt.triggerSubMenuAction==="hover")return;Pe.triggerOpenChange(!jt.isOpen,"click"),ve(jt.store,Pe.props.eventKey,!1)},Pe.onSubMenuClick=function(ct){typeof Pe.props.onClick=="function"&&Pe.props.onClick(Pe.addKeyPath(ct))},Pe.onSelect=function(ct){Pe.props.onSelect(ct)},Pe.onDeselect=function(ct){Pe.props.onDeselect(ct)},Pe.getPrefixCls=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu")},Pe.getActiveClassName=function(){return"".concat(Pe.getPrefixCls(),"-active")},Pe.getDisabledClassName=function(){return"".concat(Pe.getPrefixCls(),"-disabled")},Pe.getSelectedClassName=function(){return"".concat(Pe.getPrefixCls(),"-selected")},Pe.getOpenClassName=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu-open")},Pe.saveMenuInstance=function(ct){Pe.menuInstance=ct},Pe.addKeyPath=function(ct){return Object(M.a)(Object(M.a)({},ct),{},{keyPath:(ct.keyPath||[]).concat(Pe.props.eventKey)})},Pe.triggerOpenChange=function(ct,Nt){var jt=Pe.props.eventKey,on=function(){Pe.onOpenChange({key:jt,item:Object(b.a)(Pe),trigger:Nt,open:ct})};Nt==="mouseenter"?Pe.mouseenterTimeout=setTimeout(function(){on()},0):on()},Pe.isChildrenSelected=function(){var ct={find:!1};return de(Pe.props.children,Pe.props.selectedKeys,ct),ct.find},Pe.isOpen=function(){return Pe.props.openKeys.indexOf(Pe.props.eventKey)!==-1},Pe.adjustWidth=function(){if(!Pe.subMenuTitle||!Pe.menuInstance)return;var ct=se.findDOMNode(Pe.menuInstance);if(ct.offsetWidth>=Pe.subMenuTitle.offsetWidth)return;ct.style.minWidth="".concat(Pe.subMenuTitle.offsetWidth,"px")},Pe.saveSubMenuTitle=function(ct){Pe.subMenuTitle=ct},Pe.getBaseProps=function(){var ct=Object(b.a)(Pe),Nt=ct.props;return{mode:Nt.mode==="horizontal"?"vertical":Nt.mode,visible:Pe.props.isOpen,level:Nt.level+1,inlineIndent:Nt.inlineIndent,focusable:!1,onClick:Pe.onSubMenuClick,onSelect:Pe.onSelect,onDeselect:Pe.onDeselect,onDestroy:Pe.onDestroy,selectedKeys:Nt.selectedKeys,eventKey:"".concat(Nt.eventKey,"-menu-"),openKeys:Nt.openKeys,motion:Nt.motion,onOpenChange:Pe.onOpenChange,subMenuOpenDelay:Nt.subMenuOpenDelay,parentMenu:Object(b.a)(Pe),subMenuCloseDelay:Nt.subMenuCloseDelay,forceSubMenuRender:Nt.forceSubMenuRender,triggerSubMenuAction:Nt.triggerSubMenuAction,builtinPlacements:Nt.builtinPlacements,defaultActiveFirst:Nt.store.getState().defaultActiveFirst[ee(Nt.eventKey)],multiple:Nt.multiple,prefixCls:Nt.rootPrefixCls,id:Pe.internalMenuId,manualRef:Pe.saveMenuInstance,itemIcon:Nt.itemIcon,expandIcon:Nt.expandIcon,direction:Nt.direction}},Pe.getMotion=function(ct,Nt){var jt=Object(b.a)(Pe),on=jt.haveRendered,vn=Pe.props,Wn=vn.motion,Kn=vn.rootPrefixCls,Hn=Object(M.a)(Object(M.a)({},Wn),{},{leavedClassName:"".concat(Kn,"-hidden"),removeOnLeave:!1,motionAppear:on||!Nt||ct!=="inline"});return Hn};var Qe=it.store,pt=it.eventKey,bt=Qe.getState(),Dt=bt.defaultActiveFirst;Pe.isRootMenu=!1;var It=!1;return Dt&&(It=Dt[pt]),ve(Qe,pt,It),Pe}return Object(O.a)(at,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this,Qe=this.props,pt=Qe.mode,bt=Qe.parentMenu,Dt=Qe.manualRef;if(Dt&&Dt(this),pt!=="horizontal"||!bt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Pe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Pe=this.props,Qe=Pe.onDestroy,pt=Pe.eventKey;Qe&&Qe(pt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Pe){var Qe=this,pt=this.getBaseProps(),bt=this.getMotion(pt.mode,pt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||pt.visible||pt.forceSubMenuRender,!this.haveOpened)return A.createElement("div",null);var Dt=pt.direction;return A.createElement(re.default,Object.assign({visible:pt.visible},bt),function(It){var ct=It.className,Nt=It.style,jt=h()("".concat(pt.prefixCls,"-sub"),ct,Object(a.a)({},"".concat(pt.prefixCls,"-rtl"),Dt==="rtl"));return A.createElement(qe,Object.assign({},pt,{id:Qe.internalMenuId,className:jt,style:Nt}),Pe)})}},{key:"render",value:function(){var Pe,Qe=Object(M.a)({},this.props),pt=Qe.isOpen,bt=this.getPrefixCls(),Dt=Qe.mode==="inline",It=h()(bt,"".concat(bt,"-").concat(Qe.mode),(Pe={},Object(a.a)(Pe,Qe.className,!!Qe.className),Object(a.a)(Pe,this.getOpenClassName(),pt),Object(a.a)(Pe,this.getActiveClassName(),Qe.active||pt&&!Dt),Object(a.a)(Pe,this.getDisabledClassName(),Qe.disabled),Object(a.a)(Pe,this.getSelectedClassName(),this.isChildrenSelected()),Pe));this.internalMenuId||(Qe.eventKey?this.internalMenuId="".concat(Qe.eventKey,"$Menu"):(Q+=1,this.internalMenuId="$__$".concat(Q,"$Menu")));var ct={},Nt={},jt={};Qe.disabled||(ct={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Nt={onClick:this.onTitleClick},jt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var on={},vn=Qe.direction;Dt&&(vn==="rtl"?on.paddingRight=Qe.inlineIndent*Qe.level:on.paddingLeft=Qe.inlineIndent*Qe.level);var Wn={};this.props.isOpen&&(Wn={"aria-owns":this.internalMenuId});var Kn=null;Qe.mode!=="horizontal"&&(Kn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Kn=A.createElement(this.props.expandIcon,Object(M.a)({},this.props))));var Hn=A.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:on,className:"".concat(bt,"-title"),role:"button"},jt,Nt,{"aria-expanded":pt},Wn,{"aria-haspopup":"true",title:typeof Qe.title=="string"?Qe.title:void 0}),Qe.title,Kn||A.createElement("i",{className:"".concat(bt,"-arrow")})),fn=this.renderChildren(Qe.children),lr=Qe.parentMenu.isRootMenu?Qe.parentMenu.props.getPopupContainer:function(xr){return xr.parentNode},Zn=J[Qe.mode],cr=Qe.popupOffset?{offset:Qe.popupOffset}:{},dr=Qe.mode==="inline"?"":Qe.popupClassName;dr+=vn==="rtl"?" ".concat(bt,"-rtl"):"";var Dr=Qe.disabled,hr=Qe.triggerSubMenuAction,sn=Qe.subMenuOpenDelay,en=Qe.forceSubMenuRender,On=Qe.subMenuCloseDelay,Fr=Qe.builtinPlacements;Se.forEach(function(xr){return delete Qe[xr]}),delete Qe.onClick;var Or=vn==="rtl"?Object.assign({},le,Fr):Object.assign({},Oe,Fr);return delete Qe.direction,A.createElement("li",Object.assign({},Qe,ct,{className:It,role:"menuitem"}),Dt&&Hn,Dt&&fn,!Dt&&A.createElement(me.a,{prefixCls:bt,popupClassName:h()("".concat(bt,"-popup"),dr),getPopupContainer:lr,builtinPlacements:Or,popupPlacement:Zn,popupVisible:pt,popupAlign:cr,popup:fn,action:Dr?[]:[hr],mouseEnterDelay:sn,mouseLeaveDelay:On,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:en},Hn))}}]),at}(A.Component);_e.defaultProps={onMouseEnter:I,onMouseLeave:I,onTitleMouseEnter:I,onTitleMouseLeave:I,onTitleClick:I,manualRef:I,mode:"vertical",title:""};var Ae=Object(m.b)(function(Ot,Fe){var at=Ot.openKeys,it=Ot.activeKey,Pe=Ot.selectedKeys,Qe=Fe.eventKey,pt=Fe.subMenuKey;return{isOpen:at.indexOf(Qe)>-1,active:it[pt]===Qe,selectedKeys:Pe}})(_e);Ae.isSubMenu=!0;var Je=Ae,tt="menuitem-overflowed",ut=.5,ft=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(){var it;return Object(g.a)(this,at),it=Fe.apply(this,arguments),it.resizeObserver=null,it.mutationObserver=null,it.originalTotalWidth=0,it.overflowedItems=[],it.menuItemSizes=[],it.cancelFrameId=null,it.state={lastVisibleIndex:void 0},it.getMenuItemNodes=function(){var Pe=it.props.prefixCls,Qe=se.findDOMNode(Object(b.a)(it));return Qe?[].slice.call(Qe.children).filter(function(pt){return pt.className.split(" ").indexOf("".concat(Pe,"-overflowed-submenu"))<0}):[]},it.getOverflowedSubMenuItem=function(Pe,Qe,pt){var bt=it.props,Dt=bt.overflowedIndicator,It=bt.level,ct=bt.mode,Nt=bt.prefixCls,jt=bt.theme;if(It!==1||ct!=="horizontal")return null;var on=it.props.children[0],vn=on.props,Wn=vn.children,Kn=vn.title,Hn=vn.style,fn=Object(ue.a)(vn,["children","title","style"]),lr=Object(M.a)({},Hn),Zn="".concat(Pe,"-overflowed-indicator"),cr="".concat(Pe,"-overflowed-indicator");Qe.length===0&&pt!==!0?lr=Object(M.a)(Object(M.a)({},lr),{},{display:"none"}):pt&&(lr=Object(M.a)(Object(M.a)({},lr),{},{visibility:"hidden",position:"absolute"}),Zn="".concat(Zn,"-placeholder"),cr="".concat(cr,"-placeholder"));var dr=jt?"".concat(Nt,"-").concat(jt):"",Dr={};return Se.forEach(function(hr){fn[hr]!==void 0&&(Dr[hr]=fn[hr])}),A.createElement(Je,Object.assign({title:Dt,className:"".concat(Nt,"-overflowed-submenu"),popupClassName:dr},Dr,{key:Zn,eventKey:cr,disabled:!1,style:lr}),Qe)},it.setChildrenWidthAndResize=function(){if(it.props.mode!=="horizontal")return;var Pe=se.findDOMNode(Object(b.a)(it));if(!Pe)return;var Qe=Pe.children;if(!Qe||Qe.length===0)return;var pt=Pe.children[Qe.length-1];ce(pt,"display","inline-block");var bt=it.getMenuItemNodes(),Dt=bt.filter(function(It){return It.className.split(" ").indexOf(tt)>=0});Dt.forEach(function(It){ce(It,"display","inline-block")}),it.menuItemSizes=bt.map(function(It){return Te(It,!0)}),Dt.forEach(function(It){ce(It,"display","none")}),it.overflowedIndicatorWidth=Te(Pe.children[Pe.children.length-1],!0),it.originalTotalWidth=it.menuItemSizes.reduce(function(It,ct){return It+ct},0),it.handleResize(),ce(pt,"display","none")},it.handleResize=function(){if(it.props.mode!=="horizontal")return;var Pe=se.findDOMNode(Object(b.a)(it));if(!Pe)return;var Qe=Te(Pe);it.overflowedItems=[];var pt=0,bt;it.originalTotalWidth>Qe+ut&&(bt=-1,it.menuItemSizes.forEach(function(Dt){pt+=Dt,pt+it.overflowedIndicatorWidth<=Qe&&(bt+=1)})),it.setState({lastVisibleIndex:bt})},it}return Object(O.a)(at,[{key:"componentDidMount",value:function(){var Pe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Qe=se.findDOMNode(this);if(!Qe)return;this.resizeObserver=new $.default(function(pt){pt.forEach(function(){var bt=Pe.cancelFrameId;cancelAnimationFrame(bt),Pe.cancelFrameId=requestAnimationFrame(Pe.setChildrenWidthAndResize)})}),[].slice.call(Qe.children).concat(Qe).forEach(function(pt){Pe.resizeObserver.observe(pt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pe.resizeObserver.disconnect(),[].slice.call(Qe.children).concat(Qe).forEach(function(pt){Pe.resizeObserver.observe(pt)}),Pe.setChildrenWidthAndResize()}),this.mutationObserver.observe(Qe,{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(Pe){var Qe=this,pt=this.state.lastVisibleIndex;return(Pe||[]).reduce(function(bt,Dt,It){var ct=Dt;if(Qe.props.mode==="horizontal"){var Nt=Qe.getOverflowedSubMenuItem(Dt.props.eventKey,[]);pt!==void 0&&Qe.props.className.indexOf("".concat(Qe.props.prefixCls,"-root"))!==-1&&(It>pt&&(ct=A.cloneElement(Dt,{style:{display:"none"},eventKey:"".concat(Dt.props.eventKey,"-hidden"),className:"".concat(tt)})),It===pt+1&&(Qe.overflowedItems=Pe.slice(pt+1).map(function(on){return A.cloneElement(on,{key:on.props.eventKey,mode:"vertical-left"})}),Nt=Qe.getOverflowedSubMenuItem(Dt.props.eventKey,Qe.overflowedItems)));var jt=[].concat(Object(ye.a)(bt),[Nt,ct]);return It===Pe.length-1&&jt.push(Qe.getOverflowedSubMenuItem(Dt.props.eventKey,[],!0)),jt}return[].concat(Object(ye.a)(bt),[ct])},[])}},{key:"render",value:function(){var Pe=this.props,Qe=Pe.visible,pt=Pe.prefixCls,bt=Pe.overflowedIndicator,Dt=Pe.mode,It=Pe.level,ct=Pe.tag,Nt=Pe.children,jt=Pe.theme,on=Object(ue.a)(Pe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),vn=ct;return A.createElement(vn,Object.assign({},on),this.renderChildren(Nt))}}]),at}(A.Component);ft.defaultProps={tag:"div",className:""};var vt=ft;function _t(Ot){return Ot.length?Ot.every(function(Fe){return!!Fe.props.disabled}):!0}function Ve(Ot,Fe,at){var it=Ot.getState();Ot.setState({activeKey:Object(M.a)(Object(M.a)({},it.activeKey),{},Object(a.a)({},Fe,at))})}function je(Ot){return Ot.eventKey||"0-menu-"}function ht(Ot,Fe){var at=Fe,it=Ot.children,Pe=Ot.eventKey;if(at){var Qe;if(he(it,function(pt,bt){pt&&pt.props&&!pt.props.disabled&&at===K(pt,Pe,bt)&&(Qe=!0)}),Qe)return at}return at=null,Ot.defaultActiveFirst&&he(it,function(pt,bt){!at&&pt&&!pt.props.disabled&&(at=K(pt,Pe,bt))}),at}function Bt(Ot){if(Ot){var Fe=this.instanceArray.indexOf(Ot);Fe!==-1?this.instanceArray[Fe]=Ot:this.instanceArray.push(Ot)}}var Et=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(it){var Pe;return Object(g.a)(this,at),Pe=Fe.call(this,it),Pe.onKeyDown=function(Qe,pt){var bt=Qe.keyCode,Dt;if(Pe.getFlatInstanceArray().forEach(function(ct){ct&&ct.props.active&&ct.onKeyDown&&(Dt=ct.onKeyDown(Qe))}),Dt)return 1;var It=null;return(bt===l.a.UP||bt===l.a.DOWN)&&(It=Pe.step(bt===l.a.UP?-1:1)),It?(Qe.preventDefault(),Ve(Pe.props.store,je(Pe.props),It.props.eventKey),typeof pt=="function"&&pt(It),1):void 0},Pe.onItemHover=function(Qe){var pt=Qe.key,bt=Qe.hover;Ve(Pe.props.store,je(Pe.props),bt?pt:null)},Pe.onDeselect=function(Qe){Pe.props.onDeselect(Qe)},Pe.onSelect=function(Qe){Pe.props.onSelect(Qe)},Pe.onClick=function(Qe){Pe.props.onClick(Qe)},Pe.onOpenChange=function(Qe){Pe.props.onOpenChange(Qe)},Pe.onDestroy=function(Qe){Pe.props.onDestroy(Qe)},Pe.getFlatInstanceArray=function(){return Pe.instanceArray},Pe.step=function(Qe){var pt=Pe.getFlatInstanceArray(),bt=Pe.props.store.getState().activeKey[je(Pe.props)],Dt=pt.length;if(!Dt)return null;Qe<0&&(pt=pt.concat().reverse());var It=-1;if(pt.every(function(on,vn){return on&&on.props.eventKey===bt?(It=vn,!1):!0}),!Pe.props.defaultActiveFirst&&It!==-1&&_t(pt.slice(It,Dt-1)))return;var ct=(It+1)%Dt,Nt=ct;do{var jt=pt[Nt];if(!jt||jt.props.disabled)Nt=(Nt+1)%Dt;else return jt}while(Nt!==ct);return null},Pe.renderCommonMenuItem=function(Qe,pt,bt){var Dt=Pe.props.store.getState(),It=Object(b.a)(Pe),ct=It.props,Nt=K(Qe,ct.eventKey,pt),jt=Qe.props;if(!jt||typeof Qe.type=="string")return Qe;var on=Nt===Dt.activeKey,vn=Object(M.a)(Object(M.a)({mode:jt.mode||ct.mode,level:ct.level,inlineIndent:ct.inlineIndent,renderMenuItem:Pe.renderMenuItem,rootPrefixCls:ct.prefixCls,index:pt,parentMenu:ct.parentMenu,manualRef:jt.disabled?void 0:Object(n.a)(Qe.ref,Bt.bind(Object(b.a)(Pe))),eventKey:Nt,active:!jt.disabled&&on,multiple:ct.multiple,onClick:function(Kn){(jt.onClick||I)(Kn),Pe.onClick(Kn)},onItemHover:Pe.onItemHover,motion:ct.motion,subMenuOpenDelay:ct.subMenuOpenDelay,subMenuCloseDelay:ct.subMenuCloseDelay,forceSubMenuRender:ct.forceSubMenuRender,onOpenChange:Pe.onOpenChange,onDeselect:Pe.onDeselect,onSelect:Pe.onSelect,builtinPlacements:ct.builtinPlacements,itemIcon:jt.itemIcon||Pe.props.itemIcon,expandIcon:jt.expandIcon||Pe.props.expandIcon},bt),{},{direction:ct.direction});return(ct.mode==="inline"||be())&&(vn.triggerSubMenuAction="click"),A.cloneElement(Qe,vn)},Pe.renderMenuItem=function(Qe,pt,bt){if(!Qe)return null;var Dt=Pe.props.store.getState(),It={openKeys:Dt.openKeys,selectedKeys:Dt.selectedKeys,triggerSubMenuAction:Pe.props.triggerSubMenuAction,subMenuKey:bt};return Pe.renderCommonMenuItem(Qe,pt,It)},it.store.setState({activeKey:Object(M.a)(Object(M.a)({},it.store.getState().activeKey),{},Object(a.a)({},it.eventKey,ht(it,it.activeKey)))}),Pe.instanceArray=[],Pe}return Object(O.a)(at,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Pe){return this.props.visible||Pe.visible||this.props.className!==Pe.className||!r()(this.props.style,Pe.style)}},{key:"componentDidUpdate",value:function(Pe){var Qe=this.props,pt="activeKey"in Qe?Qe.activeKey:Qe.store.getState().activeKey[je(Qe)],bt=ht(Qe,pt);if(bt!==pt)Ve(Qe.store,je(Qe),bt);else if("activeKey"in Pe){var Dt=ht(Pe,Pe.activeKey);bt!==Dt&&Ve(Qe.store,je(Qe),bt)}}},{key:"render",value:function(){var Pe=this,Qe=Object(f.a)({},this.props);this.instanceArray=[];var pt=h()(Qe.prefixCls,Qe.className,"".concat(Qe.prefixCls,"-").concat(Qe.mode)),bt={className:pt,role:Qe.role||"menu"};Qe.id&&(bt.id=Qe.id),Qe.focusable&&(bt.tabIndex=0,bt.onKeyDown=this.onKeyDown);var Dt=Qe.prefixCls,It=Qe.eventKey,ct=Qe.visible,Nt=Qe.level,jt=Qe.mode,on=Qe.overflowedIndicator,vn=Qe.theme;return Se.forEach(function(Wn){return delete Qe[Wn]}),delete Qe.onClick,A.createElement(vt,Object.assign({},Qe,{prefixCls:Dt,mode:jt,tag:"ul",level:Nt,theme:vn,visible:ct,overflowedIndicator:on},bt),A.Children.map(Qe.children,function(Wn,Kn){return Pe.renderMenuItem(Wn,Kn,It||"0-menu-")}))}}]),at}(A.Component);Et.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:I};var Pt=Object(m.b)()(Et),qe=Pt,He=o("Kwbf");function Ye(Ot,Fe,at){var it=Ot.prefixCls,Pe=Ot.motion,Qe=Ot.defaultMotions,pt=Qe===void 0?{}:Qe,bt=Ot.openAnimation,Dt=Ot.openTransitionName,It=Fe.switchingModeFromInline;if(Pe)return Pe;if(Object(d.a)(bt)==="object"&&bt)Object(He.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof bt=="string")return{motionName:"".concat(it,"-open-").concat(bt)};if(Dt)return{motionName:Dt};var ct=pt[at];return ct||(It?null:pt.other)}var Ce=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(it){var Pe;Object(g.a)(this,at),Pe=Fe.call(this,it),Pe.inlineOpenKeys=[],Pe.onSelect=function(bt){var Dt=Object(b.a)(Pe),It=Dt.props;if(It.selectable){var ct=Pe.store.getState(),Nt=ct.selectedKeys,jt=bt.key;It.multiple?Nt=Nt.concat([jt]):Nt=[jt],"selectedKeys"in It||Pe.store.setState({selectedKeys:Nt}),It.onSelect(Object(M.a)(Object(M.a)({},bt),{},{selectedKeys:Nt}))}},Pe.onClick=function(bt){var Dt=Pe.getRealMenuMode(),It=Object(b.a)(Pe),ct=It.store,Nt=It.props.onOpenChange;Dt!=="inline"&&!("openKeys"in Pe.props)&&(ct.setState({openKeys:[]}),Nt([])),Pe.props.onClick(bt)},Pe.onKeyDown=function(bt,Dt){Pe.innerMenu.getWrappedInstance().onKeyDown(bt,Dt)},Pe.onOpenChange=function(bt){var Dt=Object(b.a)(Pe),It=Dt.props,ct=Pe.store.getState().openKeys.concat(),Nt=!1,jt=function(vn){var Wn=!1;if(vn.open)Wn=ct.indexOf(vn.key)===-1,Wn&&ct.push(vn.key);else{var Kn=ct.indexOf(vn.key);Wn=Kn!==-1,Wn&&ct.splice(Kn,1)}Nt=Nt||Wn};Array.isArray(bt)?bt.forEach(jt):jt(bt),Nt&&("openKeys"in Pe.props||Pe.store.setState({openKeys:ct}),It.onOpenChange(ct))},Pe.onDeselect=function(bt){var Dt=Object(b.a)(Pe),It=Dt.props;if(It.selectable){var ct=Pe.store.getState().selectedKeys.concat(),Nt=bt.key,jt=ct.indexOf(Nt);jt!==-1&&ct.splice(jt,1),"selectedKeys"in It||Pe.store.setState({selectedKeys:ct}),It.onDeselect(Object(M.a)(Object(M.a)({},bt),{},{selectedKeys:ct}))}},Pe.onMouseEnter=function(bt){Pe.restoreModeVerticalFromInline();var Dt=Pe.props.onMouseEnter;Dt&&Dt(bt)},Pe.onTransitionEnd=function(bt){var Dt=bt.propertyName==="width"&&bt.target===bt.currentTarget,It=bt.target.className,ct=Object.prototype.toString.call(It)==="[object SVGAnimatedString]"?It.animVal:It,Nt=bt.propertyName==="font-size"&&ct.indexOf("anticon")>=0;(Dt||Nt)&&Pe.restoreModeVerticalFromInline()},Pe.setInnerMenu=function(bt){Pe.innerMenu=bt},Pe.isRootMenu=!0;var Qe=it.defaultSelectedKeys,pt=it.defaultOpenKeys;return"selectedKeys"in it&&(Qe=it.selectedKeys||[]),"openKeys"in it&&(pt=it.openKeys||[]),Pe.store=Object(m.c)({selectedKeys:Qe,openKeys:pt,activeKey:{"0-menu-":ht(it,it.activeKey)}}),Pe.state={switchingModeFromInline:!1},Pe}return Object(O.a)(at,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pe){this.updateOpentKeysWhenSwitchMode(Pe),this.updateMiniStore();var Qe=this.props,pt=Qe.siderCollapsed,bt=Qe.inlineCollapsed,Dt=Qe.onOpenChange;(!Pe.inlineCollapsed&&bt||!Pe.siderCollapsed&&pt)&&Dt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Pe){var Qe=this.props,pt=this.store,bt=this.inlineOpenKeys,Dt=pt.getState(),It={};Pe.mode==="inline"&&Qe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Qe||((Qe.inlineCollapsed&&!Pe.inlineCollapsed||Qe.siderCollapsed&&!Pe.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Dt.openKeys.concat(),It.openKeys=[]),(!Qe.inlineCollapsed&&Pe.inlineCollapsed||!Qe.siderCollapsed&&Pe.siderCollapsed)&&(It.openKeys=bt,this.inlineOpenKeys=[])),Object.keys(It).length&&pt.setState(It)}},{key:"updateMenuDisplay",value:function(){var Pe=this.props.collapsedWidth,Qe=this.store,pt=this.prevOpenKeys,bt=this.getInlineCollapsed()&&(Pe===0||Pe==="0"||Pe==="0px");bt?(this.prevOpenKeys=Qe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):pt&&(this.store.setState({openKeys:pt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pe=this.props.mode,Qe=this.state.switchingModeFromInline,pt=this.getInlineCollapsed();return Qe&&pt?"inline":pt?"vertical":Pe}},{key:"getInlineCollapsed",value:function(){var Pe=this.props,Qe=Pe.inlineCollapsed,pt=Pe.siderCollapsed;return pt!==void 0?pt:Qe}},{key:"restoreModeVerticalFromInline",value:function(){var Pe=this.state.switchingModeFromInline;Pe&&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 Pe=Object(M.a)({},Object(e.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Qe=this.getRealMenuMode();return Pe.className+=" ".concat(Pe.prefixCls,"-root"),Pe.direction==="rtl"&&(Pe.className+=" ".concat(Pe.prefixCls,"-rtl")),Pe=Object(M.a)(Object(M.a)({},Pe),{},{mode:Qe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ye(this.props,this.state,Qe)}),delete Pe.openAnimation,delete Pe.openTransitionName,A.createElement(m.a,{store:this.store},A.createElement(qe,Object.assign({},Pe,{ref:this.setInnerMenu}),this.props.children))}}]),at}(A.Component);Ce.defaultProps={selectable:!0,onClick:I,onSelect:I,onOpenChange:I,onDeselect:I,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 Le=Ce,We=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(){var it;return Object(g.a)(this,at),it=Fe.apply(this,arguments),it.onKeyDown=function(Pe){var Qe=Pe.keyCode;return Qe===l.a.ENTER?(it.onClick(Pe),!0):void 0},it.onMouseLeave=function(Pe){var Qe=it.props,pt=Qe.eventKey,bt=Qe.onItemHover,Dt=Qe.onMouseLeave;bt({key:pt,hover:!1}),Dt({key:pt,domEvent:Pe})},it.onMouseEnter=function(Pe){var Qe=it.props,pt=Qe.eventKey,bt=Qe.onItemHover,Dt=Qe.onMouseEnter;bt({key:pt,hover:!0}),Dt({key:pt,domEvent:Pe})},it.onClick=function(Pe){var Qe=it.props,pt=Qe.eventKey,bt=Qe.multiple,Dt=Qe.onClick,It=Qe.onSelect,ct=Qe.onDeselect,Nt=Qe.isSelected,jt={key:pt,keyPath:[pt],item:Object(b.a)(it),domEvent:Pe};Dt(jt),bt?Nt?ct(jt):It(jt):Nt||It(jt)},it.saveNode=function(Pe){it.node=Pe},it}return Object(O.a)(at,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Pe=this.props;Pe.onDestroy&&Pe.onDestroy(Pe.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 Pe,Qe=Object(M.a)({},this.props),pt=h()(this.getPrefixCls(),Qe.className,(Pe={},Object(a.a)(Pe,this.getActiveClassName(),!Qe.disabled&&Qe.active),Object(a.a)(Pe,this.getSelectedClassName(),Qe.isSelected),Object(a.a)(Pe,this.getDisabledClassName(),Qe.disabled),Pe)),bt=Object(M.a)(Object(M.a)({},Qe.attribute),{},{title:typeof Qe.title=="string"?Qe.title:void 0,className:pt,role:Qe.role||"menuitem","aria-disabled":Qe.disabled});Qe.role==="option"?bt=Object(M.a)(Object(M.a)({},bt),{},{role:"option","aria-selected":Qe.isSelected}):(Qe.role===null||Qe.role==="none")&&(bt.role="none");var Dt={onClick:Qe.disabled?null:this.onClick,onMouseLeave:Qe.disabled?null:this.onMouseLeave,onMouseEnter:Qe.disabled?null:this.onMouseEnter},It=Object(M.a)({},Qe.style);Qe.mode==="inline"&&(Qe.direction==="rtl"?It.paddingRight=Qe.inlineIndent*Qe.level:It.paddingLeft=Qe.inlineIndent*Qe.level),Se.forEach(function(Nt){return delete Qe[Nt]}),delete Qe.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)(Qe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),bt,Dt,{style:It,ref:this.saveNode}),Qe.children,ct)}}]),at}(A.Component);We.isMenuItem=!0,We.defaultProps={onSelect:I,onMouseEnter:I,onMouseLeave:I,manualRef:I};var Ue=Object(m.b)(function(Ot,Fe){var at=Ot.activeKey,it=Ot.selectedKeys,Pe=Fe.eventKey,Qe=Fe.subMenuKey;return{active:at[Qe]===Pe,isSelected:it.indexOf(Pe)!==-1}})(We),ze=Ue,st=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(){var it;return Object(g.a)(this,at),it=Fe.apply(this,arguments),it.renderInnerMenuItem=function(Pe){var Qe=it.props,pt=Qe.renderMenuItem,bt=Qe.index;return pt(Pe,bt,it.props.subMenuKey)},it}return Object(O.a)(at,[{key:"render",value:function(){var Pe=Object(f.a)({},this.props),Qe=Pe.className,pt=Qe===void 0?"":Qe,bt=Pe.rootPrefixCls,Dt="".concat(bt,"-item-group-title"),It="".concat(bt,"-item-group-list"),ct=Pe.title,Nt=Pe.children;return Se.forEach(function(jt){return delete Pe[jt]}),delete Pe.onClick,delete Pe.direction,A.createElement("li",Object.assign({},Pe,{className:"".concat(pt," ").concat(bt,"-item-group")}),A.createElement("div",{className:Dt,title:typeof ct=="string"?ct:void 0},ct),A.createElement("ul",{className:It},A.Children.map(Nt,this.renderInnerMenuItem)))}}]),at}(A.Component);st.isMenuItemGroup=!0,st.defaultProps={disabled:!0};var Ct=st,Wt=function(Fe){var at=Fe.className,it=Fe.rootPrefixCls,Pe=Fe.style;return A.createElement("li",{className:"".concat(at," ").concat(it,"-item-divider"),style:Pe})};Wt.defaultProps={disabled:!0,className:"",style:{}};var Qt=Wt,Kt=z.e=Le},"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,g,O){k.exports=z=g(o("Ib8C"),o("MlIO"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.Hasher,y=g.x64,C=y.Word,A=y.WordArray,m=g.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=m.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,L=s.low,N=u.high,V=u.low,H=w.high,D=w.low,W=E.high,F=E.low,I=_.high,K=_.low,ee=P,he=R,de=x,Se=S,Te=v,ce=T,be=U,ye=L,ue=N,se=V,$=H,me=D,re=W,ae=F,Oe=I,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],Ae=_e.high,Je=_e.low,tt=(Ae>>>1|Je<<31)^(Ae>>>8|Je<<24)^Ae>>>7,ut=(Je>>>1|Ae<<31)^(Je>>>8|Ae<<24)^(Je>>>7|Ae<<25),ft=a[te-2],vt=ft.high,_t=ft.low,Ve=(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],qe=Pt.high,He=Pt.low;Q=ut+Et,J=tt+Bt+(Q>>>0<ut>>>0?1:0),Q=Q+je,J=J+Ve+(Q>>>0<je>>>0?1:0),Q=Q+He,J=J+qe+(Q>>>0<He>>>0?1:0),ve.high=J,ve.low=Q}var Ye=ue&$^~ue&re,Ce=se&me^~se&ae,Le=ee&de^ee&Te^de&Te,We=he&Se^he&ce^Se&ce,Ue=(ee>>>28|he<<4)^(ee<<30|he>>>2)^(ee<<25|he>>>7),ze=(he>>>28|ee<<4)^(he<<30|ee>>>2)^(he<<25|ee>>>7),st=(ue>>>14|se<<18)^(ue>>>18|se<<14)^(ue<<23|se>>>9),Ct=(se>>>14|ue<<18)^(se>>>18|ue<<14)^(se<<23|ue>>>9),Wt=f[te],Qt=Wt.high,Kt=Wt.low,Ot=le+Ct,Fe=Oe+st+(Ot>>>0<le>>>0?1:0),Ot=Ot+Ce,Fe=Fe+Ye+(Ot>>>0<Ce>>>0?1:0),Ot=Ot+Kt,Fe=Fe+Qt+(Ot>>>0<Kt>>>0?1:0),Ot=Ot+Q,Fe=Fe+J+(Ot>>>0<Q>>>0?1:0),at=ze+We,it=Ue+Le+(at>>>0<ze>>>0?1:0);Oe=re,le=ae,re=$,ae=me,$=ue,me=se,se=ye+Ot|0,ue=be+Fe+(se>>>0<ye>>>0?1:0)|0,be=Te,ye=ce,Te=de,ce=Se,de=ee,Se=he,he=Ot+at|0,ee=Fe+it+(he>>>0<Ot>>>0?1:0)|0}R=c.low=R+he,c.high=P+ee+(R>>>0<he>>>0?1:0),S=h.low=S+Se,h.high=x+de+(S>>>0<Se>>>0?1:0),T=d.low=T+ce,d.high=v+Te+(T>>>0<ce>>>0?1:0),L=s.low=L+ye,s.high=U+be+(L>>>0<ye>>>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=I+Oe+(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});g.SHA512=b._createHelper(l),g.HmacSHA512=b._createHmacHelper(l)}(),M.SHA512})},"24hK":function(k,z,o){"use strict";o.d(z,"a",function(){return g});class M{constructor(O){this.element=O,this.next=M.Undefined,this.prev=M.Undefined}}M.Undefined=new M(void 0);class g{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 g});function M(O,b){let y;return b.length===0?y=O:y=O.replace(/\{(\d+)\}/g,function(C,A){const m=A[0];return typeof b[m]!="undefined"?b[m]:C}),y}function g(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,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=O.Hasher,C=g.algo,A=[],m=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}});g.SHA1=y._createHelper(m),g.HmacSHA1=y._createHmacHelper(m)}(),M.SHA1})},4:function(k,z){},"498V":function(k,z,o){k.exports=o.p+"static/logo.22b9a281.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,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"},"55Ip":function(k,z,o){"use strict";o.d(z,"a",function(){return s});var M=o("Ty5D"),g=o("dI71"),O=o("q1tI"),b=o.n(O),y=o("YS25"),C=o("17x9"),A=o.n(C),m=o("wx14"),e=o("zLVn"),f=o("9R94"),a=function(S){Object(g.a)(v,S);function v(){for(var U,L=arguments.length,N=new Array(L),V=0;V<L;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(g.a)(v,S);function v(){for(var U,L=arguments.length,N=new Array(L),V=0;V<L;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,L=S.onClick,N=Object(e.a)(S,["innerRef","navigate","onClick"]),V=N.target,H=Object(m.a)({},N,{onClick:function(W){try{L&&L(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,L=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),I=F?W.createHref(F):"",K=Object(m.a)({},H,{href:I,navigate:function(){var he=n(N,D.location),de=L?W.replace:W.push;de(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,L=S.activeClassName,N=L===void 0?"active":L,V=S.activeStyle,H=S.className,D=S.exact,W=S.isActive,F=S.location,I=S.sensitive,K=S.strict,ee=S.style,he=S.to,de=S.innerRef,Se=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,be=i(n(he,ce),ce),ye=be.pathname,ue=ye&&ye.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),se=ue?Object(M.f)(ce.pathname,{path:ue,exact:D,sensitive:I,strict:K}):null,$=!!(W?W(se,ce):se),me=$?P(H,N):H,re=$?Object(m.a)({},ee,{},V):ee,ae=Object(m.a)({"aria-current":$&&U||null,className:me,style:re,to:be},Se);return E!==_?ae.ref=v||de:ae.innerRef=de,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,g;function O(b,y,C){var A=function(m,e){return b.js_beautify(m,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")],g=function(b,y,C){return O(b,y,C)}.apply(z,M),g!==void 0&&(k.exports=g))},"5Y4S":function(k,z,o){"use strict";o.d(z,"a",function(){return O});var M=o("MNsG");const g=M.b.performance&&typeof M.b.performance.now=="function";class O{constructor(b){this._highResolution=g&&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,g,O){k.exports=z=g(o("Ib8C"),o("MlIO"))})(this,function(M){return function(g){var O=M,b=O.lib,y=b.WordArray,C=b.Hasher,A=O.x64,m=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]=m.create(E,_)}})();var n=[];(function(){for(var r=0;r<25;r++)n[r]=m.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 m.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],L=U.high,N=U.low,R=T.high^(L<<1|N>>>31),x=T.low^(N<<1|L>>>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 I=n[0],K=h[0];I.high=K.high,I.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],de=n[(P+2)%5+5*S];E.high=ee.high^~he.high&de.high,E.low=ee.low^~he.low&de.low}var E=h[0],Se=l[_];E.high^=Se.high,E.low^=Se.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[(g.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"),g=o("rePB"),O=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),C=o("Ji7U"),A=o("LK+K"),m=o("q1tI"),e=o.n(m),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(g.a)(x,"".concat(S,"-active"),R.active),Object(g.a)(x,R.className,!!R.className),Object(g.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(L){return"".concat(L," ").concat(S.props.locale.items_per_page)},S.changeSize=function(L){S.props.changeSize(Number(L))},S.handleChange=function(L){S.setState({goInputText:L.target.value})},S.handleBlur=function(L){var N=S.props,V=N.goButton,H=N.quickGo,D=N.rootPrefixCls,W=S.state.goInputText;if(V||W==="")return;if(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(D,"-prev"))>=0||L.relatedTarget.className.indexOf("".concat(D,"-next"))>=0))return;S.setState({goInputText:""}),H(S.getValidValue())},S.go=function(L){var N=S.state.goInputText;if(N==="")return;(L.keyCode===i.ENTER||L.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(L){return L.toString()===T.toString()})?U:U.concat([T.toString()]).sort(function(L,N){var V=isNaN(Number(L))?0:Number(L),H=isNaN(Number(N))?0:Number(N);return V-H})}},{key:"render",value:function(){var v=this,T=this.props,U=T.pageSize,L=T.locale,N=T.rootPrefixCls,V=T.changeSize,H=T.quickGo,D=T.goButton,W=T.selectComponentClass,F=T.buildOptionText,I=T.selectPrefixCls,K=T.disabled,ee=this.state.goInputText,he="".concat(N,"-options"),de=W,Se=null,Te=null,ce=null;if(!V&&!H)return null;var be=this.getPageSizeOptions();if(V&&de){var ye=be.map(function(ue,se){return e.a.createElement(de.Option,{key:se,value:ue.toString()},(F||v.buildOptionText)(ue))});Se=e.a.createElement(de,{disabled:K,prefixCls:I,showSearch:!1,className:"".concat(he,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(U||be[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},ye)}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")},L.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},D)),Te=e.a.createElement("div",{className:"".concat(he,"-quick-jumper")},L.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),L.page,ce)),e.a.createElement("li",{className:"".concat(he)},Se,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 L=S.defaultCurrent;"current"in S&&(L=S.current);var N=S.defaultPageSize;return"pageSize"in S&&(N=S.pageSize),L=Math.min(L,w(N,void 0,S)),v.state={current:L,currentInputValue:L,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 L=this.paginationNode.querySelector(".".concat(U,"-item-").concat(T.current));L&&document.activeElement===L&&L.blur()}}},{key:"getValidValue",value:function(v){var T=v.target.value,U=w(void 0,this.state,this.props),L=this.state.currentInputValue,N;return T===""?N=T:isNaN(Number(T))?N=L:T>=U?N=U:N=Number(T),N}},{key:"getShowSizeChanger",value:function(){var v=this.props,T=v.showSizeChanger,U=v.total,L=v.totalBoundaryShowSizeChanger;return typeof T!="undefined"?T:U>L}},{key:"renderPrev",value:function(v){var T=this.props,U=T.prevIcon,L=T.itemRender,N=L(v,"prev",this.getItemIcon(U,"prev page")),V=!this.hasPrev();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"renderNext",value:function(v){var T=this.props,U=T.nextIcon,L=T.itemRender,N=L(v,"next",this.getItemIcon(U,"next page")),V=!this.hasNext();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"render",value:function(){var v=this,T=this.props,U=T.prefixCls,L=T.className,N=T.style,V=T.disabled,H=T.hideOnSinglePage,D=T.total,W=T.locale,F=T.showQuickJumper,I=T.showLessItems,K=T.showTitle,ee=T.showTotal,he=T.simple,de=T.itemRender,Se=T.showPrevNextJumpers,Te=T.jumpPrevIcon,ce=T.jumpNextIcon,be=T.selectComponentClass,ye=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),Oe=[],le=null,te=null,Q=null,J=null,ve=null,_e=F&&F.goButton,Ae=I?1:2,Je=$-1>0?$-1:0,tt=$+1<ae?$+1:ae,ut=Object.keys(this.props).reduce(function(Ce,Le){return(Le.substr(0,5)==="data-"||Le.substr(0,5)==="aria-"||Le==="role")&&(Ce[Le]=v.props[Le]),Ce},{});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(g.a)({},"".concat(U,"-disabled"),V),L),style:N,ref:this.savePaginationNode},ut),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(g.a)({},"".concat(U,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Je)),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(g.a)({},"".concat(U,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(tt)),ve);if(ae<=3+Ae*2){var ft={locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:K,itemRender:de};ae||Oe.push(e.a.createElement(n,Object(M.a)({},ft,{key:"noPager",page:ae,className:"".concat(U,"-disabled")})));for(var vt=1;vt<=ae;vt+=1){var _t=$===vt;Oe.push(e.a.createElement(n,Object(M.a)({},ft,{key:vt,page:vt,active:_t})))}}else{var Ve=I?W.prev_3:W.prev_5,je=I?W.next_3:W.next_5;Se&&(le=e.a.createElement("li",{title:K?Ve:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(U,"-jump-prev"),Object(g.a)({},"".concat(U,"-jump-prev-custom-icon"),!!Te))},de(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(g.a)({},"".concat(U,"-jump-next-custom-icon"),!!ce))},de(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:de}),Q=e.a.createElement(n,{locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:K,itemRender:de});var ht=Math.max(1,$-Ae),Bt=Math.min($+Ae,ae);$-1<=Ae&&(Bt=1+Ae*2),ae-$<=Ae&&(ht=ae-Ae*2);for(var Et=ht;Et<=Bt;Et+=1){var Pt=$===Et;Oe.push(e.a.createElement(n,{locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Et,page:Et,active:Pt,showTitle:K,itemRender:de}))}$-1>=Ae*2&&$!==1+2&&(Oe[0]=Object(m.cloneElement)(Oe[0],{className:"".concat(U,"-item-after-jump-prev")}),Oe.unshift(le)),ae-$>=Ae*2&&$!==ae-2&&(Oe[Oe.length-1]=Object(m.cloneElement)(Oe[Oe.length-1],{className:"".concat(U,"-item-before-jump-next")}),Oe.push(te)),ht!==1&&Oe.unshift(Q),Bt!==ae&&Oe.push(J)}var qe=null;ee&&(qe=e.a.createElement("li",{className:"".concat(U,"-total-text")},ee(D,[D===0?0:($-1)*me+1,$*me>D?D:$*me])));var He=!this.hasPrev()||!ae,Ye=!this.hasNext()||!ae;return e.a.createElement("ul",Object(M.a)({className:a()(U,L,Object(g.a)({},"".concat(U,"-disabled"),V)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},ut),qe,e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:He?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(U,"-prev"),Object(g.a)({},"".concat(U,"-disabled"),He)),"aria-disabled":He},this.renderPrev(Je)),Oe,e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:Ye?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(U,"-next"),Object(g.a)({},"".concat(U,"-disabled"),Ye)),"aria-disabled":Ye},this.renderNext(tt)),e.a.createElement(c,{disabled:V,locale:W,rootPrefixCls:U,selectComponentClass:be,selectPrefixCls:ye,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 L=T.current,N=w(v.pageSize,T,v);L=L>N?N:L,"current"in v||(U.current=L,U.currentInputValue=L),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"),g=o("n6Qo");o.d(z,"b",function(){return g.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,g;(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(I,K){return K.indexOf(I)!==-1}function w(I){return I.replace(/^\s+/g,"")}function E(I){for(var K={},ee=0;ee<I.length;ee++)K[I[ee].replace(/-/g,"_")]=I[ee];return K}function _(I,K){return I&&I.type===s.RESERVED&&I.text===K}function P(I,K){return I&&I.type===s.RESERVED&&u(I.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(I,K){if(K.multiline_frame||K.mode===T.ForInitializer||K.mode===T.Conditional)return;I.remove_indent(K.start_line_index)}function L(I){I=I.replace(i.allLineBreaks,`
|
|
|
`);for(var K=[],ee=I.indexOf(`
|
|
|
`);ee!==-1;)K.push(I.substring(0,ee)),I=I.substring(ee+1),ee=I.indexOf(`
|
|
|
`);return I.length&&K.push(I),K}function N(I){return I===T.ArrayLiteral}function V(I){return u(I,[T.Expression,T.ForInitializer,T.Conditional])}function H(I,K){for(var ee=0;ee<I.length;ee++){var he=I[ee].trim();if(he.charAt(0)!==K)return!1}return!0}function D(I,K){for(var ee=0,he=I.length,de;ee<he;ee++)if(de=I[ee],de&&de.indexOf(K)!==0)return!1;return!0}function W(I,K){K=K||{},this._source_text=I||"",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(I,K){var ee=0;I&&(ee=I.indentation_level,!this._output.just_added_newline()&&I.line_indent_level>ee&&(ee=I.line_indent_level));var he={mode:K,parent:I,last_token:I?I.last_token:new n(s.START_BLOCK,""),last_word:I?I.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:ee,alignment:0,line_indent_level:I?I.line_indent_level:ee,start_line_index:this._output.get_line_number(),ternary_depth:0};return he},W.prototype._reset=function(I){var K=I.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(I,this._options);return this._tokens=ee.tokenize(),I},W.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I,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 I=this._output.get_code(ee),I},W.prototype.handle_token=function(I,K){I.type===s.START_EXPR?this.handle_start_expr(I):I.type===s.END_EXPR?this.handle_end_expr(I):I.type===s.START_BLOCK?this.handle_start_block(I):I.type===s.END_BLOCK?this.handle_end_block(I):I.type===s.WORD?this.handle_word(I):I.type===s.RESERVED?this.handle_word(I):I.type===s.SEMICOLON?this.handle_semicolon(I):I.type===s.STRING?this.handle_string(I):I.type===s.EQUALS?this.handle_equals(I):I.type===s.OPERATOR?this.handle_operator(I):I.type===s.COMMA?this.handle_comma(I):I.type===s.BLOCK_COMMENT?this.handle_block_comment(I,K):I.type===s.COMMENT?this.handle_comment(I,K):I.type===s.DOT?this.handle_dot(I):I.type===s.EOF?this.handle_eof(I):I.type===s.UNKNOWN?this.handle_unknown(I,K):this.handle_unknown(I,K)},W.prototype.handle_whitespace_and_comments=function(I,K){var ee=I.newlines,he=this._options.keep_array_indentation&&N(this._flags.mode);if(I.comments_before)for(var de=I.comments_before.next();de;)this.handle_whitespace_and_comments(de,K),this.handle_token(de,K),de=I.comments_before.next();if(he)for(var Se=0;Se<ee;Se+=1)this.print_newline(Se>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(I,K){if(K=K===void 0?!1:K,this._output.just_added_newline())return;var ee=this._options.preserve_newlines&&I.newlines||K,he=u(this._flags.last_token.text,d)||u(I.text,d);if(he){var de=u(this._flags.last_token.text,d)&&u(this._options.operator_position,v)||u(I.text,d);ee=ee&&de}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(I,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(I)&&(this._flags.multiline_frame=!0)},W.prototype.print_token_line_indentation=function(I){this._output.just_added_newline()&&(this._options.keep_array_indentation&&I.newlines&&(I.text==="["||N(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(I.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},W.prototype.print_token=function(I){if(this._output.raw){this._output.add_raw_token(I);return}if(this._options.comma_first&&I.previous&&I.previous.type===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(I),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(I),this._output.non_breaking_space=!0,this._output.add_token(I.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},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(I){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,I),this._flags=this.create_flags(this._previous_flags,I),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},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(I){var K=!1;return K=K||P(this._flags.last_token,["var","let","const"])&&I.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)&&!I.newlines,K=K||_(this._flags.last_token,"else")&&!(_(I,"if")&&!I.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&&!(I.text==="--"||I.text==="++")&&this._last_last_text!=="function"&&I.type!==s.WORD&&I.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(I,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I,P(I,["do","for","if","while"])),!0):!1},W.prototype.handle_start_expr=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I);var K=T.Expression;if(I.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(I),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"&&I.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(I);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(I);(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(I,I.newlines),this.print_token(I),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},W.prototype.handle_end_expr=function(I){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(I,I.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(I),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(I){this.handle_whitespace_and_comments(I);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==="}",de=he&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var Se=0,Te=null;this._flags.inline_frame=!0;do if(Se+=1,Te=this._tokens.peek(Se-1),Te.newlines){this._flags.inline_frame=!1;break}while(Te.type!==s.EOF&&!(Te.type===s.END_BLOCK&&Te.opened===I))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(de||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(I),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==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(I),this.indent(),!he&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},W.prototype.handle_end_block=function(I){for(this.handle_whitespace_and_comments(I);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(I)},W.prototype.handle_word=function(I){if(I.type===s.RESERVED){if(u(I.text,["set","get"])&&this._flags.mode!==T.ObjectLiteral)I.type=s.WORD;else if(I.text==="import"&&u(this._tokens.peek().text,["(","."]))I.type=s.WORD;else if(u(I.text,["as","from"])&&!this._flags.import_block)I.type=s.WORD;else if(this._flags.mode===T.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(I.type=s.WORD)}}if(this.start_of_statement(I)?P(this._flags.last_token,["var","let","const"])&&I.type===s.WORD&&(this._flags.declaration_statement=!0):I.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(I),this.print_newline()):this.handle_whitespace_and_comments(I),this._flags.do_block&&!this._flags.do_while)if(_(I,"while")){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&_(I,"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(I,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(I),this._flags.in_case=!0;return}if((this._flags.last_token.type===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(I)),_(I,"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()&&!I.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(I),this._flags.last_word=I.text;return}var ee="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?ee="SPACE":P(I,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.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(I,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(I,["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"&&I.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(I,["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(I,["var","let","const"]))&&this._flags.last_token.text!==":"&&(_(I,"if")&&_(I.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(I,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);I.previous&&(I.previous.type===s.WORD||I.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(I),this._flags.last_word=I.text,I.type===s.RESERVED&&(I.text==="do"?this._flags.do_block=!0:I.text==="if"?this._flags.if_block=!0:I.text==="import"?this._flags.import_block=!0:this._flags.import_block&&_(I,"from")&&(this._flags.import_block=!1))},W.prototype.handle_semicolon=function(I){this.start_of_statement(I)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(I);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(I)},W.prototype.handle_string=function(I){I.text.startsWith("`")&&I.newlines===0&&I.whitespace_before===""&&(I.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(I)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(I),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(I):I.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(I.previous.text==="]"||I.previous.text===")")&&I.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(I)},W.prototype.handle_equals=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0},W.prototype.handle_comma=function(I){this.handle_whitespace_and_comments(I,!0),this.print_token(I),this._output.space_before_token=!0,this._flags.declaration_statement?(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(I)):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(I)},W.prototype.handle_operator=function(I){var K=I.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(I.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(I)){var he=!K;this.handle_whitespace_and_comments(I,he)}if(I.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(I);return}if(I.text==="::"){this.print_token(I);return}if(this._flags.last_token.type===s.OPERATOR&&u(this._options.operator_position,v)&&this.allow_wrap_or_preserved_newline(I),I.text===":"&&this._flags.in_case){this.print_token(I),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==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 de=!0,Se=!0,Te=!1;if(I.text===":"?this._flags.ternary_depth===0?de=!1:(this._flags.ternary_depth-=1,Te=!0):I.text==="?"&&(this._flags.ternary_depth+=1),!ee&&!K&&this._options.preserve_newlines&&u(I.text,d)){var ce=I.text===":",be=ce&&Te,ye=ce&&!Te;switch(this._options.operator_position){case S.before_newline:this._output.space_before_token=!ye,this.print_token(I),(!ce||be)&&this.allow_wrap_or_preserved_newline(I),this._output.space_before_token=!0;return;case S.after_newline:this._output.space_before_token=!0,!ce||be?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(I):this._output.space_before_token=!1,this.print_token(I),this._output.space_before_token=!0;return;case S.preserve_newline:ye||this.allow_wrap_or_preserved_newline(I),de=!(this._output.just_added_newline()||ye),this._output.space_before_token=de,this.print_token(I),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(I),de=!1;var ue=this._tokens.peek();Se=ue&&u(ue.type,[s.WORD,s.RESERVED])}else if(I.text==="...")this.allow_wrap_or_preserved_newline(I),de=this._flags.last_token.type===s.START_BLOCK,Se=!1;else if(u(I.text,["--","++","!","~"])||ee){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(I),de=!1,Se=!1,I.newlines&&(I.text==="--"||I.text==="++"||I.text==="~")){var se=P(this._flags.last_token,R)&&I.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)&&(de=!0),this._flags.last_token.type===s.RESERVED?de=!0:this._flags.last_token.type===s.END_EXPR?de=!(this._flags.last_token.text==="]"&&(I.text==="--"||I.text==="++")):this._flags.last_token.type===s.OPERATOR&&(de=u(I.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(I.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(Se=!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||de,this.print_token(I),this._output.space_before_token=Se},W.prototype.handle_block_comment=function(I,K){if(this._output.raw){this._output.add_raw_token(I),I.directives&&I.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(I.directives){this.print_newline(!1,K),this.print_token(I),I.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i.newline.test(I.text)&&!I.newlines){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0;return}else this.print_block_commment(I,K)},W.prototype.print_block_commment=function(I,K){var ee=L(I.text),he,de=!1,Se=!1,Te=I.whitespace_before,ce=Te.length;if(this.print_newline(!1,K),this.print_token_line_indentation(I),this._output.add_token(ee[0]),this.print_newline(!1,K),ee.length>1){for(ee=ee.slice(1),de=H(ee,"*"),Se=D(ee,Te),de&&(this._flags.alignment=1),he=0;he<ee.length;he++)de?(this.print_token_line_indentation(I),this._output.add_token(w(ee[he]))):Se&&ee[he]?(this.print_token_line_indentation(I),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(I,K){I.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(I),this.print_newline(!1,K)},W.prototype.handle_dot=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),P(this._flags.last_token,R)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(I,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(I)},W.prototype.handle_unknown=function(I,K){this.print_token(I),I.text[I.text.length-1]===`
|
|
|
`&&this.print_newline(!1,K)},W.prototype.handle_eof=function(I){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I)},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("|")+")$"),L,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(){L=!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 L=!0,this._create_token(u.COMMENT,D)}}else if(L&&H==="-"&&(D=this.__patterns.html_comment_end.read(),D))return L=!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,I=!1;this._input.hasNext()&&(F||I||this._input.peek()!==H)&&!this._input.testChar(c.newline);)W+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?I=!0:this._input.peek()==="]"&&(I=!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 I=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=I.indexOf("{")===0,ee=0;F;){var he=!!F[1],de=F[2],Se=!!F[F.length-1]||de.slice(0,8)==="![CDATA[";if(!Se&&(de===I||K&&de.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),I=null;F.hasNext();)if(I=F.match(/([\s]|[^\\]|\\\\)+/g),I&&(D+=I[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")I=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")I=F.match(/u([0-9A-Fa-f]{4})/g);else{D+="\\",F.hasNext()&&(D+=F.next());continue}if(!I)return H;if(W=parseInt(I[1],16),W>126&&W<=255&&I[0].indexOf("x")===0)return H;if(W>=0&&W<32){D+="\\"+I[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,I;H==="'"?I=this.__patterns.single_quote:H==='"'?I=this.__patterns.double_quote:H==="`"?I=this.__patterns.template_text:H==="}"&&(I=this.__patterns.template_expression);for(var K=I.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+=I.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 m=A(0);O=m})();var b=O;!(M=[],g=function(){return{js_beautify:b}}.apply(z,M),g!==void 0&&(k.exports=g))})()},"6eGT":function(k,z,o){"use strict";function M(g){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 g}),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 m}),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 g(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!m(s)}function m(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(m(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(g(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(!m(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),g=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(g)}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=[],m=0;m<256;++m)A.push((m+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"),g=o("0Owb"),O=o("+L6B"),b=o("2/Rp"),y=o("y8nQ"),C=o("Vl3Y"),A=o("tJVT"),m=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(L){v(u[L][1])}function U(L){_(L)}return a.a.createElement(C.a,Object(g.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(L){return a.a.createElement(d,{key:L,value:L},u[L][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),L=U[0],N=U[1];return Object(f.useEffect)(function(){if(L){function V(H){var D=H.getValue();P&&P(D)}return L.on("change",V),function(){L.off("change",V)}}},[L,P]),Object(f.useEffect)(function(){L&&L.setOption("mode",R)},[L,R]),Object(f.useEffect)(function(){L&&((_!==L.getValue()||_==="")&&setTimeout(function(){L.setValue(_||" ")},300))},[L,_]),Object(f.useEffect)(function(){if(v.current&&!L){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,L]),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},g=[0,0],O={left:{points:["cr","cl"],overflow:M,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:M,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:M,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:M,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:M,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:M,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:M,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:M,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:M,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:M,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:M,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:M,offset:[-4,0],targetOffset:g}},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"),g=o("VTBJ"),O=o("Ff2n"),b=o("Zm9Q"),y=o("Kwbf"),C=o("OZM5");function A(r,c){return r!=null?r:c}function m(){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(g.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(g.a)(Object(g.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,L={node:R,index:x,key:v,pos:S,level:U},N=A(v,S);w[S]=L,E[N]=L,L.parent=w[T],L.parent&&(L.parent.children=L.parent.children||[],L.parent.children.push(L)),d&&d(L,_)},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(g.a)(Object(g.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 g=0;g<M.modeInfo.length;g++){var O=M.modeInfo[g];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("."),m=A>-1&&b.substring(A+1,b.length);if(m)return M.findModeByExtension(m)},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 m}),o.d(z,"c",function(){return e});var M=o("MI8n"),g=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 g.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 g.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 m{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"),g=o("kLXV"),O=o("5NDa"),b=o("5rEg"),y=o("miYZ"),C=o("tsqr"),A=o("k1fw"),m=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,L=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),I=F[0],K=Object(c.i)(),ee=Object(c.h)(),he=Object(i.useRef)(),de=Object(i.useState)(""),Se=Object(a.a)(de,2),Te=Se[0],ce=Se[1],be=Object(i.useState)(""),ye=Object(a.a)(be,2),ue=ye[0],se=ye[1],$=Object(i.useState)([]),me=Object(a.a)($,2),re=me[0],ae=me[1],Oe=Object(i.useState)([]),le=Object(a.a)(Oe,2),te=le[0],Q=le[1];Object(i.useEffect)(function(){var tt,ut;he.current=((tt=ee.pathname)===null||tt===void 0||((ut=tt.split("/"))===null||ut===void 0)?void 0:ut[3])==="repository"},[]),Object(i.useEffect)(function(){if(_.actionTabs.key!=="Repository-SelectFilePath")return;var tt=T.join("/"),ut=[];T.map(function(ft,vt){vt===0?ut.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(ft),path:tt}):ut.push({val:"/".concat(ft),path:tt})}),ae(ut),ce(tt),se(tt),J(tt)},[_.actionTabs.key]);var J=function(){var tt=Object(m.a)(n.a.mark(function ut(ft){var vt;return n.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,x({type:he.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:K.id,path:ft}});case 2:vt=Ve.sent,vt&&Q(vt.trees||[]);case 4:case"end":return Ve.stop()}},ut)}));return function(ft){return tt.apply(this,arguments)}}(),ve=function(ut){var ft=Te;ut.type==="tree"&&(re.length?re.push({val:"/".concat(ut.name),path:ut.name}):re.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(ut.name),path:ut.name}),ae(re),ft=Te?"".concat(Te,"/").concat(ut.name):ut.name,ce(ft)),J(ft)},_e=function(ut,ft){var vt=re.filter(function(Ve,je){return je<=ft});ae(vt);var _t=vt.filter(function(Ve,je){return je!==0}).map(function(Ve){return Ve.val}).join("").substr(1);ce(_t),J(_t)},Ae=function(){var tt=Object(m.a)(n.a.mark(function ut(){var ft,vt,_t;return n.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(ft=I==null?void 0:I.getFieldsValue(),vt=Te?"".concat(Te).concat(ft!=null&&ft.name?"/".concat(ft==null?void 0:ft.name):""):ft==null?void 0:ft.name,!V){je.next=6;break}return D(vt),Je(),je.abrupt("return");case 6:if(!L){je.next=16;break}return je.next=9,I.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:Je();case 19:case"end":return je.stop()}},ut)}));return function(){return tt.apply(this,arguments)}}(),Je=function(){x({type:"shixunsDetail/setActionTabs",payload:{}}),I.resetFields()};return r.a.createElement(g.a,{centered:!0,title:S||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:_.actionTabs.key==="Repository-SelectFilePath",onOk:Ae,onCancel:Je},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,ut){return r.a.createElement("a",{key:ut,onClick:function(){return _e(tt,ut)}},tt.val)})),!!(te!=null&&te.length)&&te.map(function(tt,ut){return tt.type==="tree"&&r.a.createElement("a",{key:ut,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),L&&r.a.createElement(f.a,{form:I,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"),g=o("1OyB"),O=o("vuIU"),b=o("Ji7U"),y=o("md7G"),C=o("foSv"),A=o("q1tI"),m=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,L=U.body,N=U&&U.documentElement,V=S.getBoundingClientRect();return v=V.left,T=V.top,v-=N.clientLeft||L.clientLeft||0,T-=N.clientTop||L.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),L;if(v){var N=Object(C.a)(this).constructor;L=Reflect.construct(U,arguments,N)}else L=U.apply(this,arguments);return Object(y.a)(this,L)}}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(g.a)(this,T),U=v.apply(this,arguments),U.onHover=function(L){var N=U.props,V=N.onHover,H=N.index;V(L,H)},U.onClick=function(L){var N=U.props,V=N.onClick,H=N.index;V(L,H)},U.onKeyDown=function(L){var N=U.props,V=N.onClick,H=N.index;L.keyCode===13&&V(L,H)},U}return Object(O.a)(T,[{key:"getClassName",value:function(){var L=this.props,N=L.prefixCls,V=L.index,H=L.value,D=L.allowHalf,W=L.focused,F=V+1,I=N;return H===0&&V===0&&W?I+=" ".concat(N,"-focused"):D&&H+.5>=F&&H<F?(I+=" ".concat(N,"-half ").concat(N,"-active"),W&&(I+=" ".concat(N,"-focused"))):(I+=F<=H?" ".concat(N,"-full"):" ".concat(N,"-zero"),F===H&&W&&(I+=" ".concat(N,"-focused"))),I}},{key:"render",value:function(){var L=this.onHover,N=this.onClick,V=this.onKeyDown,H=this.props,D=H.disabled,W=H.prefixCls,F=H.character,I=H.characterRender,K=H.index,ee=H.count,he=H.value,de=typeof F=="function"?F(this.props):F,Se=m.a.createElement("li",{className:this.getClassName()},m.a.createElement("div",{onClick:D?null:N,onKeyDown:D?null:V,onMouseMove:D?null:L,role:"radio","aria-checked":he>K?"true":"false","aria-posinset":K+1,"aria-setsize":ee,tabIndex:D?-1:0},m.a.createElement("div",{className:"".concat(W,"-first")},de),m.a.createElement("div",{className:"".concat(W,"-second")},de)));return I&&(Se=I(Se,this.props)),Se}}]),T}(m.a.Component);function s(S,v){var T=Object.keys(S);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(S);v&&(U=U.filter(function(L){return Object.getOwnPropertyDescriptor(S,L).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),L;if(v){var N=Object(C.a)(this).constructor;L=Reflect.construct(U,arguments,N)}else L=U.apply(this,arguments);return Object(y.a)(this,L)}}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 L;Object(g.a)(this,T),L=v.call(this,U),L.onHover=function(V,H){var D=L.props.onHoverChange,W=L.getStarValue(H,V.pageX),F=L.state.cleanedValue;W!==F&&L.setState({hoverValue:W,cleanedValue:null}),D(W)},L.onMouseLeave=function(){var V=L.props.onHoverChange;L.setState({hoverValue:void 0,cleanedValue:null}),V(void 0)},L.onClick=function(V,H){var D=L.props.allowClear,W=L.state.value,F=L.getStarValue(H,V.pageX),I=!1;D&&(I=F===W),L.onMouseLeave(),L.changeValue(I?0:F),L.setState({cleanedValue:I?F:null})},L.onFocus=function(){var V=L.props.onFocus;L.setState({focused:!0}),V&&V()},L.onBlur=function(){var V=L.props.onBlur;L.setState({focused:!1}),V&&V()},L.onKeyDown=function(V){var H=V.keyCode,D=L.props,W=D.count,F=D.allowHalf,I=D.onKeyDown,K=D.direction,ee=K==="rtl",he=L.state.value;H===l.a.RIGHT&&he<W&&!ee?(F?he+=.5:he+=1,L.changeValue(he),V.preventDefault()):H===l.a.LEFT&&he>0&&!ee||H===l.a.RIGHT&&he>0&&ee?(F?he-=.5:he-=1,L.changeValue(he),V.preventDefault()):H===l.a.LEFT&&he<W&&ee&&(F?he+=.5:he+=1,L.changeValue(he),V.preventDefault()),I&&I(V)},L.saveRef=function(V){return function(H){L.stars[V]=H}},L.saveRate=function(V){L.rate=V};var N=U.value;return N===void 0&&(N=U.defaultValue),L.stars={},L.state={value:N,focused:!1,cleanedValue:null},L}return Object(O.a)(T,[{key:"componentDidMount",value:function(){var L=this.props,N=L.autoFocus,V=L.disabled;N&&!V&&this.focus()}},{key:"getStarDOM",value:function(L){return Object(e.a)(this.stars[L])}},{key:"getStarValue",value:function(L,N){var V=this.props,H=V.allowHalf,D=V.direction,W=D==="rtl",F=L+1;if(H){var I=this.getStarDOM(L),K=r(I),ee=I.clientWidth;(W&&N-K>ee/2||!W&&N-K<ee/2)&&(F-=.5)}return F}},{key:"focus",value:function(){var L=this.props.disabled;L||this.rate.focus()}},{key:"blur",value:function(){var L=this.props.disabled;L||this.rate.blur()}},{key:"changeValue",value:function(L){var N=this.props.onChange;"value"in this.props||this.setState({value:L}),N(L)}},{key:"render",value:function(){for(var L=this.props,N=L.count,V=L.allowHalf,H=L.style,D=L.prefixCls,W=L.disabled,F=L.className,I=L.character,K=L.characterRender,ee=L.tabIndex,he=L.direction,de=this.state,Se=de.value,Te=de.hoverValue,ce=de.focused,be=[],ye=W?"".concat(D,"-disabled"):"",ue=0;ue<N;ue+=1)be.push(m.a.createElement(d,{ref:this.saveRef(ue),index:ue,count:N,disabled:W,prefixCls:"".concat(D,"-star"),allowHalf:V,value:Te===void 0?Se:Te,onClick:this.onClick,onHover:this.onHover,key:ue,character:I,characterRender:K,focused:ce}));var se=a()(D,ye,F,Object(M.a)({},"".concat(D,"-rtl"),he==="rtl"));return m.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"},be)}}],[{key:"getDerivedStateFromProps",value:function(L,N){return"value"in L&&L.value!==void 0?u(u({},N),{},{value:L.value}):N}}]),T}(m.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"),g=o("zeV3"),O=o("+L6B"),b=o("2/Rp"),y=o("k1fw"),C=o("9og8"),A=o("tJVT"),m=o("WmNS"),e=o.n(m),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(De){var fe=De.match(/^\s+/);if(fe===null)return De;var ot=Object(A.a)(fe,1),Zt=ot[0];return Zt.length>=oe.length?De.slice(oe.length):De}).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 De=pe[X];oe.push("<li><a href='#"+De.anchor+"'>"+De.text+"</a>"),X++;var fe=[];return X=_(pe,X,De.level,fe),fe.length>0&&(oe.push("<ul>"),fe.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],De=c(oe,q[3]||""),fe=q[2]?q[2].trim():q[2];if(["latex","katex","math"].indexOf(fe)>=0){var ot=v(),Zt=De;De=ot,T[ot]={type:"block",expression:Zt}}return{type:"code",raw:oe,lang:fe,text:De}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,S=0,v=function(){return"__special_katext_id_".concat(S++,"__")},T={};function U(){return T}function L(){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"),I=o("ulZh"),K=o.n(I),ee=o("m3rI"),he=o("Oy/b"),de=o("p5ED"),Se=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 De in oe)Object.prototype.hasOwnProperty.call(oe,De)&&(q[De]=oe[De])})(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 be(pe,X,q,oe){return new(q||(q=Promise))(function(De,fe){function ot(Vn){try{Mn(oe.next(Vn))}catch(qt){fe(qt)}}function Zt(Vn){try{Mn(oe.throw(Vn))}catch(qt){fe(qt)}}function Mn(Vn){var qt;Vn.done?De(Vn.value):(qt=Vn.value,qt instanceof q?qt:new q(function(En){En(qt)})).then(ot,Zt)}Mn((oe=oe.apply(pe,X||[])).next())})}function ye(pe,X){var q,oe,De,fe,ot={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return fe={next:Zt(0),throw:Zt(1),return:Zt(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Zt(Mn){return function(Vn){return function(qt){if(q)throw new TypeError("Generator is already executing.");for(;ot;)try{if(q=1,oe&&(De=2&qt[0]?oe.return:qt[0]?oe.throw||((De=oe.return)&&De.call(oe),0):oe.next)&&!(De=De.call(oe,qt[1])).done)return De;switch(oe=0,De&&(qt=[2&qt[0],De.value]),qt[0]){case 0:case 1:De=qt;break;case 4:return ot.label++,{value:qt[1],done:!1};case 5:ot.label++,oe=qt[1],qt=[0];continue;case 7:qt=ot.ops.pop(),ot.trys.pop();continue;default:if(!(De=ot.trys,(De=De.length>0&&De[De.length-1])||qt[0]!==6&&qt[0]!==2)){ot=0;continue}if(qt[0]===3&&(!De||qt[1]>De[0]&&qt[1]<De[3])){ot.label=qt[1];break}if(qt[0]===6&&ot.label<De[1]){ot.label=De[1],De=qt;break}if(De&&ot.label<De[2]){ot.label=De[2],ot.ops.push(qt);break}De[2]&&ot.ops.pop(),ot.trys.pop();continue}qt=X.call(pe,ot)}catch(En){qt=[6,En],oe=0}finally{q=De=0}if(5&qt[0])throw qt[1];return{value:qt[0]?qt[1]:void 0,done:!0}}([Mn,Vn])}}}function ue(){for(var pe=0,X=0,q=arguments.length;X<q;X++)pe+=arguments[X].length;var oe=Array(pe),De=0;for(X=0;X<q;X++)for(var fe=arguments[X],ot=0,Zt=fe.length;ot<Zt;ot++,De++)oe[De]=fe[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,De=q;oe<De.length;oe++){var fe=De[oe],ot=fe[0],Zt=fe[1];X.setAttribute(ot,Zt)}},pe.createRect=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","rect");return De.setAttribute("width",X.toString()),De.setAttribute("height",q.toString()),oe&&pe.setAttributes(De,oe),De},pe.createLine=function(X,q,oe,De,fe){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",De.toString()),fe&&pe.setAttributes(ot,fe),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 De=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return De.setAttribute("cx",(X/2).toString()),De.setAttribute("cy",(q/2).toString()),De.setAttribute("rx",(X/2).toString()),De.setAttribute("ry",(q/2).toString()),oe&&pe.setAttributes(De,oe),De},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,De,fe,ot,Zt){var Mn=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Mn,[["id",X],["orient",q],["markerWidth",oe.toString()],["markerHeight",De.toString()],["refX",fe.toString()],["refY",ot.toString()]]),Mn.appendChild(Zt),Mn},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 De=this;return new Promise(function(fe){var ot=oe!==void 0?oe:document.createElement("canvas");X===null&&(De.markersOnly=!0,De.naturalSize=!1);var Zt=document.createElementNS("http://www.w3.org/2000/svg","svg");Zt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Zt.setAttribute("width",q.width.baseVal.valueAsString),Zt.setAttribute("height",q.height.baseVal.valueAsString),Zt.setAttribute("viewBox","0 0 "+q.viewBox.baseVal.width.toString()+" "+q.viewBox.baseVal.height.toString()),Zt.innerHTML=q.innerHTML,De.naturalSize===!0?(Zt.width.baseVal.value=X.naturalWidth,Zt.height.baseVal.value=X.naturalHeight):De.width!==void 0&&De.height!==void 0&&(Zt.width.baseVal.value=De.width,Zt.height.baseVal.value=De.height),ot.width=Zt.width.baseVal.value,ot.height=Zt.height.baseVal.value;var Mn=Zt.outerHTML,Vn=ot.getContext("2d");De.markersOnly!==!0&&Vn.drawImage(X,0,0,ot.width,ot.height);var qt=window.URL,En=new Image(ot.width,ot.height);En.setAttribute("crossOrigin","anonymous");var un=new Blob([Mn],{type:"image/svg+xml"}),jr=qt.createObjectURL(un);En.onload=function(){Vn.drawImage(En,0,0),qt.revokeObjectURL(jr);var aa=ot.toDataURL(De.imageType,De.imageQuality);fe(aa)},En.src=jr})},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 Oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Oe("@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}(),Oe=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,De,fe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=X,this.displayMode=q,this.markerItems=oe,this.uiStyleSettings=De,this.styles=fe,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(fe){var ot=document.createElement("div");ot.className=""+q.toolbarButtonStyleClass.name,ot.setAttribute("data-type-name",fe.typeName),ot.innerHTML=fe.icon,ot.addEventListener("click",function(){q.markerToolbarButtonClicked(ot,fe)}),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 De=document.createElement("div");De.className=this.toolbarBlockStyleClass.name,De.style.whiteSpace="nowrap",De.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(De),this.addActionButton(De,'<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(De,'<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 De=this,fe=document.createElement("div");switch(fe.className=""+this.toolbarButtonStyleClass.name,fe.innerHTML=q,fe.setAttribute("data-action",oe),fe.addEventListener("click",function(){De.actionToolbarButtonClicked(fe,oe)}),oe){case"select":fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":fe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":fe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":fe.style.fill=this.uiStyleSettings.closeButtonColor}X.appendChild(fe),this.buttons.push(fe)},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 Oe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Oe("."+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,De){this.panels=[],this.panelButtons=[],this.markerjsContainer=X,this.displayMode=q,this.uiStyleSettings=oe,this.styles=De,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 Oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Oe("."+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,De=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(fe){var ot;fe.uiStyleSettings=De.uiStyleSettings;var Zt=document.createElement("div");Zt.className=De.toolboxButtonStyleClass.name+" "+((ot=De.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ot!==void 0?ot:De.toolboxButtonStyleColorsClass.name),Zt.innerHTML=fe.icon,Zt.title=fe.title,Zt.addEventListener("click",function(){De.panelButtonClick(fe)}),De.panelButtons.push(Zt),De.buttonRow.appendChild(Zt)}),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 De=X.getUi();De.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(De),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(fe,ot){var Zt,Mn;fe.className=q.toolboxButtonStyleClass.name+" "+(ot===oe?""+((Zt=q.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Zt!==void 0?Zt:q.toolboxActiveButtonStyleColorsClass.name):""+((Mn=q.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Mn!==void 0?Mn:q.toolboxButtonStyleColorsClass.name))})},pe}(),J=function(pe,X){this.title=pe,this.icon=X},ve=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'<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=De,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(De){var fe=q.getColorBox(De);oe.appendChild(fe),q.colorBoxes.push(fe)}),oe},X.prototype.getColorBox=function(q){var oe=this,De=this.uiStyleSettings.toolbarHeight/4,fe=this.uiStyleSettings.toolbarHeight-De,ot=document.createElement("div");ot.style.display="inline-block",ot.style.boxSizing="content-box",ot.style.width=fe-2+"px",ot.style.height=fe-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=(fe+2)/2+"px",ot.style.borderColor=q===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ot.addEventListener("click",function(){oe.setCurrentColor(q,ot)});var Zt=document.createElement("div");return Zt.style.display="inline-block",Zt.style.width=fe-2+"px",Zt.style.height=fe-2+"px",Zt.style.backgroundColor=q,Zt.style.borderRadius=fe/2+"px",q==="transparent"&&(Zt.style.fill=this.uiStyleSettings.toolboxAccentColor,Zt.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(Zt),ot},X.prototype.setCurrentColor=function(q,oe){var De=this;this.currentColor=q,this.colorBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.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}(),Ae=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}(),Je=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}(),ut=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.left=0,fe.top=0,fe.width=0,fe.height=0,fe.defaultSize={x:50,y:20},fe.offsetX=0,fe.offsetY=0,fe.rotationAngle=0,fe.CB_DISTANCE=10,fe._suppressMarkerCreateEvent=!1,fe.container.transform.baseVal.appendItem(se.createTransform()),fe.setupControlBox(),fe}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 De=this.unrotatePoint(q);if(this.manipulationStartX=De.x,this.manipulationStartY=De.y,this.offsetX=De.x-this.left,this.offsetY=De.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 fe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=fe.x-this.width/2,this.top=fe.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,De=this.manipulationStartWidth,fe=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,De=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:De=this.manipulationStartWidth+q.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:fe=this.manipulationStartTop+q.y-this.manipulationStartY,ot=this.manipulationStartHeight+this.manipulationStartTop-fe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ot=this.manipulationStartHeight+q.y-this.manipulationStartY}De>=0?(this.left=oe,this.width=De):(this.left=oe+De,this.width=-De),ot>=0?(this.top=fe,this.height=ot):(this.top=fe+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(),De=se.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.y}},X.prototype.unrotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM();oe=oe.inverse();var De=se.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.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 Ae,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 Je;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,De=oe,fe=(this.width+this.CB_DISTANCE)/2-q/2,ot=(this.height+this.CB_DISTANCE)/2-q/2,Zt=this.height+this.CB_DISTANCE-q/2,Mn=this.width+this.CB_DISTANCE-q/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,De),this.positionGrip(this.controlGrips.topCenter.visual,fe,De),this.positionGrip(this.controlGrips.topRight.visual,Mn,De),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ot),this.positionGrip(this.controlGrips.centerRight.visual,Mn,ot),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Zt),this.positionGrip(this.controlGrips.bottomCenter.visual,fe,Zt),this.positionGrip(this.controlGrips.bottomRight.visual,Mn,Zt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,fe,De-3*this.CB_DISTANCE)},X.prototype.positionGrip=function(q,oe,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,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 De=this.rotatePoint({x:this.left,y:this.top}),fe=this.unrotatePoint({x:De.x*q,y:De.y*oe});this.left=fe.x,this.top=fe.y,this.width=this.width*q,this.height=this.height*oe,this.adjustControlBox()},X}(_e),ft=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor="transparent",fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.opacity=1,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setFillColor=fe.setFillColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.createVisual=fe.createVisual.bind(fe),fe}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}(ut),vt=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'<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=De,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(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.flexGrow="2",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentWidth?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentWidth(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.innerText=De.toString(),ot.style.marginRight="5px",fe.appendChild(ot);var Zt=document.createElement("div");Zt.style.minHeight="20px",Zt.style.flexGrow="2",Zt.style.display="flex",Zt.style.alignItems="center";var Mn=document.createElement("hr");Mn.style.minWidth="20px",Mn.style.border="0px",Mn.style.borderTop=De+"px solid "+q.uiStyleSettings.toolboxColor,Mn.style.flexGrow="2",Zt.appendChild(Mn),fe.appendChild(Zt),q.widthBoxes.push(fe)}),oe},X.prototype.setCurrentWidth=function(q,oe){var De=this;this.currentWidth=q,this.widthBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},X}(J),_t=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'<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=De,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(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.styles.length-5+"%",fe.style.borderColor=De===q.currentStyle?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentStyle(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.overflow="hidden";var Zt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+q.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(De!==""?'stroke-dasharray="'+De+'"':"")+` />
|
|
|
</svg>`;ot.innerHTML=Zt,fe.appendChild(ot),q.styleBoxes.push(fe)}),oe},X.prototype.setCurrentStyle=function(q,oe){var De=this;this.currentStyle=q,this.styleBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},X}(J),Ve=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new _t("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}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}(ft),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,De){var fe=pe.call(this,q,oe,De)||this;return fe.x1=0,fe.y1=0,fe.x2=0,fe.y2=0,fe.defaultLength=50,fe.manipulationStartX=0,fe.manipulationStartY=0,fe.manipulationStartX1=0,fe.manipulationStartY1=0,fe.manipulationStartX2=0,fe.manipulationStartY2=0,fe.setupControlBox(),fe}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 Je;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,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,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,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new _t("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}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,De,fe){var ot=pe.call(this,q,fe||'<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=De,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(De){var fe=document.createElement("div");fe.style.display="inline-block",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.fonts.length-5+"%",fe.style.borderColor=De===q.currentFont?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentFont(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.style.display="flex",ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.fontFamily=De,ot.style.overflow="hidden";var Zt=document.createElement("div");Zt.style.whiteSpace="nowrap",Zt.style.overflow="hidden",Zt.style.textOverflow="ellipsis",Zt.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Zt),fe.appendChild(ot),q.fontBoxes.push(fe)}),oe},X.prototype.setCurrentFont=function(q,oe){var De=this;this.currentFont=q,this.fontBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},X}(J),Pt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.padding=5,fe.DEFAULT_TEXT="your text here",fe.text=fe.DEFAULT_TEXT,fe.isMoved=!1,fe.color=De.defaultColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setColor=fe.setColor.bind(fe),fe.setFont=fe.setFont.bind(fe),fe.renderText=fe.renderText.bind(fe),fe.sizeText=fe.sizeText.bind(fe),fe.textEditDivClicked=fe.textEditDivClicked.bind(fe),fe.showTextEditor=fe.showTextEditor.bind(fe),fe.setSize=fe.setSize.bind(fe),fe.positionTextEditor=fe.positionTextEditor.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.fontFamilyPanel=new Et("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe}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(De){De===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 De=(1*this.width-this.width*this.padding*2/100)/q.width,fe=(1*this.height-this.height*this.padding*2/100)/q.height;oe=Math.min(De,fe)}return oe},X.prototype.getTextPosition=function(q){var oe=this.textElement.getBBox(),De=0,fe=0;return oe.width>0&&oe.height>0&&(De=(this.width-oe.width*q)/2,fe=this.height/2-oe.height*q/2),{x:De,y:fe}},X.prototype.sizeText=function(){var q=this.textElement.getBBox(),oe=this.getTextScale(),De=this.getTextPosition(oe);De.y-=q.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+De.x+"px, "+De.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(De.x,De.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 De=oe.clipboardData.getData("text"),fe=window.getSelection();if(!fe.rangeCount)return!1;fe.deleteFromDocument(),fe.getRangeAt(0).insertNode(document.createTextNode(De)),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}),De=this.textElement.getBBox(),fe={x:De.width*q,y:De.height*q};oe.x-=fe.x/2,oe.y-=fe.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}(ut),qe=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.lineWidth=3,fe.drawing=!1,fe.pixelRatio=1,fe.color=De.defaultColor,fe.lineWidth=De.defaultStrokeWidth,fe.pixelRatio=De.freehandPixelRatio,fe.setColor=fe.setColor.bind(fe),fe.addCanvas=fe.addCanvas.bind(fe),fe.finishCreation=fe.finishCreation.bind(fe),fe.setLineWidth=fe.setLineWidth.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.lineWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.lineWidthPanel.onWidthChanged=fe.setLineWidth,fe}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],De=oe[0],fe=oe[1],ot=oe[2],Zt=oe[3],Mn=!1,Vn=0;Vn<this.canvasElement.height;Vn++)for(var qt=0;qt<this.canvasElement.width;qt++)q.data[Vn*this.canvasElement.width*4+4*qt+3]>0&&(Mn=!0,Vn<fe&&(fe=Vn),qt<De&&(De=qt),Vn>Zt&&(Zt=Vn),qt>ot&&(ot=qt));if(Mn){this.left=De/this.pixelRatio,this.top=fe/this.pixelRatio,this.width=(ot-De)/this.pixelRatio,this.height=(Zt-fe)/this.pixelRatio;var En=document.createElement("canvas");En.width=ot-De,En.height=Zt-fe,En.getContext("2d").putImageData(this.canvasContext.getImageData(De,fe,ot-De,Zt-fe),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}(ut),He=function(pe){function X(q,oe,De){var fe=pe.call(this,q,De||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return fe.typeBoxes=[],fe.currentType=oe,fe.setCurrentType=fe.setCurrentType.bind(fe),fe}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 De=function(Zt){var Mn="both";switch(Zt){case 0:Mn="both";break;case 1:Mn="start";break;case 2:Mn="end";break;case 3:Mn="none"}var Vn=document.createElement("div");if(Vn.style.display="flex",Vn.style.flexGrow="2",Vn.style.alignItems="center",Vn.style.justifyContent="space-between",Vn.style.padding="5px",Vn.style.borderWidth="2px",Vn.style.borderStyle="solid",Vn.style.borderColor=Mn===fe.currentType?fe.uiStyleSettings.toolboxAccentColor:"transparent",Vn.addEventListener("click",function(){q.setCurrentType(Mn,Vn)}),oe.appendChild(Vn),Mn==="both"||Mn==="start"){var qt=document.createElement("div");qt.style.display="flex",qt.style.alignItems="center",qt.style.minHeight="20px",qt.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="`+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,qt.style.marginLeft="5px",Vn.appendChild(qt)}var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.style.flexGrow="2";var un=document.createElement("hr");if(un.style.minWidth="20px",un.style.border="0px",un.style.borderTop="3px solid "+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee"),un.style.flexGrow="2",En.appendChild(un),Vn.appendChild(En),Mn==="both"||Mn==="end"){var jr=document.createElement("div");jr.style.display="flex",jr.style.alignItems="center",jr.style.minHeight="20px",jr.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="`+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,jr.style.marginRight="5px",Vn.appendChild(jr)}fe.typeBoxes.push(Vn)},fe=this,ot=0;ot<4;ot++)De(ot);return oe},X.prototype.setCurrentType=function(q,oe){var De=this;this.currentType=q,this.typeBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},X}(J),Ye=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.arrowType="end",fe.arrowBaseHeight=10,fe.arrowBaseWidth=10,fe.getArrowPoints=fe.getArrowPoints.bind(fe),fe.setArrowType=fe.setArrowType.bind(fe),fe.arrowTypePanel=new He("Arrow type","end"),fe.arrowTypePanel.onArrowTypeChanged=fe.setArrowType,fe}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 De=this.arrowBaseWidth+2*this.strokeWidth,fe=this.arrowBaseHeight+2*this.strokeWidth;return q-De/2+","+(oe+fe/2)+" "+q+","+(oe-fe/2)+" "+(q+De/2)+","+(oe+fe/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 De=this.arrow2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(De,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),Ce=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor=De.defaultFillColor,fe.strokeWidth=0,fe.fillPanel=new ve("Color",De.defaultColorSet,De.defaultFillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe}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}(ft),Le=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'<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=De,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(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="center",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentOpacity?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentOpacity(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.innerText=100*De+"%",fe.appendChild(ot),q.opacityBoxes.push(fe)}),oe},X.prototype.setCurrentOpacity=function(q,oe){var De=this;this.currentOpacity=q,this.opacityBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},X}(J),We=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.setOpacity=fe.setOpacity.bind(fe),fe.fillColor=De.defaultHighlightColor,fe.strokeWidth=0,fe.opacity=De.defaultHighlightOpacity,fe.fillPanel=new ve("Color",De.defaultColorSet,fe.fillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe.opacityPanel=new Le("Opacity",De.defaultOpacitySteps,fe.opacity),fe.opacityPanel.onOpacityChanged=fe.setOpacity,fe}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}(Ce),Ue='<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>',ze=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.bgColor="transparent",fe.tipPosition={x:0,y:0},fe.tipBase1Position={x:0,y:0},fe.tipBase2Position={x:0,y:0},fe.tipMoving=!1,fe.color=De.defaultStrokeColor,fe.bgColor=De.defaultFillColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setBgColor=fe.setBgColor.bind(fe),fe.getTipPoints=fe.getTipPoints.bind(fe),fe.positionTip=fe.positionTip.bind(fe),fe.setTipPoints=fe.setTipPoints.bind(fe),fe.colorPanel=new ve("Text color",De.defaultColorSet,fe.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>'),fe.colorPanel.onColorChanged=fe.setColor,fe.bgColorPanel=new ve("Fill color",De.defaultColorSet,fe.bgColor,Ue),fe.bgColorPanel.onColorChanged=fe.setBgColor,fe.fontFamilyPanel=new Et("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe.tipGrip=new Je,fe.tipGrip.visual.transform.baseVal.appendItem(se.createTransform()),fe.controlBox.appendChild(fe.tipGrip.visual),fe}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),De=this.height/5;q&&(this.tipPosition={x:oe+De/2,y:this.height+20});var fe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?fe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+De,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?fe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-De,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?fe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-De,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-De},this.tipBase2Position={x:this.width,y:this.height-oe}):fe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+De,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-De})},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),st=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor="transparent",fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.opacity=1,fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.fillColor=De.defaultFillColor,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setFillColor=fe.setFillColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.setOpacity=fe.setOpacity.bind(fe),fe.createVisual=fe.createVisual.bind(fe),fe.strokePanel=new ve("Line color",ue(De.defaultColorSet,["transparent"]),De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.fillPanel=new ve("Fill color",ue(De.defaultColorSet,["transparent"]),fe.fillColor,Ue),fe.fillPanel.onColorChanged=fe.setFillColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new _t("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe.opacityPanel=new Le("Opacity",De.defaultOpacitySteps,fe.opacity),fe.opacityPanel.onOpacityChanged=fe.setOpacity,fe}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}(ut),Ct=function(pe){function X(q,oe,De){return pe.call(this,q,oe,De)||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 De=this.tip2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(De,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),Wt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokePanel.colors=De.defaultColorSet,fe.fillColor="transparent",fe}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}(st),Qt=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}(),Kt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.curveX=0,fe.curveY=0,fe.manipulationStartCurveX=0,fe.manipulationStartCurveY=0,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.positionGrips=fe.positionGrips.bind(fe),fe.addControlGrips=fe.addControlGrips.bind(fe),fe.adjustVisual=fe.adjustVisual.bind(fe),fe.setupControlBox=fe.setupControlBox.bind(fe),fe.resize=fe.resize.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new _t("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}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),Ot=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}(),Fe=function(pe){function X(q,oe,De){var fe=pe.call(this,q,!1)||this;return fe.dataUrl=oe,fe.state=De,fe}return ce(X,pe),X}(Ot),at=function(pe){function X(q,oe,De){De===void 0&&(De=!1);var fe=pe.call(this,q,De)||this;return fe.marker=oe,fe}return ce(X,pe),X}(Ot),it=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}(),Pe=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 Qt,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 it,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[Ve,qe,Ye,Pt,Wt,st,We,ze,Ct,Ce,Bt,Kt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ve,qe,Ye,Pt,st,We,ze]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ve,qe,Ye,Pt,We]},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 De=q.ALL_MARKER_TYPES.find(function(fe){return fe.typeName===oe});De!==void 0&&q._availableMarkerTypes.push(De)}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 Ot(X))})},pe.prototype.render=function(){return be(this,void 0,void 0,function(){var X;return ye(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(De){var fe=new Ot(q,!0);De(fe),fe.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(De){return De(new Ot(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,De=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,De),this._isResizing=!1},pe.prototype.scaleMarkers=function(X,q){var oe,De=this;this._currentMarker&&this._currentMarker instanceof Pt?this._currentMarker.scale(X,q):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(fe){fe!==De._currentMarker&&fe.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(De){var fe=new at(X,X._currentMarker,!0);De(fe),fe.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(De){return De(new at(X,oe))})}}},pe.prototype.clear=function(){var X=this,q=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ot){var Zt=new at(X,void 0,!0);ot(Zt),Zt.defaultPrevented&&(q=!0)}),!q)){this.setCurrentMarker();for(var oe=function(ot){var Zt=De.markers[ot];De.setCurrentMarker(De.markers[ot]),De._currentMarker.dispose(),De.markerImage.removeChild(De._currentMarker.container),De.markers.splice(De.markers.indexOf(De._currentMarker),1),De.eventListeners.markerdelete.forEach(function(Mn){return Mn(new at(X,Zt))})},De=this,fe=this.markers.length-1;fe>=0;fe--)oe(fe);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 De=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(q),De<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(fe){return fe(new Ot(X))})}else this.undoRedoManager.replaceLastUndoStep(q),this.eventListeners.statechange.forEach(function(fe){return fe(new Ot(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 Ot(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 Ot(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 be(this,void 0,void 0,function(){var X,q,oe=this;return ye(this,function(De){switch(De.label){case 0:return[4,this.render()];case 1:return X=De.sent(),q=this.getState(),this.eventListeners.render.forEach(function(fe){return fe(new Fe(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 De=q._availableMarkerTypes.find(function(ot){return ot.typeName===oe.typeName});if(De!==void 0){var fe=q.addNewMarker(De);fe.restoreState(oe),q.markers.push(fe)}}),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 Ot(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(De){return De.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(De){return De(new at(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 qe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(qe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new at(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 at(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 at(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 at(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 Ot(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 Ot(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 Qe=function(pe,X){return(Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,oe){q.__proto__=oe}||function(q,oe){for(var De in oe)Object.prototype.hasOwnProperty.call(oe,De)&&(q[De]=oe[De])})(pe,X)};function pt(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}Qe(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function bt(pe,X,q,oe){return new(q||(q=Promise))(function(De,fe){function ot(Vn){try{Mn(oe.next(Vn))}catch(qt){fe(qt)}}function Zt(Vn){try{Mn(oe.throw(Vn))}catch(qt){fe(qt)}}function Mn(Vn){var qt;Vn.done?De(Vn.value):(qt=Vn.value,qt instanceof q?qt:new q(function(En){En(qt)})).then(ot,Zt)}Mn((oe=oe.apply(pe,X||[])).next())})}function Dt(pe,X){var q,oe,De,fe,ot={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return fe={next:Zt(0),throw:Zt(1),return:Zt(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Zt(Mn){return function(Vn){return function(qt){if(q)throw new TypeError("Generator is already executing.");for(;ot;)try{if(q=1,oe&&(De=2&qt[0]?oe.return:qt[0]?oe.throw||((De=oe.return)&&De.call(oe),0):oe.next)&&!(De=De.call(oe,qt[1])).done)return De;switch(oe=0,De&&(qt=[2&qt[0],De.value]),qt[0]){case 0:case 1:De=qt;break;case 4:return ot.label++,{value:qt[1],done:!1};case 5:ot.label++,oe=qt[1],qt=[0];continue;case 7:qt=ot.ops.pop(),ot.trys.pop();continue;default:if(!(De=ot.trys,(De=De.length>0&&De[De.length-1])||qt[0]!==6&&qt[0]!==2)){ot=0;continue}if(qt[0]===3&&(!De||qt[1]>De[0]&&qt[1]<De[3])){ot.label=qt[1];break}if(qt[0]===6&&ot.label<De[1]){ot.label=De[1],De=qt;break}if(De&&ot.label<De[2]){ot.label=De[2],ot.ops.push(qt);break}De[2]&&ot.ops.pop(),ot.trys.pop();continue}qt=X.call(pe,ot)}catch(En){qt=[6,En],oe=0}finally{q=De=0}if(5&qt[0])throw qt[1];return{value:qt[0]?qt[1]:void 0,done:!0}}([Mn,Vn])}}}var It=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,De=q;oe<De.length;oe++){var fe=De[oe],ot=fe[0],Zt=fe[1];X.setAttribute(ot,Zt)}},pe.createRect=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","rect");return De.setAttribute("width",X.toString()),De.setAttribute("height",q.toString()),oe&&pe.setAttributes(De,oe),De},pe.createLine=function(X,q,oe,De,fe){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",De.toString()),fe&&pe.setAttributes(ot,fe),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 De=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return De.setAttribute("cx",(X/2).toString()),De.setAttribute("cy",(q/2).toString()),De.setAttribute("rx",(X/2).toString()),De.setAttribute("ry",(q/2).toString()),oe&&pe.setAttributes(De,oe),De},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,De,fe,ot,Zt){var Mn=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Mn,[["id",X],["orient",q],["markerWidth",oe.toString()],["markerHeight",De.toString()],["refX",fe.toString()],["refY",ot.toString()]]),Mn.appendChild(Zt),Mn},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,De,fe,ot,Zt,Mn){return"M"+X+","+q+"V"+(q+De)+"H"+(X+oe)+"V"+q+"H"+fe+"V"+ot+"H"+(fe+Zt)+"V"+(ot+Mn)+"H"+fe+"V"+q+"Z"},pe}(),Nt=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 jt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new jt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new jt("@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}(),jt=function(pe,X){this.selector=pe,this.style=X},on=function(pe,X){this.localName=pe,this.style=X},vn=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}(),Wn=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 pt(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}(Wn),Hn=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}(),fn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.elements=[],q}return pt(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}(Wn),lr=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}(),Zn=function(){function pe(){}return pe.getIcon=function(X,q){if(X>0&&q>0){var oe=new lr(X,q),De=oe.ratio>=1?20:oe.getHorizontalLength(20),fe=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 Zt=ct.createDefs();ot.appendChild(Zt);var Mn=ct.createElement("clipPath",[["id","text-bg-clip"]]);Zt.appendChild(Mn);var Vn=ct.createPath(ct.getHollowRectanglePath((24-De)/2,(24-fe)/2,De,fe,(24-De)/2+2,(24-fe)/2+2,De-4,fe-4));ot.appendChild(Vn);var qt=ct.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);qt.appendChild(ct.createTSpan(X+":"+q)),ot.appendChild(qt);var En=qt.getBBox();ct.setAttributes(qt,[["x",((24-En.width)/2).toString()],["y",((24-En.height)/2-En.y).toString()]]);var un=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 Mn.appendChild(un),ct.setAttributes(Vn,[["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}(),cr=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe)||this;return fe.isDropdownOpen=!1,fe.onClick=fe.dropdownButtonClicked,fe.dropdownButtons=De,fe}return pt(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}(Hn),dr=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}(),Dr=function(){function pe(X,q,oe,De){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=De,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 dr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new dr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new dr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new dr(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(fe,ot){var Zt=q.y+oe*(ot+1);ct.setAttributes(fe,[["x1",""+q.x],["y1",""+Zt],["x2",""+(q.x+q.width)],["y2",""+Zt]])});var De=q.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(fe,ot){var Zt=q.x+De*(ot+1);ct.setAttributes(fe,[["x1",""+Zt],["y1",""+q.y],["x2",""+Zt],["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,De=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+=De,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+=De}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),De=this.aspectRatio.getVerticalLength(this.cropRect.width);oe/this.canvasWidth<De/this.canvasHeight?this.cropRect.width=oe:this.cropRect.height=De,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,De,fe,ot){var Zt=oe/X,Mn=De/q;return{x:(fe.x-ot)*Zt+ot,y:(fe.y-ot)*Mn+ot,width:fe.width*Zt,height:fe.height*Mn}},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}(),hr=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 De=oe%5==0?this.height/3:this.height/6;q+="h4v"+-De+"h1v"+De}q+="v1H0Z",this.scaleShape=ct.createPath(q);var fe=ct.createTransform();this.scaleShape.transform.baseVal.appendItem(fe),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="°",this.angleLabelElement.appendChild(ot),X.appendChild(this.angleLabelElement),document.body.removeChild(X),X},pe}(),sn=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(X,q,oe,De,fe,ot,Zt){var Mn=this;return new Promise(function(Vn){var qt=document.createElement("canvas");qt.width=X.width.baseVal.value-2*De,qt.height=X.height.baseVal.value-2*De;var En=1,un=1;Mn.naturalSize===!0?(En=q.naturalWidth/(X.width.baseVal.value-2*De)/ot,un=q.naturalHeight/(X.height.baseVal.value-2*De)/Zt,qt.width=q.naturalWidth/ot,qt.height=q.naturalHeight/Zt):Mn.width!==void 0&&Mn.height!==void 0&&(En=Mn.width/oe.width,un=Mn.height/oe.height,qt.width*=En,qt.height*=un);var jr=qt.getContext("2d");jr.translate(qt.width/2,qt.height/2),jr.rotate(fe*Math.PI/180),jr.scale(ot,Zt),jr.translate(-qt.width/2,-qt.height/2),jr.drawImage(q,0,0,qt.width,qt.height);var aa=document.createElement("canvas");aa.width=oe.width*En,aa.height=oe.height*un,aa.getContext("2d").putImageData(jr.getImageData((oe.x-De)*En,(oe.y-De)*un,oe.width*En,oe.height*un),0,0),Vn(aa.toDataURL(Mn.imageType,Mn.imageQuality))})},pe}(),en=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 Nt(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 Dr(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 vn,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(un){var jr=new Hn(Zn.getIcon(un.horizontal,un.vertical),un.horizontal===0&&un.vertical===0?"FREE":un.horizontal+":"+un.vertical);jr.onClick=function(){return X.ratioButtonClicked(un)},oe.push(jr)}),this.aspectRatioButton=new cr(Zn.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 De=new Hn('<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");De.isActive=this.isGridVisible,De.onClick=function(){X.isGridVisible=!X.isGridVisible,De.isActive=X.isGridVisible},q.addButton(De);var fe=new Hn('<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(fe.isActive=this.zoomToCropEnabled,fe.onClick=function(){X.zoomToCropEnabled=!X.zoomToCropEnabled,fe.isActive=X.zoomToCropEnabled},q.addButton(fe),!It.isLicensed){var ot=new fn;this.topToolbar.addElementBlock(ot);var Zt=document.createElement("div");Zt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Mn=document.createElement("a");Mn.style.color="currentColor",Mn.href="https://markerjs.com/products/cropro",Mn.target="_blank",Mn.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>',Zt.appendChild(Mn),ot.addElement(Zt)}var Vn=new Kn;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var qt=new Hn('<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");qt.onClick=this.startRenderAndClose,Vn.addButton(qt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(qt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var En=new Hn('<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,Vn.addButton(En),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(En.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var X=this;this.bottomToolbar=new vn,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 Hn('<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 De=new Hn('<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");De.onClick=this.rotateRightButtonClicked,q.addButton(De);var fe=new fn;fe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(fe),this.straightener=new hr("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(Vn){X.rotateBy(Vn),X.straightener.angle=X.rotationAngle},fe.addElement(this.straightener.getUI());var ot=new Kn;ot.minWidth=2*this.toolbarHeight+"px",ot.contentAlign="end",this.bottomToolbar.addButtonBlock(ot);var Zt=new Hn('<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");Zt.onClick=this.flipHorizontallyButtonClicked,ot.addButton(Zt);var Mn=new Hn('<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");Mn.onClick=this.flipVerticallyButtonClicked,ot.addButton(Mn)},pe.prototype.ratioButtonClicked=function(X){this.aspectRatio=X,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Zn.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 lr(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 bt(this,void 0,void 0,function(){var X,q;return Dt(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(De){return De(X,q)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return bt(this,void 0,void 0,function(){var X;return Dt(this,function(q){switch(q.label){case 0:return(X=new sn).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 jt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new jt("."+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}(),On=o("8hTe"),Fr=o.n(On),Or=/<pre[^>]*>/g;function xr(pe){var X=document.createElement("div");return X.innerHTML=pe,X.childNodes.length===0?"":X.childNodes[0].nodeValue}var fr=z.a=function(pe){var X=pe.value,q=X===void 0?"":X,oe=pe.edit,De=oe===void 0?!1:oe,fe=pe.className,ot=pe.showTextOnly,Zt=pe.showLines,Mn=pe.replaces,Vn=pe.zoomImg,qt=pe.hasMask,En=pe.style,un=En===void 0?{}:En,jr=pe.stylesPrev,aa=jr===void 0?{}:jr,oa=String(q),er=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 Lt=new en(Ba.current);Lt.displayMode="popup",Lt.addRenderEventListener(function(){var Xt=Object(C.a)(e.a.mark(function rn(xn){var gn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return er.current.style.display="none",An.next=3,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:xn}});case 3:gn=An.sent,gn!=null&&gn.id&&Mn(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 5:case"end":return An.stop()}},rn)}));return function(rn){return Xt.apply(this,arguments)}}()),Lt.show()},ma=function(){var Lt=new Pe(Ba.current);Lt.settings.displayMode="popup",Lt.addEventListener("render",function(){var Xt=Object(C.a)(e.a.mark(function rn(xn){var gn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(er.current.style.display="none",!Ba.current){An.next=6;break}return An.next=4,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:xn.dataUrl}});case 4:gn=An.sent,gn!=null&&gn.id&&Mn(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 6:case"end":return An.stop()}},rn)}));return function(rn){return Xt.apply(this,arguments)}}()),Lt.show(),window.markerArea=Lt},la=Object(f.useMemo)(function(){er.current&&(er.current.style.zIndex=-1);try{var Ht=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Lt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;oa=oa.replace(Ht,"("+ee.a.API_SERVER+"/api/attachments/").replace(Lt,'"'+ee.a.API_SERVER+"/api/attachments/").replace(Xt,'"'+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(Nn){}var rn=W(oa),xn=U();if(oa.match(/\[TOC\]/)&&(rn=rn.replace("<p>[TOC]</p>",P()),w()),rn=rn.replace(/(__special_katext_id_\d+__)/g,function(Nn,An){var an=xn[An],Pn=an.type,yn=an.expression;return Object(he.renderToString)(xr(yn)||"",{displayMode:Pn==="block",throwOnError:!1,output:"html"})}),rn=rn.replace(/▁/g,"\u2581\u2581\u2581"),L(),ot){var gn=document.createElement("div");return gn.innerHTML=rn,gn.innerText}return setTimeout(function(){return Rt()},500),rn},[oa]),xe=Object(f.useRef)();E.WebkitLineClamp=Zt,Zt&&(un=Object(y.a)(Object(y.a)({},un),E));function lt(Ht){var Lt=Ht.target;if(Lt.tagName.toUpperCase()==="IMG"){if(Vn){var Xt=Lt.getAttribute("src");Ta(Xt),oi("image")}}else if(Lt.tagName.toUpperCase()==="A"){var rn=Lt.getAttribute("href");if(rn.indexOf("office")>-1)Ht.preventDefault(),Ta(rn),oi("office");else if(rn.indexOf("application/pdf")>-1)Ht.preventDefault(),Ta(rn),oi("pdf");else if(rn.indexOf("text/html")>-1)Ht.preventDefault(),Ta(rn),oi("html");else if(rn.startsWith("#")){Ht.preventDefault();var xn=document.getElementById(rn.replace("#",""));xn&&xn.scrollIntoView(!0)}}}var Rt=function(){var Lt,Xt=(Lt=xe.current)===null||Lt===void 0?void 0:Lt.querySelectorAll("video");Xt==null||Xt.forEach(function(rn){if(rn.oncontextmenu=function(){return!1},rn.src.indexOf(".m3u8")>-1&&!rn.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var xn=new K.a;xn.loadSource(rn.src),xn.attachMedia(rn)}}})};Object(f.useEffect)(function(){if(xe.current&&la&&(la.match(Or)&&window.PR.prettyPrint()),xe.current)return xe.current.addEventListener("click",lt),function(){xe.current.removeEventListener("click",lt),L(),w()}},[la,xe.current,lt]);var wt=function(Lt){if(!De)return;Lt.target.nodeName==="IMG"?(er.current.style.zIndex=1,er.current.style.display="flex",er.current.style.width=Lt.target.clientWidth+"px",er.current.style.height=Lt.target.clientHeight+"px",er.current.style.top=Lt.target.offsetTop+"px",er.current.style.left=Lt.target.offsetLeft+"px",Ba.current.src=Lt.target.getAttribute("src")):er.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:xe,style:Object(y.a)({},un),className:"".concat(fe||""," markdown-body ").concat(Fr.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:la}}),a.a.createElement("div",{ref:er,className:Fr.a.button},a.a.createElement(g.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(de.a,{close:!0,data:Ka,type:Ka!=null&&Ka.length?li:"",style:Object(y.a)({},aa),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,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CTR=function(){var g=M.lib.BlockCipherMode.extend(),O=g.Encryptor=g.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,m=this._iv,e=this._counter;m&&(e=this._counter=m.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 g.Decryptor=O,g}(),M.mode.CTR})},"9VGf":function(k,z,o){"use strict";o.d(z,"a",function(){return O});var M=o("q1tI"),g=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 m=setInterval(A,y);return function(){return clearInterval(m)}}},[y])}},"9ZNV":function(k,z,o){"use strict";o.d(z,"a",function(){return f});var M=o("0Owb"),g=o("+L6B"),O=o("2/Rp"),b=o("q1tI"),y=o.n(b),C=o("UUDw"),A=o.n(C),m=o("TSYQ"),e=o.n(m),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+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoI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"},ALsQ:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CFB=function(){var g=M.lib.BlockCipherMode.extend();g.Encryptor=g.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)}}),g.Decryptor=g.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,m=b.slice(y,y+A);O.call(this,b,y,A,C),this._prevBlock=m}});function O(b,y,C,A){var m,e=this._iv;e?(m=e.slice(0),this._iv=void 0):m=this._prevBlock,A.encryptBlock(m,0);for(var f=0;f<C;f++)b[y+f]^=m[f]}return g}(),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"),g="rc-util-key";function O(A){if(A.attachTo)return A.attachTo;var m=document.querySelector("head");return m||document.body}function b(A){var m,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(M.a)())return null;var f=document.createElement("style");if((m=e.csp)===null||m===void 0?void 0:m.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,m){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[g]===m});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[g]=m,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 g=["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&&g,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||m(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&&m(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 m(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"),g=o("2/Rp"),O=o("0Owb"),b=o("k1fw"),y=o("q1tI"),C=o.n(y),A=o("FOrL"),m=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:m.a}),C.a.createElement("p",{className:"mt20 font14"},c||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),h&&C.a.createElement(g.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 g}),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 g(m){var e=!0;if(m.length>0){for(var f=0;f<m.length;f++)if(m[f].compile_success==0||!m[f].compile_success){e=!1;break}}else e=!1;return e}function O(m){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",f=[],a=0;a<m.length;a++){var l=m[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(m,e,f){for(var a=0;a<m.length;a++){var l=m[a];if(l.key===e){l.children=f;break}l.children&&b(l.children,e,f)}return m}function y(m,e,f){var a;return function(){var l=this,n=arguments,i=function(){a=null,f||m.apply(l,n)},r=f&&!a;clearTimeout(a),a=setTimeout(i,e),r&&m.apply(l,n)}}var C=!0,A=M.a.API_SERVER},Bq7L:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},"C+DQ":function(k,z,o){},"C/vA":function(k,z,o){"use strict";o.d(z,"a",function(){return M});function M(g){const O=this;let b=!1,y;return function(){return b||(b=!0,y=g.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 g}),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(m){return m[C.DI_DEPENDENCIES]||[]}C.getServiceDependencies=A})(M||(M={}));const g=b("instantiationService");function O(C,A,m,e){A[M.DI_TARGET]===A?A[M.DI_DEPENDENCIES].push({id:C,index:m,optional:e}):(A[M.DI_DEPENDENCIES]=[{id:C,index:m,optional:e}],A[M.DI_TARGET]=A)}function b(C){if(M.serviceIds.has(C))return M.serviceIds.get(C);const A=function(m,e,f){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");O(A,m,f,!1)};return A.toString=()=>C,M.serviceIds.set(C,A),A}function y(C){return function(A,m,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"),g=o("2/Rp"),O=o("y8nQ"),b=o("Vl3Y"),y=o("cWXX"),C=o("/ezw"),A=o("rAM+"),m=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"),L=o("5rEg"),N=function($){var me=$.callback,re=$.visible,ae=$.onCancel,Oe=$.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:Oe?"\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(L.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(g.a,{type:"ghost",onClick:ae,style:{marginRight:20}}," ","\u53D6\u6D88"," ")," ",r.a.createElement(g.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,Oe=$.onChangeGroupName,le=$.onPlusMember,te=$.onDelMember,Q=$.onExitGroup,J=Object(i.useState)(0),ve=Object(e.a)(J,2),_e=ve[0],Ae=ve[1],Je=Object(i.useState)(0),tt=Object(e.a)(Je,2),ut=tt[0],ft=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 Ve(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 Ae(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(){Oe(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(){ft(Bt.id)},className:ut===Bt.id?"active":""},r.a.createElement("div",null,Bt.name),je.is_creat&&Bt.id&&ut===Bt.id?r.a.createElement("a",{className:"btn-del",onClick:function(Pt){Pt.preventDefault(),Pt.stopPropagation(),Ve(je.id,ut)}},r.a.createElement(H.a,null)):null)}),re?r.a.createElement("li",null,r.a.createElement(g.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)}))},I=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},de;(function($){$[$.INITDATA=0]="INITDATA",$[$.SHOWLOADING=1]="SHOWLOADING",$[$.SHOWFORMPANEL=2]="SHOWFORMPANEL",$[$.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",$[$.SELECTGROUP=4]="SELECTGROUP",$[$.SETINDEX=5]="SETINDEX"})(de||(de={}));function Se($,me){switch(me.type){case de.INITDATA:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWLOADING:return Object(s.a)(Object(s.a)({},$),{},{loading:me.payload});case de.SETINDEX:return Object(s.a)(Object(s.a)({},$),{},{index:me.payload});case de.SHOWFORMPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWMEMBERPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.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)(Se,he),Oe=Object(e.a)(ae,2),le=Oe[0],te=Oe[1],Q=le.data,J=le.index,ve=le.loading,_e=le.showFormPanel,Ae=le.selectedGroup,Je=le.showMemberPanel,tt=(me=re.userInfo)===null||me===void 0?void 0:me.role,ut=Object(i.useMemo)(function(){var Ct=[],Wt=[],Qt=Object(A.a)(Q),Kt;try{for(Qt.s();!(Kt=Qt.n()).done;){var Ot=Kt.value;Ot.is_creat?Ct.push(Ot):Wt.push(Ot)}}catch(Fe){Qt.e(Fe)}finally{Qt.f()}return[Ct,Wt]},[Q]);Object(i.useEffect)(function(){tt===15&&te({type:de.SETINDEX,payload:1})},[tt]);function ft(){return vt.apply(this,arguments)}function vt(){return vt=Object(m.a)(n.a.mark(function Ct(){var Wt;return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,_();case 2:Wt=Kt.sent,te({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Wt.groups}});case 4:case"end":return Kt.stop()}},Ct)})),vt.apply(this,arguments)}Object(i.useEffect)(function(){ft()},[]);function _t(Ct){return Ve.apply(this,arguments)}function Ve(){return Ve=Object(m.a)(n.a.mark(function Ct(Wt){return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(!Ae.id){Kt.next=5;break}return Kt.next=3,R(Ae.id,Wt);case 3:Kt.next=7;break;case 5:return Kt.next=7,P(Wt);case 7:ft();case 8:case"end":return Kt.stop()}},Ct)})),Ve.apply(this,arguments)}function je(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ht(Ct){te({type:de.SELECTGROUP,payload:Ct})}function Bt(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function Et(){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function Pt(Ct){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Ct}})}function qe(Ct,Wt){return He.apply(this,arguments)}function He(){return He=Object(m.a)(n.a.mark(function Ct(Wt,Qt){return n.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,v(Wt,Qt);case 2:ft();case 3:case"end":return Ot.stop()}},Ct)})),He.apply(this,arguments)}function Ye(Ct){return Ce.apply(this,arguments)}function Ce(){return Ce=Object(m.a)(n.a.mark(function Ct(Wt){return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,T(Wt);case 2:ft();case 3:case"end":return Kt.stop()}},Ct)})),Ce.apply(this,arguments)}function Le(Ct){return We.apply(this,arguments)}function We(){return We=Object(m.a)(n.a.mark(function Ct(Wt){return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,S(Wt);case 2:ft();case 3:case"end":return Kt.stop()}},Ct)})),We.apply(this,arguments)}function Ue(Ct){te({type:de.SETINDEX,payload:parseInt(Ct.target.id,10)})}function ze(Ct,Wt){return st.apply(this,arguments)}function st(){return st=Object(m.a)(n.a.mark(function Ct(Wt,Qt){return n.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Et(),Ot.next=3,x({user_ids:Wt,group_id:Qt});case 3:ft();case 4:case"end":return Ot.stop()}},Ct)})),st.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(g.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:Ue},"\u6211\u521B\u5EFA\u7684")),r.a.createElement("li",{className:J===1?"active":""},r.a.createElement("a",{id:"1",onClick:Ue},"\u6211\u52A0\u5165\u7684"))),r.a.createElement("div",{className:ut[J].length===0?"nodata-content":"main-content"},ut[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:Le,onPlusMember:Pt,onDelMember:qe,onDelGroup:Ye,isAdminOrTeacher:tt<=12,onChangeGroupName:ht,data:ut[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:Ae.id,name:Ae.name}),r.a.createElement(d.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Je,onCancel:Et,footer:null,width:1100,bodyStyle:{minHeight:200}},r.a.createElement(K.a,{container_id:Ae.id,container_type:4,onSelect:ze,onCancel:Et})))}var ce=Object(I.a)(function($){var me=$.user;return{user:me}})(Te),be=o("SLjR"),ye=o("55Ip"),ue=a.a.Group,se=z.a=function($){var me=$.onSelect,re=$.onCancel,ae=Object(i.useState)([]),Oe=Object(e.a)(ae,2),le=Oe[0],te=Oe[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 ut.apply(this,arguments)}function ut(){return ut=Object(m.a)(n.a.mark(function ft(){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()}},ft)})),ut.apply(this,arguments)}tt()},[]);var Ae=Object(i.useMemo)(function(){var tt=[],ut=[],ft=Object(A.a)(le),vt;try{for(ft.s();!(vt=ft.n()).done;){var _t=vt.value;_t.is_creat?tt.push(_t):ut.push(_t)}}catch(Ve){ft.e(Ve)}finally{ft.f()}return[tt,ut]},[le]);function Je(tt){me(tt)}return r.a.createElement(b.a,{className:"select-teach-group",onFinish:Je},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(ye.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"},Ae[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"},Ae[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(g.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),r.a.createElement(g.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(k,z,o){(function(M,g){k.exports=g()})(this,function(){"use strict";function M(qe,He){for(var Ye=0;Ye<He.length;Ye++){var Ce=He[Ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(qe,Ce.key,Ce)}}function g(qe,He,Ye){return He&&M(qe.prototype,He),Ye&&M(qe,Ye),qe}function O(qe,He){if(!qe)return;if(typeof qe=="string")return b(qe,He);var Ye=Object.prototype.toString.call(qe).slice(8,-1);if(Ye==="Object"&&qe.constructor&&(Ye=qe.constructor.name),Ye==="Map"||Ye==="Set")return Array.from(qe);if(Ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ye))return b(qe,He)}function b(qe,He){(He==null||He>qe.length)&&(He=qe.length);for(var Ye=0,Ce=new Array(He);Ye<He;Ye++)Ce[Ye]=qe[Ye];return Ce}function y(qe,He){var Ye;if(typeof Symbol=="undefined"||qe[Symbol.iterator]==null){if(Array.isArray(qe)||(Ye=O(qe))||He&&qe&&typeof qe.length=="number"){Ye&&(qe=Ye);var Ce=0;return function(){return Ce>=qe.length?{done:!0}:{done:!1,value:qe[Ce++]}}}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 Ye=qe[Symbol.iterator](),Ye.next.bind(Ye)}function C(qe,He){return He={exports:{}},qe(He,He.exports),He.exports}var A=C(function(qe){function He(){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 Ye(Ce){qe.exports.defaults=Ce}qe.exports={defaults:He(),getDefaults:He,changeDefaults:Ye}}),m=A.defaults,e=A.getDefaults,f=A.changeDefaults,a=/[&<>"']/,l=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(He){return r[He]};function h(qe,He){if(He){if(a.test(qe))return qe.replace(l,c)}else if(n.test(qe))return qe.replace(i,c);return qe}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(qe){return qe.replace(d,function(He,Ye){return Ye=Ye.toLowerCase(),Ye==="colon"?":":Ye.charAt(0)==="#"?Ye.charAt(1)==="x"?String.fromCharCode(parseInt(Ye.substring(2),16)):String.fromCharCode(+Ye.substring(1)):""})}var u=/(^|[^\[])\^/g;function w(qe,He){qe=qe.source||qe,He=He||"";var Ye={replace:function(Le,We){return We=We.source||We,We=We.replace(u,"$1"),qe=qe.replace(Le,We),Ye},getRegex:function(){return new RegExp(qe,He)}};return Ye}var E=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(qe,He,Ye){if(qe){var Ce;try{Ce=decodeURIComponent(s(Ye)).replace(E,"").toLowerCase()}catch(Le){return null}if(Ce.indexOf("javascript:")===0||Ce.indexOf("vbscript:")===0||Ce.indexOf("data:")===0)return null}He&&!_.test(Ye)&&(Ye=T(He,Ye));try{Ye=encodeURI(Ye).replace(/%25/g,"%")}catch(Le){return null}return Ye}var R={},x=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(qe,He){R[" "+qe]||(x.test(qe)?R[" "+qe]=qe+"/":R[" "+qe]=V(qe,"/",!0)),qe=R[" "+qe];var Ye=qe.indexOf(":")===-1;return He.substring(0,2)==="//"?Ye?He:qe.replace(S,"$1")+He:He.charAt(0)==="/"?Ye?He:qe.replace(v,"$1")+He:qe+He}var U={exec:function(){}};function L(qe){for(var He=1,Ye,Ce;He<arguments.length;He++){Ye=arguments[He];for(Ce in Ye)Object.prototype.hasOwnProperty.call(Ye,Ce)&&(qe[Ce]=Ye[Ce])}return qe}function N(qe,He){var Ye=qe.replace(/\|/g,function(We,Ue,ze){for(var st=!1,Ct=Ue;--Ct>=0&&ze[Ct]==="\\";)st=!st;return st?"|":" |"}),Ce=Ye.split(/ \|/),Le=0;if(Ce.length>He)Ce.splice(He);else for(;Ce.length<He;)Ce.push("");for(;Le<Ce.length;Le++)Ce[Le]=Ce[Le].trim().replace(/\\\|/g,"|");return Ce}function V(qe,He,Ye){var Ce=qe.length;if(Ce===0)return"";for(var Le=0;Le<Ce;){var We=qe.charAt(Ce-Le-1);if(We===He&&!Ye)Le++;else if(We!==He&&Ye)Le++;else break}return qe.substr(0,Ce-Le)}function H(qe,He){if(qe.indexOf(He[1])===-1)return-1;for(var Ye=qe.length,Ce=0,Le=0;Le<Ye;Le++)if(qe[Le]==="\\")Le++;else if(qe[Le]===He[0])Ce++;else if(qe[Le]===He[1]&&(Ce--,Ce<0))return Le;return-1}function D(qe){qe&&qe.sanitize&&!qe.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:L,splitCells:N,rtrim:V,findClosingBracket:H,checkSanitizeDeprecation:D},F=A.defaults,I=W.rtrim,K=W.splitCells,ee=W.escape,he=W.findClosingBracket;function de(qe,He,Ye){var Ce=He.href,Le=He.title?ee(He.title):null,We=qe[1].replace(/\\([\[\]])/g,"$1");return qe[0].charAt(0)!=="!"?{type:"link",raw:Ye,href:Ce,title:Le,text:We}:{type:"image",raw:Ye,href:Ce,title:Le,text:ee(We)}}function Se(qe,He){var Ye=qe.match(/^(\s+)(?:```)/);if(Ye===null)return He;var Ce=Ye[1];return He.split(`
|
|
|
`).map(function(Le){var We=Le.match(/^\s+/);if(We===null)return Le;var Ue=We[0];return Ue.length>=Ce.length?Le.slice(Ce.length):Le}).join(`
|
|
|
`)}var Te=function(){function qe(Ye){this.options=Ye||F}var He=qe.prototype;return He.space=function(Ce){var Le=this.rules.block.newline.exec(Ce);if(Le)return Le[0].length>1?{type:"space",raw:Le[0]}:{raw:`
|
|
|
`}},He.code=function(Ce,Le){var We=this.rules.block.code.exec(Ce);if(We){var Ue=Le[Le.length-1];if(Ue&&Ue.type==="paragraph")return{raw:We[0],text:We[0].trimRight()};var ze=We[0].replace(/^ {4}/gm,"");return{type:"code",raw:We[0],codeBlockStyle:"indented",text:this.options.pedantic?ze:I(ze,`
|
|
|
`)}}},He.fences=function(Ce){var Le=this.rules.block.fences.exec(Ce);if(Le){var We=Le[0],Ue=Se(We,Le[3]||"");return{type:"code",raw:We,lang:Le[2]?Le[2].trim():Le[2],text:Ue}}},He.heading=function(Ce){var Le=this.rules.block.heading.exec(Ce);if(Le)return{type:"heading",raw:Le[0],depth:Le[1].length,text:Le[2]}},He.nptable=function(Ce){var Le=this.rules.block.nptable.exec(Ce);if(Le){var We={type:"table",header:K(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:Le[0]};if(We.header.length===We.align.length){var Ue=We.align.length,ze;for(ze=0;ze<Ue;ze++)/^ *-+: *$/.test(We.align[ze])?We.align[ze]="right":/^ *:-+: *$/.test(We.align[ze])?We.align[ze]="center":/^ *:-+ *$/.test(We.align[ze])?We.align[ze]="left":We.align[ze]=null;for(Ue=We.cells.length,ze=0;ze<Ue;ze++)We.cells[ze]=K(We.cells[ze],We.header.length);return We}}},He.hr=function(Ce){var Le=this.rules.block.hr.exec(Ce);if(Le)return{type:"hr",raw:Le[0]}},He.blockquote=function(Ce){var Le=this.rules.block.blockquote.exec(Ce);if(Le){var We=Le[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Le[0],text:We}}},He.list=function(Ce){var Le=this.rules.block.list.exec(Ce);if(Le){for(var We=Le[0],Ue=Le[2],ze=Ue.length>1,st=Ue[Ue.length-1]===")",Ct={type:"list",raw:We,ordered:ze,start:ze?+Ue.slice(0,-1):"",loose:!1,items:[]},Wt=Le[0].match(this.rules.block.item),Qt=!1,Kt,Ot,Fe,at,it,Pe,Qe,pt=Wt.length,bt=0;bt<pt;bt++)Kt=Wt[bt],We=Kt,Ot=Kt.length,Kt=Kt.replace(/^ *([*+-]|\d+[.)]) */,""),~Kt.indexOf(`
|
|
|
`)&&(Ot-=Kt.length,Kt=this.options.pedantic?Kt.replace(/^ {1,4}/gm,""):Kt.replace(new RegExp("^ {1,"+Ot+"}","gm"),"")),bt!==pt-1&&(Fe=this.rules.block.bullet.exec(Wt[bt+1])[0],(ze?Fe.length===1||!st&&Fe[Fe.length-1]===")":Fe.length>1||this.options.smartLists&&Fe!==Ue)&&(at=Wt.slice(bt+1).join(`
|
|
|
`),Ct.raw=Ct.raw.substring(0,Ct.raw.length-at.length),bt=pt-1)),it=Qt||/\n\n(?!\s*$)/.test(Kt),bt!==pt-1&&(Qt=Kt.charAt(Kt.length-1)===`
|
|
|
`,it||(it=Qt)),it&&(Ct.loose=!0),Pe=/^\[[ xX]\] /.test(Kt),Qe=void 0,Pe&&(Qe=Kt[1]!==" ",Kt=Kt.replace(/^\[[ xX]\] +/,"")),Ct.items.push({type:"list_item",raw:We,task:Pe,checked:Qe,loose:it,text:Kt});return Ct}},He.html=function(Ce){var Le=this.rules.block.html.exec(Ce);if(Le)return{type:this.options.sanitize?"paragraph":"html",raw:Le[0],pre:!this.options.sanitizer&&(Le[1]==="pre"||Le[1]==="script"||Le[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):ee(Le[0]):Le[0]}},He.def=function(Ce){var Le=this.rules.block.def.exec(Ce);if(Le){Le[3]&&(Le[3]=Le[3].substring(1,Le[3].length-1));var We=Le[1].toLowerCase().replace(/\s+/g," ");return{tag:We,raw:Le[0],href:Le[2],title:Le[3]}}},He.table=function(Ce){var Le=this.rules.block.table.exec(Ce);if(Le){var We={type:"table",header:K(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(We.header.length===We.align.length){We.raw=Le[0];var Ue=We.align.length,ze;for(ze=0;ze<Ue;ze++)/^ *-+: *$/.test(We.align[ze])?We.align[ze]="right":/^ *:-+: *$/.test(We.align[ze])?We.align[ze]="center":/^ *:-+ *$/.test(We.align[ze])?We.align[ze]="left":We.align[ze]=null;for(Ue=We.cells.length,ze=0;ze<Ue;ze++)We.cells[ze]=K(We.cells[ze].replace(/^ *\| *| *\| *$/g,""),We.header.length);return We}}},He.lheading=function(Ce){var Le=this.rules.block.lheading.exec(Ce);if(Le)return{type:"heading",raw:Le[0],depth:Le[2].charAt(0)==="="?1:2,text:Le[1]}},He.paragraph=function(Ce){var Le=this.rules.block.paragraph.exec(Ce);if(Le)return{type:"paragraph",raw:Le[0],text:Le[1].charAt(Le[1].length-1)===`
|
|
|
`?Le[1].slice(0,-1):Le[1]}},He.text=function(Ce,Le){var We=this.rules.block.text.exec(Ce);if(We){var Ue=Le[Le.length-1];return Ue&&Ue.type==="text"?{raw:We[0],text:We[0]}:{type:"text",raw:We[0],text:We[0]}}},He.escape=function(Ce){var Le=this.rules.inline.escape.exec(Ce);if(Le)return{type:"escape",raw:Le[0],text:ee(Le[1])}},He.tag=function(Ce,Le,We){var Ue=this.rules.inline.tag.exec(Ce);if(Ue)return!Le&&/^<a /i.test(Ue[0])?Le=!0:Le&&/^<\/a>/i.test(Ue[0])&&(Le=!1),!We&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ue[0])?We=!0:We&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ue[0])&&(We=!1),{type:this.options.sanitize?"text":"html",raw:Ue[0],inLink:Le,inRawBlock:We,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ue[0]):ee(Ue[0]):Ue[0]}},He.link=function(Ce){var Le=this.rules.inline.link.exec(Ce);if(Le){var We=he(Le[2],"()");if(We>-1){var Ue=Le[0].indexOf("!")===0?5:4,ze=Ue+Le[1].length+We;Le[2]=Le[2].substring(0,We),Le[0]=Le[0].substring(0,ze).trim(),Le[3]=""}var st=Le[2],Ct="";if(this.options.pedantic){var Wt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(st);Wt?(st=Wt[1],Ct=Wt[3]):Ct=""}else Ct=Le[3]?Le[3].slice(1,-1):"";st=st.trim().replace(/^<([\s\S]*)>$/,"$1");var Qt=de(Le,{href:st&&st.replace(this.rules.inline._escapes,"$1"),title:Ct&&Ct.replace(this.rules.inline._escapes,"$1")},Le[0]);return Qt}},He.reflink=function(Ce,Le){var We;if((We=this.rules.inline.reflink.exec(Ce))||(We=this.rules.inline.nolink.exec(Ce))){var Ue=(We[2]||We[1]).replace(/\s+/g," ");if(Ue=Le[Ue.toLowerCase()],!Ue||!Ue.href){var ze=We[0].charAt(0);return{type:"text",raw:ze,text:ze}}var st=de(We,Ue,We[0]);return st}},He.strong=function(Ce,Le,We){We===void 0&&(We="");var Ue=this.rules.inline.strong.start.exec(Ce);if(Ue&&(!Ue[1]||Ue[1]&&(We===""||this.rules.inline.punctuation.exec(We)))){Le=Le.slice(-1*Ce.length);var ze=Ue[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ze.lastIndex=0;for(var st;(Ue=ze.exec(Le))!=null;)if(st=this.rules.inline.strong.middle.exec(Le.slice(0,Ue.index+3)),st)return{type:"strong",raw:Ce.slice(0,st[0].length),text:Ce.slice(2,st[0].length-2)}}},He.em=function(Ce,Le,We){We===void 0&&(We="");var Ue=this.rules.inline.em.start.exec(Ce);if(Ue&&(!Ue[1]||Ue[1]&&(We===""||this.rules.inline.punctuation.exec(We)))){Le=Le.slice(-1*Ce.length);var ze=Ue[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ze.lastIndex=0;for(var st;(Ue=ze.exec(Le))!=null;)if(st=this.rules.inline.em.middle.exec(Le.slice(0,Ue.index+2)),st)return{type:"em",raw:Ce.slice(0,st[0].length),text:Ce.slice(1,st[0].length-1)}}},He.codespan=function(Ce){var Le=this.rules.inline.code.exec(Ce);if(Le){var We=Le[2].replace(/\n/g," "),Ue=/[^ ]/.test(We),ze=We.startsWith(" ")&&We.endsWith(" ");return Ue&&ze&&(We=We.substring(1,We.length-1)),We=ee(We,!0),{type:"codespan",raw:Le[0],text:We}}},He.br=function(Ce){var Le=this.rules.inline.br.exec(Ce);if(Le)return{type:"br",raw:Le[0]}},He.del=function(Ce){var Le=this.rules.inline.del.exec(Ce);if(Le)return{type:"del",raw:Le[0],text:Le[1]}},He.autolink=function(Ce,Le){var We=this.rules.inline.autolink.exec(Ce);if(We){var Ue,ze;return We[2]==="@"?(Ue=ee(this.options.mangle?Le(We[1]):We[1]),ze="mailto:"+Ue):(Ue=ee(We[1]),ze=Ue),{type:"link",raw:We[0],text:Ue,href:ze,tokens:[{type:"text",raw:Ue,text:Ue}]}}},He.url=function(Ce,Le){var We;if(We=this.rules.inline.url.exec(Ce)){var Ue,ze;if(We[2]==="@")Ue=ee(this.options.mangle?Le(We[0]):We[0]),ze="mailto:"+Ue;else{var st;do st=We[0],We[0]=this.rules.inline._backpedal.exec(We[0])[0];while(st!==We[0]);Ue=ee(We[0]),We[1]==="www."?ze="http://"+Ue:ze=Ue}return{type:"link",raw:We[0],text:Ue,href:ze,tokens:[{type:"text",raw:Ue,text:Ue}]}}},He.inlineText=function(Ce,Le,We){var Ue=this.rules.inline.text.exec(Ce);if(Ue){var ze;return Le?ze=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ue[0]):ee(Ue[0]):Ue[0]:ze=ee(this.options.smartypants?We(Ue[0]):Ue[0]),{type:"text",raw:Ue[0],text:ze}}},qe}(),ce=W.noopTest,be=W.edit,ye=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=be(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=be(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=be(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=be(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=be(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=be(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=ye({},ue),ue.gfm=ye({},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=be(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=be(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=ye({},ue.normal,{html:be(`^ *(?: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:be(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=be(se.punctuation).replace(/punctuation/g,se._punctuation).getRegex(),se._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",se._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",se.em.start=be(se.em.start).replace(/punctuation/g,se._punctuation).getRegex(),se.em.middle=be(se.em.middle).replace(/punctuation/g,se._punctuation).replace(/overlapSkip/g,se._overlapSkip).getRegex(),se.em.endAst=be(se.em.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.em.endUnd=be(se.em.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.start=be(se.strong.start).replace(/punctuation/g,se._punctuation).getRegex(),se.strong.middle=be(se.strong.middle).replace(/punctuation/g,se._punctuation).replace(/blockSkip/g,se._blockSkip).getRegex(),se.strong.endAst=be(se.strong.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.endUnd=be(se.strong.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.blockSkip=be(se._blockSkip,"g").getRegex(),se.overlapSkip=be(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=be(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=be(se.tag).replace("comment",ue._comment).replace("attribute",se._attribute).getRegex(),se._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,se._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,se._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,se.link=be(se.link).replace("label",se._label).replace("href",se._href).replace("title",se._title).getRegex(),se.reflink=be(se.reflink).replace("label",se._label).getRegex(),se.reflinkSearch=be(se.reflinkSearch,"g").replace("reflink",se.reflink).replace("nolink",se.nolink).getRegex(),se.normal=ye({},se),se.pedantic=ye({},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:be(/^!?\[(label)\]\((.*?)\)/).replace("label",se._label).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",se._label).getRegex()}),se.gfm=ye({},se.normal,{escape:be(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=be(se.gfm.url,"i").replace("email",se.gfm._extended_email).getRegex(),se.breaks=ye({},se.gfm,{br:be(se.br).replace("{2,}","*").getRegex(),text:be(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 Oe(qe){return qe.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(qe){var He="",Ye,Ce,Le=qe.length;for(Ye=0;Ye<Le;Ye++)Ce=qe.charCodeAt(Ye),Math.random()>.5&&(Ce="x"+Ce.toString(16)),He+="&#"+Ce+";";return He}var te=function(){function qe(Ye){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ye||me,this.options.tokenizer=this.options.tokenizer||new Te,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ce={block:re.normal,inline:ae.normal};this.options.pedantic?(Ce.block=re.pedantic,Ce.inline=ae.pedantic):this.options.gfm&&(Ce.block=re.gfm,this.options.breaks?Ce.inline=ae.breaks:Ce.inline=ae.gfm),this.tokenizer.rules=Ce}qe.lex=function(Ce,Le){var We=new qe(Le);return We.lex(Ce)};var He=qe.prototype;return He.lex=function(Ce){return Ce=Ce.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Ce,this.tokens,!0),this.inline(this.tokens),this.tokens},He.blockTokens=function(Ce,Le,We){Le===void 0&&(Le=[]),We===void 0&&(We=!0),Ce=Ce.replace(/^ +$/gm,"");for(var Ue,ze,st,Ct;Ce;){if(Ue=this.tokenizer.space(Ce)){Ce=Ce.substring(Ue.raw.length),Ue.type&&Le.push(Ue);continue}if(Ue=this.tokenizer.code(Ce,Le)){Ce=Ce.substring(Ue.raw.length),Ue.type?Le.push(Ue):(Ct=Le[Le.length-1],Ct.raw+=`
|
|
|
`+Ue.raw,Ct.text+=`
|
|
|
`+Ue.text);continue}if(Ue=this.tokenizer.fences(Ce)){Ce=Ce.substring(Ue.raw.length),Le.push(Ue);continue}if(Ue=this.tokenizer.heading(Ce)){Ce=Ce.substring(Ue.raw.length),Le.push(Ue);continue}if(Ue=this.tokenizer.nptable(Ce)){Ce=Ce.substring(Ue.raw.length),Le.push(Ue);continue}if(Ue=this.tokenizer.hr(Ce)){Ce=Ce.substring(Ue.raw.length),Le.push(Ue);continue}if(Ue=this.tokenizer.blockquote(Ce)){Ce=Ce.substring(Ue.raw.length),Ue.tokens=this.blockTokens(Ue.text,[],We),Le.push(Ue);continue}if(Ue=this.tokenizer.list(Ce)){for(Ce=Ce.substring(Ue.raw.length),st=Ue.items.length,ze=0;ze<st;ze++)Ue.items[ze].tokens=this.blockTokens(Ue.items[ze].text,[],!1);Le.push(Ue);continue}if(Ue=this.tokenizer.html(Ce)){Ce=Ce.substring(Ue.raw.length),Le.push(Ue);continue}if(We&&(Ue=this.tokenizer.def(Ce))){Ce=Ce.substring(Ue.raw.length),this.tokens.links[Ue.tag]||(this.tokens.links[Ue.tag]={href:Ue.href,title:Ue.title});continue}if(Ue=this.tokenizer.table(Ce)){Ce=Ce.substring(Ue.raw.length),Le.push(Ue);continue}if(Ue=this.tokenizer.lheading(Ce)){Ce=Ce.substring(Ue.raw.length),Le.push(Ue);continue}if(We&&(Ue=this.tokenizer.paragraph(Ce))){Ce=Ce.substring(Ue.raw.length),Le.push(Ue);continue}if(Ue=this.tokenizer.text(Ce,Le)){Ce=Ce.substring(Ue.raw.length),Ue.type?Le.push(Ue):(Ct=Le[Le.length-1],Ct.raw+=`
|
|
|
`+Ue.raw,Ct.text+=`
|
|
|
`+Ue.text);continue}if(Ce){var Wt="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(Wt);break}else throw new Error(Wt)}}return Le},He.inline=function(Ce){var Le,We,Ue,ze,st,Ct,Wt=Ce.length;for(Le=0;Le<Wt;Le++){Ct=Ce[Le];switch(Ct.type){case"paragraph":case"text":case"heading":{Ct.tokens=[],this.inlineTokens(Ct.text,Ct.tokens);break}case"table":{for(Ct.tokens={header:[],cells:[]},ze=Ct.header.length,We=0;We<ze;We++)Ct.tokens.header[We]=[],this.inlineTokens(Ct.header[We],Ct.tokens.header[We]);for(ze=Ct.cells.length,We=0;We<ze;We++)for(st=Ct.cells[We],Ct.tokens.cells[We]=[],Ue=0;Ue<st.length;Ue++)Ct.tokens.cells[We][Ue]=[],this.inlineTokens(st[Ue],Ct.tokens.cells[We][Ue]);break}case"blockquote":{this.inline(Ct.tokens);break}case"list":{for(ze=Ct.items.length,We=0;We<ze;We++)this.inline(Ct.items[We].tokens);break}}}return Ce},He.inlineTokens=function(Ce,Le,We,Ue,ze){Le===void 0&&(Le=[]),We===void 0&&(We=!1),Ue===void 0&&(Ue=!1),ze===void 0&&(ze="");var st,Ct=Ce,Wt;if(this.tokens.links){var Qt=Object.keys(this.tokens.links);if(Qt.length>0)for(;(Wt=this.tokenizer.rules.inline.reflinkSearch.exec(Ct))!=null;)Qt.includes(Wt[0].slice(Wt[0].lastIndexOf("[")+1,-1))&&(Ct=Ct.slice(0,Wt.index)+"["+"a".repeat(Wt[0].length-2)+"]"+Ct.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Wt=this.tokenizer.rules.inline.blockSkip.exec(Ct))!=null;)Ct=Ct.slice(0,Wt.index)+"["+"a".repeat(Wt[0].length-2)+"]"+Ct.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ce;){if(st=this.tokenizer.escape(Ce)){Ce=Ce.substring(st.raw.length),Le.push(st);continue}if(st=this.tokenizer.tag(Ce,We,Ue)){Ce=Ce.substring(st.raw.length),We=st.inLink,Ue=st.inRawBlock,Le.push(st);continue}if(st=this.tokenizer.link(Ce)){Ce=Ce.substring(st.raw.length),st.type==="link"&&(st.tokens=this.inlineTokens(st.text,[],!0,Ue)),Le.push(st);continue}if(st=this.tokenizer.reflink(Ce,this.tokens.links)){Ce=Ce.substring(st.raw.length),st.type==="link"&&(st.tokens=this.inlineTokens(st.text,[],!0,Ue)),Le.push(st);continue}if(st=this.tokenizer.strong(Ce,Ct,ze)){Ce=Ce.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],We,Ue),Le.push(st);continue}if(st=this.tokenizer.em(Ce,Ct,ze)){Ce=Ce.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],We,Ue),Le.push(st);continue}if(st=this.tokenizer.codespan(Ce)){Ce=Ce.substring(st.raw.length),Le.push(st);continue}if(st=this.tokenizer.br(Ce)){Ce=Ce.substring(st.raw.length),Le.push(st);continue}if(st=this.tokenizer.del(Ce)){Ce=Ce.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],We,Ue),Le.push(st);continue}if(st=this.tokenizer.autolink(Ce,le)){Ce=Ce.substring(st.raw.length),Le.push(st);continue}if(!We&&(st=this.tokenizer.url(Ce,le))){Ce=Ce.substring(st.raw.length),Le.push(st);continue}if(st=this.tokenizer.inlineText(Ce,Ue,Oe)){Ce=Ce.substring(st.raw.length),ze=st.raw.slice(-1),Le.push(st);continue}if(Ce){var Kt="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(Kt);break}else throw new Error(Kt)}}return Le},g(qe,null,[{key:"rules",get:function(){return{block:re,inline:ae}}}]),qe}(),Q=A.defaults,J=W.cleanUrl,ve=W.escape,_e=function(){function qe(Ye){this.options=Ye||Q}var He=qe.prototype;return He.code=function(Ce,Le,We){var Ue=(Le||"").match(/\S*/)[0];if(this.options.highlight){var ze=this.options.highlight(Ce,Ue);ze!=null&&ze!==Ce&&(We=!0,Ce=ze)}return Ue?'<pre><code class="'+this.options.langPrefix+ve(Ue,!0)+'">'+(We?Ce:ve(Ce,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(We?Ce:ve(Ce,!0))+`</code></pre>
|
|
|
`},He.blockquote=function(Ce){return`<blockquote>
|
|
|
`+Ce+`</blockquote>
|
|
|
`},He.html=function(Ce){return Ce},He.heading=function(Ce,Le,We,Ue){return this.options.headerIds?"<h"+Le+' id="'+this.options.headerPrefix+Ue.slug(We)+'">'+Ce+"</h"+Le+`>
|
|
|
`:"<h"+Le+">"+Ce+"</h"+Le+`>
|
|
|
`},He.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},He.list=function(Ce,Le,We){var Ue=Le?"ol":"ul",ze=Le&&We!==1?' start="'+We+'"':"";return"<"+Ue+ze+`>
|
|
|
`+Ce+"</"+Ue+`>
|
|
|
`},He.listitem=function(Ce){return"<li>"+Ce+`</li>
|
|
|
`},He.checkbox=function(Ce){return"<input "+(Ce?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},He.paragraph=function(Ce){return"<p>"+Ce+`</p>
|
|
|
`},He.table=function(Ce,Le){return Le&&(Le="<tbody>"+Le+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Ce+`</thead>
|
|
|
`+Le+`</table>
|
|
|
`},He.tablerow=function(Ce){return`<tr>
|
|
|
`+Ce+`</tr>
|
|
|
`},He.tablecell=function(Ce,Le){var We=Le.header?"th":"td",Ue=Le.align?"<"+We+' align="'+Le.align+'">':"<"+We+">";return Ue+Ce+"</"+We+`>
|
|
|
`},He.strong=function(Ce){return"<strong>"+Ce+"</strong>"},He.em=function(Ce){return"<em>"+Ce+"</em>"},He.codespan=function(Ce){return"<code>"+Ce+"</code>"},He.br=function(){return this.options.xhtml?"<br/>":"<br>"},He.del=function(Ce){return"<del>"+Ce+"</del>"},He.link=function(Ce,Le,We){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return We;var Ue='<a href="'+ve(Ce)+'"';return Le&&(Ue+=' title="'+Le+'"'),Ue+=">"+We+"</a>",Ue},He.image=function(Ce,Le,We){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return We;var Ue='<img src="'+Ce+'" alt="'+We+'"';return Le&&(Ue+=' title="'+Le+'"'),Ue+=this.options.xhtml?"/>":">",Ue},He.text=function(Ce){return Ce},qe}(),Ae=function(){function qe(){}var He=qe.prototype;return He.strong=function(Ce){return Ce},He.em=function(Ce){return Ce},He.codespan=function(Ce){return Ce},He.del=function(Ce){return Ce},He.html=function(Ce){return Ce},He.text=function(Ce){return Ce},He.link=function(Ce,Le,We){return""+We},He.image=function(Ce,Le,We){return""+We},He.br=function(){return""},qe}(),Je=function(){function qe(){this.seen={}}var He=qe.prototype;return He.slug=function(Ce){var Le=Ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Le)){var We=Le;do this.seen[We]++,Le=We+"-"+this.seen[We];while(this.seen.hasOwnProperty(Le))}return this.seen[Le]=0,Le},qe}(),tt=A.defaults,ut=W.unescape,ft=function(){function qe(Ye){this.options=Ye||tt,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Je}qe.parse=function(Ce,Le){var We=new qe(Le);return We.parse(Ce)};var He=qe.prototype;return He.parse=function(Ce,Le){Le===void 0&&(Le=!0);var We="",Ue,ze,st,Ct,Wt,Qt,Kt,Ot,Fe,at,it,Pe,Qe,pt,bt,Dt,It,ct,Nt=Ce.length;for(Ue=0;Ue<Nt;Ue++){at=Ce[Ue];switch(at.type){case"space":continue;case"hr":{We+=this.renderer.hr();continue}case"heading":{We+=this.renderer.heading(this.parseInline(at.tokens),at.depth,ut(this.parseInline(at.tokens,this.textRenderer)),this.slugger);continue}case"code":{We+=this.renderer.code(at.text,at.lang,at.escaped);continue}case"table":{for(Ot="",Kt="",Ct=at.header.length,ze=0;ze<Ct;ze++)Kt+=this.renderer.tablecell(this.parseInline(at.tokens.header[ze]),{header:!0,align:at.align[ze]});for(Ot+=this.renderer.tablerow(Kt),Fe="",Ct=at.cells.length,ze=0;ze<Ct;ze++){for(Qt=at.tokens.cells[ze],Kt="",Wt=Qt.length,st=0;st<Wt;st++)Kt+=this.renderer.tablecell(this.parseInline(Qt[st]),{header:!1,align:at.align[st]});Fe+=this.renderer.tablerow(Kt)}We+=this.renderer.table(Ot,Fe);continue}case"blockquote":{Fe=this.parse(at.tokens),We+=this.renderer.blockquote(Fe);continue}case"list":{for(it=at.ordered,Pe=at.start,Qe=at.loose,Ct=at.items.length,Fe="",ze=0;ze<Ct;ze++)bt=at.items[ze],Dt=bt.checked,It=bt.task,pt="",bt.task&&(ct=this.renderer.checkbox(Dt),Qe?bt.tokens.length>0&&bt.tokens[0].type==="text"?(bt.tokens[0].text=ct+" "+bt.tokens[0].text,bt.tokens[0].tokens&&bt.tokens[0].tokens.length>0&&bt.tokens[0].tokens[0].type==="text"&&(bt.tokens[0].tokens[0].text=ct+" "+bt.tokens[0].tokens[0].text)):bt.tokens.unshift({type:"text",text:ct}):pt+=ct),pt+=this.parse(bt.tokens,Qe),Fe+=this.renderer.listitem(pt,It,Dt);We+=this.renderer.list(Fe,it,Pe);continue}case"html":{We+=this.renderer.html(at.text);continue}case"paragraph":{We+=this.renderer.paragraph(this.parseInline(at.tokens));continue}case"text":{for(Fe=at.tokens?this.parseInline(at.tokens):at.text;Ue+1<Nt&&Ce[Ue+1].type==="text";)at=Ce[++Ue],Fe+=`
|
|
|
`+(at.tokens?this.parseInline(at.tokens):at.text);We+=Le?this.renderer.paragraph(Fe):Fe;continue}default:{var jt='Token with "'+at.type+'" type was not found.';if(this.options.silent){console.error(jt);return}else throw new Error(jt)}}}return We},He.parseInline=function(Ce,Le){Le=Le||this.renderer;var We="",Ue,ze,st=Ce.length;for(Ue=0;Ue<st;Ue++){ze=Ce[Ue];switch(ze.type){case"escape":{We+=Le.text(ze.text);break}case"html":{We+=Le.html(ze.text);break}case"link":{We+=Le.link(ze.href,ze.title,this.parseInline(ze.tokens,Le));break}case"image":{We+=Le.image(ze.href,ze.title,ze.text);break}case"strong":{We+=Le.strong(this.parseInline(ze.tokens,Le));break}case"em":{We+=Le.em(this.parseInline(ze.tokens,Le));break}case"codespan":{We+=Le.codespan(ze.text);break}case"br":{We+=Le.br();break}case"del":{We+=Le.del(this.parseInline(ze.tokens,Le));break}case"text":{We+=Le.text(ze.text);break}default:{var Ct='Token with "'+ze.type+'" type was not found.';if(this.options.silent){console.error(Ct);return}else throw new Error(Ct)}}}return We},qe}(),vt=W.merge,_t=W.checkSanitizeDeprecation,Ve=W.escape,je=A.getDefaults,ht=A.changeDefaults,Bt=A.defaults;function Et(qe,He,Ye){if(typeof qe=="undefined"||qe===null)throw new Error("marked(): input parameter is undefined or null");if(typeof qe!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(qe)+", string expected");if(typeof He=="function"&&(Ye=He,He=null),He=vt({},Et.defaults,He||{}),_t(He),Ye){var Ce=He.highlight,Le;try{Le=te.lex(qe,He)}catch(st){return Ye(st)}var We=function(Ct){var Wt;if(!Ct)try{Wt=ft.parse(Le,He)}catch(Qt){Ct=Qt}return He.highlight=Ce,Ct?Ye(Ct):Ye(null,Wt)};if(!Ce||Ce.length<3)return We();if(delete He.highlight,!Le.length)return We();var Ue=0;Et.walkTokens(Le,function(st){st.type==="code"&&(Ue++,setTimeout(function(){Ce(st.text,st.lang,function(Ct,Wt){if(Ct)return We(Ct);Wt!=null&&Wt!==st.text&&(st.text=Wt,st.escaped=!0),Ue--,Ue===0&&We()})},0))}),Ue===0&&We();return}try{var ze=te.lex(qe,He);return He.walkTokens&&Et.walkTokens(ze,He.walkTokens),ft.parse(ze,He)}catch(st){if(st.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+Ve(st.message+"",!0)+"</pre>";throw st}}Et.options=Et.setOptions=function(qe){return vt(Et.defaults,qe),ht(Et.defaults),Et},Et.getDefaults=je,Et.defaults=Bt,Et.use=function(qe){var He=vt({},qe);if(qe.renderer&&function(){var Ce=Et.defaults.renderer||new _e,Le=function(ze){var st=Ce[ze];Ce[ze]=function(){for(var Ct=arguments.length,Wt=new Array(Ct),Qt=0;Qt<Ct;Qt++)Wt[Qt]=arguments[Qt];var Kt=qe.renderer[ze].apply(Ce,Wt);return Kt===!1&&(Kt=st.apply(Ce,Wt)),Kt}};for(var We in qe.renderer)Le(We);He.renderer=Ce}(),qe.tokenizer&&function(){var Ce=Et.defaults.tokenizer||new Te,Le=function(ze){var st=Ce[ze];Ce[ze]=function(){for(var Ct=arguments.length,Wt=new Array(Ct),Qt=0;Qt<Ct;Qt++)Wt[Qt]=arguments[Qt];var Kt=qe.tokenizer[ze].apply(Ce,Wt);return Kt===!1&&(Kt=st.apply(Ce,Wt)),Kt}};for(var We in qe.tokenizer)Le(We);He.tokenizer=Ce}(),qe.walkTokens){var Ye=Et.defaults.walkTokens;He.walkTokens=function(Ce){qe.walkTokens(Ce),Ye&&Ye(Ce)}}Et.setOptions(He)},Et.walkTokens=function(qe,He){for(var Ye=y(qe),Ce;!(Ce=Ye()).done;){var Le=Ce.value;He(Le);switch(Le.type){case"table":{for(var We=y(Le.tokens.header),Ue;!(Ue=We()).done;){var ze=Ue.value;Et.walkTokens(ze,He)}for(var st=y(Le.tokens.cells),Ct;!(Ct=st()).done;)for(var Wt=Ct.value,Qt=y(Wt),Kt;!(Kt=Qt()).done;){var Ot=Kt.value;Et.walkTokens(Ot,He)}break}case"list":{Et.walkTokens(Le.items,He);break}default:Le.tokens&&Et.walkTokens(Le.tokens,He)}}},Et.Parser=ft,Et.parser=ft.parse,Et.Renderer=_e,Et.TextRenderer=Ae,Et.Lexer=te,Et.lexer=te.lex,Et.Tokenizer=Te,Et.Slugger=Je,Et.parse=Et;var Pt=Et;return Pt})},E4JC:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.StreamCipher,y=g.algo,C=[],A=[],m=[],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);m[n]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.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,g=[],O=0;O<o.rangeCount;O++)g.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||g.forEach(function(b){o.addRange(b)}),M&&M.focus()}}},EGTK:function(k,z,o){"use strict";var M=o("R9oj"),g=o("ECub"),O=o("T2oS"),b=o("W9HT"),y=o("5NDa"),C=o("5rEg"),A=o("k1fw"),m=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,L=x.value,N=L===void 0?null:L,V=x.loading,H=V===void 0?!1:V,D=x.data,W=D===void 0?[]:D,F=x.otherData,I=F===void 0?[]:F,K=x.tags,ee=K===void 0?[]:K,he=x.onChange,de=he===void 0?function(){}:he,Se=Object(l.useState)(""),Te=Object(e.a)(Se,2),ce=Te[0],be=Te[1],ye=Object(l.useState)(!1),ue=Object(e.a)(ye,2),se=ue[0],$=ue[1],me=Object(l.useState)([]),re=Object(e.a)(me,2),ae=re[0],Oe=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,Ae=Object(l.useRef)(),Je=Object(l.useRef)(null),tt=Object(l.useRef)(0),ut=Object(l.useRef)([]);Object(l.useEffect)(function(){return window.addEventListener("keydown",ft),function(){window.removeEventListener("keydown",ft)}},[ce,se,ae]);var ft=function(ze){if(!se||ze.keyCode!==40&&ze.keyCode!==38)return;var st=0;ze.keyCode===40&&se&&(Q<ae.length-1?st=Q+1:st=0,console.log("\u4E0B"),je(st,"down")),ze.keyCode===38&&se&&(Q===0?st=ae.length-1:st=Q-1,je(st,"up")),J(st),_t(ce,st,!0)},vt=function(ze,st){var Ct=function(Kt){var Ot=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,Fe={};return Fe["^"]="\\^",Fe["."]="\\.",Fe["\\"]="\\\\",Fe["|"]="\\|",Fe["("]="\\(",Fe[")"]="\\)",Fe["*"]="\\*",Fe["+"]="\\+",Fe["-"]="\\-",Fe.$="$",Fe["["]="\\[",Fe["]"]="\\]",Fe["?"]="\\?",Kt=Kt.replace(Ot,function(at){return Fe[at]}),Kt},Wt=new RegExp(Ct(st),"gi");return ze=ze.replace(Wt,function(Qt){return"<span style='color:#0152d9;'>"+Qt+"</span>"}),ze},_t=function(){var Ue=Object(m.a)(a.a.mark(function ze(st,Ct,Wt){var Qt,Kt,Ot;return a.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(Qt=tt.current+1,tt.current=Qt,Kt=function(Pe){var Qe=Pe==null?void 0:Pe.map(function(pt,bt){var Dt=pt.id,It=pt.name,ct=Object(A.a)(Object(A.a)({},pt),{},{label:n.a.createElement("ul",{id:"search-".concat(_e,"-").concat(bt),onClick:function(){return Et(Dt,ct)},className:bt===Ct?h.a.searchListActive:h.a.searchList},n.a.createElement("li",{className:h.a.name,dangerouslySetInnerHTML:{__html:vt(It,st)}}),pt.private&&n.a.createElement("li",{className:h.a.tag},"\u79C1\u6709"))});return ct});return Qe},!Wt){at.next=7;break}return Ot=Kt(ut.current),Oe(Ot),at.abrupt("return");case 7:clearTimeout(Je.current),Je.current=setTimeout(Object(m.a)(a.a.mark(function it(){var Pe,Qe,pt,bt;return a.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,Object(u.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:st,page:1,limit:1e5}});case 2:Pe=It.sent,(Pe==null?void 0:Pe.status)===0&&(pt=Kt((Pe==null||((Qe=Pe.data)===null||Qe===void 0)?void 0:Qe.mirrors)||[]),Qt===tt.current&&(Oe(pt),ut.current=Object(w.cloneDeep)((Pe==null||((bt=Pe.data)===null||bt===void 0)?void 0:bt.mirrors)||[])));case 4:case"end":return It.stop()}},it)})),300);case 9:case"end":return at.stop()}},ze)}));return function(st,Ct,Wt){return Ue.apply(this,arguments)}}(),Ve=function(ze){var st=document.getElementById("scroll-".concat(_e,"-").concat(ze));if(!st)return;var Ct=document.getElementById("scroll-".concat(_e));Ct.scrollTo(0,st.offsetTop)},je=function(ze,st){var Ct=document.getElementById("search-".concat(_e,"-").concat(ze));if(!Ct)return;var Wt=document.getElementById("search-".concat(_e)),Qt=Ct.offsetTop-Wt.scrollTop>0&&Ct.offsetTop-Wt.scrollTop<Wt.clientHeight;if(Qt)return;st==="down"?Wt.scrollTo(0,Ct.offsetTop-Wt.clientHeight+Ct.clientHeight):Wt.scrollTo(0,Ct.offsetTop)},ht=function(ze){_t(ze,0),be(ze)},Bt=function(ze){var st,Ct;if(!ae.length)return;var Wt=ae==null||((st=ae[Q])===null||st===void 0)?void 0:st.id;de(Wt),Oe([]),J(0),be(ae==null||((Ct=ae[Q])===null||Ct===void 0)?void 0:Ct.name),Ve(Wt),Ae.current.blur()},Et=function(ze,st){de(ze),Oe([]),J(0),be(st==null?void 0:st.name),Ve(ze)},Pt=function(){Oe([]),be("")},qe=function(ze){de(ze),Oe([]),be("")},He=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"})},Ye=function(){v({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Ce=function(){v({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},Le=function(){ve.current=setTimeout(function(){$(!1),J(0)},200)},We=!(W!=null&&W.length)&&!(I!=null&&I.length);return n.a.createElement("div",{className:r()(U==="night"?h.a.darklySelectEnvironment:h.a.selectEnvironment,S)},!We&&n.a.createElement("div",{className:h.a.search},n.a.createElement(C.a,{suffix:He(),bordered:!1,ref:Ae,value:ce,onKeyDown:function(ze){(ze.keyCode===40||ze.keyCode===38)&&ze.preventDefault()},size:"large",onFocus:function(){clearTimeout(ve.current),ht(ce),$(!0)},onBlur:Le,onChange:function(ze){return ht(ze.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(Ue,ze){return n.a.createElement(n.a.Fragment,{key:ze}," ",Ue.label)}))),H?n.a.createElement(b.a,{className:h.a.spin}):n.a.createElement(n.a.Fragment,null,We&&n.a.createElement(g.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(Ue,ze){return n.a.createElement("li",{key:ze,onClick:function(){return qe(Ue.id)},className:N===Ue.id?"".concat(h.a.tag," ").concat(h.a.tagActive):h.a.tag},Ue.name)}))),n.a.createElement("aside",{className:h.a.wrap,id:"scroll-".concat(_e)},W.map(function(Ue,ze){var st;return Ue!=null&&(st=Ue.image)!==null&&st!==void 0&&st.length?n.a.createElement(P,{key:ze,data:Ue,id:N,handleClick:function(Wt){return qe(Wt)}}):null}),n.a.createElement("ul",{className:h.a.allList},I.map(function(Ue){return n.a.createElement("li",{key:"key-".concat(Ue.id),id:"scroll-".concat(_e,"-").concat(Ue.id),className:Ue.id===N?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return de(Ue.id)}},n.a.createElement("div",{className:h.a.name},Ue.name),Ue.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:Ye}," ","\u7533\u8BF7\u65B0\u5EFA"),n.a.createElement("span",{className:h.a.p2,onClick:Ce}," ","\u5728\u7EBF\u521B\u5EFA")))},P=function(x){var S=x.data,v=x.id,T=x.handleClick,U=Object(l.useState)(!0),L=Object(e.a)(U,2),N=L[0],V=L[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 g={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]:g[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(g.pairs+"`");function A(r){return function(c){return l(c,r)}}function m(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=m(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=m(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=m(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 L=v.ch==0?" ":r.getRange(O(v.line,v.ch-1),v);if(!M.isWordChar(U)&&L!=c&&!M.isWordChar(L))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,g){k.exports=z=g(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(g){var O=M,b=O.lib,y=b.WordArray,C=b.Hasher,A=O.algo,m=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=m.words,U=e.words,L=f.words,N=a.words,V,H,D,W,F,I,K,ee,he,de;I=V=x[0],K=H=x[1],ee=D=x[2],he=W=x[3],de=F=x[4];for(var Se,_=0;_<80;_+=1)Se=V+w[E+T[_]]|0,_<16?Se+=r(H,D,W)+S[0]:_<32?Se+=c(H,D,W)+S[1]:_<48?Se+=h(H,D,W)+S[2]:_<64?Se+=d(H,D,W)+S[3]:Se+=s(H,D,W)+S[4],Se=Se|0,Se=u(Se,L[_]),Se=Se+F|0,V=F,F=W,W=u(D,10),D=H,H=Se,Se=I+w[E+U[_]]|0,_<16?Se+=s(K,ee,he)+v[0]:_<32?Se+=d(K,ee,he)+v[1]:_<48?Se+=h(K,ee,he)+v[2]:_<64?Se+=c(K,ee,he)+v[3]:Se+=r(K,ee,he)+v[4],Se=Se|0,Se=u(Se,N[_]),Se=Se+de|0,I=de,de=he,he=u(ee,10),ee=K,K=Se;Se=x[1]+D+he|0,x[1]=x[2]+W+de|0,x[2]=x[3]+F+I|0,x[3]=x[4]+V+K|0,x[4]=x[0]+H+ee|0,x[0]=Se},_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,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=g.enc,C=y.Base64={stringify:function(m){var e=m.words,f=m.sigBytes,a=this._map;m.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(m){var e=m.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=m.indexOf(n);i!==-1&&(e=i)}return A(m,e,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function A(m,e,f){for(var a=[],l=0,n=0;n<e;n++)if(n%4){var i=f[m.charCodeAt(n-1)]<<n%4*2,r=f[m.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,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){if(typeof ArrayBuffer!="function")return;var g=M,O=g.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 m=A.byteLength,e=[],f=0;f<m;f++)e[f>>>2]|=A[f]<<24-f%4*8;y.call(this,e,m)}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(g,O){if(!g)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"),g=o("2/Rp"),O=o("DZo9"),b=o("8z0m"),y=o("miYZ"),C=o("tsqr"),A=o("9og8"),m=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,L=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],I=Object(d.useState)([]),K=Object(l.a)(I,2),ee=K[0],he=K[1],de=function(ue){var se=["uploading","done","removed"];se.includes(ue.file.status)&&he(ue.fileList)},Se=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 Oe;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:Oe=te.sent,Oe&&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 ye=Object(A.a)(h.a.mark(function ue(se){var $,me,re,ae,Oe,le,te,Q;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=se||{},ae=re.language,Oe=re.env,le=re.mode,te=re.code,ve.next=3,V({type:"newShixuns/applyShixunMirror",payload:{language:ae,runtime:Oe,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 ye.apply(this,arguments)}}(),be=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:be},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:de,onRemove:Se,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(g.a,{className:"mr5",size:"large",onClick:function(){V({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(g.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,L=v.globalSetting;return{newShixuns:T,globalSetting:L,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,g,O){k.exports=z=g(o("Ib8C"),o("lPiR"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=g.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 m=C._doFinalize.call(this);return m.sigBytes-=4,m}});g.SHA224=C._createHelper(A),g.HmacSHA224=C._createHmacHelper(A)}(),M.SHA224})},GfqC:function(k,z,o){"use strict";var M=o("q1tI"),g=o.n(M),O=o("TSYQ"),b=o.n(O);function y(W,F){var I="cannot "+W.method+" "+W.action+" "+F.status+"'",K=new Error(I);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(I){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 I=new FormData;W.data&&Object.keys(W.data).forEach(function(ee){var he=W.data[ee];if(Array.isArray(he)){he.forEach(function(de){I.append(ee+"[]",de)});return}I.append(ee,W.data[ee])}),W.file instanceof Blob?I.append(W.filename,W.file,W.file.name):I.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(I),{abort:function(){F.abort()}}}var m=+new Date,e=0;function f(){return"rc-upload-"+m+"-"+ ++e}function a(W,F){return W.indexOf(F,W.length-F.length)!==-1}var l=function(W,F){if(W&&F){var I=Array.isArray(F)?F:F.split(","),K=W.name||"",ee=W.type||"",he=ee.replace(/\/.*$/,"");return I.some(function(de){var Se=de.trim();return Se.charAt(0)==="."?a(K.toLowerCase(),Se.toLowerCase()):/\/\*$/.test(Se)?he===Se.replace(/\/.*$/,""):ee===Se})}return!0};function n(W,F){var I=W.createReader(),K=[];function ee(){I.readEntries(function(he){var de=Array.prototype.slice.apply(he);K=K.concat(de);var Se=!de.length;Se?F(K):ee()})}ee()}var i=function(F,I,K){var ee=function he(de,Se){Se=Se||"",de.isFile?de.file(function(Te){K(Te)&&(de.fullPath&&!Te.webkitRelativePath&&(Object.defineProperties(Te,{webkitRelativePath:{writable:!0}}),Te.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(Te,{webkitRelativePath:{writable:!1}})),I([Te]))}):de.isDirectory&&n(de,function(Te){Te.forEach(function(ce){he(ce,""+Se+de.name+"/")})})};F.forEach(function(he){ee(he.webkitGetAsEntry())})},r=i,c=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var I=arguments[F];for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&(W[K]=I[K])}return W},h=function(){function W(F,I){var K=[],ee=!0,he=!1,de=void 0;try{for(var Se=F[Symbol.iterator](),Te;!(ee=(Te=Se.next()).done)&&!(K.push(Te.value),I&&K.length===I);ee=!0);}catch(ce){he=!0,de=ce}finally{try{!ee&&Se.return&&Se.return()}finally{if(he)throw de}}return K}return function(F,I){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return W(F,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(F,I){for(var K=0;K<I.length;K++){var ee=I[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(F,ee.key,ee)}}return function(F,I,K){return I&&W(F.prototype,I),K&&W(F,K),F}}();function s(W,F,I){return F in W?Object.defineProperty(W,F,{value:I,enumerable:!0,configurable:!0,writable:!0}):W[F]=I,W}function u(W,F){var I={};for(var K in W){if(F.indexOf(K)>=0)continue;if(!Object.prototype.hasOwnProperty.call(W,K))continue;I[K]=W[K]}return I}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(I,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-"||K==="role")&&(I[K]=F[K]),I},{})},R=function(W){_(F,W);function F(){var I,K,ee,he;w(this,F);for(var de=arguments.length,Se=Array(de),Te=0;Te<de;Te++)Se[Te]=arguments[Te];return he=(K=(ee=E(this,(I=F.__proto__||Object.getPrototypeOf(F)).call.apply(I,[this].concat(Se))),ee),ee.state={uid:f()},ee.reqs={},ee.onChange=function(ce){var be=ce.target.files;ee.uploadFiles(be),ee.reset()},ee.onClick=function(ce){var be=ee.fileInput;if(!be)return;var ye=ee.props,ue=ye.children,se=ye.onClick;ue&&ue.type==="button"&&(be.parentNode.focus(),be.parentNode.querySelector("button").blur()),be.click(),se&&se(ce)},ee.onKeyDown=function(ce){ce.key==="Enter"&&ee.onClick()},ee.onFileDrop=function(ce){var be=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 ye=Array.prototype.slice.call(ce.dataTransfer.files).filter(function(ue){return l(ue,ee.props.accept)});be===!1&&(ye=ye.slice(0,1)),ee.uploadFiles(ye)}},ee.uploadFiles=function(ce){var be=Array.prototype.slice.call(ce);be.map(function(ye){return ye.uid=f(),ye}).forEach(function(ye){ee.upload(ye,be)})},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,de=this.props;if(!de.beforeUpload)return setTimeout(function(){return he.post(K)},0);var Se=de.beforeUpload(K,ee);Se&&Se.then?Se.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)}):Se!==!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,de=he.onStart,Se=he.onProgress,Te=he.transformFile,ce=Te===void 0?function(be){return be}:Te;new Promise(function(be){var ye=he.action;return typeof ye=="function"&&(ye=ye(K)),be(ye)}).then(function(be){var ye=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],Oe={action:be,filename:he.name,data:ae,file:re,headers:he.headers,withCredentials:he.withCredentials,method:he.method||"post",onProgress:Se?function(le){Se(le,K)}:null,onSuccess:function(te,Q){delete ee.reqs[ye],he.onSuccess(te,K,Q)},onError:function(te,Q){delete ee.reqs[ye],he.onError(te,Q,K)}};de(K),ee.reqs[ye]=ue(Oe)})})}},{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(de){ee[de]&&ee[de].abort&&ee[de].abort(),delete ee[de]})}},{key:"render",value:function(){var K,ee=this.props,he=ee.component,de=ee.prefixCls,Se=ee.className,Te=ee.disabled,ce=ee.id,be=ee.style,ye=ee.multiple,ue=ee.accept,se=ee.children,$=ee.directory,me=ee.openFileDialogOnClick,re=ee.onMouseEnter,ae=ee.onMouseLeave,Oe=u(ee,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),le=b()((K={},s(K,de,!0),s(K,de+"-disabled",Te),s(K,Se,Se),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 g.a.createElement(he,c({},te,{className:le,role:"button",style:be}),g.a.createElement("input",c({},P(Oe),{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:ye,onChange:this.onChange})),se)}}]),F}(M.Component),x=R,S=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var I=arguments[F];for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&(W[K]=I[K])}return W},v=function(){function W(F,I){for(var K=0;K<I.length;K++){var ee=I[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(F,ee.key,ee)}}return function(F,I,K){return I&&W(F.prototype,I),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 L(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){L(F,W);function F(){var I,K,ee,he;T(this,F);for(var de=arguments.length,Se=Array(de),Te=0;Te<de;Te++)Se[Te]=arguments[Te];return he=(K=(ee=U(this,(I=F.__proto__||Object.getPrototypeOf(F)).call.apply(I,[this].concat(Se))),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 g.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,g,O,b){var y=O?O.call(b,M,g):void 0;if(y!==void 0)return!!y;if(M===g)return!0;if(typeof M!="object"||!M||typeof g!="object"||!g)return!1;var C=Object.keys(M),A=Object.keys(g);if(C.length!==A.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(g),e=0;e<C.length;e++){var f=C[e];if(!m(f))return!1;var a=M[f],l=g[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"},g=M;z.default=g},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"),g=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){g(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"),m=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 m()(_,w)}return m()(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(g){return null}z.a=M},Ib8C:function(k,z,o){(function(M){(function(g,O){k.exports=z=O()})(this,function(){var g=g||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}}(),m={},e=m.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=m.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=m.algo={};return m}(Math);return g})}).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(g){function O(u){return u&&typeof u=="object"&&typeof u[Symbol.iterator]=="function"}g.is=O;const b=Object.freeze([]);function y(){return b}g.empty=y;function*C(u){yield u}g.single=C;function A(u){return u||b}g.from=A;function m(u){return!u||u[Symbol.iterator]().next().done===!0}g.isEmpty=m;function e(u){return u[Symbol.iterator]().next().value}g.first=e;function f(u,w){for(const E of u)if(w(E))return!0;return!1}g.some=f;function a(u,w){for(const E of u)if(w(E))return E;return}g.find=a;function*l(u,w){for(const E of u)w(E)&&(yield E)}g.filter=l;function*n(u,w){let E=0;for(const _ of u)yield w(_,E++)}g.map=n;function*i(...u){for(const w of u)for(const E of w)yield E}g.concat=i;function*r(u){for(const w of u)for(const E of w)yield E}g.concatNested=r;function c(u,w,E){let _=E;for(const P of u)_=w(_,P);return _}g.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]}g.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,g.empty()];E.push(R.value)}return[E,{[Symbol.iterator](){return _}}]}g.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}}g.equals=s})(M||(M={}))},JeFH:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jky8:function(k,z,o){"use strict";var M=o("sRBo"),g=o("kaz8"),O=o("5NDa"),b=o("5rEg"),y=o("miYZ"),C=o("tsqr"),A=o("9og8"),m=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],L=Object(n.useState)([]),N=Object(f.a)(L,2),V=N[0],H=N[1],D=Object(n.useState)(!1),W=Object(f.a)(D,2),F=W[0],I=W[1],K=Object(n.useState)(!1),ee=Object(f.a)(K,2),he=ee[0],de=ee[1],Se=Object(n.useState)(),Te=Object(f.a)(Se,2),ce=Te[0],be=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 ye=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(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(T){Oe.next=3;break}return C.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Oe.abrupt("return");case 3:return I(!0),Oe.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=Oe.sent,I(!1),!((re==null?void 0:re.status)===-2)){Oe.next=22;break}if(se(),!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){Oe.next=14;break}return de(!0),be(1),Oe.abrupt("return");case 14:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=18;break}return de(!0),be(2),Oe.abrupt("return");case 18:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=22;break}return de(!0),be(3),Oe.abrupt("return");case 22:if(!((re==null?void 0:re.status)===0)){Oe.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)&&ye(re.course_id,re.message),Oe.abrupt("return");case 27:case"end":return Oe.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(g.a.Group,{value:V,onChange:function(me){return H(me)}},i.a.createElement(g.a,{value:s.Professor,disabled:V.includes(2)||V.includes(3)},"\u6559\u5E08"),i.a.createElement(g.a,{value:s.AssistantProfessor,disabled:V.includes(1)},"\u52A9\u6559"),i.a.createElement(g.a,{value:s.Student,disabled:V.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),i.a.createElement(h.a,{visible:he,onCancel:function(){return de(!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,g,O){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.Base,y=O.WordArray,C=g.algo,A=C.MD5,m=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}});g.EvpKDF=function(e,f,a){return m.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"),g=o("miYZ"),O=o("tsqr"),b=o("oBTY"),y=o("tJVT"),C=o("PpiC"),A=o("k1fw"),m=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",L="5183666c72eec9e4",N=h.a.enc.Utf8.parse(U),V=h.a.enc.Utf8.parse(L),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(m.a)(l.a.mark(function T(U){var L,N,V,H,D,W,F,I,K,ee,he;return l.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return F=U.identifier,I=U.oldFilename,K=U.newFilename,Se.next=3,Object(r.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 3:return ee=Se.sent,ee.data=JSON.parse(_(ee.data)),he=new w.a({endpoint:ee==null||((L=ee.data)===null||L===void 0)?void 0:L.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}),Se.abrupt("return",new Promise(function(Te,ce){console.log(11111,"".concat(F,"/").concat(I),"".concat(F,"/").concat(K),ee.data),he.copy("/".concat(F,"/").concat(I),"/".concat(F,"/").concat(K)).then(function(be){console.log("\u62F7\u8D1D\u6210\u529F",be)}).catch(function(be){console.log(be)})}));case 7:case"end":return Se.stop()}},T)}));return function(U){return v.apply(this,arguments)}}(),x=function(){var v=Object(m.a)(l.a.mark(function T(U,L,N){var V,H,D,W,F,I,K,ee,he,de;return l.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return L.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=L.realFileName?ee:Object(d.a)(),de=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||((I=K.data)===null||I===void 0)?void 0:I.security_token}),Te.abrupt("return",new Promise(function(ce,be){var ye;de.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||((ye=K.data)===null||ye===void 0)?void 0:ye.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)(L)}})).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){be(ue),console.log("err:",ue)})}));case 11:case"end":return Te.stop()}},T)}));return function(U,L,N){return v.apply(this,arguments)}}(),S=function(T){var U=T.user,L=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)(),I=Object(y.a)(F,2),K=I[0],ee=I[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(Se){return Se.file}),customRequest:function(){},beforeUpload:function(){var Se=Object(m.a)(l.a.mark(function ce(be){var ye;return l.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(ye=N.maxSize||1024*1024*1024*1,!D.filter(function($){return $.name===be.name}).length){se.next=4;break}return O.b.info("".concat(be.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),se.abrupt("return");case 4:if(!((be==null?void 0:be.size)>ye)){se.next=7;break}return O.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(ye/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),se.abrupt("return",!1);case 7:return D.push({name:be.name,file:be}),W(Object(b.a)(D)),N.onChange(D),se.abrupt("return",!1);case 11:case"end":return se.stop()}},ce)}));function Te(ce){return Se.apply(this,arguments)}return Te}()},de=function(){var Se=Object(m.a)(l.a.mark(function Te(ce,be){var ye,ue,se,$,me,re,ae,Oe,le,te;return l.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return be.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(Oe=J.sent,Oe.data=JSON.parse(_(Oe.data)),!((Oe==null?void 0:Oe.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:Oe==null||((ye=Oe.data)===null||ye===void 0)?void 0:ye.end_point,region:Oe==null||((ue=Oe.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:Oe==null||((se=Oe.data)===null||se===void 0)?void 0:se.access_key_id,accessKeySecret:Oe==null||(($=Oe.data)===null||$===void 0)?void 0:$.access_key_secret,bucket:Oe==null||((me=Oe.data)===null||me===void 0)?void 0:me.bucket,stsToken:Oe==null||((re=Oe.data)===null||re===void 0)?void 0:re.security_token}),console.log(ce,"file"),ee(K),le=ce.name.split("."),le.pop(),te=be.realFileName?le:Object(d.a)(),J.abrupt("return",new Promise(function(ve,_e){try{var Ae;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,ut,ft){try{console.log("\u8FDB\u5EA6",tt,ut,ft);var vt=D.findIndex(function(_t){return _t.name===ae});D[vt].file.percent=tt*100,D[vt].tempCheckpoint=ut,W(Object(b.a)(D))}catch(_t){}},checkpoint:D[D.findIndex(function(Je){return Je.name===ae})].tempCheckpoint,callback:{customValue:{id:ae+""},url:Oe==null||((Ae=Oe.data)===null||Ae===void 0)?void 0:Ae.callback_url,host:Oe==null?void 0:Oe.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(r.e)(be)}}).then(function(Je){var tt,ut=D.findIndex(function(je){return je.name===ae}),ft="done";if(((tt=Je.data)===null||tt===void 0?void 0:tt.status)===0){var vt;ce.response=(vt=Je.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 Ve;O.b.warn((Ve=Je.data)===null||Ve===void 0?void 0:Ve.message),ft="error"}D[ut].status=ft,D[ut].file.status=ft,N.onChange(D),ve(Je==null?void 0:Je.data)}).catch(function(Je){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(Je),console.log("err:",Je)})}catch(Je){}}));case 19:case"end":return J.stop()}},Te)}));return function(ce,be){return Se.apply(this,arguments)}}();return Object(n.useEffect)(function(){D.every(function(Se){return Se==="done"||Se==="error"})&&N.onComplete(D)},[D]),Object(n.useEffect)(function(){if(L){var Se;(Se=K)===null||Se===void 0||Se.cancel()}},[L]),Object(n.useEffect)(function(){N.uploading&&D.map(function(){var Se=Object(m.a)(l.a.mark(function Te(ce){var be,ye;return l.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!((!ce.status||ce.status==="error")&&!L)){se.next=6;break}return ce.status="uploading",ce.file.status="uploading",se.next=5,de(ce,{login:U==null||((be=U.userInfo)===null||be===void 0)?void 0:be.login,container_type:N.container_type,container_id:N.container_id,description:N.description,realFileName:N.realFileName});case 5:ye=se.sent;case 6:case"end":return se.stop()}},Te)}));return function(Te){return Se.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,L=v.user;return{globalSetting:U,loading:T.models.competitions,user:L}})(S)},KmYQ:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.ZeroPadding={pad:function(g,O){var b=O*4;g.clamp(),g.sigBytes+=b-(g.sigBytes%b||b)},unpad:function(g){for(var O=g.words,b=g.sigBytes-1,b=g.sigBytes-1;b>=0;b--)if(O[b>>>2]>>>24-b%4*8&255){g.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}}(),g=o("q1tI"),O=C(g),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 m(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){m(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 L=[h];return s&&(E?w?L.unshift(E):L.push(E):this.defaultLoader&&(w?L.unshift(this.defaultLoader):L.push(this.defaultLoader))),O.default.createElement(d,U,L)}}]),n}(g.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"),g=o("vuIU"),O=o("Ji7U"),b=o("LK+K"),y=o("q1tI"),C=o("rePB"),A=o("Ff2n"),m=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,de=K.id,Se=K.flattenOptions,Te=K.childrenAsData,ce=K.values,be=K.searchValue,ye=K.multiple,ue=K.defaultActiveFirstOption,se=K.height,$=K.itemHeight,me=K.notFoundContent,re=K.open,ae=K.menuItemSelectedIcon,Oe=K.virtual,le=K.onSelect,te=K.onToggleOpen,Q=K.onActiveValue,J=K.onScroll,ve=K.onMouseEnter,_e="".concat(he,"-item"),Ae=Object(a.a)(function(){return Se},[re,Se],function(Pt,qe){return qe[0]&&Pt[1]!==qe[1]}),Je=y.useRef(null),tt=function(qe){qe.preventDefault()},ut=function(qe){Je.current&&Je.current.scrollTo({index:qe})},ft=function(qe){for(var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ye=Ae.length,Ce=0;Ce<Ye;Ce+=1){var Le=(qe+Ce*He+Ye)%Ye,We=Ae[Le],Ue=We.group,ze=We.data;if(!Ue&&!ze.disabled)return Le}return-1},vt=y.useState(function(){return ft(0)}),_t=Object(m.a)(vt,2),Ve=_t[0],je=_t[1],ht=function(qe){je(qe);var He=Ae[qe];if(!He){Q(null,-1);return}Q(He.data.value,qe)};y.useEffect(function(){ht(ue!==!1?ft(0):-1)},[Ae.length,be]),y.useEffect(function(){var Pt=setTimeout(function(){if(!ye&&re&&ce.size===1){var qe=Array.from(ce)[0],He=Ae.findIndex(function(Ye){var Ce=Ye.data;return Ce.value===qe});ht(He),ut(He)}});return function(){return clearTimeout(Pt)}},[re]);var Bt=function(qe){qe!==void 0&&le(qe,{selected:!ce.has(qe)}),ye||te(!1)};if(y.useImperativeHandle(ee,function(){return{onKeyDown:function(qe){var He=qe.which;switch(He){case e.a.UP:case e.a.DOWN:{var Ye=0;if(He===e.a.UP?Ye=-1:He===e.a.DOWN&&(Ye=1),Ye!==0){var Ce=ft(Ve+Ye,Ye);ut(Ce),ht(Ce)}break}case e.a.ENTER:{var Le=Ae[Ve];Le&&!Le.data.disabled?Bt(Le.data.value):Bt(void 0),re&&qe.preventDefault();break}case e.a.ESC:te(!1)}},onKeyUp:function(){},scrollTo:function(qe){ut(qe)}}}),Ae.length===0)return y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),className:"".concat(_e,"-empty"),onMouseDown:tt},me);function Et(Pt){var qe=Ae[Pt];if(!qe)return null;var He=qe.data||{},Ye=He.value,Ce=He.label,Le=He.children,We=Object(f.a)(He,!0),Ue=Te?Le:Ce;return qe?y.createElement("div",Object.assign({"aria-label":typeof Ue=="string"?Ue:null},We,{key:Pt,role:"option",id:"".concat(de,"_list_").concat(Pt),"aria-selected":ce.has(Ye)}),Ye):null}return y.createElement(y.Fragment,null,y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),style:{height:0,width:0,overflow:"hidden"}},Et(Ve-1),Et(Ve),Et(Ve+1)),y.createElement(i.a,{itemKey:"key",ref:Je,data:Ae,height:se,itemHeight:$,fullHeight:!1,onMouseDown:tt,onScroll:J,virtual:Oe,onMouseEnter:ve},function(Pt,qe){var He,Ye=Pt.group,Ce=Pt.groupOption,Le=Pt.data,We=Le.label,Ue=Le.key;if(Ye)return y.createElement("div",{className:n()(_e,"".concat(_e,"-group"))},We!==void 0?We:Ue);var ze=Le.disabled,st=Le.value,Ct=Le.title,Wt=Le.children,Qt=Le.style,Kt=Le.className,Ot=Object(A.a)(Le,["disabled","value","title","children","style","className"]),Fe=ce.has(st),at="".concat(_e,"-option"),it=n()(_e,at,Kt,(He={},Object(C.a)(He,"".concat(at,"-grouped"),Ce),Object(C.a)(He,"".concat(at,"-active"),Ve===qe&&!ze),Object(C.a)(He,"".concat(at,"-disabled"),ze),Object(C.a)(He,"".concat(at,"-selected"),Fe),He)),Pe=Te?Wt:We,Qe=!ae||typeof ae=="function"||Fe;return y.createElement("div",Object.assign({},Ot,{"aria-selected":Fe,className:it,title:Ct,onMouseMove:function(){if(Ve===qe||ze)return;ht(qe)},onClick:function(){ze||Bt(st)},style:Qt}),y.createElement("div",{className:"".concat(at,"-content")},Pe||st),y.isValidElement(ae)||Fe,Qe&&y.createElement(r.a,{className:"".concat(_e,"-option-state"),customizeIcon:ae,customizeIconProps:{isSelected:Fe}},Fe?"\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(I){var K=I.key,ee=I.props,he=ee.children,de=ee.value,Se=Object(A.a)(ee,["children","value"]);return Object(_.a)({key:K,value:de!==void 0?de:K,children:he},Se)}function x(I){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(I).map(function(ee,he){if(!y.isValidElement(ee)||!ee.type)return null;var de=ee.type.isSelectOptGroup,Se=ee.key,Te=ee.props,ce=Te.children,be=Object(A.a)(Te,["children"]);return K||!de?R(ee):Object(_.a)(Object(_.a)({key:"__RC_SELECT_GRP__".concat(Se===null?he:Se,"__"),label:Se},be),{},{options:x(ce)})}).filter(function(ee){return ee})}var S=o("2Qr1"),v=o("qNPg"),T=o("U8pU"),U=o("Kwbf"),L=o("WKfj");function N(I){var K=I.mode,ee=I.options,he=I.children,de=I.backfill,Se=I.allowClear,Te=I.placeholder,ce=I.getInputElement,be=I.showSearch,ye=I.onSearch,ue=I.defaultOpen,se=I.autoFocus,$=I.labelInValue,me=I.value,re=I.inputValue,ae=I.optionLabelProp,Oe=K==="multiple"||K==="tags",le=be!==void 0?be:Oe||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(Ae){return typeof("value"in Ae?Ae.value:Ae.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"||!de,"`backfill` only works with `combobox` mode."),Object(U.a)(K==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(U.b)(K!=="combobox"||!ce||!Se||!Te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ye&&!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(L.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)(!Oe||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 Ae=_e.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Je=Object(P.a)(_e.props.children).every(function(tt){return!y.isValidElement(tt)||!_e.type||tt.type.isSelectOption?!0:(ve=tt.type,!1)});return!Je}return ve=Ae,!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(I){Object(O.a)(ee,I);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(g.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"),g=o("5rEg"),O=o("2qtc"),b=o("kLXV"),y=o("k1fw"),C=o("oBTY"),A=o("9og8"),m=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,L=v.id,N=v.onClose,V=v.onOK,H=v.visible,D=v.wrapClassName,W=v.local,F=v.containerId,I=v.rootIdentifier,K=Object(h.useState)({}),ee=Object(l.a)(K,2),he=ee[0],de=ee[1],Se=Object(h.useState)([]),Te=Object(l.a)(Se,2),ce=Te[0],be=Te[1],ye=Object(h.useState)([]),ue=Object(l.a)(ye,2),se=ue[0],$=ue[1],me=Object(h.useState)(0),re=Object(l.a)(me,2),ae=re[0],Oe=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),Ae=_e[0],Je=_e[1],tt=a.a.useForm(),ut=Object(l.a)(tt,1),ft=ut[0],vt=Object(h.useState)([]),_t=Object(l.a)(vt,2),Ve=_t[0],je=_t[1],ht=Object(h.useRef)([]);Object(h.useEffect)(function(){H&&(ft.resetFields(),je([]),$([]),be([]),Oe(0),Je(!1),J(!1))},[H]);var Bt=function(Fe){if(Fe.file.status==="done"||Fe.file.status==="uploading"){var at,it,Pe;if(je(Fe.fileList),!Fe.file.response)return;if((at=Fe.file.response)!==null&&at!==void 0&&at.id){e.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}je(Ve.filter(function(Qe){return Qe.uid!==Fe.file.uid})),((it=Fe.file.response)===null||it===void 0?void 0:it.message)&&e.b.info((Pe=Fe.file.response)===null||Pe===void 0?void 0:Pe.message)}},Et=function(){var Ot=Object(A.a)(c.a.mark(function Fe(at){var it,Pe,Qe;return c.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(ae){bt.next=8;break}return Pe=Ve.filter(function(Dt){return Dt.uid!==at.uid}),je(Pe),ht.current=Object(C.a)(Pe),be(ce.filter(function(Dt){return Dt!==at.name})),e.b.info("\u5220\u9664\u6210\u529F"),Pe.length||(ft.setFieldsValue({file:void 0}),ft.validateFields()),bt.abrupt("return");case 8:if(at.response){bt.next=11;break}return e.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),bt.abrupt("return");case 11:return bt.next=13,Object(u.a)("/api/shixuns/".concat(L,"/destroy_data_sets.json"),{method:"Delete",body:{id:[at==null||((it=at.response)===null||it===void 0)?void 0:it.id]}});case 13:Qe=bt.sent,Qe.status===0&&(je(Ve.filter(function(Dt){return Dt.uid!==at.uid})),e.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return bt.stop()}},Fe)}));return function(at){return Ot.apply(this,arguments)}}(),Pt=function(Fe){if(Ve!=null&&Ve.some(function(it){return it.name===Fe.name}))return e.b.info("".concat(Fe.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var at={name:Fe.name,uid:Fe.uid,file:Fe,percent:0};return Ve.push(at),ht.current=Object(C.a)(Ve),je(Object(C.a)(Ve)),!1},qe={height:300,multiple:!0,disabled:ae>0,withCredentials:!0,fileList:Ve,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:Bt,onRemove:Et,beforeUpload:Pt},He=function(Fe,at,it,Pe,Qe,pt){debugger;var bt=new FormData;Object.keys(Fe).forEach(function(It){bt.append(It,Fe[It])});var Dt=new window.XMLHttpRequest;return Dt.withCredentials=!0,Dt.addEventListener("load",function(It){var ct;debugger;it(JSON.parse(It==null||((ct=It.target)===null||ct===void 0)?void 0:ct.response))},!1),Dt.addEventListener("error",function(It){debugger;Qe&&Qe(It)},!1),Dt.upload.onprogress=function(It){Pe&&Pe(It)},Dt.open("POST",at),Dt.send(bt),Dt},Ye=function(Fe,at){if(Fe.lengthComputable){var it=Math.floor(Fe.loaded/Fe.total*100),Pe=Object(y.a)(Object(y.a)({},at),{},{percent:it,status:it===100?"done":"uploading"});console.log(ht.current,333),ht.current=ht.current.map(function(Qe){return Qe.uid===at.uid?Pe:Qe}),je(ht.current)}},Ce=function(Fe,at){debugger;var it=Object(y.a)(Object(y.a)({},at),{},{status:"error"});e.b.warn("\u4E0A\u4F20\u5931\u8D25"),ht.current=ht.current.map(function(Pe){return Pe.uid===at.uid?it:Pe}),ht.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Je(!1),Oe(2)),je(ht.current)},Le=function(Fe,at){var it=Object(y.a)(Object(y.a)({},at),{},{status:"done"});if(Fe.status===0||(it=Object(y.a)(Object(y.a)({},at),{},{status:"error"}),e.b.error(Fe==null?void 0:Fe.message)),ht.current=ht.current.map(function(Pe){return Pe.uid===at.uid?it:Pe}),ht.current.every(function(Pe){return Pe.status==="done"})){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ct(!0);return}ht.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Je(!1),Oe(2)),je(ht.current)},We=function(){var Fe=!0;return window.navigator.onLine==!0?Fe=!0:Fe=!1,Fe},Ue=function(){var Ot=Object(A.a)(c.a.mark(function Fe(at){var it,Pe,Qe,pt,bt,Dt,It,ct;return c.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(Je(!0),!(ae===3)){jt.next=4;break}return Oe(2),jt.abrupt("return");case 4:if(!(ae===2||ae===1)){jt.next=7;break}return ze(),jt.abrupt("return");case 7:return it=at||{},Pe=it.commitMessage,Qe=Pe===void 0?"":Pe,pt=it.fileOss,bt=pt===void 0?[]:pt,Dt=W?Ve:bt,It=Dt.map(function(on){return on.name}),jt.next=12,Object(u.a)("/api/shixuns/".concat(L,"/check_data_sets"),{method:"post",body:{files_name:It}});case 12:if(ct=jt.sent,!(ct.status===-3)){jt.next=17;break}return be(ct==null?void 0:ct.exist_files),Je(!1),jt.abrupt("return");case 17:if(!(JSON.stringify(ct)==="{}")){jt.next=21;break}return Je(!1),e.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),jt.abrupt("return");case 21:ct.status===0&&(Ve.forEach(function(on){var vn=He({file:on.file,description:Qe,message:ct.message},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Wn){return Le(Wn,on)},function(Wn){return Ye(Wn,on)},function(Wn){return Ce(Wn,on)});se.push(vn)}),Oe(1));case 22:case"end":return jt.stop()}},Fe)}));return function(at){return Ot.apply(this,arguments)}}(),ze=function(){var Fe=Object(y.a)({},ft.getFieldsValue())||{},at=Fe.commitMessage,it=at===void 0?"":at,Pe=ht.current.filter(function(pt){return pt.status==="error"}),Qe=ht.current.map(function(pt){return Object(y.a)(Object(y.a)({},pt),{},{status:pt.status==="error"?"uploading":pt.status})});je(Qe),Pe.forEach(function(pt){var bt=He({file:pt.file,description:it},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Dt){return Le(Dt,pt)},function(Dt){return Ye(Dt,pt)},function(Dt){return Ce(Dt,pt)});se.push(bt)})},st=function(Fe){if(console.log(Fe,"changedValues"),"fileOss"in Fe){var at,it;if(Fe!=null&&Fe.fileOss.every(function(Pe){return Pe.status==="done"})&&Fe!==null&&Fe!==void 0&&(at=Fe.fileOss)!==null&&at!==void 0&&at.length){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ct(!0);return}if(Fe!=null&&Fe.fileOss.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&Fe!==null&&Fe!==void 0&&(it=Fe.fileOss)!==null&&it!==void 0&&it.length){Oe(3),Je(!1);return}be(ce.filter(function(Pe){var Qe;return Fe==null||((Qe=Fe.fileOss)===null||Qe===void 0)?void 0:Qe.some(function(pt){return pt.name===Pe})}))}de(Object(y.a)({},ft.getFieldsValue()))},Ct=function(Fe){Fe||(J(!0),se.forEach(function(at){at.abort()})),V(),N()},Wt=function(){var Fe=Object(y.a)({},ft.getFieldsValue())||{},at=Fe.fileOss,it=at===void 0?[]:at,Pe=Ve==null?void 0:Ve.every(function(pt){return pt.status==="done"}),Qe=it==null?void 0:it.every(function(pt){return pt.status==="done"});if(!Pe||!Qe){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(){Ct()}});return}Ct()},Qt=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")))},Kt=function(Fe){console.log(Fe,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"]),ft.submit()},centered:!0,okText:ae===0?"\u786E\u5B9A":ae===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Ae},onCancel:Wt,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},d.a.createElement("div",{className:E.a.wrap},d.a.createElement(a.a,{className:"mt10",form:ft,scrollToFirstError:!0,layout:"vertical",onFinish:Ue,onValuesChange:st},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,qe," ",Qt())):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:I,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:Qt(),onComplete:Kt,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(g.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},LicW:function(k,z,o){"use strict";var M=o("T2oS"),g=o("W9HT"),O=o("5Dmo"),b=o("3S7+"),y=o("q1tI"),C=o.n(y),A=o("ZJlW"),m=o.n(A),e=o("m3rI"),f=o("TSYQ"),a=o.n(f),l=o("1vsH"),n=o("z4EP"),i=o.n(n),r=o("+GGh"),c=o.n(r),h=o("cFMs"),d=o.n(h),s=o("BdwD"),u=function(E){var _=E.className,P=E.dataSource,R=P===void 0?[]:P,x=E.col,S=x===void 0?4:x,v=E.right,T=E.bottom,U=T===void 0?23:T,L=E.precision,N=L===void 0?0:L,V=E.wrapWidth,H=V===void 0?1200:V,D=E.trackEventItems,W=E.loading,F=Math.floor((H-(S-1)*v)/S);return C.a.createElement(g.a,{spinning:W},C.a.createElement("div",{className:a()(m.a.list,_)},!!R.length&&R.map(function(I,K){var ee=I.name,he=I.id,de=I.identifier,Se=I.featured,Te=I.school_name,ce=I.image_url,be=I.excellent;return C.a.createElement("div",{key:he,className:m.a.wrap,style:{width:F,marginRight:(1+K)%S===0?0:v+N,marginBottom:U}},C.a.createElement("a",{target:"_blank",href:"/paths/".concat(de),className:m.a.li,onClick:function(ue){ue.preventDefault(),D&&Object(l.cb)([D]),Object(l.S)("/paths/".concat(de))}},C.a.createElement("div",{className:m.a.img},C.a.createElement("img",{className:m.a.cover,src:"".concat(e.a.IMG_SERVER,"/").concat(ce)}),Se===1&&C.a.createElement("img",{className:m.a.sign,src:i.a}),Se===2&&C.a.createElement("img",{className:m.a.sign,src:""}),Se===3&&C.a.createElement("img",{className:m.a.sign,src:c.a}),Se===4&&C.a.createElement("img",{className:m.a.sign,src:""}),Se===5&&C.a.createElement("img",{className:m.a.sign,src:d.a})),C.a.createElement("div",{className:m.a.name},C.a.createElement(b.a,{title:ee},C.a.createElement("span",{className:m.a.e},ee))),C.a.createElement(b.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Te)},C.a.createElement("div",{className:m.a.unit},C.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Te)),C.a.createElement("div",{className:m.a.tags},C.a.createElement(b.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},C.a.createElement("span",null,C.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),C.a.createElement("span",null,I.stages_count))),C.a.createElement(b.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},C.a.createElement("span",null,C.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),C.a.createElement("span",null,I.members_count))),be&&C.a.createElement("div",{className:m.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!R.length&&C.a.createElement(s.a,null)))};z.a=u},M8RZ:function(k,z,o){"use strict";o.d(z,"a",function(){return e});var M=o("fWQN"),g=o("mtLc"),O=o("yKVA"),b=o("879j"),y=o("q1tI"),C=o.n(y),A=o("i8i4"),m=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(g.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"),g=o("pmY6"),O=o("24hK"),b=o("5Y4S"),y;(function(i){i.None=()=>g.a.None;function r(N){return(V,H=null,D)=>{let W=!1,F;return F=N(I=>W?void 0:(F?F.dispose():W=!0,V.call(H,I)),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(g.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,I,K,ee=0;const he=new e({leakWarningThreshold:W,onFirstListenerAdd(){F=N(de=>{ee++,I=V(I,de),D&&!K&&(he.fire(I),I=void 0),clearTimeout(K),K=setTimeout(()=>{const Se=I;I=void 0,K=void 0,(!D||ee>1)&&he.fire(Se),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):I.fire(K)});const F=()=>{D&&D.forEach(K=>I.fire(K)),D=null},I=new e({onFirstListenerAdd(){W||(W=N(K=>I.fire(K)))},onFirstListenerDidAdd(){D&&(V?setTimeout(F):F())},onLastListenerRemove(){W&&W.dispose(),W=null}});return I.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)=>I.fire(H(...K)),W=()=>N.on(V,D),F=()=>N.removeListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromNodeEventEmitter=T;function U(N,V,H=D=>D){const D=(...K)=>I.fire(H(...K)),W=()=>N.addEventListener(V,D),F=()=>N.removeEventListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromDOMEventEmitter=U;function L(N){return new Promise(V=>r(N)(V))}i.toPromise=L})(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 m{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 m(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(g.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 g.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=g.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,g){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 L});var O;const b="en";let y=!1,C=!1,A=!1,m=!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 g!="undefined"&&(h=g);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",m=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,I=H.length;F<I;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 L(){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,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(g){var O=M,b=O.lib,y=b.Base,C=b.WordArray,A=O.x64={},m=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!=g?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 m}),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 L}),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 I}),o.d(z,"A",function(){return ee}),o.d(z,"a",function(){return he}),o.d(z,"n",function(){return de}),o.d(z,"l",function(){return Se}),o.d(z,"D",function(){return Te}),o.d(z,"B",function(){return ce}),o.d(z,"b",function(){return be}),o.d(z,"S",function(){return ye}),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 Oe});function M(J){return!J||typeof J!="string"?!0:J.trim().length===0}const g=/{(\d+)}/g;function O(J,...ve){return ve.length===0?J:J.replace(g,function(_e,Ae){const Je=parseInt(Ae,10);return isNaN(Je)||Je<0||Je>=ve.length?_e:ve[Je]})}function b(J){return J.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function y(J){return J.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function C(J,ve=" "){const _e=A(J,ve);return m(_e,ve)}function A(J,ve){if(!J||!ve)return J;const _e=ve.length;if(_e===0||J.length===0)return J;let Ae=0;for(;J.indexOf(ve,Ae)===Ae;)Ae=Ae+_e;return J.substring(Ae)}function m(J,ve){if(!J||!ve)return J;const _e=ve.length,Ae=J.length;if(_e===0||Ae===0)return J;let Je=Ae,tt=-1;for(;!(tt=J.lastIndexOf(ve,Je-1),tt===-1||tt+_e!==Je);){if(tt===0)return"";Je=tt}return J.substring(0,Je)}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 Ae="";return _e.global&&(Ae+="g"),_e.matchCase||(Ae+="i"),_e.multiline&&(Ae+="m"),_e.unicode&&(Ae+="u"),new RegExp(J,Ae)}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 Ae=J.charCodeAt(ve);if(Ae!==32&&Ae!==9)return ve}return-1}function c(J,ve=0,_e=J.length){for(let Ae=ve;Ae<_e;Ae++){const Je=J.charCodeAt(Ae);if(Je!==32&&Je!==9)return J.substring(ve,Ae)}return J.substring(ve,_e)}function h(J,ve=J.length-1){for(let _e=ve;_e>=0;_e--){const Ae=J.charCodeAt(_e);if(Ae!==32&&Ae!==9)return _e}return-1}function d(J,ve){return J<ve?-1:J>ve?1:0}function s(J,ve,_e=0,Ae=J.length,Je=0,tt=ve.length){for(;_e<Ae&&Je<tt;_e++,Je++){let vt=J.charCodeAt(_e),_t=ve.charCodeAt(Je);if(vt<_t)return-1;if(vt>_t)return 1}const ut=Ae-_e,ft=tt-Je;return ut<ft?-1:ut>ft?1:0}function u(J,ve){return w(J,ve,0,J.length,0,ve.length)}function w(J,ve,_e=0,Ae=J.length,Je=0,tt=ve.length){for(;_e<Ae&&Je<tt;_e++,Je++){let vt=J.charCodeAt(_e),_t=ve.charCodeAt(Je);if(vt===_t)continue;if(vt>=128||_t>=128)return s(J.toLowerCase(),ve.toLowerCase(),_e,Ae,Je,tt);E(vt)&&(vt-=32),E(_t)&&(_t-=32);const Ve=vt-_t;if(Ve===0)continue;return Ve}const ut=Ae-_e,ft=tt-Je;return ut<ft?-1:ut>ft?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,Ae=Math.min(J.length,ve.length);for(_e=0;_e<Ae;_e++)if(J.charCodeAt(_e)!==ve.charCodeAt(_e))return _e;return Ae}function S(J,ve){let _e,Ae=Math.min(J.length,ve.length);const Je=J.length-1,tt=ve.length-1;for(_e=0;_e<Ae;_e++)if(J.charCodeAt(Je-_e)!==ve.charCodeAt(tt-_e))return _e;return Ae}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 L(J,ve,_e){const Ae=J.charCodeAt(_e);if(v(Ae)&&_e+1<ve){const Je=J.charCodeAt(_e+1);if(T(Je))return U(Ae,Je)}return Ae}function N(J,ve){const _e=J.charCodeAt(ve-1);if(T(_e)&&ve>1){const Ae=J.charCodeAt(ve-2);if(v(Ae))return U(Ae,_e)}return _e}function V(J,ve){const _e=re.getInstance(),Ae=ve,Je=J.length,tt=L(J,Je,ve);ve+=tt>=65536?2:1;let ut=_e.getGraphemeBreakType(tt);for(;ve<Je;){const ft=L(J,Je,ve),vt=_e.getGraphemeBreakType(ft);if(me(ut,vt))break;ve+=ft>=65536?2:1,ut=vt}return ve-Ae}function H(J,ve){const _e=re.getInstance(),Ae=ve,Je=N(J,ve);ve-=Je>=65536?2:1;let tt=_e.getGraphemeBreakType(Je);for(;ve>0;){const ut=N(J,ve),ft=_e.getGraphemeBreakType(ut);if(me(ft,tt))break;ve-=ut>=65536?2:1,tt=ft}return Ae-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 I(J){return F.test(J)}const K=/^[\t\n\r\x20-\x7E]*$/;function ee(J){return K.test(J)}const he=/[\u2028\u2029]/;function de(J){return he.test(J)}function Se(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 be=String.fromCharCode(65279);function ye(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 Ae=1;for(;Ae<=_e;)if(J<ve[3*Ae])Ae=2*Ae;else if(J>ve[3*Ae+1])Ae=2*Ae+1;else return ve[3*Ae+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 Oe(J,ve){if(J===0)return 0;const _e=le(J,ve);if(_e!==void 0)return _e;const Ae=N(ve,J);return J-=te(Ae),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 Ae=N(ve,J);Ae===8205&&(J-=te(Ae))}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"),g=o("kLXV"),O=o("tJVT"),b=o("q1tI"),y=o.n(b),C=o("9kvl"),A=o("FPkq"),m=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&&g.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(g.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:m.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,g,O){k.exports=z=g(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"),g=o("tsqr"),O=o("9og8"),b=o("2qtc"),y=o("kLXV"),C=o("WmNS"),A=o.n(C),m=o("q1tI"),e=o.n(m),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&&(g.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 L(){return U.apply(this,arguments)}return L}()})}}),!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 m}),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 se.a}),o.d(z,"b",function(){return Oe}),o.d(z,"g",function(){return J}),o.d(z,"f",function(){return Je}),o.d(z,"k",function(){return Bt}),o.d(z,"d",function(){return He});var M=o("q1tI"),g=o.n(M),O=o("NQs2"),b=o.n(O),y=o("ygoZ"),C=o.n(y),A=function(Ce){var Le=Ce.dataSource,We=Le===void 0?[]:Le,Ue=Ce.img,ze=Ce.imgWidth,st=ze===void 0?346:ze,Ct=Ce.title,Wt=Ce.sunTitle,Qt=Ce.bannerExtraContent;return g.a.createElement("div",{className:b.a.banner},g.a.createElement("div",{className:b.a.content},g.a.createElement("aside",null,g.a.createElement("p",null,g.a.createElement("b",null,Ct),g.a.createElement("span",null,Wt)),We.length>0&&g.a.createElement("div",{className:b.a.btns},We.map(function(Kt,Ot){return g.a.createElement("div",{key:Ot,onClick:Kt.click},Kt.name,Kt.sign?g.a.createElement("img",{src:C.a,width:39}):null)})),Qt),g.a.createElement("img",{style:{marginTop:33,marginRight:38},src:Ue,width:st})))},m=A,e=o("tJVT"),f=o("6nfa"),a=o.n(f),l=o("TSYQ"),n=o.n(l),i=function(Ce){var Le=Ce.dataSource,We=Le===void 0?[]:Le,Ue=Ce.value,ze=Ce.onChange,st=Ce.className,Ct=Ce.title,Wt=Ce.titleWidth,Qt=Wt===void 0?41:Wt,Kt=Ce.style,Ot=Kt===void 0?{}:Kt,Fe=Ce.fontColor,at=Fe===void 0?"#6A7283":Fe,it=Object(M.useState)(0),Pe=Object(e.a)(it,2),Qe=Pe[0],pt=Pe[1],bt=Object(M.useState)(!1),Dt=Object(e.a)(bt,2),It=Dt[0],ct=Dt[1],Nt=Object(M.useRef)(null);return Object(M.useEffect)(function(){if(We.length!==0){var jt;(Nt==null||((jt=Nt.current)===null||jt===void 0)?void 0:jt.clientHeight)>92?pt(1):pt(0)}We.length===0&&pt(0)},[We]),g.a.createElement("div",{className:n()(a.a.row,st),style:Ot},g.a.createElement("div",{style:{width:Qt,marginTop:It?12:4},className:a.a.title},Ct),g.a.createElement("div",{className:It?"".concat(a.a.tagsWrap," ").concat(a.a.tagsBorderWrap):a.a.tagsWrap},g.a.createElement("div",{className:a.a.bar,style:Qe>0?{height:Qe===1?92:"auto",overflow:Qe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},g.a.createElement("div",{className:a.a.name,ref:Nt},We==null?void 0:We.map(function(jt){return g.a.createElement("span",{onClick:function(){return ze(jt.id)},key:jt.id,title:jt.name,style:{color:at},className:Ue===jt.id?a.a.active:""},jt.name)}))),!!Qe&&g.a.createElement(M.Fragment,null,Qe===1?g.a.createElement("div",{onClick:function(){var on;pt(2),(Nt==null||((on=Nt.current)===null||on===void 0)?void 0:on.clientHeight)>205?ct(!0):ct(!1)},className:a.a.action},"\u5C55\u5F00",g.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):g.a.createElement("div",{onClick:function(){pt(1),ct(!1)},className:a.a.action},"\u6536\u8D77",g.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(Ce){var Le=Ce.dataSource,We=Le===void 0?[]:Le,Ue=Ce.value,ze=Ce.onChange,st=Ce.className;return g.a.createElement("div",{className:n()(h.a.tabs,st)},We.map(function(Ct){return g.a.createElement("span",{onClick:function(){return ze(Ct.id)},className:Ue===Ct.id?h.a.active:"",key:Ct.id},Ct.name)}))},s=d,u=o("5NDa"),w=o("5rEg"),E=o("KOXS"),_=o.n(E),P=function(Ce){var Le,We=Ce.dataSource,Ue=We===void 0?[]:We,ze=Ce.value,st=Ce.onChange,Ct=Ce.className,Wt=Ce.style,Qt=Wt===void 0?{}:Wt,Kt=Ce.placeholder,Ot=Object(M.useState)(""),Fe=Object(e.a)(Ot,2),at=Fe[0],it=Fe[1],Pe=Object(M.useState)(""),Qe=Object(e.a)(Pe,2),pt=Qe[0],bt=Qe[1];Object(M.useEffect)(function(){var ct;(ct=JSON.stringify(ze))!==null&&ct!==void 0&&ct.includes("{")?(it(ze.id),bt(ze.value)):bt(ze)},[ze]);var Dt=function(){st(pt||null,at||"")},It=function(Nt){if(Nt===at)return;it(Nt),st(pt,Nt)};return g.a.createElement("div",{className:n()(_.a.input,Ct),style:Qt},!!Ue.length&&g.a.createElement("div",{className:_.a.dropdown},g.a.createElement("div",{className:_.a.text},(Le=Ue.find(function(ct){return ct.id===at}))===null||Le===void 0?void 0:Le.name,g.a.createElement("i",{className:"iconfont icon-zhankai4"}),g.a.createElement("b",{className:_.a.b1}),g.a.createElement("b",{className:_.a.b2})),g.a.createElement("div",{className:_.a.menu},Ue.map(function(ct,Nt){return g.a.createElement("div",{key:Nt,onClick:function(){return It(ct.id)}},ct.name)}))),g.a.createElement(w.a,{onPressEnter:Dt,value:pt,onChange:function(Nt){return bt(Nt.target.value||"")},bordered:!1,placeholder:Kt}),g.a.createElement("i",{onClick:Dt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=P,x=o("f9pc"),S=o.n(x),v=function(Ce){var Le=Ce.value,We=Ce.onChange,Ue=Ce.className,ze=Ce.total,st=Ce.pageSize,Ct=Ce.style,Wt=Ct===void 0?{}:Ct,Qt=Le<2,Kt=Le>=Math.ceil(ze/st);return ze<=st?g.a.createElement(g.a.Fragment,null):g.a.createElement("div",{className:n()(S.a.quickPager,Ue),style:Wt},g.a.createElement("div",{onClick:function(){Qt||We(Le-1,"prev")},className:Qt?S.a.disabled:""},"\u4E0A\u4E00\u9875"),g.a.createElement("div",{onClick:function(){Kt||We(Le+1,"next")},className:Kt?S.a.disabled:""},"\u4E0B\u4E00\u9875"))},T=v,U=o("T2oS"),L=o("W9HT"),N=o("pC0b"),V=o("GzdX"),H=o("5Dmo"),D=o("3S7+"),W=o("Oe0F"),F=o.n(W),I=o("m3rI"),K=o("1vsH"),ee=o("JAbv"),he=o.n(ee),de=o("Bq7L"),Se=o.n(de),Te=o("MEgm"),ce=o.n(Te),be=o("BdwD"),ye=function(Ce){var Le=Ce.className,We=Ce.dataSource,Ue=We===void 0?[]:We,ze=Ce.col,st=ze===void 0?4:ze,Ct=Ce.right,Wt=Ce.bottom,Qt=Wt===void 0?23:Wt,Kt=Ce.precision,Ot=Kt===void 0?0:Kt,Fe=Ce.wrapWidth,at=Fe===void 0?1200:Fe,it=Ce.trackEventItems,Pe=Ce.loading,Qe=Math.floor((at-(st-1)*Ct)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:n()(F.a.list,Le)},!!Ue.length&&Ue.map(function(pt,bt){var Dt=pt.name,It=pt.id,ct=pt.identifier,Nt=pt.power,jt=pt.cover_image_id,on=pt.pic;return g.a.createElement("div",{className:F.a.wrap,key:It,style:{width:Qe,marginRight:(1+bt)%st===0?0:Ct+Ot,marginBottom:Qt}},g.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(ct,"/challenges"),className:F.a.li,onClick:function(Wn){Wn.preventDefault(),it&&Object(K.cb)([it]),Nt&&Object(K.S)("/shixuns/".concat(ct,"/challenges"))}},g.a.createElement("div",{className:F.a.img},g.a.createElement("img",{className:F.a.cover,src:jt?"".concat(I.a.API_SERVER,"/api/attachments/").concat(jt):"".concat(I.a.IMG_SERVER,"/").concat(on)}),pt.is_jupyter&&g.a.createElement("img",{className:F.a.sign,src:he.a}),pt.is_jupyter_lab&&g.a.createElement("img",{className:F.a.sign,src:Se.a}),pt.is_unity_3d&&g.a.createElement("img",{className:F.a.sign,src:ce.a})),g.a.createElement("div",{className:F.a.name},g.a.createElement(D.a,{title:Dt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},g.a.createElement("span",{className:F.a.e},Dt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),g.a.createElement("div",{className:F.a.tags},g.a.createElement(D.a,{placement:"bottom",title:"\u5173\u5361\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),g.a.createElement("span",null,pt.challenges_count))),!!pt.myshixuns_count&&g.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.a.createElement("span",null,pt.myshixuns_count))),g.a.createElement(D.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},g.a.createElement("span",null,g.a.createElement("span",null,pt.level))),g.a.createElement("div",{className:F.a.rate},g.a.createElement(V.a,{allowHalf:!0,disabled:!0,defaultValue:pt.score_info}),g.a.createElement("span",null,"\xA0",pt.score_info?"".concat(pt.score_info,"\u5206"):"5\u5206")))),!Nt&&g.a.createElement("div",{className:F.a.lockWrap},g.a.createElement("img",{src:"".concat(I.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ue.length&&g.a.createElement(be.a,null)))},ue=ye,se=o("LicW"),$=o("iL++"),me=o.n($),re=o("xiVL"),ae=function(Ce){var Le=Ce.className,We=Ce.dataSource,Ue=We===void 0?[]:We,ze=Ce.col,st=ze===void 0?4:ze,Ct=Ce.right,Wt=Ce.bottom,Qt=Wt===void 0?23:Wt,Kt=Ce.precision,Ot=Kt===void 0?0:Kt,Fe=Ce.wrapWidth,at=Fe===void 0?1200:Fe,it=Ce.trackEventItems,Pe=Ce.loading,Qe=Math.floor((at-(st-1)*Ct)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:n()(me.a.list,Le)},!!Ue.length&&Ue.map(function(pt,bt){var Dt=pt.subject_identifier,It=pt.id,ct=pt.identifier,Nt=pt.power,jt=pt.is_public!=0&&pt.is_public;return g.a.createElement("div",{className:me.a.wrap,key:It,style:{width:Qe,marginRight:(1+bt)%st===0?0:Ct+Ot,marginBottom:Qt}},g.a.createElement("a",{className:me.a.li,onClick:function(vn){vn.preventDefault()}},g.a.createElement("div",{className:me.a.top},g.a.createElement(D.a,{title:pt.name},g.a.createElement("div",{className:me.a.name},pt.name)),g.a.createElement("img",{className:me.a.img,src:I.a.IMG_SERVER+"/images/"+pt.avatar_url}),g.a.createElement("div",{className:me.a.text},pt.creator),Dt&&g.a.createElement("div",{className:me.a.btns},g.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),g.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),jt&&g.a.createElement("div",{className:me.a.sign},"\u516C\u5F00")),g.a.createElement("div",{className:me.a.bottom},pt.visits>0&&g.a.createElement(D.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-liulanyan"}),g.a.createElement("span",null,pt.visits))),pt.course_members_count>0&&g.a.createElement(D.a,{title:"\u6210\u5458",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan"}),pt.course_members_count)),pt.tasks_count>0&&g.a.createElement(D.a,{title:"\u4F5C\u4E1A",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-zuoye"}),pt.tasks_count)),pt.is_end?g.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):g.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),g.a.createElement("div",{className:me.a.lockWrap},pt.is_accessible?g.a.createElement(g.a.Fragment,null,Dt&&g.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(Dt))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),g.a.createElement("div",{onClick:function(vn){it&&Object(K.cb)([it]),Object(K.S)(pt.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):g.a.createElement(g.a.Fragment,null,g.a.createElement("img",{src:"".concat(I.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!Ue.length&&g.a.createElement(be.a,null)))},Oe=ae,le=o("f0W+"),te=o.n(le),Q=function(Ce){var Le=Ce.dataSource,We=Le===void 0?[]:Le,Ue=Ce.value,ze=Ce.onChange,st=Ce.className,Ct=Ce.style,Wt=Ct===void 0?{}:Ct,Qt=Ce.tabBarExtraContent;return g.a.createElement("div",{className:n()(te.a.tabs,st),style:Wt},g.a.createElement("div",{className:te.a.tabsWrap},We.map(function(Kt,Ot){return g.a.createElement("div",{onClick:function(){return ze(Kt.id)},className:Ue===Kt.id?te.a.active:"",key:Ot},Kt.name)})),g.a.createElement("div",{className:te.a.tabBar},Qt))},J=Q,ve=o("9JIy"),_e=o.n(ve),Ae=function(Ce){var Le=Ce.className,We=Ce.style,Ue=We===void 0?{}:We,ze=Ce.children;return g.a.createElement("div",{className:n()(_e.a.table,Le),style:Ue},ze)},Je=Ae,tt=o("qVdP"),ut=o("jsC+"),ft=o("lUTK"),vt=o("BvKs"),_t=o("8WcF"),Ve=o.n(_t),je=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],ht=function(Ce){var Le,We=Ce.sortValue,Ue=Ce.dropValue,ze=Ce.className,st=Ce.onSort,Ct=Ce.onDrop,Wt=Ce.dataSource,Qt=Wt===void 0?je:Wt;return g.a.createElement("div",{className:n()(Ve.a.orderWrap,ze)},g.a.createElement(ut.a,{overlay:g.a.createElement(vt.a,null,Qt.map(function(Kt,Ot){return g.a.createElement(vt.a.Item,{key:Ot,onClick:function(){return Ct(Kt.id)}},Kt.name)}))},g.a.createElement("span",{className:Ve.a.orderTextWrap},(Le=Qt.find(function(Kt){return Ue===Kt.id}))===null||Le===void 0?void 0:Le.name)),g.a.createElement("span",{className:Ve.a.orderIconWrap},g.a.createElement("span",{className:Ve.a.orderAsc},g.a.createElement("i",{className:We==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Ve.a.cursorPointer," ").concat(Ve.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Ve.a.cursorPointer),onClick:function(){return st(We==="asc"?"desc":"asc")}})),g.a.createElement("span",{className:Ve.a.orderDesc},g.a.createElement("i",{className:We==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Ve.a.cursorPointer," ").concat(Ve.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Ve.a.cursorPointer),onClick:function(){return st(We==="asc"?"desc":"asc")}}))))},Bt=ht,Et=o("siWv"),Pt=o.n(Et),qe=function(Ce){var Le=Ce.className,We=Ce.style,Ue=Ce.children,ze=Ce.onClick;return g.a.createElement("div",{onClick:ze,className:n()(Pt.a.btn,Le),style:We},Ue)},He=qe},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 g(A,m){var e=new Set;return A.forEach(function(f){m.has(f)||e.add(f)}),e}function O(A){var m=A||{},e=m.disabled,f=m.disableCheckbox,a=m.checkable;return!!(e||f)||a===!1}function b(A,m,e,f){for(var a=new Set(A),l=new Set,n=0;n<=e;n+=1){var i=m.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=m.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(g(l,a))}}function y(A,m,e,f,a){for(var l=new Set(A),n=new Set(m),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(g(n,l))}}function C(A,m,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 m===!0?c=b(n,i,r,l):c=y(n,m.halfCheckedKeys,i,r,l),c}},OLES:function(k,z,o){"use strict";var M=o("U8pU"),g=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)},m=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,L=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,I=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(g.a)({},K);"visible"in n&&(he.popupVisible=n.visible);var de=function(){var ye=n.arrowContent,ue=ye===void 0?null:ye,se=n.overlay,$=n.id;return[b.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},ue),b.createElement(m,{key:"content",prefixCls:P,id:$,overlay:se,overlayInnerStyle:I})]},Se=!1,Te=!1;if(typeof D=="boolean")Se=D;else if(D&&Object(M.a)(D)==="object"){var ce=D.keepParent;Se=ce===!0,Te=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:r,prefixCls:P,popup:de,action:h,builtinPlacements:C.a,popupPlacement:L,ref:ee,popupAlign:V,getPopupContainer:F,onPopupVisibleChange:x,afterPopupVisibleChange:S,popupTransitionName:v,popupAnimation:T,defaultPopupVisible:W,destroyPopupOnHide:Se,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,g,O){k.exports=z=g(o("Ib8C"),o("K3mO"))})(this,function(M){M.lib.Cipher||function(g){var O=M,b=O.lib,y=b.Base,C=b.WordArray,A=b.BufferedBlockAlgorithm,m=O.enc,e=m.Utf8,f=m.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,L,N){return v(L).encrypt(T,U,L,N)},decrypt:function(U,L,N){return v(L).decrypt(T,U,L,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,L){var N=this._cipher,V=N.blockSize;T.call(this,U,L,V),N.encryptBlock(U,L),this._prevBlock=U.slice(L,L+V)}}),v.Decryptor=v.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize,H=U.slice(L,L+V);N.decryptBlock(U,L),T.call(this,U,L,V),this._prevBlock=H}});function T(U,L,N){var V,H=this._iv;H?(V=H,this._iv=g):V=this._prevBlock;for(var D=0;D<N;D++)U[L+D]^=V[D]}return v}(),d=O.pad={},s=d.Pkcs7={pad:function(v,T){for(var U=T*4,L=U-v.sigBytes%U,N=L<<24|L<<16|L<<8|L,V=[],H=0;H<L;H+=4)V.push(N);var D=C.create(V,L);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,L=T.mode;this._xformMode==this._ENC_XFORM_MODE?v=L.createEncryptor:(v=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,U&&U.words):(this._mode=v.call(L,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,L=v.salt;return L?T=C.create([1398893684,1701076831]).concat(L).concat(U):T=U,T.toString(f)},parse:function(v){var T,U=f.parse(v),L=U.words;return L[0]==1398893684&&L[1]==1701076831&&(T=C.create(L.slice(2,4)),L.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,L){L=this.cfg.extend(L);var N=v.createEncryptor(U,L),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:L.format})},decrypt:function(v,T,U,L){L=this.cfg.extend(L),T=this._parse(T,L.format);var N=v.createDecryptor(U,L).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,L){L||(L=C.random(64/8));var N=l.create({keySize:T+U}).compute(v,L),V=C.create(N.words.slice(T),U*4);return N.sigBytes=T*4,w.create({key:N,iv:V,salt:L})}},S=b.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:x}),encrypt:function(v,T,U,L){L=this.cfg.extend(L);var N=L.kdf.execute(U,v.keySize,v.ivSize);L.iv=N.iv;var V=P.encrypt.call(this,v,T,N.key,L);return V.mixIn(N),V},decrypt:function(v,T,U,L){L=this.cfg.extend(L),T=this._parse(T,L.format);var N=L.kdf.execute(U,v.keySize,v.ivSize,T.salt);L.iv=N.iv;var V=P.decrypt.call(this,v,T,N.key,L);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"),g=o("U8pU"),O=o("Ff2n"),b=o("q1tI"),y=o.n(b),C=o("Kwbf"),A=o("WaYH"),m=.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,L=T.children;R.push(U),S(L)})}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*m,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,L=Object(O.a)(T,["children"]),N=s(U,P);return y.a.createElement(A.a,Object.assign({},S(L)),N)})}function u(_){if(!_)return null;var P;if(Array.isArray(_))P={checkedKeys:_,halfCheckedKeys:void 0};else if(Object(g.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"),g=o("kLXV"),O=o("rAM+"),b=o("miYZ"),y=o("tsqr"),C=o("9og8"),A=o("tJVT"),m=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(ze){var st=ze.value,Ct=st===void 0?"":st,Wt=ze.className,Qt=ze.showTextOnly,Kt=ze.showLines,Ot=ze.style,Fe=Ot===void 0?{}:Ot,at=Object(a.useMemo)(function(){return""},[Ct]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},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 L(ze){var st=ze.onActionCallback,Ct=ze.title,Wt=ze.icon,Qt=ze.actionName,Kt=ze.className,Ot=Kt===void 0?"":Kt,Fe=ze.children;function at(){st(Qt)}return l.a.createElement("a",{title:Ct,className:Ot,onClick:at},l.a.createElement("i",{className:"md-iconfont ".concat(Wt)}),Fe)}var N=function(ze){var st=ze.watch,Ct=ze.showNullButton,Wt=ze.onActionCallback,Qt=ze.fullScreen,Kt=ze.insertTemp,Ot=ze.hidetoolBar,Fe=ze.uuid,at=ze.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(Fe,"&api=").concat(encodeURIComponent(T.a.PROXY_SERVER)));var it=[].concat(U,[{title:"".concat(st?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(st?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},!Ot&&it.map(function(Pe,Qe){return l.a.createElement("li",{key:Qe},Pe.actionName?l.a.createElement(L,Object(R.a)({},Pe,{onActionCallback:Wt})):l.a.createElement("span",{className:"v-line"}))}),Ct?l.a.createElement("li",null,l.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Wt},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Kt&&l.a.createElement("li",null,l.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Kt),onActionCallback:Wt},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(L,{icon:"".concat(Qt?"icon-shrink":"icon-enlarge"),title:Qt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Wt})))},V=o("M8RZ"),H=o("+L6B"),D=o("2/Rp"),W=o("y8nQ"),F=o("Vl3Y"),I=o("5NDa"),K=o("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},he=function(ze){var st=ze.callback,Ct=ze.onCancel;function Wt(Qt){st(Qt)}return l.a.createElement(F.a,Object(R.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Wt}),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:Ct},"\u53D6\u6D88")))},de=o("7ahc"),Se=o("HmJG"),Te=o("BjJ7"),ce=F.a.useForm,be={width:280,marginRight:10},ye={labelCol:{span:5},wrapperCol:{span:19}},ue=function(ze){var st=ze.callback,Ct=ze.onCancel,Wt=ce(),Qt=Object(A.a)(Wt,1),Kt=Qt[0];function Ot(it){st(it)}function Fe(it,Pe){if(it.status===-1){y.b.error(it.message);return}Kt.setFieldsValue({src:"/api/attachments/".concat(it.id),type:Pe.type})}function at(it){var Pe=it.target.files[0];$(Pe,Fe)}return l.a.createElement(F.a,Object(R.a)({form:Kt},ye,{className:"upload-image-panel",onFinish:Ot}),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:be})),l.a.createElement(se,{onFileChange:at}))),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:Ct},"\u53D6\u6D88")))};function se(ze){var st=ze.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:st}))}function $(ze,st){if(!ze)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ct=new FormData;Ct.append("editormd-image-file",ze),Ct.append("file_param_name","editormd-image-file"),Ct.append("byxhr","true");var Wt=new window.XMLHttpRequest;Wt.withCredentials=!0,Wt.addEventListener("load",function(Qt){st(JSON.parse(Qt.target.responseText),ze)},!1),Wt.addEventListener("error",function(Qt){console.error(Qt)},!1),Wt.open("POST","".concat(Te.a,"/api/attachments.json")),Wt.send(Ct)}var me=o("giR+"),re=o("fyUT"),ae=o("7Kak"),Oe=o("9yH6"),le=Oe.a.Group,te={margin:"0 8px"},Q=function(ze){var st=ze.callback,Ct=ze.onCancel;function Wt(Qt){st(Qt)}return l.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Wt},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(Oe.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(Oe.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(Oe.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(Oe.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:Ct},"\u53D6\u6D88")))},J=o("ErOA"),ve=o("7Cbv"),_e="link",Ae="upload-image",Je="code-block",tt="add-table",ut="------------",ft={default:ut,left:":".concat(ut),center:":".concat(ut,":"),right:"".concat(ut,":")},vt=o("9VGf"),_t,Ve;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 qe(ze){return/^\d+$/.test(ze)?"".concat(ze,"px"):ze}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ye=He?"Cmd":"Ctrl",Ce=["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"],Le=(_t={},Object(m.a)(_t,Ye+"-B","bold"),Object(m.a)(_t,Ye+"-I","italic"),_t),We=(Ve={},Object(m.a)(Ve,_e,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Ve,Je,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Ve,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Ve,tt,"\u6DFB\u52A0\u8868\u683C"),Ve),Ue=z.a=function(ze){var st=ze.defaultValue,Ct=st===void 0?"":st,Wt=ze.onChange,Qt=ze.width,Kt=Qt===void 0?"100%":Qt,Ot=ze.height,Fe=Ot===void 0?400:Ot,at=ze.miniToolbar,it=at===void 0?!1:at,Pe=ze.isFocus,Qe=Pe===void 0?!1:Pe,pt=ze.watch,bt=ze.insertTemp,Dt=ze.mode,It=Dt===void 0?"markdown":Dt,ct=ze.id,Nt=ct===void 0?"markdown-editor-id":ct,jt=ze.showResizeBar,on=jt===void 0?!1:jt,vn=ze.noStorage,Wn=vn===void 0?!1:vn,Kn=ze.showNullButton,Hn=Kn===void 0?!1:Kn,fn=ze.hidetoolBar,lr=fn===void 0?!1:fn,Zn=ze.fullScreen,cr=Zn===void 0?!1:Zn,dr=ze.onBlur,Dr=ze.onCMBeforeChange,hr=ze.onFullScreen,sn=ze.className,en=sn===void 0?"":sn,On=ze.disablePaste,Fr=On===void 0?!1:On,Or=ze.placeholder,xr=Or===void 0?"":Or,fr=ze.values,pe=fr===void 0?"":fr,X=Object(a.useState)(null),q=Object(A.a)(X,2),oe=q[0],De=q[1],fe=Object(a.useState)(Ct),ot=Object(A.a)(fe,2),Zt=ot[0],Mn=ot[1],Vn=Object(a.useState)(pt),qt=Object(A.a)(Vn,2),En=qt[0],un=qt[1],jr=Object(a.useState)(cr),aa=Object(A.a)(jr,2),oa=aa[0],er=aa[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)(Fe),fa=Object(A.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(a.useState)(!1),lt=Object(A.a)(xe,2),Rt=lt[0],wt=lt[1],Ht=Object(a.useRef)(Object(ve.a)()),Lt=Object(a.useRef)(!1),Xt=Object(a.useRef)(),rn=Object(a.useRef)(),xn=Object(a.useRef)(),gn=Object(a.useRef)(),Nn=Object(a.useRef)(),An=function(){var tn=Object(C.a)(f.a.mark(function wn(){var _n,In;return f.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ht.current}});case 2:In=ar.sent,In!=null&&(_n=In.attachments)!==null&&_n!==void 0&&_n.length&&(console.log("cm:",oe,rn),In.attachments.map(function(qn){qn.content_type.indexOf("image")>-1?oe.replaceSelection(".concat(qn.content_type,")")):qn.content_type.indexOf("video")>-1?oe.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):qn.content_type.indexOf("pdf")>-1?oe.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,'&disposition=inline" target="_blank">').concat(qn.name,"</a>")):oe.replaceSelection("[".concat(qn.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,")"))}));case 4:case"end":return ar.stop()}},wn)}));return function(){return tn.apply(this,arguments)}}();Object(a.useEffect)(function(){Mn(pe),oe==null||oe.setValue(pe)},[pe]),Object(a.useEffect)(function(){hr==null||hr(oa)},[oa]),Object(a.useEffect)(function(){if(rn.current){var tn=i.a.fromTextArea(rn.current,{mode:It,lineNumbers:!it,lineWrapping:!0,value:Ct,autoCloseTags:!0,autoCloseBrackets:!0});Qe&&tn.focus();function wn(_n,In){if(Fr){In.preventDefault();return}var Un=In.clipboardData;if(Un){var ar=Un.types.toString(),qn=Un.items;if(ar==="Files"||Un.types.indexOf("Files")>-1){if(In.preventDefault(),It=="stex")return;try{var Rr,Ir=qn[1];((Rr=qn[0])===null||Rr===void 0?void 0:Rr.kind)==="file"&&(Ir=qn[0]);var Jn=Ir.getAsFile(),Ar=Jn.name.split(".").pop();$(Jn,function(vr){if(vr.id){var zr,Lr,$r;(Jn==null||((zr=Jn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?tn.replaceSelection(".concat(vr.content_type,")")):(Jn==null||((Lr=Jn.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?tn.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,'"></video>')):(Jn==null||(($r=Jn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?tn.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(Jn.type,'&disposition=inline" target="_blank">').concat(Jn.name,"</a>")):Ce.includes(Ar)?tn.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,'?type=office&disposition=inline" target="_blank">').concat(Jn.name,"</a>")):tn.replaceSelection("[".concat(Jn.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 tn.on("paste",wn),tn.on("dragleave",function(_n,In){xn.current.classList.remove("mouse-hover-md")}),tn.on("dragover",function(_n,In){xn.current.classList.add("mouse-hover-md")}),tn.on("drop",function(_n,In){xn.current.classList.add("mouse-hover-md");var Un;if(Un=In.dataTransfer.files,Un.length>0){In.preventDefault(),In.stopPropagation();for(var ar=function(Ir){var Jn=Un[Ir],Ar=Jn.name.split(".").pop();$(Jn,function(vr){if(vr.id){var zr,Lr,$r;(Jn==null||((zr=Jn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?tn.replaceSelection(".concat(vr.content_type,")")):(Jn==null||((Lr=Jn.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?tn.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,'"></video>')):(Jn==null||(($r=Jn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?tn.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(Jn.type,'&disposition=inline" target="_blank">').concat(Jn.name,"</a>")):Ce.includes(Ar)?tn.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(vr.id,'?type=office&disposition=inline" target="_blank">').concat(Jn.name,"</a>")):tn.replaceSelection("[".concat(Jn.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")})},qn=0;qn<Un.length;qn++)ar(qn)}}),De(tn),function(){tn.off("paste",wn)}}},[]);var an=Object(a.useCallback)(function(){if(xn.current)try{}catch(tn){console.log(tn,"---- to set md editor body height")}},[ma,xn,oa]);Object(a.useEffect)(function(){function tn(){var _n=new r.default(function(In){var Un=Object(O.a)(In),ar;try{for(Un.s();!(ar=Un.n()).done;){var qn=ar.value;(qn.target.offsetHeight>0||qn.target.offsetWidth>0)&&(an(),oe.setSize("100%","100%"),oe.refresh())}}catch(Rr){Un.e(Rr)}finally{Un.f()}});return _n.observe(rn.current.parentElement),_n}if(oe){var wn=tn();return function(){wn.unobserve(rn.current.parentElement)}}},[oe,an]),Object(a.useEffect)(function(){if(oe){for(var tn=[],wn=function(){var qn=In[_n];Un=Object(A.a)(qn,2);var Rr=Un[0],Ir=Un[1],Jn=Object(m.a)({},Rr,function(){Pn(Ir)});tn.push(Jn),oe.addKeyMap(Jn)},_n=0,In=Object.entries(Le);_n<In.length;_n++){var Un;wn()}return Xt.current=setInterval(function(){Lt.current&&An()},4e3),function(){clearInterval(Xt.current);var ar=Object(O.a)(tn),qn;try{for(ar.s();!(qn=ar.n()).done;){var Rr=qn.value;oe.removeKeyMap(Rr)}}catch(Ir){ar.e(Ir)}finally{ar.f()}}}},[oe]),Object(a.useEffect)(function(){cr!==oa&&er(cr)},[cr]),Object(vt.a)(function(){if(!Wn&&Ua>0){var tn=new Date().getTime(),wn=window.sessionStorage.getItem(Nt);tn>=Ua+Bt&&(!wn||wn!==Zt)&&(window.sessionStorage.setItem(Nt,Zt),wt(!0))}},Bt),Object(a.useEffect)(function(){un(pt)},[oe,pt]),Object(a.useEffect)(function(){oe&&(Qe&&oe.focus())},[oe,Qe]),Object(a.useEffect)(function(){if(En&&oe){var tn=oe.getScrollerElement();function wn(_n){var In=_n.target;if(Nn.current){var Un=In.scrollTop/In.scrollHeight;Nn.current.scrollTop=Nn.current.scrollHeight*Un}}return tn.addEventListener("scroll",wn),function(){tn.removeEventListener("scroll",wn)}}},[oe,En]),Object(a.useEffect)(function(){if(oe&&Dr){function tn(wn,_n){Dr(wn,_n)}return oe.on("beforeChange",tn),function(){oe.off("beforeChange",tn)}}},[oe,Dr]),Object(a.useEffect)(function(){if(oe&&dr){function tn(){dr(oe.getValue())}return oe.on("blur",tn),function(){oe.off("blur",tn)}}},[oe,dr]),Object(a.useEffect)(function(){if(oe){function tn(wn){var _n=wn.getValue();Mn(_n),li(new Date().getTime()),wn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Wt&&Wt(_n)}return oe.on("change",tn),function(){oe.off("change",tn)}}},[oe,Wt]),Object(a.useEffect)(function(){oe&&(Ct==null?(oe.setValue(""),Mn("")):Ct!==oe.getValue()&&(oe.setValue(Ct),Mn(Ct),oe.setCursor(oe.lineCount(),0)))},[oe,Ct]);var Pn=Object(a.useCallback)(function(tn){var wn=oe.getCursor(),_n=oe.getSelection(),In=_n.split(`
|
|
|
`);switch(tn){case"bold":return oe.replaceSelection("**"+_n+"**"),_n===""&&oe.setCursor(wn.line,wn.ch+2),oe.focus();case"italic":return oe.replaceSelection("*"+_n+"*"),_n===""&&oe.setCursor(wn.line,wn.ch+1),oe.focus();case"code":return oe.replaceSelection("`"+_n+"`"),_n===""&&oe.setCursor(wn.line,wn.ch+1),oe.focus();case"inline-latex":return oe.replaceSelection("`$$"+_n+"$$`"),_n===""&&oe.setCursor(wn.line,wn.ch+3),oe.focus();case"latex":return oe.replaceSelection("```latex\n"+_n+"\n```"),oe.setCursor(wn.line+1,_n.length+1),oe.focus();case"line-break":return oe.replaceSelection(`<br/>
|
|
|
`),oe.focus();case"list-ul":return _n===""?oe.replaceSelection("- "+_n):oe.replaceSelection(In.map(function(Un){return Un===""?"":"- ".concat(Un)}).join(`
|
|
|
`)),oe.focus();case"list-ol":return _n===""?oe.replaceSelection("1. "+_n):oe.replaceSelection(In.map(function(Un,ar){return Un===""?"":"".concat(ar+1,". ").concat(Un)}).join(`
|
|
|
`)),oe.focus();case"add-null-ch":return _n===""&&oe.setCursor(wn.line,wn.ch+1),oe.replaceSelection(Et),oe.focus();case"inster-template-1":return _n===""&&oe.setCursor(wn.line,wn.ch),oe.replaceSelection(Pt),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return un(!En),oe.focus();case"trigger-full-screen":return er(!oa),oe.focus();case _e:Ka(_e);return;case Je:Ka(Je);return;case Ae:Ka(Ae);return;case tt:Ka(tt);return;default:throw new Error}},[oe,En,oa]),yn=Object(a.useCallback)(function(tn){Ka("");switch(ca){case _e:var wn=tn.title,_n=tn.link;return oe.replaceSelection("[".concat(wn,"](").concat(_n,")")),oe.focus();case Je:var In=tn.language,Un=tn.content;return oe.replaceSelection(["```"+In,Un,"```"].join(`
|
|
|
`)),oe.focus();case Ae:var ar=tn.src,qn=tn.alt;return qn?oe.replaceSelection(".concat(ar,' "').concat(qn,'" )')):oe.replaceSelection("")),oe.focus();case tt:for(var Rr=tn.row,Ir=tn.col,Jn=tn.align,Ar=`
|
|
|
`,vr=0;vr<Rr;vr++){for(var zr=[],Lr=[],$r=0;$r<Ir;$r++)vr===1&&Lr.push(ft[Jn]),zr.push(" ");vr===1&&(Ar+="| ".concat(Lr.join(" | "),` |
|
|
|
`)),Ar+="| ".concat(zr.join(Ir===1?"":" | "),` |
|
|
|
`)}return oe.replaceSelection(Ar+`
|
|
|
`),oe.focus();default:throw new Error}},[oe,ca]),kn=Object(a.useMemo)(function(){switch(ca){case _e:return l.a.createElement(he,{callback:yn,onCancel:Rn});case Je:return l.a.createElement(de.b,{callback:yn,onCancel:Rn});case Ae:return l.a.createElement(ue,{callback:yn,onCancel:Rn});case tt:return l.a.createElement(Q,{callback:yn,onCancel:Rn});default:return null}},[ca]);function Rn(){Ka("")}Object(a.useEffect)(function(){if(gn.current){var tn=gn.current,wn=!1,_n=0;function In(qn){wn=!0,_n=qn.pageY}function Un(){wn=!1}function ar(qn){if(wn){var Rr=qn.pageY-_n;Rr<0&&(Rr=0),Rr>300&&(Rr=300);var Ir=Fe+Rr+"px";la(Ir)}}return tn.addEventListener("mousedown",In),document.addEventListener("mousemove",ar),document.addEventListener("mouseup",Un),function(){tn.removeEventListener("mousedown",In),document.removeEventListener("mousemove",ar),document.removeEventListener("mouseup",Un)}}},[oe,gn]),Object(a.useEffect)(function(){la(Fe)},[Fe]);var Yn=qe(Kt),mr=qe(ma),Br={width:Yn,height:mr},Sn=Object(a.useMemo)(function(){if(Ua){var tn=new Date(Ua),wn=tn.getHours(),_n=tn.getMinutes(),In=tn.getSeconds();return wn=wn<10?"0"+wn:wn,_n=_n<10?"0"+_n:_n,In=In<10?"0"+In:In,"".concat(wn,":").concat(_n,":").concat(In)}return 0},[Ua]);function Yt(){window.sessionStorage.removeItem(Nt),wt(!1),li(0)}function hn(){wt(!1),li(0),oe.setValue(window.sessionStorage.getItem(Nt))}function Dn(tn,wn){var _n=oe.getValue();_n=_n.replace(tn,wn),Mn(_n),oe==null||oe.setValue(_n)}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(en," ").concat(En?"on-preview":""," ").concat(it?"mini":""," ").concat(oa?"full-screen":""),style:Br},l.a.createElement(N,{insertTemp:bt,watch:En,fullScreen:oa,showNullButton:Hn,onActionCallback:Pn,hidetoolBar:lr,uuid:Ht.current,setOpenPhones:function(){Lt.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:rn,placeholder:xr})),En?l.a.createElement("div",{ref:Nn,className:"preview-container"},It==="stex"&&l.a.createElement(P,{value:Zt}),It!=="stex"&&l.a.createElement(_.a,{edit:!0,value:Zt,replaces:Dn})):null))),on?l.a.createElement("a",{ref:gn,className:"editor-resize"}):null,l.a.createElement(V.a,null,We[ca]?l.a.createElement(g.a,{centered:!0,title:We[ca],visible:!0,onCancel:Rn,footer:null,className:"markdown-popup-form"},kn):null))}},P5Jw:function(k,z,o){"use strict";var M=o("rHrb"),g=M.CopyToClipboard;g.CopyToClipboard=g,k.exports=g},PVpz:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.StreamCipher,y=g.algo,C=[],A=[],m=[],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);m[n]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.RabbitLegacy=b._createHelper(e)}(),M.RabbitLegacy})},QNag:function(k,z,o){"use strict";var M=o("2qtc"),g=o("kLXV"),O=o("+L6B"),b=o("2/Rp"),y=o("9og8"),C=o("y8nQ"),A=o("Vl3Y"),m=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(),L=Object(m.a)(U,1),N=L[0],V=function(){var D=Object(y.a)(n.a.mark(function W(F){var I,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:(I=_.actionTabs.params)===null||I===void 0?void 0:I.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(g.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"),g=o("uciX"),O=o("2W6z"),b=o.n(O),y=o("4IlW"),C=o("uK0f"),A=o.n(C);function m(be,ye){if(be===ye)return!0;if(!be||!ye)return!1;var ue=be.length;if(ye.length!==ue)return!1;for(var se=0;se<ue;se++)if(be[se]!==ye[se])return!1;return!0}function e(be){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(be)}function f(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function a(be,ye){for(var ue=0;ue<ye.length;ue++){var se=ye[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(be,se.key,se)}}function l(be,ye,ue){return ye&&a(be.prototype,ye),ue&&a(be,ue),be}function n(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),ye&&i(be,ye)}function i(be,ye){return i=Object.setPrototypeOf||function(se,$){return se.__proto__=$,se},i(be,ye)}function r(be){var ye=d();return function(){var ue=s(be),se;if(ye){var $=s(this).constructor;se=Reflect.construct(ue,arguments,$)}else se=ue.apply(this,arguments);return c(this,se)}}function c(be,ye){return ye&&(e(ye)==="object"||typeof ye=="function")?ye:h(be)}function h(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}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(be){return!1}}function s(be){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},s(be)}var u=function(){var be=function(ye){n(se,ye);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,Oe=re.defaultFieldNames;return ae[me]||Oe[me]}},{key:"getOption",value:function(me,re){var ae=this.props,Oe=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},Ae="".concat(Oe,"-menu-item"),Je=null,tt=me[this.getFieldName("children")]&&me[this.getFieldName("children")].length>0;(tt||me.isLeaf===!1)&&(Ae+=" ".concat(Oe,"-menu-item-expand"),me.loading||(Je=M.createElement("span",{className:"".concat(Oe,"-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)&&(Ae+=" ".concat(Oe,"-menu-item-active"),_e.ref=this.saveMenuItem(re)),me.disabled&&(Ae+=" ".concat(Oe,"-menu-item-disabled"));var ut=null;me.loading&&(Ae+=" ".concat(Oe,"-menu-item-loading"),ut=Q||null);var ft="";return"title"in me?ft=me.title:typeof me[this.getFieldName("label")]=="string"&&(ft=me[this.getFieldName("label")]),M.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:Ae,title:ft},_e,{role:"menuitem",onMouseDown:function(_t){return _t.preventDefault()}}),me[this.getFieldName("label")],Je,ut)}},{key:"getActiveOptions",value:function(me){var re=this,ae=this.props.options,Oe=me||this.props.activeValue;return A()(ae,function(le,te){return le[re.getFieldName("value")]===Oe[te]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ae=this.getActiveOptions().map(function(Oe){return Oe[me.getFieldName("children")]}).filter(function(Oe){return!!Oe});return ae.unshift(re),ae}},{key:"delayOnSelect",value:function(me){for(var re=this,ae=arguments.length,Oe=new Array(ae>1?ae-1:0),le=1;le<ae;le++)Oe[le-1]=arguments[le];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof me=="function"&&(this.delayTimer=window.setTimeout(function(){me(Oe),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,Oe=ae===void 0?[]:ae;return Oe[re]===me[this.getFieldName("value")]}},{key:"render",value:function(){var me=this,re=this.props,ae=re.prefixCls,Oe=re.dropdownMenuColumnStyle;return M.createElement("div",null,this.getShowOptions().map(function(le,te){return M.createElement("ul",{className:"".concat(ae,"-menu"),key:te,style:Oe},le.map(function(Q){return me.getOption(Q,te)}))}))}}]),se}(M.Component);return be.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},be}(),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(be){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(be)}function R(be,ye){if(be==null)return{};var ue=x(be,ye),se,$;if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(be);for($=0;$<me.length;$++){if(se=me[$],ye.indexOf(se)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(be,se))continue;ue[se]=be[se]}}return ue}function x(be,ye){if(be==null)return{};var ue={},se=Object.keys(be),$,me;for(me=0;me<se.length;me++){if($=se[me],ye.indexOf($)>=0)continue;ue[$]=be[$]}return ue}function S(be){return L(be)||U(be)||T(be)||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(be,ye){if(!be)return;if(typeof be=="string")return N(be,ye);var ue=Object.prototype.toString.call(be).slice(8,-1);if(ue==="Object"&&be.constructor&&(ue=be.constructor.name),ue==="Map"||ue==="Set")return Array.from(be);if(ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return N(be,ye)}function U(be){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(be))return Array.from(be)}function L(be){if(Array.isArray(be))return N(be)}function N(be,ye){(ye==null||ye>be.length)&&(ye=be.length);for(var ue=0,se=new Array(ye);ue<ye;ue++)se[ue]=be[ue];return se}function V(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function H(be,ye){for(var ue=0;ue<ye.length;ue++){var se=ye[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(be,se.key,se)}}function D(be,ye,ue){return ye&&H(be.prototype,ye),ue&&H(be,ue),be}function W(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),ye&&F(be,ye)}function F(be,ye){return F=Object.setPrototypeOf||function(se,$){return se.__proto__=$,se},F(be,ye)}function I(be){var ye=he();return function(){var ue=de(be),se;if(ye){var $=de(this).constructor;se=Reflect.construct(ue,arguments,$)}else se=ue.apply(this,arguments);return K(this,se)}}function K(be,ye){return ye&&(P(ye)==="object"||typeof ye=="function")?ye:ee(be)}function ee(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}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(be){return!1}}function de(be){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},de(be)}var Se=function(){var be=function(ye){W(se,ye);var ue=I(se);function se($){var me;V(this,se),me=ue.call(this,$),me.setPopupVisible=function(ae){var Oe=me.state.value;"popupVisible"in me.props||me.setState({popupVisible:ae}),ae&&!me.state.popupVisible&&me.setState({activeValue:Oe}),me.props.onPopupVisibleChange(ae)},me.handleChange=function(ae,Oe,le){var te=Oe.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,Oe,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 Ae=me.state.activeValue;Ae=Ae.slice(0,Oe+1),Ae[Oe]=ae[me.getFieldName("value")];var Je=me.getActiveOptions(Ae);if(ae.isLeaf===!1&&!ae[me.getFieldName("children")]&&ve){J&&me.handleChange(Je,{visible:!0},le),me.setState({activeValue:Ae}),ve(Je);return}var tt={};!ae[me.getFieldName("children")]||!ae[me.getFieldName("children")].length?(me.handleChange(Je,{visible:!1},le),tt.value=Ae):J&&(le.type==="click"||le.type==="keydown")&&(_e==="hover"?me.handleChange(Je,{visible:!1},le):me.handleChange(Je,{visible:!0},le),tt.value=Ae),tt.activeValue=Ae,("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 Oe=me.props.children;if(Oe&&Oe.props.onKeyDown){Oe.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(Je){return Je[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),Ae=_e[_e.length-1];me.handleMenuSelect(Ae,_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,Oe=ae.fieldNames,le=ae.filedNames;return"filedNames"in this.props?le[me]||re[me]:Oe[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,Oe=this.state.activeValue,le=Oe===void 0?[]:Oe,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,Oe){return ae[re.getFieldName("value")]===me[Oe]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var me=this.props,re=me.prefixCls,ae=me.transitionName,Oe=me.popupClassName,le=me.options,te=le===void 0?[]:le,Q=me.disabled,J=me.builtinPlacements,ve=me.popupPlacement,_e=me.children,Ae=me.dropdownRender,Je=R(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),tt=M.createElement("div",null),ut="";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})):ut=" ".concat(re,"-menus-empty");var ft=tt;return Ae&&(ft=Ae(tt)),M.createElement(g.a,Object.assign({ref:this.saveTrigger},Je,{popupPlacement:ve,builtinPlacements:J,popupTransitionName:ae,action:Q?[]:["click"],popupVisible:Q?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:Oe+ut,popup:ft}),M.cloneElement(_e,{onKeyDown:this.handleKeyDown,tabIndex:Q?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(me,re){var ae=re.prevProps,Oe=ae===void 0?{}:ae,le={prevProps:me};return"value"in me&&!m(Oe.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 be.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:">"},be}(),Te=Se,ce=z.a=Te},S6kV:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.OFB=function(){var g=M.lib.BlockCipherMode.extend(),O=g.Encryptor=g.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,m=this._iv,e=this._keystream;m&&(e=this._keystream=m.slice(0),this._iv=void 0),C.encryptBlock(e,0);for(var f=0;f<A;f++)b[y+f]^=e[f]}});return g.Decryptor=O,g}(),M.mode.OFB})},"SA+Z":function(k,z,o){var M=o("wTVA"),g=o("EbDI"),O=o("ZhPi"),b=o("wkBT");function y(C){return M(C)||g(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,g,O=!1,b,y;window.PR_SHOULD_USE_CONTINUATION=!0;var C,A;(function(){var m=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",L="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 Ae=le[ve];if(Ae.ignoreCase)J=!0;else if(/[a-z]/i.test(Ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Q=!0,J=!1;break}}var Je={b:8,t:9,n:10,v:11,f:12,r:13};function tt(Ve){var je=Ve.charCodeAt(0);if(je!==92)return je;var ht=Ve.charAt(1);return je=Je[ht],je||("0"<=ht&&ht<="7"?parseInt(Ve.substring(1),8):ht==="u"||ht==="x"?parseInt(Ve.substring(2),16):Ve.charCodeAt(1))}function ut(Ve){if(Ve<32)return(Ve<16?"\\x0":"\\x")+Ve.toString(16);var je=String.fromCharCode(Ve);return je==="\\"||je==="-"||je==="]"||je==="^"?"\\"+je:je}function ft(Ve){var je=Ve.substring(1,Ve.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,qe=je.length;Pt<qe;++Pt){var He=je[Pt];if(/\\[bdsw]/i.test(He))Et.push(He);else{var Ye=tt(He),Ce;Pt+2<qe&&je[Pt+1]==="-"?(Ce=tt(je[Pt+2]),Pt+=2):Ce=Ye,ht.push([Ye,Ce]),Ce<65||Ye>122||(Ce<65||Ye>90||ht.push([Math.max(65,Ye)|32,Math.min(Ce,90)|32]),Ce<97||Ye>122||ht.push([Math.max(97,Ye)&~32,Math.min(Ce,122)&~32]))}}ht.sort(function(ze,st){return ze[0]-st[0]||st[1]-ze[1]});for(var Le=[],We=[],Pt=0;Pt<ht.length;++Pt){var Ue=ht[Pt];Ue[0]<=We[1]+1?We[1]=Math.max(We[1],Ue[1]):Le.push(We=Ue)}for(var Pt=0;Pt<Le.length;++Pt){var Ue=Le[Pt];Et.push(ut(Ue[0])),Ue[1]>Ue[0]&&(Ue[1]+1>Ue[0]&&Et.push("-"),Et.push(ut(Ue[1])))}return Et.push("]"),Et.join("")}function vt(Ve){for(var je=Ve.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 qe=je[Et];if(qe==="(")++Pt;else if(qe.charAt(0)==="\\"){var He=+qe.substring(1);He&&(He<=Pt?Bt[He]=-1:je[Et]=ut(He))}}for(var Et=1;Et<Bt.length;++Et)Bt[Et]===-1&&(Bt[Et]=++te);for(var Et=0,Pt=0;Et<ht;++Et){var qe=je[Et];if(qe==="(")++Pt,Bt[Pt]||(je[Et]="(?:");else if(qe.charAt(0)==="\\"){var He=+qe.substring(1);He&&He<=Pt&&(je[Et]="\\"+Bt[He])}}for(var Et=0;Et<ht;++Et)je[Et]==="^"&&je[Et+1]!=="^"&&(je[Et]="");if(Ve.ignoreCase&&Q)for(var Et=0;Et<ht;++Et){var qe=je[Et],Ye=qe.charAt(0);qe.length>=2&&Ye==="["?je[Et]=ft(qe):Ye!=="\\"&&(je[Et]=qe.replace(/[a-zA-Z]/g,function(We){var Ue=We.charCodeAt(0);return"["+String.fromCharCode(Ue&~32,Ue|32)+"]"}))}return je.join("")}for(var _t=[],ve=0,_e=le.length;ve<_e;++ve){var Ae=le[ve];if(Ae.global||Ae.multiline)throw new Error(""+Ae);_t.push("(?:"+vt(Ae)+")")}return new RegExp(_t.join("|"),J?"gi":"g")}function I(le,te){var Q=/(?:^|\s)nocode(?:\s|$)/,J=[],ve=0,_e=[],Ae=0;function Je(tt){var ut=tt.nodeType;if(ut==1){if(Q.test(tt.className))return;for(var ft=tt.firstChild;ft;ft=ft.nextSibling)Je(ft);var vt=tt.nodeName.toLowerCase();(vt==="br"||vt==="li")&&(J[Ae]=`
|
|
|
`,_e[Ae<<1]=ve++,_e[Ae++<<1|1]=tt)}else if(ut==3||ut==4){var _t=tt.nodeValue;_t.length&&(te?_t=_t.replace(/\r\n?/g,`
|
|
|
`):_t=_t.replace(/[ \t\r\n]+/g," "),J[Ae]=_t,_e[Ae<<1]=ve,ve+=_t.length,_e[Ae++<<1|1]=tt)}}return Je(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 de(le,te){var Q={},J;(function(){for(var Ae=le.concat(te),Je=[],tt={},ut=0,ft=Ae.length;ut<ft;++ut){var vt=Ae[ut],_t=vt[3];if(_t)for(var Ve=_t.length;--Ve>=0;)Q[_t.charAt(Ve)]=vt;var je=vt[1],ht=""+je;tt.hasOwnProperty(ht)||(Je.push(je),tt[ht]=null)}Je.push(/[\0-\uffff]/),J=F(Je)})();var ve=te.length,_e=function(Ae){for(var Je=Ae.sourceCode,tt=Ae.basePos,ut=Ae.sourceNode,ft=[tt,T],vt=0,_t=Je.match(J)||[],Ve={},je=0,ht=_t.length;je<ht;++je){var Bt=_t[je],Et=Ve[Bt],Pt=void 0,qe;if(typeof Et=="string")qe=!1;else{var He=Q[Bt.charAt(0)];if(He)Pt=Bt.match(He[1]),Et=He[0];else{for(var Ye=0;Ye<ve;++Ye)if(He=te[Ye],Pt=Bt.match(He[1]),Pt){Et=He[0];break}Pt||(Et=T)}qe=Et.length>=5&&Et.substring(0,5)==="lang-",qe&&!(Pt&&typeof Pt[1]=="string")&&(qe=!1,Et=N),qe||(Ve[Bt]=Et)}var Ce=vt;if(vt+=Bt.length,!qe)ft.push(tt+Ce,Et);else{var Le=Pt[1],We=Bt.indexOf(Le),Ue=We+Le.length;Pt[2]&&(Ue=Bt.length-Pt[2].length,We=Ue-Le.length);var ze=Et.substring(5);K(ut,tt+Ce,Bt.substring(0,We),_e,ft),K(ut,tt+Ce+We,Le,se(ze,Le),ft),K(ut,tt+Ce+Ue,Bt.substring(Ue),_e,ft)}}Ae.decorations=ft};return _e}function Se(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`,Ae=_e?".":"[\\S\\s]",Je="/(?=[^/*"+_e+"])(?:[^/\\x5B\\x5C"+_e+"]|\\x5C"+Ae+"|\\x5B(?:[^\\x5C\\x5D"+_e+"]|\\x5C"+Ae+")*(?:\\x5D|$))+/";Q.push(["lang-regex",RegExp("^"+W+"("+Je+")")])}var tt=le.types;tt&&Q.push([x,tt]);var ut=(""+le.keywords).replace(/^ | $/g,"");ut.length&&Q.push([P,new RegExp("^(?:"+ut.replace(/[\s,]+/g,"|")+")\\b"),null]),te.push([T,/^\s+/,null,` \r
|
|
|
\xA0`]);var ft="^.[^\\s\\w.$@'\"`/\\\\]*";return le.regexLiterals&&(ft+="(?!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(ft),null]),de(te,Q)}var Te=Se({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,Ae=_e.createElement("li");le.firstChild;)Ae.appendChild(le.firstChild);var Je=[Ae];function tt(je){var ht=je.nodeType;if(ht==1&&!J.test(je.className))if(je.nodeName==="br")ut(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 qe=Et.substring(0,Pt.index);je.nodeValue=qe;var He=Et.substring(Pt.index+Pt[0].length);if(He){var Ye=je.parentNode;Ye.insertBefore(_e.createTextNode(He),je.nextSibling)}ut(je),qe||je.parentNode.removeChild(je)}}}function ut(je){for(;!je.nextSibling;)if(je=je.parentNode,!je)return;function ht(Pt,qe){var He=qe?Pt.cloneNode(!1):Pt,Ye=Pt.parentNode;if(Ye){var Ce=ht(Ye,1),Le=Pt.nextSibling;Ce.appendChild(He);for(var We=Le;We;We=Le)Le=We.nextSibling,Ce.appendChild(We)}return He}for(var Bt=ht(je.nextSibling,0),Et;(Et=Bt.parentNode)&&Et.nodeType===1;)Bt=Et;Je.push(Bt)}for(var ft=0;ft<Je.length;++ft)tt(Je[ft]);te===(te|0)&&Je[0].setAttribute("value",te);var vt=_e.createElement("ol");vt.className="linenums";for(var _t=Math.max(0,te-1|0)||0,ft=0,Ve=Je.length;ft<Ve;++ft)Ae=Je[ft],Ae.className="L"+(ft+_t)%10,Ae.firstChild||Ae.appendChild(_e.createTextNode("\xA0")),vt.appendChild(Ae);le.appendChild(vt)}function be(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,Ae=le.spans,Je=Ae.length,tt=0,ut=le.decorations,ft=ut.length,vt=0;ut[ft]=ve;var _t,Ve;for(Ve=_t=0;Ve<ft;)ut[Ve]!==ut[Ve+2]?(ut[_t++]=ut[Ve++],ut[_t++]=ut[Ve++]):Ve+=2;for(ft=_t,Ve=_t=0;Ve<ft;){for(var je=ut[Ve],ht=ut[Ve+1],Bt=Ve+2;Bt+2<=ft&&ut[Bt+1]===ht;)Bt+=2;ut[_t++]=je,ut[_t++]=ht,Ve=Bt}ft=ut.length=_t;var Et=le.sourceNode,Pt="";Et&&(Pt=Et.style.display,Et.style.display="none");try{for(var qe=null;tt<Je;){var He=Ae[tt],Ye=Ae[tt+2]||ve,Ce=ut[vt+2]||ve,Bt=Math.min(Ye,Ce),Le=Ae[tt+1],We;if(Le.nodeType!==1&&(We=J.substring(_e,Bt))){te&&(We=We.replace(Q,"\r")),Le.nodeValue=We;var Ue=Le.ownerDocument,ze=Ue.createElement("span");ze.className=ut[vt+1];var st=Le.parentNode;st.replaceChild(ze,Le),ze.appendChild(Le),_e<Ye&&(Ae[tt+1]=Le=Ue.createTextNode(J.substring(Bt,Ye)),st.insertBefore(Le,ze.nextSibling))}_e=Bt,_e>=Ye&&(tt+=2),_e>=Ce&&(vt+=2)}}finally{Et&&(Et.style.display=Pt)}}var ye={};function ue(le,te){for(var Q=te.length;--Q>=0;){var J=te[Q];ye.hasOwnProperty(J)?m.console&&console.warn("cannot override language handler %s",J):ye[J]=le}}function se(le,te){return le&&ye.hasOwnProperty(le)||(le=/^\s*</.test(te)?"default-markup":"default-code"),ye[le]}ue(Te,["default-code"]),ue(de([],[[T,/^[^<?]+/],[L,/^<!\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(de([[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(de([],[[H,/^[\s\S]+/]]),["uq.val"]),ue(Se({keywords:l,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ue(Se({keywords:"null,true,false"}),["json"]),ue(Se({keywords:i,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ue(Se({keywords:n,cStyleComments:!0}),["java"]),ue(Se({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Se({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Se({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Se({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Se({keywords:c,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Se({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(de([],[[_,/^[\s\S]+/]]),["regex"]);function $(le){var te=le.langExtension;try{var Q=I(le.sourceNode,le.pre),J=Q.sourceCode;le.sourceCode=J,le.spans=Q.spans,le.basePos=0,se(te,J)(le),be(le)}catch(ve){m.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 Ae={langExtension:ve,numberLines:J,sourceNode:_e,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return $(Ae),_e.innerHTML}function re(le,te){var Q=te||document.body,J=Q.ownerDocument||document;function ve(He){return Q.getElementsByTagName(He)}for(var _e=[ve("pre"),ve("code"),ve("xmp")],Ae=[],Je=0;Je<_e.length;++Je)for(var tt=0,ut=_e[Je].length;tt<ut;++tt)Ae.push(_e[Je][tt]);_e=null;var ft=Date;ft.now||(ft={now:function(){return+new Date}});var vt=0,_t=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ve=/\bprettyprint\b/,je=/\bprettyprinted\b/,ht=/pre|xmp/i,Bt=/^code$/i,Et=/^(?:pre|code|xmp)$/i,Pt={};function qe(){for(var He=m.PR_SHOULD_USE_CONTINUATION?ft.now()+250:Infinity;vt<Ae.length&&ft.now()<He;vt++){for(var Ye=Ae[vt],Ce=Pt,Le=Ye;Le=Le.previousSibling;){var We=Le.nodeType,Ue=(We===7||We===8)&&Le.nodeValue;if(Ue?!/^\??prettify\b/.test(Ue):We!==3||/\S/.test(Le.nodeValue))break;if(Ue){Ce={},Ue.replace(/\b(\w+)=([\w:.%+-]+)/g,function(pt,bt,Dt){Ce[bt]=Dt});break}}var ze=Ye.className;if((Ce!==Pt||Ve.test(ze))&&!je.test(ze)){for(var st=!1,Ct=Ye.parentNode;Ct;Ct=Ct.parentNode){var Wt=Ct.tagName;if(Et.test(Wt)&&Ct.className&&Ve.test(Ct.className)){st=!0;break}}if(!st){Ye.className+=" prettyprinted";var Qt=Ce.lang;if(!Qt){Qt=ze.match(_t);var Kt;!Qt&&(Kt=he(Ye))&&Bt.test(Kt.tagName)&&(Qt=Kt.className.match(_t)),Qt&&(Qt=Qt[1])}var Ot;if(ht.test(Ye.tagName))Ot=1;else{var Fe=Ye.currentStyle,at=J.defaultView,it=Fe?Fe.whiteSpace:at&&at.getComputedStyle?at.getComputedStyle(Ye,null).getPropertyValue("white-space"):0;Ot=it&&it.substring(0,3)==="pre"}var Pe=Ce.linenums;(Pe=Pe==="true"||+Pe)||(Pe=ze.match(/\blinenums\b(?::(\d+))?/),Pe=Pe?Pe[1]&&Pe[1].length?+Pe[1]:!0:!1),Pe&&ce(Ye,Pe,Ot);var Qe={langExtension:Qt,sourceNode:Ye,numberLines:Pe,pre:Ot,sourceCode:null,basePos:null,spans:null,decorations:null};$(Qe)}}}vt<Ae.length?m.setTimeout(qe,250):typeof le=="function"&&le()}qe()}var ae=m.PR={createSimpleLexer:de,registerLangHandler:ue,sourceDecorator:Se,PR_ATTRIB_NAME:V,PR_ATTRIB_VALUE:H,PR_COMMENT:R,PR_DECLARATION:L,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?m.prettyPrintOne=me:C=me,prettyPrint:A=O?m.prettyPrint=re:A=re},Oe=m.define;typeof Oe=="function"&&Oe.amd&&Oe("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 m}),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"),g=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(I=>this._deserializeAndExpression(I,W)),null,!0)}static _deserializeAndExpression(D,W){let F=D.split("&&");return x.create(F.map(I=>this._deserializeOne(I,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(g.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("/"),I=D.lastIndexOf("/");if(F===I||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,I),ee=D[I+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 m(D,W){const F=D?D.substituteConstants():void 0,I=W?W.substituteConstants():void 0;return!F&&!I?!0:!F||!I?!1:F.equals(I)}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:L(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 I=y.get(D);if(typeof I=="boolean"){const K=I?"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 I=y.get(D);if(typeof I=="boolean"){const K=I?"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:L(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,I=>new s(D,I,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,I=>new u(D,I,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,I=>new w(D,I,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,I=>new E(D,I,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,I=D.length;F<I;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 I=e(this.expr[W],D.expr[W]);if(I!==0)return I}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 I=!1;for(const K of D){if(!K)continue;if(K.type===1){I=!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&&I)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,de=S.create(K.expr.map(Se=>x.create([Se,ee],null)),null,he);de&&(F.push(de),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 I=e(this.expr[W],D.expr[W]);if(I!==0)return I}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 I=[],K=!1;if(D){for(let ee=0,he=D.length;ee<he;ee++){const de=D[ee];if(!de)continue;if(de.type===0){K=!0;continue}if(de.type===1)return a.INSTANCE;if(de.type===9){I=I.concat(de.expr);continue}I.push(de)}if(I.length===0&&K)return f.INSTANCE;I.sort(e)}if(I.length===0)return;if(I.length===1)return I[0];for(let ee=1;ee<I.length;ee++)I[ee-1].equals(I[ee])&&(I.splice(ee,1),ee--);if(I.length===1)return I[0];if(F){for(let ee=0;ee<I.length;ee++)for(let he=ee+1;he<I.length;he++)V(I[ee],I[he])&&(I.splice(he,1),he--);if(I.length===1)return I[0]}return new S(I,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(),I=[];for(const ee of H(W))for(const he of H(F))I.push(x.create([ee,he],null));const K=D.length===0;D.unshift(S.create(I,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 L(D,W){return D<W?-1:D>W?1:0}function N(D,W,F,I){return D<F?-1:D>F?1:W<I?-1:W>I?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(),I=H(F).concat(H(W));I.sort(e);for(let K=0;K<I.length;K++){const ee=I[K],he=ee.negate();for(let de=K+1;de<I.length;de++){const Se=I[de];if(he.equals(Se))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,g;(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,L=!1,N=!1,V=!1,H=this._ch,D=!1,W,F,I;W=this._input.read(u),F=W!=="",I=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"?L=!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)):(I==="("?this._output.space_before_token=!1:I!==","&&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(),I==="{"&&this._output.trim(!0),N=!1,L=!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 de=0;de<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;de++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[de])){D=!0;break}(v||U)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!L&&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 Se=I==='"'||I==="'";this.preserveSingleSpace(Se||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),L=!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&&I==="$"&&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&&!L?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=I==='"'||I==="'";this.preserveSingleSpace(ce||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&D&&this._output.add_new_line()}var be=this._output.get_code(R);return be},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 m=A(15);O=m})();var b=O;!(M=[],g=function(){return{css_beautify:b}}.apply(z,M),g!==void 0&&(k.exports=g))})()},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 m});var M=o("MI8n");class g{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 g,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 m;(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})(m||(m={})),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,g){k.exports=g()})(this,function(){"use strict";var M=navigator.userAgent,g=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,m=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(g),u=/\bCrOS\b/.test(M),w=/win/i.test(g),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&&m>=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 L;document.createRange?L=function(t,p,B,j){var G=document.createRange();return G.setEnd(j||t,B),G.setStart(t,p),G}:L=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 I(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 we=t.indexOf(" ",ne);if(we<0||we>=p)return ge+(p-ne);ge+=we-ne,ge+=B-ge%B,ne=we+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 de=50,Se={toString:function(){return"CodeMirror.Pass"}},Te={scroll:!1},ce={origin:"*mouse"},be={origin:"+move"};function ye(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 Oe(t,p){var B;return Object.create?B=Object.create(t):(ae.prototype=t,B=new ae),p&&I(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 Ae(t,p,B){for(;(B<0?p>0:p<t.length)&&_e(t.charAt(p));)p+=B;return p}function Je(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 ut=null;function ft(t,p,B){var j;ut=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:ut=G),ne.from==p&&(ne.from!=ne.to&&B!="before"?j=G:ut=G)}return j!=null?j:ut}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]/,we=/[1n]/;function Re(Be,gt,At){this.level=Be,this.from=gt,this.to=At}return function(Be,gt){var At=gt=="ltr"?"L":"R";if(Be.length==0||gt=="ltr"&&!j.test(Be))return!1;for(var nn=Be.length,zt=[],Tn=0;Tn<nn;++Tn)zt.push(B(Be.charCodeAt(Tn)));for(var Bn=0,Qn=At;Bn<nn;++Bn){var yr=zt[Bn];yr=="m"?zt[Bn]=Qn:Qn=yr}for(var kr=0,Er=At;kr<nn;++kr){var Xr=zt[kr];Xr=="1"&&Er=="r"?zt[kr]="n":ne.test(Xr)&&(Er=Xr,Xr=="r"&&(zt[kr]="R"))}for(var ia=1,ea=zt[0];ia<nn-1;++ia){var wa=zt[ia];wa=="+"&&ea=="1"&&zt[ia+1]=="1"?zt[ia]="1":wa==","&&ea==zt[ia+1]&&(ea=="1"||ea=="n")&&(zt[ia]=ea),ea=wa}for(var Va=0;Va<nn;++Va){var vi=zt[Va];if(vi==",")zt[Va]="N";else if(vi=="%"){var ti=void 0;for(ti=Va+1;ti<nn&&zt[ti]=="%";++ti);for(var zi=Va&&zt[Va-1]=="!"||ti<nn&&zt[ti]=="1"?"1":"N",Ui=Va;Ui<ti;++Ui)zt[Ui]=zi;Va=ti-1}}for(var ci=0,ji=At;ci<nn;++ci){var Ci=zt[ci];ji=="L"&&Ci=="1"?zt[ci]="L":ne.test(Ci)&&(ji=Ci)}for(var pi=0;pi<nn;++pi)if(G.test(zt[pi])){var di=void 0;for(di=pi+1;di<nn&&G.test(zt[di]);++di);for(var ii=(pi?zt[pi-1]:At)=="L",Bi=(di<nn?zt[di]:At)=="L",Ts=ii==Bi?ii?"L":"R":At,es=pi;es<di;++es)zt[es]=Ts;pi=di-1}for(var Oi=[],Po,_i=0;_i<nn;)if(ge.test(zt[_i])){var ru=_i;for(++_i;_i<nn&&ge.test(zt[_i]);++_i);Oi.push(new Re(0,ru,_i))}else{var Fo=_i,ds=Oi.length,fs=gt=="rtl"?1:0;for(++_i;_i<nn&&zt[_i]!="L";++_i);for(var Mi=Fo;Mi<_i;)if(we.test(zt[Mi])){Fo<Mi&&(Oi.splice(ds,0,new Re(1,Fo,Mi)),ds+=fs);var Os=Mi;for(++Mi;Mi<_i&&we.test(zt[Mi]);++Mi);Oi.splice(ds,0,new Re(2,Os,Mi)),ds+=fs,Fo=Mi}else++Mi;Fo<_i&&Oi.splice(ds,0,new Re(1,Fo,_i))}return gt=="ltr"&&(Oi[0].level==1&&(Po=Be.match(/^\s+/))&&(Oi[0].from=Po[0].length,Oi.unshift(new Re(0,0,Po[0].length))),$(Oi).level==1&&(Po=Be.match(/\s+$/))&&($(Oi).to-=Po[0].length,Oi.push(new Re(0,nn-Po[0].length,nn)))),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 Ve=[],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]||Ve).concat(B)}};function ht(t,p){return t._handlers&&t._handlers[p]||Ve}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),We(p)||p.codemirrorIgnore}function qe(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 He(t,p){return ht(t,p).length>0}function Ye(t){t.prototype.on=function(p,B){je(this,p,B)},t.prototype.off=function(p,B){Bt(this,p,B)}}function Ce(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Le(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function We(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ue(t){Ce(t),Le(t)}function ze(t){return t.target||t.srcElement}function st(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 Ct=function(){if(A&&m<9)return!1;var t=T("div");return"draggable"in t||"dragDrop"in t}(),Wt;function Qt(t){if(Wt==null){var p=T("span","\u200B");v(t,T("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Wt=p.offsetWidth<=1&&p.offsetHeight>2&&!(A&&m<8))}var B=Wt?T("span","\u200B"):T("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return B.setAttribute("cm-text",""),B}var Kt;function Ot(t){if(Kt!=null)return Kt;var p=v(t,document.createTextNode("A\u062EA")),B=L(p,0,1).getBoundingClientRect(),j=L(p,1,2).getBoundingClientRect();return S(t),!B||B.left==B.right?!1:Kt=j.right-B.right<3}var Fe=`
|
|
|
|
|
|
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/)},at=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},it=function(){var t=T("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Pe=null;function Qe(t){if(Pe!=null)return Pe;var p=v(t,T("span","x")),B=p.getBoundingClientRect(),j=L(p,0,1).getBoundingClientRect();return Pe=Math.abs(B.left-j.left)>1}var pt={},bt={};function Dt(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),pt[t]=p}function It(t,p){bt[t]=p}function ct(t){if(typeof t=="string"&&bt.hasOwnProperty(t))t=bt[t];else if(t&&typeof t.name=="string"&&bt.hasOwnProperty(t.name)){var p=bt[t.name];typeof p=="string"&&(p={name:p}),t=Oe(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 Nt(t,p){p=ct(p);var B=pt[p.name];if(!B)return Nt(t,"text/plain");var j=B(t,p);if(jt.hasOwnProperty(p.name)){var G=jt[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 jt={};function on(t,p){var B=jt.hasOwnProperty(t)?jt[t]:jt[t]={};I(p,B)}function vn(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 Wn(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 Hn=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};Hn.prototype.eol=function(){return this.pos>=this.string.length},Hn.prototype.sol=function(){return this.pos==this.lineStart},Hn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Hn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Hn.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},Hn.prototype.eatWhile=function(t){for(var p=this.pos;this.eat(t););return this.pos>p},Hn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Hn.prototype.skipToEnd=function(){this.pos=this.string.length},Hn.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},Hn.prototype.backUp=function(t){this.pos-=t},Hn.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)},Hn.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Hn.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)}},Hn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Hn.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},Hn.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},Hn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function fn(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 lr(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 Zn(t,p,B){var j=[];return t.iter(p,B,function(G){j.push(G.text)}),j}function cr(t,p){var B=p-t.height;if(B)for(var j=t;j;j=j.parent)j.height+=B}function dr(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 Dr(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 we=t.lines[ge],Re=we.height;if(p<Re)break;p-=Re}return B+ge}function hr(t,p){return p>=t.first&&p<t.first+t.size}function sn(t,p){return String(t.lineNumberFormatter(p+t.firstLineNumber))}function en(t,p,B){if(B===void 0&&(B=null),!(this instanceof en))return new en(t,p,B);this.line=t,this.ch=p,this.sticky=B}function On(t,p){return t.line-p.line||t.ch-p.ch}function Fr(t,p){return t.sticky==p.sticky&&On(t,p)==0}function Or(t){return en(t.line,t.ch)}function xr(t,p){return On(t,p)<0?p:t}function fr(t,p){return On(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 en(t.first,0);var B=t.first+t.size-1;return p.line>B?en(B,fn(t,B).text.length):q(p,fn(t,p.line).text.length)}function q(t,p){var B=t.ch;return B==null||B>p?en(t.line,p):B<0?en(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 De=function(t,p){this.state=t,this.lookAhead=p},fe=function(t,p,B,j){this.state=p,this.doc=t,this.line=B,this.maxLookAhead=j||0,this.baseTokens=null,this.baseTokenPos=1};fe.prototype.lookAhead=function(t){var p=this.doc.getLine(this.line+t);return p!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),p},fe.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}},fe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fe.fromSaved=function(t,p,B){return p instanceof De?new fe(t,vn(t.mode,p.state),B,p.lookAhead):new fe(t,vn(t.mode,p),B)},fe.prototype.save=function(t){var p=t!==!1?vn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new De(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,we=function(Be){B.baseTokens=G;var gt=t.state.overlays[Be],At=1,nn=0;B.state=!0,oa(t,p.text,gt.mode,B,function(zt,Tn){for(var Bn=At;nn<zt;){var Qn=G[At];Qn>zt&&G.splice(At,1,zt,G[At+1],Qn),At+=2,nn=Math.min(zt,Qn)}if(!Tn)return;if(gt.opaque)G.splice(Bn,At-Bn,zt,"overlay "+Tn),At=Bn+2;else for(;Bn<At;Bn+=2){var yr=G[Bn+1];G[Bn+1]=(yr?yr+" ":"")+"overlay "+Tn}},ne),B.state=ge,B.baseTokens=null,B.baseTokenPos=1},Re=0;Re<t.state.overlays.length;++Re)we(Re);return{styles:G,classes:ne.bgClass||ne.textClass?ne:null}}function Zt(t,p,B){if(!p.styles||p.styles[0]!=t.state.modeGen){var j=Mn(t,dr(p)),G=p.text.length>t.options.maxHighlightLength&&vn(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 Mn(t,p,B){var j=t.doc,G=t.display;if(!j.mode.startState)return new fe(j,!0,p);var ne=er(t,p,B),ge=ne>j.first&&fn(j,ne-1).stateAfter,we=ge?fe.fromSaved(j,ge,ne):new fe(j,Kn(j.mode),ne);return j.iter(ne,p,function(Re){Vn(t,Re.text,we);var Be=we.line;Re.stateAfter=Be==p-1||Be%5==0||Be>=G.viewFrom&&Be<G.viewTo?we.save():null,we.nextLine()}),B&&(j.modeFrontier=we.line),we}function Vn(t,p,B,j){var G=t.doc.mode,ne=new Hn(p,t.options.tabSize,B);for(ne.start=ne.pos=j||0,p==""&&qt(G,B.state);!ne.eol();)En(G,ne,B.state),ne.start=ne.pos}function qt(t,p){if(t.blankLine)return t.blankLine(p);if(!t.innerMode)return;var B=Wn(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]=Wn(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 un=function(t,p,B){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=B};function jr(t,p,B,j){var G=t.doc,ne=G.mode,ge;p=X(G,p);var we=fn(G,p.line),Re=Mn(t,p.line,B),Be=new Hn(we.text,t.options.tabSize,Re),gt;for(j&&(gt=[]);(j||Be.pos<p.ch)&&!Be.eol();)Be.start=Be.pos,ge=En(ne,Be,Re.state),j&>.push(new un(Be,ge,vn(G.mode,Re.state)));return j?gt:new un(Be,ge,Re.state)}function aa(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 we=B.flattenSpans;we==null&&(we=t.options.flattenSpans);var Re=0,Be=null,gt=new Hn(p,t.options.tabSize,j),At,nn=t.options.addModeClass&&[null];for(p==""&&aa(qt(B,j.state),ne);!gt.eol();){if(gt.pos>t.options.maxHighlightLength?(we=!1,ge&&Vn(t,p,j,gt.pos),gt.pos=p.length,At=null):At=aa(En(B,gt,j.state,nn),ne),nn){var zt=nn[0].name;zt&&(At="m-"+(At?zt+" "+At:zt))}if(!we||Be!=At){for(;Re<gt.start;)Re=Math.min(gt.start,Re+5e3),G(Re,Be);Be=At}gt.start=gt.pos}for(;Re<gt.pos;){var Tn=Math.min(gt.pos,Re+5e3);G(Tn,Be),Re=Tn}}function er(t,p,B){for(var j,G,ne=t.doc,ge=B?-1:p-(t.doc.mode.innerMode?1e3:100),we=p;we>ge;--we){if(we<=ne.first)return ne.first;var Re=fn(ne,we-1),Be=Re.stateAfter;if(Be&&(!B||we+(Be instanceof De?Be.lookAhead:0)<=ne.modeFrontier))return we;var gt=K(Re.text,null,t.options.tabSize);(G==null||j>gt)&&(G=we-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=fn(t,j).stateAfter;if(G&&(!(G instanceof De)||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,we=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from<p);if(we||ne.from==p&&ge.type=="bookmark"&&(!B||!ne.marker.insertLeft)){var Re=ne.to==null||(ge.inclusiveRight?ne.to>=p:ne.to>p);(j||(j=[])).push(new Ja(ge,ne.from,Re?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,we=ne.to==null||(ge.inclusiveRight?ne.to>=p:ne.to>p);if(we||ne.from==p&&ge.type=="bookmark"&&(!B||ne.marker.insertLeft)){var Re=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from<p);(j||(j=[])).push(new Ja(ge,Re?null:ne.from-p,ne.to==null?null:ne.to-p))}}return j}function la(t,p){if(p.full)return null;var B=hr(t,p.from.line)&&fn(t,p.from.line).markedSpans,j=hr(t,p.to.line)&&fn(t,p.to.line).markedSpans;if(!B&&!j)return null;var G=p.from.ch,ne=p.to.ch,ge=On(p.from,p.to)==0,we=fa(B,G,ge),Re=ma(j,ne,ge),Be=p.text.length==1,gt=$(p.text).length+(Be?G:0);if(we)for(var At=0;At<we.length;++At){var nn=we[At];if(nn.to==null){var zt=Ua(Re,nn.marker);zt?Be&&(nn.to=zt.to==null?null:zt.to+gt):nn.to=G}}if(Re)for(var Tn=0;Tn<Re.length;++Tn){var Bn=Re[Tn];if(Bn.to!=null&&(Bn.to+=gt),Bn.from==null){var Qn=Ua(we,Bn.marker);Qn||(Bn.from=gt,Be&&(we||(we=[])).push(Bn))}else Bn.from+=gt,Be&&(we||(we=[])).push(Bn)}we&&(we=xe(we)),Re&&Re!=we&&(Re=xe(Re));var yr=[we];if(!Be){var kr=p.text.length-2,Er;if(kr>0&&we)for(var Xr=0;Xr<we.length;++Xr)we[Xr].to==null&&(Er||(Er=[])).push(new Ja(we[Xr].marker,null,null));for(var ia=0;ia<kr;++ia)yr.push(Er);yr.push(Re)}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 lt(t,p,B){var j=null;if(t.iter(p.line,B.line+1,function(zt){if(zt.markedSpans)for(var Tn=0;Tn<zt.markedSpans.length;++Tn){var Bn=zt.markedSpans[Tn].marker;Bn.readOnly&&(!j||he(j,Bn)==-1)&&(j||(j=[])).push(Bn)}}),!j)return null;for(var G=[{from:p,to:B}],ne=0;ne<j.length;++ne)for(var ge=j[ne],we=ge.find(0),Re=0;Re<G.length;++Re){var Be=G[Re];if(On(Be.to,we.from)<0||On(Be.from,we.to)>0)continue;var gt=[Re,1],At=On(Be.from,we.from),nn=On(Be.to,we.to);(At<0||!ge.inclusiveLeft&&!At)&>.push({from:Be.from,to:we.from}),(nn>0||!ge.inclusiveRight&&!nn)&>.push({from:we.to,to:Be.to}),G.splice.apply(G,gt),Re+=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 wt(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 Lt(t){return t.inclusiveRight?1:0}function Xt(t,p){var B=t.lines.length-p.lines.length;if(B!=0)return B;var j=t.find(),G=p.find(),ne=On(j.from,G.from)||Ht(t)-Ht(p);if(ne)return-ne;var ge=On(j.to,G.to)||Lt(t)-Lt(p);return ge||p.id-t.id}function rn(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||Xt(j,G.marker)<0)&&(j=G.marker);return j}function xn(t){return rn(t,!0)}function gn(t){return rn(t,!1)}function Nn(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||Xt(j,ne.marker)<0)&&(j=ne.marker)}return j}function An(t,p,B,j,G){var ne=fn(t,p),ge=ca&&ne.markedSpans;if(ge)for(var we=0;we<ge.length;++we){var Re=ge[we];if(!Re.marker.collapsed)continue;var Be=Re.marker.find(0),gt=On(Be.from,B)||Ht(Re.marker)-Ht(G),At=On(Be.to,j)||Lt(Re.marker)-Lt(G);if(gt>=0&&At<=0||gt<=0&&At>=0)continue;if(gt<=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(Be.to,B)>=0:On(Be.to,B)>0)||gt>=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(Be.from,j)<=0:On(Be.from,j)<0))return!0}}function an(t){for(var p;p=xn(t);)t=p.find(-1,!0).line;return t}function Pn(t){for(var p;p=gn(t);)t=p.find(1,!0).line;return t}function yn(t){for(var p,B;p=gn(t);)t=p.find(1,!0).line,(B||(B=[])).push(t);return B}function kn(t,p){var B=fn(t,p),j=an(B);return B==j?p:dr(j)}function Rn(t,p){if(p>t.lastLine())return p;var B=fn(t,p),j;if(!Yn(t,B))return p;for(;j=gn(B);)B=j.find(1,!0).line;return dr(B)+1}function Yn(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&&mr(t,p,j))return!0}}function mr(t,p,B){if(B.to==null){var j=B.marker.find(1,!0);return mr(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)&&mr(t,p,G))return!0}function Br(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 we=ne.children[ge];if(we==B)break;p+=we.height}return p}function Sn(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=gn(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=fn(B,B.first),p.maxLineLength=Sn(p.maxLine),p.maxLineChanged=!0,B.iter(function(j){var G=Sn(j);G>p.maxLineLength&&(p.maxLineLength=G,p.maxLine=j)})}var hn=function(t,p,B){this.text=t,wt(this,p),this.height=B?B(this):1};hn.prototype.lineNo=function(){return dr(this)},Ye(hn);function Dn(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),wt(t,B);var G=j?j(t):1;G!=t.height&&cr(t,G)}function tn(t){t.parent=null,Rt(t)}var wn={},_n={};function In(t,p){if(!t||/^\s*$/.test(t))return null;var B=p.addModeClass?_n:wn;return B[t]||(B[t]=t.replace(/\S+/g,"cm-$&"))}function Un(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=qn,Ot(t.display.measure)&&(ge=_t(ne,t.doc.direction))&&(j.addToken=Ir(j.addToken,ge)),j.map=[];var we=p!=t.display.externalMeasured&&dr(ne);Ar(ne,j,Zt(t,ne,we)),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(Qt(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 Re=j.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.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 ar(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 qn(t,p,B,j,G,ne,ge){if(!p)return;var we=t.splitSpaces?Rr(p,t.trailingSpace):p,Re=t.cm.state.specialChars,Be=!1,gt;if(!Re.test(p))t.col+=p.length,gt=document.createTextNode(we),t.map.push(t.pos,t.pos+p.length,gt),A&&m<9&&(Be=!0),t.pos+=p.length;else{gt=document.createDocumentFragment();for(var At=0;;){Re.lastIndex=At;var nn=Re.exec(p),zt=nn?nn.index-At:p.length-At;if(zt){var Tn=document.createTextNode(we.slice(At,At+zt));A&&m<9?gt.appendChild(T("span",[Tn])):gt.appendChild(Tn),t.map.push(t.pos,t.pos+zt,Tn),t.col+=zt,t.pos+=zt}if(!nn)break;At+=zt+1;var Bn=void 0;if(nn[0]==" "){var Qn=t.cm.options.tabSize,yr=Qn-t.col%Qn;Bn=gt.appendChild(T("span",se(yr),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),t.col+=yr}else nn[0]=="\r"||nn[0]==`
|
|
|
`?(Bn=gt.appendChild(T("span",nn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",nn[0]),t.col+=1):(Bn=t.cm.options.specialCharPlaceholder(nn[0]),Bn.setAttribute("cm-text",nn[0]),A&&m<9?gt.appendChild(T("span",[Bn])):gt.appendChild(Bn),t.col+=1);t.map.push(t.pos,t.pos+1,Bn),t.pos++}}if(t.trailingSpace=we.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,we,Re){G=G?G+" cm-force-border":"cm-force-border";for(var Be=B.pos,gt=Be+j.length;;){for(var At=void 0,nn=0;nn<p.length&&!(At=p[nn],At.to>Be&&At.from<=Be);nn++);if(At.to>=gt)return t(B,j,G,ne,ge,we,Re);t(B,j.slice(0,At.to-Be),G,ne,null,we,Re),ne=null,j=j.slice(At.to-Be),Be=At.to}}}function Jn(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 Ar(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]),In(B[ge+1],p.cm.options));return}for(var we=G.length,Re=0,Be=1,gt="",At,nn,zt=0,Tn,Bn,Qn,yr,kr;;){if(zt==Re){Tn=Bn=Qn=nn="",kr=null,yr=null,zt=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==Re&&wa.widgetNode)Er.push(wa);else if(ea.from<=Re&&(ea.to==null||ea.to>Re||wa.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&zt>ea.to&&(zt=ea.to,Bn=""),wa.className&&(Tn+=" "+wa.className),wa.css&&(nn=(nn?nn+";":"")+wa.css),wa.startStyle&&ea.from==Re&&(Qn+=" "+wa.startStyle),wa.endStyle&&ea.to==zt&&(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||Xt(yr.marker,wa)<0)&&(yr=ea)}else ea.from>Re&&zt>ea.from&&(zt=ea.from)}if(Xr)for(var vi=0;vi<Xr.length;vi+=2)Xr[vi+1]==zt&&(Bn+=" "+Xr[vi]);if(!yr||yr.from==Re)for(var ti=0;ti<Er.length;++ti)Jn(p,0,Er[ti]);if(yr&&(yr.from||0)==Re){if(Jn(p,(yr.to==null?we+1:yr.to)-Re,yr.marker,yr.from==null),yr.to==null)return;yr.to==Re&&(yr=!1)}}if(Re>=we)break;for(var zi=Math.min(we,zt);;){if(gt){var Ui=Re+gt.length;if(!yr){var ci=Ui>zi?gt.slice(0,zi-Re):gt;p.addToken(p,ci,At?At+Tn:Tn,Qn,Re+ci.length==zt?Bn:"",nn,kr)}if(Ui>=zi){gt=gt.slice(zi-Re),Re=zi;break}Re=Ui,Qn=""}gt=G.slice(ne,ne=B[Be++]),At=In(B[Be++],p.cm.options)}}}function vr(t,p,B){this.line=p,this.rest=yn(p),this.size=this.rest?dr($(this.rest))-B+1:1,this.node=this.text=null,this.hidden=Yn(t,p)}function zr(t,p,B){for(var j=[],G,ne=p;ne<B;ne=G){var ge=new vr(t.doc,fn(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 nr(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 Gt(t,p){var B=t.ownsGroup;if(!B)return;try{nr(B)}finally{Lr=null,p(B)}}var $t=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:$t?G=$t:(G=$t=[],setTimeout(Xn,0));for(var ne=function(we){G.push(function(){return B[we].apply(null,j)})},ge=0;ge<B.length;++ge)ne(ge)}function Xn(){var t=$t;$t=null;for(var p=0;p<t.length;++p)t[p]()}function $n(t,p,B,j){for(var G=0;G<p.changes.length;G++){var ne=p.changes[G];ne=="text"?ir(t,p):ne=="gutter"?or(t,p,B,j):ne=="class"?qr(t,p):ne=="widget"&&da(t,p,j)}p.changes=null}function Ln(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&&m<8&&(t.node.style.zIndex=2)),t.node}function rr(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=Ln(p);p.background=j.insertBefore(T("div",null,B),j.firstChild),t.display.input.setUneditable(p.background)}}function ur(t,p){var B=t.display.externalMeasured;return B&&B.line==p.line?(t.display.externalMeasured=null,p.measure=B.measure,B.built):Un(t,p)}function ir(t,p){var B=p.text.className,j=ur(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){rr(t,p),p.line.wrapClass?Ln(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 or(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=Ln(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=Ln(p),we=p.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?j.fixedPos:-j.gutterTotalWidth)+"px");if(t.display.input.setUneditable(we),ge.insertBefore(we,p.text),p.line.gutterClass&&(we.className+=" "+p.line.gutterClass),t.options.lineNumbers&&(!ne||!ne["CodeMirror-linenumbers"])&&(p.lineNumber=we.appendChild(T("div",sn(t.options,B),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+j.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),ne)for(var Re=0;Re<t.display.gutterSpecs.length;++Re){var Be=t.display.gutterSpecs[Re].className,gt=ne.hasOwnProperty(Be)&&ne[Be];gt&&we.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=ur(t,p);return p.text=p.node=G.pre,G.bgClass&&(p.bgClass=G.bgClass),G.textClass&&(p.textClass=G.textClass),qr(t,p),or(t,p,B,j),_r(t,p,j),p.node}function _r(t,p,B){if(Sr(t,p.line,p,B,!0),p.rest)for(var j=0;j<p.rest.length;j++)Sr(t,p.rest[j],p,B,!1)}function Sr(t,p,B,j,G){if(!p.widgets)return;for(var ne=Ln(B),ge=0,we=p.widgets;ge<we.length;++ge){var Re=we[ge],Be=T("div",[Re.node],"CodeMirror-linewidget"+(Re.className?" "+Re.className:""));Re.handleMouseEvents||Be.setAttribute("cm-ignore-events","true"),Kr(Re,Be,B,j),t.display.input.setUneditable(Be),G&&Re.above?ne.insertBefore(Be,B.gutter||B.text):ne.appendChild(Be),Jt(Re,"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=ze(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 Ze(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function dt(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 de-t.display.nativeBarWidth}function nt(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 Xe(t,p,B){var j=t.options.lineWrapping,G=j&&nt(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(),we=0;we<ge.length-1;we++){var Re=ge[we],Be=ge[we+1];Math.abs(Re.bottom-Be.bottom)>2&&ne.push((Re.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(dr(t.rest[G])>B)return{map:t.measure.maps[G],cache:t.measure.caches[G],before:!0}}function et(t,p){p=an(p);var B=dr(p),j=t.display.externalMeasured=new vr(t.doc,p,B);j.lineN=B;var G=j.built=Un(t,j);return j.text=G.pre,v(t.display.lineMeasure,G.pre),j}function $e(t,p,B,j){return Mt(t,rt(t,p),B,j)}function mt(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 rt(t,p){var B=dr(p),j=mt(t,B);j&&!j.text?j=null:j&&j.changes&&($n(t,j,B,tr(t)),t.curOp.forceUpdate=!0),j||(j=et(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 Mt(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||(Xe(t,p.view,p.rect),p.hasHeights=!0),ge=dn(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 Vt={left:0,right:0,top:0,bottom:0};function pn(t,p,B){for(var j,G,ne,ge,we,Re,Be=0;Be<t.length;Be+=3)if(we=t[Be],Re=t[Be+1],p<we?(G=0,ne=1,ge="left"):p<Re?(G=p-we,ne=G+1):(Be==t.length-3||p==Re&&t[Be+3]>p)&&(ne=Re-we,G=ne-1,p>=Re&&(ge="right")),G!=null){if(j=t[Be+2],we==Re&&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==Re-we)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:we,coverEnd:Re}}function ln(t,p){var B=Vt;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 dn(t,p,B,j){var G=pn(p.map,B,j),ne=G.node,ge=G.start,we=G.end,Re=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+we<G.coverEnd&&_e(p.line.text.charAt(G.coverStart+we));)++we;if(A&&m<9&&ge==0&&we==G.coverEnd-G.coverStart?Be=ne.parentNode.getBoundingClientRect():Be=ln(L(ne,ge,we).getClientRects(),j),Be.left||Be.right||ge==0)break;we=ge,ge=ge-1,Re="right"}A&&m<11&&(Be=cn(t.display.measure,Be))}else{ge>0&&(Re=j="right");var At;t.options.lineWrapping&&(At=ne.getClientRects()).length>1?Be=At[j=="right"?At.length-1:0]:Be=ne.getBoundingClientRect()}if(A&&m<9&&!ge&&(!Be||!Be.left&&!Be.right)){var nn=ne.parentNode.getClientRects()[0];nn?Be={left:nn.left,right:nn.left+Mr(t.display),top:nn.top,bottom:nn.bottom}:Be=Vt}for(var zt=Be.top-p.rect.top,Tn=Be.bottom-p.rect.top,Bn=(zt+Tn)/2,Qn=p.view.measure.heights,yr=0;yr<Qn.length-1&&!(Bn<Qn[yr]);yr++);var kr=yr?Qn[yr-1]:0,Er=Qn[yr],Xr={left:(Re=="right"?Be.right:Be.left)-p.rect.left,right:(Re=="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=zt,Xr.rbottom=Tn),Xr}function cn(t,p){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Qe(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 Fn(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 Cn(t){t.display.externalMeasure=null,S(t.display.lineMeasure);for(var p=0;p<t.display.view.length;p++)Fn(t.display.view[p])}function Ur(t){Cn(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=Br(p);if(j=="local"?ge+=_a(t.display):ge-=t.display.viewOffset,j=="page"||j=="window"){var we=t.display.lineSpace.getBoundingClientRect();ge+=we.top+(j=="window"?0:Qr());var Re=we.left+(j=="window"?0:Pr());B.left+=Re,B.right+=Re}return B.top+=ge,B.bottom+=ge,B}function zn(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 wr(t,p,B,j,G){return j||(j=fn(t.doc,p.line)),ta(t,j,$e(t,j,p.ch,G),B)}function Gn(t,p,B,j,G,ne){j=j||fn(t.doc,p.line),G||(G=rt(t,j));function ge(Tn,Bn){var Qn=Mt(t,G,Tn,Bn?"right":"left",ne);return Bn?Qn.left=Qn.right:Qn.right=Qn.left,ta(t,j,Qn,B)}var we=_t(j,t.doc.direction),Re=p.ch,Be=p.sticky;if(Re>=j.text.length?(Re=j.text.length,Be="before"):Re<=0&&(Re=0,Be="after"),!we)return ge(Be=="before"?Re-1:Re,Be=="before");function gt(Tn,Bn,Qn){var yr=we[Bn],kr=yr.level==1;return ge(Qn?Tn-1:Tn,kr!=Qn)}var At=ft(we,Re,Be),nn=ut,zt=gt(Re,At,Be=="before");return nn!=null&&(zt.other=gt(Re,nn,Be!="before")),zt}function bn(t,p){var B=0;p=X(t.doc,p),t.options.lineWrapping||(B=Mr(t.display)*p.ch);var j=fn(t.doc,p.line),G=Br(j)+_a(t.display);return{left:B,right:B,top:G,bottom:G+j.height}}function jn(t,p,B,j,G){var ne=en(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 jn(j.first,0,null,-1,-1);var G=Dr(j,B),ne=j.first+j.size-1;if(G>ne)return jn(j.first+j.size-1,fn(j,ne).text.length,null,1,1);p<0&&(p=0);for(var ge=fn(j,G);;){var we=Ca(t,ge,G,p,B),Re=Nn(ge,we.ch+(we.xRel>0||we.outside>0?1:0));if(!Re)return we;var Be=Re.find(1);if(Be.line==G)return Be;ge=fn(j,G=Be.line)}}function ua(t,p,B,j){j-=Wr(p);var G=p.text.length,ne=Je(function(ge){return Mt(t,B,ge-1).bottom<=j},G,0);return G=Je(function(ge){return Mt(t,B,ge).top>j},ne,G),{begin:ne,end:G}}function pr(t,p,B,j){B||(B=rt(t,p));var G=ta(t,p,Mt(t,B,j),"line").top;return ua(t,p,B,G)}function na(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-=Br(p);var ne=rt(t,p),ge=Wr(p),we=0,Re=p.text.length,Be=!0,gt=_t(p,t.doc.direction);if(gt){var At=(t.options.lineWrapping?Sa:ha)(t,p,B,ne,gt,j,G);Be=At.level!=1,we=Be?At.from:At.to-1,Re=Be?At.to:At.from-1}var nn=null,zt=null,Tn=Je(function(ia){var ea=Mt(t,ne,ia);return ea.top+=ge,ea.bottom+=ge,na(ea,j,G,!1)?(ea.top<=G&&ea.left<=j&&(nn=ia,zt=ea),!0):!1},we,Re),Bn,Qn,yr=!1;if(zt){var kr=j-zt.left<zt.right-j,Er=kr==Be;Tn=nn+(Er?0:1),Qn=Er?"after":"before",Bn=kr?zt.left:zt.right}else{!Be&&(Tn==Re||Tn==we)&&Tn++,Qn=Tn==0?"after":Tn==p.text.length?"before":Mt(t,ne,Tn-(Be?1:0)).bottom+ge<=G==Be?"after":"before";var Xr=Gn(t,en(B,Tn,Qn),"line",p,ne);Bn=Xr.left,yr=G<Xr.top?-1:G>=Xr.bottom?1:0}return Tn=Ae(p.text,Tn,1),jn(B,Tn,Qn,yr,j-Bn)}function ha(t,p,B,j,G,ne,ge){var we=Je(function(At){var nn=G[At],zt=nn.level!=1;return na(Gn(t,en(B,zt?nn.to:nn.from,zt?"before":"after"),"line",p,j),ne,ge,!0)},0,G.length-1),Re=G[we];if(we>0){var Be=Re.level!=1,gt=Gn(t,en(B,Be?Re.from:Re.to,Be?"after":"before"),"line",p,j);na(gt,ne,ge,!0)&>.top>ge&&(Re=G[we-1])}return Re}function Sa(t,p,B,j,G,ne,ge){var we=ua(t,p,j,ge),Re=we.begin,Be=we.end;/\s/.test(p.text.charAt(Be-1))&&Be--;for(var gt=null,At=null,nn=0;nn<G.length;nn++){var zt=G[nn];if(zt.from>=Be||zt.to<=Re)continue;var Tn=zt.level!=1,Bn=Mt(t,j,Tn?Math.min(Be,zt.to)-1:Math.max(Re,zt.from)).right,Qn=Bn<ne?ne-Bn+1e9:Bn-ne;(!gt||At>Qn)&&(gt=zt,At=Qn)}return gt||(gt=G[G.length-1]),gt.from<Re&&(gt={from:Re,to:gt.to,level:gt.level}),gt.to>Be&&(gt={from:gt.from,to:Be,level:gt.level}),gt}var Tr;function br(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Tr==null){Tr=T("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(T("br"));Tr.appendChild(document.createTextNode("x"))}v(t.measure,Tr);var B=Tr.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 tr(t){for(var p=t.display,B={},j={},G=p.gutters.clientLeft,ne=p.gutters.firstChild,ge=0;ne;ne=ne.nextSibling,++ge){var we=t.display.gutterSpecs[ge].className;B[we]=ne.offsetLeft+ne.clientLeft+G,j[we]=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(Yn(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&&cr(j,G)})}function Aa(t,p,B,j){var G=t.display;if(!B&&ze(p).getAttribute("cm-not-content")=="true")return null;var ne,ge,we=G.lineSpace.getBoundingClientRect();try{ne=p.clientX-we.left,ge=p.clientY-we.top}catch(At){return null}var Re=Vr(t,ne,ge),Be;if(j&&Re.xRel>0&&(Be=fn(t.doc,Re.line).text).length==Re.ch){var gt=K(Be,Be.length,t.options.tabSize)-Be.length;Re=en(Re.line,Math.max(0,Math.round((ne-dt(t.display).left)/Mr(t.display))-gt))}return Re}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&&kn(t.doc,p)<G.viewTo&&Fa(t);else if(B<=G.viewFrom)ca&&Rn(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 we=ni(t,p,p,-1),Re=ni(t,B,B+j,1);we&&Re?(G.view=G.view.slice(0,we.index).concat(zr(t,we.lineN,Re.lineN)).concat(G.view.slice(Re.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 we=t.display.viewFrom,Re=0;Re<G;Re++)we+=ge[Re].size;if(we!=p){if(j>0){if(G==ge.length-1)return null;ne=we+ge[G].size-p,G++}else ne=we-p;p+=ne,B+=ne}for(;kn(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 we=B.sel.ranges[ge];if(we.from().line>=t.display.viewTo||we.to().line<t.display.viewFrom)continue;var Re=we.empty();(Re||t.options.showCursorWhenSelecting)&&Si(t,we.head,G),Re||Ma(t,we,ne)}return j}function Si(t,p,B){var j=Gn(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=dt(t.display),we=ge.left,Re=Math.max(j.sizerWidth,nt(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?Re-Er:ia)+`px;
|
|
|
height: `+(ea-Xr)+"px"))}function At(Er,Xr,ia){var ea=fn(G,Er),wa=ea.text.length,Va,vi;function ti(ci,ji){return wr(t,en(Er,ci),"div",ea,ji)}function zi(ci,ji,Ci){var pi=pr(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?we:(di?ii:Bi).left,ds=ru?Re:(di?Bi:ii).right;gt(Fo,ii.top,ds-Fo,ii.bottom)}else{var fs,Mi,Os,au;di?(fs=Be&&Ts&&Oi?we:ii.left,Mi=Be?Re:zi(ci,Ci,"before"),Os=Be?we:zi(ji,Ci,"after"),au=Be&&es&&Po?Re:Bi.right):(fs=Be?zi(ci,Ci,"before"):we,Mi=!Be&&Ts&&Oi?Re:ii.right,Os=!Be&&es&&Po?we:Bi.left,au=Be?zi(ji,Ci,"after"):Re),gt(fs,ii.top,Mi-fs,ii.bottom),ii.bottom<Bi.top&>(we,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 nn=p.from(),zt=p.to();if(nn.line==zt.line)At(nn.line,nn.ch,zt.ch);else{var Tn=fn(G,nn.line),Bn=fn(G,zt.line),Qn=an(Tn)==an(Bn),yr=At(nn.line,nn.ch,Qn?Tn.text.length+1:null).end,kr=At(zt.line,Qn?0:null,zt.ch).start;Qn&&(yr.top<kr.top-2?(gt(yr.right,yr.top,null,yr.bottom),gt(we,kr.top,kr.left,kr.bottom)):gt(yr.right,yr.top,kr.left-yr.right,yr.bottom)),yr.bottom<kr.top&>(we,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,we=0;if(G.hidden)continue;if(A&&m<8){var Re=G.node.offsetTop+G.node.offsetHeight;ge=Re-B,B=Re}else{var Be=G.node.getBoundingClientRect();ge=Be.bottom-Be.top,!ne&&G.text.firstChild&&(we=G.text.firstChild.getBoundingClientRect().right-Be.left-1)}var gt=G.line.height-ge;if((gt>.005||gt<-.005)&&(cr(G.line,ge),mi(G.line),G.rest))for(var At=0;At<G.rest.length;At++)mi(G.rest[At]);if(we>t.display.sizerWidth){var nn=Math.ceil(we/Mr(t.display));nn>t.display.maxLineLength&&(t.display.maxLineLength=nn,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=Dr(p,j),ge=Dr(p,G);if(B&&B.ensure){var we=B.ensure.from.line,Re=B.ensure.to.line;we<ne?(ne=we,ge=Dr(p,Br(fn(p,we))+t.wrapper.clientHeight)):Math.min(Re,p.lastLine())>=ge&&(ne=Dr(p,Br(fn(p,Re))-t.wrapper.clientHeight),ge=Re)}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?en(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,B=p.sticky=="before"?en(p.line,p.ch+1,"before"):p);for(var ne=0;ne<5;ne++){var ge=!1,we=Gn(t,p),Re=!B||B==p?we:Gn(t,B);G={left:Math.min(we.left,Re.left),top:Math.min(we.top,Re.top)-j,right:Math.max(we.left,Re.left),bottom:Math.max(we.bottom,Re.bottom)+j};var Be=Vi(t,G),gt=t.doc.scrollTop,At=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-At)>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 we=t.doc.height+Ze(B),Re=p.top<j,Be=p.bottom>we-j;if(p.top<G)ge.scrollTop=Re?0:p.top;else if(p.bottom>G+ne){var gt=Math.min(p.top,(Be?we:p.bottom)-ne);gt!=G&&(ge.scrollTop=gt)}var At=t.options.fixedGutter?0:B.gutters.offsetWidth,nn=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:B.scroller.scrollLeft-At,zt=nt(t)-B.gutters.offsetWidth,Tn=p.right-p.left>zt;return Tn&&(p.right=p.left+zt),p.left<10?ge.scrollLeft=0:p.left<nn?ge.scrollLeft=Math.max(0,p.left+At-(Tn?0:10)):p.right>zt+nn-3&&(ge.scrollLeft=p.right+(Tn?0:10)-zt),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=bn(t,p.from),j=bn(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+Ze(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&&m<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&&Gt(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=$e(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-nt(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 we=0;we<ne.length;++we)ne[we].lines.length||Et(ne[we],"hide");if(ge)for(var Re=0;Re<ge.length;++Re)ge[Re].lines.length&&Et(ge[Re],"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=Mn(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,we=ne.text.length>t.options.maxHighlightLength?vn(p.mode,j.state):null,Re=ot(t,ne,j,!0);we&&(j.state=we),ne.styles=Re.styles;var Be=ne.styleClasses,gt=Re.classes;gt?ne.styleClasses=gt:Be&&(ne.styleClasses=null);for(var At=!ge||ge.length!=ne.styles.length||Be!=gt&&(!Be||!gt||Be.bgClass!=gt.bgClass||Be.textClass!=gt.textClass),nn=0;!At&&nn<ge.length;++nn)At=ge[nn]!=ne.styles[nn];At&&G.push(j.line),ne.stateAfter=j.save(),j.nextLine()}else ne.text.length<=t.options.maxHighlightLength&&Vn(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=nt(t),this.force=B,this.dims=tr(t),this.events=[]};yi.prototype.signal=function(t,p){He(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=tr(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=kn(t.doc,ne),ge=Rn(t.doc,ge));var we=ne!=B.viewFrom||ge!=B.viewTo||B.lastWrapHeight!=p.wrapperHeight||B.lastWrapWidth!=p.wrapperWidth;Fi(t,ne,ge),B.viewOffset=Br(fn(t.doc,B.viewFrom)),t.display.mover.style.top=B.viewOffset+"px";var Re=Ai(t);if(!we&&Re==0&&!p.force&&B.renderedView==B.view&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo))return!1;var Be=To(t);return Re>4&&(B.lineDiv.style.display="none"),Wo(t,B.updateLineNumbers,p.dims),Re>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,we&&(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==nt(t)){if(B&&B.top!=null&&(B={top:Math.min(t.doc.height+Ze(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 we(Tn){var Bn=Tn.nextSibling;return e&&s&&t.display.currentWheelTarget==Tn?Tn.style.display="none":Tn.parentNode.removeChild(Tn),Bn}for(var Re=j.view,Be=j.viewFrom,gt=0;gt<Re.length;gt++){var At=Re[gt];if(!At.hidden)if(!At.node||At.node.parentNode!=ne){var nn=Yr(t,At,Be,B);ne.insertBefore(nn,ge)}else{for(;ge!=At.node;)ge=we(ge);var zt=G&&p!=null&&p<=Be&&At.lineNumber;At.changes&&(he(At.changes,"gutter")>-1&&(zt=!1),$n(t,At,Be,B)),zt&&(S(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(sn(t.options,Be)))),ge=At.node.nextSibling}Be+=At.size}for(;ge;)ge=we(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 we=B[ge].alignable;if(we)for(var Re=0;Re<we.length;Re++)we[Re].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=sn(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,we=p.appendChild(T("div",null,"CodeMirror-gutter "+ne));ge&&(we.style.cssText=ge),ne=="CodeMirror-linenumbers"&&(t.lineGutter=we,we.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: "+de+"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&&m<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,we=ge.scrollWidth>ge.clientWidth,Re=ge.scrollHeight>ge.clientHeight;if(!(j&&we||G&&Re))return;if(G&&s&&e){e:for(var Be=p.target,gt=ne.view;Be!=ge;Be=Be.parentNode)for(var At=0;At<gt.length;At++)if(gt[At].node==Be){t.display.currentWheelTarget=Be;break e}}if(j&&!O&&!l&&qa!=null){G&&Re&&Ji(t,Math.max(0,ge.scrollTop+G*qa)),ei(t,Math.max(0,ge.scrollLeft+j*qa)),(!G||G&&Re)&&Ce(p),ne.wheelStartX=null;return}if(G&&qa!=null){var nn=G*qa,zt=t.doc.scrollTop,Tn=zt+ne.wrapper.clientHeight;nn<0?zt=Math.max(0,zt+nn-50):Tn=Math.min(t.doc.height,Tn+nn+50),fo(t,{top:zt,bottom:Tn})}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 Bn=ge.scrollLeft-ne.wheelStartX,Qn=ge.scrollTop-ne.wheelStartY,yr=Qn&&ne.wheelDY&&Qn/ne.wheelDY||Bn&&ne.wheelDX&&Bn/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(!Fr(B.anchor,j.anchor)||!Fr(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(Or(this.ranges[p].anchor),Or(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(On(p,j.from())>=0&&On(t,j.to())<=0)return B}return-1};var Pa=function(t,p){this.anchor=t,this.head=p};Pa.prototype.from=function(){return fr(this.anchor,this.head)},Pa.prototype.to=function(){return xr(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(nn,zt){return On(nn.from(),zt.from())}),B=he(p,G);for(var ne=1;ne<p.length;ne++){var ge=p[ne],we=p[ne-1],Re=On(we.to(),ge.from());if(j&&!ge.empty()?Re>0:Re>=0){var Be=fr(we.from(),ge.from()),gt=xr(we.to(),ge.to()),At=we.empty()?ge.from()==ge.head:we.from()==we.head;ne<=B&&--B,p.splice(--ne,2,new Pa(At?gt:Be,At?Be:gt))}}return new hi(p,B)}function Cr(t,p){return new hi([new Pa(t,p||t)],0)}function Zr(t){return t.text?en(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(On(t,p.from)<0)return t;if(On(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),en(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?en(B.line,t.ch-p.ch+B.ch):en(B.line+(t.line-p.line),t.ch)}function Pi(t,p,B){for(var j=[],G=en(t.first,0),ne=G,ge=0;ge<p.length;ge++){var we=p[ge],Re=Ei(we.from,G,ne),Be=Ei(Zr(we),G,ne);if(G=we.to,ne=Be,B=="around"){var gt=t.sel.ranges[ge],At=On(gt.head,gt.anchor)<0;j[ge]=new Pa(At?Be:Re,At?Re:Be)}else j[ge]=new Pa(Re,Re)}return new hi(j,t.sel.primIndex)}function $a(t){t.doc.mode=Nt(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){Dn(kr,Er,Xr,j),Jt(kr,"change",kr,p)}function ge(kr,Er){for(var Xr=[],ia=kr;ia<Er;++ia)Xr.push(new hn(Be[ia],G(ia),j));return Xr}var we=p.from,Re=p.to,Be=p.text,gt=fn(t,we.line),At=fn(t,Re.line),nn=$(Be),zt=G(Be.length-1),Tn=Re.line-we.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 Bn=ge(0,Be.length-1);ne(At,At.text,zt),Tn&&t.remove(we.line,Tn),Bn.length&&t.insert(we.line,Bn)}else if(gt==At)if(Be.length==1)ne(gt,gt.text.slice(0,we.ch)+nn+gt.text.slice(Re.ch),zt);else{var Qn=ge(1,Be.length-1);Qn.push(new hn(nn+gt.text.slice(Re.ch),zt,j)),ne(gt,gt.text.slice(0,we.ch)+Be[0],G(0)),t.insert(we.line+1,Qn)}else if(Be.length==1)ne(gt,gt.text.slice(0,we.ch)+Be[0]+At.text.slice(Re.ch),G(0)),t.remove(we.line+1,Tn);else{ne(gt,gt.text.slice(0,we.ch)+Be[0],G(0)),ne(At,nn+At.text.slice(Re.ch),zt);var yr=ge(1,Be.length-1);Tn>1&&t.remove(we.line+1,Tn-1),t.insert(we.line+1,yr)}Jt(t,"change",t,p)}function Qa(t,p,B){function j(G,ne,ge){if(G.linked)for(var we=0;we<G.linked.length;++we){var Re=G.linked[we];if(Re.doc==ne)continue;var Be=ge&&Re.sharedHist;if(B&&!Be)continue;p(Re.doc,Be),j(Re.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:Or(p.from),to:Zr(p),text:lr(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,we;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)))we=$(ge.changes),On(p.from,p.to)==0&&On(p.from,we.to)==0?we.to=Zr(p):ge.changes.push(Ds(t,p));else{var Re=$(G.done);for((!Re||!Re.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,we||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 we=0;we<ge.length;++we){for(var Re=ge[we],Be=0;Be<ne.length;++Be)if(ne[Be].marker==Re.marker)continue e;ne.push(Re)}}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,we=[];j.push({changes:we});for(var Re=0;Re<ge.length;++Re){var Be=ge[Re],gt=void 0;if(we.push({from:Be.from,to:Be.to,text:Be.text}),p)for(var At in Be)(gt=At.match(/^spans_(\d+)$/))&&(he(p,Number(gt[1]))>-1&&($(we)[At]=Be[At],delete Be[At]))}}return j}function vs(t,p,B,j){if(j){var G=t.anchor;if(B){var ne=On(p,G)<0;ne!=On(B,G)<0?(G=p,p=B):ne!=On(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,Cr(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){(He(t,"beforeSelectionChange")||t.cm&&He(t.cm,"beforeSelectionChange"))&&(p=Ll(t,p,B));var j=B&&B.bias||(On(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,qe(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],we=p.ranges.length==t.sel.ranges.length&&t.sel.ranges[ne],Re=bs(t,ge.anchor,we&&we.anchor,B,j),Be=bs(t,ge.head,we&&we.head,B,j);(G||Re!=ge.anchor||Be!=ge.head)&&(G||(G=p.ranges.slice(0,ne)),G[ne]=new Pa(Re,Be))}return G?sa(t.cm,G,p.primIndex):p}function Go(t,p,B,j,G){var ne=fn(t,p.line);if(ne.markedSpans)for(var ge=0;ge<ne.markedSpans.length;++ge){var we=ne.markedSpans[ge],Re=we.marker,Be="selectLeft"in Re?!Re.selectLeft:Re.inclusiveLeft,gt="selectRight"in Re?!Re.selectRight:Re.inclusiveRight;if((we.from==null||(Be?we.from<=p.ch:we.from<p.ch))&&(we.to==null||(gt?we.to>=p.ch:we.to>p.ch))){if(G&&(Et(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(ne.markedSpans){--ge;continue}else break;if(!Re.atomic)continue;if(B){var At=Re.find(j<0?1:-1),nn=void 0;if((j<0?gt:Be)&&(At=il(t,At,-j,At&&At.line==p.line?ne:null)),At&&At.line==p.line&&(nn=On(At,B))&&(j<0?nn<0:nn>0))return Go(t,At,p,j,G)}var zt=Re.find(j<0?-1:1);return(j<0?Be:gt)&&(zt=il(t,zt,j,zt.line==p.line?ne:null)),zt?Go(t,zt,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,en(t.first,0))}function il(t,p,B,j){return B<0&&p.ch==0?p.line>t.first?X(t,en(p.line-1)):null:B>0&&p.ch==(j||fn(t,p.line)).text.length?p.line<t.first+t.size-1?en(p.line+1,0):null:new en(p.line,p.ch+B)}function ol(t){t.setSelection(en(t.firstLine(),0),en(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,we){G&&(j.from=X(t,G)),ne&&(j.to=X(t,ne)),ge&&(j.text=ge),we!==void 0&&(j.origin=we)}),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((He(t,"beforeChange")||t.cm&&He(t.cm,"beforeChange"))&&(p=Ms(t,p,!0),!p))return;var j=Ea&&!B&<(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]==""&&On(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,we=p=="undo"?G.done:G.undone,Re=p=="undo"?G.undone:G.done,Be=0;Be<we.length&&!(ne=we[Be],B?ne.ranges&&!ne.equals(t.sel):!ne.ranges);Be++);if(Be==we.length)return;for(G.lastOrigin=G.lastSelOrigin=null;;)if(ne=we.pop(),ne.ranges){if(ms(ne,Re),B&&!ne.equals(t.sel)){gi(t,ne,{clearRedo:!1});return}ge=ne}else if(j){we.push(ne);return}else break;var gt=[];ms(ge,Re),Re.push({changes:gt,generation:G.generation}),G.generation=ne.generation||++G.maxGeneration;for(var At=He(t,"beforeChange")||t.cm&&He(t.cm,"beforeChange"),nn=function(Bn){var Qn=ne.changes[Bn];if(Qn.origin=p,At&&!Ms(t,Qn,!1))return we.length=0,{};gt.push(Ds(t,Qn));var yr=Bn?Wa(t,Qn):$(we);Vo(t,Qn,yr,Ps(t,Qn)),!Bn&&t.cm&&t.cm.scrollIntoView({from:Qn.from,to:Zr(Qn)});var kr=[];Qa(t,function(Er,Xr){!Xr&&he(kr,Er.history)==-1&&(dl(Er.history,Qn),kr.push(Er.history)),Vo(Er,Qn,null,Ps(Er,Qn))})},zt=ne.changes.length-1;zt>=0;--zt){var Tn=nn(zt);if(Tn)return Tn.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(en(G.anchor.line+p,G.anchor.ch),en(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:en(t.first,0),to:en(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:en(ne,fn(t,ne).text.length),text:[p.text[0]],origin:p.origin}),p.removed=lr(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,en(t.firstLine(),0))&&(t.cantEdit=!1)}function Nl(t,p,B){var j=t.doc,G=t.display,ne=p.from,ge=p.to,we=!1,Re=ne.line;t.options.lineWrapping||(Re=dr(an(fn(j,ne.line))),j.iter(Re,ge.line+1,function(zt){if(zt==G.maxLine)return we=!0,!0})),j.sel.contains(p.from,p.to)>-1&&qe(t),go(j,p,B,xa(t)),t.options.lineWrapping||(j.iter(Re,ne.line+p.text.length,function(zt){var Tn=Sn(zt);Tn>G.maxLineLength&&(G.maxLine=zt,G.maxLineLength=Tn,G.maxLineChanged=!0,we=!1)}),we&&(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=He(t,"changes"),At=He(t,"change");if(At||gt){var nn={from:ne,to:ge,text:p.text,removed:p.removed,origin:p.origin};At&&Jt(t,"change",t,nn),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(nn)}t.display.selForContextMenu=null}function Xo(t,p,B,j,G){var ne;j||(j=B),On(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 we=0;we<ne.ranges.length;we++)ul(ne.ranges[we].anchor,p,B,j),ul(ne.ranges[we].head,p,B,j);continue}for(var Re=0;Re<ne.changes.length;++Re){var Be=ne.changes[Re];if(B<Be.from.line)Be.from=en(Be.from.line+j,Be.from.ch),Be.to=en(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=fn(t,pe(t,p)):G=dr(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,tn(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 we=[];this.collapse(we),this.children=[new Do(we)],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,we=ge;we<G.lines.length;){var Re=new Do(G.lines.slice(we,we+=25));G.height-=Re.height,this.children.splice(++j,0,Re),Re.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=dr(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);cr(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;Yn(this.doc,j)||cr(j,j.height+G),B&&fi(B,function(){B.curOp.forceUpdate=!0,fl(B,j,G),Jt(B,"lineWidgetChanged",B,t,dr(j))})},Ye(ns);function fl(t,p,B){Br(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 we=ge.widgets||(ge.widgets=[]);if(G.insertAt==null?we.push(G):we.splice(Math.min(we.length-1,Math.max(0,G.insertAt)),0,G),G.line=ge,ne&&!Yn(t,ge)){var Re=Br(ge)<t.scrollTop;cr(ge,ge.height+Jr(G)),Re&&co(ne,G.height),ne.curOp.forceUpdate=!0}return!0}),ne&&Jt(ne,"lineWidgetAdded",ne,G,typeof p=="number"?p:dr(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),He(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],we=Ua(ge.markedSpans,this);t&&!this.collapsed?ka(t,dr(ge),"text"):t&&(we.to!=null&&(G=dr(ge)),we.from!=null&&(j=dr(ge))),ge.markedSpans=li(ge.markedSpans,we),we.from==null&&this.collapsed&&!Yn(this.doc,ge)&&t&&cr(ge,br(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var Re=0;Re<this.lines.length;++Re){var Be=an(this.lines[Re]),gt=Sn(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=en(p?ne:dr(ne),ge.from),t==-1))return B;if(ge.to!=null&&(j=en(p?ne:dr(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=dr(p.line),ge=mt(j,ne);if(ge&&(Fn(ge),j.curOp.selectionChanged=j.curOp.forceUpdate=!0),j.curOp.updateMaxLine=!0,!Yn(B.doc,G)&&B.height!=null){var we=B.height;B.height=null;var Re=Jr(B)-we;Re&&cr(G,G.height+Re)}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)}},Ye(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=On(p,B);if(j&&I(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(An(t,p.line,p,B,ne)||p.line!=B.line&&An(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 we=p.line,Re=t.cm,Be;if(t.iter(we,B.line+1,function(At){Re&&ne.collapsed&&!Re.options.lineWrapping&&an(At)==Re.display.maxLine&&(Be=!0),ne.collapsed&&we!=p.line&&cr(At,0),oi(At,new Ja(ne,we==p.line?p.ch:null,we==B.line?B.ch:null)),++we}),ne.collapsed&&t.iter(p.line,B.line+1,function(At){Yn(t,At)&&cr(At,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),Re){if(Be&&(Re.curOp.updateMaxLine=!0),ne.collapsed)Na(Re,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(Re,gt,"text");ne.atomic&&rl(Re.doc),Jt(Re,"markerAdded",Re,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)},Ye(Qo);function Ul(t,p,B,j,G){j=I(j),j.shared=!1;var ne=[Jo(t,p,B,j,G)],ge=ne[0],we=j.widgetNode;return Qa(t,function(Re){we&&(j.widgetNode=we.cloneNode(!0)),ne.push(Jo(Re,X(Re,p),X(Re,B),j,G));for(var Be=0;Be<Re.linked.length;++Be)if(Re.linked[Be].isParent)return;ge=$(ne)}),new Qo(ne,ge)}function pl(t){return t.findMarks(en(t.first,0),t.clipPos(en(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(On(ne,ge)){var we=Jo(t,ne,ge,j.primary,j.primary.type);j.markers.push(we),we.parent=j}}}function jl(t){for(var p=function(j){var G=t[j],ne=[G.primary.doc];Qa(G.primary.doc,function(Re){return ne.push(Re)});for(var ge=0;ge<G.markers.length;ge++){var we=G.markers[ge];he(ne,we.doc)==-1&&(we.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 hn("",null)])]),this.first=B,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=B;var ne=en(B,0);this.sel=Cr(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,Cr(ne),Te)};Ti.prototype=Oe(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=Zn(this,this.first,this.first+this.size);return t===!1?p:p.join(t||this.lineSeparator())},setValue:Xa(function(t){var p=en(this.first,0),B=this.first+this.size-1;zo(this,{from:p,to:en(B,fn(this,B).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Yi(this.cm,0,0),gi(this,Cr(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=lr(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(hr(this,t))return fn(this,t)},getLineNumber:function(t){return dr(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=fn(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"?en(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=lr(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=lr(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 we=p&&p!="end"&&Pi(this,j,p),Re=j.length-1;Re>=0;Re--)zo(this,j[Re]);we?tl(this,we):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(!hr(this,t))return null;if(p=t,t=fn(this,t),!t)return null}else if(p=dr(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 we=ge.index+ge[0].length;j[G]=ne.slice(0,ge.index)+(!ge.index||we==ne.length?"":" ")+ne.slice(we)||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=fn(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 we=0;we<ge.length;we++){var Re=ge[we];!(Re.to!=null&&G==t.line&&t.ch>=Re.to||Re.from==null&&G!=t.line||Re.from!=null&&G==p.line&&Re.from>=p.ch)&&(!B||B(Re.marker))&&j.push(Re.marker.parent||Re.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,en(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(Zn(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(Zn(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):Fe(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;Ce(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,we=function(){++ge==G&&Ha(p,function(){B=X(p.doc,B);var zt={from:B,to:B,text:p.doc.splitLines(ne.filter(function(Tn){return Tn!=null}).join(p.doc.lineSeparator())),origin:"paste"};zo(p.doc,zt),tl(p.doc,Cr(X(p.doc,B),X(p.doc,Zr(zt))))})()},Re=function(zt,Tn){if(p.options.allowDropFileTypes&&he(p.options.allowDropFileTypes,zt.type)==-1){we();return}var Bn=new FileReader;Bn.onerror=function(){return we()},Bn.onload=function(){var Qn=Bn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Qn)){we();return}ne[Tn]=Qn,we()},Bn.readAsText(zt)},Be=0;Be<j.length;Be++)Re(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 At;if(p.state.draggingText&&!p.state.draggingText.copy&&(At=p.listSelections()),Ko(p.doc,Cr(B,B)),At)for(var nn=0;nn<At.length;++nn)Xo(p.doc,"",At[nn].anchor,At[nn].head,"drag");p.replaceSelection(gt,"around","paste"),p.display.input.focus()}}catch(zt){}}}function gl(t,p){if(A&&(!t.state.draggingText||+new Date-ml<100)){Ue(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 we=p[ge];if(/^(cmd|meta|m)$/i.test(we))ne=!0;else if(/^a(lt)?$/i.test(we))B=!0;else if(/^(c|ctrl|control)$/i.test(we))j=!0;else if(/^s(hift)?$/i.test(we))G=!0;else throw new Error("Unrecognized modifier name: "+we)}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,we=void 0;ne==G.length-1?(we=G.join(" "),ge=j):(we=G.slice(0,ne+1).join(" "),ge="...");var Re=p[we];if(!Re)p[we]=ge;else if(Re!=ge)throw new Error("Inconsistent bindings for "+we)}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&&On(ne.from,$(j).to)<=0;){var ge=j.pop();if(On(ge.from,ne.from)<0){ne.from=ge.from;break}}j.push(ne)}fi(t,function(){for(var we=j.length-1;we>=0;we--)Xo(t.doc,"",j[we].from,j[we].to,"+delete");Xi(t)})}function Us(t,p,B){var j=Ae(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 en(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],we=G<0==(ge.level==1),Re=we?"after":"before",Be;if(ge.level>0||p.doc.direction=="rtl"){var gt=rt(p,B);Be=G<0?B.text.length-1:0;var At=Mt(p,gt,Be).top;Be=Je(function(nn){return Mt(p,gt,nn).top==At},G<0==(ge.level==1)?ge.from:ge.to-1,Be),Re=="before"&&(Be=Us(B,Be,1))}else Be=G<0?ge.to:ge.from;return new en(j,Be,Re)}}return new en(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=ft(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 we=function(yr,kr){return Us(p,yr instanceof en?yr.ch:yr,kr)},Re,Be=function(yr){return t.options.lineWrapping?(Re=Re||rt(t,p),pr(t,p,Re,yr)):{begin:0,end:p.text.length}},gt=Be(B.sticky=="before"?we(B,-1):B.ch);if(t.doc.direction=="rtl"||ge.level==1){var At=ge.level==1==j<0,nn=we(B,At?1:-1);if(nn!=null&&(At?nn<=ge.to&&nn<=gt.end:nn>=ge.from&&nn>=gt.begin)){var zt=At?"before":"after";return new en(B.line,nn,zt)}}var Tn=function(yr,kr,Er){for(var Xr=function(Va,vi){return vi?new en(B.line,we(Va,1),"before"):new en(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:we(Er.end,-1);if(ia.from<=wa&&wa<ia.to)return Xr(wa,ea);if(wa=ea?ia.from:we(ia.to,-1),Er.begin<=wa&&wa<Er.end)return Xr(wa,ea)}},Bn=Tn(ne+j,j,gt);if(Bn)return Bn;var Qn=j>0?gt.end:we(gt.begin,-1);return Qn!=null&&!(j>0&&Qn==p.text.length)&&(Bn=Tn(j>0?0:G.length-1,j,Be(Qn)),Bn)?Bn: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=fn(t.doc,p.head.line).text.length;return p.head.ch==B&&p.head.line<t.lastLine()?{from:p.head,to:en(p.head.line+1,0)}:{from:p.head,to:en(p.head.line,B)}}else return{from:p.from(),to:p.to()}})},deleteLine:function(t){return Zo(t,function(p){return{from:en(p.from().line,0),to:X(t.doc,en(p.to().line+1,0))}})},delLineLeft:function(t){return Zo(t,function(p){return{from:en(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(en(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(en(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")},be)},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")},be)},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},be)},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=fn(t.doc,G.line).text;if(ne){if(G.ch==ne.length&&(G=new en(G.line,G.ch-1)),G.ch>0)G=new en(G.line,G.ch+1),t.replaceRange(ne.charAt(G.ch-1)+ne.charAt(G.ch-2),en(G.line,G.ch-2),G,"+transpose");else if(G.line>t.doc.first){var ge=fn(t.doc,G.line-1).text;ge&&(G=new en(G.line,1),t.replaceRange(ne.charAt(0)+t.doc.lineSeparator()+ge.charAt(ge.length-1),en(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=fn(t.doc,p),j=an(B);return j!=B&&(p=dr(j)),Bs(!0,t,j,p,1)}function Ws(t,p){var B=fn(t.doc,p),j=Pn(B);return j!=B&&(p=dr(j)),Bs(!0,t,B,p,-1)}function yl(t,p){var B=Cs(t,p.line),j=fn(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 en(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)!=Se}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")&&(Ce(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&&m<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&&!it&&(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,Ce(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&&On(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=st(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):ze(t)==B.scroller&&Ce(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 we=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),we=ge(t,B)!=Se}finally{t.state.suppressEdits=!1}return we})}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&&Ct&&!t.isReadOnly()&&B=="single"&&(ge=ne.contains(p))>-1&&(On((ge=ne.ranges[ge]).from(),p)<0||p.xRel>0)&&(On(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",we),Bt(G.scroller,"dragstart",Re),Bt(G.scroller,"drop",ge),ne||(Ce(Be),j.addNew||_s(t.doc,B,null,null,j.extend),e&&!n||A&&m==9?setTimeout(function(){G.wrapper.ownerDocument.body.focus({preventScroll:!0}),G.input.focus()},20):G.input.focus())}),we=function(Be){ne=ne||Math.abs(p.clientX-Be.clientX)+Math.abs(p.clientY-Be.clientY)>=10},Re=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",we),je(G.scroller,"dragstart",Re),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(en(p.line,0),X(t.doc,en(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;Ce(p);var ge,we,Re=ne.sel,Be=Re.ranges;if(j.addNew&&!j.extend?(we=ne.sel.contains(B),we>-1?ge=Be[we]:ge=new Pa(B,B)):(ge=ne.sel.primary(),we=ne.sel.primIndex),j.unit=="rectangle")j.addNew||(ge=new Pa(B,B)),B=Aa(t,p,!0,!0),we=-1;else{var gt=Vs(t,B,j.unit);j.extend?ge=vs(ge,gt.anchor,gt.head,j.extend):ge=gt}j.addNew?we==-1?(we=Be.length,gi(ne,sa(t,Be.concat([ge]),we),{scroll:!1,origin:"*mouse"})):Be.length>1&&Be[we].empty()&&j.unit=="char"&&!j.extend?(gi(ne,sa(t,Be.slice(0,we).concat(Be.slice(we+1)),0),{scroll:!1,origin:"*mouse"}),Re=ne.sel):Ao(ne,we,ge,ce):(we=0,gi(ne,new hi([ge],0),ce),Re=ne.sel);var At=B;function nn(Er){if(On(At,Er)==0)return;if(At=Er,j.unit=="rectangle"){for(var Xr=[],ia=t.options.tabSize,ea=K(fn(ne,B.line).text,B.ch,ia),wa=K(fn(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=fn(ne,ti).text,ci=ye(Ui,Va,ia);Va==vi?Xr.push(new Pa(en(ti,ci),en(ti,ci))):Ui.length>ci&&Xr.push(new Pa(en(ti,ci),en(ti,ye(Ui,vi,ia))))}Xr.length||Xr.push(new Pa(B,B)),gi(ne,sa(t,Re.ranges.slice(0,we).concat(Xr),we),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Er)}else{var ji=ge,Ci=Vs(t,Er,j.unit),pi=ji.anchor,di;On(Ci.anchor,pi)>0?(di=Ci.head,pi=fr(ji.from(),Ci.anchor)):(di=Ci.anchor,pi=xr(ji.to(),Ci.head));var ii=Re.ranges.slice(0);ii[we]=$l(t,new Pa(X(ne,pi),di)),gi(ne,sa(t,ii,we),ce)}}var zt=G.wrapper.getBoundingClientRect(),Tn=0;function Bn(Er){var Xr=++Tn,ia=Aa(t,Er,!0,j.unit=="rectangle");if(!ia)return;if(On(ia,At)!=0){t.curOp.focus=V(),nn(ia);var ea=uo(G,ne);(ia.line>=ea.to||ia.line<ea.from)&&setTimeout(Ha(t,function(){Tn==Xr&&Bn(Er)}),150)}else{var wa=Er.clientY<zt.top?-20:Er.clientY>zt.bottom?20:0;wa&&setTimeout(Ha(t,function(){if(Tn!=Xr)return;G.scroller.scrollTop+=wa,Bn(Er)}),50)}}function Qn(Er){t.state.selectingText=!1,Tn=Infinity,Er&&(Ce(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||!st(Er)?Qn(Er):Bn(Er)}),kr=Ha(t,Qn);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=fn(t.doc,B.line);if(On(B,j)==0&&B.sticky==j.sticky)return p;var ne=_t(G);if(!ne)return p;var ge=ft(ne,B.ch,B.sticky),we=ne[ge];if(we.from!=B.ch&&we.to!=B.ch)return p;var Re=ge+(we.from==B.ch==(we.level!=1)?0:1);if(Re==0||Re==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=ft(ne,j.ch,j.sticky),At=gt-ge||(j.ch-B.ch)*(we.level==1?-1:1);gt==Re-1||gt==Re?Be=At<0:Be=At>0}var nn=ne[Re+(Be?-1:0)],zt=Be==(nn.level==1),Tn=zt?nn.from:nn.to,Bn=zt?"after":"before";return B.ch==Tn&&B.sticky==Bn?p:new Pa(new en(B.line,Tn,Bn),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(nn){return!1}if(G>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;j&&Ce(p);var ge=t.display,we=ge.lineDiv.getBoundingClientRect();if(ne>we.bottom||!He(t,B))return We(p);ne-=we.top-ge.viewOffset;for(var Re=0;Re<t.display.gutterSpecs.length;++Re){var Be=ge.gutters.childNodes[Re];if(Be&&Be.getBoundingClientRect().right>=G){var gt=Dr(t.doc,ne),At=t.display.gutterSpecs[Re];return Et(t,B,t,gt,At.className,p),We(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 He(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-"),Ur(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(we,Re,Be){Be!=$o&&ne(we,Re,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),Ur(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(Re){for(var Be=0;;){var gt=Re.text.indexOf(G,Be);if(gt==-1)break;Be=gt+G.length,ne.push(en(ge,gt))}ge++});for(var we=ne.length-1;we>=0;we--)Xo(j.doc,G,ne[we],en(ne[we].line,ne[we].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",ar,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),we=ne!=$o&&os(ne);we&&we.detach&&we.detach(j,ge),ge.attach&&ge.attach(j,we||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),Ur(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?I(p):{},I(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&&m<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 we=0;we<Y.length;++we)Y[we](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&&m<11?je(p.scroller,"dblclick",Ha(t,function(Re){if(Pt(t,Re))return;var Be=Aa(t,Re);if(!Be||Xs(t,Re)||Oa(t.display,Re))return;Ce(Re);var gt=t.findWordAt(Be);_s(t.doc,gt.anchor,gt.head)})):je(p.scroller,"dblclick",function(Re){return Pt(t,Re)||Ce(Re)}),je(p.scroller,"contextmenu",function(Re){return Ol(t,Re)}),je(p.input.getField(),"contextmenu",function(Re){p.scroller.contains(Re.target)||Ol(t,Re)});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(Re){if(Re.touches.length!=1)return!1;var Be=Re.touches[0];return Be.radiusX<=1&&Be.radiusY<=1}function ge(Re,Be){if(Be.left==null)return!0;var gt=Be.left-Re.left,At=Be.top-Re.top;return gt*gt+At*At>20*20}je(p.scroller,"touchstart",function(Re){if(!Pt(t,Re)&&!ne(Re)&&!Xs(t,Re)){p.input.ensurePolled(),clearTimeout(B);var Be=+new Date;p.activeTouch={start:Be,moved:!1,prev:Be-j.end<=300?j:null},Re.touches.length==1&&(p.activeTouch.left=Re.touches[0].pageX,p.activeTouch.top=Re.touches[0].pageY)}}),je(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),je(p.scroller,"touchend",function(Re){var Be=p.activeTouch;if(Be&&!Oa(p,Re)&&Be.left!=null&&!Be.moved&&new Date-Be.start<300){var gt=t.coordsChar(p.activeTouch,"page"),At;!Be.prev||ge(Be,Be.prev)?At=new Pa(gt,gt):!Be.prev.prev||ge(Be,Be.prev.prev)?At=t.findWordAt(gt):At=new Pa(en(gt.line,0),X(t.doc,en(gt.line+1,0))),t.setSelection(At.anchor,At.head),t.focus(),Ce(Re)}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(Re){return mo(t,Re)}),je(p.scroller,"DOMMouseScroll",function(Re){return mo(t,Re)}),je(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(Re){Pt(t,Re)||Ue(Re)},over:function(Re){Pt(t,Re)||(Fl(t,Re),Ue(Re))},start:function(Re){return gl(t,Re)},drop:Ha(t,Bl),leave:function(Re){Pt(t,Re)||Ls(t)}};var we=p.input.getField();je(we,"keyup",function(Re){return Cl.call(t,Re)}),je(we,"keydown",Ha(t,xl)),je(we,"keypress",Ha(t,Sl)),je(we,"focus",function(Re){return Ii(t,Re)}),je(we,"blur",function(Re){return no(t,Re)})}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=Mn(t,p).state:B="prev");var ge=t.options.tabSize,we=fn(G,p),Re=K(we.text,null,ge);we.stateAfter&&(we.stateAfter=null);var Be=we.text.match(/^\s*/)[0],gt;if(!j&&!/\S/.test(we.text))gt=0,B="not";else if(B=="smart"&&(gt=G.mode.indent(ne,we.text.slice(Be.length),we.text),gt==Se||gt>150)){if(!j)return;B="prev"}B=="prev"?p>G.first?gt=K(fn(G,p-1).text,null,ge):gt=0:B=="add"?gt=Re+t.options.indentUnit:B=="subtract"?gt=Re-t.options.indentUnit:typeof B=="number"&&(gt=Re+B),gt=Math.max(0,gt);var At="",nn=0;if(t.options.indentWithTabs)for(var zt=Math.floor(gt/ge);zt;--zt)nn+=ge,At+=" ";if(nn<gt&&(At+=se(gt-nn)),At!=Be)return Xo(G,At,en(p,0),en(p,Be.length),"+input"),we.stateAfter=null,!0;for(var Tn=0;Tn<G.sel.ranges.length;Tn++){var Bn=G.sel.ranges[Tn];if(Bn.head.line==p&&Bn.head.ch<Be.length){var Qn=en(p,Be.length);Ao(G,Tn,new Pa(Qn,Qn));break}}}var ie=null;function Ee(t){ie=t}function Ne(t,p,B,j,G){var ne=t.doc;t.display.shift=!1,j||(j=ne.sel);var ge=+new Date-200,we=G=="paste"||t.state.pasteIncoming>ge,Re=Fe(p),Be=null;if(we&&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 Re.length==j.ranges.length&&t.options.pasteLinesPerSelection&&(Be=me(Re,function(yr){return[yr]}));for(var At=t.curOp.updateInput,nn=j.ranges.length-1;nn>=0;nn--){var zt=j.ranges[nn],Tn=zt.from(),Bn=zt.to();zt.empty()&&(B&&B>0?Tn=en(Tn.line,Tn.ch-B):t.state.overwrite&&!we?Bn=en(Bn.line,Math.min(fn(ne,Bn.line).text.length,Bn.ch+$(Re).length)):we&&ie&&ie.lineWise&&ie.text.join(`
|
|
|
`)==Re.join(`
|
|
|
`)&&(Tn=Bn=en(Tn.line,0)));var Qn={from:Tn,to:Bn,text:Be?Be[nn%Be.length]:Re,origin:G||(we?"paste":t.state.cutIncoming>ge?"cut":"+input")};zo(t.doc,Qn),Jt(t,"inputRead",t,Qn)}p&&!we&&Ke(t,p),Xi(t),t.curOp.updateInput<2&&(t.curOp.updateInput=At),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function ke(t,p){var B=t.clipboardData&&t.clipboardData.getData("Text");if(B)return t.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&fi(p,function(){return Ne(p,B,0,null,"paste")}),!0}function Ke(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 we=0;we<ne.electricChars.length;we++)if(p.indexOf(ne.electricChars.charAt(we))>-1){ge=Z(t,G.head.line,"smart");break}}else ne.electricInput&&(ne.electricInput.test(fn(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 Ge(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:en(G,0),head:en(G+1,0)};B.push(ne),p.push(t.getRange(ne.anchor,ne.head))}return{text:p,ranges:B}}function xt(t,p,B,j){t.setAttribute("autocorrect",B?"":"off"),t.setAttribute("autocapitalize",j?"":"off"),t.setAttribute("spellcheck",!!p)}function Ut(){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"),xt(t),p}function Ft(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"),hr(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 we=G[ge];if(we.empty())we.head.line>ne&&(Z(this,we.head.line,j,!0),ne=we.head.line,ge==this.doc.sel.primIndex&&Xi(this));else{var Re=we.from(),Be=we.to(),gt=Math.max(ne,Re.line);ne=Math.min(this.lastLine(),Be.line-(Be.ch?0:1))+1;for(var At=gt;At<ne;++At)Z(this,At,j);var nn=this.doc.sel.ranges;Re.ch==0&&G.length==nn.length&&nn[ge].from().ch>0&&Ao(this.doc,ge,new Pa(Re,nn[ge].to()),Te)}}}),getTokenAt:function(j,G){return jr(this,j,G)},getLineTokens:function(j,G){return jr(this,en(j),G,!0)},getTokenTypeAt:function(j){j=X(this.doc,j);var G=Zt(this,fn(this.doc,j.line)),ne=0,ge=(G.length-1)/2,we=j.ch,Re;if(we==0)Re=G[2];else for(;;){var Be=ne+ge>>1;if((Be?G[Be*2-1]:0)>=we)ge=Be;else if(G[Be*2+1]<we)ne=Be+1;else{Re=G[Be*2+2];break}}var gt=Re?Re.indexOf("overlay "):-1;return gt<0?Re:gt==0?null:Re.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],we=this.getModeAt(j);if(typeof we[G]=="string")ge[we[G]]&&ne.push(ge[we[G]]);else if(we[G])for(var Re=0;Re<we[G].length;Re++){var Be=ge[we[G][Re]];Be&&ne.push(Be)}else we.helperType&&ge[we.helperType]?ne.push(ge[we.helperType]):ge[we.name]&&ne.push(ge[we.name]);for(var gt=0;gt<ge._global.length;gt++){var At=ge._global[gt];At.pred(we,this)&&he(ne,At.val)==-1&&ne.push(At.val)}return ne},getStateAfter:function(j,G){var ne=this.doc;return j=pe(ne,j==null?ne.first+ne.size-1:j),Mn(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(),Gn(this,ne,G||"page")},charCoords:function(j,G){return wr(this,X(this.doc,j),G||"page")},coordsChar:function(j,G){return j=zn(this,j,G||"page"),Vr(this,j.left,j.top)},lineAtHeight:function(j,G){return j=zn(this,{top:j,left:0},G||"page").top,Dr(this.doc,j+this.display.viewOffset)},heightAtLine:function(j,G,ne){var ge=!1,we;if(typeof j=="number"){var Re=this.doc.first+this.doc.size-1;j<this.doc.first?j=this.doc.first:j>Re&&(j=Re,ge=!0),we=fn(this.doc,j)}else we=j;return ta(this,we,{top:0,left:0},G||"page",ne||ge).top+(ge?this.doc.height-Br(we):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,we){var Re=this.display;j=Gn(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),Re.sizer.appendChild(G),ge=="over")Be=j.top;else if(ge=="above"||ge=="near"){var At=Math.max(Re.wrapper.clientHeight,this.doc.height),nn=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||j.bottom+G.offsetHeight>At)&&j.top>G.offsetHeight?Be=j.top-G.offsetHeight:j.bottom+G.offsetHeight<=At&&(Be=j.bottom),gt+G.offsetWidth>nn&&(gt=nn-G.offsetWidth)}G.style.top=Be+"px",G.style.left=G.style.right="",we=="right"?(gt=Re.sizer.clientWidth-G.offsetWidth,G.style.right="0px"):(we=="left"?gt=0:we=="middle"&&(gt=(Re.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){Ke(this,j)}),findPosH:function(j,G,ne,ge){var we=1;G<0&&(we=-1,G=-G);for(var Re=X(this.doc,j),Be=0;Be<G&&!(Re=Tt(this.doc,Re,we,ne,ge),Re.hitSide);++Be);return Re},moveH:ri(function(j,G){var ne=this;this.extendSelectionsBy(function(ge){return ne.display.shift||ne.doc.extend||ge.empty()?Tt(ne.doc,ge.head,j,G,ne.options.rtlMoveVisually):j<0?ge.from():ge.to()},be)}),deleteH:ri(function(j,G){var ne=this.doc.sel,ge=this.doc;ne.somethingSelected()?ge.replaceSelection("",null,"+delete"):Zo(this,function(we){var Re=Tt(ge,we.head,j,G,!1);return j<0?{from:Re,to:we.head}:{from:we.head,to:Re}})}),findPosV:function(j,G,ne,ge){var we=1,Re=ge;G<0&&(we=-1,G=-G);for(var Be=X(this.doc,j),gt=0;gt<G;++gt){var At=Gn(this,Be,"div");if(Re==null?Re=At.left:At.left=Re,Be=St(this,At,we,ne),Be.hitSide)break}return Be},moveV:ri(function(j,G){var ne=this,ge=this.doc,we=[],Re=!this.display.shift&&!ge.extend&&ge.sel.somethingSelected();if(ge.extendSelectionsBy(function(gt){if(Re)return j<0?gt.from():gt.to();var At=Gn(ne,gt.head,"div");gt.goalColumn!=null&&(At.left=gt.goalColumn),we.push(At.left);var nn=St(ne,At,j,G);return G=="page"&>==ge.sel.primary()&&co(ne,wr(ne,nn,"div").top-At.top),nn},be),we.length)for(var Be=0;Be<ge.sel.ranges.length;Be++)ge.sel.ranges[Be].goalColumn=we[Be]}),findWordAt:function(j){var G=this.doc,ne=fn(G,j.line).text,ge=j.ch,we=j.ch;if(ne){var Re=this.getHelper(j,"wordChars");(j.sticky=="before"||we==ne.length)&&ge?--ge:++we;for(var Be=ne.charAt(ge),gt=Q(Be,Re)?function(At){return Q(At,Re)}:/\s/.test(Be)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!Q(At)};ge>0&>(ne.charAt(ge-1));)--ge;for(;we<ne.length&>(ne.charAt(we));)++we}return new Pa(en(j.line,ge),en(j.line,we))},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:nt(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:en(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(Re){return typeof Re=="number"||/^\d+$/.test(String(Re))?Re+"px":Re};j!=null&&(this.display.wrapper.style.width=ge(j)),G!=null&&(this.display.wrapper.style.height=ge(G)),this.options.lineWrapping&&Cn(this);var we=this.display.viewFrom;this.doc.iter(we,this.display.viewTo,function(Re){if(Re.widgets){for(var Be=0;Be<Re.widgets.length;Be++)if(Re.widgets[Be].noHScroll){ka(ne,we,"widget");break}}++we}),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,Ur(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),Ur(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}},Ye(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 Tt(t,p,B,j,G){var ne=p,ge=B,we=fn(t,p.line),Re=G&&t.direction=="rtl"?-B:B;function Be(){var kr=p.line+Re;return kr<t.first||kr>=t.first+t.size?!1:(p=new en(kr,p.ch,p.sticky),we=fn(t,kr))}function gt(kr){var Er;if(j=="codepoint"){var Xr=we.text.charCodeAt(p.ch+(j>0?0:-1));isNaN(Xr)?Er=null:Er=new en(p.line,Math.max(0,Math.min(we.text.length,p.ch+B*(Xr>=55296&&Xr<56320?2:1))),-B)}else G?Er=Fs(t.cm,we,p,B):Er=js(we,p,B);if(Er==null)if(!kr&&Be())p=Bs(G,t.cm,we,p.line,Re);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 At=null,nn=j=="group",zt=t.cm&&t.cm.getHelper(p,"wordChars"),Tn=!0;!(B<0&&!gt(!Tn));Tn=!1){var Bn=we.text.charAt(p.ch)||`
|
|
|
`,Qn=Q(Bn,zt)?"w":nn&&Bn==`
|
|
|
`?"n":!nn||/\s/.test(Bn)?null:"p";if(nn&&!Tn&&!Qn&&(Qn="s"),At&&At!=Qn){B<0&&(B=1,gt(),p.sticky="after");break}if(Qn&&(At=Qn),B>0&&!gt(!Tn))break}var yr=bs(t,p,ne,ge,!0);return Fr(ne,yr)&&(yr.hitSide=!0),yr}function St(t,p,B,j){var G=t.doc,ne=p.left,ge;if(j=="page"){var we=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(we-.5*br(t.display),3);ge=(B>0?p.bottom:p.top)+B*Re}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;xt(G,j.options.spellcheck,j.options.autocorrect,j.options.autocapitalize);function ne(we){for(var Re=we.target;Re;Re=Re.parentNode){if(Re==G)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}je(G,"paste",function(we){if(!ne(we)||Pt(j,we)||ke(we,j))return;m<=11&&setTimeout(Ha(j,function(){return p.updateFromDOM()}),20)}),je(G,"compositionstart",function(we){p.composing={data:we.data,done:!1}}),je(G,"compositionupdate",function(we){p.composing||(p.composing={data:we.data,done:!1})}),je(G,"compositionend",function(we){p.composing&&(we.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(we){if(!ne(we)||Pt(j,we))return;if(j.somethingSelected())Ee({lineWise:!1,text:j.getSelections()}),we.type=="cut"&&j.replaceSelection("",null,"cut");else if(j.options.lineWiseCopyCut){var Re=Ge(j);Ee({lineWise:!0,text:Re.text}),we.type=="cut"&&j.operation(function(){j.setSelections(Re.ranges,0,Te),j.replaceSelection("",null,"cut")})}else return;if(we.clipboardData){we.clipboardData.clearData();var Be=ie.text.join(`
|
|
|
`);if(we.clipboardData.setData("Text",Be),we.clipboardData.getData("Text")==Be){we.preventDefault();return}}var gt=Ut(),At=gt.firstChild;j.display.lineSpace.insertBefore(gt,j.display.lineSpace.firstChild),At.value=ie.text.join(`
|
|
|
`);var nn=document.activeElement;W(At),setTimeout(function(){j.display.lineSpace.removeChild(gt),nn.focus(),nn==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&&On(fr(ne,ge),j)==0&&On(xr(ne,ge),G)==0)return;var we=p.display.view,Re=j.line>=p.display.viewFrom&&mn(p,j)||{node:we[0].measure.map[2],offset:0},Be=G.line<p.display.viewTo&&mn(p,G);if(!Be){var gt=we[we.length-1].measure,At=gt.maps?gt.maps[gt.maps.length-1]:gt.map;Be={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!Re||!Be){t.removeAllRanges();return}var nn=t.rangeCount&&t.getRangeAt(0),zt;try{zt=L(Re.node,Re.offset,Be.offset,Be.node)}catch(Tn){}zt&&(!O&&p.state.focused?(t.collapse(Re.node,Re.offset),zt.collapsed||(t.removeAllRanges(),t.addRange(zt))):(t.removeAllRanges(),t.addRange(zt)),nn&&t.anchorNode==null?t.addRange(nn):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&&sr(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,Cr(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=en(j.line-1,fn(t.doc,j.line-1).length)),G.ch==fn(t.doc,G.line).text.length&&G.line<t.lastLine()&&(G=en(G.line+1,0)),j.line<p.viewFrom||G.line>p.viewTo-1)return!1;var ne,ge,we;j.line==p.viewFrom||(ne=ga(t,j.line))==0?(ge=dr(p.view[0].line),we=p.view[0].node):(ge=dr(p.view[ne].line),we=p.view[ne-1].node.nextSibling);var Re=ga(t,G.line),Be,gt;if(Re==p.view.length-1?(Be=p.viewTo-1,gt=p.lineDiv.lastChild):(Be=dr(p.view[Re+1].line)-1,gt=p.view[Re+1].node.previousSibling),!we)return!1;for(var At=t.doc.splitLines(Nr(t,we,gt,ge,Be)),nn=lr(t.doc,en(ge,0),en(Be,fn(t.doc,Be).text.length));At.length>1&&nn.length>1;)if($(At)==$(nn))At.pop(),nn.pop(),Be--;else if(At[0]==nn[0])At.shift(),nn.shift(),ge++;else break;for(var zt=0,Tn=0,Bn=At[0],Qn=nn[0],yr=Math.min(Bn.length,Qn.length);zt<yr&&Bn.charCodeAt(zt)==Qn.charCodeAt(zt);)++zt;for(var kr=$(At),Er=$(nn),Xr=Math.min(kr.length-(At.length==1?zt:0),Er.length-(nn.length==1?zt:0));Tn<Xr&&kr.charCodeAt(kr.length-Tn-1)==Er.charCodeAt(Er.length-Tn-1);)++Tn;if(At.length==1&&nn.length==1&&ge==j.line)for(;zt&&zt>j.ch&&kr.charCodeAt(kr.length-Tn-1)==Er.charCodeAt(Er.length-Tn-1);)zt--,Tn++;At[At.length-1]=kr.slice(0,kr.length-Tn).replace(/^\u200b+/,""),At[0]=At[0].slice(zt).replace(/\u200b+$/,"");var ia=en(ge,zt),ea=en(Be,nn.length?$(nn).length-Tn:0);if(At.length>1||At[0]||On(ia,ea))return Xo(t.doc,At,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,Ne)(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 mn(t,p){var B=mt(t,p.line);if(!B||B.hidden)return null;var j=fn(t.doc,p.line),G=Ie(B,j,p.line),ne=_t(j,t.doc.direction),ge="left";if(ne){var we=ft(ne,p.ch);ge=we%2?"right":"left"}var Re=pn(G.map,p.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function sr(t){for(var p=t;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function gr(t,p){return p&&(t.bad=!0),t}function Nr(t,p,B,j,G){var ne="",ge=!1,we=t.doc.lineSeparator(),Re=!1;function Be(zt){return function(Tn){return Tn.id==zt}}function gt(){ge&&(ne+=we,Re&&(ne+=we),ge=Re=!1)}function At(zt){zt&&(gt(),ne+=zt)}function nn(zt){if(zt.nodeType==1){var Tn=zt.getAttribute("cm-text");if(Tn){At(Tn);return}var Bn=zt.getAttribute("cm-marker"),Qn;if(Bn){var yr=t.findMarks(en(j,0),en(G+1,0),Be(+Bn));yr.length&&(Qn=yr[0].find(0))&&At(lr(t.doc,Qn.from,Qn.to).join(we));return}if(zt.getAttribute("contenteditable")=="false")return;var kr=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;kr&>();for(var Er=0;Er<zt.childNodes.length;Er++)nn(zt.childNodes[Er]);/^(pre|p)$/i.test(zt.nodeName)&&(Re=!0),kr&&(ge=!0)}else zt.nodeType==3&&At(zt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(nn(p),p==B);)p=p.nextSibling,Re=!1;return ne}function Gr(t,p,B){var j;if(p==t.display.lineDiv){if(j=t.display.lineDiv.childNodes[B],!j)return gr(t.clipPos(en(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 ra(ne,p,B)}}function ra(t,p,B){var j=t.text.firstChild,G=!1;if(!p||!N(j,p))return gr(en(dr(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 gr(en(dr(ne),ne.text.length),G)}var ge=p.nodeType==3?p:null,we=p;for(!ge&&p.childNodes.length==1&&p.firstChild.nodeType==3&&(ge=p.firstChild,B&&(B=ge.nodeValue.length));we.parentNode!=j;)we=we.parentNode;var Re=t.measure,Be=Re.maps;function gt(Qn,yr,kr){for(var Er=-1;Er<(Be?Be.length:0);Er++)for(var Xr=Er<0?Re.map:Be[Er],ia=0;ia<Xr.length;ia+=3){var ea=Xr[ia+2];if(ea==Qn||ea==yr){var wa=dr(Er<0?t.line:t.rest[Er]),Va=Xr[ia]+kr;return(kr<0||ea!=Qn)&&(Va=Xr[ia+(kr?1:0)]),en(wa,Va)}}}var At=gt(ge,we,B);if(At)return gr(At,G);for(var nn=we.nextSibling,zt=ge?ge.nodeValue.length-B:0;nn;nn=nn.nextSibling){if(At=gt(nn,nn.firstChild,0),At)return gr(en(At.line,At.ch-zt),G);zt+=nn.textContent.length}for(var Tn=we.previousSibling,Bn=B;Tn;Tn=Tn.previousSibling){if(At=gt(Tn,Tn.firstChild,-1),At)return gr(en(At.line,At.ch+Bn),G);Bn+=Tn.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&&m>=9&&p.hasSelection&&(p.hasSelection=null),B.poll()}),je(G,"paste",function(ge){if(Pt(j,ge)||ke(ge,j))return;j.state.pasteIncoming=+new Date,B.fastPoll()});function ne(ge){if(Pt(j,ge))return;if(j.somethingSelected())Ee({lineWise:!1,text:j.getSelections()});else if(j.options.lineWiseCopyCut){var we=Ge(j);Ee({lineWise:!0,text:we.text}),ge.type=="cut"?j.setSelections(we.ranges,null,Te):(B.prevInput="",G.value=we.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 we=new Event("paste");we.clipboardData=ge.clipboardData,G.dispatchEvent(we)}),je(t.lineSpace,"selectstart",function(ge){Oa(t,ge)||Ce(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=Ut(),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=Gn(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&&m>=9&&(this.hasSelection=B)}else t||(this.prevInput=this.textarea.value="",A&&m>=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||at(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&&m>=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,we=Math.min(j.length,G.length);ge<we&&j.charCodeAt(ge)==G.charCodeAt(ge);)++ge;return fi(p,function(){Ne(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&&m>=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 we=B.options.resetSelectionOnContextMenu;we&&B.doc.sel.contains(ne)==-1&&Ha(B,gi)(B.doc,Cr(ne),Te);var Re=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 At;e&&(At=window.scrollY),j.input.focus(),e&&window.scrollTo(null,At),j.input.reset(),B.somethingSelected()||(G.value=p.prevInput=" "),p.contextMenuPending=zt,j.selForContextMenu=B.doc.sel,clearTimeout(j.detectingSelectAll);function nn(){if(G.selectionStart!=null){var Bn=B.somethingSelected(),Qn="\u200B"+(Bn?G.value:"");G.value="\u21DA",G.value=Qn,p.prevInput=Bn?"":"\u200B",G.selectionStart=1,G.selectionEnd=Qn.length,j.selForContextMenu=B.doc.sel}}function zt(){if(p.contextMenuPending!=zt)return;if(p.contextMenuPending=!1,p.wrapper.style.cssText=Be,G.style.cssText=Re,A&&m<9&&j.scrollbars.setScrollTop(j.scroller.scrollTop=ge),G.selectionStart!=null){(!A||A&&m<9)&&nn();var Bn=0,Qn=function(){j.selForContextMenu==B.doc.sel&&G.selectionStart==0&&G.selectionEnd>0&&p.prevInput=="\u200B"?Ha(B,ol)(B):Bn++<10?j.detectingSelectAll=setTimeout(Qn,500):(j.selForContextMenu=null,j.input.reset())};j.detectingSelectAll=setTimeout(Qn,200)}}if(A&&m>=9&&nn(),P){Ue(t);var Tn=function(){Bt(window,"mouseup",Tn),setTimeout(zt,20)};je(window,"mouseup",Tn)}else setTimeout(zt,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?I(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=we.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(Re){}}p.finishInit=function(Re){Re.save=j,Re.getTextArea=function(){return t},Re.toTextArea=function(){Re.toTextArea=isNaN,j(),t.parentNode.removeChild(Re.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 we=Ya(function(Re){return t.parentNode.insertBefore(Re,t.nextSibling)},p);return we}function Ra(t){t.off=Bt,t.on=je,t.wheelEventPixels=Hi,t.Doc=Ti,t.splitLines=Fe,t.countColumn=K,t.findColumn=ye,t.isWordChar=te,t.Pass=Se,t.signal=Et,t.Line=hn,t.changeEnd=Zr,t.scrollbarModel=xo,t.Pos=en,t.cmpPos=On,t.modes=pt,t.mimeModes=bt,t.resolveMode=ct,t.getMode=Nt,t.modeExtensions=jt,t.extendMode=on,t.copyState=vn,t.startState=Kn,t.innerMode=Wn,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=Hn,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=Ce,t.e_stopPropagation=Le,t.e_stop=Ue,t.addClass=H,t.contains=N,t.rmClass=x,t.keyNames=Ro}eu(Ya),Ft(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 Ye(Ti),Ya.inputStyles={textarea:Hr,contenteditable:kt},Ya.defineMode=function(t){!Ya.defaults.mode&&t!="null"&&(Ya.defaults.mode=t),Dt.apply(this,arguments)},Ya.defineMIME=It,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"),g=o("PpiC"),O=o("q1tI"),b=o.n(O),y=o("EkPF"),C=o.n(y),A=o("miYZ"),m=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 hn,Dn,tn=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.shixunsDetail,ar=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),qn=Object(w.h)(),Rr=Object(O.useRef)(""),Ir=Object(w.i)(),Jn=In.title,Ar=In.base_info_warning,vr=In.challenges_warning,zr=In.service_warning,Lr=In.repository_warning,$r=In.mirror_warning;Object(O.useEffect)(function(){var ur;Rr.current=(ur=qn.pathname.split("/"))===null||ur===void 0?void 0:ur[2],_n({type:"practiceSetting/setParams",payload:{id:Rr.current}}),_n({type:"practiceSetting/getCommonData",payload:{id:Rr.current}})},[qn.pathname]),Object(O.useEffect)(function(){return Object(c.X)(Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(c.X)()}});var nr=function(){var ur=Object(a.a)(n.a.mark(function ir(){return n.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Gt();case 2:E.d.push("/shixuns/".concat(Rr.current,"/challenges"));case 3:case"end":return or.stop()}},ir)}));return function(){return ur.apply(this,arguments)}}(),Gt=function(){return new Promise(function(ir,qr){var or;In!=null&&(or=In.sideBar)!==null&&or!==void 0&&or.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(){_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),ir()},onCancel:function(){qr()}}):ir()})},$t=function(ir){var qr;if(ir===(In==null?void 0:In.sideBar.tabsActive))return;var or=function(){E.d.push("/shixuns/".concat(Rr.current,"/edit?tabId=").concat(ir)),_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:ir,selectPath:"",confirmLeave:!1}})};In!=null&&(qr=In.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(){or()}}):or()},Jt=function ur(ir){var qr;ir=(qr=ir)!==null&&qr!==void 0&&qr.includes(".json")?ir:"".concat(ir,".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 or=Object(a.a)(n.a.mark(function Yr(){var _r,Sr;return n.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(u.a)("/api"+ir,{method:"get"});case 2:if(_r=Jr.sent,_r){Jr.next=5;break}return Jr.abrupt("return");case 5:return m.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(Sr=Jr.sent,!(Sr!=null&&Sr.game_identifier)){Jr.next=12;break}return Object(c.S)("/tasks/".concat(Sr.game_identifier)),Jr.abrupt("return");case 12:(Sr==null?void 0:Sr.status)===2?ur(Sr==null?void 0:Sr.message):(Sr==null?void 0:Sr.status)===3&&Xn(Sr==null?void 0:Sr.message);case 13:case"end":return Jr.stop()}},Yr)}));function da(){return or.apply(this,arguments)}return da}()})},Xn=function(ir){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",ir,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},$n=function(){var ur=Object(a.a)(n.a.mark(function ir(qr,or){var da,Yr,_r;return n.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Gt();case 2:if(Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((da=Un.detail)!==null&&da!==void 0&&da.is_jupyter||(Yr=Un.detail)!==null&&Yr!==void 0&&Yr.is_jupyter_lab)){Kr.next=6;break}return _n({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(_n({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!or){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,_n({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(_r!=null&&_r.game_identifier||_r!=null&&_r.identifier)){Kr.next=21;break}return Object(c.S)(or?"/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&&Xn(_r==null?void 0:_r.message);case 22:case"end":return Kr.stop()}},ir)}));return function(qr,or){return ur.apply(this,arguments)}}(),Ln=function(){var ur=Object(a.a)(n.a.mark(function ir(){return n.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Gt();case 2:_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return or.stop()}},ir)}));return function(){return ur.apply(this,arguments)}}(),rr=function(ir){var qr={borderBottomColor:(In==null?void 0:In.sideBar.tabsActive)===ir?"#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:nr,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:r.a.edit},Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),b.a.createElement("i",{onClick:Ln,className:"icon iconfont icon-xiugai1"})),b.a.createElement("aside",{className:r.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:rr("information"),className:r.a.clickWarp,onClick:function(){return $t("information")}},Ar?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:rr("warehouse"),className:r.a.clickWarp,onClick:function(){return $t("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"})),(Un==null?void 0:Un.detail)&&!(Un!=null&&(hn=Un.detail)!==null&&hn!==void 0&&hn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("level"),className:r.a.clickWarp,onClick:function(){return $t("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"})),(Un==null?void 0:Un.detail)&&(Un==null||((Dn=Un.detail)===null||Dn===void 0)?void 0:Dn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("service"),className:r.a.clickWarp,onClick:function(){return $t("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:rr("environment"),className:r.a.clickWarp,onClick:function(){return $t("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 $n(Rr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},P=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.practiceSetting,tn=Sn.shixunsDetail;return{globalSetting:hn,loading:Yt,practiceSetting:Dn,shixunsDetail:tn}})(_),R=o("sRBo"),x=o("kaz8"),S=o("14J3"),v=o("BMrR"),T=o("jCWc"),U=o("kPKH"),L=o("DZo9"),N=o("8z0m"),V=o("6UJt"),H=o("DFOY"),D=o("5NDa"),W=o("5rEg"),F=o("+L6B"),I=o("2/Rp"),K=o("k1fw"),ee=o("y8nQ"),he=o("Vl3Y"),de=o("tJVT"),Se=o("h/E3"),Te=o.n(Se),ce=o("Ot1p"),be=o("oBTY"),ye=o("+Xk9"),ue=o.n(ye),se=o("FTkQ"),$=o.n(se),me=function(Yt){var hn=Yt.InputRight,Dn=Yt.value,tn=Dn===void 0?[]:Dn,wn=Yt.onChange,_n=Object(g.a)(Yt,["InputRight","value","onChange"]),In=Object(O.useState)(),Un=Object(de.a)(In,2),ar=Un[0],qn=Un[1],Rr=function(Ar){var vr=tn.filter(function(zr,Lr){return Lr!==Ar});wn(vr)},Ir=function(Ar){if(Ar.preventDefault(),!ar)return;if(tn.findIndex(function(vr){return vr.name===ar})>-1){m.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}wn([].concat(Object(be.a)(tn),[{id:null,name:ar}])),qn(null)};return b.a.createElement("div",null,b.a.createElement(W.a,Object(M.a)({bordered:!1,style:{width:600},value:ar,onChange:function(Ar){return qn(Ar.target.value)},onPressEnter:Ir,onBlur:Ir},_n)),hn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},tn==null?void 0:tn.map(function(Jn,Ar){return b.a.createElement("div",{key:Ar,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},Jn.name),b.a.createElement("img",{src:$.a,className:ue.a.s2,onClick:function(){return Rr(Ar)}}))})))},re=me,ae=o("LvDl"),Oe=o("m3rI"),le=o("hW5Z"),te=o.n(le),Q=function(Yt){var hn=Yt.dispatch,Dn=Yt.onCancel,tn=Yt.onSave,wn=Yt.loading,_n=wn===void 0?!1:wn;return b.a.createElement("div",{className:te.a.complete},b.a.createElement("div",{onClick:Dn,className:te.a.cancel},"\u53D6\u6D88"),b.a.createElement(I.a,{type:"primary",loading:_n,onClick:tn,className:te.a.save},"\u4FDD\u5B58"))},J=Object(E.a)()(Q),ve=o("UqFu"),_e=o("z7Xi"),Ae=o("jN4g"),Je=function(Yt){var hn,Dn,tn=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.problemset,ar=Yt.shixunsDetail,qn=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Rr=he.a.useForm(),Ir=Object(de.a)(Rr,1),Jn=Ir[0],Ar=Object(O.useState)({}),vr=Object(de.a)(Ar,2),zr=vr[0],Lr=vr[1],$r=Object(O.useState)(!1),nr=Object(de.a)($r,2),Gt=nr[0],$t=nr[1],Jt=Object(O.useState)(!1),Xn=Object(de.a)(Jt,2),$n=Xn[0],Ln=Xn[1],rr=Object(O.useState)(""),ur=Object(de.a)(rr,2),ir=ur[0],qr=ur[1],or=Object(O.useState)(""),da=Object(de.a)(or,2),Yr=da[0],_r=da[1],Sr=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=In.id;Object(O.useEffect)(function(){if(!_a)return;dt()},[_a]),Object(O.useEffect)(function(){return JSON.stringify(zr)!=="{}"&&Ze(),function(){clearTimeout(Jr.current)}},[zr,ir,Yr]);var Ze=function(){clearTimeout(Jr.current),Jr.current=setTimeout(function(){!Object(ae.isEqual)(zr,Sr.current)||ir!==Kr.current||Yr!==Kr.current?_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},dt=function(){var dn=Object(a.a)(n.a.mark(function cn(){var Fn,Cn,Ur,Pr,Qr,Wr,ta,zn,wr;return n.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return _n({type:"problemset/getEditDisciplines",payload:{source:"all_shixun"}}),bn.next=3,Object(u.a)("/api/shixuns/".concat(_a,"/edit_base_info.json"),{method:"get"});case 3:Fn=bn.sent,Fn.status===0&&(zn=Object(K.a)(Object(K.a)({},Fn.data),{},{description:Object(ve.a)(Fn.data.description)}),wr={description:zn.description,shixun_tags:zn.shixun_tags,name:zn.name,course:(zn==null||((Cn=zn.disciplines)===null||Cn===void 0)?void 0:Cn.length)>0?[zn==null||((Ur=zn.disciplines)===null||Ur===void 0||((Pr=Ur[0])===null||Pr===void 0))?void 0:Pr.id,zn==null||((Qr=zn.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:Fn.data.jupyter_show_description},Jn.setFieldsValue(wr),Sr.current=Object(K.a)({},wr),Kr.current=zn.attachment_id||"",Lr(Object(K.a)({},wr)),qr(zn.attachment_id||""),_r(zn.cover_image_id||""));case 5:case"end":return bn.stop()}},cn)}));return function(){return dn.apply(this,arguments)}}(),yt=function(cn,Fn){Lr(Object(K.a)({},Fn))},nt=function(){Ie()},Me=function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Jn.submit()},Xe=function(cn){var Fn,Cn=cn.name,Ur=cn.description,Pr=cn.shixun_tags,Qr=cn.course,Wr=cn.jupyter_show_description,ta=Wr===void 0?!1:Wr,zn={name:Cn,description:Ur,shixun_tags:Pr,attachment_id:ir,cover_image_id:Yr,sub_discipline_ids:Qr[1]};(Fn=ar.detail)!==null&&Fn!==void 0&&Fn.is_jupyter_lab&&(zn=Object(K.a)(Object(K.a)({},zn),{},{jupyter_show_description:ta}));var wr=Object(u.a)("/api/shixuns/".concat(_a,"/base_info_save.json"),{method:"post",body:{shixun:Object(K.a)({},zn)}});wr.then(function(Gn){Gn.status===0&&(m.b.success("\u4FDD\u5B58\u6210\u529F"),_n({type:"practiceSetting/getCommonData",payload:{id:_a}}),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Sr.current={description:zr.description,shixun_tags:zr.shixun_tags,name:zr.name},Kr.current=ir)})},Ie=function(){var cn,Fn=function(){E.d.push("/shixuns/".concat(_a,"/challenges")),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};In!=null&&(cn=In.sideBar)!==null&&cn!==void 0&&cn.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(){Fn()}}):Fn()};function et(dn){var cn=dn.type==="image/jpeg"||dn.type==="image/png";return cn||m.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),cn}var $e=b.a.createElement(I.a,{loading:Gt,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),mt=b.a.createElement(I.a,{loading:$n,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function rt(dn,cn){var Fn=new FileReader;Fn.addEventListener("load",function(){return cn(Fn.result)}),Fn.readAsDataURL(dn)}var Mt=function(cn){if(cn.file.status==="uploading"){$t(!0);return}if(cn.file.status==="done"){var Fn,Cn;$t(!1),qr(cn==null||((Fn=cn.file)===null||Fn===void 0||((Cn=Fn.response)===null||Cn===void 0))?void 0:Cn.id)}},Vt=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+ir,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return qr("")},style:{fontSize:"16px",color:"red"}})))},pn=function(cn){if(cn.file.status==="uploading"){Ln(!0);return}if(cn.file.status==="done"){var Fn,Cn;Ln(!1),_r(cn==null||((Fn=cn.file)===null||Fn===void 0||((Cn=Fn.response)===null||Cn===void 0))?void 0:Cn.id)}},ln=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+Yr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.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:Jn,scrollToFirstError:!0,layout:"vertical",onValuesChange:yt,onFinish:Xe},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(((hn=zr.name)===null||hn===void 0?void 0:hn.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:Un.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:"},ir?Vt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:et,onChange:Mt},$e))),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?ln():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:et,onChange:pn},mt))),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})),((Dn=ar.detail)===null||Dn===void 0?void 0:Dn.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:nt,loading:Gt||$n}))},tt=Object(E.a)(function(Sn){var Yt=Sn.problemset,hn=Sn.loading,Dn=Sn.globalSetting,tn=Sn.practiceSetting,wn=Sn.shixunsDetail;return{globalSetting:Dn,loading:hn,practiceSetting:tn,problemset:Yt,shixunsDetail:wn}})(Je),ut=o("ch0t"),ft=o("R9oj"),vt=o("ECub"),_t=o("T2oS"),Ve=o("W9HT"),je=o("bKvZ"),ht=o.n(je),Bt=o("KeGQ"),Et=o.n(Bt),Pt=o("NLgs"),qe=o("ngQI"),He=function(Yt){var hn=Yt.globalSetting,Dn=Yt.dispatch,tn=Yt.practiceSetting,wn=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting"]),_n=Object(O.useState)(!1),In=Object(de.a)(_n,2),Un=In[0],ar=In[1],qn=Object(O.useState)({}),Rr=Object(de.a)(qn,2),Ir=Rr[0],Jn=Rr[1],Ar=Object(O.useState)(!0),vr=Object(de.a)(Ar,2),zr=vr[0],Lr=vr[1],$r=Object(O.useState)(!1),nr=Object(de.a)($r,2),Gt=nr[0],$t=nr[1],Jt=Object(O.useState)(null),Xn=Object(de.a)(Jt,2),$n=Xn[0],Ln=Xn[1],rr=Object(O.useRef)(!1),ur=tn.id,ir=tn.updateIndex,qr=tn.is_published,or=tn.newQuestion,da=Ir.challenge_list,Yr=da===void 0?[]:da;Object(O.useEffect)(function(){return ur?(Sr(),function(){Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[ur,ir]),Object(O.useEffect)(function(){_r()},[wn.location]);var _r=function(){var et,$e=wn.location,mt=$e.pathname.split("/");(mt.includes("newquestion")||mt.includes("new")||$e!=null&&(et=$e.query)!==null&&et!==void 0&&et.tabId)&&(rr.current=!0)},Sr=function(){var Ie=Object(a.a)(n.a.mark(function et(){var $e,mt,rt,Mt,Vt,pn,ln;return n.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return Lr(!0),cn.next=3,Object(s.J)({id:ur});case 3:rt=cn.sent,rt!=null&&($e=rt.challenge_list)!==null&&$e!==void 0&&$e.length&&(Mt=wn.location.pathname.split("/"),Vt=rt.challenge_list.find(function(Fn){return String(Fn.challenge_id)===Mt[4]}),Mt.includes("newquestion")||Mt.includes("new")?(ln=rt.challenge_list[((pn=rt.challenge_list)===null||pn===void 0?void 0:pn.length)-1],Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:Mt.includes("new")?0:1,name:""}}}),Ln(void 0),Ze(ln)):Mt[4]&&Vt?Kr(Vt,!1):Kr(rt.challenge_list[0])),rt!=null&&(mt=rt.challenge_list)!==null&&mt!==void 0&&mt.length||Ln(null),Jn(rt),Lr(!1);case 8:case"end":return cn.stop()}},et)}));return function(){return Ie.apply(this,arguments)}}(),Kr=function(et){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(Ln(et.challenge_id),Ze(et),$e){var mt="/shixuns/".concat(ur,"/edit/").concat(et.challenge_id,"/").concat(et.st===1?"editquestion":"editcheckpoint");E.d.push(mt)}},Jr=function(et,$e){$e.stopPropagation();var mt=et.challenge_id,rt=function(){var Mt=Object(a.a)(n.a.mark(function Vt(){var pn,ln,dn,cn;return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.v)({id:ur,challengesId:mt});case 2:if(pn=Cn.sent,!(pn.status===1)){Cn.next=12;break}return Cn.next=6,Object(s.J)({id:ur});case 6:if(cn=Cn.sent,Jn(cn),!(mt===$n&&(ln=cn.challenge_list)!==null&&ln!==void 0&&ln.length)){Cn.next=11;break}return Kr(cn.challenge_list[0]),Cn.abrupt("return");case 11:(dn=cn.challenge_list)!==null&&dn!==void 0&&dn.length||(Ln(null),rr.current=!0,Ze({}),E.d.push("/shixuns/".concat(ur,"/edit?tabId=level")));case 12:case"end":return Cn.stop()}},Vt)}));return function(){return Mt.apply(this,arguments)}}();f.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:rt})},Oa=function(et,$e,mt){var rt=Array.from(et),Mt=rt.splice($e,1),Vt=Object(de.a)(Mt,1),pn=Vt[0];return rt.splice(mt,0,pn),rt},_a=function(et,$e){if(!et.destination)return;var mt=Oa($e,et.source.index,et.destination.index);Jn(Object(K.a)(Object(K.a)({},Ir),{},{challenge_list:mt}));var rt=mt.map(function(Mt){return Mt.challenge_id});Object(s.Kb)({id:ur,ids:rt}).then(function(Mt){Mt.status!==0&&Jn(Object(K.a)(Object(K.a)({},Ir),{},{challenge_list:$e}))})},Ze=function(et){Dn({type:"practiceSetting/setParams",payload:{selectQuestionParams:et}})},dt=function(){var Ie=Object(a.a)(n.a.mark(function et($e,mt){var rt;return n.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!($e===$n)){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.next=4,yt();case 4:Ln($e),Ze(mt),Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),rt="/shixuns/".concat(ur,"/edit/").concat($e,"/").concat(mt.st===1?"editquestion":"editcheckpoint"),E.d.push(rt);case 9:case"end":return Vt.stop()}},et)}));return function($e,mt){return Ie.apply(this,arguments)}}(),yt=function(){return new Promise(function(et,$e){var mt;tn!=null&&(mt=tn.sideBar)!==null&&mt!==void 0&&mt.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(){Dn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),et()},onCancel:function(){$e()}}):et()})},nt=function(et){return b.a.createElement(b.a.Fragment,null,b.a.createElement(qe.a,{onDragEnd:function(mt){return _a(mt,et)}},b.a.createElement(qe.c,{droppableId:"droppable"},function($e,mt){return b.a.createElement("div",Object(M.a)({ref:$e.innerRef},$e.droppableProps,{style:{width:"100%"}}),et.map(function(rt,Mt){var Vt=rt.st,pn=rt.name,ln=rt.challenge_id;return b.a.createElement(qe.b,{key:ln,draggableId:ln.toString(),index:Mt,isDragDisabled:qr},function(dn,cn){return b.a.createElement("div",Object(M.a)({ref:dn.innerRef},dn.draggableProps,dn.dragHandleProps,{className:$n===ln?ht.a.listActive:ht.a.list,onClick:function(){return dt(ln,rt)}}),b.a.createElement("span",{className:ht.a.s1},Vt===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",Mt+1,"\u5173: ",pn),!qr&&b.a.createElement("span",{className:ht.a.s3,onClick:function(Cn){return Jr(rt,Cn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),or&&b.a.createElement("div",{className:ht.a.listActive},b.a.createElement("span",{className:ht.a.s1},(or==null?void 0:or.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",et.length+1,"\u5173: ",or==null?void 0:or.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 et($e){return n.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,yt();case 2:$e==="new"?E.d.push("/shixuns/".concat(ur,"/edit/new")):E.d.push("/shixuns/".concat(ur,"/edit/newquestion")),ar(!1),Ln(void 0),Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:$e==="new"?0:1,name:""}}});case 6:case"end":return rt.stop()}},et)}));return function($e){return Ie.apply(this,arguments)}}(),Xe=function(){if(Object(Pt.b)(Dn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;ar(!Un)};return b.a.createElement("div",{className:ht.a.level},b.a.createElement("aside",{className:ht.a.left,style:{width:Gt?"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(Ve.a,{size:"large"}):!!Yr.length||!!or?nt(Yr):b.a.createElement(vt.a,{image:Et.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Gt&&b.a.createElement("div",{className:ht.a.btns},b.a.createElement("aside",{className:ht.a.btnsWrap},b.a.createElement("div",{style:{transform:Un?"rotate(45deg)":"rotate(0deg)"},className:ht.a.icon,onClick:Xe},"+"),b.a.createElement("div",{className:ht.a.btn,style:{left:Un?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:Gt?ht.a.elseShrink:ht.a.shrink,onClick:function(){return $t(!Gt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:ht.a.right,id:"modal-level-question"},$n===null&&rr.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")):wn.children))},Ye=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,hn=Sn.practiceSetting;return{globalSetting:Yt,practiceSetting:hn}})(He),Ce=o("DjyN"),Le=o("NUBc"),We=o("cWXX"),Ue=o("/ezw"),ze=o("qVdP"),st=o("jsC+"),Ct=o("lUTK"),Wt=o("BvKs"),Qt=o("7Kak"),Kt=o("9yH6"),Ot=o("Qvpy"),Fe=o.n(Ot),at=function(Yt){var hn=Yt.shixunsDetail,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.onReloadData,In=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Un=Object(O.useState)(),ar=Object(de.a)(Un,2),qn=ar[0],Rr=ar[1],Ir=Object(O.useState)([]),Jn=Object(de.a)(Ir,2),Ar=Jn[0],vr=Jn[1];Object(O.useEffect)(function(){hn.actionTabs.key==="Collaborators-ChangeManager"&&zr()},[hn.actionTabs.key]);var zr=function(){var Gt=Object(a.a)(n.a.mark(function $t(){var Jt,Xn;return n.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,wn({type:"shixunsDetail/getChangeManager",payload:{id:(Jt=hn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}});case 2:Xn=Ln.sent,vr(Xn||[]);case 4:case"end":return Ln.stop()}},$t)}));return function(){return Gt.apply(this,arguments)}}(),Lr=function(){var $t;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:($t=hn.actionTabs.params)===null||$t===void 0?void 0:$t.id}}})},$r=function(){var Gt=Object(a.a)(n.a.mark(function $t(){var Jt,Xn;return n.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(qn){Ln.next=3;break}return m.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),Ln.abrupt("return");case 3:return Ln.next=5,wn({type:"shixunsDetail/changeManager",payload:{id:(Jt=hn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id,user_id:qn}});case 5:Xn=Ln.sent,nr(),Xn&&(_n(),m.b.info(Xn.message));case 8:case"end":return Ln.stop()}},$t)}));return function(){return Gt.apply(this,arguments)}}(),nr=function(){wn({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:hn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:tn.effects["shixunsDetail/changeManager"],onOk:$r,onCancel:nr},b.a.createElement("div",null,b.a.createElement("div",{className:Fe.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:Fe.a.content},Ar.length?b.a.createElement(Kt.a.Group,{value:qn,onChange:function($t){return Rr($t.target.value)}},Ar.map(function(Gt,$t){return b.a.createElement(Kt.a,{className:Fe.a.radio,key:$t,value:Gt.user_id},Gt.name)})):b.a.createElement("div",{className:Fe.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:Fe.a.colorBlue,onClick:Lr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},it=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:hn}})(at),Pe=o("Znn+"),Qe=o("ZTPi"),pt=o("ju9d"),bt=o("DDK+"),Dt=Qe.a.TabPane,It=function(Sn){var Yt=Sn.visible,hn=Sn.onCancel,Dn=Sn.onSelectGroup,tn=Sn.shixunId,wn=Sn.onSelectCollaborator;return b.a.createElement(f.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Yt,width:1100,centered:!0,keyboard:!1,onCancel:hn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Qe.a,{defaultActiveKey:"1"},b.a.createElement(Dt,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(pt.a,{onCancel:hn,container_type:2,container_id:tn,onSelect:wn})),b.a.createElement(Dt,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(bt.a,{onCancel:hn,onSelect:Dn}))))},ct=o("oaGz"),Nt=o.n(ct),jt=o("8Skl"),on=o("ruvs"),vn=function(Yt){var hn,Dn,tn,wn,_n,In,Un=Yt.shixunsDetail,ar=Yt.globalSetting,qn=Yt.loading,Rr=Yt.user,Ir=Yt.dispatch,Jn=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Ar=Object(O.useRef)(),vr=Object(O.useState)(0),zr=Object(de.a)(vr,2),Lr=zr[0],$r=zr[1],nr=Object(O.useState)([]),Gt=Object(de.a)(nr,2),$t=Gt[0],Jt=Gt[1],Xn=Object(O.useState)({id:null,page:1}),$n=Object(de.a)(Xn,2),Ln=$n[0],rr=$n[1],ur=(hn=Rr.userInfo)===null||hn===void 0||((Dn=hn.shixun)===null||Dn===void 0)?void 0:Dn.editable,ir=((tn=Rr.userInfo)===null||tn===void 0?void 0:tn.role)<=2||((wn=Rr.userInfo)===null||wn===void 0||((_n=wn.shixun)===null||_n===void 0)?void 0:_n.is_creator);Object(O.useEffect)(function(){Ar.current=Jn.match.params.id,Ln.id=Ar.current,rr(Ln),qr(Ln)},[]);var qr=function(){var Ze=Object(a.a)(n.a.mark(function dt(yt){var nt;return n.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,Ir({type:"shixunsDetail/getCollaboratorsData",payload:yt});case 2:nt=Xe.sent,nt&&(Jt(nt.members||[]),$r(nt.member_count));case 4:case"end":return Xe.stop()}},dt)}));return function(yt){return Ze.apply(this,arguments)}}(),or=function(){var Ze=Object(a.a)(n.a.mark(function dt(){var yt;return n.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Ln.page=1,rr(Ln),yt=Object(on.b)(),Me.next=5,Ir({type:"user/getUserInfo",payload:yt});case 5:return Me.next=7,qr(Ln);case 7:case"end":return Me.stop()}},dt)}));return function(){return Ze.apply(this,arguments)}}(),da=function(dt){Ln.page=dt,rr(Ln),qr(Ln)},Yr=function(dt){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Nt.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var yt=Object(a.a)(n.a.mark(function Me(){var Xe,Ie;return n.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Ir({type:"shixunsDetail/deleteCollaborators",payload:{id:Ar.current,userId:dt}});case 2:if(Ie=$e.sent,!(((Xe=Rr.userInfo)===null||Xe===void 0?void 0:Xe.user_id)===dt)){$e.next=6;break}return E.d.push("/shixuns"),$e.abrupt("return");case 6:m.b.info(Ie==null?void 0:Ie.message),Ln.page=1,rr(Ln),qr(Ln);case 10:case"end":return $e.stop()}},Me)}));function nt(){return yt.apply(this,arguments)}return nt}()})},_r=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Ar.current}}})};function Sr(Ze,dt,yt,nt){return Kr.apply(this,arguments)}function Kr(){return Kr=Object(a.a)(n.a.mark(function Ze(dt,yt,nt,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:dt,user_id:yt,editable:nt?0:1}});case 2:qr(Ln);case 3:case"end":return Ie.stop()}},Ze)})),Kr.apply(this,arguments)}var Jr=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Ar.current}}})};function Oa(){Ir({type:"shixunsDetail/setActionTabs",payload:{}})}var _a={visible:Un.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Oa,shixunId:Ar.current,onSelectCollaborator:function(){var Ze=Object(a.a)(n.a.mark(function yt(nt){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:Ar.current,user_ids:nt}});case 3:Me=Ie.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),or());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return Ze.apply(this,arguments)}return dt}(),onSelectGroup:function(){var Ze=Object(a.a)(n.a.mark(function yt(nt){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:Ar.current,group_id:nt.group_id}});case 3:Me=Ie.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),or());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return Ze.apply(this,arguments)}return dt}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Nt.a.wrap},b.a.createElement("div",{className:Nt.a.content},((In=Un.detail)===null||In===void 0?void 0:In.identity)<5&&b.a.createElement("div",{className:Nt.a.head},b.a.createElement("span",{className:Nt.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Lr,"\u4EBA\uFF09"),b.a.createElement("div",null,ir&&b.a.createElement(I.a,{type:"primary",ghost:!0,className:Nt.a.button,style:{marginRight:"20px"},onClick:_r},"\u66F4\u6362\u7BA1\u7406\u5458"),ur&&b.a.createElement(I.a,{type:"primary",className:Nt.a.button,style:{marginRight:"40px"},onClick:Jr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Nt.a.list},b.a.createElement(Ue.a,{loading:qn.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},$t.map(function(Ze,dt){var yt,nt,Me,Xe,Ie,et,$e,mt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Nt.a.itemWrap,key:dt},b.a.createElement("a",{href:(yt=Ze.user)===null||yt===void 0?void 0:yt.user_url,target:"_blank",className:Nt.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Nt.a.img,src:"".concat(Oe.a.IMG_SERVER,"/images/").concat((nt=Ze.user)===null||nt===void 0?void 0:nt.image_url)}),((Me=Ze.user)===null||Me===void 0?void 0:Me.shixun_manager)&&b.a.createElement("span",{className:Nt.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Nt.a.itemContent},b.a.createElement("p",{className:Nt.a.nameWrap},b.a.createElement("a",{href:Ze.user.user_url,target:"_blank",className:Nt.a.name},(Xe=Ze.user)===null||Xe===void 0?void 0:Xe.name,Ze.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:Nt.a.actionGroup},ir?(et=Ze.user)!==null&&et!==void 0&&et.shixun_manager?null:b.a.createElement(st.a,{overlay:b.a.createElement(Wt.a,{selectedKeys:[Ze.editable?"1":"2"],onClick:function(){var Mt;Sr(Un.detail.identifier,Ze.user.user_id,Ze.editable,(Mt=Ze.user)===null||Mt===void 0?void 0:Mt.name)}},b.a.createElement(Wt.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Wt.a.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},b.a.createElement("div",null,Ze.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(jt.a,{style:{fontSize:"14px",color:"#888888"}}))):Ze.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"),!(($e=Ze.user)!==null&&$e!==void 0&&$e.shixun_manager)&&ur?b.a.createElement("a",{className:Nt.a.deletetitle,onClick:function(){var Mt;return Yr((Mt=Ze.user)===null||Mt===void 0?void 0:Mt.user_id)}},"\u5220\u9664"):null)),b.a.createElement("p",{className:Nt.a.schoolWrap},b.a.createElement("span",{className:Nt.a.school},(mt=Ze.user)===null||mt===void 0?void 0:mt.school_name)))))})))),Lr>10&&b.a.createElement("div",{className:Nt.a.countWrap},b.a.createElement(Le.a,{showQuickJumper:!1,showSizeChanger:!1,total:Lr,onChange:function(dt){return da(dt)},pageSize:10,current:Ln.page}))),b.a.createElement(it,{onReloadData:or}),b.a.createElement(It,_a))},Wn=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting,tn=Sn.user;return{shixunsDetail:Yt,globalSetting:Dn,user:tn,loading:hn}})(vn),Kn=o("11/R"),Hn=o("Q9mQ"),fn=o("diRs"),lr=o("jrin"),Zn=o("OaEy"),cr=o("2fM7"),dr=o("ZW9T"),Dr=o("RCxd"),hr=o("4SAo"),sn=o.n(hr),en=W.a.TextArea,On=function(Yt){var hn=Yt.shixunsDetail,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.onFinish,In=_n===void 0?function(){}:_n,Un=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),ar=he.a.useForm(),qn=Object(de.a)(ar,1),Rr=qn[0],Ir=function(){var Ar=Object(a.a)(n.a.mark(function vr(zr){var Lr,$r;return n.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,wn({type:"shixunsDetail/getCustomScript",payload:{id:(Lr=hn.actionTabs.params)===null||Lr===void 0?void 0:Lr.id,compile:zr.execute,excutive:zr.compile}});case 2:$r=Gt.sent,Jn(),$r&&In($r==null?void 0:$r.shixun_script);case 5:case"end":return Gt.stop()}},vr)}));return function(zr){return Ar.apply(this,arguments)}}(),Jn=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(f.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:hn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Jn},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(en,{rows:4})),b.a.createElement(he.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(en,{rows:4})),b.a.createElement("div",{className:sn.a.footerWrap},b.a.createElement(he.a.Item,null,b.a.createElement(I.a,{className:"mr5",size:"large",onClick:Jn},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",htmlType:"submit",loading:tn.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},Fr=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:hn}})(On),Or=o("Lai7"),xr=o.n(Or),fr=o("EGTK"),pe=o("UGPy"),X=o.n(pe),q=o("FrRK"),oe=o("9Bee"),De=o("N3QO"),fe=cr.a.Option,ot=function(Yt){var hn,Dn,tn=Yt.practiceSetting,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.user,Un=Object(O.useState)(null),ar=Object(de.a)(Un,2),qn=ar[0],Rr=ar[1],Ir=Object(O.useState)([]),Jn=Object(de.a)(Ir,2),Ar=Jn[0],vr=Jn[1],zr=Object(O.useState)(!0),Lr=Object(de.a)(zr,2),$r=Lr[0],nr=Lr[1],Gt=Object(O.useState)({}),$t=Object(de.a)(Gt,2),Jt=$t[0],Xn=$t[1],$n=Object(O.useState)([]),Ln=Object(de.a)($n,2),rr=Ln[0],ur=Ln[1],ir=Object(O.useState)(),qr=Object(de.a)(ir,2),or=qr[0],da=qr[1],Yr=Object(O.useState)(),_r=Object(de.a)(Yr,2),Sr=_r[0],Kr=_r[1],Jr=Object(O.useState)([]),Oa=Object(de.a)(Jr,2),_a=Oa[0],Ze=Oa[1],dt=Object(O.useState)({}),yt=Object(de.a)(dt,2),nt=yt[0],Me=yt[1],Xe=Object(O.useRef)(null),Ie=Object(O.useRef)(!0),et=Object(O.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),$e=Object(O.useRef)(null),mt=tn.id,rt=tn.is_published,Mt=nt.frequence_image,Vt=Mt===void 0?[]:Mt,pn=nt.environments,ln=pn===void 0?[]:pn,dn=nt.choice_small_type,cn=dn===void 0?[]:dn,Fn=nt.other_image,Cn=Fn===void 0?[]:Fn,Ur=Jt.name,Pr=Jt.description,Qr=Jt.authorization,Wr=Jt.small_type,ta=Wr===void 0?[]:Wr;Object(O.useEffect)(function(){if(qn===null)return;Gn(),Xe.current.scrollTop=0},[qn]),Object(O.useEffect)(function(){if(!mt)return;wr()},[mt]),Object(O.useEffect)(function(){return qn===null?void 0:(zn(),function(){clearTimeout($e.current)})},[qn,Ar,rr,or,Sr]);var zn=function(){clearTimeout($e.current),$e.current=setTimeout(function(){!Object(ae.isEqual)(et.current.activeId,qn)||!Object(ae.isEqual)(et.current.selectId,Ar)||!Object(ae.isEqual)(et.current.serviceConfigList,rr)||!Object(ae.isEqual)(et.current.evaluateScript,or)||!Object(ae.isEqual)(et.current.evaluationScript,Sr)?wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},wr=function(){var Tr=Object(a.a)(n.a.mark(function br(){var Mr,tr,pa,xa;return n.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return nr(!0),Aa.next=3,Object(u.a)("/api/shixuns/".concat(mt,"/edit_environment_info.json"),{method:"get"});case 3:Mr=Aa.sent,Mr.status===0&&(Me(Object(K.a)({},Mr.data)),nr(!1),Mr!=null&&(tr=Mr.data)!==null&&tr!==void 0&&tr.id?(et.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 Tr.apply(this,arguments)}}(),Gn=function(){var Tr=Object(a.a)(n.a.mark(function br(){var Mr,tr,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(mt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:qn}});case 2:ba=ga.sent,Xn(ba.data),et.current.selectId=(Mr=ba.data)===null||Mr===void 0?void 0:Mr.choice_small_type,vr((tr=ba.data)===null||tr===void 0?void 0:tr.choice_small_type),et.current.serviceConfigList=(pa=ba.data)===null||pa===void 0?void 0:pa.shixun_service_configs,ur((xa=ba.data)===null||xa===void 0?void 0:xa.shixun_service_configs),et.current.evaluateScript=ba.data.evaluate_script,da(ba.data.evaluate_script),et.current.evaluationScript=ba.data.choice_standard_scripts,Kr(ba.data.choice_standard_scripts),Ze(ba.data.standard_scripts);case 13:case"end":return ga.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),bn=function(){var br,Mr=function(){E.d.push("/shixuns/".concat(mt,"/challenges")),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};tn!=null&&(br=tn.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()},jn=function(){var Tr=Object(a.a)(n.a.mark(function br(){var Mr,tr,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)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Aa.next=3;break}return Aa.abrupt("return");case 3:return tr={sub_type:Ar,main_type:qn,shixun:{mirror_script_id:Sr},shixun_info:{evaluate_script:or},shixun_service_configs:rr.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(mt),{method:"put",body:tr});case 6:pa=Aa.sent,pa.status===0&&(m.b.success("\u7F16\u8F91\u6210\u529F"),et.current={activeId:qn,selectId:Ar,serviceConfigList:rr,evaluateScript:or,evaluationScript:Sr},wn({type:"practiceSetting/getCommonData",payload:{id:mt}}),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Aa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Vr=ta.filter(function(Tr){return Ar.includes(Tr.id)}),ua=function(){bn()},pr=function(br,Mr,tr){var pa=rr.map(function(xa,ba){return ba===tr?Object(K.a)(Object(K.a)({},xa),{},Object(lr.a)({},Mr,br)):xa});ur(pa)},na=function(){if(Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:mt}}})},Ca=function(){var Tr=Object(a.a)(n.a.mark(function br(Mr){var tr;return n.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,wn({type:"shixunsDetail/getScriptContent",payload:{id:mt,script_id:Mr}});case 2:tr=xa.sent,tr&&da(tr.content);case 4:case"end":return xa.stop()}},br)}));return function(Mr){return Tr.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 tr(){return Mr.apply(this,arguments)}return tr}()})},Sa=function(br,Mr){var tr=rr[0]?[rr[0]]:[];Mr.forEach(function(pa){var xa=rr.find(function(ga){return ga.mirror_repository_id===Number(pa.key)});if(xa)tr.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};tr.push(Aa)}}}),ur(tr),vr(br)};return b.a.createElement("div",{className:X.a.practice},b.a.createElement(fr.a,{loading:$r,skin:"night",className:X.a.left,dispatch:wn,value:qn,data:ln,otherData:Cn,tags:Vt,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",qn===null?"\u2014 \u2014":Ur)),b.a.createElement("div",{className:X.a.content,ref:Xe},qn===null&&b.a.createElement(vt.a,{image:xr.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),qn!==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(cr.a,{onChange:function(br,Mr){return Sa(br,Mr)},getPopupContainer:function(br){return br.parentNode},mode:"multiple",bordered:!1,value:Ar,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},ta.map(function(Tr,br){return b.a.createElement(fe,{key:Tr.id,value:Tr.id},Tr.type_name)})),b.a.createElement("div",{className:X.a.smallType},Vr.map(function(Tr){return Tr.description?b.a.createElement("span",{key:Tr.id},Tr.description):null}))),!(_n!=null&&(hn=_n.detail)!==null&&hn!==void 0&&hn.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},rt&&b.a.createElement("div",{onClick:function(){if(Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:X.a.mask}),b.a.createElement(cr.a,{style:{width:400},bordered:!1,getPopupContainer:function(br){return br.parentNode},value:Sr,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(br){ha(br),Kr(br)}},(_a||[]).map(function(Tr,br){return b.a.createElement(fe,{value:parseInt(Tr.id),name:Tr.scptname,key:br},Tr.scptname)})),b.a.createElement("span",{className:X.a.evaluatingS1,onClick:na},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(fn.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(Dr.a,null)))),b.a.createElement(dr.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:or,onChange:function(br){if(Ie.current){Ie.current=!1;return}da(br),Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Ie.current=!0,da(et.current.evaluateScript)},200)}}))),((Dn=_n.detail)===null||Dn===void 0?void 0:Dn.identity)<3&&!!rr.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},rr==null?void 0:rr.map(function(Tr,br){return b.a.createElement("div",{key:br,className:"mb30"},b.a.createElement("div",null,b.a.createElement("span",{className:"font16"},Tr.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:Tr.cpu_limit,disabled:rt,onChange:function(tr){return pr(tr.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:Tr.lower_cpu_limit,disabled:rt,onChange:function(tr){return pr(tr.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:Tr.memory_limit,disabled:rt,onChange:function(tr){return pr(tr.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:Tr.request_limit,style:{width:300},disabled:rt,onChange:function(tr){return pr(tr.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:Tr.resource_limit,style:{width:300},disabled:rt,maxLength:8,onChange:function(tr){var pa=tr.target.value,xa=/^\d*(\.\d*)?$/;pa.match(xa)&&pr(tr.target.value,"resource_limit",br)}})))}))))),b.a.createElement("div",{className:X.a.btns},b.a.createElement(I.a,{size:"large",style:{marginRight:20},onClick:ua},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",disabled:qn===null,onClick:function(){return jn()}},"\u4FDD\u5B58"))),b.a.createElement(q.a,null),b.a.createElement(Fr,{onFinish:function(br){return da(br)}}),b.a.createElement(De.a,null))},Zt=Object(E.a)(function(Sn){var Yt=Sn.practiceSetting,hn=Sn.globalSetting,Dn=Sn.shixunsDetail,tn=Sn.user;return{practiceSetting:Yt,globalSetting:hn,shixunsDetail:Dn,user:tn}})(ot),Mn=o("g9YV"),Vn=o("wCAj"),qt=o("5Dmo"),En=o("3S7+"),un=o("P5Jw"),jr=o("wd/R"),aa=o.n(jr),oa=o("3d99"),er=o.n(oa),Ba=o("Lf5v"),Ea=o("xKgJ"),ca=o("lzim"),Ka=b.a.Fragment,Ta=function(Yt){var hn,Dn,tn,wn,_n=Yt.globalSetting,In=Yt.dispatch,Un=Yt.practiceSetting,ar=Yt.shixunsDetail,qn=Yt.user,Rr=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Ir=Un.id,Jn=Object(O.useState)([]),Ar=Object(de.a)(Jn,2),vr=Ar[0],zr=Ar[1],Lr=Object(O.useState)({}),$r=Object(de.a)(Lr,2),nr=$r[0],Gt=$r[1],$t=Object(O.useState)(!1),Jt=Object(de.a)($t,2),Xn=Jt[0],$n=Jt[1],Ln=Object(O.useState)(!0),rr=Object(de.a)(Ln,2),ur=rr[0],ir=rr[1],qr=Object(O.useState)(!1),or=Object(de.a)(qr,2),da=or[0],Yr=or[1],_r=Object(O.useState)(!1),Sr=Object(de.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Oa=Object(O.useState)([]),_a=Object(de.a)(Oa,2),Ze=_a[0],dt=_a[1],yt=Object(O.useState)(!1),nt=Object(de.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(O.useState)({}),et=Object(de.a)(Ie,2),$e=et[0],mt=et[1],rt=Object(O.useState)({page:1,limit:10,total:0}),Mt=Object(de.a)(rt,2),Vt=Mt[0],pn=Mt[1];Object(O.useEffect)(function(){if(!Ir)return;dn()},[Ir]);var ln=function(wr){var Gn=Object(K.a)(Object(K.a)({},Vt),{},{page:wr});dt([]),pn(Gn),dn(Gn)},dn=function(){var zn=Object(a.a)(n.a.mark(function wr(Gn){var bn,jn,Vr;return n.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return bn={page:1,limit:10,total:0},jn=Gn||bn,$n(!0),pr.next=5,In({type:"shixunsDetail/getSetData",payload:Object(K.a)(Object(K.a)({},jn),{},{id:Ir})});case 5:Vr=pr.sent,Vr!=null&&Vr.data_sets&&($n(!1),zr(Object(be.a)(Vr.data_sets)),pn(Object(K.a)(Object(K.a)({},jn),{},{total:Vr==null?void 0:Vr.data_sets_count})),ir(!1),Gt(Object(K.a)({},Vr)));case 7:case"end":return pr.stop()}},wr)}));return function(Gn){return zn.apply(this,arguments)}}(),cn=function(){return b.a.createElement("div",{className:er.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~"))},Fn=function(wr){console.log("selectedRowKeys changed: ",wr),dt(wr)},Cn={selectedRowKeys:Ze,columnWidth:70,onChange:Fn},Ur=function(wr){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var Gn=wr?[wr]:Ze;f.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var bn=Object(a.a)(n.a.mark(function Vr(){var ua,pr;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:Gn}});case 2:ua=Ca.sent,ua.status===0&&(pr=Gn.length===vr.length&&Vt.page>1?Vt.page-1:Vt.page,m.b.success("\u5220\u9664\u6210\u529F"),dn(Object(K.a)(Object(K.a)({},Vt),{},{page:pr})),dt([]));case 4:case"end":return Ca.stop()}},Vr)}));function jn(){return bn.apply(this,arguments)}return jn}()})},Pr=function(){var zn=Object(a.a)(n.a.mark(function wr(){var Gn,bn,jn,Vr,ua;return n.a.wrap(function(na){for(;;)switch(na.prev=na.next){case 0:if(Gn=$e.title,bn=null,console.log(Gn,"title"),!(Gn==="")){na.next=7;break}return bn="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:bn})),na.abrupt("return");case 7:if(!Gn.includes(" ")){na.next=11;break}return bn="\u6587\u4EF6\u540D\u4E0D\u80FD\u6709\u7A7A\u683C",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:bn})),na.abrupt("return");case 11:if(jn=vr.find(function(Ca){return Ca.id===($e==null?void 0:$e.id)}).title,!(Gn===jn.substring(0,jn.lastIndexOf("."))||Gn===jn)){na.next=16;break}return bn="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:bn})),na.abrupt("return");case 16:return Vr=jn.includes(".")?jn.substring(jn.lastIndexOf("."),jn.length):"",na.next=19,Object(u.a)("/api/shixuns/".concat(Ir,"/rename_data_sets.json"),{method:"post",body:{id:$e==null?void 0:$e.id,new_file_name:Gn+Vr}});case 19:ua=na.sent,ua.status===0&&(m.b.success("\u91CD\u547D\u540D\u6210\u529F"),dn(Vt),Yr(!1),mt({}));case 21:case"end":return na.stop()}},wr)}));return function(){return zn.apply(this,arguments)}}(),Qr=function(){var wr=$e.download_url;Wr(wr),m.b.success("\u590D\u5236\u6210\u529F"),Jr(!1),mt({})},Wr=function(wr){var Gn=wr,bn=document.createElement("input");bn.value=Gn,document.body.appendChild(bn),bn.select(),document.execCommand("Copy"),bn.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(En.a,{title:wr},b.a.createElement("span",null,wr))}},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(En.a,{title:wr},b.a.createElement("span",null,wr||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:function(wr,Gn){return aa()(Gn.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(wr,Gn){return b.a.createElement("div",{className:er.a.path},b.a.createElement(En.a,{title:wr},b.a.createElement("span",{className:er.a.text},wr)),b.a.createElement(un.CopyToClipboard,{text:wr,onCopy:function(){return m.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(wr,Gn){return b.a.createElement("div",{className:er.a.actionsBtns},b.a.createElement(En.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var jn;mt(Object(ae.clone)(Object(K.a)(Object(K.a)({},Gn),{},{title:Gn!=null&&Gn.title.includes(".")?Gn==null||((jn=Gn.title)===null||jn===void 0)?void 0:jn.substring(0,Gn.title.lastIndexOf(".")):Gn==null?void 0:Gn.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"]),mt(Object(ae.clone)(Gn)),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)(Gn.title,Gn==null?void 0:Gn.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"]),Ur(Gn.id)}})))}}];return b.a.createElement("div",{className:er.a.dataset},b.a.createElement("div",{className:er.a.header},b.a.createElement("div",{className:er.a.title},"\u6570\u636E\u96C6(",Vt.total,")"),b.a.createElement("div",{className:er.a.dataPath},b.a.createElement("span",{className:er.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:nr==null?void 0:nr.folder_name,disabled:!0}),b.a.createElement(un.CopyToClipboard,{text:nr==null?void 0:nr.folder_name,onCopy:function(){return m.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:er.a.btns},b.a.createElement(I.a,{type:"primary",ghost:!0,onClick:function(){return Ur()},disabled:!Ze.length},"\u5220\u9664"),b.a.createElement(I.a,{type:"primary",onClick:function(){return Xe(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:er.a.content},b.a.createElement(Ue.a,{loading:ur,active:!0,paragraph:{rows:5}},Vt.total?b.a.createElement(Vn.a,{rowSelection:Cn,className:er.a.customTable,dataSource:vr,bordered:!1,rowKey:function(wr){return wr.id},rowClassName:er.a.row,columns:ta,loading:Xn,pagination:{pageSize:Vt.limit,total:Vt.total,current:Vt.page,onChange:ln,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):cn())),b.a.createElement(Ba.a,{rootIdentifier:ar==null||((hn=ar.detail)===null||hn===void 0)?void 0:hn.root_identifier,wrapClassName:er.a.uploadFileModal,id:Ir,containerId:ar==null||((Dn=ar.detail)===null||Dn===void 0)?void 0:Dn.id,local:_n==null||((tn=_n.setting)===null||tn===void 0)?void 0:tn.is_local,dispatch:In,visible:Me,onClose:function(){return Xe(!1)},onOK:dn}),b.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:da,onOk:Pr,centered:!0,wrapClassName:er.a.renameModal,onCancel:function(){Yr(!1),mt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:er.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(W.a,{value:$e==null?void 0:$e.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(wr){mt(Object(K.a)(Object(K.a)({},$e),{},{title:wr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat(($e==null||((wn=$e.title)===null||wn===void 0)?void 0:wn.length)||0,"/60")}),($e==null?void 0:$e.errorDes)&&b.a.createElement("div",{className:er.a.errorDes},$e==null?void 0:$e.errorDes))),b.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Kr,onOk:Qr,centered:!0,wrapClassName:er.a.shareModal,onCancel:function(){Jr(!1),mt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:er.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:$e==null?void 0:$e.download_url}))))},Ja=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,hn=Sn.shixunsDetail,Dn=Sn.practiceSetting,tn=Sn.user;return{globalSetting:Yt,shixunsDetail:hn,user:tn,practiceSetting:Dn}})(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(hn,Dn){return Dn!==0}).map(function(hn){return hn.val}).join("").substr(1):""},lt=function(Yt){var hn=Yt.shixunsDetail,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.fileType,In=Yt.path,Un=Yt.onFinish,ar=Un===void 0?function(){}:Un,qn=Object(w.i)(),Rr=Object(O.useState)(""),Ir=Object(de.a)(Rr,2),Jn=Ir[0],Ar=Ir[1],vr=Object(O.useState)([]),zr=Object(de.a)(vr,2),Lr=zr[0],$r=zr[1],nr=Object(O.useState)([]),Gt=Object(de.a)(nr,2),$t=Gt[0],Jt=Gt[1],Xn=[Xt.OriginalPicturePath,Xt.ExpectPicturePath,Xt.PicturePath],$n=Xn.includes(_n);Object(O.useEffect)(function(){if(hn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Ar(In||""),Ln()},[hn.actionTabs.key]);var Ln=function(){var Yr=Object(a.a)(n.a.mark(function _r(){var Sr,Kr,Jr,Oa,_a=arguments;return n.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return Kr=_a.length>0&&_a[0]!==void 0?_a[0]:"",dt.next=3,wn({type:"shixunsDetail/getRepository",payload:{id:qn.id,path:Kr}});case 3:Jr=dt.sent,Kr===""&&!(Jr!=null&&(Sr=Jr.trees)!==null&&Sr!==void 0&&Sr.length)&&m.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 dt.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),rr=function(_r){var Sr=xe(Lr),Kr="".concat(Sr&&"".concat(Sr,"/")).concat(_r);_n===Xt.Path?!(Jn!=null&&Jn.includes("".concat(Kr,"\uFF1B")))&&Ar("".concat(Jn).concat(Kr,"\uFF1B")):_n===Xt.ExecPath&&Ar(Kr)},ur=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 Sr=xe(Lr);$n&&Ar(Sr),Ln(Sr)}},ir=function(_r,Sr){var Kr=Lr.filter(function(Oa,_a){return _a<=Sr});$r(Kr);var Jr=xe(Kr);$n&&Ar(Jr),Ln(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:ar(Jn),or();case 2:case"end":return Kr.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),or=function(){Ar(""),$r([]),Jt([]),wn({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:hn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:qr,onCancel:or},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 ir(Yr,_r)}},Yr.val)})),!!($t!=null&&$t.length)&&$t.map(function(Yr,_r){return Yr.type==="tree"?b.a.createElement("a",{key:_r,onClick:function(){return ur(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 rr("".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:Jn,onChange:function(_r){return Ar(_r.target.value)}})))},Rt=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:hn.models.index}})(lt),wt=o("dhSg"),Ht=li.a.Countdown,Lt;(function(Sn){Sn[Sn.LoadingFail=1]="LoadingFail",Sn[Sn.Loading=2]="Loading",Sn[Sn.Finish=3]="Finish"})(Lt||(Lt={}));var Xt;(function(Sn){Sn.Path="path",Sn.ExecPath="exec_path",Sn.OriginalPicturePath="original_picture_path",Sn.ExpectPicturePath="expect_picture_path",Sn.PicturePath="picture_path"})(Xt||(Xt={}));var rn=function(Yt){var hn=Yt.globalSetting,Dn=Yt.loading,tn=Yt.dispatch,wn=Yt.practiceSetting,_n=Yt.shixunsDetail,In=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Un=Object(O.useState)(),ar=Object(de.a)(Un,2),qn=ar[0],Rr=ar[1],Ir=Object(O.useState)(),Jn=Object(de.a)(Ir,2),Ar=Jn[0],vr=Jn[1],zr=Object(O.useRef)(),Lr=Object(O.useState)(),$r=Object(de.a)(Lr,2),nr=$r[0],Gt=$r[1],$t=Object(O.useState)(),Jt=Object(de.a)($t,2),Xn=Jt[0],$n=Jt[1],Ln=Object(O.useState)(),rr=Object(de.a)(Ln,2),ur=rr[0],ir=rr[1],qr=Object(O.useRef)(!0),or=Object(O.useState)(!0),da=Object(de.a)(or,2),Yr=da[0],_r=da[1],Sr=Object(O.useState)(700),Kr=Object(de.a)(Sr,2),Jr=Kr[0],Oa=Kr[1],_a=Object(O.useState)(""),Ze=Object(de.a)(_a,2),dt=Ze[0],yt=Ze[1],nt=Object(O.useRef)(),Me=Object(w.i)();Object(O.useEffect)(function(){Ie()},[]);var Xe=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn,Fn,Cn;return n.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,tn({type:"shixunsDetail/updateRepositoryFile",payload:{id:Me.id,path:_n==null||((cn=_n.fileContent)===null||cn===void 0||((Fn=cn.params)===null||Fn===void 0))?void 0:Fn.path,content:qn,secret_repository:Yr?null:!0}});case 2:Cn=Pr.sent,Cn!=null&&Cn.content&&(m.b.info("\u4FDD\u5B58\u6210\u529F"),tn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},wn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Pr.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),Ie=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn,Fn,Cn,Ur,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(Cn=Wr.sent,!(Cn!=null&&(cn=Cn.data)!==null&&cn!==void 0&&(Fn=cn.data_list)!==null&&Fn!==void 0&&Fn.length)){Wr.next=6;break}return wt.a.publish("pod-restrict-data",{identifier:Cn==null||((Ur=Cn.data)===null||Ur===void 0)?void 0:Ur.identifier,data_list:Cn==null||((Pr=Cn.data)===null||Pr===void 0)?void 0:Pr.data_list}),Wr.abrupt("return");case 6:Cn!=null&&Cn.url&&yt(Cn==null?void 0:Cn.url);case 7:case"end":return Wr.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),et=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn;return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.rb)({identifier:Me.id});case 2:if(cn=Cn.sent,!((cn==null?void 0:cn.status)!==0)){Cn.next=5;break}return Cn.abrupt("return");case 5:cn!=null&&cn.remainingSeconds?(Gt(Date.now()+cn.remainingSeconds*1e3),$n(cn.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(cn.remainingSeconds-300)*1e3)):$e();case 6:case"end":return Cn.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),$e=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 dn=Object(a.a)(n.a.mark(function Fn(){return n.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:mt();case 1:case"end":return Ur.stop()}},Fn)}));function cn(){return dn.apply(this,arguments)}return cn}()})},mt=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn;return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return vr(Lt.Loading),Cn.next=3,Object(s.Cb)({identifier:Me.id});case 3:if(cn=Cn.sent,!((cn==null?void 0:cn.status)!==0)){Cn.next=6;break}return Cn.abrupt("return");case 6:vr(Lt.Finish),yt(cn.url),zr.current=cn.port,m.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return Cn.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),rt=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:nr,format:"HH:mm:ss",onFinish:Mt})),"\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 dn=Object(a.a)(n.a.mark(function Fn(){var Cn;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(Cn=Pr.sent,!(Cn.status===0)){Pr.next=7;break}return Pr.next=6,et();case 6:m.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Pr.stop()}},Fn)}));function cn(){return dn.apply(this,arguments)}return cn}()})},Mt=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(){mt()}})},Vt=function(dn){tn({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},pn=function(){var ln=Object(a.a)(n.a.mark(function dn(cn){return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.Pb)({id:Me.id,startup_file:cn});case 2:Ie(),tn({type:"practiceSetting/getCommonData",payload:Object(K.a)({},Me)});case 4:case"end":return Cn.stop()}},dn)}));return function(cn){return ln.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 Vt(Xt.ExecPath)}},b.a.createElement(W.a,{value:dt})),b.a.createElement(U.a,{flex:"1"},b.a.createElement(I.a,{type:"primary",className:"ml10",onClick:function(){return Vt(Xt.ExecPath)}},"\u8BBE\u7F6E"))),b.a.createElement("iframe",{onLoad:function(dn){},src:dt,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(dn){return pn(dn)}}))},xn=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.practiceSetting,tn=Sn.shixunsDetail;return{globalSetting:hn,loading:Yt,practiceSetting:Dn,shixunsDetail:tn}})(rn),gn=function(Yt){var hn=Yt.tabsActive,Dn=Object(g.a)(Yt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,hn==="information"&&b.a.createElement(tt,null),hn==="warehouse"&&b.a.createElement(ut.default,null),hn==="level"&&b.a.createElement(Ye,Dn),hn==="collaborate"&&b.a.createElement(Wn,Dn),hn==="setting"&&b.a.createElement(Kn.a,null),hn==="environment"&&b.a.createElement(Zt,Dn),hn==="dataset"&&b.a.createElement(Ja,null),hn==="service"&&b.a.createElement(xn,Dn))},Nn=gn,An=o("Jv0p"),an=o.n(An),Pn=o("luix"),yn=o.n(Pn),kn=[{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"}],Rn=function(Yt){var hn,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.practiceSetting,Un=Object(g.a)(Yt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),ar=In.base_info_warning,qn=In.challenges_warning,Rr=In.id,Ir=In.repository_warning,Jn=In.sideBar,Ar=In.service_warning,vr=Object(w.h)(),zr=Object(w.i)();Object(O.useEffect)(function(){var nr,Gt,$t=vr==null||((nr=vr.query)===null||nr===void 0)?void 0:nr.tabId,Jt=vr.pathname.split("/").length,Xn=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Ln){return Ln.tabId!=="dataset"}):kn,$n=Xn.map(function(Ln){return Ln.tabId}).includes($t);if($t&&$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:$t}});return}if(Jt>4){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!$t||$t&&!$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[_n==null||((hn=_n.detail)===null||hn===void 0)?void 0:hn.windows_vnc]),Object(O.useEffect)(function(){return function(){wn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},In.sideBar),{},{selectPath:""})})}},[zr.id]);var Lr=function(Gt){var $t;if(Gt===Jn.tabsActive)return;var Jt=function(){E.d.push("/shixuns/".concat(Rr,"/edit?tabId=").concat(Gt)),wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Gt,selectPath:"",confirmLeave:!1}})};In!=null&&($t=In.sideBar)!==null&&$t!==void 0&&$t.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 Gt,$t=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Jt){return Jt.tabId!=="dataset"}):kn;return $t.filter(function(Jt){var Xn;return _n!=null&&(Xn=_n.detail)!==null&&Xn!==void 0&&Xn.is_jupyter_lab?Jt.tabId!=="level":Jt.tabId!=="service"}).map(function(Jt){var Xn=Jt.name,$n=Jt.icon,Ln=Jt.tabId;return b.a.createElement("div",{key:Ln,className:In.sideBar.tabsActive===Ln?an.a.itemActive:an.a.item,onClick:function(){return Lr(Ln)}},$n,b.a.createElement("span",{className:an.a.name},Xn),Ln==="information"&&ar&&b.a.createElement(En.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:yn.a,alt:""})),Ln==="level"&&qn&&b.a.createElement(En.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:yn.a,alt:""})),Ln==="service"&&Ar&&b.a.createElement(En.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:yn.a,alt:""})),Ln==="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:""})))))},Yn=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.shixunsDetail,tn=Sn.practiceSetting;return{globalSetting:hn,loading:Yt,practiceSetting:tn,shixunsDetail:Dn}})(Rn),mr=function(Yt){var hn=Yt.globalSetting,Dn=Yt.loading,tn=Yt.dispatch,wn=Yt.practiceSetting,_n=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting"]),In=wn.sideBar,Un=In.tabsActive,ar=Object(w.i)();return Object(O.useEffect)(function(){return tn({type:"globalSetting/headerFooterToggle",payload:!1}),tn({type:"shixunsDetail/getShixunsDetail",payload:ar}),tn({type:"shixunsDetail/getSettingsData",payload:ar}),function(){tn({type:"globalSetting/headerFooterToggle",payload:!0}),tn({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(Yn,null)),b.a.createElement("div",{className:C.a.wrapContent},b.a.createElement(Nn,Object(M.a)({},_n,{tabsActive:wn.sideBar.tabsActive})))))},Br=z.default=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.practiceSetting;return{globalSetting:hn,loading:Yt,practiceSetting:Dn}})(mr)},WYAk:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){(function(){var g=M,O=g.lib,b=O.Base,y=g.enc,C=y.Utf8,A=g.algo,m=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"),g=o("Ff2n"),O=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),C=o("JX7q"),A=o("Ji7U"),m=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=[],L=0;L<x;L+=1){var N;U.push(e.createElement("span",{key:L,className:a()(T,(N={},Object(M.a)(N,"".concat(T,"-start"),S[L+1]),Object(M.a)(N,"".concat(T,"-end"),v[L+1]),Object(M.a)(N,"".concat(T,"-end-first-level"),!L&&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(m.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,L=x.props.context.onNodeCheck;if(!x.isCheckable()||T)return;S.preventDefault();var N=!U;L(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,L=x.hasChildren();return v===!1?!1:v||!U&&!L||U&&T&&!L},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,L=x.props.context,N=L.loadData,V=L.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,L=U.prefixCls,N=U.switcherIcon,V=T||N;if(x.isLeaf())return e.createElement("span",{className:a()("".concat(L,"-switcher"),"".concat(L,"-switcher-noop"))},typeof V=="function"?V(Object(O.a)(Object(O.a)({},x.props),{},{isLeaf:!0})):V);var H=a()("".concat(L,"-switcher"),"".concat(L,"-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,L=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(L,"-checkbox"),v&&"".concat(L,"-checkbox-checked"),!v&&T&&"".concat(L,"-checkbox-indeterminate"),(N||U)&&"".concat(L,"-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,L=v.icon,N=v.loading,V=v.data,H=x.props.context,D=H.prefixCls,W=H.showIcon,F=H.icon,I=H.draggable,K=H.loadData,ee=H.titleRender,he=x.isDisabled(),de="".concat(D,"-node-content-wrapper"),Se;if(W){var Te=L||F;Se=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&&(Se=x.renderIcon());var ce;typeof T=="function"?ce=T(V):ee?ce=ee(V):ce=T;var be=e.createElement("span",{className:"".concat(D,"-title")},ce);return e.createElement("span",{ref:x.setSelectHandle,title:typeof T=="string"?T:"",className:a()("".concat(de),"".concat(de,"-").concat(x.getNodeState()||"normal"),!he&&(U||S)&&"".concat(D,"-node-selected"),!he&&I&&"draggable"),draggable:!he&&I||void 0,"aria-grabbed":!he&&I||void 0,onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onContextMenu:x.onContextMenu,onClick:x.onSelectorClick,onDoubleClick:x.onSelectorDoubleClick,onDragStart:I?x.onDragStart:void 0},Se,be)},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,L=v.style,N=v.dragOver,V=v.dragOverGapTop,H=v.dragOverGapBottom,D=v.isLeaf,W=v.isStart,F=v.isEnd,I=v.expanded,K=v.selected,ee=v.checked,he=v.halfChecked,de=v.loading,Se=v.domRef,Te=v.active,ce=v.onMouseMove,be=Object(g.a)(v,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ye=this.props.context,ue=ye.prefixCls,se=ye.filterTreeNode,$=ye.draggable,me=ye.keyEntities,re=this.isDisabled(),ae=Object(n.f)(be),Oe=me[T]||{},le=Oe.level,te=F[F.length-1];return e.createElement("div",Object.assign({ref:Se,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(I?"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"),de),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:L,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"),g=o("ODXe"),O=o("Ff2n"),b=o("q1tI"),y=o.n(b),C=o("TSYQ"),A=o.n(C),m=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(m.a)(!1,{value:h,defaultValue:d}),v=Object(g.a)(S,2),T=v[0],U=v[1];function L(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?L(!1,D):D.which===e.a.RIGHT&&L(!0,D),R==null||R(D)}function V(D){var W=L(!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"),g=o("1OyB"),O=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),C=o("q1tI"),A=o("VTBJ"),m=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 be,ye=ce.target;(be=i.get(ye))===null||be===void 0||be.forEach(function(ue){return ue(ye)})})}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)(be,Te);var ce=Object(y.a)(be);function be(){return Object(g.a)(this,be),ce.apply(this,arguments)}return Object(O.a)(be,[{key:"render",value:function(){return this.props.children}}]),be}(C.Component),E=C.createContext(null);function _(Te){var ce=Te.children,be=Te.onBatchResize,ye=C.useRef(0),ue=C.useRef([]),se=C.useContext(E),$=C.useCallback(function(me,re,ae){ye.current+=1;var Oe=ye.current;ue.current.push({size:me,element:re,data:ae}),Promise.resolve().then(function(){Oe===ye.current&&(be==null||be(ue.current),ue.current=[])}),se==null||se(me,re,ae)},[be,se]);return C.createElement(E.Provider,{value:$},ce)}function P(Te){var ce=Te.children,be=Te.disabled,ye=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,ye)},[re,ye]),Oe=C.useRef(Te);Oe.current=Te;var le=C.useCallback(function(te){var Q=Oe.current,J=Q.onResize,ve=Q.data,_e=te.getBoundingClientRect(),Ae=_e.width,Je=_e.height,tt=te.offsetWidth,ut=te.offsetHeight,ft=Math.floor(Ae),vt=Math.floor(Je);if($.current.width!==ft||$.current.height!==vt||$.current.offsetWidth!==tt||$.current.offsetHeight!==ut){var _t={width:ft,height:vt,offsetWidth:tt,offsetHeight:ut};$.current=_t;var Ve=tt===Math.round(Ae)?Ae:tt,je=ut===Math.round(Je)?Je:ut,ht=Object(A.a)(Object(A.a)({},_t),{},{offsetWidth:Ve,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)(ye.current)||Object(l.a)(ue.current);return te&&!be&&s(te,le),function(){return u(te,le)}},[ye.current,be]),C.createElement(w,{ref:ue},me?C.cloneElement(ce,{ref:ae}):ce)}var R="rc-observer-key";function x(Te){var ce=Te.children,be=Object(e.a)(ce);return be.map(function(ye,ue){var se=(ye==null?void 0:ye.key)||"".concat(R,"-").concat(ue);return C.createElement(P,Object(M.a)({},Te,{key:se}),ye)})}x.Collection=_;var S=x,v=o("bT9E"),T=o("TSYQ"),U=o.n(T),L=`
|
|
|
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,be=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(ce&&V[be])return V[be];var ye=window.getComputedStyle(Te),ue=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),se=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),$=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),me=N.map(function(ae){return"".concat(ae,":").concat(ye.getPropertyValue(ae))}).join(";"),re={sizingStyle:me,paddingSize:se,borderSize:$,boxSizing:ue};return ce&&be&&(V[be]=re),re}function W(Te){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=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(L)),H.value=Te.value||Te.placeholder||"";var ae=Number.MIN_SAFE_INTEGER,Oe=Number.MAX_SAFE_INTEGER,le=H.scrollHeight,te;if(me==="border-box"?le+=$:me==="content-box"&&(le-=se),be!==null||ye!==null){H.value=" ";var Q=H.scrollHeight-se;be!==null&&(ae=Q*be,me==="border-box"&&(ae=ae+se+$),le=Math.max(ae,le)),ye!==null&&(Oe=Q*ye,me==="border-box"&&(Oe=Oe+se+$),te=le>Oe?"":"hidden",le=Math.min(Oe,le))}return{height:le,minHeight:ae,maxHeight:Oe,overflowY:te,resize:"none"}}var F=o("Gytx"),I=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)(be,Te);var ce=Object(y.a)(be);function be(ye){var ue;return Object(g.a)(this,be),ue=ce.call(this,ye),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,Oe=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,Oe,Object(m.a)({},"".concat(me,"-disabled"),le));"value"in ve&&(ve.value=ve.value||"");var Ae=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:Ae,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:K.NONE},ue}return Object(O.a)(be,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!I()(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()}}]),be}(C.Component),he=ee,de=function(Te){Object(b.a)(be,Te);var ce=Object(y.a)(be);function be(ye){var ue;Object(g.a)(this,be),ue=ce.call(this,ye),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 ye.value=="undefined"||ye.value===null?ye.defaultValue:ye.value;return ue.state={value:se},ue}return Object(O.a)(be,[{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}}]),be}(C.Component),Se=z.default=de},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"),g=o("oBTY"),O=o("miYZ"),b=o("tsqr"),y=o("rAM+"),C=o("tJVT"),A=o("PpiC"),m=o("q1tI"),e=o.n(m),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(de){return{label:de,kind:ee.languages.CompletionItemKind.Field,insertText:de}}):[]};function P(I,K,ee,he,de){var Se=K.getWordUntilPosition(ee),Te={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},ce=he.map(function(be){return{label:be,kind:I.languages.CompletionItemKind.Keyword,insertText:be,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Te}});return de.map(function(be){ce.push(Object(M.a)(Object(M.a)({},be),{},{range:Te}))}),ce}var R=function(I){u.languages.map(function(de){return I.languages.registerDocumentFormattingEditProvider(de,{provideDocumentFormattingEdits:function(Te,ce,be){return Object(a.a)(n.a.mark(function ye(){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()}},ye)}))()}}),de});var K=c.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ee=h.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),he=r.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}});I.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(c.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(c.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}}),I.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn};return{suggestions:Object(g.a)(i.keywords.map(function(ye){return{label:ye,kind:I.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}}))}}}),I.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(r.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(r.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}}),I.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(h.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(h.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}})},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(I){return/^\d+$/.test(I)?"".concat(I,"px"):I}function L(){}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 I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=I;if(Array.isArray(I)){for(var ee=0;ee<I.length;ee++){var he=V[I[ee]];if(he)return he}return K[0]}return V[K]||K}var D=null,W=z.b=function(I){var K=I.width,ee=K===void 0?"100%":K,he=I.height,de=he===void 0?"100%":he,Se=I.value,Te=I.language,ce=Te===void 0?"javascript":Te,be=I.style,ye=be===void 0?{}:be,ue=I.options,se=ue===void 0?{}:ue,$=I.overrideServices,me=$===void 0?{}:$,re=I.theme,ae=re===void 0?"vs-dark":re,Oe=I.onEditBlur,le=I.onSave,te=I.autoHeight,Q=te===void 0?!1:te,J=I.forbidCopy,ve=J===void 0?!1:J,_e=I.onChange,Ae=_e===void 0?L:_e,Je=I.editorDidMount,tt=Je===void 0?L:Je,ut=I.onFocus,ft=ut===void 0?L:ut,vt=I.filename,_t=vt===void 0?"educoder.txt":vt,Ve=I.errorLine,je=I.errorContent,ht=je===void 0?"":je,Bt=Object(A.a)(I,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Et=Object(m.useRef)(),Pt=Object(m.useRef)({}),qe=Object(m.useRef)(),He=Object(m.useRef)(),Ye=Object(m.useRef)(!1),Ce=Object(m.useRef)(),Le=Object(m.useState)(!1),We=Object(C.a)(Le,2),Ue=We[0],ze=We[1];function st(){var jt;return Et.current&&(jt=new f.default(function(on){var vn=Object(y.a)(on),Wn;try{for(vn.s();!(Wn=vn.n()).done;){var Kn=Wn.value;(Kn.target.offsetHeight>0||Kn.target.offsetWidth>0)&&Pt.current.instance.layout()}}catch(Hn){vn.e(Hn)}finally{vn.f()}}),jt.observe(Et.current)),jt}function Ct(){b.b.warn(decodeURIComponent(x))}var Wt=function(){var on=Pt.current.instance;if(Se!=null&&on&&Ue){var vn=on.getModel();vn&&Se!==vn.getValue()&&(N=!0,vn.setValue(Se),on.layout(),N=!1)}};Object(m.useEffect)(function(){He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Wt()},500)},[Se,Ue,Pt.current]),Object(m.useEffect)(function(){if(Ve&&Pt.current&&Pt.current.instance){var jt=Pt.current.instance;jt.changeViewZones(function(vn){var Wn=document.createElement("div");Wn.style.padding="10px 20px",Wn.style.width="calc(100% - 20px)",Wn.className="my-error-line-wrp",Wn.innerHTML=ht,vn.addZone({afterLineNumber:Ve||11,heightInLines:3,domNode:Wn})});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}};jt.addOverlayWidget(on),jt.revealPositionInCenter({lineNumber:20,column:1})}},[Ve,Pt.current,Ue]);function Qt(){var jt=Pt.current.instance;if(jt){var on=jt.getSelection(),vn=Pt.current.pastePos||{},Wn=new D.Range(vn.startLineNumber||on.endLineNumber,vn.startColumn||on.endColumn,vn.endLineNumber||on.endLineNumber,vn.endColumn||on.endColumn);setTimeout(function(){jt.executeEdits("",[{range:Wn,text:""}])},300)}}function Kt(jt){(window.navigator.platform.match("Mac")?jt.metaKey:jt.ctrlKey)&&jt.keyCode==83&&(jt.preventDefault(),le())}var Ot=function(){if(Q&&Pt.current.instance){var on=Pt.current.instance.getContentHeight();ct(on<de?de:on)}else ct(de)};function Fe(jt){var on=document.createEvent("MouseEvents");on.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),jt.dispatchEvent(on)}function at(jt,on){var vn=window.URL||window.webkitURL||window,Wn=new Blob([on]),Kn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Kn.href=vn.createObjectURL(Wn),Kn.download=jt,Fe(Kn)}Object(m.useEffect)(function(){Ot()},[Ot]),Object(m.useEffect)(function(){Et.current&&!Ue&&Promise.all([o.e(16),o.e(28)]).then(o.t.bind(null,"M/lh",7)).then(function(jt){try{D=jt,Pt.current.instance=D.editor.create(Et.current,{value:Se,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,vn=S.d._menuItems,Wn=Object(g.a)(vn).find(function(Zn){return Zn[0]._debugName=="EditorContext"}),Kn=Wn[1],Hn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],fn=function(cr,dr){var Dr=cr._first;do{var hr,sn,en=dr.includes((hr=Dr.element)===null||hr===void 0||((sn=hr.command)===null||sn===void 0)?void 0:sn.id);en&&cr._remove(Dr)}while(Dr=Dr.next)};if(tt(on,D),setTimeout(function(){Ot(),Pt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){at(_t||"educoder.txt",on.getValue())}}),on.getDomNode().addEventListener("input",function(){qe.current.autoFormat&&on.getAction("editor.action.formatDocument").run()})},500),Pt.current.subscription=on.onDidChangeModelContent(function(Zn){Ye.current?clearTimeout(Ce.current):(Ot(),Ae(on.getValue(),Zn)),Ce.current=setTimeout(function(){Ye.current=!1},500)}),window.Monaco||R(D,H(ce)),ve&&(fn(Kn,Hn),Et.current.classList.add("noCopyPaste"),on.onKeyDown(function(Zn){var cr=Zn.keyCode,dr=Zn.ctrlKey,Dr=Zn.metaKey;(cr===33||cr===52)&&(Dr||dr)&&(Ct(),Zn.preventDefault())})),window.Monaco=D,Oe&&on.onDidBlurEditorWidget(function(){Oe(on.getValue())}),ft&&on.onDidFocusEditorText(function(){ft(on.getValue())}),ve){on.addCommand(D.KeyMod.CtrlCmd|D.KeyCode.KEY_V,function(){return Ct(),null}),on.onDidPaste(function(Zn){Pt.current.pastePos=Zn});try{window.addEventListener("paste",Qt)}catch(Zn){}}var lr=st();return ze(!0),function(){var Zn=Pt.current.instance;Zn.dispose();var cr=Zn.getModel();cr&&cr.dispose(),Pt.current.subscription&&Pt.current.subscription.dispose(),ve&&window.removeEventListener("paste",Qt),lr.unobserve(Et.current)}}catch(Zn){}})},[]),Object(m.useEffect)(function(){var jt=Pt.current.instance;if(jt&&Ue)return document.addEventListener("keydown",Kt,!1),function(){document.removeEventListener("keydown",Kt)}},[le,Ue]),Object(m.useEffect)(function(){var jt=Pt.current.instance;if(jt&&Ue){var on=H(ce);D.editor.setModelLanguage(jt.getModel(),on),console.log("language:",ce,jt.getModel(),on)}},[ce,Ue]),Object(m.useEffect)(function(){var jt=Pt.current.instance;jt&&Ue&&D.editor.setTheme(ae)},[ae,Ue]),Object(m.useEffect)(function(){var jt=Pt.current.instance;qe.current=se,jt&&Ue&&(jt.updateOptions(Object(M.a)({},se)),setTimeout(function(){jt.getModel().updateOptions(Object(M.a)({},se))},200))},[JSON.stringify(se),Ue]),Object(m.useEffect)(function(){var jt=Pt.current.instance;jt&&Ue&&jt.layout()},[ee,de,Ue]);var it=Object(m.useState)(U(ee)),Pe=Object(C.a)(it,2),Qe=Pe[0],pt=Pe[1],bt=Object(m.useState)(U(de)),Dt=Object(C.a)(bt,2),It=Dt[0],ct=Dt[1],Nt=Object(M.a)(Object(M.a)({},ye),{},{width:Qe,height:It});return e.a.createElement("div",{className:"my-monaco-editor",ref:Et,style:Nt})};function F(I){var K=I.width,ee=K===void 0?"100%":K,he=I.height,de=he===void 0?"100%":he,Se=I.original,Te=I.modified,ce=I.language,be=I.options,ye=be===void 0?{}:be,ue=Object(m.useRef)(),se=Object(m.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),Ae;try{for(_e.s();!(Ae=_e.n()).done;){var Je=Ae.value;(Je.target.offsetHeight>0||Je.target.offsetWidth>0)&&Q.layout()}}catch(tt){_e.e(tt)}finally{_e.f()}}),J.observe(ue.current)),J}Object(m.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},ye),{},{wordWrap:!0}));re(J);var ve=ae(J);return function(){J.dispose();var _e=J.getModel();_e&&_e.dispose(),ve.unobserve(ue.current)}})},[]),Object(m.useEffect)(function(){me&&me.setModel({original:D.editor.createModel(Se,ce),modified:D.editor.createModel(Te,ce)})},[Se,Te,ce,me]);var Oe=U(ee),le=U(de),te={width:Oe,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 g(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 g(n.overflowY,l)||g(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,L=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"?L:V,W=[],F=0;F<w.length;F++){var I=w[F],K=I.getBoundingClientRect(),ee=K.height,he=K.width,de=K.top,Se=K.right,Te=K.bottom,ce=K.left;if(i==="if-needed"&&U>=0&&V>=0&&N<=P&&L<=_&&U>=de&&N<=Te&&V>=ce&&L<=Se)return W;var be=getComputedStyle(I),ye=parseInt(be.borderLeftWidth,10),ue=parseInt(be.borderTopWidth,10),se=parseInt(be.borderRightWidth,10),$=parseInt(be.borderBottomWidth,10),me=0,re=0,ae="offsetWidth"in I?I.offsetWidth-I.clientWidth-ye-se:0,Oe="offsetHeight"in I?I.offsetHeight-I.clientHeight-ue-$:0;if(u===I)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+_,_,ye,se,R+D,R+D+T,T),me=Math.max(0,me+x),re=Math.max(0,re+R);else{me=r==="start"?H-de-ue:r==="end"?H-Te+$+Oe:r==="nearest"?b(de,Te,ee,ue,$+Oe,H,H+v,v):H-(de+ee/2)+Oe/2,re=c==="start"?D-ce-ye:c==="center"?D-(ce+he/2)+ae/2:c==="end"?D-Se+se+ae:b(ce,Se,he,ye,se+ae,D,D+T,T);var le=I.scrollLeft,te=I.scrollTop;H+=te-(me=Math.max(0,Math.min(te+me,I.scrollHeight-ee+Oe))),D+=le-(re=Math.max(0,Math.min(le+re,I.scrollWidth-he+ae)))}W.push({el:I,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 m(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=m(l);return A(y(a,i),i.behavior)}var f=z.a=e},Zss7:function(k,z,o){var M;(function(g){var O=/^\s+/,b=/\s+$/,y=0,C=g.round,A=g.min,m=g.max,e=g.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,Oe,le,te;return me=$.r/255,re=$.g/255,ae=$.b/255,me<=.03928?Oe=me/12.92:Oe=g.pow((me+.055)/1.055,2.4),re<=.03928?le=re/12.92:le=g.pow((re+.055)/1.055,2.4),ae<=.03928?te=ae/12.92:te=g.pow((ae+.055)/1.055,2.4),.2126*Oe+.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 Oe=f($);re="#"+s(Oe._r,Oe._g,Oe._b,Oe._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,Oe=!me&&ae&&($==="hex"||$==="hex6"||$==="hex3"||$==="hex4"||$==="hex8"||$==="name");return Oe?$==="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(L,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]=Se($[ae]));$=re}return f($,me)};function a($){var me={r:0,g:0,b:0},re=1,ae=null,Oe=null,le=null,te=!1,Q=!1;return typeof $=="string"&&($=ue($)),typeof $=="object"&&(ye($.r)&&ye($.g)&&ye($.b)?(me=l($.r,$.g,$.b),te=!0,Q=String($.r).substr(-1)==="%"?"prgb":"rgb"):ye($.h)&&ye($.s)&&ye($.v)?(ae=Se($.s),Oe=Se($.v),me=c($.h,ae,Oe),te=!0,Q="hsv"):ye($.h)&&ye($.s)&&ye($.l)&&(ae=Se($.s),le=Se($.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,m(me.r,0)),g:A(255,m(me.g,0)),b:A(255,m(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=m($,me,re),Oe=A($,me,re),le,te,Q=(ae+Oe)/2;if(ae==Oe)le=te=0;else{var J=ae-Oe;te=Q>.5?J/(2-ae-Oe):J/(ae+Oe);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,Oe,le;$=F($,360),me=F(me,100),re=F(re,100);function te(ve,_e,Ae){return Ae<0&&(Ae+=1),Ae>1&&(Ae-=1),Ae<1/6?ve+(_e-ve)*6*Ae:Ae<1/2?_e:Ae<2/3?ve+(_e-ve)*(2/3-Ae)*6:ve}if(me===0)ae=Oe=le=re;else{var Q=re<.5?re*(1+me):re+me-re*me,J=2*re-Q;ae=te(J,Q,$+1/3),Oe=te(J,Q,$),le=te(J,Q,$-1/3)}return{r:ae*255,g:Oe*255,b:le*255}}function r($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=A($,me,re),le,te,Q=ae,J=ae-Oe;if(te=ae===0?0:J/ae,ae==Oe)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=g.floor($),Oe=$-ae,le=re*(1-me),te=re*(1-Oe*me),Q=re*(1-(1-Oe)*me),J=ae%6,ve=[re,te,le,le,Q,re][J],_e=[Q,re,re,te,le,le][J],Ae=[le,le,Q,re,re,te][J];return{r:ve*255,g:_e*255,b:Ae*255}}function h($,me,re,ae){var Oe=[de(C($).toString(16)),de(C(me).toString(16)),de(C(re).toString(16))];return ae&&Oe[0].charAt(0)==Oe[0].charAt(1)&&Oe[1].charAt(0)==Oe[1].charAt(1)&&Oe[2].charAt(0)==Oe[2].charAt(1)?Oe[0].charAt(0)+Oe[1].charAt(0)+Oe[2].charAt(0):Oe.join("")}function d($,me,re,ae,Oe){var le=[de(C($).toString(16)),de(C(me).toString(16)),de(C(re).toString(16)),de(Te(ae))];return Oe&&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 Oe=[de(Te(ae)),de(C($).toString(16)),de(C(me).toString(16)),de(C(re).toString(16))];return Oe.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=I(re.s),f(re)}function w($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.s+=me/100,re.s=I(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=I(re.l),f(re)}function P($,me){me=me===0?0:me||10;var re=f($).toRgb();return re.r=m(0,A(255,re.r-C(255*-(me/100)))),re.g=m(0,A(255,re.g-C(255*-(me/100)))),re.b=m(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=I(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 L($,me,re){me=me||6,re=re||30;var ae=f($).toHsl(),Oe=360/re,le=[f($)];for(ae.h=(ae.h-(Oe*me>>1)+720)%360;--me;)ae.h=(ae.h+Oe)%360,le.push(f(ae));return le}function N($,me){me=me||6;for(var re=f($).toHsv(),ae=re.h,Oe=re.s,le=re.v,te=[],Q=1/me;me--;)te.push(f({h:ae,s:Oe,v:le})),le=(le+Q)%1;return te}f.mix=function($,me,re){re=re===0?0:re||50;var ae=f($).toRgb(),Oe=f(me).toRgb(),le=re/100,te={r:(Oe.r-ae.r)*le+ae.r,g:(Oe.g-ae.g)*le+ae.g,b:(Oe.b-ae.b)*le+ae.b,a:(Oe.a-ae.a)*le+ae.a};return f(te)},f.readability=function($,me){var re=f($),ae=f(me);return(g.max(re.getLuminance(),ae.getLuminance())+.05)/(g.min(re.getLuminance(),ae.getLuminance())+.05)},f.isReadable=function($,me,re){var ae=f.readability($,me),Oe,le;le=!1,Oe=se(re);switch(Oe.level+Oe.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,Oe=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>Oe&&(Oe=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,m(0,parseFloat($))),re&&($=parseInt($*me,10)/100),g.abs($-me)<1e-6?1:$%me/parseFloat(me)}function I($){return A(1,m(0,$))}function K($){return parseInt($,16)}function ee($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function he($){return typeof $=="string"&&$.indexOf("%")!=-1}function de($){return $.length==1?"0"+$:""+$}function Se($){return $<=1&&($=$*100+"%"),$}function Te($){return g.round(parseFloat($)*255).toString(16)}function ce($){return K($)/255}var be=function(){var $="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+$+")",ae="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Oe="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ae),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+ae),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+ae),hsva:new RegExp("hsva"+Oe),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 ye($){return!!be.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=be.rgb.exec($))?{r:re[1],g:re[2],b:re[3]}:(re=be.rgba.exec($))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=be.hsl.exec($))?{h:re[1],s:re[2],l:re[3]}:(re=be.hsla.exec($))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=be.hsv.exec($))?{h:re[1],s:re[2],v:re[3]}:(re=be.hsva.exec($))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=be.hex8.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),a:ce(re[4]),format:me?"name":"hex8"}:(re=be.hex6.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),format:me?"name":"hex"}:(re=be.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=be.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,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return function(g){var O=M,b=O.lib,y=b.CipherParams,C=O.enc,A=C.Hex,m=O.format,e=m.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 g});var M=o("VTBJ");function g(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"),g=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"),g=o("2/Rp"),O=o("T2oS"),b=o("W9HT"),y=o("14J3"),C=o("BMrR"),A=o("2qtc"),m=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),L=o("Ty5D"),N=o("9kvl"),V=o("BoS7"),H=o("Sdc0"),D=o("oBTY"),W=o("ozfa"),F=o("MJZm"),I=o("P5Jw"),K=o("5NDa"),ee=o("5rEg"),he=o("y8nQ"),de=o("Vl3Y"),Se=o("aBPH"),Te=o.n(Se),ce=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)(""),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1];Object(S.useEffect)(function(){Dt.visible&&fn.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var en=sn.split(",").join("/"),On=en.indexOf("/")===0?en.substr(1):en;dr(On)}},[]),Object(S.useEffect)(function(){var sn,en;Wn.current=(sn=It.pathname)===null||sn===void 0||((en=sn.split("/"))===null||en===void 0)?void 0:en[2]},[]);var Dr=function(){var sn=Object(c.a)(x.a.mark(function en(){var On,Fr,Or=arguments;return x.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},fr.next=3,pt({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:On.commitMessage,content:"",path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),secret_repository:bt?void 0:!0}});case 3:Fr=fr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),name:On.path.split("/")[On.path.split("/").length-1]}),Dt.onClose());case 5:case"end":return fr.stop()}},en)}));return function(){return sn.apply(this,arguments)}}(),hr=function(){var en,On;N.d.push("/shixuns/".concat(Wn.current,"/").concat((en=It.pathname)===null||en===void 0||((On=en.split("/"))===null||On===void 0)?void 0:On[3]).concat(cr?"/master/shixun_show/".concat(cr):""))};return v.a.createElement(m.a,{width:"60%",centered:!0,visible:Dt.visible,wrapClassName:Te.a.modal,onOk:function(){fn.submit()},onCancel:Dt.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(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:Dr,onChange:function(){var en,On,Fr,Or,xr=Object(n.a)({},fn.getFieldsValue()),fr=xr==null||((en=xr.path)===null||en===void 0)?void 0:en.split(""),pe=xr==null||((On=xr.file)===null||On===void 0)?void 0:On.split("");fr!=null&&(Fr=fr.filter(function(X){return X=="/"}))!==null&&Fr!==void 0&&Fr.length&&(xr.path=xr.path.substring(0,xr.path.length-1)),pe!=null&&(Or=pe.filter(function(X){return X=="/"}))!==null&&Or!==void 0&&Or.length&&(xr.file=xr.file.substring(0,xr.path.length-1)),fn.setFieldsValue(Object(n.a)({},xr)),vn(xr)}},v.a.createElement(de.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},Dt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.a.createElement(de.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(de.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(de.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"}))))))},be=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ce),ye=o("7ahc"),ue=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)(""),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1];Object(S.useEffect)(function(){Dt.visible&&fn.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var en=sn.split(",").join("/"),On=en.indexOf("/")===0?en.substr(1):en;dr(On)}},[]),Object(S.useEffect)(function(){var sn,en;Wn.current=(sn=It.pathname)===null||sn===void 0||((en=sn.split("/"))===null||en===void 0)?void 0:en[2]},[]);var Dr=function(){var sn=Object(c.a)(x.a.mark(function en(){var On,Fr,Or=arguments;return x.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},fr.next=3,pt({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:On.commitMessage,content:On.codeMirror,path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path,secret_repository:bt?void 0:!0}});case 3:Fr=fr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path,name:On.path.split("/")[On.path.split("/").length-1]}),Dt.onClose());case 5:case"end":return fr.stop()}},en)}));return function(){return sn.apply(this,arguments)}}(),hr=function(){var en,On;N.d.push("/shixuns/".concat(Wn.current,"/").concat((en=It.pathname)===null||en===void 0||((On=en.split("/"))===null||On===void 0)?void 0:On[3]).concat(cr?"/master/shixun_show/".concat(cr):""))};return v.a.createElement(m.a,{width:"60%",visible:Dt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){fn.submit()},onCancel:Dt.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(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:Dr,onChange:function(){var en,On,Fr=Object(n.a)({},fn.getFieldsValue()),Or=Fr==null||((en=Fr.path)===null||en===void 0)?void 0:en.split("");(Or==null||((On=Or.filter(function(xr){return xr=="/"}))===null||On===void 0)?void 0:On.length)>1&&(Fr.path=Fr.path.substring(0,Fr.path.length-1)),fn.setFieldsValue(Object(n.a)({},Fr)),vn(Fr)}},v.a.createElement(de.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},Dt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.a.createElement(de.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(de.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(de.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},v.a.createElement(ye.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(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ue),$=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)(""),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1],Dr=Object(S.useState)(""),hr=Object(w.a)(Dr,2),sn=hr[0],en=hr[1];Object(S.useEffect)(function(){Dt.visible&&fn.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var Or=Dt.defaultPath.split("/");Or.length===1?(dr(""),en(Dt.defaultPath)):(en(Or.pop()),dr(Or.join("/")+"/"))},[Dt.defaultPath]),Object(S.useEffect)(function(){var Or,xr;Wn.current=(Or=It.pathname)===null||Or===void 0||((xr=Or.split("/"))===null||xr===void 0)?void 0:xr[2]},[]);var On=function(){var Or=Object(c.a)(x.a.mark(function xr(){var fr,pe,X=arguments;return x.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return fr=X.length>0&&X[0]!==void 0?X[0]:{},oe.next=3,pt({type:"shixunsDetail/moveGitFile",payload:{id:ct.id,from:Dt.defaultPath,to:cr+fr.path,message:fr.commitMessage||"".concat(Dt.defaultPath," rename to ").concat(cr).concat(fr.path," "),secret_repository:bt}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:fr.path,name:fr.path}),Dt.onClose());case 5:case"end":return oe.stop()}},xr)}));return function(){return Or.apply(this,arguments)}}(),Fr=function(){var xr,fr;N.d.push("/shixuns/".concat(Wn.current,"/").concat((xr=It.pathname)===null||xr===void 0||((fr=xr.split("/"))===null||fr===void 0)?void 0:fr[3]).concat(cr?"/master/shixun_show/".concat(cr):""))};return v.a.createElement(m.a,{width:"40%",visible:Dt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){fn.submit()},onCancel:Dt.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(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:On,onChange:function(){var xr,fr,pe=Object(n.a)({},fn.getFieldsValue()),X=pe==null||((xr=pe.path)===null||xr===void 0)?void 0:xr.split("");(X==null||((fr=X.filter(function(q){return q=="/"}))===null||fr===void 0)?void 0:fr.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),fn.setFieldsValue(Object(n.a)({},pe)),vn(pe)}},v.a.createElement(de.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(de.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:sn}))))),v.a.createElement(de.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(Dt.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})($),re=o("DZo9"),ae=o("8z0m"),Oe=o("m3rI"),le=o("8j3D"),te=o("RC3E"),Q=o.n(te),J=ae.a.Dragger,ve=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)([]),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1],Dr=Object(S.useState)(),hr=Object(w.a)(Dr,2),sn=hr[0],en=hr[1],On;Object(S.useEffect)(function(){Dt.visible&&(fn.resetFields(),dr([]))},[Dt.visible]),Object(S.useEffect)(function(){Wn.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;en(oe)}},[]);var Fr=function(q){if(On=q.file.name,q.file.status==="done"||q.file.status==="uploading"){var oe,De,fe;if(dr(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}dr(cr.filter(function(ot){return ot.uid!==q.file.uid})),((De=q.file.response)===null||De===void 0?void 0:De.message)&&d.b.info((fe=q.file.response)===null||fe===void 0?void 0:fe.message)}},Or=function(){var X=Object(c.a)(x.a.mark(function q(oe){var De;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,pt({type:"shixunsDetail/deleteGitFile",payload:{id:ct.id,path:sn?"".concat(sn,"/").concat(oe.name):oe.name,message:fn.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(sn?"".concat(sn,"/").concat(oe.name):oe.name),secret_repository:bt?null:!0}});case 5:De=ot.sent,De.status===0&&(dr(cr.filter(function(Zt){return Zt.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)}}(),xr={height:300,multiple:!0,withCredentials:!0,data:function(){var X=Object(c.a)(x.a.mark(function oe(){return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.abrupt("return",new Promise(function(){var ot=Object(c.a)(x.a.mark(function Zt(Mn,Vn){return x.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:setTimeout(Object(c.a)(x.a.mark(function un(){var jr,aa;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,fn.getFieldsValue();case 2:jr=er.sent,aa=Object(n.a)(Object(n.a)({},{path:Dt.defaultPath?Dt.defaultPath:"",message:on.commitMessage||"\u4E0A\u4F20\u4E86".concat(On)}),bt?{}:{secret_repository:!0}),Mn(aa);case 5:case"end":return er.stop()}},un)})),200);case 1:case"end":return En.stop()}},Zt)}));return function(Zt,Mn){return ot.apply(this,arguments)}}()));case 1:case"end":return fe.stop()}},oe)}));function q(){return X.apply(this,arguments)}return q}(),fileList:cr,method:"post",action:"".concat(Oe.a.API_SERVER,"/api/shixuns/").concat(Wn.current,"/upload_git_file.json"),onChange:Fr,onRemove:Or,beforeUpload:function(q){On=q.name}},fr=function(){var X=Object(c.a)(x.a.mark(function q(oe){return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,fn.validateFields();case 2:Dt.onClose(),Dt.onOK({path:Dt.defaultPath}),pe();case 5:case"end":return fe.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),pe=function(){var q,oe;N.d.push("/shixuns/".concat(Wn.current,"/").concat((q=It.pathname)===null||q===void 0||((oe=q.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(sn?"/master/shixun_show/".concat(sn):""))};return v.a.createElement(m.a,{visible:Dt.visible,onOk:fr,centered:!0,onCancel:Dt.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(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:fr,onValuesChange:function(){return vn(Object(n.a)({},fn.getFieldsValue()))}},v.a.createElement(de.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(de.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},v.a.createElement(J,xr,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 en(q)}})))},_e=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ve),Ae=o("Bbdw"),Je=o.n(Ae),tt=o("HpfO"),ut=o.n(tt),ft=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.dispatch,pt=Fe.title,bt=Fe.pathList,Dt=bt===void 0?[]:bt,It=Fe.showInputPath,ct=It===void 0?!1:It,Nt=Fe.isMergeSelectFile,jt=Nt===void 0?!1:Nt,on=Fe.onFinish,vn=on===void 0?function(){}:on,Wn=de.a.useForm(),Kn=Object(w.a)(Wn,1),Hn=Kn[0],fn=Object(L.i)(),lr=Object(L.h)(),Zn=Object(S.useRef)(),cr=Object(S.useState)(""),dr=Object(w.a)(cr,2),Dr=dr[0],hr=dr[1],sn=Object(S.useState)(""),en=Object(w.a)(sn,2),On=en[0],Fr=en[1],Or=Object(S.useState)([]),xr=Object(w.a)(Or,2),fr=xr[0],pe=xr[1],X=Object(S.useState)([]),q=Object(w.a)(X,2),oe=q[0],De=q[1];Object(S.useEffect)(function(){var qt,En;Zn.current=((qt=lr.pathname)===null||qt===void 0||((En=qt.split("/"))===null||En===void 0)?void 0:En[3])==="repository"},[]),Object(S.useEffect)(function(){if(at.actionTabs.key!=="Repository-SelectFilePath")return;var qt=Dt.join("/"),En=[];Dt.map(function(un,jr){jr===0?En.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(un),path:qt}):En.push({val:"/".concat(un),path:qt})}),pe(En),hr(qt),Fr(qt),fe(qt)},[at.actionTabs.key]);var fe=function(){var qt=Object(c.a)(x.a.mark(function En(un){var jr;return x.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Qe({type:Zn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:fn.id,path:un}});case 2:jr=oa.sent,jr&&De(jr.trees||[]);case 4:case"end":return oa.stop()}},En)}));return function(un){return qt.apply(this,arguments)}}(),ot=function(En){var un=Dr;En.type==="tree"&&(fr.length?fr.push({val:"/".concat(En.name),path:En.name}):fr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(En.name),path:En.name}),pe(fr),un=Dr?"".concat(Dr,"/").concat(En.name):En.name,hr(un)),fe(un)},Zt=function(En,un){var jr=fr.filter(function(oa,er){return er<=un});pe(jr);var aa=jr.filter(function(oa,er){return er!==0}).map(function(oa){return oa.val}).join("").substr(1);hr(aa),fe(aa)},Mn=function(){var qt=Object(c.a)(x.a.mark(function En(){var un,jr,aa;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(un=Hn==null?void 0:Hn.getFieldsValue(),jr=Dr?"".concat(Dr).concat(un!=null&&un.name?"/".concat(un==null?void 0:un.name):""):un==null?void 0:un.name,!jt){er.next=6;break}return vn(jr),Vn(),er.abrupt("return");case 6:if(!ct){er.next=16;break}return er.next=9,Hn.validateFields();case 9:return er.next=11,Qe({type:"shixunsDetail/uploadGitFolder",payload:Object(n.a)(Object(n.a)({},{id:fn.id,path:jr}),Zn.current?{}:{secret_repository:!0})});case 11:aa=er.sent,vn(On),aa.status===0&&d.b.info("\u65B0\u5EFA\u6210\u529F"),er.next=18;break;case 16:vn(jr),d.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Vn();case 19:case"end":return er.stop()}},En)}));return function(){return qt.apply(this,arguments)}}(),Vn=function(){Qe({type:"shixunsDetail/setActionTabs",payload:{}}),Hn.resetFields()};return v.a.createElement(m.a,{centered:!0,title:pt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:at.actionTabs.key==="Repository-SelectFilePath",onOk:Mn,onCancel:Vn},v.a.createElement("div",{className:ut.a.wrap},v.a.createElement("div",{className:ut.a.content},v.a.createElement("div",{className:ut.a.mainPathWrap},!!(fr!=null&&fr.length)&&fr.map(function(qt,En){return v.a.createElement("a",{key:En,onClick:function(){return Zt(qt,En)}},qt.val)})),!!(oe!=null&&oe.length)&&oe.map(function(qt,En){return qt.type==="tree"&&v.a.createElement("a",{key:En,onClick:function(){return ot(qt)}},v.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(ut.a.colorBlue)}),qt.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"},Dr),ct&&v.a.createElement(de.a,{form:Hn,scrollToFirstError:!0,className:"mt20"},v.a.createElement(de.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(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting;return{shixunsDetail:Fe,globalSetting:it,loading:at.models.index}})(ft),_t=o("GZ0F"),Ve=o("8Skl"),je=o("HBuW"),ht=o("1vsH"),Bt=o("NLgs"),Et=o("lzim"),Pt=F.a.DirectoryTree,qe=function(Fe){var at,it,Pe,Qe,pt,bt,Dt,It=Fe.shixunsDetail,ct=Fe.globalSetting,Nt=Fe.loading,jt=Fe.user,on=Fe.activeKey,vn=Fe.dispatch,Wn=Fe.practiceSetting,Kn=Fe.isRepository,Hn=Fe.treeData,fn=Fe.setTreeData,lr=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Zn=Object(L.i)(),cr=Object(L.h)(),dr=Object(S.useState)(),Dr=Object(w.a)(dr,2),hr=Dr[0],sn=Dr[1],en=Object(S.useState)(!1),On=Object(w.a)(en,2),Fr=On[0],Or=On[1],xr=Object(S.useState)(!1),fr=Object(w.a)(xr,2),pe=fr[0],X=fr[1],q=Object(S.useState)(!1),oe=Object(w.a)(q,2),De=oe[0],fe=oe[1],ot=Object(S.useState)(!1),Zt=Object(w.a)(ot,2),Mn=Zt[0],Vn=Zt[1],qt=Object(S.useState)(""),En=Object(w.a)(qt,2),un=En[0],jr=En[1],aa=Object(S.useState)([]),oa=Object(w.a)(aa,2),er=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],lt=Object(S.useState)(),Rt=Object(w.a)(lt,2),wt=Rt[0],Ht=Rt[1],Lt=Object(S.useState)(),Xt=Object(w.a)(Lt,2),rn=Xt[0],xn=Xt[1],gn=Object(S.useState)(""),Nn=Object(w.a)(gn,2),An=Nn[0],an=Nn[1],Pn=Object(S.useState)(),yn=Object(w.a)(Pn,2),kn=yn[0],Rn=yn[1],Yn=Object(S.useState)(!1),mr=Object(w.a)(Yn,2),Br=mr[0],Sn=mr[1];Object(S.useEffect)(function(){fn([]),Un(""),localStorage.warehouseHideTip||xe(!0)},[cr.pathname,Kn]);var Yt=function(){var nr=Object(c.a)(x.a.mark(function Gt(){var $t,Jt,Xn=arguments;return x.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return $t=Xn.length>0&&Xn[0]!==void 0?Xn[0]:"",Ln.next=3,Object(je.Gb)({id:Zn.id,secret_dir_path:$t});case 3:Jt=Ln.sent,Jt&&Rn($t);case 5:case"end":return Ln.stop()}},Gt)}));return function(){return nr.apply(this,arguments)}}(),hn=function(Gt){var $t;return v.a.createElement(r.a,{className:Je.a.menu,onClick:function(Xn){jr(Gt.path||"");switch(Xn.key){case"1":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Or(!0);break;case"2":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),fe(!0);break;case"3":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Vn(!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(Gt.path,Gt.name,Gt);break;case"6":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Ir(Gt);break}}},(Gt.type==="topTree"||Gt.type==="tree")&&v.a.createElement(r.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Gt.type==="topTree"||Gt.type==="tree")&&v.a.createElement(r.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Gt.type==="topTree"||Gt.type==="tree")&&v.a.createElement(r.a.Item,{key:"3"},"\u4E0A\u4F20"),Gt.type!=="topTree"&&Gt.type!=="tree"&&(It==null||(($t=It.detail)===null||$t===void 0)?void 0:$t.public)<2&&v.a.createElement(r.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Gt.type!=="topTree"&&v.a.createElement(I.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Kn?"":"secret/").concat(Gt==null?void 0:Gt.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"))),Gt.type!=="topTree"&&v.a.createElement(r.a.Item,{key:"5"},"\u5220\u9664"))},Dn=function(Gt,$t){return Gt.map(function(Jt){return $t==""?Jt.path=$t+Jt.name:Jt.path=$t+"/"+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:hn(Jt),className:Je.a.ellipsis},v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Jt.disableCheckbox=hr&&hr!==Jt.name,Jt.className=Jt.type==="tree"?Je.a.pl23:"",Jt.checkable=Jt.type!=="tree",Jt.isLeaf=Jt.type!=="tree",Jt.children=Jt.type==="tree"&&[],Jt.key=Jt.path,Jt})},tn=function(Gt){vn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Gt}})},wn=function(){var nr=Object(c.a)(x.a.mark(function Gt($t,Jt){var Xn;return x.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Xn=$t.split("/"),Ln.next=3,Un(un);case 3:setTimeout(function(){tn($t),er=[Xn[0]||""],Ka=[$t],Ta(Object(D.a)(Ka)),Ba(Object(D.a)(er))},150);case 4:case"end":return Ln.stop()}},Gt)}));return function($t,Jt){return nr.apply(this,arguments)}}(),_n=function(Gt,$t){if($t=="")Hn=Object(D.a)(Gt),fn(Object(D.a)(Gt));else{var Jt=In(Hn,$t,Gt);Hn=Jt,fn(Object(D.a)(Jt))}};function In(nr,Gt,$t){return nr.map(function(Jt){return Jt.key===Gt?(Jt.children=Object(D.a)($t),Object(n.a)({},Jt)):Jt.children?Object(n.a)(Object(n.a)({},Jt),{},{children:In(Jt.children,Gt,$t)}):Jt})}var Un=function(){var nr=Object(c.a)(x.a.mark(function Gt(){var $t,Jt,Xn,$n,Ln,rr=arguments;return x.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return $t=rr.length>0&&rr[0]!==void 0?rr[0]:"",ir.next=3,vn({type:Kn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Zn.id,path:$t}});case 3:return Jt=ir.sent,Jt&&((Xn=Jt.trees)!==null&&Xn!==void 0&&Xn.length?(Ln=Dn(Object(D.a)(Jt.trees),$t),_n(Ln,$t),oi(Jt.trees||[]),xn($t||""),console.log("handleGetRepository:",Ln,$t),setTimeout(function(){return console.log(Hn,Jt.trees,$t,999999)},2e3)):$t==""&&fn([]),Ht((($n=Jt.commits)===null||$n===void 0?void 0:$n[0])||{})),ir.abrupt("return",Jt);case 6:case"end":return ir.stop()}},Gt)}));return function(){return nr.apply(this,arguments)}}(),ar=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){return x.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.abrupt("return",new Promise(function(){var $n=Object(c.a)(x.a.mark(function Ln(rr,ur){return x.a.wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:return $t.children.length&&rr(),an($t.path),qr.next=4,Un($t.path);case 4:rr();case 5:case"end":return qr.stop()}},Ln)}));return function(Ln,rr){return $n.apply(this,arguments)}}()));case 1:case"end":return Xn.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}(),qn=function(){var nr=Object(c.a)(x.a.mark(function Gt($t,Jt){var Xn,$n;return x.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(console.log("handleSelectTree",$t,Jt.nativeEvent.target.nodeName,Jt),Xn=function(){tn(Jt.node.path),$t=[Jt.node.path],Ta(Object(D.a)($t))},!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="LI"||Jt.nativeEvent.target.nodeName==="I")){rr.next=4;break}return rr.abrupt("return");case 4:Jt.node.type==="blob"&&(Wn!=null&&($n=Wn.sideBar)!==null&&$n!==void 0&&$n.confirmLeave?m.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(){Xn(),vn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Xn());case 5:case"end":return rr.stop()}},Gt)}));return function($t,Jt){return nr.apply(this,arguments)}}(),Rr=function(Gt,$t,Jt){m.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 Xn=Object(c.a)(x.a.mark(function Ln(){var rr,ur,ir;return x.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,vn({type:"shixunsDetail/deleteGitFile",payload:{id:Zn.id,path:Gt,message:"\u5220\u9664".concat(Gt),secret_repository:Kn?null:!0}});case 2:if(rr=or.sent,ur=Gt.split("/"),!((rr==null?void 0:rr.status)===0)){or.next=20;break}return d.b.info("\u5220\u9664\u6210\u529F"),ur.splice(ur.length-1,1),or.next=9,Un(ur.length>1?ur.join("/"):"");case 9:if(ir=or.sent,!(ir!=null&&ir.trees)){or.next=13;break}or.next=16;break;case 13:return ur.splice(ur.length-1,1),or.next=16,Un(ur.length>1?ur.join("/"):"");case 16:return tn(""),or.abrupt("return",!0);case 20:(rr==null?void 0:rr.status)===-3&&m.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:v.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",Gt,"\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(Zn.id,"/edit/").concat(rr==null?void 0:rr.message,"/tab=2")}});case 21:case"end":return or.stop()}},Ln)}));function $n(){return Xn.apply(this,arguments)}return $n}()})},Ir=function(Gt){console.log(Gt,"item")},Jn=function(){var nr=Object(c.a)(x.a.mark(function Gt($t,Jt){return x.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:if(console.log("handleExpand",Jt),!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="path"||Jt.nativeEvent.target.nodeName==="LI")){$n.next=5;break}return $n.abrupt("return",!0);case 5:return $n.next=7,ar(Jt.node);case 7:er.includes(Jt.node.path)?er.splice(er.indexOf(Jt.node.path),1):er.push(Jt.node.path);case 8:Ba(Object(D.a)(er));case 9:case"end":return $n.stop()}},Gt)}));return function($t,Jt){return nr.apply(this,arguments)}}(),Ar=function(){xe(!1),localStorage.warehouseHideTip=!0},vr=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){var Jt,Xn,$n,Ln,rr;return x.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:$n="",ir.t0=Kn,ir.next=ir.t0===!0?4:ir.t0===!1?9:11;break;case 4:return $n="\u5F00\u542F\u7248\u672C\u5E93",Ln="\u5F00\u542F",rr="\u4E0D\u5F00\u542F",Xn=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"),ir.abrupt("break",11);case 9:return It!=null&&(Jt=It.detail)!==null&&Jt!==void 0&&Jt.secret_repository?($n="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u786E\u5B9A",rr="\u53D6\u6D88",Xn=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")):($n="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u4E0D\u4F7F\u7528",rr="\u4F7F\u7528",Xn=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")),ir.abrupt("break",11);case 11:if(!(!Kn&&Object(Bt.b)(vn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){ir.next=13;break}return ir.abrupt("return");case 13:m.a.confirm({title:$n,okText:Ln,cancelText:rr,content:Xn,onOk:function(){var or;Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",$n]),!Kn&&!(It!=null&&(or=It.detail)!==null&&or!==void 0&&or.secret_repository)||zr($t)},onCancel:function(){var or;!Kn&&!(It!=null&&(or=It.detail)!==null&&or!==void 0&&or.secret_repository)&&zr($t)}});case 14:case"end":return ir.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}(),zr=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){return x.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(!Kn){Xn.next=6;break}return Xn.next=3,Object(je.r)(Object(n.a)({},Zn));case 3:vn({type:"practiceSetting/getCommonData",payload:Object(n.a)({},Zn)}),Xn.next=8;break;case 6:return Xn.next=8,Object(je.t)(Object(n.a)(Object(n.a)({},Zn),{},{is_secret_repository:$t}));case 8:Un(),vn({type:"shixunsDetail/getShixunsDetail",payload:{id:Zn.id}});case 10:case"end":return Xn.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}(),Lr=function(Gt){console.log(Gt)},$r=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){var Jt,Xn,$n,Ln,rr,ur,ir,qr,or,da,Yr;return x.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(console.log($t),Jt=$t.node.key,Xn=$t.dragNode.key,$n=$t.node.pos.split("-"),Ln=$t.dropPosition-Number($n[$n.length-1]),!($t.dragNode.type==="tree")){Sr.next=8;break}return d.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),Sr.abrupt("return");case 8:if(!($t.node.type!=="tree")){Sr.next=11;break}return d.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Sr.abrupt("return");case 11:return Sr.next=13,vn({type:"shixunsDetail/moveGitFile",payload:{id:Zn.id,from:$t.dragNode.path,to:$t.node.path+"/"+$t.dragNode.name,message:"".concat($t.dragNode.path," move to ").concat($t.node.path+"/"+$t.dragNode.name," ")}});case 13:if(rr=Sr.sent,!(rr.status===0)){Sr.next=26;break}return tn(""),Sr.next=18,Un("");case 18:ur=0;case 19:if(!(ur<er.length)){Sr.next=26;break}if(!(er[ur]!="")){Sr.next=23;break}return Sr.next=23,Un(er[ur]);case 23:ur++,Sr.next=19;break;case 26:return Sr.abrupt("return");case 32:case"end":return Sr.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}();return v.a.createElement("section",{className:Je.a.bg},v.a.createElement("div",{className:Je.a.contentbg},v.a.createElement("div",{className:Je.a.wrap},v.a.createElement(C.a,{className:Je.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&&It!==null&&It!==void 0&&(at=It.detail)!==null&&at!==void 0&&at.init_repository?"hide":"ml10",checked:Kn?It==null||((Pe=It.detail)===null||Pe===void 0)?void 0:Pe.init_repository:It==null||((it=It.detail)===null||it===void 0)?void 0:it.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:vr})),v.a.createElement(f.a,null,v.a.createElement(l.a,{overlay:hn({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 Ar()}}),"\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 Ar()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:Je.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},Kn&&(It==null||((Qe=It.detail)===null||Qe===void 0)?void 0:Qe.init_repository)&&v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!Kn&&(It==null||((pt=It.detail)===null||pt===void 0)?void 0:pt.secret_repository)&&v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!Hn.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")),Hn.length?v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:Je.a.content},on==="1"&&v.a.createElement("div",{className:Je.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:!!Nt.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:Hn,switcherIcon:v.a.createElement(Ve.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:Jn,expandedKeys:er,selectedKeys:Ka,onSelect:qn,draggable:!0,onDragEnter:Lr,onDrop:$r,allowDrop:function(Gt){var $t=Gt.dropNode,Jt=Gt.dropPosition;return!1}}))):"",!Hn.length&&Kn&&(It==null||((bt=It.detail)===null||bt===void 0)?void 0:bt.init_repository)&&v.a.createElement(He,null),!Hn.length&&!Kn&&(It==null||((Dt=It.detail)===null||Dt===void 0)?void 0:Dt.secret_repository)&&v.a.createElement(He,null))),v.a.createElement(me,{visible:pe,defaultPath:un,onClose:function(){return X(!1)},isRepository:!Kn,onOK:function(){var nr=Object(c.a)(x.a.mark(function Gt($t){var Jt;return x.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return Jt=un.split("/"),Jt.pop(),$n.next=4,Un(Jt.join("/"));case 4:tn("");case 5:case"end":return $n.stop()}},Gt)}));return function(Gt){return nr.apply(this,arguments)}}()}),v.a.createElement(se,{visible:Fr,defaultPath:un,onClose:function(){return Or(!1)},isRepository:Kn,onOK:function(Gt){wn(Gt.path,Gt.name)}}),v.a.createElement(be,{visible:De,defaultPath:un,onClose:function(){return fe(!1)},isRepository:Kn,onOK:function(Gt){wn(Gt.path,Gt.name)}}),v.a.createElement(_e,{defaultPath:un,visible:Mn,isRepository:Kn,onClose:function(){return Vn(!1)},onOK:function(){var nr=Object(c.a)(x.a.mark(function Gt($t){var Jt;return x.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return Jt=un.split("/"),$n.next=3,Un(un);case 3:er=[Jt[0]||""],Ka=[un],Ta(Object(D.a)(Ka)),Ba(Object(D.a)(er));case 7:case"end":return $n.stop()}},Gt)}));return function(Gt){return nr.apply(this,arguments)}}()}),v.a.createElement(vt,{pathList:un==null?void 0:un.split("/"),showInputPath:!0,isMergeSelectFile:Br,onFinish:function(Gt){Br?Yt(Gt):Un(Gt),Sn(!1)}}))},He=function(){return v.a.createElement("div",{className:"mt20 pb50 ".concat(Je.a.nodata)},v.a.createElement("div",{className:Je.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}))},Ye=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.practiceSetting,Qe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Qe,practiceSetting:Pe,loading:at}})(qe),Ce=o("/zsF"),Le=o("PArb"),We=o("yDYP"),Ue=o.n(We),ze=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.i)(),ct=Object(S.useState)([]),Nt=Object(w.a)(ct,2),jt=Nt[0],on=Nt[1];Object(S.useEffect)(function(){vn()},[bt]);var vn=function(){var Wn=Object(c.a)(x.a.mark(function Kn(){var Hn;return x.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,pt({type:"shixunsDetail/getRepositoryCommit",payload:{id:It.id,secret_repository:bt?void 0:!0}});case 2:Hn=lr.sent,Hn&&on(Hn.commits||[]);case 4:case"end":return lr.stop()}},Kn)}));return function(){return Wn.apply(this,arguments)}}();return v.a.createElement(v.a.Fragment,null,jt==""&&v.a.createElement("div",{className:Ue.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")),jt!=""&&v.a.createElement("section",{className:Ue.a.bg},v.a.createElement("div",{className:Ue.a.wrap},v.a.createElement("div",{className:Ue.a.content},jt==null?void 0:jt.map(function(Wn){var Kn,Hn;return v.a.createElement("div",null,v.a.createElement(C.a,{align:"middle",className:"c-white font16"},v.a.createElement(f.a,null,Wn.title)),v.a.createElement(C.a,{align:"middle",className:"mt20 "},v.a.createElement(f.a,null,v.a.createElement("img",{className:Ue.a.imageUrl,src:Oe.a.IMG_SERVER+"/"+((Kn=Wn.author)===null||Kn===void 0?void 0:Kn.image_url)})),v.a.createElement(f.a,{className:Ue.a.blueLight},v.a.createElement("span",{className:"ml20"},(Hn=Wn.author)===null||Hn===void 0?void 0:Hn.username)),v.a.createElement(f.a,null,v.a.createElement("span",{className:"ml20 ".concat(Ue.a.blueLight)},"\u63D0\u4EA4\u4E8E"),v.a.createElement("span",{className:"ml20 ".concat(Ue.a.blueLight)},Wn.time))),v.a.createElement(Le.a,{className:Ue.a.divider}))})))))},st=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ze),Ct=o("p5ED"),Wt=P.a.TabPane,Qt=function(Fe){var at,it,Pe,Qe,pt,bt,Dt,It,ct,Nt,jt,on,vn,Wn,Kn,Hn,fn,lr,Zn,cr=Fe.globalSetting,dr=Fe.loading,Dr=Fe.dispatch,hr=Fe.practiceSetting,sn=Fe.shixunsDetail,en=Object(E.a)(Fe,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),On=Object(S.useState)("1"),Fr=Object(w.a)(On,2),Or=Fr[0],xr=Fr[1],fr=Object(S.useState)("1"),pe=Object(w.a)(fr,2),X=pe[0],q=pe[1],oe=Object(S.useState)(),De=Object(w.a)(oe,2),fe=De[0],ot=De[1],Zt=Object(S.useRef)(),Mn=Object(S.useState)(!0),Vn=Object(w.a)(Mn,2),qt=Vn[0],En=Vn[1],un=Object(S.useState)(["2","1"]),jr=Object(w.a)(un,2),aa=jr[0],oa=jr[1],er=Object(S.useState)([]),Ba=Object(w.a)(er,2),Ea=Ba[0],ca=Ba[1],Ka=Object(S.useRef)(),Ta=Object(L.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,lt;if(!!(sn!=null&&(fa=sn.fileContent)!==null&&fa!==void 0&&(ma=fa.content)!==null&&ma!==void 0&&(la=ma.content)!==null&&la!==void 0&&la.length)||(sn==null||((xe=sn.fileContent)===null||xe===void 0||((lt=xe.content)===null||lt===void 0))?void 0:lt.content)==""){var Rt;if((sn==null||((Rt=sn.fileContent)===null||Rt===void 0)?void 0:Rt.file_type)==="txt"){var wt,Ht,Lt,Xt;Zt.current=window.decodeURIComponent(escape(window.atob(sn==null||((wt=sn.fileContent)===null||wt===void 0||((Ht=wt.content)===null||Ht===void 0))?void 0:Ht.content))),fe=window.decodeURIComponent(escape(window.atob(sn==null||((Lt=sn.fileContent)===null||Lt===void 0||((Xt=Lt.content)===null||Xt===void 0))?void 0:Xt.content))),ot(fe)}else{var rn,xn,gn,Nn;Zt.current=sn==null||((rn=sn.fileContent)===null||rn===void 0||((xn=rn.content)===null||xn===void 0))?void 0:xn.content,fe=sn==null||((gn=sn.fileContent)===null||gn===void 0||((Nn=gn.content)===null||Nn===void 0))?void 0:Nn.content,ot(fe)}}}catch(kn){var An,an,Pn,yn;Zt.current=window.atob(sn==null||((An=sn.fileContent)===null||An===void 0||((an=An.content)===null||an===void 0))?void 0:an.content),fe=window.atob(sn==null||((Pn=sn.fileContent)===null||Pn===void 0||((yn=Pn.content)===null||yn===void 0))?void 0:yn.content),ot(fe),d.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}console.log("codeMirrorSourceValue1212:12",sn.fileContent.content)},[sn==null||((at=sn.fileContent)===null||at===void 0)?void 0:at.content]),Object(S.useEffect)(function(){var fa,ma=hr==null||((fa=hr.sideBar)===null||fa===void 0)?void 0:fa.selectPath.split("/");oa(ma)},[hr==null||((it=hr.sideBar)===null||it===void 0)?void 0:it.selectPath]);var Ua=function(ma){ot(ma);var la=-1;ma===Zt.current?la=0:la=1,la!==-1,Dr({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 lt,Rt,wt,Ht;return x.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(!((hr==null||((lt=hr.sideBar)===null||lt===void 0)?void 0:lt.selectPath)!==""&&hr!==null&&hr!==void 0&&(Rt=hr.sideBar)!==null&&Rt!==void 0&&Rt.selectPath)){Xt.next=5;break}return Xt.next=3,Dr({type:"shixunsDetail/getFileContent",payload:{id:Ta.id,path:hr==null||((wt=hr.sideBar)===null||wt===void 0)?void 0:wt.selectPath,secret_repository:qt?null:!0}});case 3:Ht=Xt.sent,Ht!=null&&Ht.content||(Ht==null?void 0:Ht.content)==""||Dr({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return Xt.stop()}},ma)}));return function(ma,la){return fa.apply(this,arguments)}}())},[hr==null||((Pe=hr.sideBar)===null||Pe===void 0)?void 0:Pe.selectPath]);var li=v.a.createElement(r.a,{className:U.a.menu,onClick:function(ma){var la;!(sn!=null&&(la=sn.detail)!==null&&la!==void 0&&la.secret_repository)&&ma.key==="2"&&q("1"),xr(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!(sn!=null&&(ma=sn.detail)!==null&&ma!==void 0&&ma.init_repository)||sn!=null&&(la=sn.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,lt;return x.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Dr({type:"shixunsDetail/updateRepositoryFile",payload:{id:Ta.id,path:sn==null||((la=sn.fileContent)===null||la===void 0||((xe=la.params)===null||xe===void 0))?void 0:xe.path,content:fe,secret_repository:qt?null:!0}});case 2:lt=wt.sent,lt!=null&<.content&&(d.b.info("\u4FDD\u5B58\u6210\u529F"),Dr({type:"practiceSetting/setSideBarTabs",payload:Object(n.a)(Object(n.a)({},hr.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return wt.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===Or}).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;hr!=null&&(la=hr.sideBar)!==null&&la!==void 0&&la.confirmLeave?m.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),Dr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(q(ma),Dr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},v.a.createElement(Wt,{tab:v.a.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),qt&&(sn==null||((Qe=sn.detail)===null||Qe===void 0)?void 0:Qe.init_repository)&&v.a.createElement(Wt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!qt&&(sn==null||((pt=sn.detail)===null||pt===void 0)?void 0:pt.secret_repository)&&v.a.createElement(Wt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),(qt&&(sn==null||((bt=sn.repository)===null||bt===void 0)?void 0:bt.git_url)||!qt&&(sn==null||((Dt=sn.secretRepository)===null||Dt===void 0)?void 0:Dt.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:qt?sn==null||((It=sn.repository)===null||It===void 0)?void 0:It.git_url:sn==null||((ct=sn.secretRepository)===null||ct===void 0)?void 0:ct.git_url}),v.a.createElement(I.CopyToClipboard,{text:qt?sn==null||((Nt=sn.repository)===null||Nt===void 0)?void 0:Nt.git_url:sn==null||((jt=sn.secretRepository)===null||jt===void 0)?void 0:jt.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:!!dr.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(U.a.loading," ").concat(U.a.bottom0)},v.a.createElement(Ye,{setTreeData:ca,treeData:Ea,activeKey:Or,isRepository:qt}))),v.a.createElement("aside",{className:U.a.right,ref:Ka},(hr==null||((on=hr.sideBar)===null||on===void 0)?void 0:on.selectPath)!==""&&v.a.createElement(v.a.Fragment,null,v.a.createElement(b.a,{spinning:!!dr.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},aa.map(function(fa,ma){return v.a.createElement("span",{className:"c-blue"},fa)})))),v.a.createElement("div",{className:dr.effects["shixunsDetail/getFileContent"]?"hide":"show"},v.a.createElement(Ct.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:sn==null||((vn=sn.fileContent)===null||vn===void 0)?void 0:vn.filename,type:(sn==null||((Wn=sn.fileContent)===null||Wn===void 0)?void 0:Wn.file_type)==="office"?"download":sn==null||((Kn=sn.fileContent)===null||Kn===void 0)?void 0:Kn.file_type,data:fe,monacoEditor:{value:fe,language:sn==null||((Hn=sn.fileContent)===null||Hn===void 0)?void 0:Hn.language,onChange:function(ma){return Ua(ma)},options:{fontSize:14}}}))),(sn==null||((fn=sn.fileContent)===null||fn===void 0)?void 0:fn.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(g.a,{type:"primary",size:"large",ghost:!0,onClick:function(){N.d.push("/shixuns/".concat(Ta.id,"/challenges"))}},"\u53D6\u6D88"),v.a.createElement(g.a,{type:"primary",size:"large",className:"ml40",onClick:oi},"\u63D0\u4EA4")))),(hr==null||((lr=hr.sideBar)===null||lr===void 0)?void 0:lr.selectPath)==""&&(sn==null||((Zn=sn.detail)===null||Zn===void 0)?void 0:Zn.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(st,{isRepository:qt}))))},Kt=z.default=Object(N.a)(function(Ot){var Fe=Ot.loading,at=Ot.globalSetting,it=Ot.practiceSetting,Pe=Ot.shixunsDetail;return{globalSetting:at,loading:Fe,practiceSetting:it,shixunsDetail:Pe}})(Qt)},csWT:function(k,z,o){k.exports=o.p+"static/choose.4ad1045f.svg"},cv67:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(g){var O=M,b=O.lib,y=b.WordArray,C=b.Hasher,A=O.algo,m=[];(function(){for(var i=0;i<64;i++)m[i]=g.abs(g.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],L=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],I=s[2],K=s[3];W=f(W,F,I,K,u,7,m[0]),K=f(K,W,F,I,w,12,m[1]),I=f(I,K,W,F,E,17,m[2]),F=f(F,I,K,W,_,22,m[3]),W=f(W,F,I,K,P,7,m[4]),K=f(K,W,F,I,R,12,m[5]),I=f(I,K,W,F,x,17,m[6]),F=f(F,I,K,W,S,22,m[7]),W=f(W,F,I,K,v,7,m[8]),K=f(K,W,F,I,T,12,m[9]),I=f(I,K,W,F,U,17,m[10]),F=f(F,I,K,W,L,22,m[11]),W=f(W,F,I,K,N,7,m[12]),K=f(K,W,F,I,V,12,m[13]),I=f(I,K,W,F,H,17,m[14]),F=f(F,I,K,W,D,22,m[15]),W=a(W,F,I,K,w,5,m[16]),K=a(K,W,F,I,x,9,m[17]),I=a(I,K,W,F,L,14,m[18]),F=a(F,I,K,W,u,20,m[19]),W=a(W,F,I,K,R,5,m[20]),K=a(K,W,F,I,U,9,m[21]),I=a(I,K,W,F,D,14,m[22]),F=a(F,I,K,W,P,20,m[23]),W=a(W,F,I,K,T,5,m[24]),K=a(K,W,F,I,H,9,m[25]),I=a(I,K,W,F,_,14,m[26]),F=a(F,I,K,W,v,20,m[27]),W=a(W,F,I,K,V,5,m[28]),K=a(K,W,F,I,E,9,m[29]),I=a(I,K,W,F,S,14,m[30]),F=a(F,I,K,W,N,20,m[31]),W=l(W,F,I,K,R,4,m[32]),K=l(K,W,F,I,v,11,m[33]),I=l(I,K,W,F,L,16,m[34]),F=l(F,I,K,W,H,23,m[35]),W=l(W,F,I,K,w,4,m[36]),K=l(K,W,F,I,P,11,m[37]),I=l(I,K,W,F,S,16,m[38]),F=l(F,I,K,W,U,23,m[39]),W=l(W,F,I,K,V,4,m[40]),K=l(K,W,F,I,u,11,m[41]),I=l(I,K,W,F,_,16,m[42]),F=l(F,I,K,W,x,23,m[43]),W=l(W,F,I,K,T,4,m[44]),K=l(K,W,F,I,N,11,m[45]),I=l(I,K,W,F,D,16,m[46]),F=l(F,I,K,W,E,23,m[47]),W=n(W,F,I,K,u,6,m[48]),K=n(K,W,F,I,S,10,m[49]),I=n(I,K,W,F,H,15,m[50]),F=n(F,I,K,W,R,21,m[51]),W=n(W,F,I,K,N,6,m[52]),K=n(K,W,F,I,_,10,m[53]),I=n(I,K,W,F,U,15,m[54]),F=n(F,I,K,W,w,21,m[55]),W=n(W,F,I,K,v,6,m[56]),K=n(K,W,F,I,D,10,m[57]),I=n(I,K,W,F,x,15,m[58]),F=n(F,I,K,W,V,21,m[59]),W=n(W,F,I,K,P,6,m[60]),K=n(K,W,F,I,L,10,m[61]),I=n(I,K,W,F,E,15,m[62]),F=n(F,I,K,W,T,21,m[63]),s[0]=s[0]+W|0,s[1]=s[1]+F|0,s[2]=s[2]+I|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=g.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"),g=o("rePB"),O=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),C=o("md7G"),A=o("foSv"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),l=o("4IlW");function n(v,T){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(v);T&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,L)}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(L){Object(g.a)(v,L,U[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(U)):n(Object(U)).forEach(function(L){Object.defineProperty(v,L,Object.getOwnPropertyDescriptor(U,L))})}return v}function r(v){var T=c();return function(){var L=Object(A.a)(v),N;if(T){var V=Object(A.a)(this).constructor;N=Reflect.construct(L,arguments,V)}else N=L.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(L){var N;Object(O.a)(this,U),N=T.call(this,L),N.onKeyDown=function(D){var W=N.props,F=W.onKeyDown,I=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&&I&&I(D);if(N.recordCursorPosition(),N.lastKeyCode=D.keyCode,F){for(var he=arguments.length,de=new Array(he>1?he-1:0),Se=1;Se<he;Se++)de[Se-1]=arguments[Se];F.apply(void 0,[D].concat(de))}},N.onKeyUp=function(D){var W=N.props.onKeyUp;if(N.stop(),N.recordCursorPosition(),W){for(var F=arguments.length,I=new Array(F>1?F-1:0),K=1;K<F;K++)I[K-1]=arguments[K];W.apply(void 0,[D].concat(I))}},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 I=N.input.value,K=N.getInputDisplayValue({focus:!1,value:F});N.input.value=K&&Number(K),D.apply(void 0,arguments),N.input.value=I}},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,I=W.inputValue,K=W.value,ee;F?ee=I: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 I=N.cursorBefore.length;return N.lastKeyCode===l.a.DELETE&&N.cursorBefore.charAt(I-1)===D[0]?(N.fixCaret(I,I),!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 I=D.substring(F);return N.restoreByAfter(I)})},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=L.value;V===void 0&&(V=L.defaultValue),N.state={focused:L.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,I=this.state.focused;if(N){if(!P(N.value,H)||!P(N.max,W)||!P(N.min,F)){var K=I?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 de=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===l.a.BACKSPACE?de=this.cursorStart-1:this.lastKeyCode===l.a.DELETE&&(de=this.cursorStart):de=this.input.value.length,this.fixCaret(de,de)}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(Se){}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,I=this.state.inputValue,K=I===void 0?null:I,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),I=this.getPrecision(W),K=this.getPrecision(N);return N?Math.max(K,F+I):F+I}},{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 I=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(I))return;var K=this["".concat(N,"Step")](I,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,I=V.autoComplete,K=V.upHandler,ee=V.downHandler,he=V.className,de=V.max,Se=V.min,Te=V.style,ce=V.title,be=V.onMouseEnter,ye=V.onMouseLeave,ue=V.onMouseOver,se=V.onMouseOut,$=V.required,me=V.onClick,re=V.tabIndex,ae=V.type,Oe=V.placeholder,le=V.id,te=V.inputMode,Q=V.pattern,J=V.step,ve=V.maxLength,_e=V.autoFocus,Ae=V.name,Je=V.onPaste,tt=V.onInput,ut=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"]),ft=this.state,vt=ft.value,_t=ft.focused,Ve=a()(H,(N={},Object(g.a)(N,he,!!he),Object(g.a)(N,"".concat(H,"-disabled"),D),Object(g.a)(N,"".concat(H,"-focused"),_t),N)),je={};Object.keys(ut).forEach(function(Ue){(Ue.substr(0,5)==="data-"||Ue.substr(0,5)==="aria-"||Ue==="role")&&(je[Ue]=ut[Ue])});var ht=!W&&!D,Bt=this.getInputDisplayValue(null),Et=(vt||vt===0)&&(isNaN(vt)||Number(vt)>=de),Pt=(vt||vt===0)&&(isNaN(vt)||Number(vt)<=Se),qe=Et||D||W,He=Pt||D||W,Ye=a()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(g.a)({},"".concat(H,"-handler-up-disabled"),qe)),Ce=a()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(g.a)({},"".concat(H,"-handler-down-disabled"),He)),Le=F?{onTouchStart:qe?h:this.up,onTouchEnd:this.stop}:{onMouseDown:qe?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},We=F?{onTouchStart:He?h:this.down,onTouchEnd:this.stop}:{onMouseDown:He?h:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Ve,style:Te,title:ce,onMouseEnter:be,onMouseLeave:ye,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"},Le,{role:"button","aria-label":"Increase Value","aria-disabled":qe,className:Ye}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},We,{role:"button","aria-label":"Decrease Value","aria-disabled":He,className:Ce}),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":Se,"aria-valuemax":de,"aria-valuenow":vt,required:$,type:ae,placeholder:Oe,onPaste:Je,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:re,autoComplete:I,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:de,min:Se,step:J,name:Ae,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,g,O){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.Base,y=O.WordArray,C=g.algo,A=C.SHA1,m=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=m.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}});g.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"),g=o("VTBJ"),O=o("KQm4"),b=o("1OyB"),y=o("vuIU"),C=o("Ji7U"),A=o("LK+K"),m=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(Se,Te){var ce=Se.className,be=Se.style,ye=Se.motion,ue=Se.motionNodes,se=Se.motionType,$=Se.onMotionStart,me=Se.onMotionEnd,re=Se.active,ae=Se.treeNodeRequiredProps,Oe=Object(h.a)(Se,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),le=m.useState(!0),te=Object(c.a)(le,2),Q=te[0],J=te[1],ve=m.useContext(n.a),_e=ve.prefixCls,Ae=m.useRef(!1),Je=function(){Ae.current||me(),Ae.current=!0};return Object(m.useEffect)(function(){ue&&se==="hide"&&Q&&J(!1)},[ue]),Object(m.useEffect)(function(){return ue&&$(),function(){ue&&Je()}},[]),ue?m.createElement(s.default,Object.assign({ref:Te,visible:Q},ye,{motionAppear:se==="show",onAppearEnd:Je,onLeaveEnd:Je}),function(tt,ut){var ft=tt.className,vt=tt.style;return m.createElement("div",{ref:ut,className:l()("".concat(_e,"-treenode-motion"),ft),style:vt},ue.map(function(_t){var Ve=_t.data,je=Ve.key,ht=Object(h.a)(Ve,["key"]),Bt=_t.isStart,Et=_t.isEnd;delete ht.children;var Pt=Object(r.f)(je,ae);return m.createElement(u.a,Object.assign({},ht,Pt,{active:re,data:_t.data,key:je,isStart:Bt,isEnd:Et}))}))}):m.createElement(u.a,Object.assign({domRef:Te,className:ce,style:be},Oe,{active:re}))};w.displayName="MotionTreeNode";var E=m.forwardRef(w),_=E;function P(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Te=de.length,ce=Se.length;if(Math.abs(Te-ce)!==1)return{add:!1,key:null};function be(ye,ue){var se=new Map;ye.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:be(de,Se)}:{add:!1,key:be(Se,de)}}function R(de,Se,Te){var ce=de.findIndex(function(se){var $=se.data;return $.key===Te}),be=de[ce+1],ye=Se.findIndex(function(se){var $=se.data;return $.key===Te});if(be){var ue=Se.findIndex(function(se){var $=se.data;return $.key===be.data.key});return Se.slice(ye+1,ue)}return Se.slice(ye+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},L={parent:null,children:[],pos:U.pos,data:T,isStart:[],isEnd:[]};function N(de,Se,Te,ce){return Se===!1||!Te?de:de.slice(0,Math.ceil(Te/ce)+1)}function V(de){var Se=de.data.key,Te=de.pos;return Object(r.e)(Se,Te)}function H(de){for(var Se=String(de.data.key),Te=de;Te.parent;)Te=Te.parent,Se="".concat(Te.data.key," > ").concat(Se);return Se}var D=function(Se,Te){var ce=Se.prefixCls,be=Se.data,ye=Se.selectable,ue=Se.checkable,se=Se.expandedKeys,$=Se.selectedKeys,me=Se.checkedKeys,re=Se.loadedKeys,ae=Se.loadingKeys,Oe=Se.halfCheckedKeys,le=Se.keyEntities,te=Se.disabled,Q=Se.dragging,J=Se.dragOverNodeKey,ve=Se.dropPosition,_e=Se.motion,Ae=Se.height,Je=Se.itemHeight,tt=Se.virtual,ut=Se.focusable,ft=Se.activeItem,vt=Se.focused,_t=Se.tabIndex,Ve=Se.onKeyDown,je=Se.onFocus,ht=Se.onBlur,Bt=Se.onActiveChange,Et=Se.onListChangeStart,Pt=Se.onListChangeEnd,qe=Object(h.a)(Se,["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"]),He=m.useRef(null);m.useImperativeHandle(Te,function(){return{scrollTo:function(on){He.current.scrollTo(on)}}});var Ye=m.useState(se),Ce=Object(c.a)(Ye,2),Le=Ce[0],We=Ce[1],Ue=m.useState(be),ze=Object(c.a)(Ue,2),st=ze[0],Ct=ze[1],Wt=m.useState(be),Qt=Object(c.a)(Wt,2),Kt=Qt[0],Ot=Qt[1],Fe=m.useState([]),at=Object(c.a)(Fe,2),it=at[0],Pe=at[1],Qe=m.useState(null),pt=Object(c.a)(Qe,2),bt=pt[0],Dt=pt[1];function It(){Ct(be),Ot(be),Pe([]),Dt(null),Pt()}m.useEffect(function(){We(se);var jt=P(Le,se);if(jt.key!==null)if(jt.add){var on=st.findIndex(function(lr){var Zn=lr.data.key;return Zn===jt.key}),vn=N(R(st,be,jt.key),tt,Ae,Je),Wn=st.slice();Wn.splice(on+1,0,L),Ot(Wn),Pe(vn),Dt("show")}else{var Kn=be.findIndex(function(lr){var Zn=lr.data.key;return Zn===jt.key}),Hn=N(R(be,st,jt.key),tt,Ae,Je),fn=be.slice();fn.splice(Kn+1,0,L),Ot(fn),Pe(Hn),Dt("hide")}else st!==be&&(Ct(be),Ot(be))},[se,be]),m.useEffect(function(){Q||It()},[Q]);var ct=_e?Kt:be,Nt={expandedKeys:se,selectedKeys:$,loadedKeys:re,loadingKeys:ae,checkedKeys:me,halfCheckedKeys:Oe,dragOverNodeKey:J,dropPosition:ve,keyEntities:le};return m.createElement(m.Fragment,null,vt&&ft&&m.createElement("span",{style:x,"aria-live":"assertive"},H(ft)),m.createElement("div",{role:"tree"},m.createElement("input",{style:x,disabled:ut===!1||te,tabIndex:ut!==!1?_t:null,onKeyDown:Ve,onFocus:je,onBlur:ht,value:"",onChange:S})),m.createElement(d.a,Object.assign({},qe,{data:ct,itemKey:V,height:Ae,fullHeight:!1,virtual:tt,itemHeight:Je,prefixCls:"".concat(ce,"-list"),ref:He}),function(jt){var on=jt.pos,vn=jt.data,Wn=vn.key,Kn=Object(h.a)(vn,["key"]),Hn=jt.isStart,fn=jt.isEnd,lr=Object(r.e)(Wn,on);delete Kn.children;var Zn=Object(r.f)(lr,Nt);return m.createElement(_,Object.assign({},Kn,Zn,{active:ft&&Wn===ft.data.key,pos:on,data:jt.data,isStart:Hn,isEnd:fn,motion:_e,motionNodes:Wn===v?it:null,motionType:bt,onMotionStart:Et,onMotionEnd:It,treeNodeRequiredProps:Nt,onMouseMove:function(){Bt(null)}}))}))},W=m.forwardRef(D);W.displayName="NodeList";var F=W,I=o("NvD2"),K=function(de){Object(C.a)(Te,de);var Se=Object(A.a)(Te);function Te(){var ce;return Object(b.a)(this,Te),ce=Se.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=m.createRef(),ce.onNodeDragStart=function(be,ye){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ce.props.onDragStart,re=ye.props.eventKey;ce.dragNode=ye;var ae=Object(i.b)(se,re);ce.setState({dragging:!0,dragNodesKeys:Object(i.g)(re,$)}),ce.setExpandedKeys(ae),me&&me({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragEnter=function(be,ye){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ae=ye.props,Oe=ae.pos,le=ae.eventKey;if(!ce.dragNode||me.indexOf(le)!==-1)return;var te=Object(i.c)(be,ye);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[Oe]=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:be,node:Object(r.b)(ye.props),expandedKeys:Q})},400)},0)},ce.onNodeDragOver=function(be,ye){var ue=ce.state.dragNodesKeys,se=ce.props.onDragOver,$=ye.props.eventKey;if(ue.indexOf($)!==-1)return;if(ce.dragNode&&$===ce.state.dragOverNodeKey){var me=Object(i.c)(be,ye);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}se&&se({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragLeave=function(be,ye){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragEnd=function(be,ye){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:be,node:Object(r.b)(ye.props)}),ce.dragNode=null},ce.onNodeDrop=function(be,ye){var ue=ce.state,se=ue.dragNodesKeys,$=se===void 0?[]:se,me=ue.dropPosition,re=ce.props.onDrop,ae=ye.props,Oe=ae.eventKey,le=ae.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),$.indexOf(Oe)!==-1){Object(f.a)(!1,"Can not drop to dragNode(include it's children node)");return}var te=Object(i.k)(le),Q={event:be,node:Object(r.b)(ye.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 be=ce.state.dragging;be&&ce.setState({dragging:!1})},ce.onNodeClick=function(be,ye){var ue=ce.props.onClick;ue&&ue(be,ye)},ce.onNodeDoubleClick=function(be,ye){var ue=ce.props.onDoubleClick;ue&&ue(be,ye)},ce.onNodeSelect=function(be,ye){var ue=ce.state.selectedKeys,se=ce.state.keyEntities,$=ce.props,me=$.onSelect,re=$.multiple,ae=ye.selected,Oe=ye.key,le=!ae;le?re?ue=Object(i.a)(ue,Oe):ue=[Oe]:ue=Object(i.b)(ue,Oe);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:ye,selectedNodes:te,nativeEvent:be.nativeEvent})},ce.onNodeCheck=function(be,ye,ue){var se=ce.state,$=se.keyEntities,me=se.checkedKeys,re=se.halfCheckedKeys,ae=ce.props,Oe=ae.checkStrictly,le=ae.onCheck,te=ye.key,Q,J={event:"check",node:ye,checked:ue,nativeEvent:be.nativeEvent};if(Oe){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 Ae=Object(I.a)([].concat(Object(O.a)(me),[te]),!0,$),Je=Ae.checkedKeys,tt=Ae.halfCheckedKeys;if(!ue){var ut=new Set(Je);ut.delete(te);var ft=Object(I.a)(Array.from(ut),{checked:!1,halfCheckedKeys:tt},$);Je=ft.checkedKeys,tt=ft.halfCheckedKeys}Q=Je,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=tt,Je.forEach(function(vt){var _t=$[vt];if(!_t)return;var Ve=_t.node,je=_t.pos;J.checkedNodes.push(Ve),J.checkedNodesPositions.push({node:Ve,pos:je})}),ce.setUncontrolledState({checkedKeys:Je},!1,{halfCheckedKeys:tt})}le&&le(Q,J)},ce.onNodeLoad=function(be){return new Promise(function(ye){ce.setState(function(ue){var se=ue.loadedKeys,$=se===void 0?[]:se,me=ue.loadingKeys,re=me===void 0?[]:me,ae=ce.props,Oe=ae.loadData,le=ae.onLoad,te=be.key;if(!Oe||$.indexOf(te)!==-1||re.indexOf(te)!==-1)return{};var Q=Oe(be);return Q.then(function(){var J=ce.state,ve=J.loadedKeys,_e=J.loadingKeys,Ae=Object(i.a)(ve,te),Je=Object(i.b)(_e,te);le&&le(Ae,{event:"load",node:be}),ce.setUncontrolledState({loadedKeys:Ae}),ce.setState({loadingKeys:Je}),ye()}),{loadingKeys:Object(i.a)(re,te)}})})},ce.onNodeMouseEnter=function(be,ye){var ue=ce.props.onMouseEnter;ue&&ue({event:be,node:ye})},ce.onNodeMouseLeave=function(be,ye){var ue=ce.props.onMouseLeave;ue&&ue({event:be,node:ye})},ce.onNodeContextMenu=function(be,ye){var ue=ce.props.onRightClick;ue&&(be.preventDefault(),ue({event:be,node:ye}))},ce.onFocus=function(){var be=ce.props.onFocus;ce.setState({focused:!0}),be&&be.apply(void 0,arguments)},ce.onBlur=function(){var be=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),be&&be.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var be=ce.state,ye=be.expandedKeys,ue=be.selectedKeys,se=be.loadedKeys,$=be.loadingKeys,me=be.checkedKeys,re=be.halfCheckedKeys,ae=be.dragOverNodeKey,Oe=be.dropPosition,le=be.keyEntities;return{expandedKeys:ye||[],selectedKeys:ue||[],loadedKeys:se||[],loadingKeys:$||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ae,dropPosition:Oe,keyEntities:le}},ce.setExpandedKeys=function(be){var ye=ce.state.treeData,ue=Object(r.d)(ye,be);ce.setUncontrolledState({expandedKeys:be,flattenNodes:ue},!0)},ce.onNodeExpand=function(be,ye){var ue=ce.state.expandedKeys,se=ce.state.listChanging,$=ce.props,me=$.onExpand,re=$.loadData,ae=ye.key,Oe=ye.expanded;if(se)return;var le=ue.indexOf(ae),te=!Oe;if(Object(f.a)(Oe&&le!==-1||!Oe&&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:ye,expanded:te,nativeEvent:be.nativeEvent}),te&&re){var Q=ce.onNodeLoad(ye);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(be){var ye=ce.state.activeKey,ue=ce.props.onActiveChange;if(ye===be)return;ce.setState({activeKey:be}),be!==null&&ce.scrollTo({key:be}),ue&&ue(be)},ce.getActiveItem=function(){var be=ce.state,ye=be.activeKey,ue=be.flattenNodes;return ye===null?null:ue.find(function(se){var $=se.data.key;return $===ye})||null},ce.offsetActiveKey=function(be){var ye=ce.state,ue=ye.flattenNodes,se=ye.activeKey,$=ue.findIndex(function(ae){var Oe=ae.data.key;return Oe===se});$===-1&&be<0&&($=ue.length),$=($+be+ue.length)%ue.length;var me=ue[$];if(me){var re=me.data.key;ce.onActiveChange(re)}else ce.onActiveChange(null)},ce.onKeyDown=function(be){var ye=ce.state,ue=ye.activeKey,se=ye.expandedKeys,$=ye.checkedKeys,me=ce.props,re=me.onKeyDown,ae=me.checkable,Oe=me.selectable;switch(be.which){case e.a.UP:{ce.offsetActiveKey(-1),be.preventDefault();break}case e.a.DOWN:{ce.offsetActiveKey(1),be.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(g.a)(Object(g.a)({},Object(r.f)(ue,te)),{},{data:le.data,active:!0}));switch(be.which){case e.a.LEFT:{Q&&se.includes(ue)?ce.onNodeExpand({},J):le.parent&&ce.onActiveChange(le.parent.data.key),be.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),be.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ae&&!J.disabled&&J.checkable!==!1&&!J.disableCheckbox?ce.onNodeCheck({},J,!$.includes(ue)):!ae&&Oe&&!J.disabled&&J.selectable!==!1&&ce.onNodeSelect({},J);break}}}re&&re(be)},ce.setUncontrolledState=function(be){var ye=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(be).forEach(function(re){if(re in ce.props){$=!1;return}se=!0,me[re]=be[re]}),se&&(!ye||$)&&ce.setState(Object(g.a)(Object(g.a)({},me),ue))},ce.scrollTo=function(be){ce.listRef.current.scrollTo(be)},ce}return Object(y.a)(Te,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var be,ye=this.state,ue=ye.focused,se=ye.flattenNodes,$=ye.keyEntities,me=ye.dragging,re=ye.activeKey,ae=this.props,Oe=ae.prefixCls,le=ae.className,te=ae.style,Q=ae.showLine,J=ae.focusable,ve=ae.tabIndex,_e=ve===void 0?0:ve,Ae=ae.selectable,Je=ae.showIcon,tt=ae.icon,ut=ae.switcherIcon,ft=ae.draggable,vt=ae.checkable,_t=ae.checkStrictly,Ve=ae.disabled,je=ae.motion,ht=ae.loadData,Bt=ae.filterTreeNode,Et=ae.height,Pt=ae.itemHeight,qe=ae.virtual,He=ae.titleRender,Ye=ae.onContextMenu,Ce=Object(i.f)(this.props);return m.createElement(n.a.Provider,{value:{prefixCls:Oe,selectable:Ae,showIcon:Je,icon:tt,switcherIcon:ut,draggable:ft,checkable:vt,checkStrictly:_t,disabled:Ve,keyEntities:$,loadData:ht,filterTreeNode:Bt,titleRender:He,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}},m.createElement("div",{className:l()(Oe,le,(be={},Object(M.a)(be,"".concat(Oe,"-show-line"),Q),Object(M.a)(be,"".concat(Oe,"-focused"),ue),Object(M.a)(be,"".concat(Oe,"-active-focused"),re!==null),be))},m.createElement(F,Object.assign({ref:this.listRef,prefixCls:Oe,style:te,data:se,disabled:Ve,selectable:Ae,checkable:!!vt,motion:je,dragging:me,height:Et,itemHeight:Pt,virtual:qe,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:Ye},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(be,ye){var ue=ye.prevProps,se={prevProps:be};function $(tt){return!ue&&tt in be||ue&&ue[tt]!==be[tt]}var me;if($("treeData")?me=be.treeData:$("children")&&(Object(f.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),me=Object(r.c)(be.children)),me){se.treeData=me;var re=Object(r.a)(me);se.keyEntities=Object(g.a)(Object(M.a)({},v,U),re.keyEntities)}var ae=se.keyEntities||ye.keyEntities;if($("expandedKeys")||ue&&$("autoExpandParent"))se.expandedKeys=be.autoExpandParent||!ue&&be.defaultExpandParent?Object(i.e)(be.expandedKeys,ae):be.expandedKeys;else if(!ue&&be.defaultExpandAll){var Oe=Object(g.a)({},ae);delete Oe[v],se.expandedKeys=Object.keys(Oe).map(function(tt){return Oe[tt].key})}else!ue&&be.defaultExpandedKeys&&(se.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(i.e)(be.defaultExpandedKeys,ae):be.defaultExpandedKeys);if(se.expandedKeys||delete se.expandedKeys,me||se.expandedKeys){var le=Object(r.d)(me||ye.treeData,se.expandedKeys||ye.expandedKeys);se.flattenNodes=le}if(be.selectable&&($("selectedKeys")?se.selectedKeys=Object(i.d)(be.selectedKeys,be):!ue&&be.defaultSelectedKeys&&(se.selectedKeys=Object(i.d)(be.defaultSelectedKeys,be))),be.checkable){var te;if($("checkedKeys")?te=Object(i.j)(be.checkedKeys)||{}:!ue&&be.defaultCheckedKeys?te=Object(i.j)(be.defaultCheckedKeys)||{}:me&&(te=Object(i.j)(be.checkedKeys)||{checkedKeys:ye.checkedKeys,halfCheckedKeys:ye.halfCheckedKeys}),te){var Q=te,J=Q.checkedKeys,ve=J===void 0?[]:J,_e=Q.halfCheckedKeys,Ae=_e===void 0?[]:_e;if(!be.checkStrictly){var Je=Object(I.a)(ve,!0,ae);ve=Je.checkedKeys,Ae=Je.halfCheckedKeys}se.checkedKeys=ve,se.halfCheckedKeys=Ae}}return $("loadedKeys")&&(se.loadedKeys=be.loadedKeys),se}}]),Te}(m.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"),g=o("Vhoy"),O=o("MI8n"),b=o("JYp7"),y=o("pmY6"),C=o("24hK"),A=o("nnTU"),m=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=g.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,m.b),l(4,A.b)],d)},fyJ8:function(k,z,o){"use strict";var M=o("rePB"),g=o("VTBJ"),O=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),C=o.n(y),A=o("TSYQ"),m=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,L=c.fixRight,N=c.firstFixLeft,V=c.lastFixLeft,H=c.firstFixRight,D=c.lastFixRight,W=c.appendNode,F=c.additionalProps,I=F===void 0?{}:F,K=c.ellipsis,ee=c.align,he=c.rowType,de=c.isSticky,Se="".concat(s,"-cell"),Te,ce;if(R)ce=R;else{var be=Object(f.b)(w,_);if(ce=be,P){var ye=P(be,w,E);a(ye)?(ce=ye.children,Te=ye.props):ce=ye}}Object(b.a)(ce)==="object"&&!Array.isArray(ce)&&!y.isValidElement(ce)&&(ce=null),K&&(V||H)&&(ce=y.createElement("span",{className:"".concat(Se,"-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"]),Oe=se!==void 0?se:v,le=$!==void 0?$:T;if(Oe===0||le===0)return null;var te={},Q=typeof U=="number",J=typeof L=="number";Q&&(te.position="sticky",te.left=U),J&&(te.position="sticky",te.right=L);var ve={};ee&&(ve.textAlign=ee);var _e,Ae=K===!0?{showTitle:!0}:K;Ae&&(Ae.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 Je=Object(g.a)(Object(g.a)(Object(g.a)({title:_e},ae),I),{},{colSpan:Oe&&Oe!==1?Oe:null,rowSpan:le&&le!==1?le:null,className:m()(Se,u,(d={},Object(M.a)(d,"".concat(Se,"-fix-left"),Q),Object(M.a)(d,"".concat(Se,"-fix-left-first"),N),Object(M.a)(d,"".concat(Se,"-fix-left-last"),V),Object(M.a)(d,"".concat(Se,"-fix-right"),J),Object(M.a)(d,"".concat(Se,"-fix-right-first"),H),Object(M.a)(d,"".concat(Se,"-fix-right-last"),D),Object(M.a)(d,"".concat(Se,"-ellipsis"),K),Object(M.a)(d,"".concat(Se,"-with-append"),W),Object(M.a)(d,"".concat(Se,"-fix-sticky"),(Q||J)&&de),d),I.className,re),style:Object(g.a)(Object(g.a)(Object(g.a)(Object(g.a)({},I.style),ve),te),me),ref:l(S)?h:null});return y.createElement(S,Object.assign({},Je),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,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.ECB=function(){var g=M.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(O,b){this._cipher.encryptBlock(O,b)}}),g.Decryptor=g.extend({processBlock:function(O,b){this._cipher.decryptBlock(O,b)}}),g}(),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"),g=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 I=Date.now(),K=!1;Object.keys(W).forEach(function(ee){var he=W[ee].current;if(!he)return;K=!0;var de=he.style;de.transitionDuration=".3s, .3s, .3s, .06s",F.current&&I-F.current<100&&(de.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 m(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,I=!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(de){I=!0,K=de}finally{try{!F&&ee.return!=null&&ee.return()}finally{if(I)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,I;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(I=0;I<K.length;I++){if(F=K[I],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),I,K;for(K=0;K<F.length;K++){if(I=F[K],D.indexOf(I)>=0)continue;W[I]=H[I]}return W}var c=function(D){var W=D.className,F=D.percent,I=D.prefixCls,K=D.strokeColor,ee=D.strokeLinecap,he=D.strokeWidth,de=D.style,Se=D.trailColor,Te=D.trailWidth,ce=D.transition,be=i(D,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete be.gapPosition;var ye=Array.isArray(F)?F:[F],ue=Array.isArray(K)?K:[K],se=C(ye),$=m(se,1),me=$[0],re=he/2,ae=100-he/2,Oe="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 g.a.createElement("svg",A({className:b()("".concat(I,"-line"),W),viewBox:le,preserveAspectRatio:"none",style:de},be),g.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Oe,strokeLinecap:ee,stroke:Se,strokeWidth:Te||he,fillOpacity:"0"}),ye.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,g.a.createElement("path",{key:J,className:"".concat(I,"-line-path"),d:Oe,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,I=!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(de){I=!0,K=de}finally{try{!F&&ee.return!=null&&ee.return()}finally{if(I)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,I;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(I=0;I<K.length;I++){if(F=K[I],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),I,K;for(K=0;K<F.length;K++){if(I=F[K],D.indexOf(I)>=0)continue;W[I]=H[I]}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 I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,K=arguments.length>5?arguments[5]:void 0,ee=50-F/2,he=0,de=-ee,Se=0,Te=-2*ee;switch(K){case"left":he=-ee,de=0,Se=2*ee,Te=0;break;case"right":he=ee,de=0,Se=-2*ee,Te=0;break;case"bottom":de=ee,Te=2*ee;break;default:}var ce="M 50,50 m ".concat(he,",").concat(de,`
|
|
|
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(Se,",").concat(-Te,`
|
|
|
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(-Se,",").concat(Te),be=Math.PI*2*ee,ye={stroke:W,strokeDasharray:"".concat(D/100*(be-I),"px ").concat(be,"px"),strokeDashoffset:"-".concat(I/2+H/100*(be-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:ye}}var L=function(D){var W=D.prefixCls,F=D.strokeWidth,I=D.trailWidth,K=D.gapDegree,ee=D.gapPosition,he=D.trailColor,de=D.strokeLinecap,Se=D.style,Te=D.className,ce=D.strokeColor,be=D.percent,ye=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(be),ae=T(ce),Oe=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(Ae,Je){var tt=ae[Je]||ae[ae.length-1],ut=Object.prototype.toString.call(tt)==="[object Object]"?"url(#".concat(W,"-gradient-").concat(ue,")"):"",ft=U(_e,Ae,tt,F,K,ee);return _e+=Ae,g.a.createElement("path",{key:Je,className:"".concat(W,"-circle-path"),d:ft.pathString,stroke:ut,strokeLinecap:de,strokeWidth:F,opacity:Ae===0?0:1,fillOpacity:"0",style:ft.pathStyle,ref:Q[Je]})})};return g.a.createElement("svg",d({className:b()("".concat(W,"-circle"),Te),viewBox:"0 0 100 100",style:Se},ye),Oe&&g.a.createElement("defs",null,g.a.createElement("linearGradient",{id:"".concat(W,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Oe).sort(function(ve,_e){return v(ve)-v(_e)}).map(function(ve,_e){return g.a.createElement("stop",{key:_e,offset:ve,stopColor:Oe[ve]})}))),g.a.createElement("path",{className:"".concat(W,"-circle-trail"),d:$,stroke:he,strokeLinecap:de,strokeWidth:I||F,fillOpacity:"0",style:me}),J().reverse())};L.defaultProps=y;var N=L,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"),g=o("Ff2n"),O=o("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function y(A){var m=A.expandable,e=Object(g.a)(A,["expandable"]);return"expandable"in A?Object(M.a)(Object(M.a)({},e),m):e}function C(A){return Object.keys(A).reduce(function(m,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(m[e]=A[e]),m},{})}},"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"),g=o("746U");class O{constructor(){this.data=new Map}add(y,C){M.a(g.l(y)),M.a(g.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,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso97971={pad:function(g,O){g.concat(M.lib.WordArray.create([2147483648],1)),M.pad.ZeroPadding.pad(g,O)},unpad:function(g){M.pad.ZeroPadding.unpad(g),g.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"),g=o("wCAj"),O=o("miYZ"),b=o("tsqr"),y=o("5Dmo"),C=o("3S7+"),A=o("sRBo"),m=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"),L=o.n(U),N=o("E7E6"),V=o.n(N),H=o("oUNq"),D=o("Nf5h"),W=o("Fhpe"),F=o.n(W),I=[];function K(Se){var Te=Se.onSearch,ce=Se.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(ye,ue){return ue.value.toUpperCase().indexOf(ye.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(Se){Se[Se.INITDATA=0]="INITDATA",Se[Se.INITSCHOOLS=1]="INITSCHOOLS",Se[Se.SHOWLOADING=2]="SHOWLOADING",Se[Se.SELECTEDIDS=3]="SELECTEDIDS",Se[Se.SETQUERY=4]="SETQUERY",Se[Se.SETPAGE=5]="SETPAGE"})(ee||(ee={}));function he(Se,Te){switch(Te.type){case ee.INITDATA:return Object(l.a)(Object(l.a)({},Se),Te.payload);case ee.SETQUERY:return Object(l.a)(Object(l.a)({},Se),Te.payload);case ee.SETPAGE:return Object(l.a)(Object(l.a)({},Se),{},{page:Te.payload,reload:!1});case ee.SHOWLOADING:return Object(l.a)(Object(l.a)({},Se),{},{loading:Te.payload});case ee.INITSCHOOLS:return Object(l.a)(Object(l.a)({},Se),{},{schools:Te.payload});case ee.SELECTEDIDS:return Object(l.a)(Object(l.a)({},Se),{},{selectedIds:Te.payload});default:throw new Error}}var de={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};z.a=function(Se){var Te=Se.onSelect,ce=Se.onCancel,be=Se.container_id,ye=Se.container_type,ue=Object(R.useReducer)(he,de),se=Object(a.a)(ue,2),$=se[0],me=se[1],re=$.data,ae=$.schools,Oe=$.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 Ve(){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:ye,container_id:be}));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()}},Ve)})),_t.apply(this,arguments)}J&&vt()},[te,J,ve,be,ye]),Object(R.useEffect)(function(){function vt(){return _t.apply(this,arguments)}function _t(){return _t=Object(f.a)(P.a.mark(function Ve(){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()}},Ve)})),_t.apply(this,arguments)}vt()},[]);var _e=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(_t,Ve){return x.a.createElement(m.a,{value:Ve.numid,checked:le.includes(Ve.numid),disabled:!!_t})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(_t,Ve){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(Ve.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 Ae(vt){me({type:ee.SETQUERY,payload:{page:1,reload:!0,query:vt}})}function Je(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 ut(){le.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Te(le,be),me({type:ee.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var ft=Q>te*10;return x.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},x.a.createElement(K,{onSearch:Ae,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(g.a,{pagination:!1,dataSource:I,columns:_e}))),x.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},x.a.createElement(L.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:Je,hasMore:ft,useWindow:!1},x.a.createElement(D.f,null,x.a.createElement(g.a,{loading:Oe,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:ut},"\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"),g=o("ODXe"),O=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),C=o("TSYQ"),A=o.n(C),m=o("Zm9Q"),e=o("6cGi"),f=o("KQm4"),a=o("xEkU"),l=o.n(a),n=o("t23M");function i(Ze){var dt=Object(y.useRef)(),yt=Object(y.useRef)(!1);function nt(){for(var Me=arguments.length,Xe=new Array(Me),Ie=0;Ie<Me;Ie++)Xe[Ie]=arguments[Ie];yt.current||(l.a.cancel(dt.current),dt.current=l()(function(){Ze.apply(void 0,Xe)}))}return Object(y.useEffect)(function(){return function(){yt.current=!0,l.a.cancel(dt.current)}},[]),nt}function r(Ze){var dt=Object(y.useRef)([]),yt=Object(y.useState)({}),nt=Object(g.a)(yt,2),Me=nt[1],Xe=Object(y.useRef)(typeof Ze=="function"?Ze():Ze),Ie=i(function(){var $e=Xe.current;dt.current.forEach(function(mt){$e=mt($e)}),dt.current=[],Xe.current=$e,Me({})});function et($e){dt.current.push($e),Ie()}return[Xe.current,et]}var c=o("4IlW");function h(Ze,dt){var yt,nt=Ze.prefixCls,Me=Ze.id,Xe=Ze.active,Ie=Ze.rtl,et=Ze.tab,$e=et.key,mt=et.tab,rt=et.disabled,Mt=et.closeIcon,Vt=Ze.tabBarGutter,pn=Ze.tabPosition,ln=Ze.closable,dn=Ze.renderWrapper,cn=Ze.removeAriaLabel,Fn=Ze.editable,Cn=Ze.onClick,Ur=Ze.onRemove,Pr=Ze.onFocus,Qr="".concat(nt,"-tab");y.useEffect(function(){return Ur},[]);var Wr={};pn==="top"||pn==="bottom"?Wr[Ie?"marginLeft":"marginRight"]=Vt:Wr.marginBottom=Vt;var ta=Fn&&ln!==!1&&!rt;function zn(bn){if(rt)return;Cn(bn)}function wr(bn){bn.preventDefault(),bn.stopPropagation(),Fn.onEdit("remove",{key:$e,event:bn})}var Gn=y.createElement("div",{key:$e,ref:dt,className:A()(Qr,(yt={},Object(M.a)(yt,"".concat(Qr,"-with-remove"),ta),Object(M.a)(yt,"".concat(Qr,"-active"),Xe),Object(M.a)(yt,"".concat(Qr,"-disabled"),rt),yt)),style:Wr,onClick:zn},y.createElement("div",{role:"tab","aria-selected":Xe,id:Me&&"".concat(Me,"-tab-").concat($e),className:"".concat(Qr,"-btn"),"aria-controls":Me&&"".concat(Me,"-panel-").concat($e),"aria-disabled":rt,tabIndex:rt?null:0,onClick:function(jn){jn.stopPropagation(),zn(jn)},onKeyDown:function(jn){[c.a.SPACE,c.a.ENTER].includes(jn.which)&&(jn.preventDefault(),zn(jn))},onFocus:Pr},mt),ta&&y.createElement("button",{type:"button","aria-label":cn||"remove",tabIndex:0,className:"".concat(Qr,"-remove"),onClick:function(jn){jn.stopPropagation(),wr(jn)}},Mt||Fn.removeIcon||"\xD7"));return dn&&(Gn=dn(Gn)),Gn}var d=y.forwardRef(h),s={width:0,height:0,left:0,top:0};function u(Ze,dt,yt){return Object(y.useMemo)(function(){for(var nt,Me=new Map,Xe=dt.get((nt=Ze[0])===null||nt===void 0?void 0:nt.key)||s,Ie=Xe.left+Xe.width,et=0;et<Ze.length;et+=1){var $e=Ze[et].key,mt=dt.get($e);if(!mt){var rt;mt=dt.get((rt=Ze[et-1])===null||rt===void 0?void 0:rt.key)||s}var Mt=Me.get($e)||Object(b.a)({},mt);Mt.right=Ie-Mt.left-Mt.width,Me.set($e,Mt)}return Me},[Ze.map(function(nt){return nt.key}).join("_"),dt,yt])}var w={width:0,height:0,left:0,top:0,right:0};function E(Ze,dt,yt,nt,Me){var Xe=Me.tabs,Ie=Me.tabPosition,et=Me.rtl,$e,mt,rt;["top","bottom"].includes(Ie)?($e="width",mt=et?"right":"left",rt=Math.abs(dt.left)):($e="height",mt="top",rt=-dt.top);var Mt=dt[$e],Vt=yt[$e],pn=nt[$e],ln=Mt;return Vt+pn>Mt&&(ln=Mt-pn),Object(y.useMemo)(function(){if(!Xe.length)return[0,0];for(var dn=Xe.length,cn=dn,Fn=0;Fn<dn;Fn+=1){var Cn=Ze.get(Xe[Fn].key)||w;if(Cn[mt]+Cn[$e]>rt+ln){cn=Fn-1;break}}for(var Ur=0,Pr=dn-1;Pr>=0;Pr-=1){var Qr=Ze.get(Xe[Pr].key)||w;if(Qr[mt]<rt){Ur=Pr+1;break}}return[Ur,cn]},[Ze,rt,ln,Ie,Xe.map(function(dn){return dn.key}).join("_"),et])}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"),L=o("2GS6"),N=o("Gytx"),V=o.n(N),H=o("U8pU"),D=/iPhone/i,W=/iPod/i,F=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,K=/Android/i,ee=/\bAndroid(?:.+)SD4930UR\b/i,he=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,de=/Windows Phone/i,Se=/\bWindows(?:.+)ARM\b/i,Te=/BlackBerry/i,ce=/BB10/i,be=/Opera Mini/i,ye=/\b(CriOS|Chrome)(?:.+)Mobile/i,ue=/Mobile(?:.+)Firefox\b/i;function se(Ze,dt){return Ze.test(dt)}function $(Ze){var dt=Ze||(typeof navigator!="undefined"?navigator.userAgent:""),yt=(dt||"").split("[FBAN");if(typeof yt[1]!="undefined"){var nt=yt,Me=Object(g.a)(nt,1);dt=Me[0]}if(yt=dt.split("Twitter"),typeof yt[1]!="undefined"){var Xe=yt,Ie=Object(g.a)(Xe,1);dt=Ie[0]}var et={apple:{phone:se(D,dt)&&!se(de,dt),ipod:se(W,dt),tablet:!se(D,dt)&&se(F,dt)&&!se(de,dt),device:(se(D,dt)||se(W,dt)||se(F,dt))&&!se(de,dt)},amazon:{phone:se(ee,dt),tablet:!se(ee,dt)&&se(he,dt),device:se(ee,dt)||se(he,dt)},android:{phone:!se(de,dt)&&se(ee,dt)||!se(de,dt)&&se(I,dt),tablet:!se(de,dt)&&!se(ee,dt)&&!se(I,dt)&&(se(he,dt)||se(K,dt)),device:!se(de,dt)&&(se(ee,dt)||se(he,dt)||se(I,dt)||se(K,dt))||se(/\bokhttp\b/i,dt)},windows:{phone:se(de,dt),tablet:se(Se,dt),device:se(de,dt)||se(Se,dt)},other:{blackberry:se(Te,dt),blackberry10:se(ce,dt),opera:se(be,dt),firefox:se(ue,dt),chrome:se(ye,dt),device:se(Te,dt)||se(ce,dt)||se(be,dt)||se(ue,dt)||se(ye,dt)},any:null,phone:null,tablet:null};return et.any=et.apple.device||et.android.device||et.windows.device||et.other.device,et.phone=et.apple.phone||et.android.phone||et.windows.phone,et.tablet=et.apple.tablet||et.android.tablet||et.windows.tablet,et}var me=Object(b.a)(Object(b.a)({},$()),{},{isMobile:$}),re=me;function ae(){}function Oe(Ze,dt,yt){var nt=dt||"";return Ze.key||"".concat(nt,"item_").concat(yt)}function le(Ze){return"".concat(Ze,"-menu-")}function te(Ze,dt){var yt=-1;y.Children.forEach(Ze,function(nt){yt+=1,nt&&nt.type&&nt.type.isMenuItemGroup?y.Children.forEach(nt.props.children,function(Me){yt+=1,dt(Me,yt)}):dt(nt,yt)})}function Q(Ze,dt,yt){if(!Ze||yt.find)return;y.Children.forEach(Ze,function(nt){if(nt){var Me=nt.type;if(!Me||!(Me.isSubMenu||Me.isMenuItem||Me.isMenuItemGroup))return;dt.indexOf(nt.key)!==-1?yt.find=!0:nt.props.children&&Q(nt.props.children,dt,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(dt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=dt&&typeof dt.getBoundingClientRect=="function"&&dt.getBoundingClientRect().width;if(nt){if(yt){var Me=getComputedStyle(dt),Xe=Me.marginLeft,Ie=Me.marginRight;nt+=+Xe.replace("px","")+ +Ie.replace("px","")}nt=+nt.toFixed(6)}return nt||0},_e=function(dt,yt,nt){dt&&Object(H.a)(dt.style)==="object"&&(dt.style[yt]=nt)},Ae=function(){return re.any},Je=o("bdgK"),tt=o("i8i4"),ut=o.n(tt),ft=o("wgJM"),vt=o("l4aY"),_t=o("m+aA"),Ve=o("c+Xe"),je=o("zT1h"),ht=o("QC+M");function Bt(Ze,dt,yt){return yt?Ze[0]===dt[0]:Ze[0]===dt[0]&&Ze[1]===dt[1]}function Et(Ze,dt,yt){var nt=Ze[dt]||{};return Object(b.a)(Object(b.a)({},nt),yt)}function Pt(Ze,dt,yt,nt){for(var Me=yt.points,Xe=Object.keys(Ze),Ie=0;Ie<Xe.length;Ie+=1){var et=Xe[Ie];if(Bt(Ze[et].points,Me,nt))return"".concat(dt,"-placement-").concat(et)}return""}var qe=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ze=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(Ze)||/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(Ze==null?void 0:Ze.substr(0,4)))},He=o("MNnm");function Ye(Ze,dt){var yt={};return yt[Ze.toLowerCase()]=dt.toLowerCase(),yt["Webkit".concat(Ze)]="webkit".concat(dt),yt["Moz".concat(Ze)]="moz".concat(dt),yt["ms".concat(Ze)]="MS".concat(dt),yt["O".concat(Ze)]="o".concat(dt.toLowerCase()),yt}function Ce(Ze,dt){var yt={animationend:Ye("Animation","AnimationEnd"),transitionend:Ye("Transition","TransitionEnd")};return Ze&&("AnimationEvent"in dt||delete yt.animationend.animation,"TransitionEvent"in dt||delete yt.transitionend.transition),yt}var Le=Ce(Object(He.a)(),typeof window!="undefined"?window:{}),We={};if(Object(He.a)()){var Ue=document.createElement("div");We=Ue.style}var ze={};function st(Ze){if(ze[Ze])return ze[Ze];var dt=Le[Ze];if(dt)for(var yt=Object.keys(dt),nt=yt.length,Me=0;Me<nt;Me+=1){var Xe=yt[Me];if(Object.prototype.hasOwnProperty.call(dt,Xe)&&Xe in We)return ze[Ze]=dt[Xe],ze[Ze]}return""}var Ct=st("animationend"),Wt=st("transitionend"),Qt=!!(Ct&&Wt),Kt=Ct||"animationend",Ot=Wt||"transitionend";function Fe(Ze,dt){if(!Ze)return null;if(Object(H.a)(Ze)==="object"){var yt=dt.replace(/-\w/g,function(nt){return nt[1].toUpperCase()});return Ze[yt]}return"".concat(Ze,"-").concat(dt)}var at="none",it="appear",Pe="enter",Qe="leave",pt="none",bt="prepare",Dt="start",It="active",ct="end";function Nt(Ze){var dt=Object(y.useRef)(!1),yt=Object(y.useState)(Ze),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1];function Ie(et){dt.current||Xe(et)}return Object(y.useEffect)(function(){return function(){dt.current=!0}},[]),[Me,Ie]}var jt=Object(He.a)()?y.useLayoutEffect:y.useEffect,on=jt,vn=function(){var Ze=y.useRef(null);function dt(){ft.a.cancel(Ze.current)}function yt(nt){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;dt();var Xe=Object(ft.a)(function(){Me<=1?nt({isCanceled:function(){return Xe!==Ze.current}}):yt(nt,Me-1)});Ze.current=Xe}return y.useEffect(function(){return function(){dt()}},[]),[yt,dt]},Wn=[bt,Dt,It,ct],Kn=!1,Hn=!0;function fn(Ze){return Ze===It||Ze===ct}var lr=function(Ze,dt){var yt=y.useState(pt),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=vn(),et=Object(g.a)(Ie,2),$e=et[0],mt=et[1];function rt(){Xe(bt)}return on(function(){if(Me!==pt&&Me!==ct){var Mt=Wn.indexOf(Me),Vt=Wn[Mt+1],pn=dt(Me);pn===Kn?Xe(Vt):$e(function(ln){function dn(){if(ln.isCanceled())return;Xe(Vt)}pn===!0?dn():Promise.resolve(pn).then(dn)})}},[Ze,Me]),y.useEffect(function(){return function(){mt()}},[]),[rt,Me]},Zn=function(Ze){var dt=Object(y.useRef)(),yt=Object(y.useRef)(Ze);yt.current=Ze;var nt=y.useCallback(function(Ie){yt.current(Ie)},[]);function Me(Ie){Ie&&(Ie.removeEventListener(Ot,nt),Ie.removeEventListener(Kt,nt))}function Xe(Ie){dt.current&&dt.current!==Ie&&Me(dt.current),Ie&&Ie!==dt.current&&(Ie.addEventListener(Ot,nt),Ie.addEventListener(Kt,nt),dt.current=Ie)}return y.useEffect(function(){return function(){Me(dt.current)}},[]),[Xe,Me]};function cr(Ze,dt,yt,nt){var Me=nt.motionEnter,Xe=Me===void 0?!0:Me,Ie=nt.motionAppear,et=Ie===void 0?!0:Ie,$e=nt.motionLeave,mt=$e===void 0?!0:$e,rt=nt.motionDeadline,Mt=nt.motionLeaveImmediately,Vt=nt.onAppearPrepare,pn=nt.onEnterPrepare,ln=nt.onLeavePrepare,dn=nt.onAppearStart,cn=nt.onEnterStart,Fn=nt.onLeaveStart,Cn=nt.onAppearActive,Ur=nt.onEnterActive,Pr=nt.onLeaveActive,Qr=nt.onAppearEnd,Wr=nt.onEnterEnd,ta=nt.onLeaveEnd,zn=nt.onVisibleChanged,wr=Nt(),Gn=Object(g.a)(wr,2),bn=Gn[0],jn=Gn[1],Vr=Nt(at),ua=Object(g.a)(Vr,2),pr=ua[0],na=ua[1],Ca=Nt(null),ha=Object(g.a)(Ca,2),Sa=ha[0],Tr=ha[1],br=Object(y.useRef)(!1),Mr=Object(y.useRef)(null),tr=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;pr===it&&ba.current?Za=Qr==null?void 0:Qr(Ma,ja):pr===Pe&&ba.current?Za=Wr==null?void 0:Wr(Ma,ja):pr===Qe&&ba.current&&(Za=ta==null?void 0:ta(Ma,ja)),Za!==!1&&!tr.current&&(na(at),Tr(null))}var ga=Zn(Aa),Na=Object(g.a)(ga,1),ka=Na[0],Fa=y.useMemo(function(){var ja,Ma,Za;switch(pr){case"appear":return ja={},Object(M.a)(ja,bt,Vt),Object(M.a)(ja,Dt,dn),Object(M.a)(ja,It,Cn),ja;case"enter":return Ma={},Object(M.a)(Ma,bt,pn),Object(M.a)(Ma,Dt,cn),Object(M.a)(Ma,It,Ur),Ma;case"leave":return Za={},Object(M.a)(Za,bt,ln),Object(M.a)(Za,Dt,Fn),Object(M.a)(Za,It,Pr),Za;default:return{}}},[pr]),ni=lr(pr,function(ja){if(ja===bt){var Ma=Fa[bt];return Ma?Ma(xa()):Kn}if(La in Fa){var Za;Tr(((Za=Fa[La])===null||Za===void 0?void 0:Za.call(Fa,xa(),null))||null)}return La===It&&(ka(xa()),rt>0&&(clearTimeout(Mr.current),Mr.current=setTimeout(function(){Aa({deadline:!0})},rt))),Hn}),Fi=Object(g.a)(ni,2),Ai=Fi[0],La=Fi[1],bi=fn(La);ba.current=bi,on(function(){jn(dt);var ja=br.current;if(br.current=!0,!Ze)return;var Ma;!ja&&dt&&et&&(Ma=it),ja&&dt&&Xe&&(Ma=Pe),(ja&&!dt&&mt||!ja&&Mt&&!dt&&mt)&&(Ma=Qe),Ma&&(na(Ma),Ai())},[dt]),Object(y.useEffect)(function(){(pr===it&&!et||pr===Pe&&!Xe||pr===Qe&&!mt)&&na(at)},[et,Xe,mt]),Object(y.useEffect)(function(){return function(){clearTimeout(Mr.current),tr.current=!0}},[]),Object(y.useEffect)(function(){bn!==void 0&&pr===at&&(zn==null||zn(bn))},[bn,pr]);var Si=Sa;return Fa[bt]&&La===Dt&&(Si=Object(b.a)({transition:"none"},Si)),[pr,La,Si,bn!=null?bn:dt]}var dr=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){return Object(P.a)(this,yt),dt.apply(this,arguments)}return Object(R.a)(yt,[{key:"render",value:function(){return this.props.children}}]),yt}(y.Component),Dr=dr;function hr(Ze){var dt=Ze;Object(H.a)(Ze)==="object"&&(dt=Ze.transitionSupport);function yt(Me){return!!(Me.motionName&&dt)}var nt=y.forwardRef(function(Me,Xe){var Ie=Me.visible,et=Ie===void 0?!0:Ie,$e=Me.removeOnLeave,mt=$e===void 0?!0:$e,rt=Me.forceRender,Mt=Me.children,Vt=Me.motionName,pn=Me.leavedClassName,ln=Me.eventProps,dn=yt(Me),cn=Object(y.useRef)(),Fn=Object(y.useRef)();function Cn(){try{return Object(_t.a)(cn.current||Fn.current)}catch(na){return null}}var Ur=cr(dn,et,Cn,Me),Pr=Object(g.a)(Ur,4),Qr=Pr[0],Wr=Pr[1],ta=Pr[2],zn=Pr[3],wr=y.useRef(zn);zn&&(wr.current=!0);var Gn=Object(y.useRef)(Xe);Gn.current=Xe;var bn=y.useCallback(function(na){cn.current=na,Object(Ve.b)(Gn.current,na)},[]),jn,Vr=Object(b.a)(Object(b.a)({},ln),{},{visible:et});if(!Mt)jn=null;else if(Qr===at||!yt(Me))zn?jn=Mt(Object(b.a)({},Vr),bn):!mt&&wr.current?jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{className:pn}),bn):rt?jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{style:{display:"none"}}),bn):jn=null;else{var ua,pr;Wr===bt?pr="prepare":fn(Wr)?pr="active":Wr===Dt&&(pr="start"),jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{className:A()(Fe(Vt,Qr),(ua={},Object(M.a)(ua,Fe(Vt,"".concat(Qr,"-").concat(pr)),pr),Object(M.a)(ua,Vt,typeof Vt=="string"),ua)),style:ta}),bn)}return y.createElement(Dr,{ref:Fn},jn)});return nt.displayName="CSSMotion",nt}var sn=hr(Qt),en="add",On="keep",Fr="remove",Or="removed";function xr(Ze){var dt;return Ze&&Object(H.a)(Ze)==="object"&&"key"in Ze?dt=Ze:dt={key:Ze},Object(b.a)(Object(b.a)({},dt),{},{key:String(dt.key)})}function fr(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ze.map(xr)}function pe(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=[],nt=0,Me=dt.length,Xe=fr(Ze),Ie=fr(dt);Xe.forEach(function(mt){for(var rt=!1,Mt=nt;Mt<Me;Mt+=1){var Vt=Ie[Mt];if(Vt.key===mt.key){nt<Mt&&(yt=yt.concat(Ie.slice(nt,Mt).map(function(pn){return Object(b.a)(Object(b.a)({},pn),{},{status:en})})),nt=Mt),yt.push(Object(b.a)(Object(b.a)({},Vt),{},{status:On})),nt+=1,rt=!0;break}}rt||yt.push(Object(b.a)(Object(b.a)({},mt),{},{status:Fr}))}),nt<Me&&(yt=yt.concat(Ie.slice(nt).map(function(mt){return Object(b.a)(Object(b.a)({},mt),{},{status:en})})));var et={};yt.forEach(function(mt){var rt=mt.key;et[rt]=(et[rt]||0)+1});var $e=Object.keys(et).filter(function(mt){return et[mt]>1});return $e.forEach(function(mt){yt=yt.filter(function(rt){var Mt=rt.key,Vt=rt.status;return Mt!==mt||Vt!==Fr}),yt.forEach(function(rt){rt.key===mt&&(rt.status=On)})}),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(Ze){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,yt=function(nt){Object(S.a)(Xe,nt);var Me=Object(v.a)(Xe);function Xe(){var Ie;return Object(P.a)(this,Xe),Ie=Me.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function(et){Ie.setState(function($e){var mt=$e.keyEntities;return{keyEntities:mt.map(function(rt){return rt.key!==et?rt:Object(b.a)(Object(b.a)({},rt),{},{status:Or})})}})},Ie}return Object(R.a)(Xe,[{key:"render",value:function(){var et=this,$e=this.state.keyEntities,mt=this.props,rt=mt.component,Mt=mt.children,Vt=mt.onVisibleChanged,pn=Object(O.a)(mt,["component","children","onVisibleChanged"]),ln=rt||y.Fragment,dn={};return X.forEach(function(cn){dn[cn]=pn[cn],delete pn[cn]}),delete pn.keys,y.createElement(ln,pn,$e.map(function(cn){var Fn=cn.status,Cn=Object(O.a)(cn,["status"]),Ur=Fn===en||Fn===On;return y.createElement(dt,Object(_.a)({},dn,{key:Cn.key,visible:Ur,eventProps:Cn,onVisibleChanged:function(Qr){Vt==null||Vt(Qr,{key:Cn.key}),Qr||et.removeKey(Cn.key)}}),Mt)}))}}],[{key:"getDerivedStateFromProps",value:function(et,$e){var mt=et.keys,rt=$e.keyEntities,Mt=fr(mt),Vt=pe(rt,Mt);return{keyEntities:Vt.filter(function(pn){var ln=rt.find(function(dn){var cn=dn.key;return pn.key===cn});return!(ln&&ln.status===Or&&pn.status===Fr)})}}}]),Xe}(y.Component);return yt.defaultProps={component:"div"},yt}var oe=q(Qt),De=sn;function fe(Ze){var dt=Ze.prefixCls,yt=Ze.motion,nt=Ze.animation,Me=Ze.transitionName;return yt||(nt?{motionName:"".concat(dt,"-").concat(nt)}:Me?{motionName:Me}:null)}function ot(Ze){var dt=Ze.prefixCls,yt=Ze.visible,nt=Ze.zIndex,Me=Ze.mask,Xe=Ze.maskMotion,Ie=Ze.maskAnimation,et=Ze.maskTransitionName;if(!Me)return null;var $e={};return(Xe||et||Ie)&&($e=Object(b.a)({motionAppear:!0},fe({motion:Xe,prefixCls:dt,transitionName:et,animation:Ie}))),y.createElement(De,Object(_.a)({},$e,{visible:yt,removeOnLeave:!0}),function(mt){var rt=mt.className;return y.createElement("div",{style:{zIndex:nt},className:A()("".concat(dt,"-mask"),rt)})})}var Zt=o("9mu1"),Mn=o("o0o1"),Vn=o.n(Mn),qt=o("HaE+"),En=["measure","align",null,"motion"],un=function(Ze,dt){var yt=Object(y.useState)(null),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(y.useRef)(),et=Object(y.useRef)(!1);function $e(Mt){et.current||Xe(Mt)}function mt(){ft.a.cancel(Ie.current)}function rt(Mt){mt(),Ie.current=Object(ft.a)(function(){$e(function(Vt){switch(Me){case"align":return"motion";case"motion":return"stable";default:}return Vt}),Mt==null||Mt()})}return Object(y.useEffect)(function(){$e("measure")},[Ze]),Object(y.useEffect)(function(){switch(Me){case"measure":dt();break;default:}Me&&(Ie.current=Object(ft.a)(Object(qt.a)(Vn.a.mark(function Mt(){var Vt,pn;return Vn.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:Vt=En.indexOf(Me),pn=En[Vt+1],pn&&Vt!==-1&&$e(pn);case 3:case"end":return dn.stop()}},Mt)}))))},[Me]),Object(y.useEffect)(function(){return function(){et.current=!0,mt()}},[]),[Me,rt]},jr=function(Ze){var dt=y.useState({width:0,height:0}),yt=Object(g.a)(dt,2),nt=yt[0],Me=yt[1];function Xe(et){Me({width:et.offsetWidth,height:et.offsetHeight})}var Ie=y.useMemo(function(){var et={};if(Ze){var $e=nt.width,mt=nt.height;Ze.indexOf("height")!==-1&&mt?et.height=mt:Ze.indexOf("minHeight")!==-1&&mt&&(et.minHeight=mt),Ze.indexOf("width")!==-1&&$e?et.width=$e:Ze.indexOf("minWidth")!==-1&&$e&&(et.minWidth=$e)}return et},[Ze,nt]);return[Ie,Xe]},aa=y.forwardRef(function(Ze,dt){var yt=Ze.visible,nt=Ze.prefixCls,Me=Ze.className,Xe=Ze.style,Ie=Ze.children,et=Ze.zIndex,$e=Ze.stretch,mt=Ze.destroyPopupOnHide,rt=Ze.forceRender,Mt=Ze.align,Vt=Ze.point,pn=Ze.getRootDomNode,ln=Ze.getClassNameFromAlign,dn=Ze.onAlign,cn=Ze.onMouseEnter,Fn=Ze.onMouseLeave,Cn=Ze.onMouseDown,Ur=Ze.onTouchStart,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useState)(),ta=Object(g.a)(Wr,2),zn=ta[0],wr=ta[1],Gn=jr($e),bn=Object(g.a)(Gn,2),jn=bn[0],Vr=bn[1];function ua(){$e&&Vr(pn())}var pr=un(yt,ua),na=Object(g.a)(pr,2),Ca=na[0],ha=na[1],Sa=Object(y.useRef)();function Tr(){return Vt||pn}function br(){var ga;(ga=Pr.current)===null||ga===void 0||ga.forceAlign()}function Mr(ga,Na){var ka=ln(Na);zn!==ka&&wr(ka),Ca==="align"&&(zn!==ka?Promise.resolve().then(function(){br()}):ha(function(){var Fa;(Fa=Sa.current)===null||Fa===void 0||Fa.call(Sa)}),dn==null||dn(ga,Na))}var tr=Object(b.a)({},fe(Ze));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ga){var Na=tr[ga];tr[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(){!tr.motionName&&Ca==="motion"&&ha()},[tr.motionName,Ca]),y.useImperativeHandle(dt,function(){return{forceAlign:br,getElement:function(){return Qr.current}}});var xa=Object(b.a)(Object(b.a)({},jn),{},{zIndex:et,opacity:Ca==="motion"||Ca==="stable"||!yt?void 0:0,pointerEvents:Ca==="stable"?void 0:"none"},Xe),ba=!0;(Mt==null?void 0:Mt.points)&&(Ca==="align"||Ca==="stable")&&(ba=!1);var Aa=Ie;return y.Children.count(Ie)>1&&(Aa=y.createElement("div",{className:"".concat(nt,"-content")},Ie)),y.createElement(De,Object(_.a)({visible:yt,ref:Qr,leavedClassName:"".concat(nt,"-hidden")},tr,{onAppearPrepare:pa,onEnterPrepare:pa,removeOnLeave:mt,forceRender:rt}),function(ga,Na){var ka=ga.className,Fa=ga.style,ni=A()(nt,Me,zn,ka);return y.createElement(Zt.a,{target:Tr(),key:"popup",ref:Pr,monitorWindowResize:!0,disabled:ba,align:Mt,onAlign:Mr},y.createElement("div",{ref:Na,className:ni,onMouseEnter:cn,onMouseLeave:Fn,onMouseDownCapture:Cn,onTouchStartCapture:Ur,style:Object(b.a)(Object(b.a)({},Fa),xa)},Aa))})});aa.displayName="PopupInner";var oa=aa,er=y.forwardRef(function(Ze,dt){var yt=Ze.prefixCls,nt=Ze.visible,Me=Ze.zIndex,Xe=Ze.children,Ie=Ze.mobile;Ie=Ie===void 0?{}:Ie;var et=Ie.popupClassName,$e=Ie.popupStyle,mt=Ie.popupMotion,rt=mt===void 0?{}:mt,Mt=Ie.popupRender,Vt=y.useRef();y.useImperativeHandle(dt,function(){return{forceAlign:function(){},getElement:function(){return Vt.current}}});var pn=Object(b.a)({zIndex:Me},$e),ln=Xe;return y.Children.count(Xe)>1&&(ln=y.createElement("div",{className:"".concat(yt,"-content")},Xe)),Mt&&(ln=Mt(ln)),y.createElement(De,Object(_.a)({visible:nt,ref:Vt,removeOnLeave:!0},rt),function(dn,cn){var Fn=dn.className,Cn=dn.style,Ur=A()(yt,et,Fn);return y.createElement("div",{ref:cn,className:Ur,style:Object(b.a)(Object(b.a)({},Cn),pn)},ln)})});er.displayName="MobilePopupInner";var Ba=er,Ea=["visible","mobile"],ca=y.forwardRef(function(Ze,dt){var yt=Ze.visible,nt=Ze.mobile,Me=Object(O.a)(Ze,Ea),Xe=Object(y.useState)(yt),Ie=Object(g.a)(Xe,2),et=Ie[0],$e=Ie[1],mt=Object(y.useState)(!1),rt=Object(g.a)(mt,2),Mt=rt[0],Vt=rt[1],pn=Object(b.a)(Object(b.a)({},Me),{},{visible:et});Object(y.useEffect)(function(){$e(yt),yt&&nt&&Vt(qe())},[yt,nt]);var ln=Mt?y.createElement(Ba,Object(_.a)({},pn,{mobile:nt,ref:dt})):y.createElement(oa,Object(_.a)({},pn,{ref:dt}));return y.createElement("div",null,y.createElement(ot,pn),ln)});ca.displayName="Popup";var Ka=ca,Ta=y.createContext(null),Ja=Ta;function Ua(){}function li(){return""}function oi(Ze){return Ze?Ze.ownerDocument:window.document}var fa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ma(Ze){var dt=function(yt){Object(S.a)(Me,yt);var nt=Object(v.a)(Me);function Me(Xe){var Ie;Object(P.a)(this,Me),Ie=nt.call(this,Xe),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($e){var mt=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",$e),Ie.delaySetPopupVisible(!0,mt,mt?null:$e)},Ie.onMouseMove=function($e){Ie.fireEvents("onMouseMove",$e),Ie.setPoint($e)},Ie.onMouseLeave=function($e){Ie.fireEvents("onMouseLeave",$e),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function($e){var mt;if($e.relatedTarget&&!$e.relatedTarget.setTimeout&&Object(vt.a)((mt=Ie.popupRef.current)===null||mt===void 0?void 0:mt.getElement(),$e.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function($e){Ie.fireEvents("onFocus",$e),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function($e){Ie.fireEvents("onMouseDown",$e),Ie.preClickTime=Date.now()},Ie.onTouchStart=function($e){Ie.fireEvents("onTouchStart",$e),Ie.preTouchTime=Date.now()},Ie.onBlur=function($e){Ie.fireEvents("onBlur",$e),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function($e){$e.preventDefault(),Ie.fireEvents("onContextMenu",$e),Ie.setPopupVisible(!0,$e)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function($e){if(Ie.fireEvents("onClick",$e),Ie.focusTime){var mt;if(Ie.preClickTime&&Ie.preTouchTime?mt=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?mt=Ie.preClickTime:Ie.preTouchTime&&(mt=Ie.preTouchTime),Math.abs(mt-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&$e&&$e.preventDefault&&$e.preventDefault();var rt=!Ie.state.popupVisible;(Ie.isClickToHide()&&!rt||rt&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,$e)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var $e;($e=Ie.context).onPopupMouseDown.apply($e,arguments)}},Ie.onDocumentClick=function($e){if(Ie.props.mask&&!Ie.props.maskClosable)return;var mt=$e.target,rt=Ie.getRootDomNode(),Mt=Ie.getPopupDomNode();(!Object(vt.a)(rt,mt)||Ie.isContextMenuOnly())&&!Object(vt.a)(Mt,mt)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var $e=Ie.props.getTriggerDOMNode;if($e)return $e(Ie.triggerRef.current);try{var mt=Object(_t.a)(Ie.triggerRef.current);if(mt)return mt}catch(rt){}return ut.a.findDOMNode(Object(x.a)(Ie))},Ie.getPopupClassNameFromAlign=function($e){var mt=[],rt=Ie.props,Mt=rt.popupPlacement,Vt=rt.builtinPlacements,pn=rt.prefixCls,ln=rt.alignPoint,dn=rt.getPopupClassNameFromAlign;return Mt&&Vt&&mt.push(Pt(Vt,pn,$e,ln)),dn&&mt.push(dn($e)),mt.join(" ")},Ie.getComponent=function(){var $e=Ie.props,mt=$e.prefixCls,rt=$e.destroyPopupOnHide,Mt=$e.popupClassName,Vt=$e.onPopupAlign,pn=$e.popupMotion,ln=$e.popupAnimation,dn=$e.popupTransitionName,cn=$e.popupStyle,Fn=$e.mask,Cn=$e.maskAnimation,Ur=$e.maskTransitionName,Pr=$e.maskMotion,Qr=$e.zIndex,Wr=$e.popup,ta=$e.stretch,zn=$e.alignPoint,wr=$e.mobile,Gn=$e.forceRender,bn=Ie.state,jn=bn.popupVisible,Vr=bn.point,ua=Ie.getPopupAlign(),pr={};return Ie.isMouseEnterToShow()&&(pr.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(pr.onMouseLeave=Ie.onPopupMouseLeave),pr.onMouseDown=Ie.onPopupMouseDown,pr.onTouchStart=Ie.onPopupMouseDown,y.createElement(Ka,Object(_.a)({prefixCls:mt,destroyPopupOnHide:rt,visible:jn,point:zn&&Vr,className:Mt,align:ua,onAlign:Vt,animation:ln,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},pr,{stretch:ta,getRootDomNode:Ie.getRootDomNode,style:cn,mask:Fn,zIndex:Qr,transitionName:dn,maskAnimation:Cn,maskTransitionName:Ur,maskMotion:Pr,ref:Ie.popupRef,motion:pn,mobile:wr,forceRender:Gn}),typeof Wr=="function"?Wr():Wr)},Ie.attachParent=function($e){ft.a.cancel(Ie.attachId);var mt=Ie.props,rt=mt.getPopupContainer,Mt=mt.getDocument,Vt=Ie.getRootDomNode(),pn;rt?(Vt||rt.length===0)&&(pn=rt(Vt)):pn=Mt(Ie.getRootDomNode()).body,pn?pn.appendChild($e):Ie.attachId=Object(ft.a)(function(){Ie.attachParent($e)})},Ie.getContainer=function(){var $e=Ie.props.getDocument,mt=$e(Ie.getRootDomNode()).createElement("div");return mt.style.position="absolute",mt.style.top="0",mt.style.left="0",mt.style.width="100%",Ie.attachParent(mt),mt},Ie.setPoint=function($e){var mt=Ie.props.alignPoint;if(!mt||!$e)return;Ie.setState({point:{pageX:$e.pageX,pageY:$e.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)},Ie.triggerContextValue={onPopupMouseDown:Ie.onPopupMouseDown};var et;return"popupVisible"in Xe?et=!!Xe.popupVisible:et=!!Xe.defaultPopupVisible,Ie.state={prevPopupVisible:et,popupVisible:et},fa.forEach(function($e){Ie["fire".concat($e)]=function(mt){Ie.fireEvents($e,mt)}}),Ie}return Object(R.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,et=this.state;if(et.popupVisible){var $e;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&($e=Ie.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(je.a)($e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||($e=$e||Ie.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(je.a)($e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&($e=$e||Ie.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(je.a)($e,"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),ft.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,et=Ie.popupPlacement,$e=Ie.popupAlign,mt=Ie.builtinPlacements;return et&&mt?Et(mt,et,$e):$e}},{key:"setPopupVisible",value:function(Ie,et){var $e=this.props.alignPoint,mt=this.state.popupVisible;this.clearDelayTimer(),mt!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:mt}),this.props.onPopupVisibleChange(Ie)),$e&&et&&Ie&&this.setPoint(et)}},{key:"delaySetPopupVisible",value:function(Ie,et,$e){var mt=this,rt=et*1e3;if(this.clearDelayTimer(),rt){var Mt=$e?{pageX:$e.pageX,pageY:$e.pageY}:null;this.delayTimer=window.setTimeout(function(){mt.setPopupVisible(Ie,Mt),mt.clearDelayTimer()},rt)}else this.setPopupVisible(Ie,$e)}},{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 et=this.props.children.props,$e=this.props;return et[Ie]&&$e[Ie]?this["fire".concat(Ie)]:et[Ie]||$e[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("click")!==-1||$e.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,et=Ie.action,$e=Ie.showAction;return et.indexOf("contextMenu")!==-1||$e.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("click")!==-1||$e.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("hover")!==-1||$e.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("hover")!==-1||$e.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("focus")!==-1||$e.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("focus")!==-1||$e.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,et){var $e=this.props.children.props[Ie];$e&&$e(et);var mt=this.props[Ie];mt&&mt(et)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,et=this.props,$e=et.children,mt=et.forceRender,rt=et.alignPoint,Mt=et.className,Vt=et.autoDestroy,pn=y.Children.only($e),ln={key:"trigger"};this.isContextMenuToShow()?ln.onContextMenu=this.onContextMenu:ln.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ln.onClick=this.onClick,ln.onMouseDown=this.onMouseDown,ln.onTouchStart=this.onTouchStart):(ln.onClick=this.createTwoChains("onClick"),ln.onMouseDown=this.createTwoChains("onMouseDown"),ln.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ln.onMouseEnter=this.onMouseEnter,rt&&(ln.onMouseMove=this.onMouseMove)):ln.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ln.onMouseLeave=this.onMouseLeave:ln.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ln.onFocus=this.onFocus,ln.onBlur=this.onBlur):(ln.onFocus=this.createTwoChains("onFocus"),ln.onBlur=this.createTwoChains("onBlur"));var dn=A()(pn&&pn.props&&pn.props.className,Mt);dn&&(ln.className=dn);var cn=Object(b.a)({},ln);Object(Ve.c)(pn)&&(cn.ref=Object(Ve.a)(this.triggerRef,pn.ref));var Fn=y.cloneElement(pn,cn),Cn;return(Ie||this.popupRef.current||mt)&&(Cn=y.createElement(Ze,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&Vt&&(Cn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Fn,Cn)}}],[{key:"getDerivedStateFromProps",value:function(Ie,et){var $e=Ie.popupVisible,mt={};return $e!==void 0&&et.popupVisible!==$e&&(mt.popupVisible=$e,mt.prevPopupVisible=et.popupVisible),mt}}]),Me}(y.Component);return dt.contextType=Ja,dt.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},dt}var la=ma(ht.a),xe={adjustX:1,adjustY:1},lt={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]}},wt=lt,Ht=0,Lt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Xt=function(dt,yt,nt){var Me=le(yt),Xe=dt.getState();dt.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},Xe.defaultActiveFirst),{},Object(M.a)({},Me,nt))})},rn=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(nt){var Me;Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onDestroy=function(rt){Me.props.onDestroy(rt)},Me.onKeyDown=function(rt){var Mt=rt.keyCode,Vt=Me.menuInstance,pn=Me.props.store,ln=Me.getVisible();if(Mt===c.a.ENTER)return Me.onTitleClick(rt),Xt(pn,Me.props.eventKey,!0),!0;if(Mt===c.a.RIGHT)return ln?Vt.onKeyDown(rt):(Me.triggerOpenChange(!0),Xt(pn,Me.props.eventKey,!0)),!0;if(Mt===c.a.LEFT){var dn;if(ln)dn=Vt.onKeyDown(rt);else return;return dn||(Me.triggerOpenChange(!1),dn=!0),dn}return ln&&(Mt===c.a.UP||Mt===c.a.DOWN)?Vt.onKeyDown(rt):void 0},Me.onOpenChange=function(rt){Me.props.onOpenChange(rt)},Me.onPopupVisibleChange=function(rt){Me.triggerOpenChange(rt,rt?"mouseenter":"mouseleave")},Me.onMouseEnter=function(rt){var Mt=Me.props,Vt=Mt.eventKey,pn=Mt.onMouseEnter,ln=Mt.store;Xt(ln,Me.props.eventKey,!1),pn({key:Vt,domEvent:rt})},Me.onMouseLeave=function(rt){var Mt=Me.props,Vt=Mt.parentMenu,pn=Mt.eventKey,ln=Mt.onMouseLeave;Vt.subMenuInstance=Object(x.a)(Me),ln({key:pn,domEvent:rt})},Me.onTitleMouseEnter=function(rt){var Mt=Me.props,Vt=Mt.eventKey,pn=Mt.onItemHover,ln=Mt.onTitleMouseEnter;pn({key:Vt,hover:!0}),ln({key:Vt,domEvent:rt})},Me.onTitleMouseLeave=function(rt){var Mt=Me.props,Vt=Mt.parentMenu,pn=Mt.eventKey,ln=Mt.onItemHover,dn=Mt.onTitleMouseLeave;Vt.subMenuInstance=Object(x.a)(Me),ln({key:pn,hover:!1}),dn({key:pn,domEvent:rt})},Me.onTitleClick=function(rt){var Mt=Object(x.a)(Me),Vt=Mt.props;if(Vt.onTitleClick({key:Vt.eventKey,domEvent:rt}),Vt.triggerSubMenuAction==="hover")return;Me.triggerOpenChange(!Me.getVisible(),"click"),Xt(Vt.store,Me.props.eventKey,!1)},Me.onSubMenuClick=function(rt){typeof Me.props.onClick=="function"&&Me.props.onClick(Me.addKeyPath(rt))},Me.onSelect=function(rt){Me.props.onSelect(rt)},Me.onDeselect=function(rt){Me.props.onDeselect(rt)},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(rt){Me.menuInstance=rt},Me.addKeyPath=function(rt){return Object(b.a)(Object(b.a)({},rt),{},{keyPath:(rt.keyPath||[]).concat(Me.props.eventKey)})},Me.triggerOpenChange=function(rt,Mt){var Vt=Me.props.eventKey,pn=function(){Me.onOpenChange({key:Vt,item:Object(x.a)(Me),trigger:Mt,open:rt})};Mt==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){pn()},0):pn()},Me.isChildrenSelected=function(){var rt={find:!1};return Q(Me.props.children,Me.props.selectedKeys,rt),rt.find},Me.isInlineMode=function(){return Me.getMode()==="inline"},Me.adjustWidth=function(){if(!Me.subMenuTitle||!Me.menuInstance)return;var rt=tt.findDOMNode(Me.menuInstance);if(rt.offsetWidth>=Me.subMenuTitle.offsetWidth)return;rt.style.minWidth="".concat(Me.subMenuTitle.offsetWidth,"px")},Me.saveSubMenuTitle=function(rt){Me.subMenuTitle=rt},Me.getBaseProps=function(){var rt=Object(x.a)(Me),Mt=rt.props,Vt=Me.getMode();return{mode:Vt==="horizontal"?"vertical":Vt,visible:Me.getVisible(),level:Mt.level+1,inlineIndent:Mt.inlineIndent,focusable:!1,onClick:Me.onSubMenuClick,onSelect:Me.onSelect,onDeselect:Me.onDeselect,onDestroy:Me.onDestroy,selectedKeys:Mt.selectedKeys,eventKey:"".concat(Mt.eventKey,"-menu-"),openKeys:Mt.openKeys,motion:Mt.motion,onOpenChange:Me.onOpenChange,subMenuOpenDelay:Mt.subMenuOpenDelay,parentMenu:Object(x.a)(Me),subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,triggerSubMenuAction:Mt.triggerSubMenuAction,builtinPlacements:Mt.builtinPlacements,defaultActiveFirst:Mt.store.getState().defaultActiveFirst[le(Mt.eventKey)],multiple:Mt.multiple,prefixCls:Mt.rootPrefixCls,id:Me.internalMenuId,manualRef:Me.saveMenuInstance,itemIcon:Mt.itemIcon,expandIcon:Mt.expandIcon,direction:Mt.direction}},Me.getMotion=function(rt,Mt){var Vt=Object(x.a)(Me),pn=Vt.haveRendered,ln=Me.props,dn=ln.motion,cn=ln.rootPrefixCls,Fn=Object(b.a)(Object(b.a)({},dn),{},{leavedClassName:"".concat(cn,"-hidden"),removeOnLeave:!1,motionAppear:pn||!Mt||rt!=="inline"});return Fn};var Xe=nt.store,Ie=nt.eventKey,et=Xe.getState(),$e=et.defaultActiveFirst;Me.isRootMenu=!1;var mt=!1;return $e&&(mt=$e[Ie]),Xt(Xe,Ie,mt),Me.state={mode:nt.mode,isOpen:nt.isOpen},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Xe=this.props,Ie=Xe.mode,et=Xe.parentMenu,$e=Xe.manualRef,mt=Xe.isOpen,rt=function(){Me.setState({mode:Ie,isOpen:mt})},Mt=mt!==this.state.isOpen,Vt=Ie!==this.state.mode;if((Vt||Mt)&&(ft.a.cancel(this.updateStateRaf),Vt?this.updateStateRaf=Object(ft.a)(rt):rt()),$e&&$e(this),Ie!=="horizontal"||!(et==null?void 0:et.isRootMenu)||!mt)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Xe=Me.onDestroy,Ie=Me.eventKey;Xe&&Xe(Ie),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ft.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Me,Xe){var Ie=this.getBaseProps();return y.createElement(Yt,Object(_.a)({},Ie,{id:this.internalMenuId,className:Me,style:Xe}),this.props.children)}},{key:"renderChildren",value:function(){var Me=this,Xe=this.getBaseProps(),Ie=Xe.mode,et=Xe.visible,$e=Xe.forceSubMenuRender,mt=Xe.direction,rt=this.getMotion(Ie,et);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||et||$e,!this.haveOpened)return y.createElement("div",null);var Mt=A()("".concat(Xe.prefixCls,"-sub"),Object(M.a)({},"".concat(Xe.prefixCls,"-rtl"),mt==="rtl"));return this.isInlineMode()?y.createElement(De,Object(_.a)({visible:Xe.visible,forceRender:$e},rt),function(Vt){var pn=Vt.className,ln=Vt.style,dn=A()(Mt,pn);return Me.renderPopupMenu(dn,ln)}):this.renderPopupMenu(Mt)}},{key:"render",value:function(){var Me,Xe,Ie,et=Object(b.a)({},this.props),$e=this.getVisible(),mt=this.getPrefixCls(),rt=this.isInlineMode(),Mt=this.getMode(),Vt=A()(mt,"".concat(mt,"-").concat(Mt),(Me={},Object(M.a)(Me,et.className,!!et.className),Object(M.a)(Me,this.getOpenClassName(),$e),Object(M.a)(Me,this.getActiveClassName(),et.active||$e&&!rt),Object(M.a)(Me,this.getDisabledClassName(),et.disabled),Object(M.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||(et.eventKey?this.internalMenuId="".concat(et.eventKey,"$Menu"):(Ht+=1,this.internalMenuId="$__$".concat(Ht,"$Menu")));var pn={},ln={},dn={};et.disabled||(pn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ln={onClick:this.onTitleClick},dn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var cn={},Fn=et.direction,Cn=Fn==="rtl";rt&&(Cn?cn.paddingRight=et.inlineIndent*et.level:cn.paddingLeft=et.inlineIndent*et.level);var Ur={};this.getVisible()&&(Ur={"aria-owns":this.internalMenuId});var Pr=null;Mt!=="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:cn,className:"".concat(mt,"-title"),role:"button"},dn,ln,{"aria-expanded":$e},Ur,{"aria-haspopup":"true",title:typeof et.title=="string"?et.title:void 0}),et.title,Pr||y.createElement("i",{className:"".concat(mt,"-arrow")})),Wr=this.renderChildren(),ta=((Xe=et.parentMenu)===null||Xe===void 0?void 0:Xe.isRootMenu)?et.parentMenu.props.getPopupContainer:function(Tr){return Tr.parentNode},zn=Lt[Mt],wr=et.popupOffset?{offset:et.popupOffset}:{},Gn=A()((Ie={},Object(M.a)(Ie,et.popupClassName,et.popupClassName&&!rt),Object(M.a)(Ie,"".concat(mt,"-rtl"),Cn),Ie)),bn=et.disabled,jn=et.triggerSubMenuAction,Vr=et.subMenuOpenDelay,ua=et.forceSubMenuRender,pr=et.subMenuCloseDelay,na=et.builtinPlacements;J.forEach(function(Tr){return delete et[Tr]}),delete et.onClick;var Ca=Cn?Object(b.a)(Object(b.a)({},Rt),na):Object(b.a)(Object(b.a)({},lt),na);delete et.direction;var ha=this.getBaseProps(),Sa=rt?null:this.getMotion(ha.mode,ha.visible);return y.createElement("li",Object(_.a)({},et,pn,{className:Vt,role:"menuitem"}),y.createElement(la,{prefixCls:mt,popupClassName:A()("".concat(mt,"-popup"),Gn),getPopupContainer:ta,builtinPlacements:Ca,popupPlacement:zn,popupVisible:rt?!1:$e,popupAlign:wr,popup:rt?null:Wr,action:bn||rt?[]:[jn],mouseEnterDelay:Vr,mouseLeaveDelay:pr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ua,popupMotion:Sa},Qr),rt?Wr:null)}}]),yt}(y.Component);rn.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var xn=Object(T.b)(function(Ze,dt){var yt=Ze.openKeys,nt=Ze.activeKey,Me=Ze.selectedKeys,Xe=dt.eventKey,Ie=dt.subMenuKey;return{isOpen:yt.indexOf(Xe)>-1,active:nt[Ie]===Xe,selectedKeys:Me}})(rn);xn.isSubMenu=!0;var gn=xn,Nn="menuitem-overflowed",An=.5,an=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.resizeObserver=null,nt.mutationObserver=null,nt.originalTotalWidth=0,nt.overflowedItems=[],nt.menuItemSizes=[],nt.cancelFrameId=null,nt.state={lastVisibleIndex:void 0},nt.childRef=y.createRef(),nt.getMenuItemNodes=function(){var Me=nt.props.prefixCls,Xe=nt.childRef.current;return Xe?[].slice.call(Xe.children).filter(function(Ie){return Ie.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Me,Xe,Ie){var et=nt.props,$e=et.overflowedIndicator,mt=et.level,rt=et.mode,Mt=et.prefixCls,Vt=et.theme;if(mt!==1||rt!=="horizontal")return null;var pn=nt.props.children[0],ln=pn.props,dn=ln.children,cn=ln.title,Fn=ln.style,Cn=Object(O.a)(ln,["children","title","style"]),Ur=Object(b.a)({},Fn),Pr="".concat(Me,"-overflowed-indicator"),Qr="".concat(Me,"-overflowed-indicator");Xe.length===0&&Ie!==!0?Ur=Object(b.a)(Object(b.a)({},Ur),{},{display:"none"}):Ie&&(Ur=Object(b.a)(Object(b.a)({},Ur),{},{visibility:"hidden",position:"absolute"}),Pr="".concat(Pr,"-placeholder"),Qr="".concat(Qr,"-placeholder"));var Wr=Vt?"".concat(Mt,"-").concat(Vt):"",ta={};return J.forEach(function(zn){Cn[zn]!==void 0&&(ta[zn]=Cn[zn])}),y.createElement(gn,Object(_.a)({title:$e,className:"".concat(Mt,"-overflowed-submenu"),popupClassName:Wr},ta,{key:Pr,eventKey:Qr,disabled:!1,style:Ur}),Xe)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Xe=Me.children;if(!Xe||Xe.length===0)return;var Ie=Me.children[Xe.length-1];_e(Ie,"display","inline-block");var et=nt.getMenuItemNodes(),$e=et.filter(function(mt){return mt.className.split(" ").indexOf(Nn)>=0});$e.forEach(function(mt){_e(mt,"display","inline-block")}),nt.menuItemSizes=et.map(function(mt){return ve(mt,!0)}),$e.forEach(function(mt){_e(mt,"display","none")}),nt.overflowedIndicatorWidth=ve(Me.children[Me.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(mt,rt){return mt+rt},0),nt.handleResize(),_e(Ie,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Xe=ve(Me);nt.overflowedItems=[];var Ie=0,et;nt.originalTotalWidth>Xe+An&&(et=-1,nt.menuItemSizes.forEach(function($e){Ie+=$e,Ie+nt.overflowedIndicatorWidth<=Xe&&(et+=1)})),nt.setState({lastVisibleIndex:et})},nt}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Xe=this.childRef.current;if(!Xe)return;this.resizeObserver=new Je.default(function(Ie){Ie.forEach(function(){var et=Me.cancelFrameId;cancelAnimationFrame(et),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),Me.setChildrenWidthAndResize()}),this.mutationObserver.observe(Xe,{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 Xe=this,Ie=this.state.lastVisibleIndex;return(Me||[]).reduce(function(et,$e,mt){var rt=$e;if(Xe.props.mode==="horizontal"){var Mt=Xe.getOverflowedSubMenuItem($e.props.eventKey,[]);Ie!==void 0&&Xe.props.className.indexOf("".concat(Xe.props.prefixCls,"-root"))!==-1&&(mt>Ie&&(rt=y.cloneElement($e,{style:{display:"none"},eventKey:"".concat($e.props.eventKey,"-hidden"),className:"".concat(Nn)})),mt===Ie+1&&(Xe.overflowedItems=Me.slice(Ie+1).map(function(pn){return y.cloneElement(pn,{key:pn.props.eventKey,mode:"vertical-left"})}),Mt=Xe.getOverflowedSubMenuItem($e.props.eventKey,Xe.overflowedItems)));var Vt=[].concat(Object(f.a)(et),[Mt,rt]);return mt===Me.length-1&&Vt.push(Xe.getOverflowedSubMenuItem($e.props.eventKey,[],!0)),Vt}return[].concat(Object(f.a)(et),[rt])},[])}},{key:"render",value:function(){var Me=this.props,Xe=Me.visible,Ie=Me.prefixCls,et=Me.overflowedIndicator,$e=Me.mode,mt=Me.level,rt=Me.tag,Mt=Me.children,Vt=Me.theme,pn=Object(O.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ln=rt;return y.createElement(ln,Object(_.a)({ref:this.childRef},pn),this.renderChildren(Mt))}}]),yt}(y.Component);an.defaultProps={tag:"div",className:""};var Pn=an;function yn(Ze){return Ze.length?Ze.every(function(dt){return!!dt.props.disabled}):!0}function kn(Ze,dt,yt){var nt=Ze.getState();Ze.setState({activeKey:Object(b.a)(Object(b.a)({},nt.activeKey),{},Object(M.a)({},dt,yt))})}function Rn(Ze){return Ze.eventKey||"0-menu-"}function Yn(Ze,dt){var yt=dt,nt=Ze.children,Me=Ze.eventKey;if(yt){var Xe;if(te(nt,function(Ie,et){Ie&&Ie.props&&!Ie.props.disabled&&yt===Oe(Ie,Me,et)&&(Xe=!0)}),Xe)return yt}return yt=null,Ze.defaultActiveFirst&&te(nt,function(Ie,et){!yt&&Ie&&!Ie.props.disabled&&(yt=Oe(Ie,Me,et))}),yt}function mr(Ze){if(!Ze)return;var dt=this.instanceArray.indexOf(Ze);dt!==-1?this.instanceArray[dt]=Ze:this.instanceArray.push(Ze)}var Br=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(nt){var Me;return Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onKeyDown=function(Xe,Ie){var et=Xe.keyCode,$e;if(Me.getFlatInstanceArray().forEach(function(rt){rt&&rt.props.active&&rt.onKeyDown&&($e=rt.onKeyDown(Xe))}),$e)return 1;var mt=null;return(et===c.a.UP||et===c.a.DOWN)&&(mt=Me.step(et===c.a.UP?-1:1)),mt?(Xe.preventDefault(),kn(Me.props.store,Rn(Me.props),mt.props.eventKey),typeof Ie=="function"&&Ie(mt),1):void 0},Me.onItemHover=function(Xe){var Ie=Xe.key,et=Xe.hover;kn(Me.props.store,Rn(Me.props),et?Ie:null)},Me.onDeselect=function(Xe){Me.props.onDeselect(Xe)},Me.onSelect=function(Xe){Me.props.onSelect(Xe)},Me.onClick=function(Xe){Me.props.onClick(Xe)},Me.onOpenChange=function(Xe){Me.props.onOpenChange(Xe)},Me.onDestroy=function(Xe){Me.props.onDestroy(Xe)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Xe){var Ie=Me.getFlatInstanceArray(),et=Me.props.store.getState().activeKey[Rn(Me.props)],$e=Ie.length;if(!$e)return null;Xe<0&&(Ie=Ie.concat().reverse());var mt=-1;if(Ie.every(function(pn,ln){return pn&&pn.props.eventKey===et?(mt=ln,!1):!0}),!Me.props.defaultActiveFirst&&mt!==-1&&yn(Ie.slice(mt,$e-1)))return;var rt=(mt+1)%$e,Mt=rt;do{var Vt=Ie[Mt];if(!Vt||Vt.props.disabled)Mt=(Mt+1)%$e;else return Vt}while(Mt!==rt);return null},Me.renderCommonMenuItem=function(Xe,Ie,et){var $e=Me.props.store.getState(),mt=Object(x.a)(Me),rt=mt.props,Mt=Oe(Xe,rt.eventKey,Ie),Vt=Xe.props;if(!Vt||typeof Xe.type=="string")return Xe;var pn=Mt===$e.activeKey,ln=Object(b.a)(Object(b.a)({mode:Vt.mode||rt.mode,level:rt.level,inlineIndent:rt.inlineIndent,renderMenuItem:Me.renderMenuItem,rootPrefixCls:rt.prefixCls,index:Ie,parentMenu:rt.parentMenu,manualRef:Vt.disabled?void 0:Object(L.a)(Xe.ref,mr.bind(Object(x.a)(Me))),eventKey:Mt,active:!Vt.disabled&&pn,multiple:rt.multiple,onClick:function(cn){(Vt.onClick||ae)(cn),Me.onClick(cn)},onItemHover:Me.onItemHover,motion:rt.motion,subMenuOpenDelay:rt.subMenuOpenDelay,subMenuCloseDelay:rt.subMenuCloseDelay,forceSubMenuRender:rt.forceSubMenuRender,onOpenChange:Me.onOpenChange,onDeselect:Me.onDeselect,onSelect:Me.onSelect,builtinPlacements:rt.builtinPlacements,itemIcon:Vt.itemIcon||Me.props.itemIcon,expandIcon:Vt.expandIcon||Me.props.expandIcon},et),{},{direction:rt.direction});return(rt.mode==="inline"||Ae())&&(ln.triggerSubMenuAction="click"),y.cloneElement(Xe,Object(b.a)(Object(b.a)({},ln),{},{key:Mt||Ie}))},Me.renderMenuItem=function(Xe,Ie,et){if(!Xe)return null;var $e=Me.props.store.getState(),mt={openKeys:$e.openKeys,selectedKeys:$e.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:et};return Me.renderCommonMenuItem(Xe,Ie,mt)},nt.store.setState({activeKey:Object(b.a)(Object(b.a)({},nt.store.getState().activeKey),{},Object(M.a)({},nt.eventKey,Yn(nt,nt.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 Xe=this.props,Ie="activeKey"in Xe?Xe.activeKey:Xe.store.getState().activeKey[Rn(Xe)],et=Yn(Xe,Ie);if(et!==Ie)kn(Xe.store,Rn(Xe),et);else if("activeKey"in Me){var $e=Yn(Me,Me.activeKey);et!==$e&&kn(Xe.store,Rn(Xe),et)}}},{key:"render",value:function(){var Me=this,Xe=Object(_.a)({},this.props);this.instanceArray=[];var Ie=A()(Xe.prefixCls,Xe.className,"".concat(Xe.prefixCls,"-").concat(Xe.mode)),et={className:Ie,role:Xe.role||"menu"};Xe.id&&(et.id=Xe.id),Xe.focusable&&(et.tabIndex=0,et.onKeyDown=this.onKeyDown);var $e=Xe.prefixCls,mt=Xe.eventKey,rt=Xe.visible,Mt=Xe.level,Vt=Xe.mode,pn=Xe.overflowedIndicator,ln=Xe.theme;return J.forEach(function(dn){return delete Xe[dn]}),delete Xe.onClick,y.createElement(Pn,Object(_.a)({},Xe,{prefixCls:$e,mode:Vt,tag:"ul",level:Mt,theme:ln,visible:rt,overflowedIndicator:pn},et),Object(m.a)(Xe.children).map(function(dn,cn){return Me.renderMenuItem(dn,cn,mt||"0-menu-")}))}}]),yt}(y.Component);Br.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var Sn=Object(T.b)()(Br),Yt=Sn,hn=o("Kwbf");function Dn(Ze,dt,yt){var nt=Ze.prefixCls,Me=Ze.motion,Xe=Ze.defaultMotions,Ie=Xe===void 0?{}:Xe,et=Ze.openAnimation,$e=Ze.openTransitionName,mt=dt.switchingModeFromInline;if(Me)return Me;if(Object(H.a)(et)==="object"&&et)Object(hn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof et=="string")return{motionName:"".concat(nt,"-open-").concat(et)};if($e)return{motionName:$e};var rt=Ie[yt];return rt||(mt?null:Ie.other)}var tn=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(nt){var Me;Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onSelect=function(et){var $e=Object(x.a)(Me),mt=$e.props;if(mt.selectable){var rt=Me.store.getState(),Mt=rt.selectedKeys,Vt=et.key;mt.multiple?Mt=Mt.concat([Vt]):Mt=[Vt],"selectedKeys"in mt||Me.store.setState({selectedKeys:Mt}),mt.onSelect(Object(b.a)(Object(b.a)({},et),{},{selectedKeys:Mt}))}},Me.onClick=function(et){var $e=Me.getRealMenuMode(),mt=Object(x.a)(Me),rt=mt.store,Mt=mt.props.onOpenChange;$e!=="inline"&&!("openKeys"in Me.props)&&(rt.setState({openKeys:[]}),Mt([])),Me.props.onClick(et)},Me.onKeyDown=function(et,$e){Me.innerMenu.getWrappedInstance().onKeyDown(et,$e)},Me.onOpenChange=function(et){var $e=Object(x.a)(Me),mt=$e.props,rt=Me.store.getState().openKeys.concat(),Mt=!1,Vt=function(ln){var dn=!1;if(ln.open)dn=rt.indexOf(ln.key)===-1,dn&&rt.push(ln.key);else{var cn=rt.indexOf(ln.key);dn=cn!==-1,dn&&rt.splice(cn,1)}Mt=Mt||dn};Array.isArray(et)?et.forEach(Vt):Vt(et),Mt&&("openKeys"in Me.props||Me.store.setState({openKeys:rt}),mt.onOpenChange(rt))},Me.onDeselect=function(et){var $e=Object(x.a)(Me),mt=$e.props;if(mt.selectable){var rt=Me.store.getState().selectedKeys.concat(),Mt=et.key,Vt=rt.indexOf(Mt);Vt!==-1&&rt.splice(Vt,1),"selectedKeys"in mt||Me.store.setState({selectedKeys:rt}),mt.onDeselect(Object(b.a)(Object(b.a)({},et),{},{selectedKeys:rt}))}},Me.onMouseEnter=function(et){Me.restoreModeVerticalFromInline();var $e=Me.props.onMouseEnter;$e&&$e(et)},Me.onTransitionEnd=function(et){var $e=et.propertyName==="width"&&et.target===et.currentTarget,mt=et.target.className,rt=Object.prototype.toString.call(mt)==="[object SVGAnimatedString]"?mt.animVal:mt,Mt=et.propertyName==="font-size"&&rt.indexOf("anticon")>=0;($e||Mt)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function(et){Me.innerMenu=et},Me.isRootMenu=!0;var Xe=nt.defaultSelectedKeys,Ie=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Xe=nt.selectedKeys||[]),"openKeys"in nt&&(Ie=nt.openKeys||[]),Me.store=Object(T.c)({selectedKeys:Xe,openKeys:Ie,activeKey:{"0-menu-":Yn(nt,nt.activeKey)}}),Me.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Me.store},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){var Xe=this.props,Ie=Xe.siderCollapsed,et=Xe.inlineCollapsed,$e=Xe.onOpenChange;(!Me.inlineCollapsed&&et||!Me.siderCollapsed&&Ie)&&$e([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Xe=this.store,Ie=this.prevOpenKeys,et=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");et?(this.prevOpenKeys=Xe.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,Xe=this.state.switchingModeFromInline,Ie=this.getInlineCollapsed();return Xe&&Ie?"inline":Ie?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Xe=Me.inlineCollapsed,Ie=Me.siderCollapsed;return Ie!==void 0?Ie:Xe}},{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"])),Xe=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:Xe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Dn(this.props,this.state,Xe)}),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,Xe){var Ie=Xe.prevProps,et=Xe.store,$e=et.getState(),mt={},rt={prevProps:Me};return Ie.mode==="inline"&&Me.mode!=="inline"&&(rt.switchingModeFromInline=!0),"openKeys"in Me?mt.openKeys=Me.openKeys||[]:((Me.inlineCollapsed&&!Ie.inlineCollapsed||Me.siderCollapsed&&!Ie.siderCollapsed)&&(rt.switchingModeFromInline=!0,rt.inlineOpenKeys=$e.openKeys,mt.openKeys=[]),(!Me.inlineCollapsed&&Ie.inlineCollapsed||!Me.siderCollapsed&&Ie.siderCollapsed)&&(mt.openKeys=Xe.inlineOpenKeys,rt.inlineOpenKeys=[])),Object.keys(mt).length&&et.setState(mt),rt}}]),yt}(y.Component);tn.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 wn=tn,_n=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.onKeyDown=function(Me){var Xe=Me.keyCode;return Xe===c.a.ENTER?(nt.onClick(Me),!0):void 0},nt.onMouseLeave=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.onItemHover,$e=Xe.onMouseLeave;et({key:Ie,hover:!1}),$e({key:Ie,domEvent:Me})},nt.onMouseEnter=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.onItemHover,$e=Xe.onMouseEnter;et({key:Ie,hover:!0}),$e({key:Ie,domEvent:Me})},nt.onClick=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.multiple,$e=Xe.onClick,mt=Xe.onSelect,rt=Xe.onDeselect,Mt=Xe.isSelected,Vt={key:Ie,keyPath:[Ie],item:Object(x.a)(nt),domEvent:Me};$e(Vt),et?Mt?rt(Vt):mt(Vt):Mt||mt(Vt)},nt.saveNode=function(Me){nt.node=Me},nt}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,Xe=Object(b.a)({},this.props),Ie=A()(this.getPrefixCls(),Xe.className,(Me={},Object(M.a)(Me,this.getActiveClassName(),!Xe.disabled&&Xe.active),Object(M.a)(Me,this.getSelectedClassName(),Xe.isSelected),Object(M.a)(Me,this.getDisabledClassName(),Xe.disabled),Me)),et=Object(b.a)(Object(b.a)({},Xe.attribute),{},{title:typeof Xe.title=="string"?Xe.title:void 0,className:Ie,role:Xe.role||"menuitem","aria-disabled":Xe.disabled});Xe.role==="option"?et=Object(b.a)(Object(b.a)({},et),{},{role:"option","aria-selected":Xe.isSelected}):(Xe.role===null||Xe.role==="none")&&(et.role="none");var $e={onClick:Xe.disabled?null:this.onClick,onMouseLeave:Xe.disabled?null:this.onMouseLeave,onMouseEnter:Xe.disabled?null:this.onMouseEnter},mt=Object(b.a)({},Xe.style);Xe.mode==="inline"&&(Xe.direction==="rtl"?mt.paddingRight=Xe.inlineIndent*Xe.level:mt.paddingLeft=Xe.inlineIndent*Xe.level),J.forEach(function(Mt){return delete Xe[Mt]}),delete Xe.direction;var rt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(rt=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(_.a)({},Object(U.a)(Xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),et,$e,{style:mt,ref:this.saveNode}),Xe.children,rt)}}]),yt}(y.Component);_n.isMenuItem=!0,_n.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var In=Object(T.b)(function(Ze,dt){var yt=Ze.activeKey,nt=Ze.selectedKeys,Me=dt.eventKey,Xe=dt.subMenuKey;return{active:yt[Xe]===Me,isSelected:Array.isArray(nt)?nt.indexOf(Me)!==-1:nt===Me}})(_n),Un=In,ar=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.renderInnerMenuItem=function(Me){var Xe=nt.props,Ie=Xe.renderMenuItem,et=Xe.index;return Ie(Me,et,nt.props.subMenuKey)},nt}return Object(R.a)(yt,[{key:"render",value:function(){var Me=Object(_.a)({},this.props),Xe=Me.className,Ie=Xe===void 0?"":Xe,et=Me.rootPrefixCls,$e="".concat(et,"-item-group-title"),mt="".concat(et,"-item-group-list"),rt=Me.title,Mt=Me.children;return J.forEach(function(Vt){return delete Me[Vt]}),delete Me.direction,y.createElement("li",Object(_.a)({},Me,{onClick:function(pn){return pn.stopPropagation()},className:"".concat(Ie," ").concat(et,"-item-group")}),y.createElement("div",{className:$e,title:typeof rt=="string"?rt:void 0},rt),y.createElement("ul",{className:mt},y.Children.map(Mt,this.renderInnerMenuItem)))}}]),yt}(y.Component);ar.isMenuItemGroup=!0,ar.defaultProps={disabled:!0};var qn=ar,Rr=function(dt){var yt=dt.className,nt=dt.rootPrefixCls,Me=dt.style;return y.createElement("li",{className:"".concat(yt," ").concat(nt,"-item-divider"),style:Me})};Rr.defaultProps={disabled:!0,className:"",style:{}};var Ir=Rr,Jn=wn,Ar=o("eDIo");function vr(Ze,dt){var yt=Ze.prefixCls,nt=Ze.editable,Me=Ze.locale,Xe=Ze.style;return!nt||nt.showAdd===!1?null:y.createElement("button",{ref:dt,type:"button",className:"".concat(yt,"-nav-add"),style:Xe,"aria-label":(Me==null?void 0:Me.addAriaLabel)||"Add tab",onClick:function(et){nt.onEdit("add",{event:et})}},nt.addIcon||"+")}var zr=y.forwardRef(vr);function Lr(Ze,dt){var yt=Ze.prefixCls,nt=Ze.id,Me=Ze.tabs,Xe=Ze.locale,Ie=Ze.mobile,et=Ze.moreIcon,$e=et===void 0?"More":et,mt=Ze.moreTransitionName,rt=Ze.style,Mt=Ze.className,Vt=Ze.editable,pn=Ze.tabBarGutter,ln=Ze.rtl,dn=Ze.onTabClick,cn=Object(y.useState)(!1),Fn=Object(g.a)(cn,2),Cn=Fn[0],Ur=Fn[1],Pr=Object(y.useState)(null),Qr=Object(g.a)(Pr,2),Wr=Qr[0],ta=Qr[1],zn="".concat(nt,"-more-popup"),wr="".concat(yt,"-dropdown"),Gn=Wr!==null?"".concat(zn,"-").concat(Wr):null,bn=Xe==null?void 0:Xe.dropdownAriaLabel,jn=y.createElement(Jn,{onClick:function(Sa){var Tr=Sa.key,br=Sa.domEvent;dn(Tr,br),Ur(!1)},id:zn,tabIndex:-1,role:"listbox","aria-activedescendant":Gn,selectedKeys:[Wr],"aria-label":bn!==void 0?bn:"expanded dropdown"},Me.map(function(ha){return y.createElement(Un,{key:ha.key,id:"".concat(zn,"-").concat(ha.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(ha.key),disabled:ha.disabled},ha.tab)}));function Vr(ha){for(var Sa=Me.filter(function(pa){return!pa.disabled}),Tr=Sa.findIndex(function(pa){return pa.key===Wr})||0,br=Sa.length,Mr=0;Mr<br;Mr+=1){Tr=(Tr+ha+br)%br;var tr=Sa[Tr];if(!tr.disabled){ta(tr.key);return}}}function ua(ha){var Sa=ha.which;if(!Cn){[c.a.DOWN,c.a.SPACE,c.a.ENTER].includes(Sa)&&(Ur(!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:Ur(!1);break;case c.a.SPACE:case c.a.ENTER:Wr!==null&&dn(Wr,ha);break}}Object(y.useEffect)(function(){var ha=document.getElementById(Gn);ha&&ha.scrollIntoView&&ha.scrollIntoView(!1)},[Wr]),Object(y.useEffect)(function(){Cn||ta(null)},[Cn]);var pr=Object(M.a)({},ln?"marginLeft":"marginRight",pn);Me.length||(pr.visibility="hidden",pr.order=1);var na=A()(Object(M.a)({},"".concat(wr,"-rtl"),ln)),Ca=Ie?null:y.createElement(Ar.a,{prefixCls:wr,overlay:jn,trigger:["hover"],visible:Cn,transitionName:mt,onVisibleChange:Ur,overlayClassName:na,mouseEnterDelay:.1,mouseLeaveDelay:.1},y.createElement("button",{type:"button",className:"".concat(yt,"-nav-more"),style:pr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":zn,id:"".concat(nt,"-more"),"aria-expanded":Cn,onKeyDown:ua},$e));return y.createElement("div",{className:A()("".concat(yt,"-nav-operations"),Mt),style:rt,ref:dt},Ca,y.createElement(zr,{prefixCls:yt,locale:Xe,editable:Vt}))}var $r=y.forwardRef(Lr),nr=Object(y.createContext)(null),Gt=.1,$t=.01,Jt=20,Xn=Math.pow(.995,Jt);function $n(){var Ze=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(Ze)||/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(Ze.substr(0,4)))}function Ln(Ze,dt){var yt=Object(y.useState)(),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(y.useState)(0),et=Object(g.a)(Ie,2),$e=et[0],mt=et[1],rt=Object(y.useState)(0),Mt=Object(g.a)(rt,2),Vt=Mt[0],pn=Mt[1],ln=Object(y.useState)(),dn=Object(g.a)(ln,2),cn=dn[0],Fn=dn[1],Cn=Object(y.useRef)();function Ur(bn){var jn=bn.touches[0],Vr=jn.screenX,ua=jn.screenY;Xe({x:Vr,y:ua}),window.clearInterval(Cn.current)}function Pr(bn){if(!Me)return;bn.preventDefault();var jn=bn.touches[0],Vr=jn.screenX,ua=jn.screenY;Xe({x:Vr,y:ua});var pr=Vr-Me.x,na=ua-Me.y;dt(pr,na);var Ca=Date.now();mt(Ca),pn(Ca-$e),Fn({x:pr,y:na})}function Qr(){if(!Me)return;if(Xe(null),Fn(null),cn){var bn=cn.x/Vt,jn=cn.y/Vt,Vr=Math.abs(bn),ua=Math.abs(jn);if(Math.max(Vr,ua)<Gt)return;var pr=bn,na=jn;Cn.current=window.setInterval(function(){if(Math.abs(pr)<$t&&Math.abs(na)<$t){window.clearInterval(Cn.current);return}pr*=Xn,na*=Xn,dt(pr*Jt,na*Jt)},Jt)}}var Wr=Object(y.useRef)(0),ta=Object(y.useRef)(!1),zn=Object(y.useRef)();function wr(bn){var jn=bn.deltaX,Vr=bn.deltaY,ua=0,pr=Math.abs(jn),na=Math.abs(Vr);pr===na?ua=zn.current==="x"?jn:Vr:pr>na?(ua=jn,zn.current="x"):(ua=Vr,zn.current="y");var Ca=Date.now();Ca-Wr.current>100&&(ta.current=!1),(dt(-ua,-ua)||ta.current)&&(bn.preventDefault(),ta.current=!0),Wr.current=Ca}var Gn=Object(y.useRef)(null);Gn.current={onTouchStart:Ur,onTouchMove:Pr,onTouchEnd:Qr,onWheel:wr},y.useEffect(function(){function bn(pr){Gn.current.onTouchStart(pr)}function jn(pr){Gn.current.onTouchMove(pr)}function Vr(pr){Gn.current.onTouchEnd(pr)}function ua(pr){Gn.current.onWheel(pr)}return document.addEventListener("touchmove",jn,{passive:!1}),document.addEventListener("touchend",Vr,{passive:!1}),Ze.current.addEventListener("touchstart",bn,{passive:!1}),Ze.current.addEventListener("wheel",ua),function(){document.removeEventListener("touchmove",jn),document.removeEventListener("touchend",Vr)}},[])}function rr(){var Ze=Object(y.useRef)(new Map);function dt(nt){return Ze.current.has(nt)||Ze.current.set(nt,y.createRef()),Ze.current.get(nt)}function yt(nt){Ze.current.delete(nt)}return[dt,yt]}function ur(Ze,dt){var yt=y.useRef(Ze),nt=y.useState({}),Me=Object(g.a)(nt,2),Xe=Me[1];function Ie(et){var $e=typeof et=="function"?et(yt.current):et;$e!==yt.current&&dt($e,yt.current),yt.current=$e,Xe({})}return[yt.current,Ie]}var ir=function(dt){var yt=dt.position,nt=dt.prefixCls,Me=dt.extra;if(!Me)return null;var Xe,Ie=Me;return yt==="right"&&(Xe=Ie.right||!Ie.left&&Ie||null),yt==="left"&&(Xe=Ie.left||null),Xe?y.createElement("div",{className:"".concat(nt,"-extra-content")},Xe):null};function qr(Ze,dt){var yt,nt=y.useContext(nr),Me=nt.prefixCls,Xe=nt.tabs,Ie=Ze.className,et=Ze.style,$e=Ze.id,mt=Ze.animated,rt=Ze.activeKey,Mt=Ze.rtl,Vt=Ze.extra,pn=Ze.editable,ln=Ze.locale,dn=Ze.tabPosition,cn=Ze.tabBarGutter,Fn=Ze.children,Cn=Ze.onTabClick,Ur=Ze.onTabScroll,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useRef)(),ta=Object(y.useRef)(),zn=rr(),wr=Object(g.a)(zn,2),Gn=wr[0],bn=wr[1],jn=dn==="top"||dn==="bottom",Vr=ur(0,function(Da,ya){jn&&Ur&&Ur({direction:Da>ya?"left":"right"})}),ua=Object(g.a)(Vr,2),pr=ua[0],na=ua[1],Ca=ur(0,function(Da,ya){!jn&&Ur&&Ur({direction:Da>ya?"top":"bottom"})}),ha=Object(g.a)(Ca,2),Sa=ha[0],Tr=ha[1],br=Object(y.useState)(0),Mr=Object(g.a)(br,2),tr=Mr[0],pa=Mr[1],xa=Object(y.useState)(0),ba=Object(g.a)(xa,2),Aa=ba[0],ga=ba[1],Na=Object(y.useState)(0),ka=Object(g.a)(Na,2),Fa=ka[0],ni=ka[1],Fi=Object(y.useState)(0),Ai=Object(g.a)(Fi,2),La=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),ja=Object(g.a)(Si,2),Ma=ja[0],Za=ja[1],to=Object(y.useState)(null),Mo=Object(g.a)(to,2),Ii=Mo[0],no=Mo[1],ro=Object(y.useState)(0),mi=Object(g.a)(ro,2),uo=mi[0],Io=mi[1],Lo=Object(y.useState)(0),bo=Object(g.a)(Lo,2),Vi=bo[0],co=bo[1],Xi=r(new Map),Yi=Object(g.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=u(Xe,No,tr),Ji="".concat(Me,"-nav-operations-hidden"),Qi=0,ei=0;jn?Mt?(Qi=0,ei=Math.max(0,tr-Ma)):(Qi=Math.min(0,Ma-tr),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(g.a)(Zi,2),Eo=Ri[0],xo=Ri[1];function Co(){xo(Date.now())}function io(){window.clearTimeout(Di.current)}Ln(Pr,function(Da,ya){var Ga=!1;function ui(eo,ki){eo(function(ho){var wi=Li(ho+ki),qa=Object(g.a)(wi,2),po=qa[0],Hi=qa[1];return Ga=Hi,po})}if(jn){if(Ma>=tr)return Ga;ui(na,Da)}else{if(Ii>=Aa)return Ga;ui(Tr,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]:rt,ya=ao.get(Da);if(!ya)return;if(jn){var Ga=pr;Mt?ya.right<pr?Ga=ya.right:ya.right+ya.width>pr+Ma&&(Ga=ya.right+ya.width-Ma):ya.left<-pr?Ga=-ya.left:ya.left+ya.width>-pr+Ma&&(Ga=-(ya.left+ya.width-Ma)),Tr(0),na(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)),na(0),Tr(Li(ui)[0])}}var qi=E(ao,{width:Ma,height:Ii,left:pr,top:Sa},{width:Fa,height:La},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Ze),{},{tabs:Xe})),ko=Object(g.a)(qi,2),oo=ko[0],so=ko[1],So=Xe.map(function(Da){var ya=Da.key;return y.createElement(d,{id:$e,prefixCls:Me,key:ya,rtl:Mt,tab:Da,closable:Da.closable,editable:pn,active:ya===rt,tabPosition:dn,tabBarGutter:cn,renderWrapper:Fn,removeAriaLabel:ln==null?void 0:ln.removeAriaLabel,ref:Gn(ya),onClick:function(ui){Cn(ya,ui)},onRemove:function(){bn(ya)},onFocus:function(){Ni(ya),Co(),Mt||(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 Cr=(((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(Cr),ga(Zr);var va=(qa=Wr.current)===null||qa===void 0?void 0:qa.className.includes(Ji);ni(Cr-(va?0:Pa)),bi(Zr-(va?0:sa)),yo(function(){var Wa=new Map;return Xe.forEach(function(Ei){var Pi=Ei.key,$a=Gn(Pi).current;$a&&Wa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Wa})}),jo=Xe.slice(0,oo),fi=Xe.slice(so+1),Ha=[].concat(Object(f.a)(jo),Object(f.a)(fi)),ri=Object(y.useState)(),Xa=Object(g.a)(ri,2),ai=Xa[0],wo=Xa[1],yi=ao.get(rt),Bo=Object(y.useRef)();function To(){l.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Da={};return yi&&(jn?(Mt?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,jn,Mt]),Object(y.useEffect)(function(){Ni()},[rt,yi,ao,jn]),Object(y.useEffect)(function(){Uo()},[Mt,cn,rt,Xe.map(function(Da){return Da.key}).join("_")]);var $i=!!Ha.length,Wi="".concat(Me,"-nav-wrap"),Oo,fo,Wo,lo;return jn?Mt?(fo=pr>0,Oo=pr+Ma<tr):(Oo=pr<0,fo=-pr+Ma<tr):(Wo=Sa<0,lo=-Sa+Ii<Aa),y.createElement("div",{ref:dt,role:"tablist",className:A()("".concat(Me,"-nav"),Ie),style:et,onKeyDown:function(){Co()}},y.createElement(ir,{position:"left",extra:Vt,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(pr,"px, ").concat(Sa,"px)"),transition:Eo?"none":void 0}},So,y.createElement(zr,{ref:ta,prefixCls:Me,locale:ln,editable:pn,style:{visibility:$i?"hidden":null}}),y.createElement("div",{className:A()("".concat(Me,"-ink-bar"),Object(M.a)({},"".concat(Me,"-ink-bar-animated"),mt.inkBar)),style:ai}))))),y.createElement($r,Object.assign({},Ze,{ref:Wr,prefixCls:Me,tabs:Ha,className:!$i&&Ji})),y.createElement(ir,{position:"right",extra:Vt,prefixCls:Me}))}var or=y.forwardRef(qr);function da(Ze){var dt=Ze.id,yt=Ze.activeKey,nt=Ze.animated,Me=Ze.tabPosition,Xe=Ze.rtl,Ie=Ze.destroyInactiveTabPane,et=y.useContext(nr),$e=et.prefixCls,mt=et.tabs,rt=nt.tabPane,Mt=mt.findIndex(function(Vt){return Vt.key===yt});return y.createElement("div",{className:A()("".concat($e,"-content-holder"))},y.createElement("div",{className:A()("".concat($e,"-content"),"".concat($e,"-content-").concat(Me),Object(M.a)({},"".concat($e,"-content-animated"),rt)),style:Mt&&rt?Object(M.a)({},Xe?"marginRight":"marginLeft","-".concat(Mt,"00%")):null},mt.map(function(Vt){return y.cloneElement(Vt.node,{key:Vt.key,prefixCls:$e,tabKey:Vt.key,id:dt,animated:rt,active:Vt.key===yt,destroyInactiveTabPane:Ie})})))}function Yr(Ze){var dt=Ze.prefixCls,yt=Ze.forceRender,nt=Ze.className,Me=Ze.style,Xe=Ze.id,Ie=Ze.active,et=Ze.animated,$e=Ze.destroyInactiveTabPane,mt=Ze.tabKey,rt=Ze.children,Mt=y.useState(yt),Vt=Object(g.a)(Mt,2),pn=Vt[0],ln=Vt[1];y.useEffect(function(){Ie?ln(!0):$e&&ln(!1)},[Ie,$e]);var dn={};return Ie||(et?(dn.visibility="hidden",dn.height=0,dn.overflowY="hidden"):dn.display="none"),y.createElement("div",{id:Xe&&"".concat(Xe,"-panel-").concat(mt),role:"tabpanel",tabIndex:Ie?0:-1,"aria-labelledby":Xe&&"".concat(Xe,"-tab-").concat(mt),"aria-hidden":!Ie,style:Object(b.a)(Object(b.a)({},dn),Me),className:A()("".concat(dt,"-tabpane"),Ie&&"".concat(dt,"-tabpane-active"),nt)},(Ie||pn||yt)&&rt)}var _r=0;function Sr(Ze){return Object(m.a)(Ze).map(function(dt){if(y.isValidElement(dt)){var yt=dt.key!==void 0?String(dt.key):void 0;return Object(b.a)(Object(b.a)({key:yt},dt.props),{},{node:dt})}return null}).filter(function(dt){return dt})}function Kr(Ze,dt){var yt,nt=Ze.id,Me=Ze.prefixCls,Xe=Me===void 0?"rc-tabs":Me,Ie=Ze.className,et=Ze.children,$e=Ze.direction,mt=Ze.activeKey,rt=Ze.defaultActiveKey,Mt=Ze.editable,Vt=Ze.animated,pn=Ze.tabPosition,ln=pn===void 0?"top":pn,dn=Ze.tabBarGutter,cn=Ze.tabBarStyle,Fn=Ze.tabBarExtraContent,Cn=Ze.locale,Ur=Ze.moreIcon,Pr=Ze.moreTransitionName,Qr=Ze.destroyInactiveTabPane,Wr=Ze.renderTabBar,ta=Ze.onChange,zn=Ze.onTabClick,wr=Ze.onTabScroll,Gn=Object(O.a)(Ze,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),bn=Sr(et),jn=$e==="rtl",Vr;Vt===!1?Vr={inkBar:!1,tabPane:!1}:Vr=Object(b.a)({inkBar:!0,tabPane:!1},Vt!==!0?Vt:null);var ua=Object(y.useState)(!1),pr=Object(g.a)(ua,2),na=pr[0],Ca=pr[1];Object(y.useEffect)(function(){Ca($n())},[]);var ha=Object(e.a)(function(){var La;return(La=bn[0])===null||La===void 0?void 0:La.key},{value:mt,defaultValue:rt}),Sa=Object(g.a)(ha,2),Tr=Sa[0],br=Sa[1],Mr=Object(y.useState)(function(){return bn.findIndex(function(La){return La.key===Tr})}),tr=Object(g.a)(Mr,2),pa=tr[0],xa=tr[1];Object(y.useEffect)(function(){var La=bn.findIndex(function(Si){return Si.key===Tr});if(La===-1){var bi;La=Math.max(0,Math.min(pa,bn.length-1)),br((bi=bn[La])===null||bi===void 0?void 0:bi.key)}xa(La)},[bn.map(function(La){return La.key}).join("_"),Tr,pa]);var ba=Object(e.a)(null,{value:nt}),Aa=Object(g.a)(ba,2),ga=Aa[0],Na=Aa[1],ka=ln;na&&!["left","right"].includes(ln)&&(ka="top"),Object(y.useEffect)(function(){nt||(Na("rc-tabs-".concat(_r)),_r+=1)},[]);function Fa(La,bi){zn==null||zn(La,bi),br(La),ta==null||ta(La)}var ni={id:ga,activeKey:Tr,animated:Vr,tabPosition:ka,rtl:jn,mobile:na},Fi,Ai=Object(b.a)(Object(b.a)({},ni),{},{editable:Mt,locale:Cn,moreIcon:Ur,moreTransitionName:Pr,tabBarGutter:dn,onTabClick:Fa,onTabScroll:wr,extra:Fn,style:cn,panes:et});return Wr?Fi=Wr(Ai,or):Fi=y.createElement(or,Object.assign({},Ai)),y.createElement(nr.Provider,{value:{tabs:bn,prefixCls:Xe}},y.createElement("div",Object.assign({ref:dt,id:nt,className:A()(Xe,"".concat(Xe,"-").concat(ka),(yt={},Object(M.a)(yt,"".concat(Xe,"-mobile"),na),Object(M.a)(yt,"".concat(Xe,"-editable"),Mt),Object(M.a)(yt,"".concat(Xe,"-rtl"),jn),yt),Ie)},Gn),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,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04COkUGoytusEAhUGi9APyO+UTlWVfyPkrt0/kQ8y4FcI3NQF6zYnNAEn1VKtQuAJg1XiPRPOnnggFmwmicTIC/VqOa5wCiFHhCFGGGAtnkNUBGyaLVGKJXvvZXe8ZlpS/UP5DAh8cgPt8nTP8n+LZbS7vIHpdH2WzcBzUZp1njCTgB/HacYNQxS1sluFF4zwmgpHEpa09ckOleGkuUaEa70sRmrU4fgGG7L8VBOPnCiThgvXaU5ByE14rAGcwxA/vsxha3lJPF4ylv0mpCVKYBCGRRFXm5BvedlMcEEVgyY0hSHP+nn8XZiin1G6gu+At3watfC0l8MWIk5GBs+0UhxZbvSyuM545Gvn+ijYsIU9GvKkyeLVIOBUypIwKSbSyt94RUxHCeIgMNRFEauaDBt6fSrdkS+p0MnisUpgGtIlH7rc9nOU8pQyPmF4XGBY5v2G6RRvtp7irkFjeGf7bYTuyXfYVpUhi8gtLOCaoJA1KKPaL2aVHXjM+XievFm6Ti+JlE0GrupIDMqRps+4z6vh+f3DqHcF8MyZVSbdhl9lKCm8gBVBPn+pNq43qHBSlTujgNeDkJUo3+3Iw9BYF3F3i7K5eonUd9hLqhm2lz/IG8OaYADflgjPndMBGHkcqD3B4mMn+Gc2iaszbSOpZtDbFBdN4uFgINOJMAqOjGxLW77bJ/BHJDU7kcfXjOEeEa7s9NzdM65WeNK0sC5dQGjSrPDgB+1zVNiRqmbh7wO2dQWnm2tv0+C8Zq7rfxkbjOEC3AsQmtSyYnc9q8cW8kMDSYHB7saqHGs+xvLgQ36272VJ9Zajh92ukwtH8JCXxxWajvFSC1sjZYEPC0W4pT3RG3jj0xQ/qF8qe86ymVRTbLg2KOQxLBdkvkdWeLoR7qyaL6fOWqMqI+9jZvYAHsEyKP7eVtj//HPBn5bU7CP9uN4oi4GvSFdGcRhhgybYvHuunByzXqd4IZtEmNi2BzZSklrPQ/vKpK43gOJvEzWvZDZrvYCb1ZIDhBZeyE3xt01ZrDRwc5zqhCiyPNtaxZwD63tmRe37jbhZs/1i5iQKSGpIYeZs+7HcKYYZwPfb50bwSK2l/LNOtabzuUet0TGB4VdGmJD5f0qFiro6Ko7cL65OnDVcxjA+zwDFmY9H/TY62/OYuFbzQphthXIRzus8U4kLy10DhGfemi8u3zOuUv9K4Km4gLaF14kIbty7SF75XOAzE0rW6iwxPBxHOFiUt0Plx77HvSjXZiLntI0o/3iJrO+bXZWSCibh8QsjlMRnE06IZYWjiEgb+CLo6RQrm1t4oKbs3E4dnNSh/fLYkvCZHNtRmppDysOAh6oyOHQ/0+i1Ot6HZzyPS1TjunvcRFzVI/gZjn6rKPORzHNps+ro4A6F5aaef+1oXFSl9EFmqvIEkBunBstea5i9Z778T99AgnFr1dWTp0S4sO1u7ETj1LCItiLvEu1RQn6ya7H8Q5/tJnWEzecFz+PSDPtxKWIdMMJFvkNEDHq4iuU1dVSySWrPZXvkeh2SHfEi8EfGQBTRWFdLecLw0IEyaTnXmovX6ng1PC3CeNeuifCZCeP+5OxRXKEXGp95hrgouAjsGBZ+KxHLTCOvd+0YVUrXMUMVB0j70z4cRty0b7H8R19BKqnUGQY20kZnXU1511rm+R5LFa7J2KmOQpJ7lsijfbU7brVOwOcfRSiNIxaqjbBaLeNc5HeAf5DlNQ1fAPyQxoY6yv0vA/xxq3QEAcvFMCumR2eG476vRsKCPQvY0blNbp9y8Xr9YxvyhBFGZS4YRSFzCot4YvvtnVhAT4hN0mDsDSz1PRaoUuCYgcLWAO4IYbXAdzLNTGgtmz5exNxzneMs80n1i7P4TpDLOokY5KiWKlXAYhG+1iXyPw/8FTokO7tT5H8p4CfVlBbyFassFeE6IKvTJRqt5QVfWLVzoXzUE3bOcZpgjYGZmfTgmpBt0UkW71vJe70CNVO9QZbLBl7J3xufCY7tZJq29UPrufdIAYtNG1j9XEqzyq7mwyw+eIiXO2tJ5zrbebfoqKIxVPr5zNB03AOoVd6KWpkbJJwDubXPkf9lgz9powaNdUw1HveqMrUz8Erc6W0OI9bvW8T+Lhy9+003alDcyPd8pVKIu0uHU2O6medaPmP5oZ/KJ+d03DT1i6cy2eSzzE8wTV0P4agS7DeWH+1aJC+VPKhTRXlUNMOkhEhb2d58jLsPHuYNnusqmrXvM2i2DisazeKgkFsRCp1dFRpUWGYifolQDnzv/wV8p5XYfP5CPMpRLu0GzlGrrB9g+Gltbdwc9Dhyzke3HyEqzmKgn2CDSCxWuShzmk86XcvrErDR+vxGsqhNnESbwHiFDJYGvi4+3w8KmEK6Q/azqjzWYLjP8efipBb6eSwQj6XtnbVJQNTEzqiVjZ7PlpYWjuWCbR2ImFYKwkamGMstWf3jBivXVW91+lHIG4W5zKxpJbu9w+0r+CPW6NBcjxcVLo8Lbl/TjvCMmFjRPVNwix/Q0kDiAuc6xy6qoAqHULaKpVGlZ9WzLQtwysLbrR5vZaco1SDO0a6ixzbFgLUcUdhllE+d5OpSiIXhpq0IDnShHrMkSClsM5YluxbJh7HHVWXCaka2BpQb4Vsxo2pr192C084uzq5y2mk7GEaIk4SFi1xHlUmDroC/Z5V79iyUlztrOw58l45OVbMsFbLudEUPbGeFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},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,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(g){var O=M,b=O.lib,y=b.WordArray,C=b.Hasher,A=O.algo,m=[],e=[];(function(){function l(c){for(var h=g.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&&(m[r]=n(g.pow(i,1/2))),e[r]=n(g.pow(i,1/3)),r++),i++})();var f=[],a=A.SHA256=C.extend({_doReset:function(){this._hash=new y.init(m.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),L=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=E+L+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]=g.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(g,O){var b=M.getMode(g,"text/html"),y=b.name=="null";function C(F){if(M.findModeByName){var I=M.findModeByName(F);I&&(F=I.mime||I.mimes[0])}var K=M.getMode(g,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 m in A)A.hasOwnProperty(m)&&O.tokenTypeOverrides[m]&&(A[m]=O.tokenTypeOverrides[m]);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,I,K){return I.f=I.inline=K,K(F,I)}function u(F,I,K){return I.f=I.block=K,K(F,I)}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 I=y;if(!I){var K=M.innerMode(b,F.htmlState);I=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}I&&(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,I){var K=F.column()===I.indentation,ee=w(I.prevLine.stream),he=I.indentedCode,de=I.prevLine.hr,Se=I.list!==!1,Te=(I.listStack[I.listStack.length-1]||0)+3;I.indentedCode=!1;var ce=I.indentation;if(I.indentationDiff===null&&(I.indentationDiff=I.indentation,Se)){for(I.list=null;ce<I.listStack[I.listStack.length-1];)I.listStack.pop(),I.listStack.length?I.indentation=I.listStack[I.listStack.length-1]:I.list=!1;I.list!==!1&&(I.indentationDiff=ce-I.listStack[I.listStack.length-1])}var be=!ee&&!de&&!I.prevLine.header&&(!Se||!he)&&!I.prevLine.fencedCodeEnd,ye=(I.list===!1||de||ee)&&I.indentation<=Te&&F.match(e),ue=null;if(I.indentationDiff>=4&&(he||I.prevLine.fencedCodeEnd||I.prevLine.header||ee))return F.skipToEnd(),I.indentedCode=!0,A.code;if(F.eatSpace())return null;if(K&&I.indentation<=Te&&(ue=F.match(l))&&ue[1].length<=6)return I.quote=0,I.header=ue[1].length,I.thisLine.header=!0,O.highlightFormatting&&(I.formatting="header"),I.f=I.inline,x(I);if(I.indentation<=Te&&F.eat(">"))return I.quote=K?1:I.quote+1,O.highlightFormatting&&(I.formatting="quote"),F.eatSpace(),x(I);if(!ye&&!I.setext&&K&&I.indentation<=Te&&(ue=F.match(f))){var se=ue[1]?"ol":"ul";return I.indentation=ce+F.current().length,I.list=!0,I.quote=0,I.listStack.push(I.indentation),I.em=!1,I.strong=!1,I.code=!1,I.strikethrough=!1,O.taskLists&&F.match(a,!1)&&(I.taskList=!0),I.f=I.inline,O.highlightFormatting&&(I.formatting=["list","list-"+se]),x(I)}else{if(K&&I.indentation<=Te&&(ue=F.match(r,!0)))return I.quote=0,I.fencedEndRE=new RegExp(ue[1]+"+ *$"),I.localMode=O.fencedCodeBlockHighlighting&&C(ue[2]||O.fencedCodeBlockDefaultMode),I.localMode&&(I.localState=M.startState(I.localMode)),I.f=I.block=R,O.highlightFormatting&&(I.formatting="code-block"),I.code=-1,x(I);if(I.setext||(!be||!Se)&&!I.quote&&I.list===!1&&!I.code&&!ye&&!c.test(F.string)&&(ue=F.lookAhead(1))&&(ue=ue.match(n)))return I.setext?(I.header=I.setext,I.setext=0,F.skipToEnd(),O.highlightFormatting&&(I.formatting="header")):(I.header=ue[0].charAt(0)=="="?1:2,I.setext=I.header),I.thisLine.header=!0,I.f=I.inline,x(I);if(ye)return F.skipToEnd(),I.hr=!0,I.thisLine.hr=!0,A.hr;if(F.peek()==="[")return s(F,I,V)}return s(F,I,I.inline)}function P(F,I){var K=b.token(F,I.htmlState);if(!y){var ee=M.innerMode(b,I.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||I.md_inside&&F.current().indexOf(">")>-1)&&(I.f=v,I.block=_,I.htmlState=null)}return K}function R(F,I){var K=I.listStack[I.listStack.length-1]||0,ee=I.indentation<K,he=K+3;if(I.fencedEndRE&&I.indentation<=he&&(ee||F.match(I.fencedEndRE))){O.highlightFormatting&&(I.formatting="code-block");var de;return ee||(de=x(I)),I.localMode=I.localState=null,I.block=_,I.f=v,I.fencedEndRE=null,I.code=0,I.thisLine.fencedCodeEnd=!0,ee?u(F,I,I.block):de}else return I.localMode?I.localMode.token(F,I.localState):(F.skipToEnd(),A.code)}function x(F){var I=[];if(F.formatting){I.push(A.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var K=0;K<F.formatting.length;K++)I.push(A.formatting+"-"+F.formatting[K]),F.formatting[K]==="header"&&I.push(A.formatting+"-"+F.formatting[K]+"-"+F.header),F.formatting[K]==="quote"&&(!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=F.quote?I.push(A.formatting+"-"+F.formatting[K]+"-"+F.quote):I.push("error"))}if(F.taskOpen)return I.push("meta"),I.length?I.join(" "):null;if(F.taskClosed)return I.push("property"),I.length?I.join(" "):null;if(F.linkHref?I.push(A.linkHref,"url"):(F.strong&&I.push(A.strong),F.em&&I.push(A.em),F.strikethrough&&I.push(A.strikethrough),F.emoji&&I.push(A.emoji),F.linkText&&I.push(A.linkText),F.code&&I.push(A.code),F.image&&I.push(A.image),F.imageAltText&&I.push(A.imageAltText,"link"),F.imageMarker&&I.push(A.imageMarker)),F.header&&I.push(A.header,A.header+"-"+F.header),F.quote&&(I.push(A.quote),!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=F.quote?I.push(A.quote+"-"+F.quote):I.push(A.quote+"-"+O.maxBlockquoteDepth)),F.list!==!1){var ee=(F.listStack.length-1)%3;ee?ee===1?I.push(A.list2):I.push(A.list3):I.push(A.list1)}return F.trailingSpaceNewLine?I.push("trailing-space-new-line"):F.trailingSpace&&I.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),I.length?I.join(" "):null}function S(F,I){return F.match(i,!0)?x(I):void 0}function v(F,I){var K=I.text(F,I);if(typeof K!="undefined")return K;if(I.list)return I.list=null,x(I);if(I.taskList){var ee=F.match(a,!0)[1]===" ";return ee?I.taskOpen=!0:I.taskClosed=!0,O.highlightFormatting&&(I.formatting="task"),I.taskList=!1,x(I)}if(I.taskOpen=!1,I.taskClosed=!1,I.header&&F.match(/^#+$/,!0))return O.highlightFormatting&&(I.formatting="header"),x(I);var he=F.next();if(I.linkTitle){I.linkTitle=!1;var de=he;he==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Se="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(F.match(new RegExp(Se),!0))return A.linkHref}if(he==="`"){var Te=I.formatting;O.highlightFormatting&&(I.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(I.code==0&&(!I.quote||ce==1))return I.code=ce,x(I);if(ce==I.code){var be=x(I);return I.code=0,be}else return I.formatting=Te,x(I)}else if(I.code)return x(I);if(he==="\\"&&(F.next(),O.highlightFormatting)){var ye=x(I),ue=A.formatting+"-escape";return ye?ye+" "+ue:ue}if(he==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return I.imageMarker=!0,I.image=!0,O.highlightFormatting&&(I.formatting="image"),x(I);if(he==="["&&I.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return I.imageMarker=!1,I.imageAltText=!0,O.highlightFormatting&&(I.formatting="image"),x(I);if(he==="]"&&I.imageAltText){O.highlightFormatting&&(I.formatting="image");var ye=x(I);return I.imageAltText=!1,I.image=!1,I.inline=I.f=U,ye}if(he==="["&&!I.image)return I.linkText&&F.match(/^.*?\]/)||(I.linkText=!0,O.highlightFormatting&&(I.formatting="link")),x(I);if(he==="]"&&I.linkText){O.highlightFormatting&&(I.formatting="link");var ye=x(I);return I.linkText=!1,I.inline=I.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?U:v,ye}if(he==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=T,O.highlightFormatting&&(I.formatting="link");var ye=x(I);return ye?ye+=" ":ye="",ye+A.linkInline}if(he==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=T,O.highlightFormatting&&(I.formatting="link");var ye=x(I);return ye?ye+=" ":ye="",ye+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($)&&(I.md_inside=!0)}return F.backUp(1),I.htmlState=M.startState(b),u(F,I,P)}if(O.xml&&he==="<"&&F.match(/^\/\w*?>/))return I.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()||" ",Oe=!/\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&&(!I.em&&Oe&&(he==="*"||!le||h.test(re))?te=!0:I.em==he&&le&&(he==="*"||!Oe||h.test(ae))&&(te=!1)),me>1&&(!I.strong&&Oe&&(he==="*"||!le||h.test(re))?Q=!0:I.strong==he&&le&&(he==="*"||!Oe||h.test(ae))&&(Q=!1)),Q!=null||te!=null){O.highlightFormatting&&(I.formatting=te==null?"strong":Q==null?"em":"strong em"),te===!0&&(I.em=he),Q===!0&&(I.strong=he);var be=x(I);return te===!1&&(I.em=!1),Q===!1&&(I.strong=!1),be}}else if(he===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return x(I);F.backUp(1)}if(O.strikethrough){if(he==="~"&&F.eatWhile(he)){if(I.strikethrough){O.highlightFormatting&&(I.formatting="strikethrough");var be=x(I);return I.strikethrough=!1,be}else if(F.match(/^[^\s]/,!1))return I.strikethrough=!0,O.highlightFormatting&&(I.formatting="strikethrough"),x(I)}else if(he===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return x(I);F.backUp(2)}}if(O.emoji&&he===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){I.emoji=!0,O.highlightFormatting&&(I.formatting="emoji");var J=x(I);return I.emoji=!1,J}return he===" "&&(F.match(/^ +$/,!1)?I.trailingSpace++:I.trailingSpace&&(I.trailingSpaceNewLine=!0)),x(I)}function T(F,I){var K=F.next();if(K===">"){I.f=I.inline=v,O.highlightFormatting&&(I.formatting="link");var ee=x(I);return ee?ee+=" ":ee="",ee+A.linkInline}return F.match(/^[^>]+/,!0),A.linkInline}function U(F,I){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(I.f=I.inline=N(K==="("?")":"]"),O.highlightFormatting&&(I.formatting="link-string"),I.linkHref=!0,x(I)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(I,K){var ee=I.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 I.match(L[F]),K.linkHref=!0,x(K)}}function V(F,I){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(I.f=H,F.next(),O.highlightFormatting&&(I.formatting="link"),I.linkText=!0,x(I)):s(F,I,v)}function H(F,I){if(F.match(/^\]:/,!0)){I.f=I.inline=D,O.highlightFormatting&&(I.formatting="link");var K=x(I);return I.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),A.linkText}function D(F,I){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?I.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),I.f=I.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,I){if(I.formatting=!1,F!=I.thisLine.stream){if(I.header=0,I.hr=!1,F.match(/^\s*$/,!0))return E(I),null;if(I.prevLine=I.thisLine,I.thisLine={stream:F},I.taskList=!1,I.trailingSpace=0,I.trailingSpaceNewLine=!1,!I.localState&&(I.f=I.block,I.f!=P)){var K=F.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(I.indentation=K,I.indentationDiff=null,K>0)return null}}return I.f(F,I)},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,I,K){return F.block==P&&b.indent?b.indent(F.htmlState,I,K):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,I,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.2ae2707a.svg"},lzim:function(k,z,o){"use strict";var M=o("E7E6"),g=o.n(M);o.d(z,"w",function(){return g.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"),m=o.n(A);o.d(z,"x",function(){return m.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),L=o("4u4S"),N=o.n(L),V=o("yslc"),H=o.n(V),D=o("l2Kq"),W=o.n(D),F=o("RMFE"),I=o.n(F);o.d(z,"o",function(){return I.a});var K=o("TGq3"),ee=o.n(K),he=o("SMhR"),de=o.n(he),Se=o("8/bI"),Te=o.n(Se);o.d(z,"j",function(){return Te.a});var ce=o("JWDV"),be=o.n(ce),ye=o("Xsq0"),ue=o.n(ye);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"),Oe=o.n(ae);o.d(z,"k",function(){return Oe.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 Ae=o("FPkq"),Je=o.n(Ae);o.d(z,"s",function(){return Je.a});var tt=o("A/g1"),ut=o.n(tt);o.d(z,"f",function(){return ut.a});var ft=o("Nmxd"),vt=o.n(ft);o.d(z,"g",function(){return vt.a});var _t=o("5D2P"),Ve=o.n(_t);o.d(z,"h",function(){return Ve.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 g(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 m=new Error("Cannot find module '"+y+"'");throw m.code="MODULE_NOT_FOUND",m}var e=o[y]={exports:{}};z[y][0].call(e.exports,function(f){var a=z[y][1][f];return g(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++)g(M[b]);return g}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,g){"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"),m=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 L(V,H){if(T(),!(this instanceof L))return new L(V,H);V&&V.inited?this.options=V:this.options=L.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=L,L.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,m.default)({secure:U(),useFetch:!1},H);return R(D)};var N=L.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 I=E.buildCanonicalString(H.toUpperCase(),D,{headers:F,parameters:W});return E.authorization(this.options.accessKeyId,this.options.accessKeySecret,I)},N.request=function(H){var D,W,F,I,K,ee;return C.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return D=S.call(this,H),this.options.useFetch||(D.params.mode="disable-fetch"),W=void 0,F=void 0,I=!!H.stream,de.prev=5,de.next=8,C.default.awrap(this.urllib.request(D.url,D.params));case 8:W=de.sent,this.debug("response %s %s, got %s, headers: %j",H.method,D.url,W.status,W.headers,"info"),de.next=15;break;case 12:de.prev=12,de.t0=de.catch(5),F=de.t0;case 15:if(K=void 0,!(W&&H.successStatuses&&H.successStatuses.indexOf(W.status)===-1)){de.next=28;break}return de.next=19,C.default.awrap(this.requestError(W));case 19:if(K=de.sent,!(K.code==="RequestTimeTooSkewed"&&!I)){de.next=25;break}return this.options.amendTimeSkewed=+new Date(K.serverTime)-new Date,de.next=24,C.default.awrap(this.request(H));case 24:return de.abrupt("return",de.sent);case 25:K.params=H,de.next=32;break;case 28:if(!F){de.next=32;break}return de.next=31,C.default.awrap(this.requestError(F));case 31:K=de.sent;case 32:if(!K){de.next=34;break}throw K;case 34:if(!H.xmlResponse){de.next=39;break}return de.next=37,C.default.awrap(this.parseXML(W.data));case 37:ee=de.sent,W.data=ee;case 39:return de.abrupt("return",W);case 40:case"end":return de.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 I="/";H.bucket&&W&&(I+=H.bucket+"/"),H.object&&(I+=this._escape(H.object).replace(/\+/g,"%2B")),D.pathname=I;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=g&&g.browser?"js":"nodejs",D="aliyun-sdk-"+H+"/"+u.version,W=h.description;return!W&&g&&(W="Node.js "+g.version.slice(1)+" on "+g.platform+" "+g.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,I){F?W(F):D(I)})})},N.requestError=function(H){var D,W,F,I;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:I=F.Message||"unknow request error, status: "+H.status,F.Condition&&(I+=" (condition: "+F.Condition+")"),D=new Error(I),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 g=k("babel-runtime/core-js/array/from"),O=m(g),b=k("babel-runtime/core-js/promise"),y=m(b),C=k("babel-runtime/regenerator"),A=m(C);function m(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,L,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(L=W.sent,N=L.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,L.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,L,N,V,H,D,W,F,I,K,ee,he,de;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,L=_.name,N=[],U.length>0&&n(U).to(N),V=this._divideParts(S,v),H=V.length,D=!1,W=function(be,ye){var ue=this;return new y.default(function($,me){var re,ae,Oe,le;return A.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(Q.prev=0,be.isCancel()){Q.next=18;break}return re=V[ye-1],ae={stream:be._createStream(x,re.start,re.end),size:re.end-re.start},Q.next=6,A.default.awrap(be._uploadPart(L,T,ye,ae));case 6:if(Oe=Q.sent,!(!be.isCancel()&&!D)){Q.next=15;break}if(_.doneParts.push({number:ye,etag:Oe.res.headers.etag}),!P.progress){Q.next=12;break}return Q.next=12,A.default.awrap(P.progress(U.length/H,_,Oe.res));case 12:$({number:ye,etag:Oe.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=ye,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,be){return be+1}),I=N.map(function(ce){return ce.number}),K=F.filter(function(ce){return I.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(be,ye){W(R,ce).then(function(ue){ue&&N.push(ue),be()}).catch(function(ue){ye(ue)})})}));case 17:if(de=Te.sent,D=!0,!this.isCancel()){Te.next=22;break}throw W=null,this._makeCancelEvent();case 22:if(!(de&&de.length>0)){Te.next=25;break}throw de[0].message="Failed to upload some parts with error: "+de[0].toString()+" part_num: "+de[0].partNum,de[0];case 25:return Te.next=27,A.default.awrap(this.completeMultipartUpload(L,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"),g=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"),m=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 m.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:return v=v||{},v.position===void 0&&(v.position="0"),v.subres={append:"",position:v.position},v.method="POST",L.next=6,m.default.awrap(this.put(x,S,v));case 6:return T=L.sent,T.nextAppendPosition=T.res.headers["x-oss-next-append-position"],L.abrupt("return",T);case 9:case"end":return L.stop()}},null,this)},P.put=function(x,S,v){var T,U,L,N,V,H,D;return m.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,m.default.awrap(this._getFileSize(S));case 12:return v.contentLength=F.sent,F.prev=13,F.next=16,m.default.awrap(this.putStream(x,U,v));case 16:return L=F.sent,F.abrupt("return",L);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,m.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,m.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,L,N;return m.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,m.default.awrap(this.request(U));case 13:return L=H.sent,N={name:x,url:this._objectUrl(x),res:L.res},U.headers&&U.headers["x-oss-callback"]&&(N.data=JSON.parse(L.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 m.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,m.default.awrap(this.copy(x,x,{meta:S||{},timeout:v&&v.timeout,ctx:v&&v.ctx}));case 2:return T=L.sent,L.abrupt("return",T);case 4:case"end":return L.stop()}},null,this)},P.list=function(x,S){var v,T,U,L,N;return m.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,m.default.awrap(this.request(v));case 6:return T=H.sent,U=T.data.Contents,L=this,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(D){return{name:D.Key,url:L._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 m.default.async(function(L){for(;;)switch(L.prev=L.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],L.next=7,m.default.awrap(this.request(v));case 7:return T=L.sent,L.abrupt("return",{res:T.res});case 9:case"end":return L.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 L=d._signatureForURL(this.options.accessKeySecret,S,U,v),N=n.parse(this._getReqUrl(T));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:v,Signature:L.Signature},i(L.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 g.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"),g=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(m,e){var f,a;return g.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return y(m),f=this._bucketRequestParams("DELETE",m,"lifecycle",e),f.successStatuses=[204],n.next=5,g.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"),g=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(m,e){var f,a;return g.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return y(m),f=this._bucketRequestParams("DELETE",m,"website",e),f.successStatuses=[204],n.next=5,g.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"),g=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,m=k("../utils/formatObjKey"),e=m.formatObjKey,f=o;f.getBucketLifecycle=function(l,n){var i,r,c;return g.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,g.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"),g=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(m,e){var f,a,l;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return y(m),f=this._bucketRequestParams("GET",m,"versioning",e),f.xmlResponse=!0,f.successStatuses=[200],i.next=6,g.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"),g=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,m=o;m.getBucketWebsite=function(f,a){var l,n,i;return g.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,g.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"),g=O(M);function O(_){return _&&_.__esModule?_:{default:_}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isArray"),A=C.isArray,m=k("../utils/deepCopy"),e=m.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,L;return g.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,g.default.awrap(this.request(S));case 13:return L=V.sent,V.abrupt("return",{res:L.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"),g=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,m=o;m.putBucketVersioning=function(f,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,r;return g.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,g.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"),g=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,m=k("../utils/isArray"),e=m.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 g.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,g.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 g=k("babel-runtime/core-js/object/keys"),O=C(g),b=k("babel-runtime/core-js/json/stringify"),y=C(b);function C(A){return A&&A.__esModule?A:{default:A}}o.encodeCallback=function(m,e){if(m.headers=m.headers||{},!Object.prototype.hasOwnProperty.call(m.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(m.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]}),m.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"),g=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 m(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,g.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=m(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"),g=o;M(g,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=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"),m=A.Base64.encode,e=o;e.processObjectSave=function(l,n,i,r){var c,h,d,s;return g.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_"+m(r):"",n=m(n),d={"x-oss-process":i+"|sys/saveas,o_"+n+h},c.content=C.stringify(d),w.next=12,g.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"),g=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,m=o;m.listUploads=function(f,a){var l,n,i,r;return g.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,g.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)},m.listParts=function(f,a,l,n){var i,r,c;return g.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,g.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)},m.abortMultipartUpload=function(f,a,l){var n,i,r;return g.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,g.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)},m.initMultipartUpload=function(f,a){var l,n,i;return g.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,g.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)},m.uploadPart=function(f,a,l,n,i,r,c){var h;return g.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,g.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)},m.completeMultipartUpload=function(f,a,l,n){var i,r,c,h,d,s,u,w;return g.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,g.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)},m._uploadPart=function(f,a,l,n,i){var r,c,h;return g.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,g.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"),g=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 m=k("../utils/checkBucketName"),e=m.checkBucketName,f=o;f.copy=function(l,n,i,r){var c,h,d;return g.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,g.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"),g=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(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return g.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",m,e),f.successStatuses=[204],n.next=6,g.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"),g=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"),m=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 g.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=m(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,g.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"),g=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(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return g.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),m=this._objectName(m),f=this._objectRequestParams("DELETE",m,e),f.successStatuses=[204],n.next=7,g.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"),g=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"),m=o;m.get=function(f,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,r,c;return g.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,g.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,g.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"),g=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(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return g.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),m=this._objectName(m),f=this._objectRequestParams("GET",m,e),f.successStatuses=[200],f.xmlResponse=!0,n.next=8,g.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"),g=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 m=o,e=k("../utils/isObject"),f=e.isObject,a=k("../utils/isArray"),l=a.isArray;m.getBucketVersions=n,m.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,g.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"),g=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(m,e){var f,a;return g.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e=e||{},m=this._objectName(m),e.subres=(0,b.default)({objectMeta:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("HEAD",m,e),f.successStatuses=[200],n.next=8,g.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"),g=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"),m=A.isObject;C.getObjectTagging=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,i,r,c;return g.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,g.default.awrap(this.request(l));case 7:return n=d.sent,d.next=10,g.default.awrap(this.parseXML(n.data));case 10:return i=d.sent,r=i.TagSet.Tag,r=r&&m(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"),g=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(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a,l;return g.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),m=this._objectName(m),f=this._objectRequestParams("GET",m,e),f.successStatuses=[200],i.next=7,g.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"),g=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 m=o;m.head=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,i;return g.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,g.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"),g=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(m,e,f){var a,l;return g.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,m=this._objectName(m),a=this._objectRequestParams("PUT",m,f),a.successStatuses=[200],i.next=10,g.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"),g=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 m=k("../utils/obj2xml"),e=m.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 g.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,g.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"),g=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(m,e,f){var a,l;return g.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),m=this._objectName(m),a=this._objectRequestParams("PUT",m,f),a.successStatuses=[200],i.next=13,g.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"),g=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(m,e,f,a){var l,n,i,r,c,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:l=this,n=[],i=[],r=m.length/e,c=m.length%e,h=c===0?r:(m.length-c)/e+1,d=1,s=0;case 8:if(!(s<m.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,m[s],a)):i.push(f(l,m[s])),!(i.length===e||d===h&&s===m.length-1)){w.next=23;break}return w.prev=13,d+=1,w.next=17,g.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(m,e,f){var a=this;return new b.default(function(l){var n=[];if(e<=0||!m){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(m),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(m){this.options.cancelFlag=!0,m&&this.abortMultipartUpload(m.name,m.uploadId,m.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 m={status:0,name:"cancel"};return m}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(k,z,o){(function(M){"use strict";var g=k("babel-runtime/core-js/json/stringify"),O=C(g),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"),m=k("is-type-of");o.buildCanonicalizedResource=function(f,a){var l=""+f,n="?";if(m.string(a)&&a.trim()!=="")l+=n+a;else if(m.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,g){var O=g?/^[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"),g=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,m=[{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(m,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(m,[{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,g.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(g,O){O.forEach(function(b){if(b.validator)b.validator(g);else if(b.pattern&&!b.pattern.test(g))throw new Error(b.msg)})}o.checkValid=M},{}],38:[function(k,z,o){(function(M){"use strict";var g=k("babel-runtime/core-js/object/assign"),O=b(g);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"),m=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":m(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"),g=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,g.default)(C).forEach(function(m){A[m]=o.deepCopy(C[m])}),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"),g=y(M),O=k("babel-runtime/helpers/typeof"),b=y(O);function y(m){return m&&m.__esModule?m:{default:m}}Object.defineProperty(o,"__esModule",{value:!0}),o.formatObjKey=void 0;function C(m,e){if(m===null||(typeof m=="undefined"?"undefined":(0,b.default)(m))!=="object")return m;var f=void 0;if(Array.isArray(m)){f=[];for(var a=0;a<m.length;a++)f.push(C(m[a],e))}else f={},(0,g.default)(m).forEach(function(l){f[A(l,e)]=C(m[l],e)});return f}o.formatObjKey=C;function A(m,e){return e==="firstUpperCase"?m=m.replace(/^./,function(f){return f.toUpperCase()}):e==="firstLowerCase"&&(m=m.replace(/^./,function(f){return f.toLowerCase()})),m}},{"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(g){for(var O=0,b=0;b<g.length;b++){var y=g.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(g){return typeof Blob!="undefined"&&g 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 g=/^(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 g.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"),g=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,m){var e="";return m&&m.headers&&(e=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),m&&m.firstUpperCase&&(A=b.formatObjKey(A,"firstUpperCase")),y(A)==="object"?(0,g.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",g=null;z.exports=function(O,b){return function(C,A){C=C||null,A=A||{};var m=A.global!==!1;if(g===null&&m&&(g=O[M]||null),g!==null&&C!==null&&g.implementation!==C)throw new Error('any-promise already defined as "'+g.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return g===null&&(C!==null&&typeof A.Promise!="undefined"?g={Promise:A.Promise,implementation:C}:g=b(C),m&&(O[M]=g)),g}}},{}],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"),g=C(M),O=k("../core-js/symbol"),b=C(O),y=typeof b.default=="function"&&typeof g.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(g.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=m,o.toByteArray=f,o.fromByteArray=n;for(var M=[],g=[],O=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,C=b.length;y<C;++y)M[y]=b[y],g[b.charCodeAt(y)]=y;g["-".charCodeAt(0)]=62,g["_".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 m(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=g[i.charCodeAt(E)]<<18|g[i.charCodeAt(E+1)]<<12|g[i.charCodeAt(E+2)]<<6|g[i.charCodeAt(E+3)],s[u++]=r>>16&255,s[u++]=r>>8&255,s[u++]=r&255;return d===2&&(r=g[i.charCodeAt(E)]<<2|g[i.charCodeAt(E+1)]>>4,s[u++]=r&255),d===1&&(r=g[i.charCodeAt(E)]<<10|g[i.charCodeAt(E+1)]<<4|g[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,g,O){typeof z!="undefined"&&z.exports?z.exports=O():typeof define=="function"&&define.amd?define(g,O):M[g]=O()}(this,"bowser",function(){var M=!0;function g(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),L=/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"):L?(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=g(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=g(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 m(e,f,a){return!A(e,f,a)}return O.isUnsupportedBrowser=A,O.compareVersions=C,O.check=m,O._detect=g,O.detect=g,O})},{}],71:[function(k,z,o){},{}],72:[function(k,z,o){var M=k("buffer").Buffer,g=M.isEncoding||function(m){switch(m&&m.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(m){if(m&&!g(m))throw new Error("Unknown encoding: "+m)}var b=o.StringDecoder=function(m){this.encoding=(m||"utf8").toLowerCase().replace(/[-_]/,""),O(m);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(m){for(var e="";this.charLength;){var f=m.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:m.length;if(m.copy(this.charBuffer,this.charReceived,0,f),this.charReceived+=f,this.charReceived<this.charLength)return"";m=m.slice(f,m.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,m.length===0)return e;break}this.detectIncompleteChar(m);var a=m.length;this.charLength&&(m.copy(this.charBuffer,0,m.length-this.charReceived,a),a-=this.charReceived),e+=m.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),m.copy(this.charBuffer,0,0,n),e.substring(0,a)}return e},b.prototype.detectIncompleteChar=function(m){for(var e=m.length>=3?3:m.length;e>0;e--){var f=m[m.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(m){var e="";if(m&&m.length&&(e=this.write(m)),this.charReceived){var f=this.charReceived,a=this.charBuffer,l=this.encoding;e+=a.slice(0,f).toString(l)}return e};function y(m){return m.toString(this.encoding)}function C(m){this.charReceived=m.length%2,this.charLength=this.charReceived?2:0}function A(m){this.charReceived=m.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(k,z,o){(function(M,g){/*!
|
|
|
* 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=g,o.SlowBuffer=d,o.INSPECT_MAX_BYTES=50,g.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 g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(le,te){if(A()<te)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(le=new Uint8Array(te),le.__proto__=g.prototype):(le===null&&(le=new g(te)),le.length=te),le}function g(le,te,Q){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(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)}g.poolSize=8192,g._augment=function(le){return le.__proto__=g.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)}g.from=function(le,te,Q){return e(null,le,te,Q)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,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?m(le,te):Q!==void 0?typeof J=="string"?m(le,te).fill(Q,J):m(le,te).fill(Q):m(le,te)}g.alloc=function(le,te,Q){return a(null,le,te,Q)};function l(le,te){if(f(te),le=m(le,te<0?0:h(te)|0),!g.TYPED_ARRAY_SUPPORT)for(var Q=0;Q<te;++Q)le[Q]=0;return le}g.allocUnsafe=function(le){return l(null,le)},g.allocUnsafeSlow=function(le){return l(null,le)};function n(le,te,Q){if((typeof Q!="string"||Q==="")&&(Q="utf8"),!g.isEncoding(Q))throw new TypeError('"encoding" must be a valid string encoding');var J=s(te,Q)|0;le=m(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=m(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),g.TYPED_ARRAY_SUPPORT?(le=te,le.__proto__=g.prototype):le=i(le,te),le}function c(le,te){if(g.isBuffer(te)){var Q=h(te.length)|0;return le=m(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"||Oe(te.length)?m(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),g.alloc(+le)}g.isBuffer=function(te){return!!(te!=null&&te._isBuffer)},g.compare=function(te,Q){if(!g.isBuffer(te)||!g.isBuffer(Q))throw new TypeError("Arguments must be Buffers");if(te===Q)return 0;for(var J=te.length,ve=Q.length,_e=0,Ae=Math.min(J,ve);_e<Ae;++_e)if(te[_e]!==Q[_e]){J=te[_e],ve=Q[_e];break}return J<ve?-1:ve<J?1:0},g.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}},g.concat=function(te,Q){if(!y(te))throw new TypeError('"list" argument must be an Array of Buffers');if(te.length===0)return g.alloc(0);var J;if(Q===void 0)for(Q=0,J=0;J<te.length;++J)Q+=te[J].length;var ve=g.allocUnsafe(Q),_e=0;for(J=0;J<te.length;++J){var Ae=te[J];if(!g.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(ve,_e),_e+=Ae.length}return ve};function s(le,te){if(g.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}}g.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 L(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}}g.prototype._isBuffer=!0;function w(le,te,Q){var J=le[te];le[te]=le[Q],le[Q]=J}g.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},g.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},g.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},g.prototype.toString=function(){var te=this.length|0;return te===0?"":arguments.length===0?L(this,0,te):u.apply(this,arguments)},g.prototype.equals=function(te){if(!g.isBuffer(te))throw new TypeError("Argument must be a Buffer");return this===te?!0:g.compare(this,te)===0},g.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+">"},g.prototype.compare=function(te,Q,J,ve,_e){if(!g.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 Ae=_e-ve,Je=J-Q,tt=Math.min(Ae,Je),ut=this.slice(ve,_e),ft=te.slice(Q,J),vt=0;vt<tt;++vt)if(ut[vt]!==ft[vt]){Ae=ut[vt],Je=ft[vt];break}return Ae<Je?-1:Je<Ae?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=g.from(te,J)),g.isBuffer(te))return te.length===0?-1:_(le,te,Q,J,ve);if(typeof te=="number")return te=te&255,g.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,Ae=le.length,Je=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,Ae/=2,Je/=2,Q/=2}function tt(Ve,je){return _e===1?Ve[je]:Ve.readUInt16BE(je*_e)}var ut;if(ve){var ft=-1;for(ut=Q;ut<Ae;ut++)if(tt(le,ut)===tt(te,ft===-1?0:ut-ft)){if(ft===-1&&(ft=ut),ut-ft+1===Je)return ft*_e}else ft!==-1&&(ut-=ut-ft),ft=-1}else for(Q+Je>Ae&&(Q=Ae-Je),ut=Q;ut>=0;ut--){for(var vt=!0,_t=0;_t<Je;_t++)if(tt(le,ut+_t)!==tt(te,_t)){vt=!1;break}if(vt)return ut}return-1}g.prototype.includes=function(te,Q,J){return this.indexOf(te,Q,J)!==-1},g.prototype.indexOf=function(te,Q,J){return E(this,te,Q,J,!0)},g.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 Ae=0;Ae<J;++Ae){var Je=parseInt(te.substr(Ae*2,2),16);if(isNaN(Je))return Ae;le[Q+Ae]=Je}return Ae}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)}g.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 Ae=!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(Ae)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ae=!0}},g.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 L(le,te,Q){Q=Math.min(le.length,Q);for(var J=[],ve=te;ve<Q;){var _e=le[ve],Ae=null,Je=_e>239?4:_e>223?3:_e>191?2:1;if(ve+Je<=Q){var tt,ut,ft,vt;switch(Je){case 1:_e<128&&(Ae=_e);break;case 2:tt=le[ve+1],(tt&192)===128&&(vt=(_e&31)<<6|tt&63,vt>127&&(Ae=vt));break;case 3:tt=le[ve+1],ut=le[ve+2],(tt&192)===128&&(ut&192)===128&&(vt=(_e&15)<<12|(tt&63)<<6|ut&63,vt>2047&&(vt<55296||vt>57343)&&(Ae=vt));break;case 4:tt=le[ve+1],ut=le[ve+2],ft=le[ve+3],(tt&192)===128&&(ut&192)===128&&(ft&192)===128&&(vt=(_e&15)<<18|(tt&63)<<12|(ut&63)<<6|ft&63,vt>65535&&vt<1114112&&(Ae=vt))}}Ae===null?(Ae=65533,Je=1):Ae>65535&&(Ae-=65536,J.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),J.push(Ae),ve+=Je}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}g.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(g.TYPED_ARRAY_SUPPORT)ve=this.subarray(te,Q),ve.__proto__=g.prototype;else{var _e=Q-te;ve=new g(_e,void 0);for(var Ae=0;Ae<_e;++Ae)ve[Ae]=this[Ae+te]}return ve};function I(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")}g.prototype.readUIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae<Q&&(_e*=256);)ve+=this[te+Ae]*_e;return ve},g.prototype.readUIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te+--Q],_e=1;Q>0&&(_e*=256);)ve+=this[te+--Q]*_e;return ve},g.prototype.readUInt8=function(te,Q){return Q||I(te,1,this.length),this[te]},g.prototype.readUInt16LE=function(te,Q){return Q||I(te,2,this.length),this[te]|this[te+1]<<8},g.prototype.readUInt16BE=function(te,Q){return Q||I(te,2,this.length),this[te]<<8|this[te+1]},g.prototype.readUInt32LE=function(te,Q){return Q||I(te,4,this.length),(this[te]|this[te+1]<<8|this[te+2]<<16)+this[te+3]*16777216},g.prototype.readUInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]*16777216+(this[te+1]<<16|this[te+2]<<8|this[te+3])},g.prototype.readIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae<Q&&(_e*=256);)ve+=this[te+Ae]*_e;return _e*=128,ve>=_e&&(ve-=Math.pow(2,8*Q)),ve},g.prototype.readIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=Q,_e=1,Ae=this[te+--ve];ve>0&&(_e*=256);)Ae+=this[te+--ve]*_e;return _e*=128,Ae>=_e&&(Ae-=Math.pow(2,8*Q)),Ae},g.prototype.readInt8=function(te,Q){return Q||I(te,1,this.length),this[te]&128?(255-this[te]+1)*-1:this[te]},g.prototype.readInt16LE=function(te,Q){Q||I(te,2,this.length);var J=this[te]|this[te+1]<<8;return J&32768?J|4294901760:J},g.prototype.readInt16BE=function(te,Q){Q||I(te,2,this.length);var J=this[te+1]|this[te]<<8;return J&32768?J|4294901760:J},g.prototype.readInt32LE=function(te,Q){return Q||I(te,4,this.length),this[te]|this[te+1]<<8|this[te+2]<<16|this[te+3]<<24},g.prototype.readInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]<<24|this[te+1]<<16|this[te+2]<<8|this[te+3]},g.prototype.readFloatLE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!0,23,4)},g.prototype.readFloatBE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!1,23,4)},g.prototype.readDoubleLE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!0,52,8)},g.prototype.readDoubleBE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!1,52,8)};function K(le,te,Q,J,ve,_e){if(!g.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")}g.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 Ae=1,Je=0;for(this[Q]=te&255;++Je<J&&(Ae*=256);)this[Q+Je]=te/Ae&255;return Q+J},g.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 Ae=J-1,Je=1;for(this[Q+Ae]=te&255;--Ae>=0&&(Je*=256);)this[Q+Ae]=te/Je&255;return Q+J},g.prototype.writeUInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,255,0),g.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}g.prototype.writeUInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeUInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.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}g.prototype.writeUInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.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},g.prototype.writeUInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.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},g.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 Ae=0,Je=1,tt=0;for(this[Q]=te&255;++Ae<J&&(Je*=256);)te<0&&tt===0&&this[Q+Ae-1]!==0&&(tt=1),this[Q+Ae]=(te/Je>>0)-tt&255;return Q+J},g.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 Ae=J-1,Je=1,tt=0;for(this[Q+Ae]=te&255;--Ae>=0&&(Je*=256);)te<0&&tt===0&&this[Q+Ae+1]!==0&&(tt=1),this[Q+Ae]=(te/Je>>0)-tt&255;return Q+J},g.prototype.writeInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,127,-128),g.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),te<0&&(te=255+te+1),this[Q]=te&255,Q+1},g.prototype.writeInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2},g.prototype.writeInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),g.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},g.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),g.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 de(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 Se(le,te,Q,J,ve){return ve||de(le,te,Q,4,34028234663852886e22,-34028234663852886e22),b.write(le,te,Q,J,23,4),Q+4}g.prototype.writeFloatLE=function(te,Q,J){return Se(this,te,Q,!0,J)},g.prototype.writeFloatBE=function(te,Q,J){return Se(this,te,Q,!1,J)};function Te(le,te,Q,J,ve){return ve||de(le,te,Q,8,17976931348623157e292,-17976931348623157e292),b.write(le,te,Q,J,52,8),Q+8}g.prototype.writeDoubleLE=function(te,Q,J){return Te(this,te,Q,!0,J)},g.prototype.writeDoubleBE=function(te,Q,J){return Te(this,te,Q,!1,J)},g.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,Ae;if(this===te&&J<Q&&Q<ve)for(Ae=_e-1;Ae>=0;--Ae)te[Ae+Q]=this[Ae+J];else if(_e<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<_e;++Ae)te[Ae+Q]=this[Ae+J];else Uint8Array.prototype.set.call(te,this.subarray(J,J+_e),Q);return _e},g.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"&&!g.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 Ae;if(typeof te=="number")for(Ae=Q;Ae<J;++Ae)this[Ae]=te;else{var Je=g.isBuffer(te)?te:se(new g(te,ve).toString()),tt=Je.length;for(Ae=0;Ae<J-Q;++Ae)this[Ae+Q]=Je[Ae%tt]}return this};var ce=/[^+\/0-9A-Za-z-_]/g;function be(le){if(le=ye(le).replace(ce,""),le.length<2)return"";for(;le.length%4!==0;)le=le+"=";return le}function ye(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=[],Ae=0;Ae<J;++Ae){if(Q=le.charCodeAt(Ae),Q>55295&&Q<57344){if(!ve){if(Q>56319){(te-=3)>-1&&_e.push(239,191,189);continue}else if(Ae+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=[],Ae=0;Ae<le.length&&!((te-=2)<0);++Ae)Q=le.charCodeAt(Ae),J=Q>>8,ve=Q%256,_e.push(ve),_e.push(J);return _e}function re(le){return O.toByteArray(be(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 Oe(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=g;function g(b,y){if(!(this instanceof g))return new g(b,y);this.src=b,this._withAccess=y}g.prototype.withAccess=function(b){return this._withAccess=b!==!1,this},g.prototype.pick=function(b){return Array.isArray(b)||(b=M.call(arguments)),b.length&&(this.keys=b),this},g.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 m=this.src.__lookupGetter__(A),e=this.src.__lookupSetter__(A);m&&b.__defineGetter__(A,m),e&&b.__defineSetter__(A,e),!m&&!e&&(b[A]=this.src[A])}return b},g.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 m=this.src.__lookupGetter__(A),e=this.src.__lookupSetter__(A);m&&b.__defineGetter__(A,m),e&&b.__defineSetter__(A,e),!m&&!e&&(b[A]=this.src[A])}},g.prototype.override=g.prototype.toCover,g.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"),g=M.JSON||(M.JSON={stringify:JSON.stringify});z.exports=function(b){return g.stringify.apply(g,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,g,O,b){if(!(M instanceof g)||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(g){if(!M(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":119}],96:[function(k,z,o){var M=k("./_to-iobject"),g=k("./_to-length"),O=k("./_to-absolute-index");z.exports=function(b){return function(y,C,A){var m=M(y),e=g(m.length),f=O(A,e),a;if(b&&C!=C){for(;e>f;)if(a=m[f++],a!=a)return!0}else for(;e>f;f++)if((b||f in m)&&m[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"),g=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,m;return y===void 0?"Undefined":y===null?"Null":typeof(A=b(C=Object(y),g))=="string"?A:O?M(C):(m=M(C))=="Object"&&typeof C.callee=="function"?"Arguments":m}},{"./_cof":98,"./_wks":166}],98:[function(k,z,o){var M={}.toString;z.exports=function(g){return M.call(g).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"),g=k("./_property-desc");z.exports=function(O,b,y){b in O?M.f(O,b,g(0,y)):O[b]=y}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,z,o){var M=k("./_a-function");z.exports=function(g,O,b){if(M(g),O===void 0)return g;switch(b){case 1:return function(y){return g.call(O,y)};case 2:return function(y,C){return g.call(O,y,C)};case 3:return function(y,C,A){return g.call(O,y,C,A)}}return function(){return g.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"),g=k("./_global").document,O=M(g)&&M(g.createElement);z.exports=function(b){return O?g.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"),g=k("./_object-gops"),O=k("./_object-pie");z.exports=function(b){var y=M(b),C=g.f;if(C)for(var A=C(b),m=O.f,e=0,f;A.length>e;)m.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"),g=k("./_core"),O=k("./_ctx"),b=k("./_hide"),y=k("./_has"),C="prototype",A=function(m,e,f){var a=m&A.F,l=m&A.G,n=m&A.S,i=m&A.P,r=m&A.B,c=m&A.W,h=l?g:g[e]||(g[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,m&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(g){return!0}}},{}],109:[function(k,z,o){var M=k("./_ctx"),g=k("./_iter-call"),O=k("./_is-array-iter"),b=k("./_an-object"),y=k("./_to-length"),C=k("./core.get-iterator-method"),A={},m={},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===m)return u}else for(s=i.call(e);!(d=s.next()).done;)if(u=g(s,r,d.value,f),u===A||u===m)return u};o.BREAK=A,o.RETURN=m},{"./_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(g,O){return M.call(g,O)}},{}],112:[function(k,z,o){var M=k("./_object-dp"),g=k("./_property-desc");z.exports=k("./_descriptors")?function(O,b,y){return M.f(O,b,g(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,g,O){var b=O===void 0;switch(g.length){case 0:return b?M():M.call(O);case 1:return b?M(g[0]):M.call(O,g[0]);case 2:return b?M(g[0],g[1]):M.call(O,g[0],g[1]);case 3:return b?M(g[0],g[1],g[2]):M.call(O,g[0],g[1],g[2]);case 4:return b?M(g[0],g[1],g[2],g[3]):M.call(O,g[0],g[1],g[2],g[3])}return M.apply(O,g)}},{}],116:[function(k,z,o){var M=k("./_cof");z.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return M(g)=="String"?g.split(""):Object(g)}},{"./_cof":98}],117:[function(k,z,o){var M=k("./_iterators"),g=k("./_wks")("iterator"),O=Array.prototype;z.exports=function(b){return b!==void 0&&(M.Array===b||O[g]===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(g,O,b,y){try{return y?O(M(b)[0],b[1]):O(b)}catch(A){var C=g.return;throw C!==void 0&&M(C.call(g)),A}}},{"./_an-object":95}],121:[function(k,z,o){"use strict";var M=k("./_object-create"),g=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:g(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"),g=k("./_export"),O=k("./_redefine"),b=k("./_hide"),y=k("./_iterators"),C=k("./_iter-create"),A=k("./_set-to-string-tag"),m=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,L,N,V;if(U&&(V=m(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(L={values:P?v:E(n),keys:u?v:E(l),entries:T},w)for(N in L)N in x||O(x,N,L[N]);else g(g.P+g.F*(f||R),c,L);return L}},{"./_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"),g=!1;try{var O=[7][M]();O.return=function(){g=!0},Array.from(O,function(){throw 2})}catch(b){}z.exports=function(b,y){if(!y&&!g)return!1;var C=!1;try{var A=[7],m=A[M]();m.next=function(){return{done:C=!0}},A[M]=function(){return m},b(A)}catch(e){}return C}},{"./_wks":166}],124:[function(k,z,o){z.exports=function(M,g){return{value:g,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"),g=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({}))}),m=function(n){b(n,M,{value:{i:"O"+ ++y,w:{}}})},e=function(n,i){if(!g(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";m(n)}return n[M].i},f=function(n,i){if(!O(n,M)){if(!C(n))return!0;if(!i)return!1;m(n)}return n[M].w},a=function(n){return A&&l.NEED&&C(n)&&!O(n,M)&&m(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"),g=k("./_task").set,O=M.MutationObserver||M.WebKitMutationObserver,b=M.process,y=M.Promise,C=k("./_cof")(b)=="process";z.exports=function(){var A,m,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():m=void 0,c}}m=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(){g.call(M,f)};return function(i){var r={fn:i,next:void 0};m&&(m.next=r),A||(A=r,e()),m=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,z,o){"use strict";var M=k("./_a-function");function g(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 g(O)}},{"./_a-function":92}],130:[function(k,z,o){"use strict";var M=k("./_descriptors"),g=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 m={},e={},f=Symbol(),a="abcdefghijklmnopqrst";return m[f]=7,a.split("").forEach(function(l){e[l]=l}),A({},m)[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?g(c).concat(i(c)):g(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"),g=k("./_object-dps"),O=k("./_enum-bug-keys"),b=k("./_shared-key")("IE_PROTO"),y=function(){},C="prototype",A=function(){var m=k("./_dom-create")("iframe"),e=O.length,f="<",a=">",l;for(m.style.display="none",k("./_html").appendChild(m),m.src="javascript:",l=m.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:g(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"),g=k("./_ie8-dom-define"),O=k("./_to-primitive"),b=Object.defineProperty;o.f=k("./_descriptors")?Object.defineProperty:function(C,A,m){if(M(C),A=O(A,!0),M(m),g)try{return b(C,A,m)}catch(e){}if("get"in m||"set"in m)throw TypeError("Accessors not supported!");return"value"in m&&(C[A]=m.value),C}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,z,o){var M=k("./_object-dp"),g=k("./_an-object"),O=k("./_object-keys");z.exports=k("./_descriptors")?Object.defineProperties:function(y,C){g(y);for(var A=O(C),m=A.length,e=0,f;m>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"),g=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 g(!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"),g=k("./_object-gopn").f,O={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(C){try{return g(C)}catch(A){return b.slice()}};z.exports.f=function(A){return b&&O.call(A)=="[object Window]"?y(A):g(M(A))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,z,o){var M=k("./_object-keys-internal"),g=k("./_enum-bug-keys").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(b){return M(b,g)}},{"./_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"),g=k("./_to-object"),O=k("./_shared-key")("IE_PROTO"),b=Object.prototype;z.exports=Object.getPrototypeOf||function(y){return y=g(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"),g=k("./_to-iobject"),O=k("./_array-includes")(!1),b=k("./_shared-key")("IE_PROTO");z.exports=function(y,C){var A=g(y),m=0,e=[],f;for(f in A)f!=b&&(M(A,f)&&e.push(f));for(;C.length>m;)M(A,f=C[m++])&&(~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"),g=k("./_enum-bug-keys");z.exports=Object.keys||function(b){return M(b,g)}},{"./_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"),g=k("./_core"),O=k("./_fails");z.exports=function(b,y){var C=(g.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"),g=k("./_object-keys"),O=k("./_to-iobject"),b=k("./_object-pie").f;z.exports=function(y){return function(C){for(var A=O(C),m=g(A),e=m.length,f=0,a=[],l;e>f;)l=m[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(g){return{e:!0,v:g}}}},{}],145:[function(k,z,o){var M=k("./_an-object"),g=k("./_is-object"),O=k("./_new-promise-capability");z.exports=function(b,y){if(M(b),g(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,g){return{enumerable:!(M&1),configurable:!(M&2),writable:!(M&4),value:g}}},{}],147:[function(k,z,o){var M=k("./_hide");z.exports=function(g,O,b){for(var y in O)b&&g[y]?g[y]=O[y]:M(g,y,O[y]);return g}},{"./_hide":112}],148:[function(k,z,o){z.exports=k("./_hide")},{"./_hide":112}],149:[function(k,z,o){"use strict";var M=k("./_global"),g=k("./_core"),O=k("./_object-dp"),b=k("./_descriptors"),y=k("./_wks")("species");z.exports=function(C){var A=typeof g[C]=="function"?g[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,g=k("./_has"),O=k("./_wks")("toStringTag");z.exports=function(b,y,C){b&&!g(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"),g=k("./_uid");z.exports=function(O){return M[O]||(M[O]=g(O))}},{"./_shared":152,"./_uid":162}],152:[function(k,z,o){var M=k("./_core"),g=k("./_global"),O="__core-js_shared__",b=g[O]||(g[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"),g=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:g(A)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,z,o){var M=k("./_to-integer"),g=k("./_defined");z.exports=function(O){return function(b,y){var C=String(g(b)),A=M(y),m=C.length,e,f;return A<0||A>=m?O?"":void 0:(e=C.charCodeAt(A),e<55296||e>56319||A+1===m||(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"),g=k("./_invoke"),O=k("./_html"),b=k("./_dom-create"),y=k("./_global"),C=y.process,A=y.setImmediate,m=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||!m)&&(A=function(u){for(var w=[],E=1;arguments.length>E;)w.push(arguments[E++]);return l[++a]=function(){g(typeof u=="function"?u:Function(u),w)},i(a),a},m=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:m}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,z,o){var M=k("./_to-integer"),g=Math.max,O=Math.min;z.exports=function(b,y){return b=M(b),b<0?g(b+y,0):O(b,y)}},{"./_to-integer":157}],157:[function(k,z,o){var M=Math.ceil,g=Math.floor;z.exports=function(O){return isNaN(O=+O)?0:(O>0?g:M)(O)}},{}],158:[function(k,z,o){var M=k("./_iobject"),g=k("./_defined");z.exports=function(O){return M(g(O))}},{"./_defined":102,"./_iobject":116}],159:[function(k,z,o){var M=k("./_to-integer"),g=Math.min;z.exports=function(O){return O>0?g(M(O),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,z,o){var M=k("./_defined");z.exports=function(g){return Object(M(g))}},{"./_defined":102}],161:[function(k,z,o){var M=k("./_is-object");z.exports=function(g,O){if(!M(g))return g;var b,y;if(O&&typeof(b=g.toString)=="function"&&!M(y=b.call(g)))return y;if(typeof(b=g.valueOf)=="function"&&!M(y=b.call(g)))return y;if(!O&&typeof(b=g.toString)=="function"&&!M(y=b.call(g)))return y;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,z,o){var M=0,g=Math.random();z.exports=function(O){return"Symbol(".concat(O===void 0?"":O,")_",(++M+g).toString(36))}},{}],163:[function(k,z,o){var M=k("./_global"),g=M.navigator;z.exports=g&&g.userAgent||""},{"./_global":110}],164:[function(k,z,o){var M=k("./_global"),g=k("./_core"),O=k("./_library"),b=k("./_wks-ext"),y=k("./_object-dp").f;z.exports=function(C){var A=g.Symbol||(g.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"),g=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:g)("Symbol."+C))};y.store=M},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,z,o){var M=k("./_classof"),g=k("./_wks")("iterator"),O=k("./_iterators");z.exports=k("./_core").getIteratorMethod=function(b){if(b!=null)return b[g]||b["@@iterator"]||O[M(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,z,o){"use strict";var M=k("./_ctx"),g=k("./_export"),O=k("./_to-object"),b=k("./_iter-call"),y=k("./_is-array-iter"),C=k("./_to-length"),A=k("./_create-property"),m=k("./core.get-iterator-method");g(g.S+g.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=m(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"),g=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,g(1)):C=="keys"?g(0,A):C=="values"?g(0,y[A]):g(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"),g=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=g(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"),g=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(b){return g(M(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,z,o){var M=k("./_to-object"),g=k("./_object-keys");k("./_object-sap")("keys",function(){return function(b){return g(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"),g=k("./_global"),O=k("./_ctx"),b=k("./_classof"),y=k("./_export"),C=k("./_is-object"),A=k("./_a-function"),m=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=g.TypeError,s=g.process,u=s&&s.versions,w=u&&u.v8||"",E=g[h],_=b(s)=="process",P=function(){},R,x,S,v,T=x=n.f,U=!!function(){try{var I=E.resolve(1),K=(I.constructor={})[k("./_wks")("species")]=function(ee){ee(P,P)};return(_||typeof PromiseRejectionEvent=="function")&&I.then(P)instanceof K&&w.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(ee){}}(),L=function(I){var K;return C(I)&&typeof(K=I.then)=="function"?K:!1},N=function(I,K){if(I._n)return;I._n=!0;var ee=I._c;l(function(){for(var he=I._v,de=I._s==1,Se=0,Te=function(ce){var be=de?ce.ok:ce.fail,ye=ce.resolve,ue=ce.reject,se=ce.domain,$,me,re;try{be?(de||(I._h==2&&D(I),I._h=1),be===!0?$=he:(se&&se.enter(),$=be(he),se&&(se.exit(),re=!0)),$===ce.promise?ue(d("Promise-chain cycle")):(me=L($))?me.call($,ye,ue):ye($)):ue(he)}catch(ae){se&&!re&&se.exit(),ue(ae)}};ee.length>Se;)Te(ee[Se++]);I._c=[],I._n=!1,K&&!I._h&&V(I)})},V=function(I){a.call(g,function(){var K=I._v,ee=H(I),he,de,Se;if(ee&&(he=i(function(){_?s.emit("unhandledRejection",K,I):(de=g.onunhandledrejection)?de({promise:I,reason:K}):(Se=g.console)&&Se.error&&Se.error("Unhandled promise rejection",K)}),I._h=_||H(I)?2:1),I._a=void 0,ee&&he.e)throw he.v})},H=function(I){return I._h!==1&&(I._a||I._c).length===0},D=function(I){a.call(g,function(){var K;_?s.emit("rejectionHandled",I):(K=g.onrejectionhandled)&&K({promise:I,reason:I._v})})},W=function(I){var K=this;if(K._d)return;K._d=!0,K=K._w||K,K._v=I,K._s=2,K._a||(K._a=K._c.slice()),N(K,!0)},F=function(I){var K=this,ee;if(K._d)return;K._d=!0,K=K._w||K;try{if(K===I)throw d("Promise can't be resolved itself");(ee=L(I))?l(function(){var he={_w:K,_d:!1};try{ee.call(I,O(F,he,1),O(W,he,1))}catch(de){W.call(he,de)}}):(K._v=I,K._s=1,N(K,!1))}catch(he){W.call({_w:K,_d:!1},he)}};U||(E=function(K){m(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(I){return this.then(void 0,I)}}),S=function(){var I=new R;this.promise=I,this.resolve=O(F,I,1),this.reject=O(W,I,1)},n.f=T=function(I){return I===E||I===v?new S(I):x(I)}),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(I){E.all(I).catch(P)})),h,{all:function(K){var ee=this,he=T(ee),de=he.resolve,Se=he.reject,Te=i(function(){var ce=[],be=0,ye=1;e(K,!1,function(ue){var se=be++,$=!1;ce.push(void 0),ye++,ee.resolve(ue).then(function(me){if($)return;$=!0,ce[se]=me,--ye||de(ce)},Se)}),--ye||de(ce)});return Te.e&&Se(Te.v),he.promise},race:function(K){var ee=this,he=T(ee),de=he.reject,Se=i(function(){e(K,!1,function(Te){ee.resolve(Te).then(he.resolve,de)})});return Se.e&&de(Se.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"),g=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=[],m=arguments.length,e=0,f;m>e;){if(f=+arguments[e++],g(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(g){this._t=String(g),this._i=0},function(){var g=this._t,O=this._i,b;return O>=g.length?{value:void 0,done:!0}:(b=M(g,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"),g=k("./_has"),O=k("./_descriptors"),b=k("./_export"),y=k("./_redefine"),C=k("./_meta").KEY,A=k("./_fails"),m=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,L=M.Symbol,N=M.JSON,V=N&&N.stringify,H="prototype",D=a("_hidden"),W=a("toPrimitive"),F={}.propertyIsEnumerable,I=m("symbol-registry"),K=m("symbols"),ee=m("op-symbols"),he=Object[H],de=typeof L=="function"&&!!R.f,Se=M.QObject,Te=!Se||!Se[H]||!Se[H].findChild,ce=O&&A(function(){return E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a!=7})?function(_e,Ae,Je){var tt=v(he,Ae);tt&&delete he[Ae],T(_e,Ae,Je),tt&&_e!==he&&T(he,Ae,tt)}:T,be=function(_e){var Ae=K[_e]=E(L[H]);return Ae._k=_e,Ae},ye=de&&typeof L.iterator=="symbol"?function(_e){return typeof _e=="symbol"}:function(_e){return _e instanceof L},ue=function(Ae,Je,tt){return Ae===he&&ue(ee,Je,tt),c(Ae),Je=u(Je,!0),c(tt),g(K,Je)?(tt.enumerable?(g(Ae,D)&&Ae[D][Je]&&(Ae[D][Je]=!1),tt=E(tt,{enumerable:w(0,!1)})):(g(Ae,D)||T(Ae,D,w(1,{})),Ae[D][Je]=!0),ce(Ae,Je,tt)):T(Ae,Je,tt)},se=function(Ae,Je){c(Ae);for(var tt=i(Je=s(Je)),ut=0,ft=tt.length,vt;ft>ut;)ue(Ae,vt=tt[ut++],Je[vt]);return Ae},$=function(Ae,Je){return Je===void 0?E(Ae):se(E(Ae),Je)},me=function(Ae){var Je=F.call(this,Ae=u(Ae,!0));return this===he&&g(K,Ae)&&!g(ee,Ae)?!1:Je||!g(this,Ae)||!g(K,Ae)||g(this,D)&&this[D][Ae]?Je:!0},re=function(Ae,Je){if(Ae=s(Ae),Je=u(Je,!0),Ae===he&&g(K,Je)&&!g(ee,Je))return;var tt=v(Ae,Je);return tt&&g(K,Je)&&!(g(Ae,D)&&Ae[D][Je])&&(tt.enumerable=!0),tt},ae=function(Ae){for(var Je=U(s(Ae)),tt=[],ut=0,ft;Je.length>ut;)!g(K,ft=Je[ut++])&&ft!=D&&ft!=C&&tt.push(ft);return tt},Oe=function(Ae){for(var Je=Ae===he,tt=U(Je?ee:s(Ae)),ut=[],ft=0,vt;tt.length>ft;)g(K,vt=tt[ft++])&&(Je?g(he,vt):!0)&&ut.push(K[vt]);return ut};de||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var Ae=f(arguments.length>0?arguments[0]:void 0),Je=function(tt){this===he&&Je.call(ee,tt),g(this,D)&&g(this[D],Ae)&&(this[D][Ae]=!1),ce(this,Ae,w(1,tt))};return O&&Te&&ce(he,Ae,{configurable:!0,set:Je}),be(Ae)},y(L[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=Oe,O&&!k("./_library")&&y(he,"propertyIsEnumerable",me,!0),l.f=function(_e){return be(a(_e))}),b(b.G+b.W+b.F*!de,{Symbol:L});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*!de,"Symbol",{for:function(_e){return g(I,_e+="")?I[_e]:I[_e]=L(_e)},keyFor:function(Ae){if(!ye(Ae))throw TypeError(Ae+" is not a symbol!");for(var Je in I)if(I[Je]===Ae)return Je},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),b(b.S+b.F*!de,"Object",{create:$,defineProperty:ue,defineProperties:se,getOwnPropertyDescriptor:re,getOwnPropertyNames:ae,getOwnPropertySymbols:Oe});var ve=A(function(){R.f(1)});b(b.S+b.F*ve,"Object",{getOwnPropertySymbols:function(Ae){return R.f(d(Ae))}}),N&&b(b.S+b.F*(!de||A(function(){var _e=L();return V([_e])!="[null]"||V({a:_e})!="{}"||V(Object(_e))!="{}"})),"JSON",{stringify:function(Ae){for(var Je=[Ae],tt=1,ut,ft;arguments.length>tt;)Je.push(arguments[tt++]);return ft=ut=Je[1],!h(ut)&&Ae===void 0||ye(Ae)?void 0:(r(ut)||(ut=function(vt,_t){if(typeof ft=="function"&&(_t=ft.call(this,vt,_t)),!ye(_t))return _t}),Je[1]=ut,V.apply(N,Je))}}),L[H][W]||k("./_hide")(L[H],W,L[H].valueOf),e(L,"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"),g=k("./_object-to-array")(!0);M(M.S,"Object",{entries:function(b){return g(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,z,o){"use strict";var M=k("./_export"),g=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,g.Promise||O.Promise),m=typeof C=="function";return this.then(m?function(e){return y(A,C()).then(function(){return e})}:C,m?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"),g=k("./_new-promise-capability"),O=k("./_perform");M(M.S,"Promise",{try:function(b){var y=g.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"),g=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],m=M[A],e=m&&m.prototype;e&&!e[b]&&g(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"),g=k("./_task");M(M.G+M.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":107,"./_task":155}],189:[function(k,z,o){(function(M){"use strict";var g=k("babel-runtime/helpers/typeof"),O=b(g);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 m(u){return u==null}o.isNullOrUndefined=m;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"),g=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=m(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(L){return L in U?U[L]:L.slice(1,L.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 m(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,g.default)(f))!=="object"?typeof f=="undefined"?"undefined":(0,g.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,g.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=g;function g(O){var b=""+O,y=M.exec(b);if(!y)return b;var C,A="",m=0,e=0;for(m=y.index;m<b.length;m++){switch(b.charCodeAt(m)){case 34:C=""";break;case 38:C="&";break;case 39:C="'";break;case 60:C="<";break;case 62:C=">";break;default:continue}e!==m&&(A+=b.substring(e,m)),e=m+1,A+=C}return e!==m?A+b.substring(e,m):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,m,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(m=this._events[C],y(m))return!1;if(g(m))switch(arguments.length){case 1:m.call(this);break;case 2:m.call(this,arguments[1]);break;case 3:m.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),m.apply(this,f)}else if(b(m))for(f=Array.prototype.slice.call(arguments,1),l=m.slice(),e=l.length,a=0;a<e;a++)l[a].apply(this,f);return!0},M.prototype.addListener=function(C,A){var m;if(!g(A))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",C,g(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)?m=M.defaultMaxListeners:m=this._maxListeners,m&&m>0&&this._events[C].length>m&&(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(!g(A))throw TypeError("listener must be a function");var m=!1;function e(){this.removeListener(C,e),m||(m=!0,A.apply(this,arguments))}return e.listener=A,this.on(C,e),this},M.prototype.removeListener=function(C,A){var m,e,f,a;if(!g(A))throw TypeError("listener must be a function");if(!this._events||!this._events[C])return this;if(m=this._events[C],f=m.length,e=-1,m===A||g(m.listener)&&m.listener===A)delete this._events[C],this._events.removeListener&&this.emit("removeListener",C,A);else if(b(m)){for(a=f;a-- >0;)if(m[a]===A||m[a].listener&&m[a].listener===A){e=a;break}if(e<0)return this;m.length===1?(m.length=0,delete this._events[C]):m.splice(e,1),this._events.removeListener&&this.emit("removeListener",C,A)}return this},M.prototype.removeAllListeners=function(C){var A,m;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(m=this._events[C],g(m))this.removeListener(C,m);else if(m)for(;m.length;)this.removeListener(C,m[m.length-1]);return delete this._events[C],this},M.prototype.listeners=function(C){var A;return!this._events||!this._events[C]?A=[]:g(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(g(A))return 1;if(A)return A.length}return 0},M.listenerCount=function(C,A){return C.listenerCount(A)};function g(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"),g=z.exports;for(var O in M)M.hasOwnProperty(O)&&(g[O]=M[O]);g.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"),g=k("ms");z.exports=function(O){if(typeof O=="number")return O;var b=g(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,g,O,b,y){var C,A,m=y*8-b-1,e=(1<<m)-1,f=e>>1,a=-7,l=O?y-1:0,n=O?-1:1,i=M[g+l];for(l+=n,C=i&(1<<-a)-1,i>>=-a,a+=m;a>0;C=C*256+M[g+l],l+=n,a-=8);for(A=C&(1<<-a)-1,C>>=-a,a+=b;a>0;A=A*256+M[g+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,g,O,b,y,C){var A,m,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=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===Infinity?(m=isNaN(g)?1:0,A=a):(A=Math.floor(Math.log(g)/Math.LN2),g*(e=Math.pow(2,-A))<1&&(A--,e*=2),A+l>=1?g+=n/e:g+=n*Math.pow(2,1-l),g*e>=2&&(A++,e/=2),A+l>=a?(m=0,A=a):A+l>=1?(m=(g*e-1)*Math.pow(2,y),A=A+l):(m=g*Math.pow(2,l-1)*Math.pow(2,y),A=0));y>=8;M[O+i]=m&255,i+=r,m/=256,y-=8);for(A=A<<y|m,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(g,O){O&&(g.super_=O,g.prototype=Object.create(O.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}))}:z.exports=function(g,O){if(O){g.super_=O;var b=function(){};b.prototype=O.prototype,g.prototype=new b,g.prototype.constructor=g}}},{}],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)||g(O)||!!O._isBuffer)};function M(O){return!!O.constructor&&typeof O.constructor.isBuffer=="function"&&O.constructor.isBuffer(O)}function g(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(g){return M.call(g)=="[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),g=[fromCharCode(M>>>16),fromCharCode(M>>>8&255),fromCharCode(M&255)];return g.length-=[0,0,2,1][o],g.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=g;var M=Object.prototype.hasOwnProperty;function g(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 m=Object.getOwnPropertyDescriptor(b,A);Object.defineProperty(O,A,m)}),O}},{}],201:[function(k,z,o){"use strict";function M(){this._types=Object.create(null),this._extensions=Object.create(null);for(var g=0;g<arguments.length;g++)this.define(arguments[g]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}M.prototype.define=function(g,O){for(var b in g){var y=g[b].map(function(m){return m.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(g){g=String(g);var O=g.replace(/^.*[/\\]/,"").toLowerCase(),b=O.replace(/^.*\./,"").toLowerCase(),y=O.length<g.length,C=b.length<O.length-1;return(C||!y)&&this._types[b]||null},M.prototype.getExtension=function(g){return g=/^\s*([^;\s]*)/.test(g)&&RegExp.$1,g&&this._extensions[g.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,g=M*60,O=g*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):m(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*g;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 m(a){var l=Math.abs(a);return l>=b?Math.round(a/b)+"d":l>=O?Math.round(a/O)+"h":l>=g?Math.round(a/g)+"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>=g?f(a,l,g,"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 g(C,A){for(var m=0,e=C.length-1;e>=0;e--){var f=C[e];f==="."?C.splice(e,1):f===".."?(C.splice(e,1),m++):m&&(C.splice(e,1),m--)}if(A)for(;m--;m)C.unshift("..");return C}o.resolve=function(){for(var C="",A=!1,m=arguments.length-1;m>=-1&&!A;m--){var e=m>=0?arguments[m]: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=g(b(C.split("/"),function(f){return!!f}),!A).join("/"),(A?"/":"")+C||"."},o.normalize=function(C){var A=o.isAbsolute(C),m=y(C,-1)==="/";return C=g(b(C.split("/"),function(e){return!!e}),!A).join("/"),!C&&!A&&(C="."),C&&m&&(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,m){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 m(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=m(C.split("/")),f=m(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),m=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?m?"/":".":m&&e===1?"/":C.slice(0,e)};function O(C){typeof C!="string"&&(C=C+"");var A=0,m=-1,e=!0,f;for(f=C.length-1;f>=0;--f)if(C.charCodeAt(f)===47){if(!e){A=f+1;break}}else m===-1&&(e=!1,m=f+1);return m===-1?"":C.slice(A,m)}o.basename=function(C,A){var m=O(C);return A&&m.substr(-1*A.length)===A&&(m=m.substr(0,m.length-A.length)),m},o.extname=function(C){typeof C!="string"&&(C=C+"");for(var A=-1,m=0,e=-1,f=!0,a=0,l=C.length-1;l>=0;--l){var n=C.charCodeAt(l);if(n===47){if(!f){m=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===m+1?"":C.slice(A,e)};function b(C,A){if(C.filter)return C.filter(A);for(var m=[],e=0;e<C.length;e++)A(C[e],e,C)&&m.push(C[e]);return m}var y="ab".substr(-1)==="b"?function(C,A,m){return C.substr(A,m)}:function(C,A,m){return A<0&&(A=C.length+A),C.substr(A,m)}}).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 g={function:!0,object:!0},O=g[typeof window]&&window||this,b=O,y=g[typeof o]&&o,C=g[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 m=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<=m)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 L=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",I=/\bJava/.test(W)&&S.java,K=I&&s(S.environment)==D,ee=I?"a":"\u03B1",he=I?"b":"\u03B2",de=S.document||{},Se=S.operamini||S.opera,Te=e.test(Te=v&&Se?Se["[[Class]]"]:s(Se))?Te:Se=null,ce,be=x,ye=[],ue=null,se=x==U,$=se&&Se&&typeof Se.version=="function"&&Se.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"]),Oe=Ae([{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(ft){return E(ft,function(vt,_t){return vt||RegExp("\\b"+(_t.pattern||w(_t))+"\\b","i").exec(x)&&(_t.label||_t)})}function J(ft){return E(ft,function(vt,_t,Ve){return vt||(_t[Oe]||_t[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Oe)]||RegExp("\\b"+w(Ve)+"(?:\\b|\\w*\\d)","i").exec(x))&&Ve})}function ve(ft){return E(ft,function(vt,_t){return vt||RegExp("\\b"+(_t.pattern||w(_t))+"\\b","i").exec(x)&&(_t.label||_t)})}function _e(ft){return E(ft,function(vt,_t){var Ve=_t.pattern||w(_t);return!vt&&(vt=RegExp("\\b"+Ve+"(?:/[\\d.]+|[ \\w.]*)","i").exec(x))&&(vt=r(vt,Ve,_t.label||_t)),vt})}function Ae(ft){return E(ft,function(vt,_t){var Ve=_t.pattern||w(_t);return!vt&&(vt=RegExp("\\b"+Ve+" *\\d+[.\\w_]*","i").exec(x)||RegExp("\\b"+Ve+" *\\w+-[\\w]*","i").exec(x)||RegExp("\\b"+Ve+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(x))&&((vt=String(_t.label&&!RegExp(Ve,"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(Ve,"i"),_t).replace(RegExp("; *(?:"+_t+"[_-])?","i")," ").replace(RegExp("("+_t+")[-_.]?(\\w)","i"),"$1 $2"))),vt})}function Je(ft){return E(ft,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&&!Oe&&(Oe=Ae([le])),(ce=/\bGoogle TV\b/.exec(Oe))&&(Oe=ce[0]),/\bSimulator\b/i.test(x)&&(Oe=(Oe?Oe+" ":"")+"Simulator"),ae=="Opera Mini"&&/\bOPiOS\b/.test(x)&&ye.push("running in Turbo/Uncompressed mode"),ae=="IE"&&/\blike iPhone OS\b/.test(x)?(ce=P(x.replace(/like iPhone OS/,"")),le=ce.manufacturer,Oe=ce.product):/^iP/.test(Oe)?(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(Oe))||/\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",ye.unshift("desktop mode")),/Accelerated *= *true/i.test(x)&&ye.unshift("accelerated")):ae=="PaleMoon"&&(ce=/\bFirefox\/([\d.]+)\b/.exec(x))?ye.push("identifying as Firefox "+ce[1]):ae=="Firefox"&&(ce=/\b(Mobile|Tablet|TV)\b/i.exec(x))?(te||(te="Firefox OS"),Oe||(Oe=ce[1])):!ae||(ce=!/\bMinefield\b/i.test(x)&&/\b(?:Firefox|Safari)\b/.exec(ae))?(ae&&!Oe&&/[\/,]|^[^(]+?\)/.test(x.slice(x.indexOf(ce+"/")+8))&&(ae=null),(ce=Oe||le||te)&&(Oe||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])&&ye.push("Chromium "+ce),$||($=Je(["(?: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"),ye.unshift("desktop mode")):/\bWPDesktop\b/i.test(x)?(ae="IE Mobile",te="Windows Phone 8.x",ye.unshift("desktop mode"),$||($=(/\brv:([\d.]+)/.exec(x)||0)[1])):ae!="IE"&&re=="Trident"&&(ce=/\brv:([\d.]+)/.exec(x))&&(ae&&ye.push("identifying as "+ae+($?" "+$:"")),ae="IE",$=ce[1]),se){if(u(S,"global"))if(I&&(ce=I.lang.System,be=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(ft){(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"?(ye.push("Node "+ce.versions.node),ae="Electron",$=ce.versions.electron):typeof ce.versions.nw=="string"&&(ye.push("Chromium "+$,"Node "+ce.versions.node),ae="NW.js",$=ce.versions.nw)),ae||(ae="Node.js",be=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 de.documentMode=="number"&&(ce=/\bTrident\/(\d+)/i.exec(x))?($=[$,de.documentMode],(ce=+ce[1]+4)!=$[1]&&(ye.push("IE "+$[1]+" mode"),re&&(re[1]=""),$[1]=ce),$=ae=="IE"?String($[1].toFixed(1)):$[0]):typeof de.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ae)&&(ye.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(Oe))Oe=="Xbox 360"&&(te=null),Oe=="Xbox 360"&&/\bIEMobile\b/.test(x)&&ye.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ae)||ae&&!Oe&&!/Browser|Mobi/.test(ae))&&(te=="Windows CE"||/Mobi/i.test(x)))ae+=" Mobile";else if(ae=="IE"&&se)try{S.external===null&&ye.unshift("platform preview")}catch(ft){ye.unshift("embedded")}else(/\bBlackBerry\b/.test(Oe)||/\bBB10\b/.test(x))&&(ce=(RegExp(Oe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(x)||0)[1]||$)?(ce=[ce,/BB10/.test(x)],te=(ce[1]?(Oe=null,le="BlackBerry"):"Device Software")+" "+ce[0],$=null):this!=d&&Oe!="Wii"&&(se&&Se||/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"],ye.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+=" ",ye.unshift("desktop mode"),ce=="zvav"?(ae+="Mini",$=null):ae+="Mobile",te=te.replace(RegExp(" *"+ce+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(ye.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])&&ye.push(ce)),ye.length&&(ye=["("+ye.join("; ")+")"]),le&&Oe&&Oe.indexOf(le)<0&&ye.push("on "+le),Oe&&ye.push((/^on /.test(ye[ye.length-1])?"":"on ")+Oe),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 ft=this.version;return this.family+(ft&&!me?" "+ft:"")+(this.architecture==64?" 64-bit":"")}}),(ce=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be))&&!/\bi686\b/i.test(be)?(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))&&ye.unshift("32-bit")):te&&/^OS X/.test(te.family)&&ae=="Chrome"&&parseFloat($)>=39&&(te.architecture=64),x||(x=null);var ut={};return ut.description=x,ut.layout=re&&re[0],ut.manufacturer=le,ut.name=ae,ut.prerelease=ue,ut.product=Oe,ut.ua=x,ut.version=ae&&$,ut.os=te||{architecture:null,family:null,version:null,toString:function(){return"null"}},ut.parse=P,ut.toString=tt,ut.version&&ye.unshift($),ut.name&&ye.unshift(ae),te&&ae&&!(te==String(te).split(" ")[0]&&(te==ae.split(" ")[0]||Oe))&&ye.push(Oe?"("+te+")":"on "+te),ye.length&&(ut.description=ye.join(" ")),ut}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:g}:z.exports=M;function g(O,b,y,C){if(typeof O!="function")throw new TypeError('"callback" argument must be a function');var A=arguments.length,m,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(m=new Array(A-1),e=0;e<m.length;)m[e++]=arguments[e];return M.nextTick(function(){O.apply(null,m)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,z,o){var M=z.exports={},g,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"?g=setTimeout:g=b}catch(c){g=b}try{typeof clearTimeout=="function"?O=clearTimeout:O=y}catch(c){O=y}})();function C(c){if(g===setTimeout)return setTimeout(c,0);if((g===b||!g)&&setTimeout)return g=setTimeout,setTimeout(c,0);try{return g(c,0)}catch(h){try{return g.call(null,c,0)}catch(d){return g.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 m=[],e=!1,f,a=-1;function l(){if(!e||!f)return;e=!1,f.length?m=f.concat(m):a=-1,m.length&&n()}function n(){if(e)return;var c=C(l);e=!0;for(var h=m.length;h;){for(f=m,m=[];++a<h;)f&&f[a].run();a=-1,h=m.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];m.push(new i(c,h)),m.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(g){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)&&(g=y);var C,A=2147483647,m=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=m-e,w=Math.floor,E=String.fromCharCode,_;function P(W){throw new RangeError(s[W])}function R(W,F){for(var I=W.length,K=[];I--;)K[I]=F(W[I]);return K}function x(W,F){var I=W.split("@"),K="";I.length>1&&(K=I[0]+"@",W=I[1]),W=W.replace(d,".");var ee=W.split("."),he=R(ee,F).join(".");return K+he}function S(W){for(var F=[],I=0,K=W.length,ee,he;I<K;)ee=W.charCodeAt(I++),ee>=55296&&ee<=56319&&I<K?(he=W.charCodeAt(I++),(he&64512)==56320?F.push(((ee&1023)<<10)+(he&1023)+65536):(F.push(ee),I--)):F.push(ee);return F}function v(W){return R(W,function(F){var I="";return F>65535&&(F-=65536,I+=E(F>>>10&1023|55296),F=56320|F&1023),I+=E(F),I}).join("")}function T(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:m}function U(W,F){return W+22+75*(W<26)-((F!=0)<<5)}function L(W,F,I){var K=0;for(W=I?w(W/l):W>>1,W+=w(W/F);W>u*f>>1;K+=m)W=w(W/u);return w(K+(u+1)*W/(W+a))}function N(W){var F=[],I=W.length,K,ee=0,he=i,de=n,Se,Te,ce,be,ye,ue,se,$,me;for(Se=W.lastIndexOf(r),Se<0&&(Se=0),Te=0;Te<Se;++Te)W.charCodeAt(Te)>=128&&P("not-basic"),F.push(W.charCodeAt(Te));for(ce=Se>0?Se+1:0;ce<I;){for(be=ee,ye=1,ue=m;!(ce>=I&&P("invalid-input"),se=T(W.charCodeAt(ce++)),(se>=m||se>w((A-ee)/ye))&&P("overflow"),ee+=se*ye,$=ue<=de?e:ue>=de+f?f:ue-de,se<$);ue+=m)me=m-$,ye>w(A/me)&&P("overflow"),ye*=me;K=F.length+1,de=L(ee-be,K,be==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,I,K,ee,he,de,Se,Te,ce,be,ye,ue=[],se,$,me,re;for(W=S(W),se=W.length,F=i,I=0,he=n,de=0;de<se;++de)ye=W[de],ye<128&&ue.push(E(ye));for(K=ee=ue.length,ee&&ue.push(r);K<se;){for(Se=A,de=0;de<se;++de)ye=W[de],ye>=F&&ye<Se&&(Se=ye);for($=K+1,Se-F>w((A-I)/$)&&P("overflow"),I+=(Se-F)*$,F=Se,de=0;de<se;++de)if(ye=W[de],ye<F&&++I>A&&P("overflow"),ye==F){for(Te=I,ce=m;!(be=ce<=he?e:ce>=he+f?f:ce-he,Te<be);ce+=m)re=Te-be,me=m-be,ue.push(E(U(be+re%me,0))),Te=w(re/me);ue.push(E(U(Te,0))),he=L(I,$,K==ee),I=0,++K}++I,++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 g.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 m=/\+/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(m,"%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)?g(A[c])?A[c].push(h):A[c]=[A[c],h]:A[c]=h}return A};var g=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,m){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 g(y[e])?O(y[e],function(a){return f+encodeURIComponent(M(a))}).join(C):f+encodeURIComponent(M(y[e]))}).join(C):m?encodeURIComponent(M(m))+A+encodeURIComponent(M(y)):""};var g=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=[],m=0;m<y.length;m++)A.push(C(y[m],m));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"),g=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 m=(0,g.default)(k("core-util-is"));m.inherits=k("inherits");var e=k("./_stream_readable"),f=k("./_stream_writable");m.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"),g=O(M);function O(A){return A&&A.__esModule?A:{default:A}}z.exports=C;var b=k("./_stream_transform"),y=(0,g.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,m,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,g){"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 m=k("process-nextick-args");z.exports=S;var e=k("isarray"),f;S.ReadableState=x;var a=k("events").EventEmitter,l=function(ae,Oe){return ae.listeners(Oe).length},n=k("./internal/streams/stream"),i=k("safe-buffer").Buffer,r=g.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,Oe){if(typeof re.prependListener=="function")return re.prependListener(ae,Oe);!re._events||!re._events[ae]?re.on(ae,Oe):e(re._events[ae])?re._events[ae].unshift(Oe):re._events[ae]=[Oe,re._events[ae]]}function x(re,ae){f=f||k("./_stream_duplex"),re=re||{};var Oe=ae instanceof f;this.objectMode=!!re.objectMode,Oe&&(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:Oe&&(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 Oe=this._readableState,le;return Oe.objectMode?le=!0:typeof re=="string"&&(ae=ae||Oe.defaultEncoding,ae!==Oe.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,Oe,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&&!Oe?(ae=Q.decoder.write(ae),Q.objectMode||ae.length!==0?T(re,Q,ae,!1):I(re,Q)):T(re,Q,ae,!1))):le||(Q.reading=!1)}return L(Q)}function T(re,ae,Oe,le){ae.flowing&&ae.length===0&&!ae.sync?(re.emit("data",Oe),re.read(0)):(ae.length+=ae.objectMode?1:Oe.length,le?ae.buffer.unshift(Oe):ae.buffer.push(Oe),ae.needReadable&&W(re)),I(re,ae)}function U(re,ae){var Oe;return!h(ae)&&typeof ae!="string"&&ae!==void 0&&!re.objectMode&&(Oe=new TypeError("Invalid non-string/buffer chunk")),Oe}function L(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,Oe=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(Oe,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),Oe!==re&&ae.ended&&se(this)),te!==null&&this.emit("data",te),te};function D(re,ae){if(ae.ended)return;if(ae.decoder){var Oe=ae.decoder.end();Oe&&Oe.length&&(ae.buffer.push(Oe),ae.length+=ae.objectMode?1:Oe.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?m.nextTick(F,re):F(re))}function F(re){u("emit readable"),re.emit("readable"),Te(re)}function I(re,ae){ae.readingMore||(ae.readingMore=!0,m.nextTick(K,re,ae))}function K(re,ae){for(var Oe=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length<ae.highWaterMark&&!(u("maybeReadMore read 0"),re.read(0),Oe===ae.length);)Oe=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 Oe=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:Ve;le.endEmitted?m.nextTick(Q):Oe.once("end",Q),re.on("unpipe",J);function J(je,ht){u("onunpipe"),je===Oe&&(ht&&ht.hasUnpiped===!1&&(ht.hasUnpiped=!0,Je()))}function ve(){u("onend"),re.end()}var _e=ee(Oe);re.on("drain",_e);var Ae=!1;function Je(){u("cleanup"),re.removeListener("close",vt),re.removeListener("finish",_t),re.removeListener("drain",_e),re.removeListener("error",ft),re.removeListener("unpipe",J),Oe.removeListener("end",ve),Oe.removeListener("end",Ve),Oe.removeListener("data",ut),Ae=!0,le.awaitDrain&&(!re._writableState||re._writableState.needDrain)&&_e()}var tt=!1;Oe.on("data",ut);function ut(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)&&!Ae&&(u("false write response, pause",Oe._readableState.awaitDrain),Oe._readableState.awaitDrain++,tt=!0),Oe.pause())}function ft(je){u("onerror",je),Ve(),re.removeListener("error",ft),l(re,"error")===0&&re.emit("error",je)}R(re,"error",ft);function vt(){re.removeListener("finish",_t),Ve()}re.once("close",vt);function _t(){u("onfinish"),re.removeListener("close",vt),Ve()}re.once("finish",_t);function Ve(){u("unpipe"),Oe.unpipe(re)}return re.emit("pipe",Oe),le.flowing||(u("pipe resume"),Oe.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,Oe={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,Oe),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,Oe);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,Oe),this)},S.prototype.on=function(re,ae){var Oe=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):m.nextTick(he,this))}return Oe},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,de(this,re)),this};function de(re,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,m.nextTick(Se,re,ae))}function Se(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,Oe=this._readableState,le=!1;re.on("end",function(){if(u("wrapped end"),Oe.decoder&&!Oe.ended){var J=Oe.decoder.end();J&&J.length&&ae.push(J)}ae.push(null)}),re.on("data",function(J){if(u("wrapped data"),Oe.decoder&&(J=Oe.decoder.write(J)),Oe.objectMode&&J==null)return;if(!Oe.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 Oe;return ae.objectMode?Oe=ae.buffer.shift():!re||re>=ae.length?(ae.decoder?Oe=ae.buffer.join(""):ae.buffer.length===1?Oe=ae.buffer.head.data:Oe=ae.buffer.concat(ae.length),ae.buffer.clear()):Oe=be(re,ae.buffer,ae.decoder),Oe}function be(re,ae,Oe){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=Oe?ye(re,ae):ue(re,ae),le}function ye(re,ae){var Oe=ae.head,le=1,te=Oe.data;for(re-=te.length;Oe=Oe.next;){var Q=Oe.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,Oe.next?ae.head=Oe.next:ae.head=ae.tail=null):(ae.head=Oe,Oe.data=Q.slice(J));break}++le}return ae.length-=le,te}function ue(re,ae){var Oe=i.allocUnsafe(re),le=ae.head,te=1;for(le.data.copy(Oe),re-=le.data.length;le=le.next;){var Q=le.data,J=re>Q.length?Q.length:re;if(Q.copy(Oe,Oe.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,Oe}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,m.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 Oe=0,le=re.length;Oe<le;Oe++)if(re[Oe]===ae)return Oe;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"),g=O(M);function O(f){return f&&f.__esModule?f:{default:f}}z.exports=A;var b=k("./_stream_duplex"),y=(0,g.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",m)}function m(){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,g){"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"),m=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(){ye(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,_=g.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 Oe=ue.decodeStrings===!1;this.decodeStrings=!Oe,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){I(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 m.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 L(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?L(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 Oe=V(se,me,re);me!==Oe&&($=!0,re="buffer",me=Oe)}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,Oe){se.writelen=me,se.writecb=Oe,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 I(ue,se){var $=ue._writableState,me=$.sync,re=$.writecb;if(F($),se)W(ue,$,me,se,re);else{var ae=de($);!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 Oe=0,le=!0;$;)re[Oe]=$,$.isBuf||(le=!1),$=$.next,Oe+=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&&be(this,me,$)};function de(ue){return ue.ending&&ue.length===0&&ue.bufferedRequest===null&&!ue.finished&&!ue.writing}function Se(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(Se,ue,se)):(se.prefinished=!0,ue.emit("prefinish")))}function ce(ue,se){var $=de(se);return $&&(Te(ue,se),se.pendingcb===0&&(se.finished=!0,ue.emit("finish"))),$}function be(ue,se,$){se.ending=!0,ce(ue,se),$&&(se.finished?i.nextTick($):ue.once("finish",$)),se.ended=!0,ue.writable=!1}function ye(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 g=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 m={data:A,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length},y.prototype.unshift=function(A){var m={data:A,next:this.head};this.length===0&&(this.tail=m),this.head=m,++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 m=this.head,e=""+m.data;m=m.next;)e+=A+m.data;return e},y.prototype.concat=function(A){if(this.length===0)return g.alloc(0);if(this.length===1)return this.head.data;for(var m=g.allocUnsafe(A>>>0),e=this.head,f=0;e;)b(e.data,m,f),f+=e.data.length,e=e.next;return m},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 g(y,C){var A=this,m=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return m||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:g,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")(),g=M.regeneratorRuntime&&Object.getOwnPropertyNames(M).indexOf("regeneratorRuntime")>=0,O=g&&M.regeneratorRuntime;if(M.regeneratorRuntime=void 0,z.exports=k("./runtime"),g)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 g=Object.prototype,O=g.hasOwnProperty,b,y=typeof Symbol=="function"?Symbol:{},C=y.iterator||"@@iterator",A=y.asyncIterator||"@@asyncIterator",m=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 I=D&&D.prototype instanceof d?D:d,K=Object.create(I.prototype),ee=new L(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([])));_&&_!==g&&O.call(_,C)&&(w=_);var P=u.prototype=d.prototype=Object.create(w);s.prototype=P.constructor=u,u.constructor=s,u[m]=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,m in H||(H[m]="GeneratorFunction")),H.prototype=Object.create(P),H},f.awrap=function(H){return{__await:H}};function x(H){function D(I,K,ee,he){var de=l(H[I],H,K);if(de.type==="throw")he(de.arg);else{var Se=de.arg,Te=Se.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){Se.value=ce,ee(Se)},he)}}var W;function F(I,K){function ee(){return new Promise(function(he,de){D(I,K,he,de)})}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 I=new x(a(H,D,W,F));return f.isGeneratorFunction(D)?I:I.next().then(function(K){return K.done?K.value:I.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 de=v(he,W);if(de){if(de===h)continue;return de}}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 Se=l(H,D,W);if(Se.type==="normal"){if(F=W.done?c:i,Se.arg===h)continue;return{value:Se.arg,done:W.done}}else Se.type==="throw"&&(F=c,W.method="throw",W.arg=Se.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 I=F.arg;if(!I)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,h;if(I.done)D[H.resultName]=I.value,D.next=H.nextLoc,D.method!=="return"&&(D.method="next",D.arg=b);else return I;return D.delegate=null,h}R(P),P[m]="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 L(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 I=D.pop();if(I in H)return F.value=I,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 I(){for(;++W<H.length;)if(O.call(H,W))return I.value=H[W],I.done=!1,I;return I.value=b,I.done=!0,I};return F.next=F}}return{next:V}}f.values=N;function V(){return{value:b,done:!0}}L.prototype={constructor:L,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(de,Se){return K.type="throw",K.arg=H,D.next=de,Se&&(D.method="next",D.arg=b),!!Se}for(var F=this.tryEntries.length-1;F>=0;--F){var I=this.tryEntries[F],K=I.completion;if(I.tryLoc==="root")return W("end");if(I.tryLoc<=this.prev){var ee=O.call(I,"catchLoc"),he=O.call(I,"finallyLoc");if(ee&&he){if(this.prev<I.catchLoc)return W(I.catchLoc,!0);if(this.prev<I.finallyLoc)return W(I.finallyLoc)}else if(ee){if(this.prev<I.catchLoc)return W(I.catchLoc,!0)}else if(he){if(this.prev<I.finallyLoc)return W(I.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 I=F;break}}I&&(H==="break"||H==="continue")&&I.tryLoc<=D&&D<=I.finallyLoc&&(I=null);var K=I?I.completion:{};return K.type=H,K.arg=D,I?(this.method="next",this.next=I.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 I=F.arg;U(W)}return I}}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"),g=M.Buffer;function O(y,C){for(var A in y)C[A]=y[A]}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?z.exports=M:(O(M,o),o.Buffer=b);function b(y,C,A){return g(y,C,A)}O(g,b),b.from=function(y,C,A){if(typeof y=="number")throw new TypeError("Argument must not be a number");return g(y,C,A)},b.alloc=function(y,C,A){if(typeof y!="number")throw new TypeError("Argument must be a number");var m=g(y);return C!==void 0?typeof A=="string"?m.fill(C,A):m.fill(C):m.fill(0),m},b.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return g(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 g=k("babel-runtime/core-js/string/from-code-point"),O=i(g),b=k("babel-runtime/core-js/json/stringify"),y=i(b),C=k("babel-runtime/helpers/typeof"),A=i(C),m=k("babel-runtime/core-js/object/define-property"),e=i(m),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,Ae=c.length;_e<Ae;_e++){var Je=Q[c[_e]].length;if(Je>J)switch(c[_e]){case"textNode":Se(Q);break;case"cdata":de(Q,"oncdata",Q.cdata),Q.cdata="";break;case"script":de(Q,"onscript",Q.script),Q.script="";break;default:ce(Q,"Max buffer length exceeded: "+c[_e])}ve=Math.max(ve,Je)}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){Se(Q),Q.cdata!==""&&(de(Q,"oncdata",Q.cdata),Q.cdata=""),Q.script!==""&&(de(Q,"onscript",Q.script),Q.script="")}h.prototype={end:function(){be(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(Je){if(!Je)return ve.removeAllListeners(_e),ve._parser["on"+_e]=Je,Je;ve.on(_e,Je)},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]/,L=/[:_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 I(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 de(Q,J,ve){Q.textNode&&Se(Q),he(Q,J,ve)}function Se(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 Se(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 be(Q){return Q.sawRoot&&!Q.closedRoot&&ye(Q,"Unclosed root tag"),Q.state!==K.BEGIN&&Q.state!==K.BEGIN_WHITESPACE&&Q.state!==K.TEXT&&ce(Q,"Unexpected end"),Se(Q),Q.c="",Q.closed=!0,he(Q,"onend"),h.call(Q,Q.strict,Q.opt),Q}function ye(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,de(Q,"onopentagstart",ve)}function se(Q,J){var ve=Q.indexOf(":"),_e=ve<0?["",Q]:Q.split(":"),Ae=_e[0],Je=_e[1];return J&&Q==="xmlns"&&(Ae="xmlns",Je=""),{prefix:Ae,local:Je}}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)ye(Q,"xml: prefix must be bound to "+S+`
|
|
|
Actual: `+Q.attribValue);else if(_e==="xmlns"&&Q.attribValue!==v)ye(Q,"xmlns: prefix must be bound to "+v+`
|
|
|
Actual: `+Q.attribValue);else{var Ae=Q.tag,Je=Q.tags[Q.tags.length-1]||Q;Ae.ns===Je.ns&&(Ae.ns=(0,n.default)(Je.ns)),Ae.ns[_e]=Q.attribValue}Q.attribList.push([Q.attribName,Q.attribValue])}else Q.tag.attributes[Q.attribName]=Q.attribValue,de(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&&(ye(Q,"Unbound namespace prefix: "+(0,y.default)(Q.tagName)),ve.uri=_e.prefix);var Ae=Q.tags[Q.tags.length-1]||Q;ve.ns&&Ae.ns!==ve.ns&&(0,a.default)(ve.ns).forEach(function(Et){de(Q,"onopennamespace",{prefix:Et,uri:ve.ns[Et]})});for(var Je=0,tt=Q.attribList.length;Je<tt;Je++){var ut=Q.attribList[Je],ft=ut[0],vt=ut[1],_t=se(ft,!0),Ve=_t.prefix,je=_t.local,ht=Ve===""?"":ve.ns[Ve]||"",Bt={name:ft,value:vt,prefix:Ve,local:je,uri:ht};Ve&&Ve!=="xmlns"&&!ht&&(ye(Q,"Unbound namespace prefix: "+(0,y.default)(Ve)),Bt.uri=Ve),Q.tag.attributes[ft]=Bt,de(Q,"onattribute",Bt)}Q.attribList.length=0}Q.tag.isSelfClosing=!!J,Q.sawRoot=!0,Q.tags.push(Q.tag),de(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){ye(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}de(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 Ae=Q.tags[J];if(Ae.name!==_e)ye(Q,"Unexpected close tag");else break}if(J<0){ye(Q,"Unmatched closing tag: "+Q.tagName),Q.textNode+="</"+Q.tagName+">",Q.state=K.TEXT;return}Q.tagName=ve;for(var Je=Q.tags.length;Je-- >J;){var tt=Q.tag=Q.tags.pop();Q.tagName=Q.tag.name,de(Q,"onclosetag",Q.tagName);var ut={};for(var ft in tt.ns)ut[ft]=tt.ns[ft];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 Ve=tt.ns[_t];de(Q,"onclosenamespace",{prefix:_t,uri:Ve})})}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,Ae="";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),Ae=_e.toString(16)):(J=J.slice(1),_e=parseInt(J,10),Ae=_e.toString(10))),J=J.replace(/^0+/,""),isNaN(_e)||Ae.toLowerCase()!==J?(ye(Q,"Invalid character entity"),"&"+Q.entity+";"):(0,O.default)(_e))}function Oe(Q,J){J==="<"?(Q.state=K.OPEN_WAKA,Q.startTagPosition=Q.position):H(J)||(ye(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 be(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;Oe(J,_e);continue;case K.BEGIN_WHITESPACE:Oe(J,_e);continue;case K.TEXT:if(J.sawRoot&&!J.closedRoot){for(var Ae=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(Ae,ve-1)}_e==="<"&&!(J.sawRoot&&J.closedRoot&&!J.strict)?(J.state=K.OPEN_WAKA,J.startTagPosition=J.position):(!H(_e)&&(!J.sawRoot||J.closedRoot)&&ye(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(ye(J,"Unencoded <"),J.startTagPosition+1<J.position){var Je=J.position-J.startTagPosition;_e=new Array(Je).join(" ")+_e}J.textNode+="<"+_e,J.state=K.TEXT}continue;case K.SGML_DECL:(J.sgmlDecl+_e).toUpperCase()===R?(de(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)&&ye(J,"Inappropriately located doctype declaration"),J.doctype="",J.sgmlDecl=""):_e===">"?(de(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,de(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&&de(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+_e,J.state=K.COMMENT);continue;case K.COMMENT_ENDED:_e!==">"?(ye(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&&de(J,"oncdata",J.cdata),de(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===">"?(de(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(L,_e)?J.tagName+=_e:(ue(J),_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:(H(_e)||ye(J,"Invalid character in tag name"),J.state=K.ATTRIB));continue;case K.OPEN_TAG_SLASH:_e===">"?(me(J,!0),re(J)):(ye(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):ye(J,"Invalid attribute name");continue;case K.ATTRIB_NAME:_e==="="?J.state=K.ATTRIB_VALUE:_e===">"?(ye(J,"Attribute without value"),J.attribValue=J.attribName,$(J),me(J)):H(_e)?J.state=K.ATTRIB_NAME_SAW_WHITE:F(L,_e)?J.attribName+=_e:ye(J,"Invalid attribute name");continue;case K.ATTRIB_NAME_SAW_WHITE:if(_e==="=")J.state=K.ATTRIB_VALUE;else{if(H(_e))continue;ye(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",de(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",_e===">"?me(J):F(U,_e)?(J.attribName=_e,J.state=K.ATTRIB_NAME):(ye(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):(ye(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)?(ye(J,"No whitespace between attributes"),J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):ye(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(L,_e)?J.tagName+=_e:J.script?(J.script+="</"+J.tagName,J.tagName="",J.state=K.SCRIPT):(H(_e)||ye(J,"Invalid tagname in closing tag"),J.state=K.CLOSE_TAG_SAW_WHITE);else{if(H(_e))continue;I(U,_e)?J.script?(J.script+="</"+_e,J.state=K.SCRIPT):ye(J,"Invalid tagname in closing tag."):J.tagName=_e}continue;case K.CLOSE_TAG_SAW_WHITE:if(H(_e))continue;_e===">"?re(J):ye(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,ut;switch(J.state){case K.TEXT_ENTITY:tt=K.TEXT,ut="textNode";break;case K.ATTRIB_VALUE_ENTITY_Q:tt=K.ATTRIB_VALUE_QUOTED,ut="attribValue";break;case K.ATTRIB_VALUE_ENTITY_U:tt=K.ATTRIB_VALUE_UNQUOTED,ut="attribValue";break}_e===";"?(J[ut]+=ae(J),J.entity="",J.state=tt):F(J.entity.length?V:N,_e)?J.entity+=_e:(ye(J,"Invalid character in entity name"),J[ut]+="&"+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 Ae=16384,Je=[],tt,ut,ft=-1,vt=arguments.length;if(!vt)return"";for(var _t="";++ft<vt;){var Ve=Number(arguments[ft]);if(!isFinite(Ve)||Ve<0||Ve>1114111||J(Ve)!==Ve)throw RangeError("Invalid code point: "+Ve);Ve<=65535?Je.push(Ve):(Ve-=65536,tt=(Ve>>10)+55296,ut=Ve%1024+56320,Je.push(tt,ut)),(ft+1===vt||Je.length>Ae)&&(_t+=Q.apply(null,Je),Je.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,g=k("inherits");g(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 m(){C.readable&&C.resume&&C.resume()}b.on("drain",m),!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",m),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 g=k("./lib/request"),O=k("./lib/response"),b=k("xtend"),y=k("builtin-status-codes"),C=k("url"),A=o;A.request=function(m,e){typeof m=="string"?m=C.parse(m):m=b(m);var f=M.location.protocol.search(/^https?:$/)===-1?"http:":"",a=m.protocol||f,l=m.hostname||m.host,n=m.port,i=m.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),m.url=(l?a+"//"+l:"")+(n?":"+n:"")+i,m.method=(m.method||"GET").toUpperCase(),m.headers=m.headers||{};var r=new g(m);return e&&r.on("response",e),r},A.get=function(e,f){var a=A.request(e,f);return a.end(),a},A.ClientRequest=g,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(m){}var g;function O(){if(g!==void 0)return g;if(M.XMLHttpRequest){g=new M.XMLHttpRequest;try{g.open("GET",M.XDomainRequest?"/":"https://example.com")}catch(m){g=null}}else g=null;return g}function b(m){var e=O();if(!e)return!1;try{return e.responseType=m,e.responseType===m}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(m){return typeof m=="function"}g=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,z,o){(function(M,g,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"),m=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()})};m(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 g.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=g.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},s.requestTimeout))}g.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){g.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",S)})}else{var x=d._xhr=new g.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,g.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,g,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"),m=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){g.clearTimeout(r),c.push(null);return}c.push(new O(P.value)),_()}).catch(function(P){g.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(){g.clearTimeout(r),c._destroyed||c.push(null)},abort:function(P){c._destroyed||c.emit("error",P)}});try{n.body.pipeTo(d).catch(function(_){g.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")}}};m(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 g.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 g.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,g=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===g||!g(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 m(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=m(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,g){var O=k("process/browser.js").nextTick,b=Function.prototype.apply,y=Array.prototype.slice,C={},A=0;o.setTimeout=function(){return new m(b.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new m(b.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(e){e.close()};function m(e,f){this._id=e,this._clearFn=f}m.prototype.unref=m.prototype.ref=function(){},m.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 g=="function"?g: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(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(M.isBuffer(g)){for(var O=new Uint8Array(g.length),b=g.length,y=0;y<b;y++)O[y]=g[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"),g=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",`
|
|
|
`," "],m=["{","}","|","\\","^","`"].concat(A),e=["'"].concat(m),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(_&&g.isObject(_)&&_ instanceof O)return _;var x=new O;return x.parse(_,P,R),x}O.prototype.parse=function(_,P,R){if(!g.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 L=C.exec(U);if(L)return this.path=U,this.href=U,this.pathname=L[1],L[2]?(this.search=L[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 I,K;D===-1?K=U.lastIndexOf("@"):K=U.lastIndexOf("@",D),K!==-1&&(I=U.slice(0,K),U=U.slice(K+1),this.auth=decodeURIComponent(I)),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,de=he.length;W<de;W++){var Se=he[W];if(!Se)continue;if(!Se.match(n)){for(var Te="",ce=0,be=Se.length;ce<be;ce++)Se.charCodeAt(ce)>127?Te+="x":Te+=Se[ce];if(!Te.match(n)){var ye=he.slice(0,W),ue=he.slice(W+1),se=Se.match(i);se&&(ye.push(se[1]),ue.unshift(se[2])),ue.length&&(U="/"+ue.join(".")+U),this.hostname=ye.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,de=e.length;W<de;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 Oe=U.indexOf("#");Oe!==-1&&(this.hash=U.substr(Oe),U=U.slice(0,Oe));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 g.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&&g.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(g.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 L=T[U];L!=="protocol"&&(R[L]=_[L])}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 de=(_.pathname||"").split("/");de.length&&!(_.host=de.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),R.pathname=de.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)==="/",I=_.host||_.pathname&&_.pathname.charAt(0)==="/",K=I||F||R.host&&_.pathname,ee=K,he=R.pathname&&R.pathname.split("/")||[],de=_.pathname&&_.pathname.split("/")||[],Se=R.protocol&&!h[R.protocol];if(Se&&(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&&(de[0]===""?de[0]=_.host:de.unshift(_.host)),_.host=null),K=K&&(de[0]===""||he[0]==="")),I)R.host=_.host||_.host===""?_.host:R.host,R.hostname=_.hostname||_.hostname===""?_.hostname:R.hostname,R.search=_.search,R.query=_.query,he=de;else if(de.length)he||(he=[]),he.pop(),he=he.concat(de),R.search=_.search,R.query=_.query;else if(!g.isNullOrUndefined(_.search)){if(Se){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,(!g.isNull(R.pathname)||!g.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],be=(R.host||_.host||he.length>1)&&(ce==="."||ce==="..")||ce==="",ye=0,ue=he.length;ue>=0;ue--)ce=he[ue],ce==="."?he.splice(ue,1):ce===".."?(he.splice(ue,1),ye++):ye&&(he.splice(ue,1),ye--);if(!K&&!ee)for(;ye--;ye)he.unshift("..");K&&he[0]!==""&&(!he[0]||he[0].charAt(0)!=="/")&&he.unshift(""),be&&he.join("/").substr(-1)!=="/"&&he.push("");var se=he[0]===""||he[0]&&he[0].charAt(0)==="/";if(Se){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),(!g.isNull(R.pathname)||!g.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=g;function g(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(g,O){g.super_=O,g.prototype=Object.create(O.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:z.exports=function(g,O){g.super_=O;var b=function(){};b.prototype=O.prototype,g.prototype=new b,g.prototype.constructor=g}},{}],242:[function(k,z,o){z.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}},{}],243:[function(k,z,o){(function(M,g){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,I=arguments,K=I.length,ee=String(D).replace(O,function(de){if(de==="%%")return"%";if(F>=K)return de;switch(de){case"%s":return String(I[F++]);case"%d":return Number(I[F++]);case"%j":try{return JSON.stringify(I[F++])}catch(Se){return"[Circular]"}default:return de}}),he=I[F];F<K;he=I[++F])d(he)||!R(he)?ee+=" "+he:ee+=" "+C(he);return ee},o.deprecate=function(D,W){if(_(g.process))return function(){return o.deprecate(D,W).apply(this,arguments)};if(M.noDeprecation===!0)return D;var F=!1;function I(){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 I};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:m};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 m(D,W){return D}function e(D){var W={};return D.forEach(function(F,I){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 I=W.inspect(F,D);return w(I)||(I=f(D,I,F)),I}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 de=W.name?": "+W.name:"";return D.stylize("[Function"+de+"]","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 Se="",Te=!1,ce=["{","}"];if(c(W)&&(Te=!0,ce=["[","]"]),v(W)){var be=W.name?": "+W.name:"";Se=" [Function"+be+"]"}if(P(W)&&(Se=" "+RegExp.prototype.toString.call(W)),x(W)&&(Se=" "+Date.prototype.toUTCString.call(W)),S(W)&&(Se=" "+l(W)),ee.length===0&&(!Te||W.length==0))return ce[0]+Se+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 ye;return Te?ye=n(D,W,F,he,ee):ye=ee.map(function(ue){return i(D,W,F,he,ue,Te)}),D.seen.pop(),r(ye,Se,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,I,K){for(var ee=[],he=0,de=W.length;he<de;++he)H(W,String(he))?ee.push(i(D,W,F,I,String(he),!0)):ee.push("");return K.forEach(function(Se){Se.match(/^\d+$/)||ee.push(i(D,W,F,I,Se,!0))}),ee}function i(D,W,F,I,K,ee){var he,de,Se;if(Se=Object.getOwnPropertyDescriptor(W,K)||{value:W[K]},Se.get?Se.set?de=D.stylize("[Getter/Setter]","special"):de=D.stylize("[Getter]","special"):Se.set&&(de=D.stylize("[Setter]","special")),H(I,K)||(he="["+K+"]"),de||(D.seen.indexOf(Se.value)<0?(d(F)?de=f(D,Se.value,null):de=f(D,Se.value,F-1),de.indexOf(`
|
|
|
`)>-1&&(ee?de=de.split(`
|
|
|
`).map(function(Te){return" "+Te}).join(`
|
|
|
`).substr(2):de=`
|
|
|
`+de.split(`
|
|
|
`).map(function(Te){return" "+Te}).join(`
|
|
|
`))):de=D.stylize("[Circular]","special")),_(he)){if(ee&&K.match(/^\d+$/))return de;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+": "+de}function r(D,W,F){var I=0,K=D.reduce(function(ee,he){return I++,he.indexOf(`
|
|
|
`)>=0&&I++,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 L(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=[L(D.getHours()),L(D.getMinutes()),L(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),I=F.length;I--;)D[F[I]]=W[F[I]];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"),g=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,m,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["+m(n)+"]]>"},m=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,g.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,g.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,g.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"),g=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"),m=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,m.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,L,N,V;if(L={},L[P]="",!S.options.ignoreAttrs){V=v.attributes;for(T in V){if(!u.call(V,T))continue;!(_ in L)&&!S.options.mergeAttrs&&(L[_]={}),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(L,N,U):L[_][N]=U}}return L["#name"]=S.options.tagNameProcessors?i(S.options.tagNameProcessors,v.name):v.name,S.options.xmlns&&(L[S.options.xmlnskey]={uri:v.uri,local:v.local}),x.push(L)}}(this),this.saxParser.onclosetag=function(S){return function(){var v,T,U,L,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 I,K,ee;for(ee=[],I=0,K=x.length;I<K;I++)L=x[I],ee.push(L["#name"]);return ee}().concat(N).join("/"),function(){var I;try{return V=S.options.validator(F,W&&W[N],V)}catch(K){return I=K,S.emit("error",I)}}()),S.options.explicitChildren&&!S.options.mergeAttrs&&(typeof V=="undefined"?"undefined":(0,m.default)(V))==="object"){if(!S.options.preserveChildrenOrder)L={},S.options.attrkey in V&&(L[S.options.attrkey]=V[S.options.attrkey],delete V[S.options.attrkey]),!S.options.charsAsChildren&&S.options.charkey in V&&(L[S.options.charkey]=V[S.options.charkey],delete V[S.options.charkey]),(0,b.default)(V).length>0&&(L[S.options.childkey]=V),V=L;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 g.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,m.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,m.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(g){return g.toLowerCase()},o.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},o.stripPrefix=function(g){return g.replace(M,"")},o.parseNumbers=function(g){return isNaN(g)||(g=g%1===0?parseInt(g,10):parseFloat(g)),g},o.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],249:[function(k,z,o){"use strict";(function(){"use strict";var M,g,O,b,y=function(m,e){for(var f in e)C.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},C={}.hasOwnProperty;g=k("./defaults"),M=k("./builder"),O=k("./parser"),b=k("./processors"),o.defaults=g.defaults,o.processors=b,o.ValidationError=function(A){y(m,A);function m(e){this.message=e}return m}(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"),g=A(M),O=k("babel-runtime/helpers/typeof"),b=A(O),y=k("babel-runtime/core-js/object/assign"),C=A(y);function A(m){return m&&m.__esModule?m:{default:m}}(function(){var m,e,f,a,l,n,i,r=[].slice,c={}.hasOwnProperty;m=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,g.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=m,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"),g=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(m,e,f){if(this.parent=m,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,g.default)(this)},A.prototype.toString=function(m){return this.options.writer.attribute(this,this.options.writer.filterOptions(m))},A.prototype.debugInfo=function(m){return m=m||this.name,m==null?"parent: <"+this.parent.name+">":"attribute: {"+m+"}, parent: <"+this.parent.name+">"},A.prototype.isEqualNode=function(m){return m.namespaceURI!==this.namespaceURI||(m.prefix!==this.prefix||m.localName!==this.localName)?!1:!(m.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"),g=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)m.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},m={}.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,g.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"),g=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(m){C(e,m);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,g.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"),g=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)m.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},m={}.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,g.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"),g=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,m;A=k("./XMLDOMErrorHandler"),m=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 m((0,g.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 g(){}return g.prototype.handleError=function(O){throw new Error(O)},g}()}).call(void 0)},{}],260:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function g(){}return g.prototype.hasFeature=function(O,b){return!0},g.prototype.createDocumentType=function(O,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createDocument=function(O,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createHTMLDocument=function(O){throw new Error("This DOM method is not implemented.")},g.prototype.getFeature=function(O,b){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{}],261:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function g(O){this.arr=O||[]}return Object.defineProperty(g.prototype,"length",{get:function(){return this.arr.length}}),g.prototype.item=function(O){return this.arr[O]||null},g.prototype.contains=function(O){return this.arr.indexOf(O)!==-1},g}()}).call(void 0)},{}],262:[function(k,z,o){"use strict";(function(){var M,g,O,b=function(A,m){for(var e in m)y.call(m,e)&&(A[e]=m[e]);function f(){this.constructor=A}return f.prototype=m.prototype,A.prototype=new f,A.__super__=m.prototype,A},y={}.hasOwnProperty;O=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(C){b(A,C);function A(m,e,f,a,l,n){if(A.__super__.constructor.call(this,m),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(m){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(m))},A}(O)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,z,o){"use strict";(function(){var M,g,O,b=function(A,m){for(var e in m)y.call(m,e)&&(A[e]=m[e]);function f(){this.constructor=A}return f.prototype=m.prototype,A.prototype=new f,A.__super__=m.prototype,A},y={}.hasOwnProperty;O=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(C){b(A,C);function A(m,e,f){if(A.__super__.constructor.call(this,m),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(m){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(m))},A}(O)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,z,o){"use strict";(function(){var M,g,O,b,y=function(m,e){for(var f in e)C.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},C={}.hasOwnProperty;b=k("./Utility").isObject,O=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(A){y(m,A);function m(e,f,a,l){if(m.__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(m.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(m.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(m.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(m.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"xmlVersion",{get:function(){return null}}),m.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},m}(O)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,z,o){"use strict";(function(){var M,g,O,b=function(A,m){for(var e in m)y.call(m,e)&&(A[e]=m[e]);function f(){this.constructor=A}return f.prototype=m.prototype,A.prototype=new f,A.__super__=m.prototype,A},y={}.hasOwnProperty;O=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(C){b(A,C);function A(m,e,f){if(A.__super__.constructor.call(this,m),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(m){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(m))},A}(O)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,z,o){"use strict";(function(){var M,g,O,b,y=function(m,e){for(var f in e)C.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},C={}.hasOwnProperty;b=k("./Utility").isObject,O=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(A){y(m,A);function m(e,f,a,l){var n;m.__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 m.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},m}(O)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,z,o){"use strict";(function(){var M,g,O,b,y,C,A,m,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,m=k("./XMLNode"),M=k("./NodeType"),g=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 g(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}(m)}).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,g,O,b,y,C,A,m,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;m=k("./Utility").isPlainObject,O=k("./XMLDOMImplementation"),g=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 g,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?m(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,g,O,b,y,C,A,m,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"),m=k("./XMLDTDEntity"),A=k("./XMLDTDElement"),e=k("./XMLDTDNotation"),O=k("./XMLAttribute"),d=k("./XMLStringifier"),h=k("./XMLStringWriter"),g=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,L,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++)L=D[N],this.createChildNode(L),L.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,L,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,L=0,N=H.length;L<N;L++)U=H[L],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,L,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;L=S[U],this.instruction(U,L)}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,L){var N;return this.openCurrent(),N=new C(this,S,v,T,U,L),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 m(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 m(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,L;if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S.type===M.Element&&(this.root=S),T="",S.type===M.Element){this.writerOptions.state=g.OpenTag,T=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<"+S.name,L=S.attribs;for(U in L){if(!R.call(L,U))continue;v=L[U],T+=this.writer.attribute(v,this.writerOptions,this.currentLevel)}T+=(S.children?">":"/>")+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=g.InsideTag}else this.writerOptions.state=g.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=g.InsideTag):(this.writerOptions.state=g.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=g.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=g.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"),g=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)m.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},m={}.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,g.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"),g=O(M);function O(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A,m,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,m=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,g.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}(m)}).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"),g=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,g.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,g.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,g,O,b,y,C,A,m,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,m=null,O=null,b=null,y=null,C=null,n=null,i=null,l=null,A=null,g=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,m||(m=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"),g=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===g.Element||this.nodeType===g.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,L,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,L=E.length;S<L;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 m(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===g.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,L,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===g.DocType)return R.children[S]=x,x;for(V=R.children,S=T=0,L=V.length;T<L;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===g.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===g.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 g(O){this.nodes=O}return Object.defineProperty(g.prototype,"length",{get:function(){return this.nodes.length||0}}),g.prototype.clone=function(){return this.nodes=null},g.prototype.item=function(O){return this.nodes[O]||null},g}()}).call(void 0)},{}],275:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=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)m.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},m={}.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,g.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"),g=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)m.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},m={}.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,g.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,g,O,b,y=function(m,e){for(var f in e)C.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},C={}.hasOwnProperty;M=k("./NodeType"),b=k("./XMLWriterBase"),g=k("./WriterState"),z.exports=O=function(A){y(m,A);function m(e,f){this.stream=e,m.__super__.constructor.call(this,f)}return m.prototype.endline=function(e,f,a){return e.isLastRootNode&&f.state===g.CloseTag?"":m.__super__.endline.call(this,e,f,a)},m.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},m.prototype.attribute=function(e,f,a){return this.stream.write(m.__super__.attribute.call(this,e,f,a))},m.prototype.cdata=function(e,f,a){return this.stream.write(m.__super__.cdata.call(this,e,f,a))},m.prototype.comment=function(e,f,a){return this.stream.write(m.__super__.comment.call(this,e,f,a))},m.prototype.declaration=function(e,f,a){return this.stream.write(m.__super__.declaration.call(this,e,f,a))},m.prototype.docType=function(e,f,a){var l,n,i,r;if(a||(a=0),this.openNode(e,f,a),f.state=g.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=g.InsideTag,r=e.children,n=0,i=r.length;n<i;n++)l=r[n],this.writeChildNode(l,f,a+1);f.state=g.CloseTag,this.stream.write("]")}return f.state=g.CloseTag,this.stream.write(f.spaceBeforeSlash+">"),this.stream.write(this.endline(e,f,a)),f.state=g.None,this.closeNode(e,f,a)},m.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=g.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=g.CloseTag,this.stream.write("</"+e.name+">")):(f.state=g.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=g.InsideTag,f.suppressPrettyCount++,s=!0,this.writeChildNode(r,f,a+1),f.suppressPrettyCount--,s=!1,f.state=g.CloseTag,this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.endline(e,f,a)),f.state=g.InsideTag,w=e.children,c=0,h=w.length;c<h;c++)n=w[c],this.writeChildNode(n,f,a+1);f.state=g.CloseTag,this.stream.write(this.indent(e,f,a)+"</"+e.name+">")}return this.stream.write(this.endline(e,f,a)),f.state=g.None,this.closeNode(e,f,a)},m.prototype.processingInstruction=function(e,f,a){return this.stream.write(m.__super__.processingInstruction.call(this,e,f,a))},m.prototype.raw=function(e,f,a){return this.stream.write(m.__super__.raw.call(this,e,f,a))},m.prototype.text=function(e,f,a){return this.stream.write(m.__super__.text.call(this,e,f,a))},m.prototype.dtdAttList=function(e,f,a){return this.stream.write(m.__super__.dtdAttList.call(this,e,f,a))},m.prototype.dtdElement=function(e,f,a){return this.stream.write(m.__super__.dtdElement.call(this,e,f,a))},m.prototype.dtdEntity=function(e,f,a){return this.stream.write(m.__super__.dtdEntity.call(this,e,f,a))},m.prototype.dtdNotation=function(e,f,a){return this.stream.write(m.__super__.dtdNotation.call(this,e,f,a))},m}(b)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,z,o){"use strict";(function(){var M,g,O=function(C,A){for(var m in A)b.call(A,m)&&(C[m]=A[m]);function e(){this.constructor=C}return e.prototype=A.prototype,C.prototype=new e,C.__super__=A.prototype,C},b={}.hasOwnProperty;g=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,m){var e,f,a,l,n;for(m=this.filterOptions(m),l="",n=A.children,f=0,a=n.length;f<a;f++)e=n[f],l+=this.writeChildNode(e,m,0);return m.pretty&&l.slice(-m.newline.length)===m.newline&&(l=l.slice(0,-m.newline.length)),l},C}(g)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,z,o){"use strict";(function(){var M,g=function(y,C){return function(){return y.apply(C,arguments)}},O={}.hasOwnProperty;z.exports=M=function(){function b(y){this.assertLegalName=g(this.assertLegalName,this),this.assertLegalChar=g(this.assertLegalChar,this);var C,A,m;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;m=A[C],this[C]=m}}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,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},b.prototype.attEscape=function(y){var C;return this.options.noValidation?y:(C=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(C,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},b}()}).call(void 0)},{}],280:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=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)m.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},m={}.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,g.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,g,O,b,y,C,A,m,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"),m=k("./XMLDTDNotation"),g=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=g.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=g.OpenTag,_=this.indent(u,w,E)+"<![CDATA[",w.state=g.InsideTag,_+=u.value,w.state=g.CloseTag,_+="]]>"+this.endline(u,w,E),w.state=g.None,this.closeNode(u,w,E),_},s.prototype.comment=function(u,w,E){var _;return this.openNode(u,w,E),w.state=g.OpenTag,_=this.indent(u,w,E)+"<!-- ",w.state=g.InsideTag,_+=u.value,w.state=g.CloseTag,_+=" -->"+this.endline(u,w,E),w.state=g.None,this.closeNode(u,w,E),_},s.prototype.declaration=function(u,w,E){var _;return this.openNode(u,w,E),w.state=g.OpenTag,_=this.indent(u,w,E)+"<?xml",w.state=g.InsideTag,_+=' version="'+u.version+'"',u.encoding!=null&&(_+=' encoding="'+u.encoding+'"'),u.standalone!=null&&(_+=' standalone="'+u.standalone+'"'),w.state=g.CloseTag,_+=w.spaceBeforeSlash+"?>",_+=this.endline(u,w,E),w.state=g.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=g.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=g.InsideTag,S=u.children,P=0,R=S.length;P<R;P++)_=S[P],x+=this.writeChildNode(_,w,E+1);w.state=g.CloseTag,x+="]"}return w.state=g.CloseTag,x+=w.spaceBeforeSlash+">",x+=this.endline(u,w,E),w.state=g.None,this.closeNode(u,w,E),x},s.prototype.element=function(u,w,E){var _,P,R,x,S,v,T,U,L,N,V,H,D,W;E||(E=0),N=!1,V="",this.openNode(u,w,E),w.state=g.OpenTag,V+=this.indent(u,w,E)+"<"+u.name,H=u.attribs;for(L in H){if(!d.call(H,L))continue;_=H[L],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=g.CloseTag,V+="</"+u.name+">"+this.endline(u,w,E)):(w.state=g.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=g.InsideTag,w.suppressPrettyCount++,N=!0,V+=this.writeChildNode(x,w,E+1),w.suppressPrettyCount--,N=!1,w.state=g.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=g.InsideTag,W=u.children,v=0,U=W.length;v<U;v++)P=W[v],V+=this.writeChildNode(P,w,E+1);w.state=g.CloseTag,V+=this.indent(u,w,E)+"</"+u.name+">",N&&w.suppressPrettyCount--,V+=this.endline(u,w,E),w.state=g.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=g.OpenTag,_=this.indent(u,w,E)+"<?",w.state=g.InsideTag,_+=u.target,u.value&&(_+=" "+u.value),w.state=g.CloseTag,_+=w.spaceBeforeSlash+"?>",_+=this.endline(u,w,E),w.state=g.None,this.closeNode(u,w,E),_},s.prototype.raw=function(u,w,E){var _;return this.openNode(u,w,E),w.state=g.OpenTag,_=this.indent(u,w,E),w.state=g.InsideTag,_+=u.value,w.state=g.CloseTag,_+=this.endline(u,w,E),w.state=g.None,this.closeNode(u,w,E),_},s.prototype.text=function(u,w,E){var _;return this.openNode(u,w,E),w.state=g.OpenTag,_=this.indent(u,w,E),w.state=g.InsideTag,_+=u.value,w.state=g.CloseTag,_+=this.endline(u,w,E),w.state=g.None,this.closeNode(u,w,E),_},s.prototype.dtdAttList=function(u,w,E){var _;return this.openNode(u,w,E),w.state=g.OpenTag,_=this.indent(u,w,E)+"<!ATTLIST",w.state=g.InsideTag,_+=" "+u.elementName+" "+u.attributeName+" "+u.attributeType,u.defaultValueType!=="#DEFAULT"&&(_+=" "+u.defaultValueType),u.defaultValue&&(_+=' "'+u.defaultValue+'"'),w.state=g.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(u,w,E),w.state=g.None,this.closeNode(u,w,E),_},s.prototype.dtdElement=function(u,w,E){var _;return this.openNode(u,w,E),w.state=g.OpenTag,_=this.indent(u,w,E)+"<!ELEMENT",w.state=g.InsideTag,_+=" "+u.name+" "+u.value,w.state=g.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(u,w,E),w.state=g.None,this.closeNode(u,w,E),_},s.prototype.dtdEntity=function(u,w,E){var _;return this.openNode(u,w,E),w.state=g.OpenTag,_=this.indent(u,w,E)+"<!ENTITY",w.state=g.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=g.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(u,w,E),w.state=g.None,this.closeNode(u,w,E),_},s.prototype.dtdNotation=function(u,w,E){var _;return this.openNode(u,w,E),w.state=g.OpenTag,_=this.indent(u,w,E)+"<!NOTATION",w.state=g.InsideTag,_+=" "+u.name,u.pubID&&u.sysID?_+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.pubID?_+=' PUBLIC "'+u.pubID+'"':u.sysID&&(_+=' SYSTEM "'+u.sysID+'"'),w.state=g.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(u,w,E),w.state=g.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,g,O,b,y,C,A,m,e,f;f=k("./Utility"),m=f.assign,e=f.isFunction,O=k("./XMLDOMImplementation"),b=k("./XMLDocument"),y=k("./XMLDocumentCB"),A=k("./XMLStringWriter"),C=k("./XMLStreamWriter"),M=k("./NodeType"),g=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=m({},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=g}).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=g;var M=Object.prototype.hasOwnProperty;function g(){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,g=k("./sha"),O=k("./md5"),b={sha1:g,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 m(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 m(f)},o.createHmac=function(f,a){return m(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,g=4,O=M.alloc(g);O.fill(0);var b=8;function y(m,e){if(m.length%g!==0){var f=m.length+(g-m.length%g);m=M.concat([m,O],f)}for(var a=[],l=e?m.readInt32BE:m.readInt32LE,n=0;n<m.length;n+=g)a.push(l.call(m,n));return a}function C(m,e,f){for(var a=M.alloc(e),l=f?a.writeInt32BE:a.writeInt32LE,n=0;n<m.length;n++)l.call(a,m[n],n*4,!0);return a}function A(m,e,f,a){M.isBuffer(m)||(m=M.from(m));var l=e(y(m,a),m.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 g(){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=m(n,i,r,c,a[h+0],6,-198630844),c=m(c,n,i,r,a[h+7],10,1126891415),r=m(r,c,n,i,a[h+14],15,-1416354905),i=m(i,r,c,n,a[h+5],21,-57434055),n=m(n,i,r,c,a[h+12],6,1700485571),c=m(c,n,i,r,a[h+3],10,-1894986606),r=m(r,c,n,i,a[h+10],15,-1051523),i=m(i,r,c,n,a[h+1],21,-2054922799),n=m(n,i,r,c,a[h+8],6,1873313359),c=m(c,n,i,r,a[h+15],10,-30611744),r=m(r,c,n,i,a[h+6],15,-1560198380),i=m(i,r,c,n,a[h+13],21,1309151649),n=m(n,i,r,c,a[h+4],6,-145523070),c=m(c,n,i,r,a[h+11],10,-1120210379),r=m(r,c,n,i,a[h+2],15,718787259),i=m(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 m(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 g(A,m){A[m>>5]|=128<<24-m%32,A[(m+64>>9<<4)+15]=m;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,m,e,f){return A<20?m&e|~m&f:A<40?m^e^f:A<60?m&e|m&f|e&f:m^e^f}function b(A){return A<20?1518500249:A<40?1859775393:A<60?-1894007588:-899497514}function y(A,m){var e=(A&65535)+(m&65535),f=(A>>16)+(m>>16)+(e>>16);return f<<16|e&65535}function C(A,m){return A<<m|A>>>32-m}z.exports=function(m){return M.hash(m,g,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 g=k("babel-runtime/helpers/typeof"),O=b(g);function b(f){return f&&f.__esModule?f:{default:f}}var y=k("stream"),C=y.Stream,A=k("../lib/common/utils/isArray"),m=A.isArray;z.exports.string=function(a){return typeof a=="string"},z.exports.array=m,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(g){return M}},o.escape=k("escape-html"),o.timestamp=function(g){if(g){var O=g;return typeof O=="string"&&(O=Number(O)),String(g).length===10&&(O*=1e3),new Date(O)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,z,o){(function(M,g){"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 m=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=m.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(),L=T.port||80,N=f,V=d(_.agent,o.agent),H=_.fixJSONCtlChars;T.protocol==="https:"&&(N=a,V=d(_.httpsAgent,o.httpsAgent),T.port||(L=443));var D={host:T.hostname||T.host||"localhost",path:T.path||"/",method:U,port:L,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 I=W[F];_.hasOwnProperty(I)&&(D[I]=_[I])}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"||g.isBuffer(ee))))if(he)ee=_.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee);else{var de=D.headers["Content-Type"]||D.headers["content-type"];de||(_.contentType==="json"?de="application/json":de="application/x-www-form-urlencoded",D.headers["Content-Type"]=de),parseContentType(de).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 Se=0;if(ee){var Te=ee.length;g.isBuffer(ee)||(Te=g.byteLength(ee)),Se=D.headers["Content-Length"]=Te}_.dataType==="json"&&(D.headers.Accept="application/json"),typeof _.beforeRequest=="function"&&_.beforeRequest(D);var ce=null,be=null,ye=null,ue=!1,se=!1,$=0,me=-1,re=!1,ae="",Oe="",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(){be&&(clearTimeout(be),be=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 qe=Pt["www-authenticate"];if(qe.indexOf("Digest ")>=0)return l("Request#%d %s: got digest auth header WWW-Authenticate: %s",x,E,qe),_.headers=_.headers||{},_.headers.Authorization=digestAuthHeader(D.method,D.path,qe,_.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 He=Date.now()-v;le&&(le.contentDownload=He),l("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",He,$,me,D.method,D.host,D.path,se,le);var Ye={status:me,statusCode:me,headers:Pt,size:$,aborted:re,rt:He,keepAliveSocket:se,data:ht,requestUrls:_.requestUrls,timing:le,remoteAddress:ae,remotePort:Oe};if(je){var Ce="";V&&typeof V.getCurrentStatus=="function"&&(Ce=", agent status: "+(0,b.default)(V.getCurrentStatus())),je.message+=", "+D.method+" "+E+" "+me+" (connected: "+ue+", keepalive socket: "+se+Ce+`)
|
|
|
headers: `+(0,b.default)(Pt),je.data=ht,je.path=D.path,je.status=me,je.headers=Pt,je.res=Ye}Et(je,ht,_.streaming?Bt:Ye),_.emitter&&(S.url=E,S.socket=_t&&_t.connection,S.options=D,S.size=Se,_.emitter.emit("response",{requestId:x,error:je,ctx:_.ctx,req:S,res:Ye}))}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 Ae=_.writeStream;l("Request#%d %s %s with headers %j, options.path: %s",x,U,E,D.headers,D.path),_.requestUrls.push(E);function Je(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,$)}),Ae){var ht=ve(je);if(ht.redirect){je.resume();return}return ht.error?(je.resume(),Ae.end(),J(ht.error,null,je)):(_.consumeWriteStream===!1?je.on("end",J.bind(null,null,null,je)):isNode010||isNode012?first([[Ae,"close"],[je,"aborted"]],function(Pt,qe,He){l("Request#%d %s: writeStream or res %s event emitted",x,E,He),J(ye||null,null,je)}):Ae.on("close",function(){l("Request#%d %s: writeStream close event emitted",x,E),J(ye||null,null,je)}),je.pipe(Ae))}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=g.concat(Bt,$);if(l("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",x,E,$,je._dumped),ye)return J(ye,Et,je);var Pt=ve(je);if(Pt.error)return J(Pt.error,Et,je);if(Pt.redirect)return;_e(je,Et,function(qe,He,Ye){if(qe)return J(qe,Et,je);if(!Ye&&u.indexOf(_.dataType)>=0){try{He=decodeBodyByCharset(He,je)}catch(Le){return l("decodeBodyByCharset error: %s",Le),J(null,He,je)}if(_.dataType==="json")if($===0)He=null;else{var Ce=parseJSON(He,H);Ce.error?qe=Ce.error:He=Ce.data}}re&&l("Request#%d %s: Remote socket was terminated before `response.end()` was called",x,E),J(qe,He,je)})})}var tt,ut;Array.isArray(_.timeout)?(tt=n(_.timeout[0]),ut=n(_.timeout[1])):tt=ut=n(_.timeout),l("ConnectTimeout: %d, ResponseTimeout: %d",tt,ut);function ft(){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"),ye=new Error(je),ye.name=ht,ye.requestId=x,l("ConnectTimeout: Request#%d %s %s: %s, connected: %s",x,E,ye.name,je,ue),Ve()},tt)}function vt(){l("Response timer ticking, timeout: %d",ut),be=setTimeout(function(){be=null;var je="Response timeout for "+ut+"ms",ht="ResponseTimeoutError";ye=new Error(je),ye.name=ht,ye.requestId=x,l("ResponseTimeout: Request#%d %s %s: %s, connected: %s",x,E,ye.name,je,ue),Ve()},ut)}var _t;D.mode=_.mode?_.mode:"";try{_t=N.request(D,Je)}catch(je){return J(je)}typeof window=="undefined"?ft():_t.on("requestTimeout",function(){me===-1&&(me=-2);var je="Connect timeout for "+tt+"ms",ht="ConnectionTimeoutError";ye=new Error(je),ye.name=ht,ye.requestId=x,Ve()});function Ve(){l("Request#%d %s abort, connected: %s",x,E,ue),_t.socket||(ye.noSocket=!0,J(ye)),_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),Oe=je.remotePort});return}l("Request#%d %s reuse socket connected, readyState: %s",x,E,ht),ue=!0,se=!0,ae||(ae=je.remoteAddress),Oe=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(ye||je)}),Ae&&Ae.once("error",function(je){je.message+=' (writeStream "error")',ye=je,l("Request#%d %s `writeStream error` event emit, %s: %s",x,E,je.name,je.message),Ve()}),_.stream?(_.stream.pipe(_t),_.stream.once("error",function(je){je.message+=' (stream "error")',ye=je,l("Request#%d %s `readStream error` event emit, %s: %s",x,E,je.name,je.message),Ve()})):_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 m});var M=o("q1tI"),g=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(g.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(g.a),l=a.prefixCls;return M.createElement("tfoot",{className:"".concat(l,"-summary")},f)}var A=z.b=C,m={Cell:b,Row:y}},nEHx:function(k,z,o){"use strict";o.d(z,"a",function(){return M});var M;(function(g){g.DARK="dark",g.LIGHT="light",g.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"),g=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 m(Y,Z){var ie=Object(M.useState)(function(){return{inputs:Z,result:Y()}})[0],Ee=Object(M.useRef)(!0),Ne=Object(M.useRef)(ie),ke=Ee.current||Boolean(Z&&Ne.current.inputs&&A(Z,Ne.current.inputs)),Ke=ke?Ne.current:{inputs:Z,result:Y()};return Object(M.useEffect)(function(){Ee.current=!1,Ne.current=Ke},[Ke]),Ke.result}function e(Y,Z){return m(function(){return Y},Z)}var f=m,a=e,l=o("9R94"),n=function(Z){var ie=Z.top,Ee=Z.right,Ne=Z.bottom,ke=Z.left,Ke=Ee-ke,Ge=Ne-ie,xt={top:ie,right:Ee,bottom:Ne,left:ke,width:Ke,height:Ge,x:ke,y:ie,center:{x:(Ee+ke)/2,y:(Ne+ie)/2}};return xt},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,Ee=Z.margin,Ne=Ee===void 0?h:Ee,ke=Z.border,Ke=ke===void 0?h:ke,Ge=Z.padding,xt=Ge===void 0?h:Ge,Ut=n(i(ie,Ne)),Ft=n(r(ie,Ke)),Tt=n(r(Ft,xt));return{marginBox:Ut,borderBox:n(ie),paddingBox:Ft,contentBox:Tt,margin:Ne,border:Ke,padding:xt}},s=function(Z){var ie=Z.slice(0,-2),Ee=Z.slice(-2);if(Ee!=="px")return 0;var Ne=Number(ie);return isNaN(Ne)&&Object(l.a)(!1),Ne},u=function(){return{x:window.pageXOffset,y:window.pageYOffset}},w=function(Z,ie){var Ee=Z.borderBox,Ne=Z.border,ke=Z.margin,Ke=Z.padding,Ge=c(Ee,ie);return d({borderBox:Ge,border:Ne,margin:ke,padding:Ke})},E=function(Z,ie){return ie===void 0&&(ie=u()),w(Z,ie)},_=function(Z,ie){var Ee={top:s(ie.marginTop),right:s(ie.marginRight),bottom:s(ie.marginBottom),left:s(ie.marginLeft)},Ne={top:s(ie.paddingTop),right:s(ie.paddingRight),bottom:s(ie.paddingBottom),left:s(ie.paddingLeft)},ke={top:s(ie.borderTopWidth),right:s(ie.borderRightWidth),bottom:s(ie.borderBottomWidth),left:s(ie.borderLeftWidth)};return d({borderBox:Z,margin:Ee,padding:Ne,border:ke})},P=function(Z){var ie=Z.getBoundingClientRect(),Ee=window.getComputedStyle(Z);return _(ie,Ee)},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,Ee=[],Ne,ke=!1;function Ke(){for(var Ge=[],xt=0;xt<arguments.length;xt++)Ge[xt]=arguments[xt];return ke&&ie===this&&Z(Ge,Ee)||(Ne=Y.apply(this,Ge),ke=!0,ie=this,Ee=Ge),Ne}return Ke}var T=v,U=function(Z){var ie=[],Ee=null,Ne=function(){for(var Ke=arguments.length,Ge=new Array(Ke),xt=0;xt<Ke;xt++)Ge[xt]=arguments[xt];if(ie=Ge,Ee)return;Ee=requestAnimationFrame(function(){Ee=null,Z.apply(void 0,ie)})};return Ne.cancel=function(){if(!Ee)return;cancelAnimationFrame(Ee),Ee=null},Ne},L=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()},I=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[I(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 de=he.bind(null,"warn"),Se=he.bind(null,"error");function Te(){}function ce(Y,Z){return Object(b.a)({},Y,{},Z)}function be(Y,Z,ie){var Ee=Z.map(function(Ne){var ke=ce(ie,Ne.options);return Y.addEventListener(Ne.eventName,Ne.fn,ke),function(){Y.removeEventListener(Ne.eventName,Ne.fn,ke)}});return function(){Ee.forEach(function(ke){ke()})}}var ye=!0,ue="Invariant failed";function se(Y){this.message=Y}se.prototype.toString=function(){return this.message};function $(Y,Z){if(Y)return;throw ye?new se(ue):new se(ue+": "+(Z||""))}var me=function(Y){Object(O.a)(Z,Y);function Z(){for(var Ee,Ne=arguments.length,ke=new Array(Ne),Ke=0;Ke<Ne;Ke++)ke[Ke]=arguments[Ke];return Ee=Y.call.apply(Y,[this].concat(ke))||this,Ee.callbacks=null,Ee.unbind=Te,Ee.onWindowError=function(Ge){var xt=Ee.getCallbacks();xt.isDragging()&&xt.tryAbort();var Ut=Ge.error;Ut instanceof se&&Ge.preventDefault()},Ee.getCallbacks=function(){if(!Ee.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Ee.callbacks},Ee.setCallbacks=function(Ge){Ee.callbacks=Ge},Ee}var ie=Z.prototype;return ie.componentDidMount=function(){this.unbind=be(window,[{eventName:"error",fn:this.onWindowError}])},ie.componentWillUnmount=function(){this.unbind()},ie.componentDidCatch=function(Ne){if(Ne instanceof se){this.setState({});return}throw Ne},ie.render=function(){return this.props.children(this.setCallbacks)},Z}(g.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},Oe=function(Z){return`
|
|
|
You have lifted an item in position `+ae(Z.source.index)+`
|
|
|
`},le=function(Z,ie){var Ee=Z.droppableId===ie.droppableId,Ne=ae(Z.index),ke=ae(ie.index);return Ee?`
|
|
|
You have moved the item from position `+Ne+`
|
|
|
to position `+ke+`
|
|
|
`:`
|
|
|
You have moved the item from position `+Ne+`
|
|
|
in list `+Z.droppableId+`
|
|
|
to list `+ie.droppableId+`
|
|
|
in position `+ke+`
|
|
|
`},te=function(Z,ie,Ee){var Ne=ie.droppableId===Ee.droppableId;return Ne?`
|
|
|
The item `+Z+`
|
|
|
has been combined with `+Ee.draggableId:`
|
|
|
The item `+Z+`
|
|
|
in list `+ie.droppableId+`
|
|
|
has been combined with `+Ee.draggableId+`
|
|
|
in list `+Ee.droppableId+`
|
|
|
`},Q=function(Z){var ie=Z.destination;if(ie)return le(Z.source,ie);var Ee=Z.combine;return Ee?te(Z.draggableId,Z.source,Ee):"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,Ee=Z.combine;return ie?`
|
|
|
You have dropped the item.
|
|
|
`+le(Z.source,ie)+`
|
|
|
`:Ee?`
|
|
|
You have dropped the item.
|
|
|
`+te(Z.draggableId,Z.source,Ee)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+J(Z.source)+`
|
|
|
`},_e={dragHandleUsageInstructions:re,onDragStart:Oe,onDragUpdate:Q,onDragEnd:ve},Ae={x:0,y:0},Je=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}},ut=function(Z,ie){return Z.x===ie.x&&Z.y===ie.y},ft=function(Z){return{x:Z.x!==0?-Z.x:0,y:Z.y!==0?-Z.y:0}},vt=function(Z,ie,Ee){var Ne;return Ee===void 0&&(Ee=0),Ne={},Ne[Z]=ie,Ne[Z==="x"?"y":"x"]=Ee,Ne},_t=function(Z,ie){return Math.sqrt(Math.pow(ie.x-Z.x,2)+Math.pow(ie.y-Z.y,2))},Ve=function(Z,ie){return Math.min.apply(Math,ie.map(function(Ee){return _t(Z,Ee)}))},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},qe=function(Z,ie){return ie?Bt(Z,ie.scroll.diff.displacement):Z},He=function(Z,ie,Ee){if(Ee&&Ee.increasedBy){var Ne;return Object(b.a)({},Z,(Ne={},Ne[ie.end]=Z[ie.end]+Ee.increasedBy[ie.line],Ne))}return Z},Ye=function(Z,ie){return ie&&ie.shouldClipSubject?ht(ie.pageMarginBox,Z):n(Z)},Ce=function(Y){var Z=Y.page,ie=Y.withPlaceholder,Ee=Y.axis,Ne=Y.frame,ke=qe(Z.marginBox,Ne),Ke=He(ke,Ee,ie),Ge=Ye(Ke,Ne);return{page:Z,withPlaceholder:ie,active:Ge}},Le=function(Y,Z){Y.frame||$(!1);var ie=Y.frame,Ee=tt(Z,ie.scroll.initial),Ne=ft(Ee),ke=Object(b.a)({},ie,{scroll:{initial:ie.scroll.initial,current:Z,diff:{value:Ee,displacement:Ne},max:ie.scroll.max}}),Ke=Ce({page:Y.subject.page,withPlaceholder:Y.subject.withPlaceholder,axis:Y.axis,frame:ke}),Ge=Object(b.a)({},Y,{frame:ke,subject:Ke});return Ge};function We(Y){return Number.isInteger?Number.isInteger(Y):typeof Y=="number"&&isFinite(Y)&&Math.floor(Y)===Y}function Ue(Y){return Object.values?Object.values(Y):Object.keys(Y).map(function(Z){return Y[Z]})}function ze(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 st(Y,Z){if(Y.find)return Y.find(Z);var ie=ze(Y,Z);return ie!==-1?Y[ie]:void 0}function Ct(Y){return Array.prototype.slice.call(Y)}var Wt=T(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),Qt=T(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),Kt=T(function(Y){return Ue(Y)}),Ot=T(function(Y){return Ue(Y)}),Fe=T(function(Y,Z){var ie=Ot(Z).filter(function(Ee){return Y===Ee.descriptor.droppableId}).sort(function(Ee,Ne){return Ee.descriptor.index-Ne.descriptor.index});return ie});function at(Y){return Y.at&&Y.at.type==="REORDER"?Y.at.destination:null}function it(Y){return Y.at&&Y.at.type==="COMBINE"?Y.at.combine:null}var Pe=T(function(Y,Z){return Z.filter(function(ie){return ie.descriptor.id!==Y.descriptor.id})}),Qe=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.previousImpact;if(!Ee.isCombineEnabled)return null;var Ke=at(ke);if(!Ke)return null;function Ge(sr){var gr={type:"COMBINE",combine:{draggableId:sr,droppableId:Ee.descriptor.id}};return Object(b.a)({},ke,{at:gr})}var xt=ke.displaced.all,Ut=xt.length?xt[0]:null;if(Z)return Ut?Ge(Ut):null;var Ft=Pe(ie,Ne);if(!Ut){if(!Ft.length)return null;var Tt=Ft[Ft.length-1];return Ge(Tt.descriptor.id)}var St=ze(Ft,function(sr){return sr.descriptor.id===Ut});St!==-1||$(!1);var kt=St-1;if(kt<0)return null;var mn=Ft[kt];return Ge(mn.descriptor.id)},pt=function(Y,Z){return Y.descriptor.droppableId===Z.descriptor.id},bt={point:Ae,value:0},Dt={invisible:{},visible:{},all:[]},It={displaced:Dt,displacedBy:bt,at:null},ct=function(Y,Z){return function(ie){return Y<=ie&&ie<=Z}},Nt=function(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(Ee){var Ne=Z(Ee.top)&&Z(Ee.bottom)&&ie(Ee.left)&&ie(Ee.right);if(Ne)return!0;var ke=Z(Ee.top)||Z(Ee.bottom),Ke=ie(Ee.left)||ie(Ee.right),Ge=ke&&Ke;if(Ge)return!0;var xt=Ee.top<Y.top&&Ee.bottom>Y.bottom,Ut=Ee.left<Y.left&&Ee.right>Y.right,Ft=xt&&Ut;if(Ft)return!0;var Tt=xt&&Ke||Ut&&ke;return Tt}},jt=function(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(Ee){var Ne=Z(Ee.top)&&Z(Ee.bottom)&&ie(Ee.left)&&ie(Ee.right);return Ne}},on={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},vn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Wn=function(Y){return function(Z){var ie=ct(Z.top,Z.bottom),Ee=ct(Z.left,Z.right);return function(Ne){return Y===on?ie(Ne.top)&&ie(Ne.bottom):Ee(Ne.left)&&Ee(Ne.right)}}},Kn=function(Z,ie){var Ee=ie.frame?ie.frame.scroll.diff.displacement:Ae;return Bt(Z,Ee)},Hn=function(Z,ie,Ee){return ie.subject.active?Ee(ie.subject.active)(Z):!1},fn=function(Z,ie,Ee){return Ee(ie)(Z)},lr=function(Z){var ie=Z.target,Ee=Z.destination,Ne=Z.viewport,ke=Z.withDroppableDisplacement,Ke=Z.isVisibleThroughFrameFn,Ge=ke?Kn(ie,Ee):ie;return Hn(Ge,Ee,Ke)&&fn(Ge,Ne,Ke)},Zn=function(Z){return lr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Nt}))},cr=function(Z){return lr(Object(b.a)({},Z,{isVisibleThroughFrameFn:jt}))},dr=function(Z){return lr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Wn(Z.destination.axis)}))},Dr=function(Z,ie,Ee){if(typeof Ee=="boolean")return Ee;if(!ie)return!0;var Ne=ie.invisible,ke=ie.visible;if(Ne[Z])return!1;var Ke=ke[Z];return Ke?Ke.shouldAnimate:!0};function hr(Y,Z){var ie=Y.page.marginBox,Ee={top:Z.point.y,right:0,bottom:0,left:Z.point.x};return n(i(ie,Ee))}function sn(Y){var Z=Y.afterDragging,ie=Y.destination,Ee=Y.displacedBy,Ne=Y.viewport,ke=Y.forceShouldAnimate,Ke=Y.last;return Z.reduce(function(xt,Ut){var Ft=hr(Ut,Ee),Tt=Ut.descriptor.id;xt.all.push(Tt);var St=Zn({target:Ft,destination:ie,viewport:Ne,withDroppableDisplacement:!0});if(!St)return xt.invisible[Ut.descriptor.id]=!0,xt;var kt=Dr(Tt,Ke,ke),mn={draggableId:Tt,shouldAnimate:kt};return xt.visible[Tt]=mn,xt},{all:[],visible:{},invisible:{}})}function en(Y,Z){if(!Y.length)return 0;var ie=Y[Y.length-1].descriptor.index;return Z.inHomeList?ie:ie+1}function On(Y){var Z=Y.insideDestination,ie=Y.inHomeList,Ee=Y.displacedBy,Ne=Y.destination,ke=en(Z,{inHomeList:ie});return{displaced:Dt,displacedBy:Ee,at:{type:"REORDER",destination:{droppableId:Ne.descriptor.id,index:ke}}}}function Fr(Y){var Z=Y.draggable,ie=Y.insideDestination,Ee=Y.destination,Ne=Y.viewport,ke=Y.displacedBy,Ke=Y.last,Ge=Y.index,xt=Y.forceShouldAnimate,Ut=pt(Z,Ee);if(Ge==null)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:Ee});var Ft=st(ie,function(sr){return sr.descriptor.index===Ge});if(!Ft)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:Ee});var Tt=Pe(Z,ie),St=ie.indexOf(Ft),kt=Tt.slice(St),mn=sn({afterDragging:kt,destination:Ee,displacedBy:ke,last:Ke,viewport:Ne.frame,forceShouldAnimate:xt});return{displaced:mn,displacedBy:ke,at:{type:"REORDER",destination:{droppableId:Ee.descriptor.id,index:Ge}}}}function Or(Y,Z){return Boolean(Z.effected[Y])}var xr=function(Y){var Z=Y.isMovingForward,ie=Y.destination,Ee=Y.draggables,Ne=Y.combine,ke=Y.afterCritical;if(!ie.isCombineEnabled)return null;var Ke=Ne.draggableId,Ge=Ee[Ke],xt=Ge.descriptor.index,Ut=Or(Ke,ke);return Ut?Z?xt:xt-1:Z?xt+1:xt},fr=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,Ee=Y.insideDestination,Ne=Y.location;if(!Ee.length)return null;var ke=Ne.index,Ke=Z?ke+1:ke-1,Ge=Ee[0].descriptor.index,xt=Ee[Ee.length-1].descriptor.index,Ut=ie?xt:xt+1;return Ke<Ge||Ke>Ut?null:Ke},pe=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,Ee=Y.draggable,Ne=Y.draggables,ke=Y.destination,Ke=Y.insideDestination,Ge=Y.previousImpact,xt=Y.viewport,Ut=Y.afterCritical,Ft=Ge.at;if(Ft||$(!1),Ft.type==="REORDER"){var Tt=fr({isMovingForward:Z,isInHomeList:ie,location:Ft.destination,insideDestination:Ke});return Tt==null?null:Fr({draggable:Ee,insideDestination:Ke,destination:ke,viewport:xt,last:Ge.displaced,displacedBy:Ge.displacedBy,index:Tt})}var St=xr({isMovingForward:Z,destination:ke,displaced:Ge.displaced,draggables:Ne,combine:Ft.combine,afterCritical:Ut});return St==null?null:Fr({draggable:Ee,insideDestination:Ke,destination:ke,viewport:xt,last:Ge.displaced,displacedBy:Ge.displacedBy,index:St})},X=function(Y){var Z=Y.displaced,ie=Y.afterCritical,Ee=Y.combineWith,Ne=Y.displacedBy,ke=Boolean(Z.visible[Ee]||Z.invisible[Ee]);return Or(Ee,ie)?ke?Ae:ft(Ne.point):ke?Ne.point:Ae},q=function(Y){var Z=Y.afterCritical,ie=Y.impact,Ee=Y.draggables,Ne=it(ie);Ne||$(!1);var ke=Ne.draggableId,Ke=Ee[ke].page.borderBox.center,Ge=X({displaced:ie.displaced,afterCritical:Z,combineWith:ke,displacedBy:ie.displacedBy});return Je(Ke,Ge)},oe=function(Z,ie){return ie.margin[Z.start]+ie.borderBox[Z.size]/2},De=function(Z,ie){return ie.margin[Z.end]+ie.borderBox[Z.size]/2},fe=function(Z,ie,Ee){return ie[Z.crossAxisStart]+Ee.margin[Z.crossAxisStart]+Ee.borderBox[Z.crossAxisSize]/2},ot=function(Z){var ie=Z.axis,Ee=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,Ee.marginBox[ie.end]+oe(ie,Ne),fe(ie,Ee.marginBox,Ne))},Zt=function(Z){var ie=Z.axis,Ee=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,Ee.marginBox[ie.start]-De(ie,Ne),fe(ie,Ee.marginBox,Ne))},Mn=function(Z){var ie=Z.axis,Ee=Z.moveInto,Ne=Z.isMoving;return vt(ie.line,Ee.contentBox[ie.start]+oe(ie,Ne),fe(ie,Ee.contentBox,Ne))},Vn=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.draggables,Ne=Y.droppable,ke=Y.afterCritical,Ke=Fe(Ne.descriptor.id,Ee),Ge=ie.page,xt=Ne.axis;if(!Ke.length)return Mn({axis:xt,moveInto:Ne.page,isMoving:Ge});var Ut=Z.displaced,Ft=Z.displacedBy,Tt=Ut.all[0];if(Tt){var St=Ee[Tt];if(Or(Tt,ke))return Zt({axis:xt,moveRelativeTo:St.page,isMoving:Ge});var kt=w(St.page,Ft.point);return Zt({axis:xt,moveRelativeTo:kt,isMoving:Ge})}var mn=Ke[Ke.length-1];if(mn.descriptor.id===ie.descriptor.id)return Ge.borderBox.center;if(Or(mn.descriptor.id,ke)){var sr=w(mn.page,ft(ke.displacedBy.point));return ot({axis:xt,moveRelativeTo:sr,isMoving:Ge})}return ot({axis:xt,moveRelativeTo:mn.page,isMoving:Ge})},qt=function(Y,Z){var ie=Y.frame;return ie?Je(Z,ie.scroll.diff.displacement):Z},En=function(Z){var ie=Z.impact,Ee=Z.draggable,Ne=Z.droppable,ke=Z.draggables,Ke=Z.afterCritical,Ge=Ee.page.borderBox.center,xt=ie.at;return Ne&&xt?xt.type==="REORDER"?Vn({impact:ie,draggable:Ee,draggables:ke,droppable:Ne,afterCritical:Ke}):q({impact:ie,draggables:ke,afterCritical:Ke}):Ge},un=function(Y){var Z=En(Y),ie=Y.droppable,Ee=ie?qt(ie,Z):Z;return Ee},jr=function(Y,Z){var ie=tt(Z,Y.scroll.initial),Ee=ft(ie),Ne=n({top:Z.y,bottom:Z.y+Y.frame.height,left:Z.x,right:Z.x+Y.frame.width}),ke={frame:Ne,scroll:{initial:Y.scroll.initial,max:Y.scroll.max,current:Z,diff:{value:ie,displacement:Ee}}};return ke};function aa(Y,Z){return Y.map(function(ie){return Z[ie]})}function oa(Y,Z){for(var ie=0;ie<Z.length;ie++){var Ee=Z[ie].visible[Y];if(Ee)return Ee}return null}var er=function(Y){var Z=Y.impact,ie=Y.viewport,Ee=Y.destination,Ne=Y.draggables,ke=Y.maxScrollChange,Ke=jr(ie,Je(ie.scroll.current,ke)),Ge=Ee.frame?Le(Ee,Je(Ee.frame.scroll.current,ke)):Ee,xt=Z.displaced,Ut=sn({afterDragging:aa(xt.all,Ne),destination:Ee,displacedBy:Z.displacedBy,viewport:Ke.frame,last:xt,forceShouldAnimate:!1}),Ft=sn({afterDragging:aa(xt.all,Ne),destination:Ge,displacedBy:Z.displacedBy,viewport:ie.frame,last:xt,forceShouldAnimate:!1}),Tt={},St={},kt=[xt,Ut,Ft];xt.all.forEach(function(sr){var gr=oa(sr,kt);if(gr){St[sr]=gr;return}Tt[sr]=!0});var mn=Object(b.a)({},Z,{displaced:{all:xt.all,invisible:Tt,visible:St}});return mn},Ba=function(Y,Z){return Je(Y.scroll.diff.displacement,Z)},Ea=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.draggable,Ee=Y.viewport,Ne=Ba(Ee,Z),ke=tt(Ne,ie.page.borderBox.center);return Je(ie.client.borderBox.center,ke)},ca=function(Y){var Z=Y.draggable,ie=Y.destination,Ee=Y.newPageBorderBoxCenter,Ne=Y.viewport,ke=Y.withDroppableDisplacement,Ke=Y.onlyOnMainAxis,Ge=Ke===void 0?!1:Ke,xt=tt(Ee,Z.page.borderBox.center),Ut=Bt(Z.page.borderBox,xt),Ft={target:Ut,destination:ie,withDroppableDisplacement:ke,viewport:Ne};return Ge?dr(Ft):cr(Ft)},Ka=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,Ee=Y.destination,Ne=Y.draggables,ke=Y.previousImpact,Ke=Y.viewport,Ge=Y.previousPageBorderBoxCenter,xt=Y.previousClientSelection,Ut=Y.afterCritical;if(!Ee.isEnabled)return null;var Ft=Fe(Ee.descriptor.id,Ne),Tt=pt(ie,Ee),St=Qe({isMovingForward:Z,draggable:ie,destination:Ee,insideDestination:Ft,previousImpact:ke})||pe({isMovingForward:Z,isInHomeList:Tt,draggable:ie,draggables:Ne,destination:Ee,insideDestination:Ft,previousImpact:ke,viewport:Ke,afterCritical:Ut});if(!St)return null;var kt=un({impact:St,draggable:ie,droppable:Ee,draggables:Ne,afterCritical:Ut}),mn=ca({draggable:ie,destination:Ee,newPageBorderBoxCenter:kt,viewport:Ke.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(mn){var sr=Ea({pageBorderBoxCenter:kt,draggable:ie,viewport:Ke});return{clientSelection:sr,impact:St,scrollJumpRequest:null}}var gr=tt(kt,Ge),Nr=er({impact:St,viewport:Ke,destination:Ee,draggables:Ne,maxScrollChange:gr});return{clientSelection:xt,impact:Nr,scrollJumpRequest:gr}},Ta=function(Z){var ie=Z.subject.active;return ie||$(!1),ie},Ja=function(Y){var Z=Y.isMovingForward,ie=Y.pageBorderBoxCenter,Ee=Y.source,Ne=Y.droppables,ke=Y.viewport,Ke=Ee.subject.active;if(!Ke)return null;var Ge=Ee.axis,xt=ct(Ke[Ge.start],Ke[Ge.end]),Ut=Kt(Ne).filter(function(Tt){return Tt!==Ee}).filter(function(Tt){return Tt.isEnabled}).filter(function(Tt){return Boolean(Tt.subject.active)}).filter(function(Tt){return Nt(ke.frame)(Ta(Tt))}).filter(function(Tt){var St=Ta(Tt);return Z?Ke[Ge.crossAxisEnd]<St[Ge.crossAxisEnd]:St[Ge.crossAxisStart]<Ke[Ge.crossAxisStart]}).filter(function(Tt){var St=Ta(Tt),kt=ct(St[Ge.start],St[Ge.end]);return xt(St[Ge.start])||xt(St[Ge.end])||kt(Ke[Ge.start])||kt(Ke[Ge.end])}).sort(function(Tt,St){var kt=Ta(Tt)[Ge.crossAxisStart],mn=Ta(St)[Ge.crossAxisStart];return Z?kt-mn:mn-kt}).filter(function(Tt,St,kt){return Ta(Tt)[Ge.crossAxisStart]===Ta(kt[0])[Ge.crossAxisStart]});if(!Ut.length)return null;if(Ut.length===1)return Ut[0];var Ft=Ut.filter(function(Tt){var St=ct(Ta(Tt)[Ge.start],Ta(Tt)[Ge.end]);return St(ie[Ge.line])});return Ft.length===1?Ft[0]:Ft.length>1?Ft.sort(function(Tt,St){return Ta(Tt)[Ge.start]-Ta(St)[Ge.start]})[0]:Ut.sort(function(Tt,St){var kt=Ve(ie,Et(Ta(Tt))),mn=Ve(ie,Et(Ta(St)));return kt!==mn?kt-mn:Ta(Tt)[Ge.start]-Ta(St)[Ge.start]})[0]},Ua=function(Z,ie){var Ee=Z.page.borderBox.center;return Or(Z.descriptor.id,ie)?tt(Ee,ie.displacedBy.point):Ee},li=function(Z,ie){var Ee=Z.page.borderBox;return Or(Z.descriptor.id,ie)?Bt(Ee,ft(ie.displacedBy.point)):Ee},oi=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.viewport,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.afterCritical,Ke=Ne.filter(function(Ge){return cr({target:li(Ge,ke),destination:Ee,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(Ge,xt){var Ut=_t(Z,qt(Ee,Ua(Ge,ke))),Ft=_t(Z,qt(Ee,Ua(xt,ke)));return Ut<Ft?-1:Ft<Ut?1:Ge.descriptor.index-xt.descriptor.index});return Ke[0]||null},fa=T(function(Z,ie){var Ee=ie[Z.line];return{value:Ee,point:vt(Z.line,Ee)}}),ma=function(Z,ie,Ee){var Ne=Z.axis;if(Z.descriptor.mode==="virtual")return vt(Ne.line,ie[Ne.line]);var ke=Z.subject.page.contentBox[Ne.size],Ke=Fe(Z.descriptor.id,Ee),Ge=Ke.reduce(function(Ft,Tt){return Ft+Tt.client.marginBox[Ne.size]},0),xt=Ge+ie[Ne.line],Ut=xt-ke;return Ut<=0?null:vt(Ne.line,Ut)},la=function(Z,ie){return Object(b.a)({},Z,{scroll:Object(b.a)({},Z.scroll,{max:ie})})},xe=function(Z,ie,Ee){var Ne=Z.frame;pt(ie,Z)&&$(!1),Z.subject.withPlaceholder&&$(!1);var ke=fa(Z.axis,ie.displaceBy).point,Ke=ma(Z,ke,Ee),Ge={placeholderSize:ke,increasedBy:Ke,oldFrameMaxScroll:Z.frame?Z.frame.scroll.max:null};if(!Ne){var xt=Ce({page:Z.subject.page,withPlaceholder:Ge,axis:Z.axis,frame:Z.frame});return Object(b.a)({},Z,{subject:xt})}var Ut=Ke?Je(Ne.scroll.max,Ke):Ne.scroll.max,Ft=la(Ne,Ut),Tt=Ce({page:Z.subject.page,withPlaceholder:Ge,axis:Z.axis,frame:Ft});return Object(b.a)({},Z,{subject:Tt,frame:Ft})},lt=function(Z){var ie=Z.subject.withPlaceholder;ie||$(!1);var Ee=Z.frame;if(!Ee){var Ne=Ce({page:Z.subject.page,axis:Z.axis,frame:null,withPlaceholder:null});return Object(b.a)({},Z,{subject:Ne})}var ke=ie.oldFrameMaxScroll;ke||$(!1);var Ke=la(Ee,ke),Ge=Ce({page:Z.subject.page,axis:Z.axis,frame:Ke,withPlaceholder:null});return Object(b.a)({},Z,{subject:Ge,frame:Ke})},Rt=function(Y){var Z=Y.previousPageBorderBoxCenter,ie=Y.moveRelativeTo,Ee=Y.insideDestination,Ne=Y.draggable,ke=Y.draggables,Ke=Y.destination,Ge=Y.viewport,xt=Y.afterCritical;if(!ie){if(Ee.length)return null;var Ut={displaced:Dt,displacedBy:bt,at:{type:"REORDER",destination:{droppableId:Ke.descriptor.id,index:0}}},Ft=un({impact:Ut,draggable:Ne,droppable:Ke,draggables:ke,afterCritical:xt}),Tt=pt(Ne,Ke)?Ke:xe(Ke,Ne,ke),St=ca({draggable:Ne,destination:Tt,newPageBorderBoxCenter:Ft,viewport:Ge.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return St?Ut:null}var kt=Boolean(Z[Ke.axis.line]<=ie.page.borderBox.center[Ke.axis.line]),mn=function(){var gr=ie.descriptor.index;return ie.descriptor.id===Ne.descriptor.id||kt?gr:gr+1}(),sr=fa(Ke.axis,Ne.displaceBy);return Fr({draggable:Ne,insideDestination:Ee,destination:Ke,viewport:Ge,displacedBy:sr,last:Dt,index:mn})},wt=function(Y){var Z=Y.isMovingForward,ie=Y.previousPageBorderBoxCenter,Ee=Y.draggable,Ne=Y.isOver,ke=Y.draggables,Ke=Y.droppables,Ge=Y.viewport,xt=Y.afterCritical,Ut=Ja({isMovingForward:Z,pageBorderBoxCenter:ie,source:Ne,droppables:Ke,viewport:Ge});if(!Ut)return null;var Ft=Fe(Ut.descriptor.id,ke),Tt=oi({pageBorderBoxCenter:ie,viewport:Ge,destination:Ut,insideDestination:Ft,afterCritical:xt}),St=Rt({previousPageBorderBoxCenter:ie,destination:Ut,draggable:Ee,draggables:ke,moveRelativeTo:Tt,insideDestination:Ft,viewport:Ge,afterCritical:xt});if(!St)return null;var kt=un({impact:St,draggable:Ee,droppable:Ut,draggables:ke,afterCritical:xt}),mn=Ea({pageBorderBoxCenter:kt,draggable:Ee,viewport:Ge});return{clientSelection:mn,impact:St,scrollJumpRequest:null}},Ht=function(Y){var Z=Y.at;return Z?Z.type==="REORDER"?Z.destination.droppableId:Z.combine.droppableId:null},Lt=function(Z,ie){var Ee=Ht(Z);return Ee?ie[Ee]:null},Xt=function(Y){var Z=Y.state,ie=Y.type,Ee=Lt(Z.impact,Z.dimensions.droppables),Ne=Boolean(Ee),ke=Z.dimensions.droppables[Z.critical.droppable.id],Ke=Ee||ke,Ge=Ke.axis.direction,xt=Ge==="vertical"&&(ie==="MOVE_UP"||ie==="MOVE_DOWN")||Ge==="horizontal"&&(ie==="MOVE_LEFT"||ie==="MOVE_RIGHT");if(xt&&!Ne)return null;var Ut=ie==="MOVE_DOWN"||ie==="MOVE_RIGHT",Ft=Z.dimensions.draggables[Z.critical.draggable.id],Tt=Z.current.page.borderBoxCenter,St=Z.dimensions,kt=St.draggables,mn=St.droppables;return xt?Ka({isMovingForward:Ut,previousPageBorderBoxCenter:Tt,draggable:Ft,destination:Ke,draggables:kt,viewport:Z.viewport,previousClientSelection:Z.current.client.selection,previousImpact:Z.impact,afterCritical:Z.afterCritical}):wt({isMovingForward:Ut,previousPageBorderBoxCenter:Tt,draggable:Ft,isOver:Ke,draggables:kt,droppables:mn,viewport:Z.viewport,afterCritical:Z.afterCritical})};function rn(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(Ne){return Z(Ne.y)&&ie(Ne.x)}}function gn(Y,Z){return Y.left<Z.right&&Y.right>Z.left&&Y.top<Z.bottom&&Y.bottom>Z.top}function Nn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,Ee=Y.candidates,Ne=ie.page.borderBox.center,ke=Ee.map(function(Ke){var Ge=Ke.axis,xt=vt(Ke.axis.line,Z.center[Ge.line],Ke.page.borderBox.center[Ge.crossAxisLine]);return{id:Ke.descriptor.id,distance:_t(Ne,xt)}}).sort(function(Ke,Ge){return Ge.distance-Ke.distance});return ke[0]?ke[0].id:null}function An(Y){var Z=Y.pageBorderBox,ie=Y.draggable,Ee=Y.droppables,Ne=Kt(Ee).filter(function(ke){if(!ke.isEnabled)return!1;var Ke=ke.subject.active;if(!Ke)return!1;if(!gn(Z,Ke))return!1;if(xn(Ke)(Z.center))return!0;var Ge=ke.axis,xt=Ke.center[Ge.crossAxisLine],Ut=Z[Ge.crossAxisStart],Ft=Z[Ge.crossAxisEnd],Tt=ct(Ke[Ge.crossAxisStart],Ke[Ge.crossAxisEnd]),St=Tt(Ut),kt=Tt(Ft);return!St&&!kt?!0:St?Ut<xt:Ft>xt});return Ne.length?Ne.length===1?Ne[0].descriptor.id:Nn({pageBorderBox:Z,draggable:ie,candidates:Ne}):null}var an=function(Z,ie){return n(Bt(Z,ie))},Pn=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 kn(Y){var Z=Y.draggable,ie=Y.closest,Ee=Y.inHomeList;return ie?Ee&&ie.descriptor.index>Z.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var Rn=function(Y){var Z=Y.pageBorderBoxWithDroppableScroll,ie=Y.draggable,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.last,Ke=Y.viewport,Ge=Y.afterCritical,xt=Ee.axis,Ut=fa(Ee.axis,ie.displaceBy),Ft=Ut.value,Tt=Z[xt.start],St=Z[xt.end],kt=Pe(ie,Ne),mn=st(kt,function(gr){var Nr=gr.descriptor.id,Gr=gr.page.borderBox.center[xt.line],ra=Or(Nr,Ge),Hr=yn({displaced:ke,id:Nr});return ra?Hr?St<=Gr:Tt<Gr-Ft:Hr?St<=Gr+Ft:Tt<Gr}),sr=kn({draggable:ie,closest:mn,inHomeList:pt(ie,Ee)});return Fr({draggable:ie,insideDestination:Ne,destination:Ee,viewport:Ke,last:ke,displacedBy:Ut,index:sr})},Yn=4,mr=function(Y){var Z=Y.draggable,ie=Y.pageBorderBoxWithDroppableScroll,Ee=Y.previousImpact,Ne=Y.destination,ke=Y.insideDestination,Ke=Y.afterCritical;if(!Ne.isCombineEnabled)return null;var Ge=Ne.axis,xt=fa(Ne.axis,Z.displaceBy),Ut=xt.value,Ft=ie[Ge.start],Tt=ie[Ge.end],St=Pe(Z,ke),kt=st(St,function(sr){var gr=sr.descriptor.id,Nr=sr.page.borderBox,Gr=Nr[Ge.size],ra=Gr/Yn,Hr=Or(gr,Ke),Ia=yn({displaced:Ee.displaced,id:gr});return Hr?Ia?Tt>Nr[Ge.start]+ra&&Tt<Nr[Ge.end]-ra:Ft>Nr[Ge.start]-Ut+ra&&Ft<Nr[Ge.end]-Ut-ra:Ia?Tt>Nr[Ge.start]+Ut+ra&&Tt<Nr[Ge.end]+Ut-ra:Ft>Nr[Ge.start]+ra&&Ft<Nr[Ge.end]-ra});if(!kt)return null;var mn={displacedBy:xt,displaced:Ee.displaced,at:{type:"COMBINE",combine:{draggableId:kt.descriptor.id,droppableId:Ne.descriptor.id}}};return mn},Br=function(Y){var Z=Y.pageOffset,ie=Y.draggable,Ee=Y.draggables,Ne=Y.droppables,ke=Y.previousImpact,Ke=Y.viewport,Ge=Y.afterCritical,xt=an(ie.page.borderBox,Z),Ut=An({pageBorderBox:xt,draggable:ie,droppables:Ne});if(!Ut)return It;var Ft=Ne[Ut],Tt=Fe(Ft.descriptor.id,Ee),St=Pn(Ft,xt);return mr({pageBorderBoxWithDroppableScroll:St,draggable:ie,previousImpact:ke,destination:Ft,insideDestination:Tt,afterCritical:Ge})||Rn({pageBorderBoxWithDroppableScroll:St,draggable:ie,destination:Ft,insideDestination:Tt,last:ke.displaced,viewport:Ke,afterCritical:Ge})},Sn=function(Y,Z){var ie;return Object(b.a)({},Y,(ie={},ie[Z.descriptor.id]=Z,ie))},Yt=function(Z){var ie=Z.previousImpact,Ee=Z.impact,Ne=Z.droppables,ke=Ht(ie),Ke=Ht(Ee);if(!ke)return Ne;if(ke===Ke)return Ne;var Ge=Ne[ke];if(!Ge.subject.withPlaceholder)return Ne;var xt=lt(Ge);return Sn(Ne,xt)},hn=function(Y){var Z=Y.draggable,ie=Y.draggables,Ee=Y.droppables,Ne=Y.previousImpact,ke=Y.impact,Ke=Yt({previousImpact:Ne,impact:ke,droppables:Ee}),Ge=Ht(ke);if(!Ge)return Ke;var xt=Ee[Ge];if(pt(Z,xt))return Ke;if(xt.subject.withPlaceholder)return Ke;var Ut=xe(xt,Z,ie);return Sn(Ke,Ut)},Dn=function(Y){var Z=Y.state,ie=Y.clientSelection,Ee=Y.dimensions,Ne=Y.viewport,ke=Y.impact,Ke=Y.scrollJumpRequest,Ge=Ne||Z.viewport,xt=Ee||Z.dimensions,Ut=ie||Z.current.client.selection,Ft=tt(Ut,Z.initial.client.selection),Tt={offset:Ft,selection:Ut,borderBoxCenter:Je(Z.initial.client.borderBoxCenter,Ft)},St={selection:Je(Tt.selection,Ge.scroll.current),borderBoxCenter:Je(Tt.borderBoxCenter,Ge.scroll.current),offset:Je(Tt.offset,Ge.scroll.diff.value)},kt={client:Tt,page:St};if(Z.phase==="COLLECTING")return Object(b.a)({phase:"COLLECTING"},Z,{dimensions:xt,viewport:Ge,current:kt});var mn=xt.draggables[Z.critical.draggable.id],sr=ke||Br({pageOffset:St.offset,draggable:mn,draggables:xt.draggables,droppables:xt.droppables,previousImpact:Z.impact,viewport:Ge,afterCritical:Z.afterCritical}),gr=hn({draggable:mn,impact:sr,previousImpact:Z.impact,draggables:xt.draggables,droppables:xt.droppables}),Nr=Object(b.a)({},Z,{current:kt,dimensions:{draggables:xt.draggables,droppables:gr},impact:sr,viewport:Ge,scrollJumpRequest:Ke||null,forceShouldAnimate:Ke?!1:null});return Nr};function tn(Y,Z){return Y.map(function(ie){return Z[ie]})}var wn=function(Y){var Z=Y.impact,ie=Y.viewport,Ee=Y.draggables,Ne=Y.destination,ke=Y.forceShouldAnimate,Ke=Z.displaced,Ge=tn(Ke.all,Ee),xt=sn({afterDragging:Ge,destination:Ne,displacedBy:Z.displacedBy,viewport:ie.frame,forceShouldAnimate:ke,last:Ke});return Object(b.a)({},Z,{displaced:xt})},_n=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.droppable,Ne=Y.draggables,ke=Y.viewport,Ke=Y.afterCritical,Ge=un({impact:Z,draggable:ie,draggables:Ne,droppable:Ee,afterCritical:Ke});return Ea({pageBorderBoxCenter:Ge,draggable:ie,viewport:ke})},In=function(Y){var Z=Y.state,ie=Y.dimensions,Ee=Y.viewport;Z.movementMode==="SNAP"||$(!1);var Ne=Z.impact,ke=Ee||Z.viewport,Ke=ie||Z.dimensions,Ge=Ke.draggables,xt=Ke.droppables,Ut=Ge[Z.critical.draggable.id],Ft=Ht(Ne);Ft||$(!1);var Tt=xt[Ft],St=wn({impact:Ne,viewport:ke,destination:Tt,draggables:Ge}),kt=_n({impact:St,draggable:Ut,droppable:Tt,draggables:Ge,viewport:ke,afterCritical:Z.afterCritical});return Dn({impact:St,clientSelection:kt,state:Z,dimensions:Ke,viewport:ke})},Un=function(Y){return{index:Y.index,droppableId:Y.droppableId}},ar=function(Y){var Z=Y.draggable,ie=Y.home,Ee=Y.draggables,Ne=Y.viewport,ke=fa(ie.axis,Z.displaceBy),Ke=Fe(ie.descriptor.id,Ee),Ge=Ke.indexOf(Z);Ge!==-1||$(!1);var xt=Ke.slice(Ge+1),Ut=xt.reduce(function(kt,mn){return kt[mn.descriptor.id]=!0,kt},{}),Ft={inVirtualList:ie.descriptor.mode==="virtual",displacedBy:ke,effected:Ut},Tt=sn({afterDragging:xt,destination:ie,displacedBy:ke,last:null,viewport:Ne.frame,forceShouldAnimate:!1}),St={displaced:Tt,displacedBy:ke,at:{type:"REORDER",destination:Un(Z.descriptor)}};return{impact:St,afterCritical:Ft}},qn=function(Y,Z){return{draggables:Y.draggables,droppables:Sn(Y.droppables,Z)}},Rr=function(Z){},Ir=function(Z){},Jn=function(Y){var Z=Y.draggable,ie=Y.offset,Ee=Y.initialWindowScroll,Ne=w(Z.client,ie),ke=E(Ne,Ee),Ke=Object(b.a)({},Z,{placeholder:Object(b.a)({},Z.placeholder,{client:Ne}),client:Ne,page:ke});return Ke},Ar=function(Y){var Z=Y.frame;return Z||$(!1),Z},vr=function(Y){var Z=Y.additions,ie=Y.updatedDroppables,Ee=Y.viewport,Ne=Ee.scroll.diff.value;return Z.map(function(ke){var Ke=ke.descriptor.droppableId,Ge=ie[Ke],xt=Ar(Ge),Ut=xt.scroll.diff.value,Ft=Je(Ne,Ut),Tt=Jn({draggable:ke,offset:Ft,initialWindowScroll:Ee.scroll.initial});return Tt})},zr=function(Y){var Z=Y.state,ie=Y.published;Rr();var Ee=ie.modified.map(function(ra){var Hr=Z.dimensions.droppables[ra.droppableId],Ia=Le(Hr,ra.scroll);return Ia}),Ne=Object(b.a)({},Z.dimensions.droppables,{},Wt(Ee)),ke=Qt(vr({additions:ie.additions,updatedDroppables:Ne,viewport:Z.viewport})),Ke=Object(b.a)({},Z.dimensions.draggables,{},ke);ie.removals.forEach(function(ra){delete Ke[ra]});var Ge={droppables:Ne,draggables:Ke},xt=Ht(Z.impact),Ut=xt?Ge.droppables[xt]:null,Ft=Ge.draggables[Z.critical.draggable.id],Tt=Ge.droppables[Z.critical.droppable.id],St=ar({draggable:Ft,home:Tt,draggables:Ke,viewport:Z.viewport}),kt=St.impact,mn=St.afterCritical,sr=Ut&&Ut.isCombineEnabled?Z.impact:kt,gr=Br({pageOffset:Z.current.page.offset,draggable:Ge.draggables[Z.critical.draggable.id],draggables:Ge.draggables,droppables:Ge.droppables,previousImpact:sr,viewport:Z.viewport,afterCritical:mn});Ir();var Nr=Object(b.a)({phase:"DRAGGING"},Z,{phase:"DRAGGING",impact:gr,onLiftImpact:kt,dimensions:Ge,afterCritical:mn,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,Ee){var Ne=qn(Z.dimensions,ie);return!Lr(Z)||Ee?Dn({state:Z,dimensions:Ne}):In({state:Z,dimensions:Ne})};function nr(Y){return Y.isDragging&&Y.movementMode==="SNAP"?Object(b.a)({phase:"DRAGGING"},Y,{scrollJumpRequest:null}):Y}var Gt={phase:"IDLE",completed:null,shouldFlush:!1},$t=function(Y,Z){if(Y===void 0&&(Y=Gt),Z.type==="FLUSH")return Object(b.a)({},Gt,{shouldFlush:!0});if(Z.type==="INITIAL_PUBLISH"){Y.phase==="IDLE"||$(!1);var ie=Z.payload,Ee=ie.critical,Ne=ie.clientSelection,ke=ie.viewport,Ke=ie.dimensions,Ge=ie.movementMode,xt=Ke.draggables[Ee.draggable.id],Ut=Ke.droppables[Ee.droppable.id],Ft={selection:Ne,borderBoxCenter:xt.client.borderBox.center,offset:Ae},Tt={client:Ft,page:{selection:Je(Ft.selection,ke.scroll.initial),borderBoxCenter:Je(Ft.selection,ke.scroll.initial),offset:Je(Ft.selection,ke.scroll.diff.value)}},St=Kt(Ke.droppables).every(function(ea){return!ea.isFixedOnPage}),kt=ar({draggable:xt,home:Ut,draggables:Ke.draggables,viewport:ke}),mn=kt.impact,sr=kt.afterCritical,gr={phase:"DRAGGING",isDragging:!0,critical:Ee,movementMode:Ge,dimensions:Ke,initial:Tt,current:Tt,isWindowScrollAllowed:St,impact:mn,afterCritical:sr,onLiftImpact:mn,viewport:ke,scrollJumpRequest:null,forceShouldAnimate:null};return gr}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;rn(Y)||$(!1);var Gr=Z.payload.client;return ut(Gr,Y.current.client.selection)?Y:Dn({state:Y,clientSelection:Gr,impact:Lr(Y)?Y.impact:null})}if(Z.type==="UPDATE_DROPPABLE_SCROLL"){if(Y.phase==="DROP_PENDING")return nr(Y);if(Y.phase==="COLLECTING")return nr(Y);rn(Y)||$(!1);var ra=Z.payload,Hr=ra.id,Ia=ra.newScroll,Ra=Y.dimensions.droppables[Hr];if(!Ra)return Y;var za=Le(Ra,Ia);return $r(Y,za,!1)}if(Z.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(Y.phase==="DROP_PENDING")return Y;rn(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;rn(Y)||$(!1);var G=Z.payload,ne=G.id,ge=G.isCombineEnabled,we=Y.dimensions.droppables[ne];we||$(!1),we.isCombineEnabled!==ge||$(!1);var Re=Object(b.a)({},we,{isCombineEnabled:ge});return $r(Y,Re,!0)}if(Z.type==="MOVE_BY_WINDOW_SCROLL"){if(Y.phase==="DROP_PENDING"||Y.phase==="DROP_ANIMATING")return Y;rn(Y)||$(!1),Y.isWindowScrollAllowed||$(!1);var Be=Z.payload.newScroll;if(ut(Y.viewport.scroll.current,Be))return nr(Y);var gt=jr(Y.viewport,Be);return Lr(Y)?In({state:Y,viewport:gt}):Dn({state:Y,viewport:gt})}if(Z.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!rn(Y))return Y;var At=Z.payload.maxScroll;if(ut(At,Y.viewport.scroll.max))return Y;var nn=Object(b.a)({},Y.viewport,{scroll:Object(b.a)({},Y.viewport.scroll,{max:At})});return Object(b.a)({phase:"DRAGGING"},Y,{viewport:nn})}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 zt=Xt({state:Y,type:Z.type});return zt?Dn({state:Y,impact:zt.impact,clientSelection:zt.clientSelection,scrollJumpRequest:zt.scrollJumpRequest}):Y}if(Z.type==="DROP_PENDING"){var Tn=Z.payload.reason;Y.phase==="COLLECTING"||$(!1);var Bn=Object(b.a)({phase:"DROP_PENDING"},Y,{phase:"DROP_PENDING",isWaiting:!0,reason:Tn});return Bn}if(Z.type==="DROP_ANIMATE"){var Qn=Z.payload,yr=Qn.completed,kr=Qn.dropDuration,Er=Qn.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}},Xn=function(Z){return{type:"LIFT",payload:Z}},$n=function(Z){return{type:"INITIAL_PUBLISH",payload:Z}},Ln=function(Z){return{type:"PUBLISH_WHILE_DRAGGING",payload:Z}},rr=function(){return{type:"COLLECTION_STARTING",payload:null}},ur=function(Z){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Z}},ir=function(Z){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Z}},qr=function(Z){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Z}},or=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}},Sr=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}},Ze=function(Z){return{type:"DROP_COMPLETE",payload:Z}},dt=function(Z){return{type:"DROP",payload:Z}},yt=function(Z){return{type:"DROP_PENDING",payload:Z}},nt=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Me(Y){if(Y.length<=1)return;for(var Z=Y.map(function(Ge){return Ge.descriptor.index}),ie={},Ee=1;Ee<Z.length;Ee++){var Ne=Z[Ee],ke=Z[Ee-1];Ne!==ke+1&&(ie[Ne]=!0)}if(!Object.keys(ie).length)return;var Ke=Z.map(function(Ge){var xt=Boolean(ie[Ge]);return xt?"[\u{1F525}"+Ge+"]":""+Ge}).join(", ")}function Xe(Y,Z){if(!1)var ie}var Ie=function(Y){return function(Z){var ie=Z.getState,Ee=Z.dispatch;return function(Ne){return function(ke){if(ke.type!=="LIFT"){Ne(ke);return}var Ke=ke.payload,Ge=Ke.id,xt=Ke.clientSelection,Ut=Ke.movementMode,Ft=ie();Ft.phase==="DROP_ANIMATING"&&Ee(Ze({completed:Ft.completed})),ie().phase==="IDLE"||$(!1),Ee(Oa()),Ee(Jt({draggableId:Ge,movementMode:Ut}));var Tt={shouldPublishImmediately:Ut==="SNAP"},St={draggableId:Ge,scrollOptions:Tt},kt=Y.startPublishing(St),mn=kt.critical,sr=kt.dimensions,gr=kt.viewport;Xe(mn,sr),Ee($n({critical:mn,dimensions:sr,clientSelection:xt,movementMode:Ut,viewport:gr}))}}}},et=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)}}}},$e={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},mt={opacity:{drop:0,combining:.7},scale:{drop:.75}},rt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Mt=rt.outOfTheWay+"s "+$e.outOfTheWay,Vt={fluid:"opacity "+Mt,snap:"transform "+Mt+", opacity "+Mt,drop:function(Z){var ie=Z+"s "+$e.drop;return"transform "+ie+", opacity "+ie},outOfTheWay:"transform "+Mt,placeholder:"height "+Mt+", width "+Mt+", margin "+Mt},pn=function(Z){return ut(Z,Ae)?null:"translate("+Z.x+"px, "+Z.y+"px)"},ln={moveTo:pn,drop:function(Z,ie){var Ee=pn(Z);return Ee?ie?Ee+" scale("+mt.scale.drop+")":Ee:null}},dn=rt.minDropTime,cn=rt.maxDropTime,Fn=cn-dn,Cn=1500,Ur=.6,Pr=function(Y){var Z=Y.current,ie=Y.destination,Ee=Y.reason,Ne=_t(Z,ie);if(Ne<=0)return dn;if(Ne>=Cn)return cn;var ke=Ne/Cn,Ke=dn+Fn*ke,Ge=Ee==="CANCEL"?Ke*Ur:Ke;return Number(Ge.toFixed(2))},Qr=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.dimensions,Ne=Y.viewport,ke=Y.afterCritical,Ke=Ee.draggables,Ge=Ee.droppables,xt=Ht(Z),Ut=xt?Ge[xt]:null,Ft=Ge[ie.descriptor.droppableId],Tt=_n({impact:Z,draggable:ie,draggables:Ke,afterCritical:ke,droppable:Ut||Ft,viewport:Ne}),St=tt(Tt,ie.client.borderBox.center);return St},Wr=function(Y){var Z=Y.draggables,ie=Y.reason,Ee=Y.lastImpact,Ne=Y.home,ke=Y.viewport,Ke=Y.onLiftImpact;if(!Ee.at||ie!=="DROP"){var Ge=wn({draggables:Z,impact:Ke,destination:Ne,viewport:ke,forceShouldAnimate:!0});return{impact:Ge,didDropInsideDroppable:!1}}if(Ee.at.type==="REORDER")return{impact:Ee,didDropInsideDroppable:!0};var xt=Object(b.a)({},Ee,{displaced:Dt});return{impact:xt,didDropInsideDroppable:!0}},ta=function(Y){var Z=Y.getState,ie=Y.dispatch;return function(Ee){return function(Ne){if(Ne.type!=="DROP"){Ee(Ne);return}var ke=Z(),Ke=Ne.payload.reason;if(ke.phase==="COLLECTING"){ie(yt({reason:Ke}));return}if(ke.phase==="IDLE")return;var Ge=ke.phase==="DROP_PENDING"&&ke.isWaiting;Ge&&$(!1),ke.phase==="DRAGGING"||ke.phase==="DROP_PENDING"||$(!1);var xt=ke.critical,Ut=ke.dimensions,Ft=Ut.draggables[ke.critical.draggable.id],Tt=Wr({reason:Ke,lastImpact:ke.impact,afterCritical:ke.afterCritical,onLiftImpact:ke.onLiftImpact,home:ke.dimensions.droppables[ke.critical.droppable.id],viewport:ke.viewport,draggables:ke.dimensions.draggables}),St=Tt.impact,kt=Tt.didDropInsideDroppable,mn=kt?at(St):null,sr=kt?it(St):null,gr={index:xt.draggable.index,droppableId:xt.droppable.id},Nr={draggableId:Ft.descriptor.id,type:Ft.descriptor.type,source:gr,reason:Ke,mode:ke.movementMode,destination:mn,combine:sr},Gr=Qr({impact:St,draggable:Ft,dimensions:Ut,viewport:ke.viewport,afterCritical:ke.afterCritical}),ra={critical:ke.critical,afterCritical:ke.afterCritical,result:Nr,impact:St},Hr=!ut(ke.current.client.offset,Gr)||Boolean(Nr.combine);if(!Hr){ie(Ze({completed:ra}));return}var Ia=Pr({current:ke.current.client.offset,destination:Gr,reason:Ke}),Ra={newHomeClientOffset:Gr,dropDuration:Ia,completed:ra};ie(_a(Ra))}}},zn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function wr(Y){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){if(ie.target!==window&&ie.target!==window.document)return;Y()}}}function Gn(Y){var Z=Y.onWindowScroll;function ie(){Z(zn())}var Ee=L(ie),Ne=wr(Ee),ke=Te;function Ke(){return ke!==Te}function Ge(){Ke()&&$(!1),ke=be(window,[Ne])}function xt(){Ke()||$(!1),Ee.cancel(),ke(),ke=Te}return{start:Ge,stop:xt,isActive:Ke}}var bn=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},jn=function(Y){var Z=Gn({onWindowScroll:function(Ee){Y.dispatch(da({newScroll:Ee}))}});return function(ie){return function(Ee){!Z.isActive()&&Ee.type==="INITIAL_PUBLISH"&&Z.start(),Z.isActive()&&bn(Ee)&&Z.stop(),ie(Ee)}}},Vr=function(Y){var Z=!1,ie=!1,Ee=setTimeout(function(){ie=!0}),Ne=function(Ke){if(Z)return;if(ie)return;Z=!0,Y(Ke),clearTimeout(Ee)};return Ne.wasCalled=function(){return Z},Ne},ua=function(){var Y=[],Z=function(ke){var Ke=ze(Y,function(Ut){return Ut.timerId===ke});Ke!==-1||$(!1);var Ge=Y.splice(Ke,1),xt=Ge[0];xt.callback()},ie=function(ke){var Ke=setTimeout(function(){return Z(Ke)}),Ge={timerId:Ke,callback:ke};Y.push(Ge)},Ee=function(){if(!Y.length)return;var ke=[].concat(Y);Y.length=0,ke.forEach(function(Ke){clearTimeout(Ke.timerId),Ke.callback()})};return{add:ie,flush:Ee}},pr=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.droppableId===ie.droppableId&&Z.index===ie.index},na=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 Ee=Z.draggable.id===ie.draggable.id&&Z.draggable.droppableId===ie.draggable.droppableId&&Z.draggable.type===ie.draggable.type&&Z.draggable.index===ie.draggable.index,Ne=Z.droppable.id===ie.droppable.id&&Z.droppable.type===ie.droppable.type;return Ee&&Ne},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}},Tr=function(Z,ie,Ee,Ne){if(!Z){Ee(Ne(ie));return}var ke=Vr(Ee),Ke={announce:ke};Z(ie,Ke),ke.wasCalled()||Ee(Ne(ie))},br=function(Y,Z){var ie=ua(),Ee=null,Ne=function(St,kt){Ee&&$(!1),ha("onBeforeCapture",function(){var mn=Y().onBeforeCapture;if(mn){var sr={draggableId:St,mode:kt};mn(sr)}})},ke=function(St,kt){Ee&&$(!1),ha("onBeforeDragStart",function(){var mn=Y().onBeforeDragStart;mn&&mn(Sa(St,kt))})},Ke=function(St,kt){Ee&&$(!1);var mn=Sa(St,kt);Ee={mode:kt,lastCritical:St,lastLocation:mn.source,lastCombine:null},ie.add(function(){ha("onDragStart",function(){return Tr(Y().onDragStart,mn,Z,_e.onDragStart)})})},Ge=function(St,kt){var mn=at(kt),sr=it(kt);Ee||$(!1);var gr=!Ca(St,Ee.lastCritical);gr&&(Ee.lastCritical=St);var Nr=!pr(Ee.lastLocation,mn);Nr&&(Ee.lastLocation=mn);var Gr=!na(Ee.lastCombine,sr);if(Gr&&(Ee.lastCombine=sr),!gr&&!Nr&&!Gr)return;var ra=Object(b.a)({},Sa(St,Ee.mode),{combine:sr,destination:mn});ie.add(function(){ha("onDragUpdate",function(){return Tr(Y().onDragUpdate,ra,Z,_e.onDragUpdate)})})},xt=function(){Ee||$(!1),ie.flush()},Ut=function(St){Ee||$(!1),Ee=null,ha("onDragEnd",function(){return Tr(Y().onDragEnd,St,Z,_e.onDragEnd)})},Ft=function(){if(!Ee)return;var St=Object(b.a)({},Sa(Ee.lastCritical,Ee.mode),{combine:null,destination:null,reason:"CANCEL"});Ut(St)};return{beforeCapture:Ne,beforeStart:ke,start:Ke,update:Ge,flush:xt,drop:Ut,abort:Ft}},Mr=function(Y,Z){var ie=br(Y,Z);return function(Ee){return function(Ne){return function(ke){if(ke.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(ke.payload.draggableId,ke.payload.movementMode);return}if(ke.type==="INITIAL_PUBLISH"){var Ke=ke.payload.critical;ie.beforeStart(Ke,ke.payload.movementMode),Ne(ke),ie.start(Ke,ke.payload.movementMode);return}if(ke.type==="DROP_COMPLETE"){var Ge=ke.payload.completed.result;ie.flush(),Ne(ke),ie.drop(Ge);return}if(Ne(ke),ke.type==="FLUSH"){ie.abort();return}var xt=Ee.getState();xt.phase==="DRAGGING"&&ie.update(xt.critical,xt.impact)}}}},tr=function(Y){return function(Z){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){Z(ie);return}var Ee=Y.getState();Ee.phase==="DROP_ANIMATING"||$(!1),Y.dispatch(Ze({completed:Ee.completed}))}}},pa=function(Y){var Z=null,ie=null;function Ee(){ie&&(cancelAnimationFrame(ie),ie=null),Z&&(Z(),Z=null)}return function(Ne){return function(ke){if((ke.type==="FLUSH"||ke.type==="DROP_COMPLETE"||ke.type==="DROP_ANIMATION_FINISHED")&&Ee(),Ne(ke),ke.type!=="DROP_ANIMATE")return;var Ke={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var xt=Y.getState();xt.phase==="DROP_ANIMATING"&&Y.dispatch(nt())}};ie=requestAnimationFrame(function(){ie=null,Z=be(window,[Ke])})}}},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(Ee){if(Ee.type==="INITIAL_PUBLISH"){Z=!0,Y.tryRecordFocus(Ee.payload.critical.draggable.id),ie(Ee),Y.tryRestoreFocusRecorded();return}if(ie(Ee),!Z)return;if(Ee.type==="FLUSH"){Z=!1,Y.tryRestoreFocusRecorded();return}if(Ee.type==="DROP_COMPLETE"){Z=!1;var Ne=Ee.payload.completed.result;Ne.combine&&Y.tryShiftRecord(Ne.draggableId,Ne.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(Ee){if(Aa(Ee)){Y.stop(),ie(Ee);return}if(Ee.type==="INITIAL_PUBLISH"){ie(Ee);var Ne=Z.getState();Ne.phase==="DRAGGING"||$(!1),Y.start(Ne);return}ie(Ee),Y.scroll(Z.getState())}}}},Na=function(Y){return function(Z){return function(ie){if(Z(ie),ie.type!=="PUBLISH_WHILE_DRAGGING")return;var Ee=Y.getState();if(Ee.phase!=="DROP_PENDING")return;if(Ee.isWaiting)return;Y.dispatch(dt({reason:Ee.reason}))}}},ka=y.d,Fa=function(Y){var Z=Y.dimensionMarshal,ie=Y.focusMarshal,Ee=Y.styleMarshal,Ne=Y.getResponders,ke=Y.announce,Ke=Y.autoScroller;return Object(y.e)($t,ka(Object(y.a)(et(Ee),xa(Z),Ie(Z),ta,tr,pa,Na,ga(Ke),jn,ba(ie),Mr(Ne,ke))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(Y){var Z=Y.registry,ie=Y.callbacks,Ee=ni(),Ne=null,ke=function(){if(Ne)return;ie.collectionStarting(),Ne=requestAnimationFrame(function(){Ne=null,Rr();var Ft=Ee,Tt=Ft.additions,St=Ft.removals,kt=Ft.modified,mn=Object.keys(Tt).map(function(Nr){return Z.draggable.getById(Nr).getDimension(Ae)}).sort(function(Nr,Gr){return Nr.descriptor.index-Gr.descriptor.index}),sr=Object.keys(kt).map(function(Nr){var Gr=Z.droppable.getById(Nr),ra=Gr.callbacks.getScrollWhileDragging();return{droppableId:Nr,scroll:ra}}),gr={additions:mn,removals:Object.keys(St),modified:sr};Ee=ni(),Ir(),ie.publish(gr)})},Ke=function(Ft){var Tt=Ft.descriptor.id;Ee.additions[Tt]=Ft,Ee.modified[Ft.descriptor.droppableId]=!0,Ee.removals[Tt]&&delete Ee.removals[Tt],ke()},Ge=function(Ft){var Tt=Ft.descriptor;Ee.removals[Tt.id]=!0,Ee.modified[Tt.droppableId]=!0,Ee.additions[Tt.id]&&delete Ee.additions[Tt.id],ke()},xt=function(){if(!Ne)return;cancelAnimationFrame(Ne),Ne=null,Ee=ni()};return{add:Ke,remove:Ge,stop:xt}}var Ai=function(Y){var Z=Y.scrollHeight,ie=Y.scrollWidth,Ee=Y.height,Ne=Y.width,ke=tt({x:ie,y:Z},{x:Ne,y:Ee}),Ke={x:Math.max(0,ke.x),y:Math.max(0,ke.y)};return Ke},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=zn(),Z=bi(),ie=Y.y,Ee=Y.x,Ne=La(),ke=Ne.clientWidth,Ke=Ne.clientHeight,Ge=Ee+ke,xt=ie+Ke,Ut=n({top:ie,left:Ee,right:Ge,bottom:xt}),Ft={frame:Ut,scroll:{initial:Y,current:Y,max:Z,diff:{value:Ae,displacement:Ae}}};return Ft},ja=function(Y){var Z=Y.critical,ie=Y.scrollOptions,Ee=Y.registry;Rr();var Ne=Si(),ke=Ne.scroll.current,Ke=Z.droppable,Ge=Ee.droppable.getAllByType(Ke.type).map(function(Tt){return Tt.callbacks.getDimensionAndWatchScroll(ke,ie)}),xt=Ee.draggable.getAllByType(Z.draggable.type).map(function(Tt){return Tt.getDimension(ke)}),Ut={draggables:Qt(xt),droppables:Wt(Ge)};Ir();var Ft={dimensions:Ut,critical:Z,viewport:Ne};return Ft};function Ma(Y,Z,ie){if(ie.descriptor.id===Z.id)return!1;if(ie.descriptor.type!==Z.type)return!1;var Ee=Y.droppable.getById(ie.descriptor.droppableId);return!(Ee.descriptor.mode!=="virtual")}var Za=function(Y,Z){var ie=null,Ee=Fi({callbacks:{publish:Z.publishWhileDragging,collectionStarting:Z.collectionStarting},registry:Y}),Ne=function(kt,mn){if(Y.droppable.exists(kt)||$(!1),!ie)return;Z.updateDroppableIsEnabled({id:kt,isEnabled:mn})},ke=function(kt,mn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableIsCombineEnabled({id:kt,isCombineEnabled:mn})},Ke=function(kt,mn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableScroll({id:kt,newScroll:mn})},Ge=function(kt,mn){if(!ie)return;Y.droppable.getById(kt).callbacks.scroll(mn)},xt=function(){if(!ie)return;Ee.stop();var kt=ie.critical.droppable;Y.droppable.getAllByType(kt.type).forEach(function(mn){return mn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null},Ut=function(kt){ie||$(!1);var mn=ie.critical.draggable;kt.type==="ADDITION"&&(Ma(Y,mn,kt.value)&&Ee.add(kt.value)),kt.type==="REMOVAL"&&(Ma(Y,mn,kt.value)&&Ee.remove(kt.value))},Ft=function(kt){ie&&$(!1);var mn=Y.draggable.getById(kt.draggableId),sr=Y.droppable.getById(mn.descriptor.droppableId),gr={draggable:mn.descriptor,droppable:sr.descriptor},Nr=Y.subscribe(Ut);return ie={critical:gr,unsubscribe:Nr},ja({critical:gr,registry:Y,scrollOptions:kt.scrollOptions})},Tt={updateDroppableIsEnabled:Ne,updateDroppableIsCombineEnabled:ke,scrollDroppable:Ge,updateDroppableScroll:Ke,startPublishing:Ft,stopPublishing:xt};return Tt},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 Kt(Y).filter(function(Z){return Z.isEnabled?!!Z.frame:!1})}),no=function(Z,ie){var Ee=st(Ii(ie),function(Ne){return Ne.frame||$(!1),xn(Ne.frame.pageMarginBox)(Z)});return Ee},ro=function(Y){var Z=Y.center,ie=Y.destination,Ee=Y.droppables;if(ie){var Ne=Ee[ie];return Ne.frame?Ne:null}var ke=no(Z,Ee);return ke},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,Ee=Y[Z.size]*mi.maxScrollAtPercentage,Ne={startScrollingFrom:ie,maxScrollValueAt:Ee};return Ne},Io=function(Y){var Z=Y.startOfRange,ie=Y.endOfRange,Ee=Y.current,Ne=ie-Z;if(Ne===0)return 0;var ke=Ee-Z,Ke=ke/Ne;return Ke},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}),Ee=1-ie,Ne=mi.maxPixelScroll*mi.ease(Ee);return Math.ceil(Ne)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(Y,Z){var ie=Z,Ee=co,Ne=Date.now(),ke=Ne-ie;if(ke>=co)return Y;if(ke<Vi)return Lo;var Ke=Io({startOfRange:Vi,endOfRange:Ee,current:ke}),Ge=Y*mi.ease(Ke);return Math.ceil(Ge)},Yi=function(Y){var Z=Y.distanceToEdge,ie=Y.thresholds,Ee=Y.dragStartTime,Ne=Y.shouldUseTimeDampening,ke=bo(Z,ie);return ke===0?0:Ne?Math.max(Xi(ke,Ee),Lo):ke},No=function(Y){var Z=Y.container,ie=Y.distanceToEdges,Ee=Y.dragStartTime,Ne=Y.axis,ke=Y.shouldUseTimeDampening,Ke=uo(Z,Ne),Ge=ie[Ne.end]<ie[Ne.start];return Ge?Yi({distanceToEdge:ie[Ne.end],thresholds:Ke,dragStartTime:Ee,shouldUseTimeDampening:ke}):-1*Yi({distanceToEdge:ie[Ne.start],thresholds:Ke,dragStartTime:Ee,shouldUseTimeDampening:ke})},yo=function(Y){var Z=Y.container,ie=Y.subject,Ee=Y.proposedScroll,Ne=ie.height>Z.height,ke=ie.width>Z.width;return!ke&&!Ne?Ee:ke&&Ne?null:{x:ke?0:Ee.x,y:Ne?0:Ee.y}},ao=je(function(Y){return Y===0?0:Y}),Ji=function(Y){var Z=Y.dragStartTime,ie=Y.container,Ee=Y.subject,Ne=Y.center,ke=Y.shouldUseTimeDampening,Ke={top:Ne.y-ie.top,right:ie.right-Ne.x,bottom:ie.bottom-Ne.y,left:Ne.x-ie.left},Ge=No({container:ie,distanceToEdges:Ke,dragStartTime:Z,axis:on,shouldUseTimeDampening:ke}),xt=No({container:ie,distanceToEdges:Ke,dragStartTime:Z,axis:vn,shouldUseTimeDampening:ke}),Ut=ao({x:xt,y:Ge});if(ut(Ut,Ae))return null;var Ft=yo({container:ie,subject:Ee,proposedScroll:Ut});return Ft?ut(Ft,Ae)?null:Ft:null},Qi=je(function(Y){return Y===0?0:Y>0?1:-1}),ei=function(){var Y=function(ie,Ee){return ie<0?ie:ie>Ee?ie-Ee:0};return function(Z){var ie=Z.current,Ee=Z.max,Ne=Z.change,ke=Je(ie,Ne),Ke={x:Y(ke.x,Ee.x),y:Y(ke.y,Ee.y)};return ut(Ke,Ae)?null:Ke}}(),Li=function(Z){var ie=Z.max,Ee=Z.current,Ne=Z.change,ke={x:Math.max(Ee.x,ie.x),y:Math.max(Ee.y,ie.y)},Ke=Qi(Ne),Ge=ei({max:ke,current:Ee,change:Ke});return Ge?Ke.x!==0&&Ge.x===0?!0:Ke.y!==0&&Ge.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 Ee=Z.scroll.max,Ne=Z.scroll.current;return ei({current:Ne,max:Ee,change:ie})},Ri=function(Z,ie){var Ee=Z.frame;return Ee?Li({current:Ee.scroll.current,max:Ee.scroll.max,change:ie}):!1},Eo=function(Z,ie){var Ee=Z.frame;return Ee&&Ri(Z,ie)?ei({current:Ee.scroll.current,max:Ee.scroll.max,change:ie}):null},xo=function(Y){var Z=Y.viewport,ie=Y.subject,Ee=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,Ke=Ji({dragStartTime:Ne,container:Z.frame,subject:ie,center:Ee,shouldUseTimeDampening:ke});return Ke&&Di(Z,Ke)?Ke:null},Co=function(Y){var Z=Y.droppable,ie=Y.subject,Ee=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,Ke=Z.frame;if(!Ke)return null;var Ge=Ji({dragStartTime:Ne,container:Ke.pageMarginBox,subject:ie,center:Ee,shouldUseTimeDampening:ke});return Ge&&Ri(Z,Ge)?Ge:null},io=function(Y){var Z=Y.state,ie=Y.dragStartTime,Ee=Y.shouldUseTimeDampening,Ne=Y.scrollWindow,ke=Y.scrollDroppable,Ke=Z.current.page.borderBoxCenter,Ge=Z.dimensions.draggables[Z.critical.draggable.id],xt=Ge.page.marginBox;if(Z.isWindowScrollAllowed){var Ut=Z.viewport,Ft=xo({dragStartTime:ie,viewport:Ut,subject:xt,center:Ke,shouldUseTimeDampening:Ee});if(Ft){Ne(Ft);return}}var Tt=ro({center:Ke,destination:Ht(Z.impact),droppables:Z.dimensions.droppables});if(!Tt)return;var St=Co({dragStartTime:ie,droppable:Tt,subject:xt,center:Ke,shouldUseTimeDampening:Ee});St&&ke(Tt.descriptor.id,St)},Ni=function(Y){var Z=Y.scrollWindow,ie=Y.scrollDroppable,Ee=L(Z),Ne=L(ie),ke=null,Ke=function(Ft){ke||$(!1);var Tt=ke,St=Tt.shouldUseTimeDampening,kt=Tt.dragStartTime;io({state:Ft,scrollWindow:Ee,scrollDroppable:Ne,dragStartTime:kt,shouldUseTimeDampening:St})},Ge=function(Ft){Rr(),ke&&$(!1);var Tt=Date.now(),St=!1,kt=function(){St=!0};io({state:Ft,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:kt,scrollDroppable:kt}),ke={dragStartTime:Tt,shouldUseTimeDampening:St},Ir(),St&&Ke(Ft)},xt=function(){if(!ke)return;Ee.cancel(),Ne.cancel(),ke=null};return{start:Ge,stop:xt,scroll:Ke}},qi=function(Y){var Z=Y.move,ie=Y.scrollDroppable,Ee=Y.scrollWindow,Ne=function(Ut,Ft){var Tt=Je(Ut.current.client.selection,Ft);Z({client:Tt})},ke=function(Ut,Ft){if(!Ri(Ut,Ft))return Ft;var Tt=Eo(Ut,Ft);if(!Tt)return ie(Ut.descriptor.id,Ft),null;var St=tt(Ft,Tt);ie(Ut.descriptor.id,St);var kt=tt(Ft,St);return kt},Ke=function(Ut,Ft,Tt){if(!Ut)return Tt;if(!Di(Ft,Tt))return Tt;var St=Zi(Ft,Tt);if(!St)return Ee(Tt),null;var kt=tt(Tt,St);Ee(kt);var mn=tt(Tt,kt);return mn},Ge=function(Ut){var Ft=Ut.scrollJumpRequest;if(!Ft)return;var Tt=Ht(Ut.impact);Tt||$(!1);var St=ke(Ut.dimensions.droppables[Tt],Ft);if(!St)return;var kt=Ut.viewport,mn=Ke(Ut.isWindowScrollAllowed,kt,St);if(!mn)return;Ne(Ut,mn)};return Ge},ko=function(Y){var Z=Y.scrollDroppable,ie=Y.scrollWindow,Ee=Y.move,Ne=Ni({scrollWindow:ie,scrollDroppable:Z}),ke=qi({move:Ee,scrollWindow:ie,scrollDroppable:Z}),Ke=function(Ut){if(Ut.phase!=="DRAGGING")return;if(Ut.movementMode==="FLUID"){Ne.scroll(Ut);return}if(!Ut.scrollJumpRequest)return;ke(Ut)},Ge={scroll:Ke,start:Ne.start,stop:Ne.stop};return Ge},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(Ee){var Ne=Ee.styles[ie];return Ne?Ee.selector+" { "+Ne+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(Y){var Z=fi(Y),ie=function(){var Ge=`
|
|
|
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:Ge,dragging:ri,dropAnimating:Ge}}}(),Ee=function(){var Ge=`
|
|
|
transition: `+Vt.outOfTheWay+`;
|
|
|
`;return{selector:Z(So.contextId),styles:{dragging:Ge,dropAnimating:Ge,userCancel:Ge}}}(),Ne={selector:Z(Uo.contextId),styles:{always:"overflow-anchor: none;"}},ke={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;
|
|
|
`}},Ke=[Ee,ie,Ne,ke];return{always:Ha(Ke,"always"),resting:Ha(Ke,"resting"),dragging:Ha(Ke,"dragging"),dropAnimating:Ha(Ke,"dropAnimating"),userCancel:Ha(Ke,"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]),Ee=Object(M.useRef)(null),Ne=Object(M.useRef)(null),ke=a(T(function(Tt){var St=Ne.current;St||$(!1),St.textContent=Tt}),[]),Ke=a(function(Tt){var St=Ee.current;St||$(!1),St.textContent=Tt},[]);ai(function(){!Ee.current&&!Ne.current||$(!1);var Tt=yi(Z),St=yi(Z);return Ee.current=Tt,Ne.current=St,Tt.setAttribute(oo+"-always",Y),St.setAttribute(oo+"-dynamic",Y),wo().appendChild(Tt),wo().appendChild(St),Ke(ie.always),ke(ie.resting),function(){var kt=function(sr){var gr=sr.current;gr||$(!1),wo().removeChild(gr),sr.current=null};kt(Ee),kt(Ne)}},[Z,Ke,ke,ie.always,ie.resting,Y]);var Ge=a(function(){return ke(ie.dragging)},[ke,ie.dragging]),xt=a(function(Tt){if(Tt==="DROP"){ke(ie.dropAnimating);return}ke(ie.userCancel)},[ke,ie.dropAnimating,ie.userCancel]),Ut=a(function(){if(!Ne.current)return;ke(ie.resting)},[ke,ie.resting]),Ft=f(function(){return{dragging:Ge,dropping:xt,resting:Ut}},[Ge,xt,Ut]);return Ft}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+'"]',Ee=Ct(document.querySelectorAll(ie));if(!Ee.length)return null;var Ne=st(Ee,function(ke){return ke.getAttribute(so.draggableId)===Z});return Ne&&$i(Ne)?Ne:null}function Oo(Y){var Z=Object(M.useRef)({}),ie=Object(M.useRef)(null),Ee=Object(M.useRef)(null),Ne=Object(M.useRef)(!1),ke=a(function(St,kt){var mn={id:St,focus:kt};return Z.current[St]=mn,function(){var gr=Z.current,Nr=gr[St];Nr!==mn&&delete gr[St]}},[]),Ke=a(function(St){var kt=Wi(Y,St);kt&&kt!==document.activeElement&&kt.focus()},[Y]),Ge=a(function(St,kt){ie.current===St&&(ie.current=kt)},[]),xt=a(function(){if(Ee.current)return;if(!Ne.current)return;Ee.current=requestAnimationFrame(function(){Ee.current=null;var St=ie.current;St&&Ke(St)})},[Ke]),Ut=a(function(St){ie.current=null;var kt=document.activeElement;if(!kt)return;if(kt.getAttribute(so.draggableId)!==St)return;ie.current=St},[]);ai(function(){return Ne.current=!0,function(){Ne.current=!1;var St=Ee.current;St&&cancelAnimationFrame(St)}},[]);var Ft=f(function(){return{register:ke,tryRecordFocus:Ut,tryRestoreFocusRecorded:xt,tryShiftRecord:Ge}},[ke,Ut,xt,Ge]);return Ft}function fo(){var Y={draggables:{},droppables:{}},Z=[];function ie(Tt){return Z.push(Tt),function(){var kt=Z.indexOf(Tt);if(kt===-1)return;Z.splice(kt,1)}}function Ee(Tt){Z.length&&Z.forEach(function(St){return St(Tt)})}function Ne(Tt){return Y.draggables[Tt]||null}function ke(Tt){var St=Ne(Tt);return St||$(!1),St}var Ke={register:function(St){Y.draggables[St.descriptor.id]=St,Ee({type:"ADDITION",value:St})},update:function(St,kt){var mn=Y.draggables[kt.descriptor.id];if(!mn)return;if(mn.uniqueId!==St.uniqueId)return;delete Y.draggables[kt.descriptor.id],Y.draggables[St.descriptor.id]=St},unregister:function(St){var kt=St.descriptor.id,mn=Ne(kt);if(!mn)return;if(St.uniqueId!==mn.uniqueId)return;delete Y.draggables[kt],Ee({type:"REMOVAL",value:St})},getById:ke,findById:Ne,exists:function(St){return Boolean(Ne(St))},getAllByType:function(St){return Ue(Y.draggables).filter(function(kt){return kt.descriptor.type===St})}};function Ge(Tt){return Y.droppables[Tt]||null}function xt(Tt){var St=Ge(Tt);return St||$(!1),St}var Ut={register:function(St){Y.droppables[St.descriptor.id]=St},unregister:function(St){var kt=Ge(St.descriptor.id);if(!kt)return;if(St.uniqueId!==kt.uniqueId)return;delete Y.droppables[St.descriptor.id]},getById:xt,findById:Ge,exists:function(St){return Boolean(Ge(St))},getAllByType:function(St){return Ue(Y.droppables).filter(function(kt){return kt.descriptor.type===St})}};function Ft(){Y.draggables={},Y.droppables={},Z.length=0}return{draggable:Ke,droppable:Ut,subscribe:ie,clean:Ft}}function Wo(){var Y=f(fo,[]);return Object(M.useEffect)(function(){return function(){requestAnimationFrame(Y.clean)}},[Y]),Y}var lo=g.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 ke=document.createElement("div");return ie.current=ke,ke.id=Z,ke.setAttribute("aria-live","assertive"),ke.setAttribute("aria-atomic","true"),Object(b.a)(ke.style,ya),Da().appendChild(ke),function(){setTimeout(function(){var xt=Da();xt.contains(ke)&&xt.removeChild(ke),ke===ie.current&&(ie.current=null)})}},[Z]);var Ee=a(function(Ne){var ke=ie.current;if(ke){ke.textContent=Ne;return}},[]);return Ee}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,Ee=wi("hidden-text",{separator:"-"}),Ne=f(function(){return qa({contextId:Z,uniqueId:Ee})},[Ee,Z]);return Object(M.useEffect)(function(){var Ke=document.createElement("div");return Ke.id=Ne,Ke.textContent=ie,Ke.style.display="none",Da().appendChild(Ke),function(){var xt=Da();xt.contains(Ke)&&xt.removeChild(Ke)}},[Ne,ie]),Ne}var Hi=g.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 Ee=Number(ie[1]),Ne=Number(ie[2]),ke=Number(ie[3]);return{major:Ee,minor:Ne,patch:ke,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},Cr=function(Y,Z){var ie=Pa(Y),Ee=Pa(Z);if(sa(ie,Ee))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){Se(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+ie.message+`
|
|
|
`)}},Z)})}function Pi(){Ei(function(){Cr(mo.react,g.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(Ke){return Ke===Y}function Ee(Ke){Y&&$(!1);var Ge={abandon:Ke};return Y=Ge,Ge}function Ne(){Y||$(!1),Y=null}function ke(){Y&&(Y.abandon(),Ne())}return{isClaimed:Z,isActive:ie,claim:Ee,release:Ne,tryAbandon:ke}}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=st(Z,function(Ee){return"on"+Ee 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,Ee=Y.getPhase,Ne=Y.setPhase;return[{eventName:"mousemove",fn:function(Ke){var Ge=Ke.button,xt=Ke.clientX,Ut=Ke.clientY;if(Ge!==Zs)return;var Ft={x:xt,y:Ut},Tt=Ee();if(Tt.type==="DRAGGING"){Ke.preventDefault(),Tt.actions.move(Ft);return}Tt.type==="PENDING"||$(!1);var St=Tt.point;if(!Ho(St,Ft))return;Ke.preventDefault();var kt=Tt.actions.fluidLift(Ft);Ne({type:"DRAGGING",actions:kt})}},{eventName:"mouseup",fn:function(Ke){var Ge=Ee();if(Ge.type!=="DRAGGING"){Z();return}Ke.preventDefault(),Ge.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(Ke){Ee().type==="DRAGGING"&&Ke.preventDefault(),Z()}},{eventName:"keydown",fn:function(Ke){var Ge=Ee();if(Ge.type==="PENDING"){Z();return}if(Ke.keyCode===Qa){Ke.preventDefault(),Z();return}Rs(Ke)}},{eventName:"resize",fn:Z},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ee().type==="PENDING"&&Z()}},{eventName:"webkitmouseforcedown",fn:function(Ke){var Ge=Ee();if(Ge.type!=="IDLE"||$(!1),Ge.actions.shouldRespectForcePress()){Z();return}Ke.preventDefault()}},{eventName:gs,fn:Z}]}function $s(Y){var Z=Object(M.useRef)(vs),ie=Object(M.useRef)(Te),Ee=f(function(){return{eventName:"mousedown",fn:function(Tt){if(Tt.defaultPrevented)return;if(Tt.button!==Zs)return;if(Tt.ctrlKey||Tt.metaKey||Tt.shiftKey||Tt.altKey)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var kt=Y.tryGetLock(St,Ke,{sourceEvent:Tt});if(!kt)return;Tt.preventDefault();var mn={x:Tt.clientX,y:Tt.clientY};ie.current(),Ut(kt,mn)}}},[Y]),Ne=f(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Tt){if(Tt.defaultPrevented)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var kt=Y.findOptionsForDraggable(St);if(!kt)return;if(kt.shouldRespectForcePress)return;if(!Y.canGetLock(St))return;Tt.preventDefault()}}},[Y]),ke=a(function(){var Tt={passive:!1,capture:!0};ie.current=be(window,[Ne,Ee],Tt)},[Ne,Ee]),Ke=a(function(){var Ft=Z.current;if(Ft.type==="IDLE")return;Z.current=vs,ie.current(),ke()},[ke]),Ge=a(function(){var Ft=Z.current;Ke(),Ft.type==="DRAGGING"&&Ft.actions.cancel({shouldBlockNextClick:!0}),Ft.type==="PENDING"&&Ft.actions.abort()},[Ke]),xt=a(function(){var Tt={capture:!0,passive:!1},St=_s({cancel:Ge,completed:Ke,getPhase:function(){return Z.current},setPhase:function(mn){Z.current=mn}});ie.current=be(window,St,Tt)},[Ge,Ke]),Ut=a(function(Tt,St){Z.current.type==="IDLE"||$(!1),Z.current={type:"PENDING",point:St,actions:Tt},xt()},[xt]);ai(function(){return ke(),function(){ie.current()}},[ke])}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 Ee(){Z(),Y.drop()}return[{eventName:"keydown",fn:function(ke){if(ke.keyCode===Qa){ke.preventDefault(),ie();return}if(ke.keyCode===As){ke.preventDefault(),Ee();return}if(ke.keyCode===Il){ke.preventDefault(),Y.moveDown();return}if(ke.keyCode===Ml){ke.preventDefault(),Y.moveUp();return}if(ke.keyCode===Qs){ke.preventDefault(),Y.moveRight();return}if(ke.keyCode===Js){ke.preventDefault(),Y.moveLeft();return}if(Ll[ke.keyCode]){ke.preventDefault();return}Rs(ke)}},{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(ke){if(ke.defaultPrevented)return;if(ke.keyCode!==As)return;var Ke=Y.findClosestDraggableId(ke);if(!Ke)return;var Ge=Y.tryGetLock(Ke,Ft,{sourceEvent:ke});if(!Ge)return;ke.preventDefault();var xt=!0,Ut=Ge.snapLift();Z.current();function Ft(){xt||$(!1),xt=!1,Z.current(),Ee()}Z.current=be(window,tl(Ut,Ft),{capture:!0,passive:!1})}}},[Y]),Ee=a(function(){var ke={passive:!1,capture:!0};Z.current=be(window,[ie],ke)},[ie]);ai(function(){return Ee(),function(){Z.current()}},[Ee])}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(Ne){Ne.preventDefault()}},{eventName:"keydown",fn:function(Ne){if(ie().type!=="DRAGGING"){Z();return}Ne.keyCode===Qa&&Ne.preventDefault(),Z()}},{eventName:gs,fn:Z}]}function Go(Y){var Z=Y.cancel,ie=Y.completed,Ee=Y.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ke){var Ke=Ee();if(Ke.type!=="DRAGGING"){Z();return}Ke.hasMoved=!0;var Ge=ke.touches[0],xt=Ge.clientX,Ut=Ge.clientY,Ft={x:xt,y:Ut};ke.preventDefault(),Ke.actions.move(Ft)}},{eventName:"touchend",fn:function(ke){var Ke=Ee();if(Ke.type!=="DRAGGING"){Z();return}ke.preventDefault(),Ke.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(ke){if(Ee().type!=="DRAGGING"){Z();return}ke.preventDefault(),Z()}},{eventName:"touchforcechange",fn:function(ke){var Ke=Ee();Ke.type!=="IDLE"||$(!1);var Ge=ke.touches[0];if(!Ge)return;var xt=Ge.force>=rl;if(!xt)return;var Ut=Ke.actions.shouldRespectForcePress();if(Ke.type==="PENDING"){Ut&&Z();return}if(Ut){if(Ke.hasMoved){ke.preventDefault();return}Z();return}ke.preventDefault()}},{eventName:gs,fn:Z}]}function bs(Y){var Z=Object(M.useRef)(Ko),ie=Object(M.useRef)(Te),Ee=a(function(){return Z.current},[]),Ne=a(function(kt){Z.current=kt},[]),ke=f(function(){return{eventName:"touchstart",fn:function(kt){if(kt.defaultPrevented)return;var mn=Y.findClosestDraggableId(kt);if(!mn)return;var sr=Y.tryGetLock(mn,Ge,{sourceEvent:kt});if(!sr)return;var gr=kt.touches[0],Nr=gr.clientX,Gr=gr.clientY,ra={x:Nr,y:Gr};ie.current(),Tt(sr,ra)}}},[Y]),Ke=a(function(){var kt={capture:!0,passive:!1};ie.current=be(window,[ke],kt)},[ke]),Ge=a(function(){var St=Z.current;if(St.type==="IDLE")return;St.type==="PENDING"&&clearTimeout(St.longPressTimerId),Ne(Ko),ie.current(),Ke()},[Ke,Ne]),xt=a(function(){var St=Z.current;Ge(),St.type==="DRAGGING"&&St.actions.cancel({shouldBlockNextClick:!0}),St.type==="PENDING"&&St.actions.abort()},[Ge]),Ut=a(function(){var kt={capture:!0,passive:!1},mn={cancel:xt,completed:Ge,getPhase:Ee},sr=be(window,Go(mn),kt),gr=be(window,al(mn),kt);ie.current=function(){sr(),gr()}},[xt,Ee,Ge]),Ft=a(function(){var kt=Ee();kt.type==="PENDING"||$(!1);var mn=kt.actions.fluidLift(kt.point);Ne({type:"DRAGGING",actions:mn,hasMoved:!1})},[Ee,Ne]),Tt=a(function(kt,mn){Ee().type==="IDLE"||$(!1);var sr=setTimeout(Ft,nl);Ne({type:"PENDING",point:mn,actions:kt,longPressTimerId:sr}),Ut()},[Ut,Ee,Ne,Ft]);ai(function(){return Ke(),function(){ie.current();var mn=Ee();mn.type==="PENDING"&&(clearTimeout(mn.longPressTimerId),Ne(Ko))}},[Ee,Ke,Ne]),ai(function(){var kt=be(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 Ee=Z.getAttribute("contenteditable");return Ee==="true"||Ee===""?!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=st(Z,function(Ee){return Ee 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 Ee=Xo(Y),Ne=Nl(ie,Ee);return Ne&&$i(Ne)?Ne: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+'"]',Ee=Ct(document.querySelectorAll(ie)),Ne=st(Ee,function(ke){return ke.getAttribute(So.id)===Z});return Ne&&$i(Ne)?Ne:null}function ts(Y){Y.preventDefault()}function Do(Y){var Z=Y.expected,ie=Y.phase,Ee=Y.isLockActive,Ne=Y.shouldWarn;return Ee()?!(Z!==ie):!1}function Yo(Y){var Z=Y.lockAPI,ie=Y.store,Ee=Y.registry,Ne=Y.draggableId;if(Z.isClaimed())return!1;var ke=Ee.draggable.findById(Ne);return ke&&ke.options.isEnabled?!!to(ie.getState(),Ne):!1}function ns(Y){var Z=Y.lockAPI,ie=Y.contextId,Ee=Y.store,Ne=Y.registry,ke=Y.draggableId,Ke=Y.forceSensorStop,Ge=Y.sourceEvent,xt=Yo({lockAPI:Z,store:Ee,registry:Ne,draggableId:ke});if(!xt)return null;var Ut=Ne.draggable.getById(ke),Ft=dl(ie,Ut.descriptor.id);if(!Ft)return null;if(Ge&&!Ut.options.canDragInteractiveElements&&zo(Ft,Ge))return null;var Tt=Z.claim(Ke||Te),St="PRE_DRAG";function kt(){return Ut.options.shouldRespectForcePress}function mn(){return Z.isActive(Tt)}function sr(Ra,za){Do({expected:Ra,phase:St,isLockActive:mn,shouldWarn:!0})&&Ee.dispatch(za())}var gr=sr.bind(null,"DRAGGING");function Nr(Ra){function za(){Z.release(),St="COMPLETED"}St!=="PRE_DRAG"&&(za(),St==="PRE_DRAG"||$(!1)),Ee.dispatch(Xn(Ra.liftActionArgs)),St="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Ra.cleanup(),p.shouldBlockNextClick){var B=be(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(B)}za(),Ee.dispatch(dt({reason:t}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:St,isLockActive:mn,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=L(function(t){gr(function(){return or({client:t})})}),si=Nr({liftActionArgs:{id:ke,clientSelection:Ra,movementMode:"FLUID"},cleanup:function(){return za.cancel()},actions:{move:za}});return Object(b.a)({},si,{move:za})}function ra(){var Ra={moveUp:function(){return gr(_r)},moveRight:function(){return gr(Kr)},moveDown:function(){return gr(Sr)},moveLeft:function(){return gr(Jr)}};return Nr({liftActionArgs:{id:ke,clientSelection:sl(Ft),movementMode:"SNAP"},cleanup:Te,actions:Ra})}function Hr(){var Ra=Do({expected:"PRE_DRAG",phase:St,isLockActive:mn,shouldWarn:!0});Ra&&Z.release()}var Ia={isActive:function(){return Do({expected:"PRE_DRAG",phase:St,isLockActive:mn,shouldWarn:!1})},shouldRespectForcePress:kt,fluidLift:Gr,snapLift:ra,abort:Hr};return Ia}var fl=[$s,gi,bs];function kl(Y){var Z=Y.contextId,ie=Y.store,Ee=Y.registry,Ne=Y.customSensors,ke=Y.enableDefaultSensors,Ke=[].concat(ke?fl:[],Ne||[]),Ge=Object(M.useState)(function(){return xi()})[0],xt=a(function(Gr,ra){Gr.isDragging&&!ra.isDragging&&Ge.tryAbandon()},[Ge]);ai(function(){var Gr=ie.getState(),ra=ie.subscribe(function(){var Hr=ie.getState();xt(Gr,Hr),Gr=Hr});return ra},[Ge,ie,xt]),ai(function(){return Ge.tryAbandon},[Ge.tryAbandon]);var Ut=a(function(Nr){return Yo({lockAPI:Ge,registry:Ee,store:ie,draggableId:Nr})},[Ge,Ee,ie]),Ft=a(function(Nr,Gr,ra){return ns({lockAPI:Ge,registry:Ee,contextId:Z,store:ie,draggableId:Nr,forceSensorStop:Gr,sourceEvent:ra&&ra.sourceEvent?ra.sourceEvent:null})},[Z,Ge,Ee,ie]),Tt=a(function(Nr){return cl(Z,Nr)},[Z]),St=a(function(Nr){var Gr=Ee.draggable.findById(Nr);return Gr?Gr.options:null},[Ee.draggable]),kt=a(function(){if(!Ge.isClaimed())return;Ge.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Oa())},[Ge,ie]),mn=a(Ge.isClaimed,[Ge]),sr=f(function(){return{canGetLock:Ut,tryGetLock:Ft,findClosestDraggableId:Tt,findOptionsForDraggable:St,tryReleaseLock:kt,isLockClaimed:mn}},[Ut,Ft,Tt,St,kt,mn]);il(Ke);for(var gr=0;gr<Ke.length;gr++)Ke[gr](sr)}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,Ee=Y.sensors,Ne=Y.nonce,ke=Y.dragHandleUsageInstructions,Ke=Object(M.useRef)(null);Pi();var Ge=$a(Y),xt=a(function(){return hl(Ge.current)},[Ge]),Ut=ui(Z),Ft=po({contextId:Z,text:ke}),Tt=Bo(Z,Ne),St=a(function(t){Gi(Ke).dispatch(t)},[]),kt=f(function(){return Object(y.b)({publishWhileDragging:Ln,updateDroppableScroll:ur,updateDroppableIsEnabled:ir,updateDroppableIsCombineEnabled:qr,collectionStarting:rr},St)},[St]),mn=Wo(),sr=f(function(){return Za(mn,kt)},[mn,kt]),gr=f(function(){return ko(Object(b.a)({scrollWindow:Mo,scrollDroppable:sr.scrollDroppable},Object(y.b)({move:or},St)))},[sr.scrollDroppable,St]),Nr=Oo(Z),Gr=f(function(){return Fa({announce:Ut,autoScroller:gr,dimensionMarshal:sr,focusMarshal:Nr,getResponders:xt,styleMarshal:Tt})},[Ut,gr,sr,Nr,xt,Tt]);Ke.current=Gr;var ra=a(function(){var t=Gi(Ke),p=t.getState();p.phase!=="IDLE"&&t.dispatch(Oa())},[]),Hr=a(function(){var t=Gi(Ke).getState();return t.isDragging||t.phase==="DROP_ANIMATING"},[]),Ia=f(function(){return{isDragging:Hr,tryAbort:ra}},[Hr,ra]);ie(Ia);var Ra=a(function(t){return to(Gi(Ke).getState(),t)},[]),za=a(function(){return rn(Gi(Ke).getState())},[]),si=f(function(){return{marshal:sr,focus:Nr,contextId:Z,canLift:Ra,isMovementAllowed:za,dragHandleUsageInstructionsId:Ft,registry:mn}},[Z,sr,Ft,Nr,Ra,za,mn]);return kl({contextId:Z,store:Gr,registry:mn,customSensors:Ee,enableDefaultSensors:Y.enableDefaultSensors!==!1}),Object(M.useEffect)(function(){return ra},[ra]),g.a.createElement(Hi.Provider,{value:si},g.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 g.a.createElement(me,null,function(Ee){return g.a.createElement(Jo,{nonce:Y.nonce,contextId:Z,setCallbacks:Ee,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),Ee={overflowX:ie.overflowX,overflowY:ie.overflowY};return gl(Ee,Ti)||gl(Ee,ml)},vl=function(){return!1;var Z,ie;if(!Ls(Z))return!1;var Ee,Ne;if(Fl(Ne,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,Ee=Y.isCombineEnabled,Ne=Y.isFixedOnPage,ke=Y.direction,Ke=Y.client,Ge=Y.page,xt=Y.closest,Ut=function(){if(!xt)return null;var kt=xt.scrollSize,mn=xt.client,sr=Ai({scrollHeight:kt.scrollHeight,scrollWidth:kt.scrollWidth,height:mn.paddingBox.height,width:mn.paddingBox.width});return{pageMarginBox:xt.page.marginBox,frameClient:mn,scrollSize:kt,shouldClipSubject:xt.shouldClipSubject,scroll:{initial:xt.scroll,current:xt.scroll,max:sr,diff:{value:Ae,displacement:Ae}}}}(),Ft=ke==="vertical"?on:vn,Tt=Ce({page:Ge,withPlaceholder:null,axis:Ft,frame:Ut}),St={descriptor:Z,isCombineEnabled:Ee,isFixedOnPage:Ne,axis:Ft,isEnabled:ie,client:Ke,page:Ge,frame:Ut,subject:Tt};return St},Es=function(Z,ie){var Ee=P(Z);if(!ie)return Ee;if(Z!==ie)return Ee;var Ne=Ee.paddingBox.top-ie.scrollTop,ke=Ee.paddingBox.left-ie.scrollLeft,Ke=Ne+ie.scrollHeight,Ge=ke+ie.scrollWidth,xt={top:Ne,right:Ge,bottom:Ke,left:ke},Ut=i(xt,Ee.border),Ft=d({borderBox:Ut,margin:Ee.margin,border:Ee.border,padding:Ee.padding});return Ft},as=function(Y){var Z=Y.ref,ie=Y.descriptor,Ee=Y.env,Ne=Y.windowScroll,ke=Y.direction,Ke=Y.isDropDisabled,Ge=Y.isCombineEnabled,xt=Y.shouldClipSubject,Ut=Ee.closestScrollable,Ft=Es(Z,Ut),Tt=E(Ft,Ne),St=function(){if(!Ut)return null;var mn=P(Ut),sr={scrollHeight:Ut.scrollHeight,scrollWidth:Ut.scrollWidth};return{client:mn,page:E(mn,Ne),scroll:ks(Ut),scrollSize:sr,shouldClipSubject:xt}}(),kt=rs({descriptor:ie,isEnabled:!Ke,isCombineEnabled:Ge,isFixedOnPage:Ee.isFixedOnPage,direction:ke,client:Ft,page:Tt,closest:St});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),Ee=wi("droppable"),Ne=ie.registry,ke=ie.marshal,Ke=$a(Y),Ge=f(function(){return{id:Y.droppableId,type:Y.type,mode:Y.mode}},[Y.droppableId,Y.mode,Y.type]),xt=Object(M.useRef)(Ge),Ut=f(function(){return T(function(Hr,Ia){Z.current||$(!1);var Ra={x:Hr,y:Ia};ke.updateDroppableScroll(Ge.id,Ra)})},[Ge.id,ke]),Ft=a(function(){var Hr=Z.current;return!Hr||!Hr.env.closestScrollable?Ae:ks(Hr.env.closestScrollable)},[]),Tt=a(function(){var Hr=Ft();Ut(Hr.x,Hr.y)},[Ft,Ut]),St=f(function(){return L(Tt)},[Tt]),kt=a(function(){var Hr=Z.current,Ia=is(Hr);Hr&&Ia||$(!1);var Ra=Hr.scrollOptions;if(Ra.shouldPublishImmediately){Tt();return}St()},[St,Tt]),mn=a(function(Hr,Ia){Z.current&&$(!1);var Ra=Ke.current,za=Ra.getDroppableRef();za||$(!1);var si=Ro(za),t={ref:za,descriptor:Ge,env:si,scrollOptions:Ia};Z.current=t;var p=as({ref:za,descriptor:Ge,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,Ge,kt,Ke]),sr=a(function(){var Hr=Z.current,Ia=is(Hr);return Hr&&Ia||$(!1),ks(Ia)},[]),gr=a(function(){var Hr=Z.current;Hr||$(!1);var Ia=is(Hr);if(Z.current=null,!Ia)return;St.cancel(),Ia.removeAttribute(jo.contextId),Ia.removeEventListener("scroll",kt,_l(Hr.scrollOptions))},[kt,St]),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:mn,getScrollWhileDragging:sr,dragStopped:gr,scroll:Nr}},[gr,mn,sr,Nr]),ra=f(function(){return{uniqueId:Ee,descriptor:Ge,callbacks:Gr}},[Gr,Ge,Ee]);ai(function(){return xt.current=ra.descriptor,Ne.droppable.register(ra),function(){Z.current&&gr(),Ne.droppable.unregister(ra)}},[Gr,Ge,gr,ra,ke,Ne.droppable]),ai(function(){if(!Z.current)return;ke.updateDroppableIsEnabled(xt.current.id,!Y.isDropDisabled)},[Y.isDropDisabled,ke]),ai(function(){if(!Z.current)return;ke.updateDroppableIsCombineEnabled(xt.current.id,Y.isCombineEnabled)},[Y.isCombineEnabled,ke])}function xs(){}var os={width:0,height:0,margin:Pt},Zo=function(Z){var ie=Z.isAnimatingOpenOnMount,Ee=Z.placeholder,Ne=Z.animate;return ie||Ne==="close"?os:{height:Ee.client.borderBox.height,width:Ee.client.borderBox.width,margin:Ee.client.margin}},Us=function(Z){var ie=Z.isAnimatingOpenOnMount,Ee=Z.placeholder,Ne=Z.animate,ke=Zo({isAnimatingOpenOnMount:ie,placeholder:Ee,animate:Ne});return{display:Ee.display,boxSizing:"border-box",width:ke.width,height:ke.height,marginTop:ke.margin.top,marginRight:ke.margin.right,marginBottom:ke.margin.bottom,marginLeft:ke.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Ne!=="none"?Vt.placeholder:null}};function js(Y){var Z=Object(M.useRef)(null),ie=a(function(){if(!Z.current)return;clearTimeout(Z.current),Z.current=null},[]),Ee=Y.animate,Ne=Y.onTransitionEnd,ke=Y.onClose,Ke=Y.contextId,Ge=Object(M.useState)(Y.animate==="open"),xt=Ge[0],Ut=Ge[1];Object(M.useEffect)(function(){return xt?Ee!=="open"?(ie(),Ut(!1),xs):Z.current?xs:(Z.current=setTimeout(function(){Z.current=null,Ut(!1)}),ie):xs},[Ee,xt,ie]);var Ft=a(function(St){if(St.propertyName!=="height")return;Ne(),Ee==="close"&&ke()},[Ee,ke,Ne]),Tt=Us({isAnimatingOpenOnMount:xt,animate:Y.animate,placeholder:Y.placeholder});return g.a.createElement(Y.placeholder.tagName,{style:Tt,"data-rbd-placeholder-context-id":Ke,onTransitionEnd:Ft,ref:Y.innerRef})}var Bs=g.a.memo(js),Fs=g.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,Ee=Z.getPlaceholderRef;if(!ie.placeholder)return;var Ne=Ee();if(Ne)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 Ee,Ne=arguments.length,ke=new Array(Ne),Ke=0;Ke<Ne;Ke++)ke[Ke]=arguments[Ke];return Ee=Y.call.apply(Y,[this].concat(ke))||this,Ee.state={isVisible:Boolean(Ee.props.on),data:Ee.props.on,animate:Ee.props.shouldAnimate&&Ee.props.on?"open":"none"},Ee.onClose=function(){if(Ee.state.animate!=="close")return;Ee.setState({isVisible:!1})},Ee}Z.getDerivedStateFromProps=function(Ne,ke){return Ne.shouldAnimate?Ne.on?{isVisible:!0,data:Ne.on,animate:"open"}:ke.isVisible?{isVisible:!0,data:ke.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(Ne.on),data:Ne.on,animate:"none"}};var ie=Z.prototype;return ie.render=function(){if(!this.state.isVisible)return null;var Ne={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Ne)},Z}(g.a.PureComponent),Hs={dragging:5e3,dropAnimating:4500},El=function(Z,ie){return ie?Vt.drop(ie.duration):Z?Vt.snap:Vt.fluid},zl=function(Z,ie){return Z?ie?mt.opacity.drop:mt.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,Ee=Y.offset,Ne=Y.combineWith,ke=Y.dropping,Ke=Boolean(Ne),Ge=Ks(Y),xt=Boolean(ke),Ut=xt?ln.drop(Ee,Ke):ln.moveTo(Ee),Ft={position:"fixed",top:ie.marginBox.top,left:ie.marginBox.left,boxSizing:"border-box",width:ie.borderBox.width,height:ie.borderBox.height,transition:El(Ge,ke),transform:Ut,opacity:zl(Ke,xt),zIndex:xt?Hs.dropAnimating:Hs.dragging,pointerEvents:"none"};return Ft}function Vl(Y){return{transform:ln.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=Ae);var Ee=window.getComputedStyle(Z),Ne=Z.getBoundingClientRect(),ke=_(Ne,Ee),Ke=E(ke,ie),Ge={client:ke,tagName:Z.tagName.toLowerCase(),display:Ee.display},xt={x:ke.marginBox.width,y:ke.marginBox.height},Ut={descriptor:Y,placeholder:Ge,displaceBy:xt,client:ke,page:Ke};return Ut}function Xl(Y){var Z=wi("draggable"),ie=Y.descriptor,Ee=Y.registry,Ne=Y.getDraggableRef,ke=Y.canDragInteractiveElements,Ke=Y.shouldRespectForcePress,Ge=Y.isEnabled,xt=f(function(){return{canDragInteractiveElements:ke,shouldRespectForcePress:Ke,isEnabled:Ge}},[ke,Ge,Ke]),Ut=a(function(kt){var mn=Ne();return mn||$(!1),Sl(ie,mn,kt)},[ie,Ne]),Ft=f(function(){return{uniqueId:Z,descriptor:ie,options:xt,getDimension:Ut}},[ie,Ut,xt,Z]),Tt=Object(M.useRef)(Ft),St=Object(M.useRef)(!0);ai(function(){return Ee.draggable.register(Tt.current),function(){return Ee.draggable.unregister(Tt.current)}},[Ee.draggable]),ai(function(){if(St.current){St.current=!1;return}var kt=Tt.current;Tt.current=Ft,Ee.draggable.update(Ft,kt)},[Ft,Ee.draggable])}function Gs(Y,Z,ie){Ei(function(){function Ee(ke){return"Draggable[id: "+ke+"]: "}var Ne=Y.draggableId;if(Ne||$(!1),typeof Ne=="string"||$(!1),We(Y.index)||$(!1),Y.mapped.type==="DRAGGING")return;qo(ie()),Y.isEnabled&&(Wi(Z,Ne)||$(!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},[]),Ee=a(function(){return Z.current},[]),Ne=_o(Hi),ke=Ne.contextId,Ke=Ne.dragHandleUsageInstructionsId,Ge=Ne.registry,xt=_o(Fs),Ut=xt.type,Ft=xt.droppableId,Tt=f(function(){return{id:Y.draggableId,index:Y.index,type:Ut,droppableId:Ft}},[Y.draggableId,Y.index,Ut,Ft]),St=Y.children,kt=Y.draggableId,mn=Y.isEnabled,sr=Y.shouldRespectForcePress,gr=Y.canDragInteractiveElements,Nr=Y.isClone,Gr=Y.mapped,ra=Y.dropAnimationFinished;if(Gs(Y,ke,Ee),ls(Nr),!Nr){var Hr=f(function(){return{descriptor:Tt,registry:Ge,getDraggableRef:Ee,canDragInteractiveElements:gr,shouldRespectForcePress:sr,isEnabled:mn}},[Tt,Ge,Ee,gr,sr,mn]);Xl(Hr)}var Ia=f(function(){return mn?{tabIndex:0,role:"button","aria-describedby":Ke,"data-rbd-drag-handle-draggable-id":kt,"data-rbd-drag-handle-context-id":ke,draggable:!1,onDragStart:us}:null},[ke,Ke,kt,mn]),Ra=a(function(t){if(Gr.type!=="DRAGGING")return;if(!Gr.dropping)return;if(t.propertyName!=="transform")return;ra()},[ra,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":ke,"data-rbd-draggable-id":kt,style:t,onTransitionEnd:p},dragHandleProps:Ia};return B},[ke,Ia,kt,Gr,Ra,ie]),si=f(function(){return{draggableId:Tt.id,type:Tt.type,source:{index:Tt.index,droppableId:Tt.droppableId}}},[Tt.droppableId,Tt.id,Tt.index,Tt.type]);return St(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(Ne,ke){return{x:Ne,y:ke}}),Z=T(function(Ne,ke,Ke,Ge,xt){return{isDragging:!0,isClone:ke,isDropAnimating:Boolean(xt),dropAnimation:xt,mode:Ne,draggingOver:Ke,combineWith:Ge,combineTargetFor:null}}),ie=T(function(Ne,ke,Ke,Ge,xt,Ut,Ft){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:xt,combineWith:Ut,mode:ke,offset:Ne,dimension:Ke,forceShouldAnimate:Ft,snapshot:Z(ke,Ge,xt,Ut,null)}}}),Ee=function(ke,Ke){if(ke.isDragging){if(ke.critical.draggable.id!==Ke.draggableId)return null;var Ge=ke.current.client.offset,xt=ke.dimensions.draggables[Ke.draggableId],Ut=Ht(ke.impact),Ft=Ql(ke.impact),Tt=ke.forceShouldAnimate;return ie(Y(Ge.x,Ge.y),ke.movementMode,xt,Ke.isClone,Ut,Ft,Tt)}if(ke.phase==="DROP_ANIMATING"){var St=ke.completed;if(St.result.draggableId!==Ke.draggableId)return null;var kt=Ke.isClone,mn=ke.dimensions.draggables[Ke.draggableId],sr=St.result,gr=sr.mode,Nr=wl(sr),Gr=Jl(sr),ra=ke.dropDuration,Hr={duration:ra,curve:$e.drop,moveTo:ke.newHomeClientOffset,opacity:Gr?mt.opacity.drop:null,scale:Gr?mt.scale.drop:null};return{mapped:{type:"DRAGGING",offset:ke.newHomeClientOffset,dimension:mn,dropping:Hr,draggingOver:Nr,combineWith:Gr,mode:gr,forceShouldAnimate:null,snapshot:Z(gr,kt,Nr,Gr,Hr)}}}return null};return Ee}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:Ae,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Vs(null)}};function $l(){var Y=T(function(Ke,Ge){return{x:Ke,y:Ge}}),Z=T(Vs),ie=T(function(Ke,Ge,xt){return Ge===void 0&&(Ge=null),{mapped:{type:"SECONDARY",offset:Ke,combineTargetFor:Ge,shouldAnimateDisplacement:xt,snapshot:Z(Ge)}}}),Ee=function(Ge){return Ge?ie(Ae,Ge,!0):null},Ne=function(Ge,xt,Ut,Ft){var Tt=Ut.displaced.visible[Ge],St=Boolean(Ft.inVirtualList&&Ft.effected[Ge]),kt=it(Ut),mn=kt&&kt.draggableId===Ge?xt:null;if(!Tt){if(!St)return Ee(mn);if(Ut.displaced.invisible[Ge])return null;var sr=ft(Ft.displacedBy.point),gr=Y(sr.x,sr.y);return ie(gr,mn,!0)}if(St)return Ee(mn);var Nr=Ut.displacedBy.point,Gr=Y(Nr.x,Nr.y);return ie(Gr,mn,Tt.shouldAnimate)},ke=function(Ge,xt){if(Ge.isDragging)return Ge.critical.draggable.id===xt.draggableId?null:Ne(xt.draggableId,Ge.critical.draggable.id,Ge.impact,Ge.afterCritical);if(Ge.phase==="DROP_ANIMATING"){var Ut=Ge.completed;return Ut.result.draggableId===xt.draggableId?null:Ne(xt.draggableId,Ut.result.draggableId,Ut.impact,Ut.afterCritical)}return null};return ke}var Tl=function(){var Z=Zl(),ie=$l(),Ee=function(ke,Ke){return Z(ke,Ke)||ie(ke,Ke)||ql};return Ee},Xs={dropAnimationFinished:nt},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:g.a.createElement(Ol,Y)}function Dl(Y){var Z=typeof Y.isDragDisabled=="boolean"?!Y.isDragDisabled:!0,ie=Boolean(Y.disableInteractiveElementBlocking),Ee=Boolean(Y.shouldRespectForcePress);return g.a.createElement(Al,Object(b.a)({},Y,{isClone:!1,isEnabled:Z,canDragInteractiveElements:ie,shouldRespectForcePress:Ee}))}function $o(Y){var Z=Object(M.useContext)(Hi);Z||$(!1);var ie=Z.contextId,Ee=Z.isMovementAllowed,Ne=Object(M.useRef)(null),ke=Object(M.useRef)(null),Ke=Y.children,Ge=Y.droppableId,xt=Y.type,Ut=Y.mode,Ft=Y.direction,Tt=Y.ignoreContainerClipping,St=Y.isDropDisabled,kt=Y.isCombineEnabled,mn=Y.snapshot,sr=Y.useClone,gr=Y.updateViewportMaxScroll,Nr=Y.getContainerForClone,Gr=a(function(){return Ne.current},[]),ra=a(function(j){Ne.current=j},[]),Hr=a(function(){return ke.current},[]),Ia=a(function(j){ke.current=j},[]);Gl({props:Y,getDroppableRef:Gr,getPlaceholderRef:Hr});var Ra=a(function(){Ee()&&gr({maxScroll:bi()})},[Ee,gr]);bl({droppableId:Ge,type:xt,mode:Ut,direction:Ft,isDropDisabled:St,isCombineEnabled:kt,ignoreContainerClipping:Tt,getDroppableRef:Gr});var za=g.a.createElement(ss,{on:Y.placeholder,shouldAnimate:Y.shouldAnimatePlaceholder},function(j){var G=j.onClose,ne=j.data,ge=j.animate;return g.a.createElement(Bs,{placeholder:ne,onClose:G,innerRef:Ia,animate:ge,contextId:ie,onTransitionEnd:Ra})}),si=f(function(){return{innerRef:ra,placeholder:za,droppableProps:{"data-rbd-droppable-id":Ge,"data-rbd-droppable-context-id":ie}}},[ie,Ge,za,ra]),t=sr?sr.dragging.draggableId:null,p=f(function(){return{droppableId:Ge,type:xt,isUsingCloneFor:t}},[Ge,t,xt]);function B(){if(!sr)return null;var j=sr.dragging,G=sr.render,ne=g.a.createElement(Al,{draggableId:j.draggableId,index:j.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ge,we){return G(ge,we,j)});return V.a.createPortal(ne,Nr())}return g.a.createElement(Fs.Provider,{value:p},Ke(si,mn),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}),Ee=T(function(Ke){return{draggableId:Ke.id,type:Ke.type,source:{index:Ke.index,droppableId:Ke.droppableId}}}),Ne=T(function(Ke,Ge,xt,Ut,Ft,Tt){var St=Ft.descriptor.id,kt=Ft.descriptor.droppableId===Ke;if(kt){var mn=Tt?{render:Tt,dragging:Ee(Ft.descriptor)}:null,sr={isDraggingOver:xt,draggingOverWith:xt?St:null,draggingFromThisWith:St,isUsingPlaceholder:!0};return{placeholder:Ft.placeholder,shouldAnimatePlaceholder:!1,snapshot:sr,useClone:mn}}if(!Ge)return ie;if(!Ut)return Z;var gr={isDraggingOver:xt,draggingOverWith:St,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Ft.placeholder,shouldAnimatePlaceholder:!0,snapshot:gr,useClone:null}}),ke=function(Ge,xt){var Ut=xt.droppableId,Ft=xt.type,Tt=!xt.isDropDisabled,St=xt.renderClone;if(Ge.isDragging){var kt=Ge.critical;if(!ws(Ft,kt))return ie;var mn=cs(kt,Ge.dimensions),sr=Ht(Ge.impact)===Ut;return Ne(Ut,Tt,sr,sr,mn,St)}if(Ge.phase==="DROP_ANIMATING"){var gr=Ge.completed;if(!ws(Ft,gr.critical))return ie;var Nr=cs(gr.critical,Ge.dimensions);return Ne(Ut,Tt,wl(gr.result)===Ut,Ht(gr.impact)===Ut,Nr,St)}if(Ge.phase==="IDLE"&&Ge.completed&&!Ge.shouldFlush){var Gr=Ge.completed;if(!ws(Ft,Gr.critical))return ie;var ra=Ht(Gr.impact)===Ut,Hr=Boolean(Gr.impact.at&&Gr.impact.at.type==="COMBINE"),Ia=Gr.critical.droppable.id===Ut;return ra?Hr?Z:ie:Ia?Z:ie}return ie};return ke},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 m});var M=o("MI8n"),g=o("JYp7"),O=o("pmY6"),b=o("24hK"),y=o("746U"),C=o("Cg/j");const A=Object(C.c)("commandService"),m=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 m.registerCommand(e,(a,...l)=>a.get(A).executeCommand(f,...l))}getCommand(e){const f=this._commands.get(e);return!f||f.isEmpty()?void 0:g.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}};m.registerCommand("noop",()=>{})},nukY:function(k,z){k.exports="data:image/png;base64,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"},oRuE:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso10126={pad:function(g,O){var b=O*4,y=b-g.sigBytes%b;g.concat(M.lib.WordArray.random(y-1)).concat(M.lib.WordArray.create([y<<24],1))},unpad:function(g){var O=g.words[g.sigBytes-1>>>2]&255;g.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"),g=o("vuIU"),O=o("Ji7U"),b=o("LK+K"),y=o("rePB"),C=o("VTBJ"),A=o("ODXe"),m=o("q1tI"),e=o("TSYQ"),f=o.n(e),a=o("Kwbf"),l=o("6cGi"),n=o("U8pU"),i=o("4IlW"),r=m.createContext({}),c=r,h={visibility:"hidden"};function d(xe){var lt=xe.prefixCls,Rt=xe.prevIcon,wt=Rt===void 0?"\u2039":Rt,Ht=xe.nextIcon,Lt=Ht===void 0?"\u203A":Ht,Xt=xe.superPrevIcon,rn=Xt===void 0?"\xAB":Xt,xn=xe.superNextIcon,gn=xn===void 0?"\xBB":xn,Nn=xe.onSuperPrev,An=xe.onSuperNext,an=xe.onPrev,Pn=xe.onNext,yn=xe.children,kn=m.useContext(c),Rn=kn.hideNextBtn,Yn=kn.hidePrevBtn;return m.createElement("div",{className:lt},Nn&&m.createElement("button",{type:"button",onClick:Nn,tabIndex:-1,className:"".concat(lt,"-super-prev-btn"),style:Yn?h:{}},rn),an&&m.createElement("button",{type:"button",onClick:an,tabIndex:-1,className:"".concat(lt,"-prev-btn"),style:Yn?h:{}},wt),m.createElement("div",{className:"".concat(lt,"-view")},yn),Pn&&m.createElement("button",{type:"button",onClick:Pn,tabIndex:-1,className:"".concat(lt,"-next-btn"),style:Rn?h:{}},Lt),An&&m.createElement("button",{type:"button",onClick:An,tabIndex:-1,className:"".concat(lt,"-super-next-btn"),style:Rn?h:{}},gn))}var s=d;function u(xe){var lt=m.useContext(c),Rt=lt.hideHeader;if(Rt)return null;var wt=xe.prefixCls,Ht=xe.generateConfig,Lt=xe.locale,Xt=xe.value,rn=xe.format,xn="".concat(wt,"-header");return m.createElement(s,{prefixCls:xn},Xt?Ht.locale.format(Lt.locale,Xt,rn):"\xA0")}var w=u,E=o("YrtM"),_=o("KQm4"),P=new Map;function R(xe,lt,Rt){if(P.get(xe)&&cancelAnimationFrame(P.get(xe)),Rt<=0){P.set(xe,requestAnimationFrame(function(){xe.scrollTop=lt}));return}var wt=lt-xe.scrollTop,Ht=wt/Rt*10;P.set(xe,requestAnimationFrame(function(){xe.scrollTop+=Ht,xe.scrollTop!==lt&&R(xe,lt,Rt-10)}))}function x(xe,lt){var Rt=lt.onLeftRight,wt=lt.onCtrlLeftRight,Ht=lt.onUpDown,Lt=lt.onPageUpDown,Xt=lt.onEnter,rn=xe.which,xn=xe.ctrlKey,gn=xe.metaKey;switch(rn){case i.a.LEFT:if(xn||gn){if(wt)return wt(-1),!0}else if(Rt)return Rt(-1),!0;break;case i.a.RIGHT:if(xn||gn){if(wt)return wt(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(Lt)return Lt(-1),!0;break;case i.a.PAGE_DOWN:if(Lt)return Lt(1),!0;break;case i.a.ENTER:if(Xt)return Xt(),!0;break}return!1}function S(xe,lt,Rt,wt){var Ht=xe;if(!Ht)switch(lt){case"time":Ht=wt?"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,lt){var Rt=xe==="time"?8:10;return Math.max(Rt,lt.length)+2}var T=null,U=new Set;function L(xe){return!T&&typeof window!="undefined"&&window.addEventListener&&(T=function(Rt){Object(_.a)(U).forEach(function(wt){wt(Rt)})},window.addEventListener("mousedown",T)),U.add(xe),function(){U.delete(xe),U.size===0&&(window.removeEventListener("mousedown",T),T=null)}}var N=function(lt){return lt==="month"||lt==="date"?"year":lt},V=function(lt){return lt==="date"?"month":lt},H=function(lt){return lt==="month"||lt==="date"?"quarter":lt},D=function(lt){return lt==="date"?"week":lt},W={year:N,month:V,quarter:H,week:D,time:null,date:null};function F(xe,lt){return xe.some(function(Rt){return Rt&&Rt.contains(lt)})}function I(xe){var lt=xe.prefixCls,Rt=xe.units,wt=xe.onSelect,Ht=xe.value,Lt=xe.active,Xt=xe.hideDisabledOptions,rn="".concat(lt,"-cell"),xn=m.useContext(c),gn=xn.open,Nn=m.useRef(null),An=m.useRef(new Map);return m.useLayoutEffect(function(){var an=An.current.get(Ht);an&&gn!==!1&&R(Nn.current,an.offsetTop,120)},[Ht]),m.useLayoutEffect(function(){if(gn){var an=An.current.get(Ht);an&&R(Nn.current,an.offsetTop,0)}},[gn]),m.createElement("ul",{className:f()("".concat(lt,"-column"),Object(y.a)({},"".concat(lt,"-column-active"),Lt)),ref:Nn,style:{position:"relative"}},Rt.map(function(an){var Pn;return Xt&&an.disabled?null:m.createElement("li",{key:an.value,ref:function(kn){An.current.set(an.value,kn)},className:f()(rn,(Pn={},Object(y.a)(Pn,"".concat(rn,"-disabled"),an.disabled),Object(y.a)(Pn,"".concat(rn,"-selected"),Ht===an.value),Pn)),onClick:function(){if(an.disabled)return;wt(an.value)}},m.createElement("div",{className:"".concat(rn,"-inner")},an.label))}))}var K=I;function ee(xe,lt){for(var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",wt=String(xe);wt.length<lt;)wt="".concat(Rt).concat(xe);return wt}var he=function(){for(var lt=arguments.length,Rt=new Array(lt),wt=0;wt<lt;wt++)Rt[wt]=arguments[wt];return Rt};function de(xe){return xe==null?[]:Array.isArray(xe)?xe:[xe]}function Se(xe){var lt={};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-__"&&(lt[Rt]=xe[Rt])}),lt}function Te(xe,lt){return xe?xe[lt]:null}function ce(xe,lt,Rt){var wt=[Te(xe,0),Te(xe,1)];return wt[Rt]=typeof lt=="function"?lt(wt[Rt]):lt,!wt[0]&&!wt[1]?null:wt}function be(xe,lt,Rt,wt,Ht){var Lt=xe.setHour(lt,Rt);return Lt=xe.setMinute(Lt,wt),Lt=xe.setSecond(Lt,Ht),Lt}function ye(xe,lt,Rt,wt,Ht,Lt){var Xt=Math.floor(xe/wt)*wt;if(Xt<xe)return[Xt,60-Ht,60-Lt];var rn=Math.floor(lt/Ht)*Ht;if(rn<lt)return[Xt,rn,60-Lt];var xn=Math.floor(Rt/Lt)*Lt;return[Xt,rn,xn]}function ue(xe,lt){if(xe.length!==lt.length)return!0;for(var Rt=0;Rt<xe.length;Rt+=1)if(xe[Rt].disabled!==lt[Rt].disabled)return!0;return!1}function se(xe,lt,Rt,wt){for(var Ht=[],Lt=xe;Lt<=lt;Lt+=Rt)Ht.push({label:ee(Lt,2),value:Lt,disabled:(wt||[]).includes(Lt)});return Ht}function $(xe){var lt=xe.generateConfig,Rt=xe.prefixCls,wt=xe.operationRef,Ht=xe.activeColumnIndex,Lt=xe.value,Xt=xe.showHour,rn=xe.showMinute,xn=xe.showSecond,gn=xe.use12Hours,Nn=xe.hourStep,An=Nn===void 0?1:Nn,an=xe.minuteStep,Pn=an===void 0?1:an,yn=xe.secondStep,kn=yn===void 0?1:yn,Rn=xe.disabledHours,Yn=xe.disabledMinutes,mr=xe.disabledSeconds,Br=xe.hideDisabledOptions,Sn=xe.onSelect,Yt=[],hn="".concat(Rt,"-content"),Dn="".concat(Rt,"-time-panel"),tn,wn=Lt?lt.getHour(Lt):-1,_n=Lt?lt.getMinute(Lt):-1,In=Lt?lt.getSecond(Lt):-1,Un=function($t,Jt,Xn,$n){var Ln=Lt||lt.getNow(),rr=Math.max(0,Jt),ur=Math.max(0,Xn),ir=Math.max(0,$n);return Ln=be(lt,Ln,!gn||!$t?rr:rr+12,ur,ir),Ln},ar=se(0,23,An,Rn&&Rn()),qn=Object(E.a)(function(){return ar},ar,ue);gn&&(tn=wn>=12,wn%=12);var Rr=m.useMemo(function(){if(!gn)return[!1,!1];var Gt=[!0,!0];return qn.forEach(function($t){var Jt=$t.disabled,Xn=$t.value;if(Jt)return;Xn>=12?Gt[1]=!1:Gt[0]=!1}),Gt},[gn,qn]),Ir=Object(A.a)(Rr,2),Jn=Ir[0],Ar=Ir[1],vr=m.useMemo(function(){return gn?qn.filter(tn?function(Gt){return Gt.value>=12}:function(Gt){return Gt.value<12}).map(function(Gt){var $t=Gt.value%12,Jt=$t===0?"12":ee($t,2);return Object(C.a)(Object(C.a)({},Gt),{},{label:Jt,value:$t})}):qn},[gn,qn]),zr=se(0,59,Pn,Yn&&Yn(wn)),Lr=se(0,59,kn,mr&&mr(wn,_n));wt.current={onUpDown:function($t){var Jt=Yt[Ht];if(Jt)for(var Xn=Jt.units.findIndex(function(ur){return ur.value===Jt.value}),$n=Jt.units.length,Ln=1;Ln<$n;Ln+=1){var rr=Jt.units[(Xn+$t*Ln+$n)%$n];if(rr.disabled!==!0){Jt.onSelect(rr.value);break}}}};function $r(Gt,$t,Jt,Xn,$n){Gt!==!1&&Yt.push({node:m.cloneElement($t,{prefixCls:Dn,value:Jt,active:Ht===Yt.length,onSelect:$n,units:Xn,hideDisabledOptions:Br}),onSelect:$n,value:Jt,units:Xn})}$r(Xt,m.createElement(K,{key:"hour"}),wn,vr,function(Gt){Sn(Un(tn,Gt,_n,In),"mouse")}),$r(rn,m.createElement(K,{key:"minute"}),_n,zr,function(Gt){Sn(Un(tn,wn,Gt,In),"mouse")}),$r(xn,m.createElement(K,{key:"second"}),In,Lr,function(Gt){Sn(Un(tn,wn,_n,Gt),"mouse")});var nr=-1;return typeof tn=="boolean"&&(nr=tn?1:0),$r(gn===!0,m.createElement(K,{key:"12hours"}),nr,[{label:"AM",value:0,disabled:Jn},{label:"PM",value:1,disabled:Ar}],function(Gt){Sn(Un(!!Gt,wn,_n,In),"mouse")}),m.createElement("div",{className:hn},Yt.map(function(Gt){var $t=Gt.node;return $t}))}var me=$,re=function(lt){return lt.filter(function(Rt){return Rt!==!1}).length};function ae(xe){var lt=xe.generateConfig,Rt=xe.format,wt=Rt===void 0?"HH:mm:ss":Rt,Ht=xe.prefixCls,Lt=xe.active,Xt=xe.operationRef,rn=xe.showHour,xn=xe.showMinute,gn=xe.showSecond,Nn=xe.use12Hours,An=Nn===void 0?!1:Nn,an=xe.onSelect,Pn=xe.value,yn="".concat(Ht,"-time-panel"),kn=m.useRef(),Rn=m.useState(-1),Yn=Object(A.a)(Rn,2),mr=Yn[0],Br=Yn[1],Sn=re([rn,xn,gn,An]);return Xt.current={onKeyDown:function(hn){return x(hn,{onLeftRight:function(tn){Br((mr+tn+Sn)%Sn)},onUpDown:function(tn){mr===-1?Br(0):kn.current&&kn.current.onUpDown(tn)},onEnter:function(){an(Pn||lt.getNow(),"key"),Br(-1)}})},onBlur:function(){Br(-1)}},m.createElement("div",{className:f()(yn,Object(y.a)({},"".concat(yn,"-active"),Lt))},m.createElement(w,Object.assign({},xe,{format:wt,prefixCls:Ht})),m.createElement(me,Object.assign({},xe,{prefixCls:Ht,activeColumnIndex:mr,operationRef:kn})))}var Oe=ae,le=7;function te(xe,lt){return!xe&&!lt?!0:!xe||!lt?!1:void 0}function Q(xe,lt,Rt){var wt=te(lt,Rt);if(typeof wt=="boolean")return wt;var Ht=Math.floor(xe.getYear(lt)/10),Lt=Math.floor(xe.getYear(Rt)/10);return Ht===Lt}function J(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:xe.getYear(lt)===xe.getYear(Rt)}function ve(xe,lt){var Rt=Math.floor(xe.getMonth(lt)/3);return Rt+1}function _e(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:J(xe,lt,Rt)&&ve(xe,lt)===ve(xe,Rt)}function Ae(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:J(xe,lt,Rt)&&xe.getMonth(lt)===xe.getMonth(Rt)}function Je(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:xe.getYear(lt)===xe.getYear(Rt)&&xe.getMonth(lt)===xe.getMonth(Rt)&&xe.getDate(lt)===xe.getDate(Rt)}function tt(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:xe.getHour(lt)===xe.getHour(Rt)&&xe.getMinute(lt)===xe.getMinute(Rt)&&xe.getSecond(lt)===xe.getSecond(Rt)}function ut(xe,lt,Rt,wt){var Ht=te(Rt,wt);return typeof Ht=="boolean"?Ht:xe.locale.getWeek(lt,Rt)===xe.locale.getWeek(lt,wt)}function ft(xe,lt,Rt){return Je(xe,lt,Rt)&&tt(xe,lt,Rt)}function vt(xe,lt,Rt,wt){return!lt||!Rt||!wt?!1:!Je(xe,lt,wt)&&!Je(xe,Rt,wt)&&xe.isAfter(wt,lt)&&xe.isAfter(Rt,wt)}function _t(xe,lt,Rt){var wt=lt.locale.getWeekFirstDay(xe),Ht=lt.setDate(Rt,1),Lt=lt.getWeekDay(Ht),Xt=lt.addDate(Ht,wt-Lt);return lt.getMonth(Xt)===lt.getMonth(Rt)&<.getDate(Xt)>1&&(Xt=lt.addDate(Xt,-7)),Xt}function Ve(xe,lt,Rt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(lt){case"year":return Rt.addYear(xe,wt*10);case"quarter":case"month":return Rt.addYear(xe,wt);default:return Rt.addMonth(xe,wt)}}var je=m.createContext({}),ht=je;function Bt(xe){var lt=xe.cellPrefixCls,Rt=xe.generateConfig,wt=xe.rangedValue,Ht=xe.hoverRangedValue,Lt=xe.isInView,Xt=xe.isSameCell,rn=xe.offsetCell,xn=xe.today,gn=xe.value;function Nn(An){var an,Pn=rn(An,-1),yn=rn(An,1),kn=Te(wt,0),Rn=Te(wt,1),Yn=Te(Ht,0),mr=Te(Ht,1),Br=vt(Rt,Yn,mr,An);function Sn(_n){return Xt(kn,_n)}function Yt(_n){return Xt(Rn,_n)}var hn=Xt(Yn,An),Dn=Xt(mr,An),tn=(Br||Dn)&&(!Lt(Pn)||Yt(Pn)),wn=(Br||hn)&&(!Lt(yn)||Sn(yn));return an={},Object(y.a)(an,"".concat(lt,"-in-view"),Lt(An)),Object(y.a)(an,"".concat(lt,"-in-range"),vt(Rt,kn,Rn,An)),Object(y.a)(an,"".concat(lt,"-range-start"),Sn(An)),Object(y.a)(an,"".concat(lt,"-range-end"),Yt(An)),Object(y.a)(an,"".concat(lt,"-range-start-single"),Sn(An)&&!Rn),Object(y.a)(an,"".concat(lt,"-range-end-single"),Yt(An)&&!kn),Object(y.a)(an,"".concat(lt,"-range-start-near-hover"),Sn(An)&&(Xt(Pn,Yn)||vt(Rt,Yn,mr,Pn))),Object(y.a)(an,"".concat(lt,"-range-end-near-hover"),Yt(An)&&(Xt(yn,mr)||vt(Rt,Yn,mr,yn))),Object(y.a)(an,"".concat(lt,"-range-hover"),Br),Object(y.a)(an,"".concat(lt,"-range-hover-start"),hn),Object(y.a)(an,"".concat(lt,"-range-hover-end"),Dn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start"),tn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-end"),wn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start-near-range"),tn&&Xt(Pn,Rn)),Object(y.a)(an,"".concat(lt,"-range-hover-edge-end-near-range"),wn&&Xt(yn,kn)),Object(y.a)(an,"".concat(lt,"-today"),Xt(xn,An)),Object(y.a)(an,"".concat(lt,"-selected"),Xt(gn,An)),an}return Nn}function Et(xe){for(var lt=xe.prefixCls,Rt=xe.disabledDate,wt=xe.onSelect,Ht=xe.rowNum,Lt=xe.colNum,Xt=xe.prefixColumn,rn=xe.rowClassName,xn=xe.baseDate,gn=xe.getCellClassName,Nn=xe.getCellText,An=xe.getCellNode,an=xe.getCellDate,Pn=xe.titleCell,yn=xe.headerCells,kn=m.useContext(c),Rn=kn.onDateMouseEnter,Yn=kn.onDateMouseLeave,mr="".concat(lt,"-cell"),Br=[],Sn=0;Sn<Ht;Sn+=1){for(var Yt=[],hn=void 0,Dn=function(_n){var In=Sn*Lt+_n,Un=an(xn,In),ar=Rt&&Rt(Un);_n===0&&(hn=Un,Xt&&Yt.push(Xt(hn))),Yt.push(m.createElement("td",{key:_n,title:Pn&&Pn(Un),className:f()(mr,Object(C.a)(Object(y.a)({},"".concat(mr,"-disabled"),ar),gn(Un))),onClick:function(){ar||wt(Un)},onMouseEnter:function(){!ar&&Rn&&Rn(Un)},onMouseLeave:function(){!ar&&Yn&&Yn(Un)}},An?An(Un):m.createElement("div",{className:"".concat(mr,"-inner")},Nn(Un))))},tn=0;tn<Lt;tn+=1)Dn(tn);Br.push(m.createElement("tr",{key:Sn,className:rn&&rn(hn)},Yt))}return m.createElement("div",{className:"".concat(lt,"-body")},m.createElement("table",{className:"".concat(lt,"-content")},yn&&m.createElement("thead",null,m.createElement("tr",null,yn)),m.createElement("tbody",null,Br)))}function Pt(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.prefixColumn,Ht=xe.locale,Lt=xe.rowCount,Xt=xe.viewDate,rn=xe.value,xn=xe.dateRender,gn=m.useContext(ht),Nn=gn.rangedValue,An=gn.hoverRangedValue,an=_t(Ht.locale,Rt,Xt),Pn="".concat(lt,"-cell"),yn=Rt.locale.getWeekFirstDay(Ht.locale),kn=Rt.getNow(),Rn=[],Yn=Ht.shortWeekDays||(Rt.locale.getShortWeekDays?Rt.locale.getShortWeekDays(Ht.locale):[]);wt&&Rn.push(m.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var mr=0;mr<le;mr+=1)Rn.push(m.createElement("th",{key:mr},Yn[(mr+yn)%le]));var Br=Bt({cellPrefixCls:Pn,today:kn,value:rn,generateConfig:Rt,rangedValue:wt?null:Nn,hoverRangedValue:wt?null:An,isSameCell:function(hn,Dn){return Je(Rt,hn,Dn)},isInView:function(hn){return Ae(Rt,hn,Xt)},offsetCell:function(hn,Dn){return Rt.addDate(hn,Dn)}}),Sn=xn?function(Yt){return xn(Yt,kn)}:void 0;return m.createElement(Et,Object.assign({},xe,{rowNum:Lt,colNum:le,baseDate:an,getCellNode:Sn,getCellText:Rt.getDate,getCellClassName:Br,getCellDate:Rt.addDate,titleCell:function(hn){return Rt.locale.format(Ht.locale,hn,"YYYY-MM-DD")},headerCells:Rn}))}var qe=Pt;function He(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Ht=xe.viewDate,Lt=xe.onNextMonth,Xt=xe.onPrevMonth,rn=xe.onNextYear,xn=xe.onPrevYear,gn=xe.onYearClick,Nn=xe.onMonthClick,An=m.useContext(c),an=An.hideHeader;if(an)return null;var Pn="".concat(lt,"-header"),yn=wt.shortMonths||(Rt.locale.getShortMonths?Rt.locale.getShortMonths(wt.locale):[]),kn=Rt.getMonth(Ht),Rn=m.createElement("button",{type:"button",key:"year",onClick:gn,tabIndex:-1,className:"".concat(lt,"-year-btn")},Rt.locale.format(wt.locale,Ht,wt.yearFormat)),Yn=m.createElement("button",{type:"button",key:"month",onClick:Nn,tabIndex:-1,className:"".concat(lt,"-month-btn")},wt.monthFormat?Rt.locale.format(wt.locale,Ht,wt.monthFormat):yn[kn]),mr=wt.monthBeforeYear?[Yn,Rn]:[Rn,Yn];return m.createElement(s,Object.assign({},xe,{prefixCls:Pn,onSuperPrev:xn,onPrev:Xt,onNext:Lt,onSuperNext:rn}),mr)}var Ye=He,Ce=6;function Le(xe){var lt=xe.prefixCls,Rt=xe.panelName,wt=Rt===void 0?"date":Rt,Ht=xe.keyboardConfig,Lt=xe.active,Xt=xe.operationRef,rn=xe.generateConfig,xn=xe.value,gn=xe.viewDate,Nn=xe.onViewDateChange,An=xe.onPanelChange,an=xe.onSelect,Pn="".concat(lt,"-").concat(wt,"-panel");Xt.current={onKeyDown:function(Yn){return x(Yn,Object(C.a)({onLeftRight:function(Br){an(rn.addDate(xn||gn,Br),"key")},onCtrlLeftRight:function(Br){an(rn.addYear(xn||gn,Br),"key")},onUpDown:function(Br){an(rn.addDate(xn||gn,Br*le),"key")},onPageUpDown:function(Br){an(rn.addMonth(xn||gn,Br),"key")}},Ht))}};var yn=function(Yn){var mr=rn.addYear(gn,Yn);Nn(mr),An(null,mr)},kn=function(Yn){var mr=rn.addMonth(gn,Yn);Nn(mr),An(null,mr)};return m.createElement("div",{className:f()(Pn,Object(y.a)({},"".concat(Pn,"-active"),Lt))},m.createElement(Ye,Object.assign({},xe,{prefixCls:lt,value:xn,viewDate:gn,onPrevYear:function(){yn(-1)},onNextYear:function(){yn(1)},onPrevMonth:function(){kn(-1)},onNextMonth:function(){kn(1)},onMonthClick:function(){An("month",gn)},onYearClick:function(){An("year",gn)}})),m.createElement(qe,Object.assign({},xe,{onSelect:function(Yn){return an(Yn,"mouse")},prefixCls:lt,value:xn,viewDate:gn,rowCount:Ce})))}var We=Le;function Ue(xe,lt,Rt){if(!Rt)return lt;var wt=lt;return wt=xe.setHour(wt,xe.getHour(Rt)),wt=xe.setMinute(wt,xe.getMinute(Rt)),wt=xe.setSecond(wt,xe.getSecond(Rt)),wt}var ze=he("date","time");function st(xe){var lt=xe.prefixCls,Rt=xe.operationRef,wt=xe.generateConfig,Ht=xe.value,Lt=xe.defaultValue,Xt=xe.disabledTime,rn=xe.showTime,xn=xe.onSelect,gn="".concat(lt,"-datetime-panel"),Nn=m.useState(null),An=Object(A.a)(Nn,2),an=An[0],Pn=An[1],yn=m.useRef({}),kn=m.useRef({}),Rn=Object(n.a)(rn)==="object"?Object(C.a)({},rn):{};function Yn(Yt){var hn=ze.indexOf(an)+Yt,Dn=ze[hn]||null;return Dn}var mr=function(hn){kn.current.onBlur&&kn.current.onBlur(hn),Pn(null)};Rt.current={onKeyDown:function(hn){if(hn.which===i.a.TAB){var Dn=Yn(hn.shiftKey?-1:1);return Pn(Dn),Dn&&hn.preventDefault(),!0}if(an){var tn=an==="date"?yn:kn;return tn.current&&tn.current.onKeyDown&&tn.current.onKeyDown(hn),!0}return[i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN].includes(hn.which)?(Pn("date"),!0):!1},onBlur:mr,onClose:mr};var Br=function(hn,Dn){var tn=hn;Dn==="date"&&!Ht&&Rn.defaultValue?(tn=wt.setHour(tn,wt.getHour(Rn.defaultValue)),tn=wt.setMinute(tn,wt.getMinute(Rn.defaultValue)),tn=wt.setSecond(tn,wt.getSecond(Rn.defaultValue))):Dn==="time"&&!Ht&&Lt&&(tn=wt.setYear(tn,wt.getYear(Lt)),tn=wt.setMonth(tn,wt.getMonth(Lt)),tn=wt.setDate(tn,wt.getDate(Lt))),xn&&xn(tn,"mouse")},Sn=Xt?Xt(Ht||null):{};return m.createElement("div",{className:f()(gn,Object(y.a)({},"".concat(gn,"-active"),an))},m.createElement(We,Object.assign({},xe,{operationRef:yn,active:an==="date",onSelect:function(hn){Br(Ue(wt,hn,rn&&Object(n.a)(rn)==="object"?rn.defaultValue:null),"date")}})),m.createElement(Oe,Object.assign({},xe,{format:void 0},Rn,Sn,{defaultValue:void 0,operationRef:kn,active:an==="time",onSelect:function(hn){Br(hn,"time")}})))}var Ct=st;function Wt(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Ht=xe.value,Lt="".concat(lt,"-cell"),Xt=function(Nn){return m.createElement("td",{key:"week",className:f()(Lt,"".concat(Lt,"-week"))},Rt.locale.getWeek(wt.locale,Nn))},rn="".concat(lt,"-week-panel-row"),xn=function(Nn){return f()(rn,Object(y.a)({},"".concat(rn,"-selected"),ut(Rt,wt.locale,Ht,Nn)))};return m.createElement(We,Object.assign({},xe,{panelName:"week",prefixColumn:Xt,rowClassName:xn,keyboardConfig:{onLeftRight:null}}))}var Qt=Wt;function Kt(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Ht=xe.viewDate,Lt=xe.onNextYear,Xt=xe.onPrevYear,rn=xe.onYearClick,xn=m.useContext(c),gn=xn.hideHeader;if(gn)return null;var Nn="".concat(lt,"-header");return m.createElement(s,Object.assign({},xe,{prefixCls:Nn,onSuperPrev:Xt,onSuperNext:Lt}),m.createElement("button",{type:"button",onClick:rn,className:"".concat(lt,"-year-btn")},Rt.locale.format(wt.locale,Ht,wt.yearFormat)))}var Ot=Kt,Fe=3,at=4;function it(xe){var lt=xe.prefixCls,Rt=xe.locale,wt=xe.value,Ht=xe.viewDate,Lt=xe.generateConfig,Xt=xe.monthCellRender,rn=m.useContext(ht),xn=rn.rangedValue,gn=rn.hoverRangedValue,Nn="".concat(lt,"-cell"),An=Bt({cellPrefixCls:Nn,value:wt,generateConfig:Lt,rangedValue:xn,hoverRangedValue:gn,isSameCell:function(Rn,Yn){return Ae(Lt,Rn,Yn)},isInView:function(){return!0},offsetCell:function(Rn,Yn){return Lt.addMonth(Rn,Yn)}}),an=Rt.shortMonths||(Lt.locale.getShortMonths?Lt.locale.getShortMonths(Rt.locale):[]),Pn=Lt.setMonth(Ht,0),yn=Xt?function(kn){return Xt(kn,Rt)}:void 0;return m.createElement(Et,Object.assign({},xe,{rowNum:at,colNum:Fe,baseDate:Pn,getCellNode:yn,getCellText:function(Rn){return Rt.monthFormat?Lt.locale.format(Rt.locale,Rn,Rt.monthFormat):an[Lt.getMonth(Rn)]},getCellClassName:An,getCellDate:Lt.addMonth,titleCell:function(Rn){return Lt.locale.format(Rt.locale,Rn,"YYYY-MM")}}))}var Pe=it;function Qe(xe){var lt=xe.prefixCls,Rt=xe.operationRef,wt=xe.onViewDateChange,Ht=xe.generateConfig,Lt=xe.value,Xt=xe.viewDate,rn=xe.onPanelChange,xn=xe.onSelect,gn="".concat(lt,"-month-panel");Rt.current={onKeyDown:function(an){return x(an,{onLeftRight:function(yn){xn(Ht.addMonth(Lt||Xt,yn),"key")},onCtrlLeftRight:function(yn){xn(Ht.addYear(Lt||Xt,yn),"key")},onUpDown:function(yn){xn(Ht.addMonth(Lt||Xt,yn*Fe),"key")},onEnter:function(){rn("date",Lt||Xt)}})}};var Nn=function(an){var Pn=Ht.addYear(Xt,an);wt(Pn),rn(null,Pn)};return m.createElement("div",{className:gn},m.createElement(Ot,Object.assign({},xe,{prefixCls:lt,onPrevYear:function(){Nn(-1)},onNextYear:function(){Nn(1)},onYearClick:function(){rn("year",Xt)}})),m.createElement(Pe,Object.assign({},xe,{prefixCls:lt,onSelect:function(an){xn(an,"mouse"),rn("date",an)}})))}var pt=Qe;function bt(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Ht=xe.viewDate,Lt=xe.onNextYear,Xt=xe.onPrevYear,rn=xe.onYearClick,xn=m.useContext(c),gn=xn.hideHeader;if(gn)return null;var Nn="".concat(lt,"-header");return m.createElement(s,Object.assign({},xe,{prefixCls:Nn,onSuperPrev:Xt,onSuperNext:Lt}),m.createElement("button",{type:"button",onClick:rn,className:"".concat(lt,"-year-btn")},Rt.locale.format(wt.locale,Ht,wt.yearFormat)))}var Dt=bt,It=4,ct=1;function Nt(xe){var lt=xe.prefixCls,Rt=xe.locale,wt=xe.value,Ht=xe.viewDate,Lt=xe.generateConfig,Xt=m.useContext(ht),rn=Xt.rangedValue,xn=Xt.hoverRangedValue,gn="".concat(lt,"-cell"),Nn=Bt({cellPrefixCls:gn,value:wt,generateConfig:Lt,rangedValue:rn,hoverRangedValue:xn,isSameCell:function(Pn,yn){return _e(Lt,Pn,yn)},isInView:function(){return!0},offsetCell:function(Pn,yn){return Lt.addMonth(Pn,yn*3)}}),An=Lt.setDate(Lt.setMonth(Ht,0),1);return m.createElement(Et,Object.assign({},xe,{rowNum:ct,colNum:It,baseDate:An,getCellText:function(Pn){return Lt.locale.format(Rt.locale,Pn,Rt.quarterFormat||"[Q]Q")},getCellClassName:Nn,getCellDate:function(Pn,yn){return Lt.addMonth(Pn,yn*3)},titleCell:function(Pn){return Lt.locale.format(Rt.locale,Pn,"YYYY-[Q]Q")}}))}var jt=Nt;function on(xe){var lt=xe.prefixCls,Rt=xe.operationRef,wt=xe.onViewDateChange,Ht=xe.generateConfig,Lt=xe.value,Xt=xe.viewDate,rn=xe.onPanelChange,xn=xe.onSelect,gn="".concat(lt,"-quarter-panel");Rt.current={onKeyDown:function(an){return x(an,{onLeftRight:function(yn){xn(Ht.addMonth(Lt||Xt,yn*3),"key")},onCtrlLeftRight:function(yn){xn(Ht.addYear(Lt||Xt,yn),"key")},onUpDown:function(yn){xn(Ht.addYear(Lt||Xt,yn),"key")}})}};var Nn=function(an){var Pn=Ht.addYear(Xt,an);wt(Pn),rn(null,Pn)};return m.createElement("div",{className:gn},m.createElement(Dt,Object.assign({},xe,{prefixCls:lt,onPrevYear:function(){Nn(-1)},onNextYear:function(){Nn(1)},onYearClick:function(){rn("year",Xt)}})),m.createElement(jt,Object.assign({},xe,{prefixCls:lt,onSelect:function(an){xn(an,"mouse")}})))}var vn=on;function Wn(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.viewDate,Ht=xe.onPrevDecade,Lt=xe.onNextDecade,Xt=xe.onDecadeClick,rn=m.useContext(c),xn=rn.hideHeader;if(xn)return null;var gn="".concat(lt,"-header"),Nn=Rt.getYear(wt),An=Math.floor(Nn/cr)*cr,an=An+cr-1;return m.createElement(s,Object.assign({},xe,{prefixCls:gn,onSuperPrev:Ht,onSuperNext:Lt}),m.createElement("button",{type:"button",onClick:Xt,className:"".concat(lt,"-decade-btn")},An,"-",an))}var Kn=Wn,Hn=3,fn=4;function lr(xe){var lt=xe.prefixCls,Rt=xe.value,wt=xe.viewDate,Ht=xe.locale,Lt=xe.generateConfig,Xt=m.useContext(ht),rn=Xt.rangedValue,xn=Xt.hoverRangedValue,gn="".concat(lt,"-cell"),Nn=Lt.getYear(wt),An=Math.floor(Nn/cr)*cr,an=An+cr-1,Pn=Lt.setYear(wt,An-Math.ceil((Hn*fn-cr)/2)),yn=function(Yn){var mr=Lt.getYear(Yn);return An<=mr&&mr<=an},kn=Bt({cellPrefixCls:gn,value:Rt,generateConfig:Lt,rangedValue:rn,hoverRangedValue:xn,isSameCell:function(Yn,mr){return J(Lt,Yn,mr)},isInView:yn,offsetCell:function(Yn,mr){return Lt.addYear(Yn,mr)}});return m.createElement(Et,Object.assign({},xe,{rowNum:fn,colNum:Hn,baseDate:Pn,getCellText:Lt.getYear,getCellClassName:kn,getCellDate:Lt.addYear,titleCell:function(Yn){return Lt.locale.format(Ht.locale,Yn,"YYYY")}}))}var Zn=lr,cr=10;function dr(xe){var lt=xe.prefixCls,Rt=xe.operationRef,wt=xe.onViewDateChange,Ht=xe.generateConfig,Lt=xe.value,Xt=xe.viewDate,rn=xe.sourceMode,xn=xe.onSelect,gn=xe.onPanelChange,Nn="".concat(lt,"-year-panel");Rt.current={onKeyDown:function(Pn){return x(Pn,{onLeftRight:function(kn){xn(Ht.addYear(Lt||Xt,kn),"key")},onCtrlLeftRight:function(kn){xn(Ht.addYear(Lt||Xt,kn*cr),"key")},onUpDown:function(kn){xn(Ht.addYear(Lt||Xt,kn*Hn),"key")},onEnter:function(){gn(rn==="date"?"date":"month",Lt||Xt)}})}};var An=function(Pn){var yn=Ht.addYear(Xt,Pn*10);wt(yn),gn(null,yn)};return m.createElement("div",{className:Nn},m.createElement(Kn,Object.assign({},xe,{prefixCls:lt,onPrevDecade:function(){An(-1)},onNextDecade:function(){An(1)},onDecadeClick:function(){gn("decade",Xt)}})),m.createElement(Zn,Object.assign({},xe,{prefixCls:lt,onSelect:function(Pn){gn(rn==="date"?"date":"month",Pn),xn(Pn,"mouse")}})))}var Dr=dr;function hr(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.viewDate,Ht=xe.onPrevDecades,Lt=xe.onNextDecades,Xt=m.useContext(c),rn=Xt.hideHeader;if(rn)return null;var xn="".concat(lt,"-header"),gn=Rt.getYear(wt),Nn=Math.floor(gn/fr)*fr,An=Nn+fr-1;return m.createElement(s,Object.assign({},xe,{prefixCls:xn,onSuperPrev:Ht,onSuperNext:Lt}),Nn,"-",An)}var sn=hr,en=3,On=4;function Fr(xe){var lt=xr-1,Rt=xe.prefixCls,wt=xe.viewDate,Ht=xe.generateConfig,Lt=xe.disabledDate,Xt="".concat(Rt,"-cell"),rn=Ht.getYear(wt),xn=Math.floor(rn/xr)*xr,gn=Math.floor(rn/fr)*fr,Nn=gn+fr-1,An=Ht.setYear(wt,gn-Math.ceil((en*On*xr-fr)/2)),an=function(yn){var kn,Rn=Lt&&Lt(yn),Yn=Ht.getYear(yn),mr=Yn+lt;return kn={},Object(y.a)(kn,"".concat(Xt,"-disabled"),Rn),Object(y.a)(kn,"".concat(Xt,"-in-view"),gn<=Yn&&mr<=Nn),Object(y.a)(kn,"".concat(Xt,"-selected"),Yn===xn),kn};return m.createElement(Et,Object.assign({},xe,{rowNum:On,colNum:en,baseDate:An,getCellText:function(yn){var kn=Ht.getYear(yn);return"".concat(kn,"-").concat(kn+lt)},getCellClassName:an,getCellDate:function(yn,kn){return Ht.addYear(yn,kn*xr)}}))}var Or=Fr,xr=10,fr=xr*10;function pe(xe){var lt=xe.prefixCls,Rt=xe.onViewDateChange,wt=xe.generateConfig,Ht=xe.viewDate,Lt=xe.operationRef,Xt=xe.onSelect,rn=xe.onPanelChange,xn="".concat(lt,"-decade-panel");Lt.current={onKeyDown:function(an){return x(an,{onLeftRight:function(yn){Xt(wt.addYear(Ht,yn*xr),"key")},onCtrlLeftRight:function(yn){Xt(wt.addYear(Ht,yn*fr),"key")},onUpDown:function(yn){Xt(wt.addYear(Ht,yn*xr*en),"key")},onEnter:function(){rn("year",Ht)}})}};var gn=function(an){var Pn=wt.addYear(Ht,an*fr);Rt(Pn),rn(null,Pn)},Nn=function(an){Xt(an,"mouse"),rn("year",an)};return m.createElement("div",{className:xn},m.createElement(sn,Object.assign({},xe,{prefixCls:lt,onPrevDecades:function(){gn(-1)},onNextDecades:function(){gn(1)}})),m.createElement(Or,Object.assign({},xe,{prefixCls:lt,onSelect:Nn})))}var X=pe;function q(xe,lt,Rt){return Rt?m.createElement("div",{className:"".concat(xe,"-footer-extra")},Rt(lt)):null}function oe(xe){var lt=xe.prefixCls,Rt=xe.rangeList,wt=Rt===void 0?[]:Rt,Ht=xe.components,Lt=Ht===void 0?{}:Ht,Xt=xe.needConfirmButton,rn=xe.onNow,xn=xe.onOk,gn=xe.okDisabled,Nn=xe.showNow,An=xe.locale,an,Pn;if(wt.length){var yn=Lt.rangeItem||"span";an=m.createElement(m.Fragment,null,wt.map(function(Rn){var Yn=Rn.label,mr=Rn.onClick,Br=Rn.onMouseEnter,Sn=Rn.onMouseLeave;return m.createElement("li",{key:Yn,className:"".concat(lt,"-preset")},m.createElement(yn,{onClick:mr,onMouseEnter:Br,onMouseLeave:Sn},Yn))}))}if(Xt){var kn=Lt.button||"button";rn&&!an&&Nn!==!1&&(an=m.createElement("li",{className:"".concat(lt,"-now")},m.createElement("a",{className:"".concat(lt,"-now-btn"),onClick:rn},An.now))),Pn=Xt&&m.createElement("li",{className:"".concat(lt,"-ok")},m.createElement(kn,{disabled:gn,onClick:xn},An.ok))}return!an&&!Pn?null:m.createElement("ul",{className:"".concat(lt,"-ranges")},an,Pn)}function De(xe){var lt,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Ht=xe.className,Lt=xe.style,Xt=xe.locale,rn=xe.generateConfig,xn=xe.value,gn=xe.defaultValue,Nn=xe.pickerValue,An=xe.defaultPickerValue,an=xe.disabledDate,Pn=xe.mode,yn=xe.picker,kn=yn===void 0?"date":yn,Rn=xe.tabIndex,Yn=Rn===void 0?0:Rn,mr=xe.showNow,Br=xe.showTime,Sn=xe.showToday,Yt=xe.renderExtraFooter,hn=xe.hideHeader,Dn=xe.onSelect,tn=xe.onChange,wn=xe.onPanelChange,_n=xe.onMouseDown,In=xe.onPickerValueChange,Un=xe.onOk,ar=xe.components,qn=xe.direction,Rr=xe.hourStep,Ir=Rr===void 0?1:Rr,Jn=xe.minuteStep,Ar=Jn===void 0?1:Jn,vr=xe.secondStep,zr=vr===void 0?1:vr,Lr=kn==="date"&&!!Br||kn==="time",$r=24%Ir===0,nr=60%Ar===0,Gt=60%zr===0,$t=m.useContext(c),Jt=$t.operationRef,Xn=$t.panelRef,$n=$t.onSelect,Ln=$t.hideRanges,rr=$t.defaultOpenValue,ur=m.useContext(ht),ir=ur.inRange,qr=ur.panelPosition,or=ur.rangedValue,da=ur.hoverRangedValue,Yr=m.useRef({}),_r=m.useRef(!0),Sr=Object(l.a)(null,{value:xn,defaultValue:gn,postState:function(bn){return!bn&&rr&&kn==="time"?rr:bn}}),Kr=Object(A.a)(Sr,2),Jr=Kr[0],Oa=Kr[1],_a=Object(l.a)(null,{value:Nn,defaultValue:An||Jr,postState:function(bn){return bn||rn.getNow()}}),Ze=Object(A.a)(_a,2),dt=Ze[0],yt=Ze[1],nt=function(bn){yt(bn),In&&In(bn)},Me=function(bn){var jn=W[kn];return jn?jn(bn):bn},Xe=Object(l.a)(function(){return kn==="time"?"time":Me("date")},{value:Pn}),Ie=Object(A.a)(Xe,2),et=Ie[0],$e=Ie[1];m.useEffect(function(){$e(kn)},[kn]);var mt=m.useState(function(){return et}),rt=Object(A.a)(mt,2),Mt=rt[0],Vt=rt[1],pn=function(bn,jn){var Vr=Me(bn||et);Vt(et),$e(Vr),wn&&(et!==Vr||ft(rn,dt,dt))&&wn(jn,Vr)},ln=function(bn,jn){var Vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(et===kn||Vr)&&(Oa(bn),Dn&&Dn(bn),$n&&$n(bn,jn),tn&&!ft(rn,bn,Jr)&&tn(bn))},dn=function(bn){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(bn.which)&&bn.preventDefault(),Yr.current.onKeyDown(bn)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},cn=function(bn){Yr.current&&Yr.current.onBlur&&Yr.current.onBlur(bn)};Jt&&qr!=="right"&&(Jt.current={onKeyDown:dn,onClose:function(){Yr.current&&Yr.current.onClose&&Yr.current.onClose()}}),m.useEffect(function(){xn&&!_r.current&&yt(xn)},[xn]),m.useEffect(function(){_r.current=!1},[]);var Fn,Cn=Object(C.a)(Object(C.a)({},xe),{},{operationRef:Yr,prefixCls:wt,viewDate:dt,value:Jr,onViewDateChange:nt,sourceMode:Mt,onPanelChange:pn,disabledDate:et!=="decade"?an:void 0});delete Cn.onChange,delete Cn.onSelect;switch(et){case"decade":Fn=m.createElement(X,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"year":Fn=m.createElement(Dr,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"month":Fn=m.createElement(pt,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"quarter":Fn=m.createElement(vn,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"week":Fn=m.createElement(Qt,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"time":delete Cn.showTime,Fn=m.createElement(Oe,Object.assign({},Cn,Object(n.a)(Br)==="object"?Br:null,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;default:Br?Fn=m.createElement(Ct,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}})):Fn=m.createElement(We,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}))}var Ur,Pr,Qr=function(){var bn=rn.getNow(),jn=ye(rn.getHour(bn),rn.getMinute(bn),rn.getSecond(bn),$r?Ir:1,nr?Ar:1,Gt?zr:1),Vr=be(rn,bn,jn[0],jn[1],jn[2]);ln(Vr,"submit")};Ln||(Ur=q(wt,et,Yt),Pr=oe({prefixCls:wt,components:ar,needConfirmButton:Lr,okDisabled:!Jr||an&&an(Jr),locale:Xt,showNow:mr,onNow:Lr&&Qr,onOk:function(){Jr&&(ln(Jr,"submit",!0),Un&&Un(Jr))}}));var Wr;if(Sn&&et==="date"&&kn==="date"&&!Br){var ta=rn.getNow(),zn="".concat(wt,"-today-btn"),wr=an&&an(ta);Wr=m.createElement("a",{className:f()(zn,wr&&"".concat(zn,"-disabled")),"aria-disabled":wr,onClick:function(){wr||ln(ta,"mouse",!0)}},Xt.today)}return m.createElement(c.Provider,{value:Object(C.a)(Object(C.a)({},$t),{},{hideHeader:"hideHeader"in xe?hn:$t.hideHeader,hidePrevBtn:ir&&qr==="right",hideNextBtn:ir&&qr==="left"})},m.createElement("div",{tabIndex:Yn,className:f()("".concat(wt,"-panel"),Ht,(lt={},Object(y.a)(lt,"".concat(wt,"-panel-has-range"),or&&or[0]&&or[1]),Object(y.a)(lt,"".concat(wt,"-panel-has-range-hover"),da&&da[0]&&da[1]),Object(y.a)(lt,"".concat(wt,"-panel-rtl"),qn==="rtl"),lt)),style:Lt,onKeyDown:dn,onBlur:cn,onMouseDown:_n,ref:Xn},Fn,Ur||Pr||Wr?m.createElement("div",{className:"".concat(wt,"-footer")},Ur,Pr,Wr):null))}var fe=De,ot=o("uciX"),Zt={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 Mn(xe){var lt,Rt=xe.prefixCls,wt=xe.popupElement,Ht=xe.popupStyle,Lt=xe.visible,Xt=xe.dropdownClassName,rn=xe.dropdownAlign,xn=xe.transitionName,gn=xe.getPopupContainer,Nn=xe.children,An=xe.range,an=xe.popupPlacement,Pn=xe.direction,yn="".concat(Rt,"-dropdown"),kn=function(){return an!==void 0?an:Pn==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(ot.a,{showAction:[],hideAction:[],popupPlacement:kn(),builtinPlacements:Zt,prefixCls:yn,popupTransitionName:xn,popup:wt,popupAlign:rn,popupVisible:Lt,popupClassName:f()(Xt,(lt={},Object(y.a)(lt,"".concat(yn,"-range"),An),Object(y.a)(lt,"".concat(yn,"-rtl"),Pn==="rtl"),lt)),popupStyle:Ht,getPopupContainer:gn},Nn)}var Vn=Mn;function qt(xe){var lt=xe.open,Rt=xe.value,wt=xe.isClickOutside,Ht=xe.triggerOpen,Lt=xe.forwardKeyDown,Xt=xe.blurToCancel,rn=xe.onSubmit,xn=xe.onCancel,gn=xe.onFocus,Nn=xe.onBlur,An=Object(m.useState)(!1),an=Object(A.a)(An,2),Pn=an[0],yn=an[1],kn=Object(m.useState)(!1),Rn=Object(A.a)(kn,2),Yn=Rn[0],mr=Rn[1],Br=Object(m.useRef)(!1),Sn=Object(m.useRef)(!1),Yt={onMouseDown:function(){yn(!0),Ht(!0)},onKeyDown:function(Dn){switch(Dn.which){case i.a.ENTER:{lt?rn()!==!1&&yn(!0):Ht(!0),Dn.preventDefault();return}case i.a.TAB:{Pn&<&&!Dn.shiftKey?(yn(!1),Dn.preventDefault()):!Pn&<&&(!Lt(Dn)&&Dn.shiftKey&&(yn(!0),Dn.preventDefault()));return}case i.a.ESC:{yn(!0),xn();return}}!lt&&![i.a.SHIFT].includes(Dn.which)?Ht(!0):Pn||Lt(Dn)},onFocus:function(Dn){yn(!0),mr(!0),gn&&gn(Dn)},onBlur:function(Dn){if(Br.current||!wt(document.activeElement)){Br.current=!1;return}Xt?setTimeout(function(){wt(document.activeElement)&&xn()},0):lt&&(Ht(!1),Sn.current&&rn()),mr(!1),Nn&&Nn(Dn)}};return Object(m.useEffect)(function(){Sn.current=!1},[lt]),Object(m.useEffect)(function(){Sn.current=!0},[Rt]),Object(m.useEffect)(function(){return L(function(hn){var Dn=hn.target;lt&&(wt(Dn)?Yn||Ht(!1):(Br.current=!0,requestAnimationFrame(function(){Br.current=!1})))})}),[Yt,{focused:Yn,typing:Pn}]}function En(xe){var lt=xe.valueTexts,Rt=xe.onTextChange,wt=m.useState(""),Ht=Object(A.a)(wt,2),Lt=Ht[0],Xt=Ht[1],rn=m.useRef([]);rn.current=lt;function xn(Nn){Xt(Nn),Rt(Nn)}function gn(){Xt(rn.current[0])}return m.useEffect(function(){lt.every(function(Nn){return Nn!==Lt})&&gn()},[lt.join("||")]),[Lt,xn,gn]}var un=o("Gytx"),jr=o.n(un);function aa(xe,lt){var Rt=lt.formatList,wt=lt.generateConfig,Ht=lt.locale;return Object(E.a)(function(){if(!xe)return[[""],""];for(var Lt="",Xt=[],rn=0;rn<Rt.length;rn+=1){var xn=Rt[rn],gn=wt.locale.format(Ht.locale,xe,xn);Xt.push(gn),rn===0&&(Lt=gn)}return[Xt,Lt]},[xe,Rt],function(Lt,Xt){return Lt[0]!==Xt[0]||!jr()(Lt[1],Xt[1])})}function oa(xe,lt){var Rt=lt.formatList,wt=lt.generateConfig,Ht=lt.locale,Lt=Object(m.useState)(null),Xt=Object(A.a)(Lt,2),rn=Xt[0],xn=Xt[1],gn=Object(m.useRef)(null);function Nn(Rn){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(gn.current),Yn){xn(Rn);return}gn.current=requestAnimationFrame(function(){xn(Rn)})}var An=aa(rn,{formatList:Rt,generateConfig:wt,locale:Ht}),an=Object(A.a)(An,2),Pn=an[1];function yn(Rn){Nn(Rn)}function kn(){var Rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Nn(null,Rn)}return Object(m.useEffect)(function(){kn(!0)},[xe]),Object(m.useEffect)(function(){return function(){return cancelAnimationFrame(gn.current)}},[]),[Pn,yn,kn]}function er(xe){var lt,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Ht=xe.id,Lt=xe.tabIndex,Xt=xe.style,rn=xe.className,xn=xe.dropdownClassName,gn=xe.dropdownAlign,Nn=xe.popupStyle,An=xe.transitionName,an=xe.generateConfig,Pn=xe.locale,yn=xe.inputReadOnly,kn=xe.allowClear,Rn=xe.autoFocus,Yn=xe.showTime,mr=xe.picker,Br=mr===void 0?"date":mr,Sn=xe.format,Yt=xe.use12Hours,hn=xe.value,Dn=xe.defaultValue,tn=xe.open,wn=xe.defaultOpen,_n=xe.defaultOpenValue,In=xe.suffixIcon,Un=xe.clearIcon,ar=xe.disabled,qn=xe.disabledDate,Rr=xe.placeholder,Ir=xe.getPopupContainer,Jn=xe.pickerRef,Ar=xe.panelRender,vr=xe.onChange,zr=xe.onOpenChange,Lr=xe.onFocus,$r=xe.onBlur,nr=xe.onMouseDown,Gt=xe.onMouseUp,$t=xe.onMouseEnter,Jt=xe.onMouseLeave,Xn=xe.onContextMenu,$n=xe.onClick,Ln=xe.direction,rr=xe.autoComplete,ur=rr===void 0?"off":rr,ir=m.useRef(null),qr=Br==="date"&&!!Yn||Br==="time",or=de(S(Sn,Br,Yn,Yt)),da=m.useRef(null),Yr=m.useRef(null),_r=Object(l.a)(null,{value:hn,defaultValue:Dn}),Sr=Object(A.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Oa=m.useState(Kr),_a=Object(A.a)(Oa,2),Ze=_a[0],dt=_a[1],yt=m.useRef(null),nt=Object(l.a)(!1,{value:tn,defaultValue:wn,postState:function(tr){return ar?!1:tr},onChange:function(tr){zr&&zr(tr),!tr&&yt.current&&yt.current.onClose&&yt.current.onClose()}}),Me=Object(A.a)(nt,2),Xe=Me[0],Ie=Me[1],et=aa(Ze,{formatList:or,generateConfig:an,locale:Pn}),$e=Object(A.a)(et,2),mt=$e[0],rt=$e[1],Mt=En({valueTexts:mt,onTextChange:function(tr){var pa=an.locale.parse(Pn.locale,tr,or);pa&&(!qn||!qn(pa))&&dt(pa)}}),Vt=Object(A.a)(Mt,3),pn=Vt[0],ln=Vt[1],dn=Vt[2],cn=function(tr){dt(tr),Jr(tr),vr&&!ft(an,Kr,tr)&&vr(tr,tr?an.locale.format(Pn.locale,tr,or[0]):"")},Fn=function(tr){if(ar&&tr)return;Ie(tr)},Cn=function(tr){return Xe&&yt.current&&yt.current.onKeyDown?yt.current.onKeyDown(tr):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ur=function(){Gt&&Gt.apply(void 0,arguments),ir.current&&(ir.current.focus(),Fn(!0))},Pr=qt({blurToCancel:qr,open:Xe,value:pn,triggerOpen:Fn,forwardKeyDown:Cn,isClickOutside:function(tr){return!F([da.current,Yr.current],tr)},onSubmit:function(){return qn&&qn(Ze)?!1:(cn(Ze),Fn(!1),dn(),!0)},onCancel:function(){Fn(!1),dt(Kr),dn()},onFocus:Lr,onBlur:$r}),Qr=Object(A.a)(Pr,2),Wr=Qr[0],ta=Qr[1],zn=ta.focused,wr=ta.typing;m.useEffect(function(){Xe||(dt(Kr),!mt.length||mt[0]===""?ln(""):rt!==pn&&dn())},[Xe,mt]),m.useEffect(function(){Xe||dn()},[Br]),m.useEffect(function(){dt(Kr)},[Kr]),Jn&&(Jn.current={focus:function(){ir.current&&ir.current.focus()},blur:function(){ir.current&&ir.current.blur()}});var Gn=Object(C.a)(Object(C.a)({},xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),bn=m.createElement(fe,Object.assign({},Gn,{generateConfig:an,className:f()(Object(y.a)({},"".concat(wt,"-panel-focused"),!wr)),value:Ze,locale:Pn,tabIndex:-1,onChange:dt,direction:Ln}));Ar&&(bn=Ar(bn));var jn=m.createElement("div",{className:"".concat(wt,"-panel-container"),onMouseDown:function(tr){tr.preventDefault()}},bn),Vr;In&&(Vr=m.createElement("span",{className:"".concat(wt,"-suffix")},In));var ua;kn&&Kr&&!ar&&(ua=m.createElement("span",{onMouseDown:function(tr){tr.preventDefault(),tr.stopPropagation()},onMouseUp:function(tr){tr.preventDefault(),tr.stopPropagation(),cn(null),Fn(!1)},className:"".concat(wt,"-clear")},Un||m.createElement("span",{className:"".concat(wt,"-clear-btn")})));var pr=function(tr,pa){(pa==="submit"||pa!=="key"&&!qr)&&(cn(tr),Fn(!1))},na=Ln==="rtl"?"bottomRight":"bottomLeft",Ca=oa(pn,{formatList:or,generateConfig:an,locale:Pn}),ha=Object(A.a)(Ca,3),Sa=ha[0],Tr=ha[1],br=ha[2];return m.createElement(c.Provider,{value:{operationRef:yt,hideHeader:Br==="time",panelRef:da,onSelect:pr,open:Xe,defaultOpenValue:_n,onDateMouseEnter:Tr,onDateMouseLeave:br}},m.createElement(Vn,{visible:Xe,popupElement:jn,popupStyle:Nn,prefixCls:wt,dropdownClassName:xn,dropdownAlign:gn,getPopupContainer:Ir,transitionName:An,popupPlacement:na,direction:Ln},m.createElement("div",{className:f()(wt,rn,(lt={},Object(y.a)(lt,"".concat(wt,"-disabled"),ar),Object(y.a)(lt,"".concat(wt,"-focused"),zn),Object(y.a)(lt,"".concat(wt,"-rtl"),Ln==="rtl"),lt)),style:Xt,onMouseDown:nr,onMouseUp:Ur,onMouseEnter:$t,onMouseLeave:Jt,onContextMenu:Xn,onClick:$n},m.createElement("div",{className:f()("".concat(wt,"-input"),Object(y.a)({},"".concat(wt,"-input-placeholder"),!!Sa)),ref:Yr},m.createElement("input",Object.assign({id:Ht,tabIndex:Lt,disabled:ar,readOnly:yn||!wr,value:Sa||pn,onChange:function(tr){ln(tr.target.value)},autoFocus:Rn,placeholder:Rr,ref:ir,title:pn},Wr,{size:v(Br,or[0])},Se(xe),{autoComplete:ur})),Vr,ua))))}var Ba=function(xe){Object(O.a)(Rt,xe);var lt=Object(b.a)(Rt);function Rt(){var wt;return Object(M.a)(this,Rt),wt=lt.apply(this,arguments),wt.pickerRef=m.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Rt,[{key:"render",value:function(){return m.createElement(er,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),Ea=Ba;function ca(xe,lt,Rt){var wt=xe.picker,Ht=xe.locale,Lt=xe.selectedValue,Xt=xe.disabledDate,rn=xe.disabled,xn=xe.generateConfig,gn=Te(Lt,0),Nn=Te(Lt,1);function An(Rn){var Yn=xn.getYear(Rn),mr=xn.locale.getWeek(Ht.locale,Rn);return Yn*100+mr}function an(Rn){var Yn=xn.getYear(Rn),mr=xn.getMonth(Rn);return Yn*100+mr}function Pn(Rn){var Yn=xn.getYear(Rn),mr=ve(xn,Rn);return Yn*10+mr}var yn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(rn[1]&&Nn)return!Je(xn,Rn,Nn)&&xn.isAfter(Rn,Nn);if(lt&&Nn)switch(wt){case"quarter":return Pn(Rn)>Pn(Nn);case"month":return an(Rn)>an(Nn);case"week":return An(Rn)>An(Nn);default:return!Je(xn,Rn,Nn)&&xn.isAfter(Rn,Nn)}return!1},[Xt,rn[1],Nn,lt]),kn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(rn[0]&&gn)return!Je(xn,Rn,Nn)&&xn.isAfter(gn,Rn);if(Rt&&gn)switch(wt){case"quarter":return Pn(Rn)<Pn(gn);case"month":return an(Rn)<an(gn);case"week":return An(Rn)<An(gn);default:return!Je(xn,Rn,gn)&&xn.isAfter(gn,Rn)}return!1},[Xt,rn[0],gn,Rt]);return[yn,kn]}function Ka(xe,lt,Rt,wt){var Ht=Ve(xe,Rt,wt,1);function Lt(Xt){return Xt(xe,lt)?"same":Xt(Ht,lt)?"closing":"far"}switch(Rt){case"year":return Lt(function(Xt,rn){return Q(wt,Xt,rn)});case"quarter":case"month":return Lt(function(Xt,rn){return J(wt,Xt,rn)});default:return Lt(function(Xt,rn){return Ae(wt,Xt,rn)})}}function Ta(xe,lt,Rt,wt){var Ht=Te(xe,0),Lt=Te(xe,1);if(lt===0)return Ht;if(Ht&&Lt){var Xt=Ka(Ht,Lt,Rt,wt);switch(Xt){case"same":return Ht;case"closing":return Ht;default:return Ve(Lt,Rt,wt,-1)}}return Ht}function Ja(xe){var lt=xe.values,Rt=xe.picker,wt=xe.defaultDates,Ht=xe.generateConfig,Lt=m.useState(function(){return[Te(wt,0),Te(wt,1)]}),Xt=Object(A.a)(Lt,2),rn=Xt[0],xn=Xt[1],gn=m.useState(null),Nn=Object(A.a)(gn,2),An=Nn[0],an=Nn[1],Pn=Te(lt,0),yn=Te(lt,1);function kn(Yn){return rn[Yn]?rn[Yn]:Te(An,Yn)||Ta(lt,Yn,Rt,Ht)||Pn||yn||Ht.getNow()}function Rn(Yn,mr){if(Yn){var Br=ce(An,Yn,mr);xn(ce(rn,null,mr)||[null,null]);var Sn=(mr+1)%2;Te(lt,Sn)||(Br=ce(Br,Yn,Sn)),an(Br)}else(Pn||yn)&&an(null)}return[kn,Rn]}function Ua(xe,lt){return xe&&xe[0]&&xe[1]&<.isAfter(xe[0],xe[1])?[xe[1],xe[0]]:xe}function li(xe,lt,Rt,wt){return xe||wt&&wt[lt]?!0:!!Rt[(lt+1)%2]}function oi(xe){var lt,Rt,wt,Ht=xe.prefixCls,Lt=Ht===void 0?"rc-picker":Ht,Xt=xe.id,rn=xe.style,xn=xe.className,gn=xe.popupStyle,Nn=xe.dropdownClassName,An=xe.transitionName,an=xe.dropdownAlign,Pn=xe.getPopupContainer,yn=xe.generateConfig,kn=xe.locale,Rn=xe.placeholder,Yn=xe.autoFocus,mr=xe.disabled,Br=xe.format,Sn=xe.picker,Yt=Sn===void 0?"date":Sn,hn=xe.showTime,Dn=xe.use12Hours,tn=xe.separator,wn=tn===void 0?"~":tn,_n=xe.value,In=xe.defaultValue,Un=xe.defaultPickerValue,ar=xe.open,qn=xe.defaultOpen,Rr=xe.disabledDate,Ir=xe.disabledTime,Jn=xe.dateRender,Ar=xe.panelRender,vr=xe.ranges,zr=xe.allowEmpty,Lr=xe.allowClear,$r=xe.suffixIcon,nr=xe.clearIcon,Gt=xe.pickerRef,$t=xe.inputReadOnly,Jt=xe.mode,Xn=xe.renderExtraFooter,$n=xe.onChange,Ln=xe.onOpenChange,rr=xe.onPanelChange,ur=xe.onCalendarChange,ir=xe.onFocus,qr=xe.onBlur,or=xe.onOk,da=xe.components,Yr=xe.order,_r=xe.direction,Sr=xe.activePickerIndex,Kr=xe.autoComplete,Jr=Kr===void 0?"off":Kr,Oa=Yt==="date"&&!!hn||Yt==="time",_a=Object(m.useRef)({}),Ze=Object(m.useRef)(null),dt=Object(m.useRef)(null),yt=Object(m.useRef)(null),nt=Object(m.useRef)(null),Me=Object(m.useRef)(null),Xe=Object(m.useRef)(null),Ie=Object(m.useRef)(null),et=de(S(Br,Yt,hn,Dn)),$e=Object(l.a)(0,{value:Sr}),mt=Object(A.a)($e,2),rt=mt[0],Mt=mt[1],Vt=Object(m.useRef)(null),pn=m.useMemo(function(){return Array.isArray(mr)?mr:[mr||!1,mr||!1]},[mr]),ln=Object(l.a)(null,{value:_n,defaultValue:In,postState:function(Cr){return Yt==="time"&&!Yr?Cr:Ua(Cr,yn)}}),dn=Object(A.a)(ln,2),cn=dn[0],Fn=dn[1],Cn=Ja({values:cn,picker:Yt,defaultDates:Un,generateConfig:yn}),Ur=Object(A.a)(Cn,2),Pr=Ur[0],Qr=Ur[1],Wr=Object(l.a)(cn,{postState:function(Cr){var Zr=Cr;if(pn[0]&&pn[1])return Zr;for(var va=0;va<2;va+=1)pn[va]&&!Te(Zr,va)&&!Te(zr,va)&&(Zr=ce(Zr,yn.getNow(),va));return Zr}}),ta=Object(A.a)(Wr,2),zn=ta[0],wr=ta[1],Gn=Object(l.a)([Yt,Yt],{value:Jt}),bn=Object(A.a)(Gn,2),jn=bn[0],Vr=bn[1];Object(m.useEffect)(function(){Vr([Yt,Yt])},[Yt]);var ua=function(Cr,Zr){Vr(Cr),rr&&rr(Zr,Cr)},pr=ca({picker:Yt,selectedValue:zn,locale:kn,disabled:pn,disabledDate:Rr,generateConfig:yn},_a.current[1],_a.current[0]),na=Object(A.a)(pr,2),Ca=na[0],ha=na[1],Sa=Object(l.a)(!1,{value:ar,defaultValue:qn,postState:function(Cr){return pn[rt]?!1:Cr},onChange:function(Cr){Ln&&Ln(Cr),!Cr&&Vt.current&&Vt.current.onClose&&Vt.current.onClose()}}),Tr=Object(A.a)(Sa,2),br=Tr[0],Mr=Tr[1],tr=br&&rt===0,pa=br&&rt===1,xa=Object(m.useState)(0),ba=Object(A.a)(xa,2),Aa=ba[0],ga=ba[1];Object(m.useEffect)(function(){!br&&Ze.current&&ga(Ze.current.offsetWidth)},[br]);var Na=m.useRef();function ka(sa,Cr){if(sa)clearTimeout(Na.current),_a.current[Cr]=!0,Mt(Cr),Mr(sa),br||Qr(null,Cr);else if(rt===Cr){Mr(sa);var Zr=_a.current;Na.current=setTimeout(function(){Zr===_a.current&&(_a.current={})})}}function Fa(sa){ka(!0,sa),setTimeout(function(){var Cr=[Xe,Ie][sa];Cr.current&&Cr.current.focus()},0)}function ni(sa,Cr){var Zr=sa,va=Te(Zr,0),Wa=Te(Zr,1);va&&Wa&&yn.isAfter(va,Wa)&&(Yt==="week"&&!ut(yn,kn.locale,va,Wa)||Yt==="quarter"&&!_e(yn,va,Wa)||Yt!=="week"&&Yt!=="quarter"&&Yt!=="time"&&!Je(yn,va,Wa)?(Cr===0?(Zr=[va,null],Wa=null):(va=null,Zr=[null,Wa]),_a.current=Object(y.a)({},Cr,!0)):(Yt!=="time"||Yr!==!1)&&(Zr=Ua(Zr,yn))),wr(Zr);var Ei=Zr&&Zr[0]?yn.locale.format(kn.locale,Zr[0],et[0]):"",Pi=Zr&&Zr[1]?yn.locale.format(kn.locale,Zr[1],et[0]):"";if(ur){var $a={range:Cr===0?"start":"end"};ur(Zr,[Ei,Pi],$a)}var xi=li(va,0,pn,zr),Ki=li(Wa,1,pn,zr),go=Zr===null||xi&&Ki;go&&(Fn(Zr),$n&&(!ft(yn,Te(cn,0),va)||!ft(yn,Te(cn,1),Wa))&&$n(Zr,[Ei,Pi]));var Qa=null;Cr===0&&!pn[1]?Qa=1:Cr===1&&!pn[0]&&(Qa=0),Qa!==null&&Qa!==rt&&(!_a.current[Qa]||!Te(Zr,Qa))&&Te(Zr,Cr)?Fa(Qa):ka(!1,Cr)}var Fi=function(Cr){return br&&Vt.current&&Vt.current.onKeyDown?Vt.current.onKeyDown(Cr):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ai={formatList:et,generateConfig:yn,locale:kn},La=aa(Te(zn,0),Ai),bi=Object(A.a)(La,2),Si=bi[0],ja=bi[1],Ma=aa(Te(zn,1),Ai),Za=Object(A.a)(Ma,2),to=Za[0],Mo=Za[1],Ii=function(Cr,Zr){var va=yn.locale.parse(kn.locale,Cr,et),Wa=Zr===0?Ca:ha;va&&!Wa(va)&&(wr(ce(zn,va,Zr)),Qr(va,Zr))},no=En({valueTexts:Si,onTextChange:function(Cr){return Ii(Cr,0)}}),ro=Object(A.a)(no,3),mi=ro[0],uo=ro[1],Io=ro[2],Lo=En({valueTexts:to,onTextChange:function(Cr){return Ii(Cr,1)}}),bo=Object(A.a)(Lo,3),Vi=bo[0],co=bo[1],Xi=bo[2],Yi=Object(m.useState)(null),No=Object(A.a)(Yi,2),yo=No[0],ao=No[1],Ji=Object(m.useState)(null),Qi=Object(A.a)(Ji,2),ei=Qi[0],Li=Qi[1],Di=oa(mi,{formatList:et,generateConfig:yn,locale:kn}),Zi=Object(A.a)(Di,3),Ri=Zi[0],Eo=Zi[1],xo=Zi[2],Co=oa(Vi,{formatList:et,generateConfig:yn,locale:kn}),io=Object(A.a)(Co,3),Ni=io[0],qi=io[1],ko=io[2],oo=function(Cr){Li(ce(zn,Cr,rt)),rt===0?Eo(Cr):qi(Cr)},so=function(){Li(ce(zn,null,rt)),rt===0?xo():ko()},So=function(Cr,Zr){return{blurToCancel:Oa,forwardKeyDown:Fi,onBlur:qr,isClickOutside:function(Wa){return!F([dt.current,yt.current,nt.current],Wa)},onFocus:function(Wa){Mt(Cr),ir&&ir(Wa)},triggerOpen:function(Wa){ka(Wa,Cr)},onSubmit:function(){ni(zn,Cr),Zr()},onCancel:function(){ka(!1,Cr),wr(cn),Zr()}}},Uo=qt(Object(C.a)(Object(C.a)({},So(0,Io)),{},{open:tr,value:mi})),jo=Object(A.a)(Uo,2),fi=jo[0],Ha=jo[1],ri=Ha.focused,Xa=Ha.typing,ai=qt(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(Cr){!br&&!Xe.current.contains(Cr.target)&&!Ie.current.contains(Cr.target)&&(pn[0]?pn[1]||Fa(1):Fa(0))},Oo=function(Cr){br&&(ri||To)&&!Xe.current.contains(Cr.target)&&!Ie.current.contains(Cr.target)&&Cr.preventDefault()},fo=cn&&cn[0]?yn.locale.format(kn.locale,cn[0],"YYYYMMDDHHmmss"):"",Wo=cn&&cn[1]?yn.locale.format(kn.locale,cn[1],"YYYYMMDDHHmmss"):"";Object(m.useEffect)(function(){br||(wr(cn),!Si.length||Si[0]===""?uo(""):ja!==mi&&Io(),!to.length||to[0]===""?co(""):Mo!==Vi&&Xi())},[br,Si,to]),Object(m.useEffect)(function(){wr(cn)},[fo,Wo]),Gt&&(Gt.current={focus:function(){Xe.current&&Xe.current.focus()},blur:function(){Xe.current&&Xe.current.blur(),Ie.current&&Ie.current.blur()}});var lo=Object.keys(vr||{}),Da=lo.map(function(sa){var Cr=vr[sa],Zr=typeof Cr=="function"?Cr():Cr;return{label:sa,onClick:function(){ni(Zr,null),ka(!1,rt)},onMouseEnter:function(){ao(Zr)},onMouseLeave:function(){ao(null)}}});function ya(){var sa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Cr=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=hn;if(hn&&Object(n.a)(hn)==="object"&&hn.defaultValue){var Wa=hn.defaultValue;va=Object(C.a)(Object(C.a)({},hn),{},{defaultValue:Te(Wa,rt)||void 0})}var Ei=null;return Jn&&(Ei=function($a,xi){return Jn($a,xi,{range:rt?"end":"start"})}),m.createElement(ht.Provider,{value:{inRange:!0,panelPosition:sa,rangedValue:yo||zn,hoverRangedValue:Zr}},m.createElement(fe,Object.assign({},xe,Cr,{dateRender:Ei,showTime:va,mode:jn[rt],generateConfig:yn,style:void 0,direction:_r,disabledDate:rt===0?Ca:ha,disabledTime:function($a){return Ir?Ir($a,rt===0?"start":"end"):!1},className:f()(Object(y.a)({},"".concat(Lt,"-panel-focused"),rt===0?!Xa:!$i)),value:Te(zn,rt),locale:kn,tabIndex:-1,onPanelChange:function($a,xi){ua(ce(jn,xi,rt),ce(zn,$a,rt));var Ki=$a;sa==="right"&&jn[rt]===xi&&(Ki=Ve(Ki,xi,yn,-1)),Qr(Ki,rt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ga=0,ui=0;rt&&yt.current&&Me.current&&dt.current&&(Ga=yt.current.offsetWidth+Me.current.offsetWidth,dt.current.offsetWidth&&Ga>dt.current.offsetWidth&&(ui=Ga));var eo=_r==="rtl"?{right:Ga}:{left:Ga};function ki(){var sa,Cr=q(Lt,jn[rt],Xn),Zr=oe({prefixCls:Lt,components:da,needConfirmButton:Oa,okDisabled:!Te(zn,rt)||Rr&&Rr(zn[rt]),locale:kn,rangeList:Da,onOk:function(){Te(zn,rt)&&(ni(zn,rt),or&&or(zn))}});if(Yt!=="time"&&!hn){var va=Pr(rt),Wa=Ve(va,Yt,yn),Ei=jn[rt],Pi=Ei===Yt,$a=ya(Pi?"left":!1,{pickerValue:va,onPickerValueChange:function(Qa){Qr(Qa,rt)}}),xi=ya("right",{pickerValue:Wa,onPickerValueChange:function(Qa){Qr(Ve(Qa,Yt,yn,-1),rt)}});_r==="rtl"?sa=m.createElement(m.Fragment,null,xi,Pi&&$a):sa=m.createElement(m.Fragment,null,$a,Pi&&xi)}else sa=ya();var Ki=m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(Lt,"-panels")},sa),(Cr||Zr)&&m.createElement("div",{className:"".concat(Lt,"-footer")},Cr,Zr));return Ar&&(Ki=Ar(Ki)),m.createElement("div",{className:"".concat(Lt,"-panel-container"),style:{marginLeft:ui},ref:dt,onMouseDown:function(Qa){Qa.preventDefault()}},Ki)}var ho=m.createElement("div",{className:f()("".concat(Lt,"-range-wrapper"),"".concat(Lt,"-").concat(Yt,"-range-wrapper")),style:{minWidth:Aa}},m.createElement("div",{className:"".concat(Lt,"-range-arrow"),style:eo}),ki()),wi;$r&&(wi=m.createElement("span",{className:"".concat(Lt,"-suffix")},$r));var qa;Lr&&(Te(cn,0)&&!pn[0]||Te(cn,1)&&!pn[1])&&(qa=m.createElement("span",{onMouseDown:function(Cr){Cr.preventDefault(),Cr.stopPropagation()},onMouseUp:function(Cr){Cr.preventDefault(),Cr.stopPropagation();var Zr=cn;pn[0]||(Zr=ce(Zr,null,0)),pn[1]||(Zr=ce(Zr,null,1)),ni(Zr,null),ka(!1,rt)},className:"".concat(Lt,"-clear")},nr||m.createElement("span",{className:"".concat(Lt,"-clear-btn")})));var po={size:v(Yt,et[0])},Hi=0,mo=0;yt.current&&nt.current&&Me.current&&(rt===0?mo=yt.current.offsetWidth:(Hi=Ga,mo=nt.current.offsetWidth));var hi=_r==="rtl"?{right:Hi}:{left:Hi},Pa=function(Cr,Zr){var va=ce(zn,Cr,rt);Zr==="submit"||Zr!=="key"&&!Oa?(ni(va,rt),rt===0?xo():ko()):wr(va)};return m.createElement(c.Provider,{value:{operationRef:Vt,hideHeader:Yt==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Pa,open:br}},m.createElement(Vn,{visible:br,popupElement:ho,popupStyle:gn,prefixCls:Lt,dropdownClassName:Nn,dropdownAlign:an,getPopupContainer:Pn,transitionName:An,range:!0,direction:_r},m.createElement("div",Object.assign({ref:Ze,className:f()(Lt,"".concat(Lt,"-range"),xn,(lt={},Object(y.a)(lt,"".concat(Lt,"-disabled"),pn[0]&&pn[1]),Object(y.a)(lt,"".concat(Lt,"-focused"),rt===0?ri:To),Object(y.a)(lt,"".concat(Lt,"-rtl"),_r==="rtl"),lt)),style:rn,onClick:Wi,onMouseDown:Oo},Se(xe)),m.createElement("div",{className:f()("".concat(Lt,"-input"),(Rt={},Object(y.a)(Rt,"".concat(Lt,"-input-active"),rt===0),Object(y.a)(Rt,"".concat(Lt,"-input-placeholder"),!!Ri),Rt)),ref:yt},m.createElement("input",Object.assign({id:Xt,disabled:pn[0],readOnly:$t||!Xa,value:Ri||mi,onChange:function(Cr){uo(Cr.target.value)},autoFocus:Yn,placeholder:Te(Rn,0)||"",ref:Xe},fi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Lt,"-range-separator"),ref:Me},wn),m.createElement("div",{className:f()("".concat(Lt,"-input"),(wt={},Object(y.a)(wt,"".concat(Lt,"-input-active"),rt===1),Object(y.a)(wt,"".concat(Lt,"-input-placeholder"),!!Ni),wt)),ref:nt},m.createElement("input",Object.assign({disabled:pn[1],readOnly:$t||!$i,value:Ni||Vi,onChange:function(Cr){co(Cr.target.value)},placeholder:Te(Rn,1)||"",ref:Ie},yi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Lt,"-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 lt=Object(b.a)(Rt);function Rt(){var wt;return Object(M.a)(this,Rt),wt=lt.apply(this,arguments),wt.pickerRef=m.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Rt,[{key:"render",value:function(){return m.createElement(oi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.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 g=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 m(h,d){var s=h.cm.getTokenTypeAt(g(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(!m(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(!m(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(!m(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(!m(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:g(E,_),to:g(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:g(h.line,h.ch),to:g(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=g(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&&g(u.line,u.ch),_=w&&l(u);if(!w||!_||O(u,d)>0)return;var P={from:g(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"),g=o("2/Rp"),O=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),C=o("9og8"),A=o("tJVT"),m=o("WmNS"),e=o.n(m),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,L=s.type,N=s.filename,V=s.monacoEditor,H=s.className,D=s.style,W=s.close,F=s.onClose,I=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),de=he[0],Se=he[1],Te=Object(f.useState)(""),ce=Object(A.a)(Te,2),be=ce[0],ye=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,Oe,le=1024*1024,te=10*le,Q=Object(f.useRef)();(u=T)!==null&&u!==void 0&&u.startsWith("/api")&&L!=="txt"&&(T=d.a.API_SERVER+T),L==="office"&&(Oe=Object(c.T)(T).filesize,Oe>te&&(L="other")),N&&V&&(V.filename=N),Object(f.useEffect)(function(){var Ae,Je,tt=(Ae=document.cookie)===null||Ae===void 0||((Je=Ae.replace(/\s/g,""))===null||Je===void 0)?void 0:Je.split(";");tt==null||tt.map(function(ut){var ft=ut.split("=");ft[0]==="_educoder_session"&&ye(ft[1])})},[]),Object(f.useEffect)(function(){L==="office"&&J()},[L,T]);var J=function(){var Ae=Object(C.a)(e.a.mark(function Je(){var tt,ut,ft;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),ut=new URL(tt).pathname.split("/").pop(),_t.next=6,Object(h.V)({attachment_id:ut});case 6:ft=_t.sent,me(ft);case 8:case"end":return _t.stop()}},Je)}));return function(){return Ae.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(I&&n.a.bgBlack," ").concat(L?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(L==="txt"?"show":"hide")},L==="txt"&&a.a.createElement(r.b,V)),L==="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}),L==="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})),L==="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)}),L==="html"&&a.a.createElement("iframe",{src:T+"&disposition=inline"}),L==="pdf"&&a.a.createElement("iframe",{src:"".concat(re,"/js/pdfview/index.html?url=").concat(T,"&disabledDownload=").concat(!!K)}),L==="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)}),L==="other"&&a.a.createElement("div",null,a.a.createElement(g.a,{type:"primary",size:"large",onClick:ve},a.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),L==="download"&&a.a.createElement(g.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,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=O.BlockCipher,C=g.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],m=[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[(m[s]-1+P)%28]<<31-s%6,_[4+(s/6|0)]|=d[28+(m[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}g.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});g.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"),g=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 m(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(g.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 m(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),m(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&&m(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&&m(u,null),u}}class s{constructor(u){this.object=u}dispose(){}}},psGv:function(k,z,o){var M,g;(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,L){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,L)};u.prototype.current_line_has_match=function(U){return this._output.current_line.has_match(U)},u.prototype.set_space_before_token=function(U,L){this._output.space_before_token=U,this._output.non_breaking_space=L},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 L=0;U.type!==h.TEXT&&U.previous.type!==h.TEXT&&(L=U.newlines?1:0),this.preserve_newlines&&(L=U.newlines<this.max_preserve_newlines+1?U.newlines:this.max_preserve_newlines+1);for(var N=0;N<L;N++)this.print_newline(N>0);return L!==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 L=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&&(L=N.next.next.text);break}N=N.next}return L},E=function(U,L){var N=null,V=null;return L.closed?(U==="script"?N="text/javascript":U==="style"&&(N="text/css"),N=w(L)||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,L){return L.indexOf(U)!==-1}function P(U,L,N){this.parent=U||null,this.tag=L?L.tag_name:"",this.indent_level=N||0,this.parser_token=L||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 L=new P(this._current_frame,U,this._printer.indent_level);this._current_frame=L},R.prototype._try_pop_frame=function(U){var L=null;return U&&(L=U.parser_token,this._printer.indent_level=U.indent_level,this._current_frame=U.parent),L},R.prototype._get_frame=function(U,L){for(var N=this._current_frame;N&&!(U.indexOf(N.tag)!==-1);){if(L&&L.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},R.prototype.try_pop=function(U,L){var N=this._get_frame([U],L);return this._try_pop_frame(N)},R.prototype.indent_to_tag=function(U){var L=this._get_frame(U);L&&(this._printer.indent_level=L.indent_level)};function x(U,L,N,V){this._source_text=U||"",L=L||{},this._js_beautify=N,this._css_beautify=V,this._tag_stack=null;var H=new i(L,"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,L=this._options.eol;this._options.eol==="auto"&&(L=`
|
|
|
`,U&&d.test(U)&&(L=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,I=W.next();I.type!==h.EOF;)I.type===h.TAG_OPEN||I.type===h.COMMENT?(F=this._handle_tag_open(D,I,H,V),H=F):I.type===h.ATTRIBUTE||I.type===h.EQUALS||I.type===h.VALUE||I.type===h.TEXT&&!H.tag_complete?F=this._handle_inside_tag(D,I,H,W):I.type===h.TAG_CLOSE?F=this._handle_tag_close(D,I,H):I.type===h.TEXT?F=this._handle_text(D,I,H):D.add_raw_token(I),V=F,I=W.next();var K=D._output.get_code(L);return K},x.prototype._handle_tag_close=function(U,L,N){var V={text:L.text,type:L.type};return U.alignment_size=0,N.tag_complete=!0,U.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),N.is_unformatted?U.add_raw_token(L):(N.tag_start_char==="<"&&(U.set_space_before_token(L.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&U.print_newline(!1)),U.print_token(L)),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,L,N,V){var H=N.has_wrapped_attrs,D={text:L.text,type:L.type};if(U.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),N.is_unformatted)U.add_raw_token(L);else if(N.tag_start_char==="{"&&L.type===h.TEXT)U.print_preserved_newlines(L)?(L.newlines=0,U.add_raw_token(L)):U.print_token(L);else{if(L.type===h.ATTRIBUTE?(U.set_space_before_token(!0),N.attr_count+=1):(L.type===h.EQUALS||L.type===h.VALUE&&L.previous.type===h.EQUALS)&&U.set_space_before_token(!1),L.type===h.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(U.traverse_whitespace(L),H=H||L.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,I=0,K;do{if(K=V.peek(I),K.type===h.ATTRIBUTE){F=!1;break}I+=1}while(I<4&&K.type!==h.EOF&&K.type!==h.TAG_CLOSE);W=!F}W&&(U.print_newline(!1),H=!0)}U.print_token(L),H=H||U.previous_token_wrapped(),N.has_wrapped_attrs=H}return D},x.prototype._handle_text=function(U,L,N){var V={text:L.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(U,L,N):N.is_unformatted||N.is_content_unformatted?U.add_raw_token(L):(U.traverse_whitespace(L),U.print_token(L)),V},x.prototype._print_custom_beatifier_text=function(U,L,N){var V=this;if(L.text!==""){var H=L.text,D,W=1,F="",I="";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 be=new x(Te,ce,V._js_beautify,V._css_beautify);return be.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(L);return}F=K+ee[1]+`
|
|
|
`,H=ee[4],ee[5]&&(I=K+ee[5]),H=H.replace(/\n[ \t]*$/,""),(ee[2]||ee[3].indexOf(`
|
|
|
`)!==-1)&&(ee=ee[3].match(/[ \t]+$/),ee&&(L.whitespace_before=ee[0]))}if(H)if(D){var he=function(){this.eol=`
|
|
|
`};he.prototype=this._options.raw_options;var de=new he;H=D(K+H,de)}else{var Se=L.whitespace_before;Se&&(H=H.replace(new RegExp(`
|
|
|
(`+Se+")?","g"),`
|
|
|
`)),H=K+H.replace(/\n/g,`
|
|
|
`+K)}F&&(H?H=F+H+`
|
|
|
`+I:H=F+I),U.print_newline(!1),H&&(L.text=H,L.whitespace_before="",L.newlines=0,U.add_raw_token(L),U.print_newline(!0))}},x.prototype._handle_tag_open=function(U,L,N,V){var H=this._get_tag_open_token(L);return(N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&L.type===h.TAG_OPEN&&L.text.indexOf("</")===0?(U.add_raw_token(L),H.start_tag_token=this._tag_stack.try_pop(H.tag_name)):(U.traverse_whitespace(L),this._set_tag_position(U,L,H,N,V),H.is_inline_element||U.set_wrap_point(),U.print_token(L)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(H.alignment_size=L.text.length+1),!H.tag_complete&&!H.is_unformatted&&(U.alignment_size=H.alignment_size),H};var S=function(U,L){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="",!L)this.tag_complete=!0;else{var N;this.tag_start_char=L.text[0],this.text=L.text,this.tag_start_char==="<"?(N=L.text.match(/^<([^\s>]*)/),this.tag_check=N?N[1]:""):(N=L.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=N?N[1]:"",(L.text.startsWith("{{#>")||L.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&L.next!==null?this.tag_check=L.next.text.split(" ")[0]:this.tag_check=L.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),L.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||L.closed&&L.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 L=new S(this._tag_stack.get_parser_token(),U);return L.alignment_size=this._options.wrap_attributes_indent_size,L.is_end_tag=L.is_end_tag||_(L.tag_check,this._options.void_elements),L.is_empty_element=L.tag_complete||L.is_start_tag&&L.is_end_tag,L.is_unformatted=!L.tag_complete&&_(L.tag_check,this._options.unformatted),L.is_content_unformatted=!L.is_empty_element&&_(L.tag_check,this._options.content_unformatted),L.is_inline_element=_(L.tag_name,this._options.inline)||L.tag_name.includes("-")||L.tag_start_char==="{",L},x.prototype._set_tag_position=function(U,L,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,L)))),_(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,L){L.parent&&U._output.just_added_newline()&&!((L.is_inline_element||L.is_unformatted)&&L.parent.is_inline_element)&&(L.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 L=null;if(U.is_empty_element||!U.is_start_tag||!U.parent)return;if(U.tag_name==="body")L=L||this._tag_stack.try_pop("head");else if(U.tag_name==="li")L=L||this._tag_stack.try_pop("li",["ol","ul"]);else if(U.tag_name==="dd"||U.tag_name==="dt")L=L||this._tag_stack.try_pop("dt",["dl"]),L=L||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)&&(L=L||this._tag_stack.try_pop("p"))}else U.tag_name==="rp"||U.tag_name==="rt"?(L=L||this._tag_stack.try_pop("rt",["ruby","rtc"]),L=L||this._tag_stack.try_pop("rp",["ruby","rtc"])):U.tag_name==="optgroup"?L=L||this._tag_stack.try_pop("optgroup",["select"]):U.tag_name==="option"?L=L||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):U.tag_name==="colgroup"?L=L||this._tag_stack.try_pop("caption",["table"]):U.tag_name==="thead"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"])):U.tag_name==="tbody"||U.tag_name==="tfoot"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"]),L=L||this._tag_stack.try_pop("thead",["table"]),L=L||this._tag_stack.try_pop("tbody",["table"])):U.tag_name==="tr"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"]),L=L||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(U.tag_name==="th"||U.tag_name==="td")&&(L=L||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),L=L||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return U.parent=this._tag_stack.get_parser_token(),L},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}],m={};function e(a){var l=m[a];if(l!==void 0)return l.exports;var n=m[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")],g=function(A){var m=o("6UM0"),e=o("TXwP");return{html_beautify:function(f,a){return b(f,a,m.js_beautify,e.css_beautify)}}}.apply(z,M),g!==void 0&&(k.exports=g));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,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.AnsiX923={pad:function(g,O){var b=g.sigBytes,y=O*4,C=y-b%y,A=b+C-1;g.clamp(),g.words[A>>>2]|=C<<24-A%4*8,g.sigBytes+=C},unpad:function(g){var O=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=O}},M.pad.Ansix923})},qM6L:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=g.enc,C=y.Utf16=y.Utf16BE={stringify:function(m){for(var e=m.words,f=m.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(m){for(var e=m.length,f=[],a=0;a<e;a++)f[a>>>1]|=m.charCodeAt(a)<<16-a%2*16;return b.create(f,e*2)}};y.Utf16LE={stringify:function(m){for(var e=m.words,f=m.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(m){for(var e=m.length,f=[],a=0;a<e;a++)f[a>>>1]|=A(m.charCodeAt(a)<<16-a%2*16);return b.create(f,e*2)}};function A(m){return m<<8&4278255360|m>>>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,g,O){k.exports=z=g(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 g=M.lib.BlockCipherMode.extend();function O(C){if((C>>24&255)===255){var A=C>>16&255,m=C>>8&255,e=C&255;A===255?(A=0,m===255?(m=0,e===255?e=0:++e):++m):++A,C=0,C+=A<<16,C+=m<<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=g.Encryptor=g.extend({processBlock:function(C,A){var m=this._cipher,e=m.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);m.encryptBlock(l,0);for(var n=0;n<e;n++)C[A+n]^=l[n]}});return g.Decryptor=y,g}(),M.mode.CTRGladman})},"rAM+":function(k,z,o){"use strict";o.d(z,"a",function(){return g});var M=o("Qw5x");function g(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 m=!0,e=!1,f;return{s:function(){y=O[Symbol.iterator]()},n:function(){var l=y.next();return m=l.done,l},e:function(l){e=!0,f=l},f:function(){try{!m&&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")),g=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=m(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 m(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,L=S.options,N=M.default.Children.only(U),V=(0,g.default)(v,L);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,g=/[<>"']|&(?!#?\w+;)/,O=/[<>"']|&(?!#?\w+;)/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},y=R=>b[R];function C(R,x){if(x){if(o.test(R))return R.replace(M,y)}else if(g.test(R))return R.replace(O,y);return R}const A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(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(m(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,L,N)=>{let V=!1,H=L;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:m,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"),g=o("kLXV"),O=o("9og8"),b=o("rAM+"),y=o("tJVT"),C=o("PpiC"),A=o("k1fw"),m=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"),L=o("tsqr"),N=o("7Kak"),V=o("9yH6"),H=o("6CvP"),D=o("1vsH"),W;(function(qe){qe.Manager="manager",qe.Developer="developer",qe.Reporter="reporter"})(W||(W={}));var F=function(He){var Ye=He.visible,Ce=He.onCancel,Le=Ce===void 0?function(){}:Ce,We=Object(i.useState)(),Ue=Object(y.a)(We,2),ze=Ue[0],st=Ue[1],Ct=Object(i.useState)(),Wt=Object(y.a)(Ct,2),Qt=Wt[0],Kt=Wt[1],Ot=Object(i.useState)(!1),Fe=Object(y.a)(Ot,2),at=Fe[0],it=Fe[1],Pe=function(){var pt=Object(O.a)(n.a.mark(function bt(){var Dt,It;return n.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:if(ze){Nt.next=3;break}return L.b.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Nt.abrupt("return");case 3:if(!(ze.length!==6)){Nt.next=6;break}return L.b.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Nt.abrupt("return");case 6:if(Qt){Nt.next=9;break}return L.b.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01"),Nt.abrupt("return");case 9:return it(!0),Nt.next=12,Object(H.e)({code:ze,role:Qt});case 12:if(Dt=Nt.sent,it(!1),Qe(),It={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"},!It[Dt.status]){Nt.next=19;break}return L.b.info(It[Dt.status]),Nt.abrupt("return");case 19:if(!(Dt.status===0)){Nt.next=22;break}return Qt==="reporter"?(L.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(Dt==null?void 0:Dt.project_id))):(Object(D.cb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u7B49\u5F85\u5BA1\u6279"]),L.b.success("\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279\uFF01")),Nt.abrupt("return");case 22:case"end":return Nt.stop()}},bt)}));return function(){return pt.apply(this,arguments)}}(),Qe=function(){var pt=Object(O.a)(n.a.mark(function bt(){return n.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:Le();case 1:case"end":return It.stop()}},bt)}));return function(){return pt.apply(this,arguments)}}();return r.a.createElement(r.a.Fragment,null,r.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u9879\u76EE",visible:Ye,confirmLoading:at,onOk:Pe,onCancel:Qe},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:ze,onChange:function(bt){if(bt.target.value.length>=7){L.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}st(bt.target.value)}})),r.a.createElement("div",{className:"mt10 font14"},r.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),r.a.createElement(V.a.Group,{value:Qt,onChange:function(bt){return Kt(bt.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"))))))},I=F,K=o("Jky8"),ee=o("6Fuo"),he=o.n(ee),de=o("NLgs"),Se=o("xKgJ"),Te;(function(qe){qe.Projects="projects",qe.Shixuns="shixuns",qe.Classrooms="classrooms"})(Te||(Te={}));var ce;(function(qe){qe.Classrooms="classrooms",qe.Shixuns="shixuns",qe.Paths="paths",qe.Projects="projects",qe.Videos="videos",qe.Topics="topics"})(ce||(ce={}));var be=function(He){var Ye,Ce,Le,We,Ue,ze,st,Ct=He.homePage,Wt=He.user,Qt=He.globalSetting,Kt=He.loading,Ot=He.dispatch,Fe=He.location,at=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","location"]),it=Object(i.useState)(),Pe=Object(y.a)(it,2),Qe=Pe[0],pt=Pe[1],bt=Object(i.useState)(),Dt=Object(y.a)(bt,2),It=Dt[0],ct=Dt[1],Nt=function(lr){var Zn;if(!Object(de.e)(Ot))return;if(lr===Te.Projects&&!((Zn=Wt.userInfo)!==null&&Zn!==void 0&&Zn.email)){L.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}lr===Te.Classrooms?pt(!0):lr===Te.Projects&&ct(!0)},jt=function(lr,Zn){var cr;if(!Object(de.e)(Ot))return;if(Zn===Te.Projects&&!((cr=Wt.userInfo)!==null&&cr!==void 0&&cr.email)){L.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(Zn===Te.Shixuns&&!Object(de.c)())return;lr&&(window.location.href=lr)},on=(Ye=(((Ce=Qt.setting)===null||Ce===void 0?void 0:Ce.navbar)||[]).find(function(fn){return fn.link==="/".concat(ce.Classrooms)}))===null||Ye===void 0?void 0:Ye.hidden,vn=(Le=(((We=Qt.setting)===null||We===void 0?void 0:We.navbar)||[]).find(function(fn){return fn.link==="/".concat(ce.Shixuns)}))===null||Le===void 0?void 0:Le.hidden,Wn=(Ue=(((ze=Qt.setting)===null||ze===void 0?void 0:ze.navbar)||[]).find(function(fn){return fn.link==="/".concat(ce.Paths)}))===null||Ue===void 0?void 0:Ue.hidden;if(Qt!=null&&(st=Qt.setting)!==null&&st!==void 0&&st.is_local){var Kn;Wt!=null&&(Kn=Wt.userInfo)!==null&&Kn!==void 0&&Kn.is_shixun_marker||(vn=!0)}var Hn=function(lr){var Zn,cr,dr,Dr,hr,sn,en,On,Fr,Or,xr,fr;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},!(Qt!=null&&(Zn=Qt.setting)!==null&&Zn!==void 0&&Zn.hide_course)&&((cr=Wt.userInfo)===null||cr===void 0?void 0:cr.user_identity)!=="\u5B66\u751F"&&!on&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return jt("/classrooms/new")}},(dr=Wt.userInfo)!==null&&dr!==void 0&&dr.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(Qt!=null&&(Dr=Qt.setting)!==null&&Dr!==void 0&&Dr.hide_shixun&&Object(Se.m)())&&!(Qt!=null&&(hr=Qt.setting)!==null&&hr!==void 0&&hr.hide_course)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return jt("/shixuns/new",Te.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),!(Qt!=null&&(sn=Qt.setting)!==null&&sn!==void 0&&sn.hide_subject&&Object(Se.m)())&&!(Qt!=null&&(en=Qt.setting)!==null&&en!==void 0&&en.hide_course)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return jt("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Qt!=null&&(On=Qt.setting)!==null&&On!==void 0&&On.is_local)&&((Fr=Wt.userInfo)===null||Fr===void 0?void 0:Fr.main_site)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){var X,q;return jt("".concat((X=Wt.navigationInfo)===null||X===void 0||((q=X.top)===null||q===void 0)?void 0:q.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,lr,r.a.createElement("a",{onClick:function(){return Nt(Te.Classrooms)}},(Or=Wt.userInfo)!==null&&Or!==void 0&&Or.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((xr=Wt.userInfo)===null||xr===void 0?void 0:xr.main_site)&&!(Qt!=null&&(fr=Qt.setting)!==null&&fr!==void 0&&fr.is_local)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return Nt(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(Hn,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:Qe,onCancel:function(){return pt(!1)}}),r.a.createElement(I,{visible:It,onCancel:function(){return ct(!1)}}))},ye=Object(d.a)(function(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting;return{homePage:He,user:Ce,globalSetting:Le,loading:Ye.models.index}})(be),ue=o("vToQ"),se=o.n(ue),$=o("jb+D"),me=o("m3rI"),re=function(He){var Ye,Ce=RegExp("(^| )"+He+"=([^;]+)(;|$)");return(Ye=document.cookie.match(Ce))?decodeURIComponent(Ye[2]):null},ae=function(He){var Ye=new Date;Ye.setTime(Ye.getTime()-1);var Ce=re(He);Ce!=null&&(document.cookie=He+"="+Ce+";expires="+Ye.toGMTString())},Oe;(function(qe){qe.Classrooms="classrooms",qe.Shixuns="shixuns",qe.Paths="paths",qe.Projects="projects",qe.Videos="videos",qe.Topics="topics"})(Oe||(Oe={}));var le=function(He){var Ye,Ce,Le,We,Ue,ze,st,Ct,Wt,Qt,Kt,Ot=He.homePage,Fe=He.user,at=He.globalSetting,it=He.loading,Pe=He.dispatch,Qe=He.shixunHomeworks,pt=He.location,bt=He.payload,Dt=bt===void 0?{}:bt,It=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),ct=(Ye=(((Ce=at.setting)===null||Ce===void 0?void 0:Ce.navbar)||[]).find(function(fn){return fn.link==="/".concat(Oe.Classrooms)}))===null||Ye===void 0?void 0:Ye.hidden,Nt=(Le=(((We=at.setting)===null||We===void 0?void 0:We.navbar)||[]).find(function(fn){return fn.link==="/".concat(Oe.Shixuns)}))===null||Le===void 0?void 0:Le.hidden,jt=(Ue=(((ze=at.setting)===null||ze===void 0?void 0:ze.navbar)||[]).find(function(fn){return fn.link==="/".concat(Oe.Paths)}))===null||Ue===void 0?void 0:Ue.hidden,on=((st=Fe.userInfo)===null||st===void 0?void 0:st.admin)||((Ct=Fe.userInfo)===null||Ct===void 0?void 0:Ct.business)||((Wt=Fe.userInfo)===null||Wt===void 0?void 0:Wt.is_shixun_marker)||((Qt=Fe.userInfo)===null||Qt===void 0?void 0:Qt.is_teacher)||((Kt=Fe.userInfo)===null||Kt===void 0?void 0:Kt.user_identity)!=="\u5B66\u751F",vn=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 lr,Zn,cr,dr,Dr,hr,sn,en,On,Fr,Or,xr,fr,pe,X,q,oe,De,fe,ot,Zt,Mn;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((lr=Fe.userInfo)===null||lr===void 0?void 0:lr.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!ct&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Zn=Fe.userInfo)===null||Zn===void 0?void 0:Zn.login,"/classrooms")},(cr=Fe.userInfo)!==null&&cr!==void 0&&cr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!Nt&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((dr=Fe.userInfo)===null||dr===void 0?void 0:dr.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!jt&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Dr=Fe.userInfo)===null||Dr===void 0?void 0:Dr.login,"/paths")},(hr=Fe.userInfo)!==null&&hr!==void 0&&hr.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((sn=Fe.userInfo)===null||sn===void 0?void 0:sn.main_site)&&!((en=at.setting)!==null&&en!==void 0&&en.is_local)&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((On=Fe.userInfo)===null||On===void 0?void 0:On.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),on&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Fr=Fe.userInfo)===null||Fr===void 0?void 0:Fr.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(de.e)(Pe))return;d.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),on&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{onClick:function(){if(!Object(de.e)(Pe))return;d.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((Or=Fe.navigationInfo)===null||Or===void 0||((xr=Or.top)===null||xr===void 0)?void 0:xr.customer_management_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(fr=Fe.navigationInfo)===null||fr===void 0||((pe=fr.top)===null||pe===void 0)?void 0:pe.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((X=Fe.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=Fe.navigationInfo)===null||oe===void 0||((De=oe.top)===null||De===void 0)?void 0:De.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((fe=Fe.navigationInfo)===null||fe===void 0||((ot=fe.top)===null||ot===void 0)?void 0:ot.laboratory_admin_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(Zt=Fe.navigationInfo)===null||Zt===void 0||((Mn=Zt.top)===null||Mn===void 0)?void 0:Mn.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"||Pe({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 Vn(){var qt;return n.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object($.c)({});case 2:qt=un.sent,(qt==null?void 0:qt.status)===1&&(Pe({type:"user/getUserInfo",payload:Object(A.a)({},Dt)}),Pe({type:"user/getNavigationInfo",payload:Object(A.a)({},Dt)}),ae("autologin_trustie"),ae("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),L.b.success(qt==null?void 0:qt.message),d.d.replace("/"));case 4:case"end":return un.stop()}},Vn)}))},"\u9000\u51FA")))};if(Object(Se.p)()){var Wn,Kn;return r.a.createElement(_.a,{className:"".concat(se.a.height67),overlay:vn,placement:"bottomRight"},r.a.createElement("section",null,r.a.createElement("aside",null,r.a.createElement("div",{className:Qe.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((Wn=Fe.userInfo)===null||Wn===void 0?void 0:Wn.image_url),alt:"",onClick:function(){var lr;return d.d.push(Object(D.r)()?"/account/profile":"/users/".concat((lr=Fe.userInfo)===null||lr===void 0?void 0:lr.login,"/classrooms"))}}),Object(D.r)()&&r.a.createElement("span",{className:"ml10 font16"},(Kn=Fe.userInfo)===null||Kn===void 0?void 0:Kn.username)))))}else{var Hn;return r.a.createElement("div",{className:"font15 ".concat(at.isIlearning?se.a.login:"")},r.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){Pe({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((Hn=at.setting)!==null&&Hn!==void 0&&Hn.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(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting,We=qe.shixunHomeworks;return{homePage:He,user:Ce,globalSetting:Le,shixunHomeworks:We,loading:Ye.models.index}})(le),Q=o("+L6B"),J=o("2/Rp"),ve=o("Cs+z"),_e=o.n(ve),Ae=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Je=function(He){var Ye=He.homePage,Ce=He.user,Le=He.globalSetting,We=He.loading,Ue=He.dispatch,ze=He.location,st=He.text,Ct=He.shixunHomeworks,Wt=He.payload,Qt=Wt===void 0?{}:Wt,Kt=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Ot=Object(i.useState)("none"),Fe=Object(y.a)(Ot,2),at=Fe[0],it=Fe[1];return Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&it("flex")},[Ct.actionTabs.key]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u9690\u85CF"&&(it("none"),localStorage.setItem("Noviceguide","0"))},[Ct.actionTabs.key]),r.a.createElement("div",{style:{display:at,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"}},Ct.actionTabs.text),Ct.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"),it("none"),Ue({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"),Ue({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),it("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(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting,We=qe.shixunHomeworks;return{homePage:He,user:Ce,globalSetting:Le,loading:Ye.models.index,shixunHomeworks:We}})(Je),ut=o("498V"),ft=o.n(ut),vt=o("wd/R"),_t=o.n(vt),Ve=a.a.Header,je=e.a.Search;function ht(){var qe,He,Ye=window.location.pathname,Ce=Ye.split("/"),Le={};return Ce[1]=="classrooms"&&Ce.length>3&&!((qe=Ce[4])!==null&&qe!==void 0&&qe.includes("newgold"))&&!((He=Ce[5])!==null&&He!==void 0&&He.includes("newgold"))&&Ce[2]!=="coursesId"&&(Le.course_id=Ce[2]),Ce[1]==="shixuns"&&Ce.length>3&&(Le.objective_type="shixun",Le.objective_id=Ce[2]),Ce[1]==="paths"&&Ce.length>3&&(Le.objective_type="path",Le.objective_id=Ce[2]),Object(A.a)(Object(A.a)({},Le),{school:1})}var Bt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Et=function(He){var Ye,Ce,Le=He.homePage,We=He.user,Ue=He.globalSetting,ze=He.loading,st=He.dispatch,Ct=He.location,Wt=He.isLogin,Qt=Wt===void 0?!1:Wt,Kt=He.shixunHomeworks,Ot=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),Fe=Object(c.g)(),at=Object(i.useState)(!1),it=Object(y.a)(at,2),Pe=it[0],Qe=it[1],pt=Object(i.useState)(""),bt=Object(y.a)(pt,2),Dt=bt[0],It=bt[1],ct=Object(i.useState)(!1),Nt=Object(y.a)(ct,2),jt=Nt[0],on=Nt[1],vn=ht(),Wn=Object(i.useState)("0"),Kn=Object(y.a)(Wn,2),Hn=Kn[0],fn=Kn[1],lr=Object(i.useRef)({id:0});Object(i.useEffect)(function(){var fe;return We!=null&&(fe=We.userInfo)!==null&&fe!==void 0&&fe.now_time&&(lr.current.id=setInterval(function(){fn(function(ot){if(ot==="0"){var Zt;return _t()(We==null||((Zt=We.userInfo)===null||Zt===void 0)?void 0:Zt.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(lr.current.id)}},[We==null||((Ye=We.userInfo)===null||Ye===void 0)?void 0:Ye.now_time]),Object(i.useEffect)(function(){st({type:"user/getNavigationInfo",payload:Object(A.a)({},vn)})},[Ue.name]),Object(i.useEffect)(function(){Kt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(Bt!=null&&Bt.includes(Ct==null?void 0:Ct.pathname)||(Ct==null?void 0:Ct.pathname.indexOf("/classrooms"))===0||st({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ct.pathname]),Object(i.useEffect)(function(){Kt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Kt.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Kt.actionTabs.key]),Object(i.useEffect)(function(){if(Ue!=null&&Ue.setting){var fe,ot,Zt=Ue==null||((fe=Ue.setting)===null||fe===void 0||((ot=fe.navbar)===null||ot===void 0))?void 0:ot.filter(function(un){return!(un!=null&&un.hidden)&&!(Object(Se.m)()&&un.link==="/paperlibrary")}),Mn=Object(b.a)(Zt),Vn;try{for(Mn.s();!(Vn=Mn.n()).done;){var qt=Vn.value;qt.subitem&&(qt.subitem=qt.subitem.filter(function(un){return!(un!=null&&un.hidden)&&!(Object(Se.m)()&&un.link==="/paperlibrary")}))}}catch(un){Mn.e(un)}finally{Mn.f()}var En=!1;Zt==null||Zt.map(function(un,jr){var aa,oa,er,Ba="/"+((aa=Ct.pathname)===null||aa===void 0||((oa=aa.split("/"))===null||oa===void 0)?void 0:oa[1]);if(un.link===Ba&&(It(un==null?void 0:un.link),Object(D.X)(un==null?void 0:un.name),en(Fr(jr,{name:un==null?void 0:un.name,link:un==null?void 0:un.link},Zt)),En=!0),un!=null&&(er=un.subitem)!==null&&er!==void 0&&er.length){var Ea;un==null||((Ea=un.subitem)===null||Ea===void 0)||Ea.map(function(ca){ca.link===Ba&&(It(ca==null?void 0:ca.link),Object(D.X)(ca==null?void 0:ca.name),en(Fr(jr,{name:ca==null?void 0:ca.name,link:ca==null?void 0:ca.link},Zt)),En=!0)})}}),En||en(Zt)}},[Ue==null?void 0:Ue.setting,We]);var Zn=Object(i.useMemo)(function(){var fe;if(Ue!=null&&(fe=Ue.setting)!==null&&fe!==void 0&&fe.nav_logo_url){var ot;return"".concat(me.a.IMG_SERVER,"/").concat(Ue==null||((ot=Ue.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())},[Ue==null||((Ce=Ue.setting)===null||Ce===void 0)?void 0:Ce.nav_logo_url]);function cr(fe){Fe.push("/search?value="+fe)}var dr=function(){return Pe?r.a.createElement("div",{onBlur:function(){setTimeout(function(){Qe(!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:cr,autoFocus:!0})):r.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){Fe.push("/search?value=")}})},Dr=Object(i.useState)([]),hr=Object(y.a)(Dr,2),sn=hr[0],en=hr[1],On=function(){var fe=Object(O.a)(n.a.mark(function ot(Zt,Mn){var Vn,qt,En,un,jr,aa,oa,er;return n.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:if(!((Zt==null?void 0:Zt.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Ea.next=6;break}return Ea.next=3,Object($.j)();case 3:return En=Ea.sent,En!=null&&(qt=En.data)!==null&&qt!==void 0&&qt.engineer_url?En!=null&&(un=En.data)!==null&&un!==void 0&&(jr=un.engineer_url)!==null&&jr!==void 0&&jr.includes("http")?Object(D.S)(En==null||((aa=En.data)===null||aa===void 0)?void 0:aa.engineer_url):Fe.push(En==null||((oa=En.data)===null||oa===void 0)?void 0:oa.engineer_url):(En==null?void 0:En.status)!=401&&(Ue!=null&&(er=Ue.setting)!==null&&er!==void 0&&er.authority_qrcode_url?on(!0):on(!1)),Ea.abrupt("return");case 6:Zt!=null&&(Vn=Zt.link)!==null&&Vn!==void 0&&Vn.includes("http")?Object(D.S)(Zt==null?void 0:Zt.link):Fe.push(Zt==null?void 0:Zt.link),(Zt==null?void 0:Zt.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&st({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(Zt,Mn){return fe.apply(this,arguments)}}(),Fr=function(ot,Zt,Mn){var Vn=Mn.slice();return Vn[ot]&&(Vn[ot].name=Zt.name,Vn[ot].link=Zt.link),Vn||[]};if(Ue.showHeader&&Ue.showHeaderFooter){var Or,xr,fr,pe,X,q,oe,De;return r.a.createElement(a.a,{className:"".concat(Ue.isIlearning?u.a["header-iearning"]:u.a.header," ").concat(Ue.showHeaderFixed?u.a.headerFixed:"")},r.a.createElement(Ve,{className:"header"},r.a.createElement("section",{className:u.a["edu-menu"]},(!!Ue.isIlearning||!(Ue!=null&&(Or=Ue.setting)!==null&&Or!==void 0&&Or.main_site)&&!!(Ue!=null&&(xr=Ue.setting)!==null&&xr!==void 0&&xr.navbar))&&r.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){st({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},r.a.createElement("img",{className:u.a.logo,title:(fr=Ue.setting)===null||fr===void 0?void 0:fr.name,src:Zn||ft.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)()&&Ue.setting&&sn.map(function(fe,ot){var Zt,Mn,Vn,qt,En;return r.a.createElement("li",{key:ot,className:!(fe!=null&&(Zt=fe.subitem)!==null&&Zt!==void 0&&Zt.length)&&Dt===(fe==null?void 0:fe.link)||fe!=null&&(Mn=fe.subitem)!==null&&Mn!==void 0&&Mn.some(function(un){return Dt===(un==null?void 0:un.link)})?u.a.actived:""},r.a.createElement("div",{onClick:function(){return On(fe,ot)},className:Kt.actionTabs.type===4?"".concat(u.a.name," ").concat(u.a.classromediv):u.a.name},r.a.createElement("span",null,function(){var un=fe==null?void 0:fe.name;{var jr;fe==null||((jr=fe.subitem)===null||jr===void 0)||jr.map(function(aa,oa){return aa.link===Ct.pathname&&(un=aa.name),aa})}return un}()),(fe==null||((Vn=fe.subitem)===null||Vn===void 0)?void 0:Vn.length)>0&&r.a.createElement("i",{className:"iconfont icon-zhankai4"})),(fe==null||((qt=fe.subitem)===null||qt===void 0)?void 0:qt.length)>0&&r.a.createElement("div",{className:u.a.dropDown},fe==null||((En=fe.subitem)===null||En===void 0)?void 0:En.map(function(un,jr){return r.a.createElement("div",{className:u.a.subName,onClick:function(){return On(un,ot)},key:ot+"-"+jr},!!jr&&r.a.createElement("div",{className:u.a.line}),r.a.createElement("aside",{className:"font16 c-black"},un.name),r.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},un.content))})))})),r.a.createElement("div",{className:"search-bar",style:{flex:Ue.isIlearning?"initial":"1 0 auto"}},r.a.createElement("div",{className:"timeShow"},Hn),!Object(D.r)()&&!(Ue!=null&&Ue.isIlearning)&&r.a.createElement(r.a.Fragment,null,r.a.createElement(dr,null),!Qt&&r.a.createElement(ye,null),!Qt&&!!(We!=null&&(pe=We.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(We==null||((X=We.userInfo)===null||X===void 0)?void 0:X.login,"/user_tidings")},(We==null||((q=We.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}))),!Qt&&r.a.createElement(te,{payload:vn}))),r.a.createElement(g.a,{centered:!0,destroyOnClose:!0,visible:jt,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+(Ue==null||((De=Ue.setting)===null||De===void 0)?void 0:De.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(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting,We=qe.shixunHomeworks;return{homePage:He,user:Ce,globalSetting:Le,loading:Ye.models.index,shixunHomeworks:We}})(Et)},sLOW:function(k,z,o){"use strict";var M=o("iQDF"),g=o("+eQT"),O=o("Awhp"),b=o("KrTs"),y=o("O3gP"),C=o("lrIw"),A=o("7Kak"),m=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"),L=o.n(U),N=o("L+Ii"),V=o.n(N),H=function(I){if(!I)return I;var K=I.split(":");if(K[1]=="00"||K[1]=="30")return I;var ee=parseInt(K[1]);if(ee<30||ee==60)return[K[0],"30"].join(":");if(ee<60){var he=[K[0],"00"].join(":"),de="YYYY-MM-DD HH:mm",Se=L()(he,de);return Se.add(1,"hours"),Se.format(de)}return I},D="YYYY-MM-DD HH:mm",W=function(I){var K,ee,he,de,Se,Te,ce,be,ye=I.shixunsDetail,ue=I.globalSetting,se=I.loading,$=I.user,me=I.dispatch,re=Object(u.a)(I,["shixunsDetail","globalSetting","loading","user","dispatch"]),ae=Object(_.useRef)(),Oe=Object(_.useState)(),le=Object(s.a)(Oe,2),te=le[0],Q=le[1],J=Object(_.useState)(),ve=Object(s.a)(J,2),_e=ve[0],Ae=ve[1],Je=Object(_.useState)([]),tt=Object(s.a)(Je,2),ut=tt[0],ft=tt[1],vt=Object(_.useState)([]),_t=Object(s.a)(vt,2),Ve=_t[0],je=_t[1],ht=Object(_.useState)(""),Bt=Object(s.a)(ht,2),Et=Bt[0],Pt=Bt[1],qe=Object(_.useState)(),He=Object(s.a)(qe,2),Ye=He[0],Ce=He[1],Le=Object(_.useState)(),We=Object(s.a)(Le,2),Ue=We[0],ze=We[1],st=(K=$.userInfo)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.editable;Object(_.useEffect)(function(){var Fe,at;ae.current=(Fe=location.pathname)===null||Fe===void 0||((at=Fe.split("/"))===null||at===void 0)?void 0:at[2],Ct()},[]),Object(_.useEffect)(function(){var Fe,at,it,Pe,Qe,pt,bt,Dt,It,ct;if(!ye.setting)return;Q((Fe=ye.setting)===null||Fe===void 0||((at=Fe.shixun)===null||at===void 0)?void 0:at.can_copy),Ae((it=ye.setting)===null||it===void 0||((Pe=it.shixun)===null||Pe===void 0)?void 0:Pe.use_scope),Ce(!!((Qe=ye.setting)!==null&&Qe!==void 0&&(pt=Qe.shixun)!==null&&pt!==void 0&&pt.opening_time)),ze((bt=ye.setting)===null||bt===void 0||((Dt=bt.shixun)===null||Dt===void 0)?void 0:Dt.opening_time),ft((It=ye.setting)===null||It===void 0||((ct=It.shixun)===null||ct===void 0)?void 0:ct.scope_partment)},[ye.setting]);var Ct=function(){var Fe=Object(d.a)(E.a.mark(function at(it){var Pe;return E.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:it}});case 2:Pe=pt.sent,Pe&&je(Pe.shools_name||[]);case 4:case"end":return pt.stop()}},at)}));return function(it){return Fe.apply(this,arguments)}}(),Wt=function(){var Fe=Object(d.a)(E.a.mark(function at(){var it,Pe,Qe,pt,bt,Dt,It;return E.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Nt.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ae.current}});case 2:if(Nt.t0=Nt.sent,Nt.t0){Nt.next=5;break}Nt.t0={};case 5:It=Nt.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)},!!((it=It.subjects)!==null&&it!==void 0&&it.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Pe=It.subjects)===null||Pe===void 0||((Qe=Pe.splice(0,2))===null||Qe===void 0)?void 0:Qe.map(function(jt){return"\u300A".concat(jt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},It==null?void 0:It.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),P.a.createElement("br",null)),!!((pt=It.courses)!==null&&pt!==void 0&&pt.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(bt=It.courses)===null||bt===void 0||((Dt=bt.splice(0,2))===null||Dt===void 0)?void 0:Dt.map(function(jt){return"\u300A".concat(jt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},It==null?void 0:It.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 jt=Object(d.a)(E.a.mark(function vn(){var Wn;return E.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ae.current}});case 2:Wn=Hn.sent,Wn.status===1&&(r.b.success("\u64CD\u4F5C\u6210\u529F"),R.d.push("/shixuns"));case 4:case"end":return Hn.stop()}},vn)}));function on(){return jt.apply(this,arguments)}return on}()});case 7:case"end":return Nt.stop()}},at)}));return function(){return Fe.apply(this,arguments)}}(),Qt=function(){if(Object(T.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},Kt=function(at){if(ut.includes(at)){r.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Pt(null),ft([].concat(Object(n.a)(ut),[at]))},Ot=function(){var Fe=Object(d.a)(E.a.mark(function at(){var it;return E.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!(Ye&&!Ue)){Qe.next=3;break}return r.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Qe.abrupt("return");case 3:if(!(_e===1&&!ut.length)){Qe.next=6;break}return r.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Qe.abrupt("return");case 6:return Qe.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ae.current,scope_partment:_e===0?null:ut,shixun:{can_copy:te,use_scope:_e,opening_time:Ue}}});case 8:it=Qe.sent,it.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 Qe.stop()}},at)}));return function(){return Fe.apply(this,arguments)}}();return P.a.createElement("section",{className:V.a.wrap},P.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(ye==null||((he=ye.detail)===null||he===void 0)?void 0:he.shixun_status)!==2?P.a.createElement(l.a,{danger:!0,onClick:Wt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):P.a.createElement(l.a,{danger:!0,onClick:Qt},"\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(at){return Q(at.target.checked)},disabled:!st}),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")))),!((((de=ye.detail)===null||de===void 0?void 0:de.shixun_status)>1||((Se=ye.detail)===null||Se===void 0?void 0:Se.public)===2)&&((Te=ye.setting)===null||Te===void 0||((ce=Te.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((be=ye.detail)===null||be===void 0?void 0:be.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(m.a.Group,{value:_e,onChange:function(at){return Ae(at.target.value)},disabled:!st},P.a.createElement(m.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(m.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(at){Pt(at),Ct(at)},disabled:!st,onSelect:Kt,options:Ve==null?void 0:Ve.map(function(Fe){return{value:Fe}})}),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"},ut==null?void 0:ut.map(function(Fe){return st?P.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return ft(ut.filter(function(it){return it!==Fe}))}},P.a.createElement(l.a,{type:"primary",ghost:!0},Fe)):P.a.createElement(l.a,{type:"primary",ghost:!0,className:"mr20"},Fe)}))))),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:Ye,onChange:function(at){return Ce(at.target.checked)},disabled:!st}),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")),Ye&&P.a.createElement(g.a,{className:"".concat(V.a.dataPicker," mt10"),format:D,locale:S.a,disabled:!st,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(at){return at&&at<L()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:Ue&&L()(Ue,D),onChange:function(at,it){return ze(H(it))}}))),P.a.createElement(v.a,{okText:"\u4FDD\u5B58",hasOkBtn:st,loading:se.effects["shixunsDetail/updatePermissionSetting"],onCancel:function(){return R.d.push("/shixuns/".concat(ae.current,"/challenges"))},onOk:Ot}))};z.a=Object(R.a)(function(F){var I=F.shixunsDetail,K=F.loading,ee=F.globalSetting,he=F.user;return{shixunsDetail:I,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"),g="RC_TABLE_KEY";function O(m){return m==null?[]:Array.isArray(m)?m:[m]}function b(m,e){if(!e&&typeof e!="number")return m;for(var f=O(e),a=m,l=0;l<f.length;l+=1){if(!a)return null;var n=f[l];a=a[n]}return a}function y(m){var e=[],f={};return m.forEach(function(a){for(var l=a||{},n=l.key,i=l.dataIndex,r=n||O(i).join("-")||g;f[r];)r="".concat(r,"_next");f[r]=!0,e.push(r)}),e}function C(){var m={};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(m,n)}),m}function A(m){return m!=null}},sboe:function(k,z,o){"use strict";o.d(z,"a",function(){return O});var M=o("q1tI"),g=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"),g=o("1OyB"),O=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),C=o("q1tI"),A=o.n(C),m=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(g.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(m.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"),g=o("MI8n"),O=o("pmY6"),b=o("Cg/j"),y=o("ic2d"),C=o("nEHx");const A=Object(b.c)("themeService");var m;(function(h){function d(s){return s&&typeof s=="object"&&typeof s.id=="string"}h.isThemeColor=d})(m||(m={}));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"||m.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 g.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,g,O){k.exports=z=g(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(M){return function(){var g=M,O=g.x64,b=O.Word,y=O.WordArray,C=g.algo,A=C.SHA512,m=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}});g.SHA384=A._createHelper(m),g.HmacSHA384=A._createHmacHelper(m)}(),M.SHA384})},uGxW:function(k,z,o){(function(M,g,O){k.exports=z=g(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,g){k.exports=g()})(this,function(){"use strict";function M(g,O,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=g||[],C=[],A=0;do{var m=y.filter(function(e){return O(e,A)})[0];if(!m)break;C.push(m),y=m[b.childrenKeyName]||[],A+=1}while(y.length>0);return C}return M})},ulZh:function(k,z,o){typeof window!="undefined"&&function(g,O){k.exports=O()}(this,function(){return function(M){var g={};function O(b){if(g[b])return g[b].exports;var y=g[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=g,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(m){return b[m]}.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,g,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 m(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 m(this,l,n,i,!1)},f.prototype.once=function(l,n,i){return m(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,g,O){(function(b){var y=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,C=/^([^\/?#]*)([^]*)$/,A=/(?:\/|^)\.(?=\/)/g,m=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/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(m,"")).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,g,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 m(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;_++)m(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,g,O){"use strict";O.r(g),O.d(g,"hlsDefaultConfig",function(){return P}),O.d(g,"mergeConfig",function(){return x}),O.d(g,"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"),m=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 L in U)Object.prototype.hasOwnProperty.call(U,L)&&(v[L]=U[L])}return v},u.apply(this,arguments)}function w(v,T){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(v);T&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,L)}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(L){_(v,L,U[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(U)):w(Object(U)).forEach(function(L){Object.defineProperty(v,L,Object.getOwnPropertyDescriptor(U,L))})}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:m.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,g,O){"use strict";O.r(g);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"),m=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)),L=Math.max(1,_.bwEstimate?_.bwEstimate/8:_.loaded*1e3/R),N=(U-_.loaded)/L,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*L),D<H)break}if(D>=N)return;var I=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)(I)?(I/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 m.ErrorDetails.FRAG_LOAD_ERROR:case m.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,L=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"),L=N=1}}return T=this.findBestLevel(S,E,u,v+U,L,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,L=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)||L,W=void 0;N<=x?W=w*h:W=E*h;var F=S[N].maxBitrate,I=F*D/W;if(f.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+N+"/"+Math.round(W)+"/"+F+"/"+D+"/"+u+"/"+I),W>F&&(!I||T&&!this.bitrateTestDelay||I<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}();g.default=n},"./src/controller/audio-stream-controller.ts":function(M,g,O){"use strict";O.r(g);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"),m=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,L=T.id,N=T.initPTS;if(L==="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,L=T==null||((v=T[U])===null||v===void 0)?void 0:v.details;if(L){if(this.waitForCdnTuneIn(L))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,I=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=I.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 de=this.getLoadPosition(),Se=A.BufferHelper.bufferInfo(this.mediaBuffer,de,this.config.maxBufferHole),Te=Object(r.fragmentWithinToleranceTest)(Se.end,this.config.maxFragLookUpTolerance,W);Te<0&&(d.logger.log("Waiting fragment cc ("+W.cc+") @ "+W.start+" cancelled because another fragment at "+Se.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,L=this.levels,N=this.media,V=this.trackId,H=U.config;if(!L||!L[V])return;if(!N&&(this.startFragRequested||!H.startFragPrefetch))return;var D=L[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 I=F.len,K=this.getMaxBufferLength(),ee=this.audioSwitch;if(I>=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,de=he[0].start,Se=F.end;if(ee){var Te=this.getLoadPosition();Se=Te,W.PTSKnown&&Te<de&&((F.end>de||F.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),N.currentTime=de+.05))}var ce=this.getNextFragment(Se,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,Se)},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(L){return new e.Level(L)})},x.onAudioTrackSwitching=function(v,T){var U=!!T.url;this.trackId=T.id;var L=this.fragCurrent;L!=null&&L.loader&&L.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,L=this.levels,N=T.details,V=T.id;if(!L){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=L[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,L=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 I=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 de=!1,Se=L?L.index:-1,Te=Se!==-1,ce=new i.ChunkMetadata(U.level,U.sn,U.stats.chunkCount,N.byteLength,Se,Te);K.push(N,he,I,"",U,L,F.totalduration,de,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 be=this.waitingData=this.waitingData||{frag:U,part:L,cache:new l.default,complete:!1},ye=be.cache;ye.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,L=T.part;if(U.type!==f.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(U)){this.warn("Fragment "+U.sn+(L?" p: "+L.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,L)},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,L=this.getFwdBufferInfo(this.mediaBuffer,f.PlaylistLevelType.AUDIO);L&&L.len>.5&&(U=!this.reduceMaxBufferLength(L.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",L=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,I=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),L.trigger(C.Events.FRAG_PARSING_INIT_SEGMENT,{frag:D,id:U,tracks:ee.tracks})),F){var he=F.startPTS,de=F.endPTS,Se=F.startDTS,Te=F.endDTS;W&&(W.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:he,endPTS:de,startDTS:Se,endDTS:Te}),D.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,he,de,Se,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);L.trigger(C.Events.FRAG_PARSING_METADATA,ce)}if(I){var be=s({frag:D,id:U},I);L.trigger(C.Events.FRAG_PARSING_USERDATA,be)}},x._bufferInitSegment=function(v,T,U){if(this.state!==y.State.PARSING)return;v.video&&delete v.video;var L=v.audio;if(!L)return;L.levelCodec=L.codec,L.id="audio",this.log("Init audio buffer, container:"+L.container+", codecs[parsed]=["+L.codec+"]"),this.hls.trigger(C.Events.BUFFER_CODECS,v);var N=L.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 L=this.fragmentTracker.getState(v);this.fragCurrent=v,(this.audioSwitch||L===m.FragmentState.NOT_LOADED||L===m.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);g.default=_},"./src/controller/audio-track-controller.ts":function(M,g,O){"use strict";O.r(g);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 m(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&&m(n.prototype,i),r&&m(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);g.default=l},"./src/controller/base-playlist-controller.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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"),m=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===m.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,L=U+h.ageHeader,N=Math.min(L-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,g,O){"use strict";O.r(g),O.d(g,"State",function(){return R}),O.d(g,"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"),m=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,L){return U.__proto__=L,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,L,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=m.logger.log.bind(m.logger,N+":"),V.warn=m.logger.warn.bind(m.logger,N+":"),V.hls=U,V.fragmentLoader=new c.default(U.config),V.fragmentTracker=L,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(L){},T.stopLoad=function(){this.fragmentLoader.abort();var L=this.fragCurrent;L&&this.fragmentTracker.removeFragment(L),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=R.STOPPED},T._streamEnded=function(L,N){var V=this.fragCurrent,H=this.fragmentTracker;if(!N.live&&V&&V.sn===N.endSN&&!L.nextStart){var D=H.getState(V);return D===C.FragmentState.PARTIAL||D===C.FragmentState.OK}return!1},T.onMediaAttached=function(L,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 L=this.media;L!=null&&L.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),L&&(L.removeEventListener("seeking",this.onvseeking),L.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 L=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,L.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 I=L.maxFragLookUpTolerance,K=N.start-I,ee=N.start+N.duration+I,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(L,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(L,N){this.log("Loading key for "+L.sn+" of ["+N.startSN+"-"+N.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+L.level),this.state=R.KEY_LOADING,this.fragCurrent=L,this.hls.trigger(e.Events.KEY_LOADING,{frag:L})},T.loadFragment=function(L,N,V){this._loadFragForPlayback(L,N,V)},T._loadFragForPlayback=function(L,N,V){var H=this,D=function(F){if(H.fragContextChanged(L)){H.warn("Fragment "+L.sn+(F.part?" p: "+F.part.index:"")+" of level "+L.level+" was dropped during download."),H.fragmentTracker.removeFragment(L);return}L.stats.chunkCount++,H._handleFragmentLoadProgress(F)};this._doFragLoad(L,N,V,D).then(function(W){if(!W)return;H.fragLoadError=0;var F=H.state;if(H.fragContextChanged(L)){(F===R.FRAG_LOADING||F===R.BACKTRACKING||!H.fragCurrent&&F===R.PARSING)&&(H.fragmentTracker.removeFragment(L),H.state=R.IDLE);return}if("payload"in W&&(H.log("Loaded fragment "+L.sn+" of level "+L.level),H.hls.trigger(e.Events.FRAG_LOADED,W),H.state===R.BACKTRACKING)){H.fragmentTracker.backtrack(L,W),H.resetFragmentLoading(L);return}H._handleFragmentLoadComplete(W)}).catch(function(W){H.warn(W),H.resetFragmentLoading(L)})},T.flushMainBuffer=function(L,N,V){if(V===void 0&&(V=null),!(L-N))return;var H={startOffset:L,endOffset:N,type:V};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,H)},T._loadInitSegment=function(L){var N=this;this._doFragLoad(L).then(function(V){if(!V||N.fragContextChanged(L)||!N.levels)throw new Error("init load aborted");return V}).then(function(V){var H=N.hls,D=V.payload,W=L.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(I){var K=self.performance.now();return H.trigger(e.Events.FRAG_DECRYPTED,{frag:L,payload:I,stats:{tstart:F,tdecrypt:K}}),V.payload=I,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[L.level].details;console.assert(F,"Level details are defined when init segment is loaded");var I=L.stats;N.state=R.IDLE,N.fragLoadError=0,L.data=new Uint8Array(V.payload),I.parsing.start=I.buffering.start=self.performance.now(),I.parsing.end=I.buffering.end=self.performance.now(),V.frag===H&&D.trigger(e.Events.FRAG_BUFFERED,{stats:I,frag:H,part:null,id:L.type}),N.tick()}).catch(function(V){N.warn(V),N.resetFragmentLoading(L)})},T.fragContextChanged=function(L){var N=this.fragCurrent;return!L||!N||L.level!==N.level||L.sn!==N.sn||L.urlId!==N.urlId},T.fragBufferedComplete=function(L,N){var V=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+L.type+" sn: "+L.sn+(N?" part: "+N.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+L.level+" "+d.default.toString(A.BufferHelper.getBuffered(V))),this.state=R.IDLE,this.tick()},T._handleFragmentLoadComplete=function(L){var N=this.transmuxer;if(!N)return;var V=L.frag,H=L.part,D=L.partsLoaded,W=!D||D.length===0||D.some(function(I){return!I}),F=new a.ChunkMetadata(V.level,V.sn,V.stats.chunkCount+1,0,H?H.index:-1,!W);N.flush(F)},T._handleFragmentLoadProgress=function(L){},T._doFragLoad=function(L,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(L.start,V||0),this.config.lowLatencyMode&&N){var W=N.partList;if(W&&H){V>L.end&&N.fragmentHint&&(L=N.fragmentHint);var F=this.getNextPart(W,L,V);if(F>-1){var I=W[F];return this.log("Loading part sn: "+L.sn+" p: "+I.index+" cc: "+L.cc+" of playlist ["+N.startSN+"-"+N.endSN+"] parts [0-"+F+"-"+(W.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+L.level+", target: "+parseFloat(V.toFixed(3))),this.nextLoadPosition=I.start+I.duration,this.state=R.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:L,part:W[F],targetBufferTime:V}),this.doFragPartsLoad(L,W,F,H).catch(function(K){return D.handleFragLoadError(K)})}else if(!L.url||this.loadedEndOfParts(W,V))return Promise.resolve(null)}}return this.log("Loading fragment "+L.sn+" cc: "+L.cc+" "+(N?"of ["+N.startSN+"-"+N.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+L.level+", target: "+parseFloat(V.toFixed(3))),Object(b.isFiniteNumber)(L.sn)&&!this.bitrateTest&&(this.nextLoadPosition=L.start+L.duration),this.state=R.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:L,targetBufferTime:V}),this.fragmentLoader.load(L,H).catch(function(K){return D.handleFragLoadError(K)})},T.doFragPartsLoad=function(L,N,V,H){var D=this;return new Promise(function(W,F){var I=[],K=function ee(he){var de=N[he];D.fragmentLoader.loadPart(L,de,H).then(function(Se){I[de.index]=Se;var Te=Se.part;D.hls.trigger(e.Events.FRAG_LOADED,Se);var ce=N[he+1];if(ce&&ce.fragment===L)ee(he+1);else return W({frag:L,part:Te,partsLoaded:I})}).catch(F)};K(V)})},T.handleFragLoadError=function(L){var N=L.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(L){var N=this.getCurrentContext(L);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,L.partial)},T.getCurrentContext=function(L){var N=this.levels,V=L.level,H=L.sn,D=L.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,I=F?F.fragment:Object(r.getFragmentWithSN)(W,H,this.fragCurrent);return I?{frag:I,part:F,level:W}:null},T.bufferFragmentData=function(L,N,V,H){if(!L||this.state!==R.PARSING)return;var D=L.data1,W=L.data2,F=D;if(D&&W&&(F=Object(l.appendUint8Array)(D,W)),!F||!F.length)return;var I={type:L.type,frag:N,part:V,chunkMeta:H,parent:N.type,data:F};this.hls.trigger(e.Events.BUFFER_APPENDING,I),L.dropped&&L.independent&&!V&&this.flushBufferGap(N)},T.flushBufferGap=function(L){var N=this.media;if(!N)return;if(!A.BufferHelper.isBuffered(N,N.currentTime)){this.flushMainBuffer(0,L.start);return}var V=N.currentTime,H=A.BufferHelper.bufferInfo(N,V,0),D=L.duration,W=Math.min(this.config.maxFragLookUpTolerance*2,D*.25),F=Math.max(Math.min(L.start-W,H.end-W),V+W);L.start-F>W&&this.flushMainBuffer(F,L.start)},T.getFwdBufferInfo=function(L,N){var V=this.config,H=this.getLoadPosition();if(!Object(b.isFiniteNumber)(H))return null;var D=A.BufferHelper.bufferInfo(L,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(L,H,Math.max(D.nextStart,V.maxBufferHole))}return D},T.getMaxBufferLength=function(L){var N=this.config,V;return L?V=Math.max(8*N.maxBufferSize/L,N.maxBufferLength):V=N.maxBufferLength,Math.min(V,N.maxMaxBufferLength)},T.reduceMaxBufferLength=function(L){var N=this.config,V=L||N.maxBufferLength;return N.maxMaxBufferLength>=V?(N.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+N.maxMaxBufferLength+"s"),!0):!1},T.getNextFragment=function(L,N){var V,H,D=N.fragments,W=D.length;if(!W)return null;var F=this.config,I=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:L)}else L<=I&&(K=D[0]);if(!K){var he=F.lowLatencyMode?N.partEnd:N.fragmentEnd;K=this.getFragmentAtPosition(L,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(L,N,V){for(var H=-1,D=!1,W=!0,F=0,I=L.length;F<I;F++){var K=L[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(L,N){var V=L[L.length-1];return V&&N>V.start&&V.loaded},T.getInitialLiveFragment=function(L,N){var V=this.fragPrevious,H=null;if(V){if(L.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>=L.startSN&&D<=L.endSN){var W=N[D-L.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?L.fragmentEnd:L.edge,L))}return H},T.getFragmentAtPosition=function(L,N,V){var H=this.config,D=this.fragPrevious,W=V.fragments,F=V.endSN,I=V.fragmentHint,K=H.maxFragLookUpTolerance,ee=!!(H.lowLatencyMode&&V.partList&&I);ee&&I&&!this.bitrateTest&&(W=W.concat(I),F=I.sn);var he;if(L<N){var de=L>N-K?0:K;he=Object(i.findFragmentByPTS)(D,W,L,de)}else he=W[W.length-1];if(he){var Se=he.sn-V.startSN,Te=D&&he.level===D.level,ce=W[Se+1],be=this.fragmentTracker.getState(he);if(be===C.FragmentState.BACKTRACKED){he=null;for(var ye=Se;W[ye]&&this.fragmentTracker.getState(W[ye])===C.FragmentState.BACKTRACKED;)D?he=W[ye--]:he=W[--ye];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(L){var N=this.config,V=this.media;if(!V)return;var H=this.hls.liveSyncPosition,D=V.currentTime,W=L.fragments[0].start,F=L.edge,I=D>=W-N.maxFragLookUpTolerance&&D<=F;if(H!==null&&V.duration>H&&(D<H||!I)){var K=N.liveMaxLatencyDuration!==void 0?N.liveMaxLatencyDuration:N.liveMaxLatencyDurationCount*L.targetduration;(!I&&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(L,N){var V=this.levels,H=this.levelLastLoaded,D=this.fragPrevious,W=H!==null?V[H]:null,F=L.fragments.length;if(!F)return this.warn("No fragments in live playlist"),0;var I=L.fragments[0].start,K=!N,ee=L.alignedSliding&&Object(b.isFiniteNumber)(I);if(K||!ee&&!I){Object(n.alignStream)(D,W,L);var he=L.fragments[0].start;return this.log("Live playlist sliding: "+he.toFixed(2)+" start-sn: "+(N?N.startSN:"na")+"->"+L.startSN+" prev-sn: "+(D?D.sn:"na")+" fragments: "+F),he}return I},T.waitForCdnTuneIn=function(L){var N=3;return L.live&&L.canBlockReload&&L.tuneInGoal>Math.max(L.partHoldBack,L.partTarget*N)},T.setStartPosition=function(L,N){var V=this.startPosition;if(V<N&&(V=-1),V===-1||this.lastCurrentTime===-1){var H=L.startTimeOffset;Object(b.isFiniteNumber)(H)?(V=N+H,H<0&&(V+=L.totalduration),V=Math.min(Math.max(N,V),N+L.totalduration),this.log("Start time offset "+H+" found in playlist, adjust startPosition to "+V),this.startPosition=V):L.live?V=this.hls.liveSyncPosition||N:this.startPosition=V=0,this.lastCurrentTime=V}this.nextLoadPosition=V},T.getLoadPosition=function(){var L=this.media,N=0;return this.loadedmetadata&&L?N=L.currentTime:this.nextLoadPosition&&(N=this.nextLoadPosition),N},T.handleFragLoadAborted=function(L,N){this.transmuxer&&L.sn!=="initSegment"&&L.stats.aborted&&(this.warn("Fragment "+L.sn+(N?" part"+N.index:"")+" of level "+L.level+" was aborted"),this.resetFragmentLoading(L))},T.resetFragmentLoading=function(L){(!this.fragCurrent||!this.fragContextChanged(L))&&(this.state=R.IDLE)},T.onFragmentOrKeyLoadError=function(L,N){if(N.fatal)return;var V=N.frag;if(!V||V.type!==L)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 "+L+" "+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?(L===s.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=R.IDLE):(m.logger.error(N.details+" reaches max retry, redispatch as fatal ..."),N.fatal=!0,this.hls.stopLoad(),this.state=R.ERROR)},T.afterBufferFlushed=function(L,N,V){if(!L)return;var H=A.BufferHelper.getBuffered(L);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(L){if(!this.loadedmetadata){this.startFragRequested=!1;var N=this.levels?this.levels[L].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(L,N,V,H){var D=this,W=V.details;console.assert(!!W,"level.details must be defined");var F=Object.keys(L.elementaryStreams).reduce(function(I,K){var ee=L.elementaryStreams[K];if(ee){var he=ee.endPTS-ee.startPTS;if(he<=0)return D.warn("Could not parse fragment "+L.sn+" "+K+" duration reliably ("+he+") resetting transmuxer to fallback to playlist timing"),D.resetTransmuxer(),I||!1;var de=H?0:Object(r.updateFragPTSDTS)(W,L,ee.startPTS,ee.endPTS,ee.startDTS,ee.endDTS);return D.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:W,level:V,drift:de,type:K,frag:L,start:ee.startPTS,end:ee.endPTS}),!0}return I},!1);F?(this.state=R.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:L,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(L){var N=this._state;N!==L&&(this._state=L,this.log(N+"->"+L))}}]),v}(y.default)},"./src/controller/buffer-controller.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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"),m=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 L=x.stats.buffering,N=S?S.stats.buffering:null;L.start===0&&(L.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 I=x.start-F.timestampOffset;Math.abs(I)>=.1&&(C.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+x.start+" (delta: "+I+") 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,L.first===0&&(L.first=F),N&&N.first===0&&(N.first=F);var I=u.sourceBuffer,K={};for(var ee in I)K[ee]=m.BufferHelper.getBuffered(I[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 I={type:A.ErrorTypes.MEDIA_ERROR,parent:x.type,details:A.ErrorDetails.BUFFER_APPEND_ERROR,err:F,fatal:!1};F.code===DOMException.QUOTA_EXCEEDED_ERR?I.details=A.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,I.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"),I.fatal=!0)),w.trigger(y.Events.ERROR,I)}};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=m.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,g,O){"use strict";O.r(g),O.d(g,"default",function(){return y});var b=O("./src/utils/logger.ts"),y=function(){function C(m){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=m}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,g,O){"use strict";O.r(g);var b=O("./src/events.ts");function y(m,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(m,a.key,a)}}function C(m,e,f){return e&&y(m.prototype,e),f&&y(m,f),m}var A=function(){function m(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=m.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){m.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 m.isLevelAllowed(c,l.restrictedLevels)&&c<=a});return this.clientRect=null,m.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},m.isLevelAllowed=function(a,l){return l===void 0&&(l=[]),l.indexOf(a)===-1},m.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(m,[{key:"mediaWidth",get:function(){return this.getDimensions().width*m.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*m.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(l){}return a}}]),m}();g.default=A},"./src/controller/cmcd-controller.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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 m(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&&m(r.prototype,c),h&&m(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 L=typeof T,N=void 0;v==="ot"||v==="sf"||v==="st"?N=v+"="+T:L==="boolean"?N=v:L==="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,g,O){"use strict";O.r(g);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 m(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&&m(i.prototype,r),c&&m(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}();g.default=n},"./src/controller/fps-controller.ts":function(M,g,O){"use strict";O.r(g);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 m=A.prototype;return m.setStreamController=function(f){this.streamController=f},m.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},m.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching)},m.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},m.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)}},m.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}},m.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}();g.default=C},"./src/controller/fragment-finders.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"findFragmentByPDT",function(){return C}),O.d(g,"findFragmentByPTS",function(){return A}),O.d(g,"fragmentWithinToleranceTest",function(){return m}),O.d(g,"pdtWithinToleranceTest",function(){return e}),O.d(g,"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&&m(n,i,r)===0)return r;var c=y.default.search(l,m.bind(null,n,i));return c||r}function m(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,g,O){"use strict";O.r(g),O.d(g,"FragmentState",function(){return C}),O.d(g,"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;m(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?m(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 m(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,g,O){"use strict";O.r(g),O.d(g,"STALL_MINIMUM_DURATION_MS",function(){return m}),O.d(g,"MAX_START_GAP_JUMP",function(){return e}),O.d(g,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return f}),O.d(g,"SKIP_BUFFER_RANGE_START",function(){return a}),O.d(g,"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"),m=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,L=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(L>0&&L<=H){this._trySkipBufferHole(null);return}}var D=self.performance.now();if(s===null){this.stalled=D;return}var W=D-s;!w&&W>=m&&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,g,O){"use strict";O.r(g);var b=O("./src/events.ts"),y=O("./src/utils/texttrack-utils.ts"),C=O("./src/demux/id3.ts"),A=.25,m=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}();g.default=m},"./src/controller/latency-controller.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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 m(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},m(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,g,O){"use strict";O.r(g),O.d(g,"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"),m=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,L=!1,N=!1;if(_.levels.forEach(function(W){var F=W.attrs;U=U||!!(W.width&&W.height),L=L||!!W.videoCodec,N=N||!!W.audioCodec,c&&W.audioCodec&&W.audioCodec.indexOf("mp4a.40.34")!==-1&&(W.audioCodec=void 0);var I=W.bitrate+"-"+W.attrs.RESOLUTION+"-"+W.attrs.CODECS;T=v[I],T?T.url.push(W.url):(T=new b.Level(W),v[I]=T,P.push(T)),F&&(F.AUDIO&&Object(m.addGroupId)(T,"audio",F.AUDIO),F.SUBTITLES&&Object(m.addGroupId)(T,"text",F.SUBTITLES))}),(U||L)&&N&&(P=P.filter(function(W){var F=W.videoCodec,I=W.width,K=W.height;return!!F||!!(I&&K)})),P=P.filter(function(W){var F=W.audioCodec,I=W.videoCodec;return(!F||Object(A.isCodecSupportedInMp4)(F,"audio"))&&(!I||Object(A.isCodecSupportedInMp4)(I,"video"))}),_.audioTracks&&(R=_.audioTracks.filter(function(W){return!W.audioCodec||Object(A.isCodecSupportedInMp4)(W.audioCodec,"audio")}),Object(m.assignTrackIdsByGroup)(R)),_.subtitles&&(x=_.subtitles,Object(m.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&&!L,D={levels:P,audioTracks:R,subtitleTracks:x,firstLevel:this._firstLevel,stats:_.stats,audio:N,video:L,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 L=this.switchParams(v.uri,S==null?void 0:S.details);this.loadPlaylist(L)}}},{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,g,O){"use strict";O.r(g),O.d(g,"addGroupId",function(){return C}),O.d(g,"assignTrackIdsByGroup",function(){return A}),O.d(g,"updatePTS",function(){return m}),O.d(g,"updateFragPTSDTS",function(){return f}),O.d(g,"mergeDetails",function(){return a}),O.d(g,"mapPartIntersection",function(){return l}),O.d(g,"mapFragmentIntersection",function(){return n}),O.d(g,"adjustSliding",function(){return i}),O.d(g,"addSliding",function(){return r}),O.d(g,"computeReloadInterval",function(){return c}),O.d(g,"getFragmentWithSN",function(){return h}),O.d(g,"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 m(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 L=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,L}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 L=u.advancedDateTime;if(u.advanced&&L){var N=u.edge;u.driftStart||(u.driftStartTime=L,u.driftStart=N),u.driftEndTime=L,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,g,O){"use strict";O.r(g),O.d(g,"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"),m=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 L,N=self.performance.now(),V=this.retryDate;(!V||N>=V||(L=this.media)!==null&&L!==void 0&&L.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,L=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(!L||!L[H])return;var D=L[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 I=F.len,K=this.getMaxBufferLength(D.maxBitrate);if(I>=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,de=this.getNextFragment(he,W);if(this.couldBacktrack&&!this.fragPrevious&&de&&de.sn!=="initSegment"){var Se=de.sn-W.startSN;Se>1&&(de=W.fragments[Se-1],this.fragmentTracker.removeFragment(de))}if(de&&this.fragmentTracker.getState(de)===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),de=this.getNextFragment(this.nextLoadPosition,W)}if(!de)return;de.initSegment&&!de.initSegment.data&&!this.bitrateTest&&(de=de.initSegment),((S=de.decryptdata)===null||S===void 0?void 0:S.keyFormat)==="identity"&&!((v=de.decryptdata)!==null&&v!==void 0&&v.key)?this.loadKey(de,W):this.loadFragment(de,W,he)},R.loadFragment=function(S,v,T){var U,L=this.fragmentTracker.getState(S);if(this.fragCurrent=S,L===e.FragmentState.BACKTRACKED){var N=this.fragmentTracker.getBacktrackData(S);if(N){this._handleFragmentLoadProgress(N),this._handleFragmentLoadComplete(N);return}else L=e.FragmentState.NOT_LOADED}L===e.FragmentState.NOT_LOADED||L===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)):L===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 L=this.hls.nextLoadLevel,N=S[L],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,I=Math.max(H.end,W+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(I,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,L;v.levels.forEach(function(N){L=N.audioCodec,L&&(L.indexOf("mp4a.40.2")!==-1&&(T=!0),L.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,L=v.level,N=v.details,V=N.totalduration;if(!U){this.warn("Levels were reset while loading level "+L);return}this.log("Level "+L+" 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[L],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=L,this.hls.trigger(A.Events.LEVEL_UPDATED,{details:N,level:L}),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,L=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,I=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,de=new n.ChunkMetadata(T.level,T.sn,T.stats.chunkCount,L.byteLength,ee,he),Se=this.initPTS[T.cc];K.push(L,F,I,D,T,U,H.totalduration,W,de,Se)},R.onAudioTrackSwitching=function(S,v){var T=this.altAudio,U=!!v.url,L=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:L})}},R.onAudioTrackSwitched=function(S,v){var T=v.id,U=!!this.hls.audioTracks[T].url;if(U){var L=this.videoBuffer;L&&this.mediaBuffer!==L&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=L)}this.altAudio=U,this.tick()},R.onBufferCreated=function(S,v){var T=v.tracks,U,L,N=!1;for(var V in T){var H=T[V];if(H.id==="main"){if(L=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 "+L+".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 L=U?U.stats:T.stats;this.fragLastKbps=Math.round(8*L.total/(L.buffering.end-L.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=m.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=m.BufferHelper.getBuffered(S),L=U.length?U.start(0):0,N=L-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 L=S.stats;L.parsing.start=L.parsing.end=L.buffering.start=L.buffering.end=self.performance.now(),U.trigger(A.Events.FRAG_LOADED,T)})},R._handleTransmuxComplete=function(S){var v,T="main",U=this.hls,L=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=L.video,I=L.text,K=L.id3,ee=L.initSegment,he=this.altAudio?void 0:L.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 de=ee.initPTS,Se=ee.timescale;Object(b.isFiniteNumber)(de)&&(this.initPTS[H.cc]=de,U.trigger(A.Events.INIT_PTS_FOUND,{frag:H,id:T,initPTS:de,timescale:Se}))}if(F&&L.independent!==!1){if(W.details){var Te=F.startPTS,ce=F.endPTS,be=F.startDTS,ye=F.endDTS;if(D)D.elementaryStreams[F.type]={startPTS:Te,endPTS:ce,startDTS:be,endDTS:ye};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,ye,!0)}H.setElementaryStreamInfo(F.type,Te,ce,be,ye),this.bufferFragmentData(F,H,D,N)}}else if(L.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(I){var Oe={frag:H,id:T,samples:I.samples};U.trigger(A.Events.FRAG_PARSING_USERDATA,Oe)}},R._bufferInitSegment=function(S,v,T,U){var L=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 I=v[F],K=I.initSegment;K!=null&&K.byteLength&&L.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(m.BufferHelper.isBuffered(S,T)?v=this.getAppendedFrag(T):m.BufferHelper.isBuffered(S,T+.1)&&(v=this.getAppendedFrag(T+.1)),v){var U=this.fragPlaying,L=v.level;(!U||v.sn!==U.sn||U.level!==L||v.urlId!==U.urlId)&&(this.hls.trigger(A.Events.FRAG_CHANGED,{frag:v}),(!U||U.level!==L)&&this.hls.trigger(A.Events.LEVEL_SWITCHED,{level:L}),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,g,O){"use strict";O.r(g),O.d(g,"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"),m=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,L=0;L<v.length;L++)if(U>=v[L].start&&U<=v[L].end){T=v[L];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,L=U.targetduration,N=S-L;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 L=U[T];if(v>=U.length||v!==T||!L)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,S.live||(x=L.details)!==null&&x!==void 0&&x.live){var N=this.mainDetails;if(S.deltaUpdateFailed||!N)return;var V=N.fragments[0];if(!L.details)S.hasProgramDateTime&&N.hasProgramDateTime?Object(m.alignMediaPlaylistByPDT)(S,N):V&&Object(e.addSliding)(S,V.start);else{var H=this.alignPlaylists(S,L.details);H===0&&V&&Object(e.addSliding)(S,V.start)}}if(L.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"),L.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 L=performance.now();v.trigger(b.Events.FRAG_DECRYPTED,{frag:R,payload:U,stats:{tstart:T,tdecrypt:L}})})}},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,L=C.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,U.currentTime-v,T.maxBufferHole),N=L.end,V=L.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,I,K=this.fragPrevious;if(N<F){var ee=T.maxFragLookUpTolerance;K&&S.hasProgramDateTime&&(I=Object(A.findFragmentByPDT)(D,K.endProgramDateTime,ee)),I||(I=Object(A.findFragmentByPTS)(K,D,N,ee),!I&&K&&K.start<D[0].start&&(I=D[0]))}else I=D[W-1];(P=I)!==null&&P!==void 0&&P.encrypted?(y.logger.log("Loading key for "+I.sn),this.state=a.State.KEY_LOADING,this.hls.trigger(b.Events.KEY_LOADING,{frag:I})):I&&this.fragmentTracker.getState(I)===f.FragmentState.NOT_LOADED&&this.loadFragment(I,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,g,O){"use strict";O.r(g);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 m(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&&m(i.prototype,r),c&&m(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}g.default=l},"./src/controller/timeline-controller.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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"),m=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 L=null,N=0;N<x.length;N++)if(i(x[N],v)){L=x[N];break}L&&(U=L)}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(m.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,g,O){"use strict";O.r(g),O.d(g,"default",function(){return b});var b=function(){function y(A,m){this.subtle=void 0,this.aesIV=void 0,this.subtle=A,this.aesIV=m}var C=y.prototype;return C.decrypt=function(m,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,m)},y}()},"./src/crypt/aes-decryptor.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"removePadding",function(){return y}),O.d(g,"default",function(){return C});var b=O("./src/utils/typed-array.ts");function y(A){var m=A.byteLength,e=m&&new DataView(A.buffer).getUint8(m-1);return e?Object(b.sliceUint8)(A,0,m-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 m=A.prototype;return m.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},m.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}},m.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},m.networkToHostOrderSwap=function(f){return f<<24|(f&65280)<<8|(f&16711680)>>8|f>>>24},m.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,L,N,V,H,D,W,F,I,K,ee,he,de=this.networkToHostOrderSwap;a<x.length;){for(W=de(x[a]),F=de(x[a+1]),I=de(x[a+2]),K=de(x[a+3]),N=W^i[0],V=K^i[1],H=I^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],L=h[D>>>24]^d[N>>16&255]^s[V>>8&255]^u[H&255]^i[ee+3],N=v,V=T,H=U,D=L,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],L=r[D>>>24]<<24^r[N>>16&255]<<16^r[V>>8&255]<<8^r[H&255]^i[ee+3],S[a]=de(v^E),S[a+1]=de(L^_),S[a+2]=de(U^P),S[a+3]=de(T^R),E=W,_=F,P=I,R=K,a=a+4}return S.buffer},A}()},"./src/crypt/decrypter.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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"),m=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(m.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,g,O){"use strict";O.r(g),O.d(g,"default",function(){return b});var b=function(){function y(A,m){this.subtle=void 0,this.key=void 0,this.subtle=A,this.key=m}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,g,O){"use strict";O.r(g);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 m(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){m(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,g.default=f},"./src/demux/adts.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"getAudioConfig",function(){return A}),O.d(g,"isHeaderPattern",function(){return m}),O.d(g,"getHeaderLength",function(){return e}),O.d(g,"getFullFrameLength",function(){return f}),O.d(g,"canGetFrameLength",function(){return a}),O.d(g,"isHeader",function(){return l}),O.d(g,"canParse",function(){return n}),O.d(g,"probe",function(){return i}),O.d(g,"initTrackConfig",function(){return r}),O.d(g,"getFrameDuration",function(){return c}),O.d(g,"parseFrameHeader",function(){return h}),O.d(g,"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 m(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&&m(s,u)}function n(s,u){return a(s,u)&&m(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),L;U?(L=new Uint8Array(T-S),L.set(u.subarray(w+S,u.length),0)):L=u.subarray(w+S,w+T);var N={unit:L,pts:v};return U||s.samples.push(N),{sample:N,length:T,missing:U}}}},"./src/demux/base-audio-demuxer.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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"),m=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(m.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};g.default=e},"./src/demux/chunk-cache.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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 m=new Uint8Array(A),e=0,f=0;f<C.length;f++){var a=C[f];m.set(a,e),e+=a.length}return m}},"./src/demux/dummy-demuxed-track.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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,g,O){"use strict";O.r(g);var b=O("./src/utils/logger.ts"),y=function(){function C(m){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=m,this.bytesAvailable=m.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 L=c();switch(L){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}();g.default=y},"./src/demux/id3.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"isHeader",function(){return b}),O.d(g,"isFooter",function(){return y}),O.d(g,"getID3Data",function(){return C}),O.d(g,"canParse",function(){return m}),O.d(g,"getTimeStamp",function(){return e}),O.d(g,"isTimeStampFrame",function(){return f}),O.d(g,"getID3Frames",function(){return l}),O.d(g,"decodeFrame",function(){return n}),O.d(g,"utf8ArrayToStr",function(){return d}),O.d(g,"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},m=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,L,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++],L=_[V++],N+=String.fromCharCode((T&15)<<12|(U&63)<<6|(L&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,g,O){"use strict";O.r(g);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 m(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){m(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,g.default=f},"./src/demux/mp4demuxer.ts":function(M,g,O){"use strict";O.r(g);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 m=A.prototype;return m.resetTimeStamp=function(){},m.resetInitSegment=function(){},m.resetContiguity=function(){},A.probe=function(f){return Object(b.findBox)({data:f,start:0,end:Math.min(f.length,16384)},["moof"]).length>0},m.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)()}},m.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)()}},m.demuxSampleAes=function(f,a,l){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},m.destroy=function(){},A}();C.minProbeByteLength=1024,g.default=C},"./src/demux/mpegaudio.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"appendFrame",function(){return e}),O.d(g,"parseHeader",function(){return f}),O.d(g,"isHeaderPattern",function(){return a}),O.d(g,"isHeader",function(){return l}),O.d(g,"canParse",function(){return n}),O.d(g,"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]],m=[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=m[d],U=v*8*T,L=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:L,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,g,O){"use strict";O.r(g);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 m=A.prototype;return m.decryptBuffer=function(f,a){this.decrypter.decrypt(f,this.keyData.key.buffer,this.keyData.iv.buffer,a)},m.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)})},m.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}},m.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},m.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},m.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)})},m.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}();g.default=C},"./src/demux/transmuxer-interface.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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"),m=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"){m.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){m.logger.warn("Error in worker:",S),m.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,L=_?_.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,I=!D&&(W===1||W===0&&F===1),K=self.performance.now();(D||W||E.stats.parsing.start===0)&&(E.stats.parsing.start=K),_&&(F||!I)&&(_.stats.parsing.start=K);var ee=new A.TransmuxState(H,I,R,D,L);if(!I||H){m.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: `+I+`
|
|
|
accurateTimeOffset: `+R+`
|
|
|
timeOffset: `+L);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 de=T.push(d,N,x,ee);Object(A.isPromise)(de)?de.then(function(Se){v.handleTransmuxComplete(Se)}):this.handleTransmuxComplete(de)}},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,g,O){"use strict";O.r(g),O.d(g,"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"),m=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,g,O){"use strict";O.r(g),O.d(g,"default",function(){return s}),O.d(g,"isPromise",function(){return E}),O.d(g,"TransmuxConfig",function(){return _}),O.d(g,"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"),m=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:m.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,L){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=L}var x=R.prototype;return x.configure=function(v){this.transmuxConfig=v,this.decrypter&&this.decrypter.reset()},x.push=function(v,T,U,L){var N=this,V=U.transmuxing;V.executeStart=c();var H=new Uint8Array(v),D=this.cache,W=this.config,F=this.currentTransmuxState,I=this.transmuxConfig;L&&(this.currentTransmuxState=L);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 de=L||F,Se=de.contiguous,Te=de.discontinuity,ce=de.trackSwitch,be=de.accurateTimeOffset,ye=de.timeOffset,ue=I.audioCodec,se=I.videoCodec,$=I.defaultInitPts,me=I.duration,re=I.initSegmentData;if((Te||ce)&&this.resetInitSegment(re,ue,se,me),Te&&this.resetInitialTimestamp($),Se||this.resetContiguity(),this.needsProbing(H,Te,ce)){if(D.dataLength){var ae=D.flush();H=Object(i.appendUint8Array)(ae,H)}this.configureTransmuxer(H,I)}var Oe=this.transmux(H,K,ye,be,U),le=this.currentTransmuxState;return le.contiguous=!0,le.discontinuity=!1,le.trackSwitch=!1,V.executeEnd=c(),Oe},x.flush=function(v){var T=this,U=v.transmuxing;U.executeStart=c();var L=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(L){var F=L.flush();F&&D.push(this.push(F,null,v))}var I=N.dataLength;N.reset();var K=this.demuxer,ee=this.remuxer;if(!K||!ee)return I>=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(de){return T.flushRemux(D,de,v),D}):(this.flushRemux(D,he,v),D)},x.flushRemux=function(v,T,U){var L=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 I=this.remuxer.remux(L,N,V,H,F,W,!0,this.id);v.push({remuxResult:I,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,L){var N=this.demuxer,V=this.remuxer;if(!N||!V)return;N.resetInitSegment(T,U,L),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,L,N){var V;return T&&T.method==="SAMPLE-AES"?V=this.transmuxSampleAes(v,T,U,L,N):V=this.transmuxUnencrypted(v,U,L,N),V},x.transmuxUnencrypted=function(v,T,U,L){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:L}},x.transmuxSampleAes=function(v,T,U,L,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,L,!1,V.id);return{remuxResult:D,chunkMeta:N}})},x.configureTransmuxer=function(v,T){for(var U=this.config,L=this.observer,N=this.typeSupported,V=this.vendor,H=T.audioCodec,D=T.defaultInitPts,W=T.duration,F=T.initSegmentData,I=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:m.default,remux:l.default});var de=this.demuxer,Se=this.remuxer,Te=K.remux,ce=K.demux;(!Se||!(Se instanceof Te))&&(this.remuxer=new Te(L,U,N,V)),(!de||!(de instanceof ce))&&(this.demuxer=new ce(L,U,N),this.probe=ce.probe),this.resetInitSegment(F,H,I,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,g,O){"use strict";O.r(g),O.d(g,"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"),m=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,L=this._audioTrack,N=this._id3Track,V=U.pid,H=U.pesData,D=L.pid,W=N.pid,F=L.pesData,I=N.pesData,K=!1,ee=this.pmtParsed,he=this._pmtId,de=R.length;if(this.remainderData&&(R=Object(f.appendUint8Array)(this.remainderData,R),de=R.length,this.remainderData=null),de<188&&!v)return this.remainderData=R,{audioTrack:L,avcTrack:U,id3Track:N,textTrack:this._txtTrack};var Se=Math.max(0,E.syncOffset(R));de-=(de+Se)%188,de<R.byteLength&&!v&&(this.remainderData=new Uint8Array(R.buffer,de,R.buffer.byteLength-de));for(var Te=Se;Te<de;Te+=188)if(R[Te]===71){var ce=!!(R[Te+1]&64),be=((R[Te+1]&31)<<8)+R[Te+2],ye=(R[Te+3]&48)>>4,ue=void 0;if(ye>1){if(ue=Te+5+R[Te+4],ue===Te+188)continue}else ue=Te+4;switch(be){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))&&(L.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&&(I&&(T=d(I))&&this.parseID3PES(T),I={data:[],size:0}),I&&(I.data.push(R.subarray(ue,Te+188)),I.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&&(L.pid=D,L.isAAC=se.isAAC),W=se.id3,W>0&&(N.pid=W),K&&!ee&&(a.logger.log("reparse from beginning"),K=!1,Te=Se-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,L.pesData=F,N.pesData=I;var $={audioTrack:L,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,L=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),L&&(N=d(L))?(this.parseID3PES(N),v.pesData=null):v.pesData=L},_.demuxSampleAes=function(R,x,S){var v=this.demux(R,S,!0,!this.config.progressive),T=this.sampleAes=new m.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,L=this.avcSample,N,V=!1;R.data=null,L&&T.length&&!v.audFound&&(s(L,v),L=this.avcSample=r(!1,R.pts,R.dts,"")),T.forEach(function(H){switch(H.type){case 1:{N=!0,L||(L=S.avcSample=r(!0,R.pts,R.dts,"")),U&&(L.debug+="NDR "),L.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)&&(L.key=!0)}break}case 5:N=!0,L||(L=S.avcSample=r(!0,R.pts,R.dts,"")),U&&(L.debug+="IDR "),L.key=!0,L.frame=!0;break;case 6:{N=!0,U&&L&&(L.debug+="SEI ");var F=new C.default(w(H.data));F.readUByte();for(var I=0,K=0,ee=!1,he=0;!ee&&F.bytesAvailable>1;){I=0;do he=F.readUByte(),I+=he;while(he===255);K=0;do he=F.readUByte(),K+=he;while(he===255);if(I===4&&F.bytesAvailable!==0){ee=!0;var de=F.readUByte();if(de===181){var Se=F.readUShort();if(Se===49){var Te=F.readUInt();if(Te===1195456820){var ce=F.readUByte();if(ce===3){for(var be=F.readUByte(),ye=F.readUByte(),ue=31&be,se=[be,ye],$=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(I===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,Oe=new Uint8Array(ae),le=0;le<ae;le++)Oe[le]=F.readUByte();u(S._txtTrack.samples,{pts:R.pts,payloadType:I,uuid:me.join(""),userData:Object(A.utf8ArrayToStr)(Oe),userDataBytes:Oe})}}else if(K<F.bytesAvailable)for(var te=0;te<K;te++)F.readUByte()}break}case 7:if(N=!0,V=!0,U&&L&&(L.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.",Ae=0;Ae<3;Ae++){var Je=ve[Ae].toString(16);Je.length<2&&(Je="0"+Je),_e+=Je}v.codec=_e}break;case 8:N=!0,U&&L&&(L.debug+="PPS "),v.pps||(v.pps=[H.data]);break;case 9:N=!1,v.audFound=!0,L&&s(L,v),L=S.avcSample=r(!1,R.pts,R.dts,U?"AUD ":"");break;case 12:N=!1;break;default:N=!1,L&&(L.debug+="unknown NAL "+H.type+" ");break}if(L&&N){var tt=L.units;tt.push(H)}}),x&&L&&(s(L,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=[],L=0,N,V,H,D=-1,W=0;for(v===-1&&(D=0,W=R[0]&31,v=0,L=1);L<x;){if(N=R[L++],!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,L-v-1),type:W};U.push(F)}else{var I=this.getLastNalUnit();if(I&&(T&&L<=4-T&&(I.state&&(I.data=I.data.subarray(0,I.data.byteLength-T))),V=L-v-1,V>0)){var K=new Uint8Array(I.data.byteLength+V);K.set(I.data,0),K.set(R.subarray(0,V),I.data.byteLength),I.data=K,I.state=0}}L<x?(H=R[L]&31,D=L,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 de=new Uint8Array(he.data.byteLength+R.byteLength);de.set(he.data,0),de.set(R,he.data.byteLength),he.data=de}}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,L=Math.min(v.missing,U),N=U-L;v.sample.unit.set(T.subarray(0,L),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 I=b.getFrameDuration(S.samplerate);F=v.sample.pts+I}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 L=y.appendFrame(this._audioTrack,x,T,U,v);if(L)T+=L.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 L=(P[0]<<16)+(P[1]<<8)+P[2];if(L===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}g.default=i},"./src/errors.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"ErrorTypes",function(){return b}),O.d(g,"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,g,O){"use strict";O.r(g),O.d(g,"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,g,O){"use strict";O.r(g),O.d(g,"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"),m=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,L=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 m.default(this),I=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=[I,ee];this.networkControllers=he;var de=[D,W,L,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,de),this.emeController=this.createController(x.emeController,null,de),this.cmcdController=this.createController(x.cmcdController,null,de),this.latencyController=this.createController(e.default,null,de),this.coreComponents=de}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,g,O){"use strict";O.r(g),O.d(g,"isSupported",function(){return C}),O.d(g,"changeTypeSupported",function(){return A});var b=O("./src/utils/mediasource-helper.ts");function y(){return self.SourceBuffer||self.WebKitSourceBuffer}function C(){var m=Object(b.getMediaSource)();if(!m)return!1;var e=y(),f=m&&typeof m.isTypeSupported=="function"&&m.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 m,e=y();return typeof(e==null||((m=e.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"default",function(){return i}),O.d(g,"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 m(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 m(h,d,s){return e()?m=Reflect.construct:m=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},m.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),L={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};u.stats=T.stats,T.load(U,L,{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),L={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};w.stats=T.stats,T.load(U,L,{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,g,O){"use strict";O.r(g),O.d(g,"ElementaryStreamTypes",function(){return i}),O.d(g,"BaseSegment",function(){return r}),O.d(g,"Fragment",function(){return c}),O.d(g,"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"),m=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=m.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,g,O){"use strict";O.r(g),O.d(g,"default",function(){return A});var b=O("./src/events.ts"),y=O("./src/errors.ts"),C=O("./src/utils/logger.ts"),A=function(){function m(f){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=f,this._registerListeners()}var e=m.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})},m}()},"./src/loader/level-details.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"LevelDetails",function(){return m});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,m=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,g,O){"use strict";O.r(g),O.d(g,"LevelKey",function(){return m});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 m=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,g,O){"use strict";O.r(g),O.d(g,"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,g,O){"use strict";O.r(g),O.d(g,"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"),m=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 L;(L=n.exec(x))!=null;)if(L[1]){var N=new f.AttrList(L[1]),V={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:P.resolve(L[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(L[3]){var D=new f.AttrList(L[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,L=[],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")}L.push(H)}}return L},P.parseLevelPlaylist=function(x,S,v,T,U){var L=new m.LevelDetails(S),N=L.fragments,V=null,H=0,D=0,W=0,F=0,I=null,K=new A.Fragment(T,S),ee,he,de,Se=-1,Te=!1;for(r.lastIndex=0,L.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 be=(" "+ee[2]).slice(1);K.title=be||null,K.tagList.push(be?["INF",ce,be]:["INF",ce])}else if(ee[3])Object(b.isFiniteNumber)(K.duration)&&(K.start=W,de&&(K.levelkey=de),K.sn=H,K.level=v,K.cc=F,K.urlId=U,N.push(K),K.relurl=(" "+ee[3]).slice(1),_(K,I),I=K,W+=K.duration,H++,D=0,Te=!0);else if(ee[4]){var ye=(" "+ee[4]).slice(1);I?K.setByteRange(ye,I):K.setByteRange(ye)}else if(ee[5])K.rawProgramDateTime=(" "+ee[5]).slice(1),K.tagList.push(["PROGRAM-DATE-TIME",K.rawProgramDateTime]),Se===-1&&(Se=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":L.type=se.toUpperCase();break;case"MEDIA-SEQUENCE":H=L.startSN=parseInt(se);break;case"SKIP":{var me=new f.AttrList(se),re=me.decimalInteger("SKIPPED-SEGMENTS");if(Object(b.isFiniteNumber)(re)){L.skippedSegments=re;for(var ae=re;ae--;)N.unshift(null);H+=re}var Oe=me.enumeratedString("RECENTLY-REMOVED-DATERANGES");Oe&&(L.recentlyRemovedDateranges=Oe.split(" "));break}case"TARGETDURATION":L.targetduration=parseFloat(se);break;case"VERSION":L.version=parseInt(se);break;case"EXTM3U":break;case"ENDLIST":L.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"),Ae=te.enumeratedString("KEYID"),Je=(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(Je)>-1){a.logger.warn("Keyformat "+Je+" is not supported from the manifest");continue}else if(Je!=="identity")continue;Q&&(de=e.LevelKey.fromURL(S,J),J&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(de.method=Q,de.keyFormat=Je,Ae&&(de.keyID=Ae),_e&&(de.keyFormatVersions=_e),de.iv=ve));break}case"START":{var ut=new f.AttrList(se),ft=ut.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(ft)&&(L.startTimeOffset=ft);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",de&&(K.levelkey=de),K.initSegment=null,V=K,Te=!0;break}case"SERVER-CONTROL":{var _t=new f.AttrList(se);L.canBlockReload=_t.bool("CAN-BLOCK-RELOAD"),L.canSkipUntil=_t.optionalFloat("CAN-SKIP-UNTIL",0),L.canSkipDateRanges=L.canSkipUntil>0&&_t.bool("CAN-SKIP-DATERANGES"),L.partHoldBack=_t.optionalFloat("PART-HOLD-BACK",0),L.holdBack=_t.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ve=new f.AttrList(se);L.partTarget=Ve.decimalFloatingPoint("PART-TARGET");break}case"PART":{var je=L.partList;je||(je=L.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);L.preloadHint=Pt;break}case"RENDITION-REPORT":{var qe=new f.AttrList(se);L.renditionReports=L.renditionReports||[],L.renditionReports.push(qe);break}default:a.logger.warn("line parsed but not handled: "+ee);break}}}I&&!I.relurl?(N.pop(),W-=I.duration,L.partList&&(L.fragmentHint=I)):L.partList&&(_(K,I),K.cc=F,L.fragmentHint=K);var He=N.length,Ye=N[0],Ce=N[He-1];if(W+=L.skippedSegments*L.targetduration,W>0&&He&&Ce){L.averagetargetduration=W/He;var Le=Ce.sn;L.endSN=Le!=="initSegment"?Le:0,Ye&&(L.startCC=Ye.cc,Ye.initSegment||L.fragments.every(function(We){return We.relurl&&d(We.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=Ce.relurl,K.level=v,K.sn="initSegment",Ye.initSegment=K,L.needSidxRanges=!0))}else L.endSN=0,L.startCC=0;return L.fragmentHint&&(W+=L.fragmentHint.duration),L.totalduration=W,L.endCC=F,Se>0&&E(N,Se),L},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,g,O){"use strict";O.r(g);var b=O("./src/polyfills/number.ts"),y=O("./src/events.ts"),C=O("./src/errors.ts"),A=O("./src/utils/logger.ts"),m=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},L={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(d,U,L)},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),L=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:L,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 L={attrs:new a.AttrList({}),bitrate:0,details:U,name:"",url:x};E.trigger(y.Events.MANIFEST_LOADED,{levels:[L],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(m.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}();g.default=i},"./src/polyfills/number.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"isFiniteNumber",function(){return b}),O.d(g,"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,g,O){"use strict";O.r(g);var b=function(){function y(){}return y.getSilentFrame=function(A,m){switch(A){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===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(m===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(m===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(m===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(m===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}();g.default=b},"./src/remux/mp4-generator.ts":function(M,g,O){"use strict";O.r(g);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 m;for(m in C.types)C.types.hasOwnProperty(m)&&(C.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.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(m){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(m,4),n=0,e=8;n<i;n++)r.set(a[n],e),e+=a[n].byteLength;return r},C.hdlr=function(m){return C.box(C.types.hdlr,C.HDLR_TYPES[m])},C.mdat=function(m){return C.box(C.types.mdat,m)},C.mdhd=function(m,e){e*=m;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,m>>24&255,m>>16&255,m>>8&255,m&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(m){return C.box(C.types.mdia,C.mdhd(m.timescale,m.duration),C.hdlr(m.type),C.minf(m))},C.mfhd=function(m){return C.box(C.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},C.minf=function(m){return m.type==="audio"?C.box(C.types.minf,C.box(C.types.smhd,C.SMHD),C.DINF,C.stbl(m)):C.box(C.types.minf,C.box(C.types.vmhd,C.VMHD),C.DINF,C.stbl(m))},C.moof=function(m,e,f){return C.box(C.types.moof,C.mfhd(m),C.traf(f,e))},C.moov=function(m){for(var e=m.length,f=[];e--;)f[e]=C.trak(m[e]);return C.box.apply(null,[C.types.moov,C.mvhd(m[0].timescale,m[0].duration)].concat(f).concat(C.mvex(m)))},C.mvex=function(m){for(var e=m.length,f=[];e--;)f[e]=C.trex(m[e]);return C.box.apply(null,[C.types.mvex].concat(f))},C.mvhd=function(m,e){e*=m;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,m>>24&255,m>>16&255,m>>8&255,m&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(m){var e=m.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(m){return C.box(C.types.stbl,C.stsd(m),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(m){var e=[],f=[],a,l,n;for(a=0;a<m.sps.length;a++)l=m.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<m.pps.length;a++)l=m.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|m.sps.length].concat(e).concat([m.pps.length]).concat(f))),r=m.width,c=m.height,h=m.pixelRatio[0],d=m.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(m){var e=m.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(m.config).concat([6,1,2]))},C.mp4a=function(m){var e=m.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,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),C.box(C.types.esds,C.esds(m)))},C.mp3=function(m){var e=m.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,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},C.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?C.box(C.types.stsd,C.STSD,C.mp3(m)):C.box(C.types.stsd,C.STSD,C.mp4a(m)):C.box(C.types.stsd,C.STSD,C.avc1(m))},C.tkhd=function(m){var e=m.id,f=m.duration*m.timescale,a=m.width,l=m.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(m,e){var f=C.sdtp(m),a=m.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(m,f.length+16+20+8+16+8+8),f)},C.trak=function(m){return m.duration=m.duration||4294967295,C.box(C.types.trak,C.tkhd(m),C.mdia(m))},C.trex=function(m){var e=m.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(m,e){var f=m.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(m){C.types||C.init();var e=C.moov(m),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,g.default=y},"./src/remux/mp4-remuxer.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"default",function(){return s}),O.d(g,"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"),m=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||"",L=U.match(/Chrome\/(\d+)/i);c=L?parseInt(L[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,L){var N=L.pts-U;return N<-4294967296?(v=!0,u(U,L.pts)):N>0?U:L.pts},S[0].pts);return v&&e.logger.debug("PTS rollover detected"),T},R.remux=function(S,v,T,U,L,N,V,H){var D,W,F,I,K,ee,he=L,de=L,Se=S.pid>-1,Te=v.pid>-1,ce=v.samples.length,be=S.samples.length>0,ye=ce>1,ue=(!Se||be)&&(!Te||ye)||this.ISGenerated||V;if(ue){this.ISGenerated||(F=this.generateIS(S,v,L));var se=this.isVideoContiguous,$=-1;if(ye&&($=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+=$,de+=(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(be&&ye){var re=this.getVideoStartPts(v.samples),ae=u(S.samples[0].pts,re)-re,Oe=ae/v.inputTimeScale;he+=Math.max(0,Oe),de+=Math.max(0,-Oe)}if(be){if(S.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(S,v,L)),W=this.remuxAudio(S,he,this.isAudioContiguous,N,Te||ye||H===f.PlaylistLevelType.AUDIO?de:void 0),ye){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,L)),D=this.remuxVideo(v,de,se,le)}}else ye&&(D=this.remuxVideo(v,de,se,0));D&&(D.firstKeyFrame=$,D.independent=$!==-1)}}return this.ISGenerated&&(T.samples.length&&(K=this.remuxID3(T,L)),U.samples.length&&(I=this.remuxText(U,L))),{audio:W,video:D,initSegment:F,independent:ee,text:I,id3:K}},R.generateIS=function(S,v,T){var U=S.samples,L=v.samples,N=this.typeSupported,V={},H=!Object(b.isFiniteNumber)(this._initPTS),D="audio/mp4",W,F,I;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&&(I=S.inputTimeScale,W=F=U[0].pts-Math.round(I*T))),v.sps&&v.pps&&L.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)){I=v.inputTimeScale;var K=this.getVideoStartPts(L),ee=Math.round(I*T);F=Math.min(F,u(L[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:I}},R.remuxVideo=function(S,v,T,U){var L=S.inputTimeScale,N=S.samples,V=[],H=N.length,D=this._initPTS,W=this.nextAvcDts,F=8,I,K,ee,he=Number.POSITIVE_INFINITY,de=Number.NEGATIVE_INFINITY,Se=0,Te=!1;if(!T||W===null){var ce=v*L,be=N[0].pts-u(N[0].dts,N[0].pts);W=ce-be}for(var ye=0;ye<H;ye++){var ue=N[ye];if(ue.pts=u(ue.pts-D,W),ue.dts=u(ue.dts-D,W),ue.dts>ue.pts){var se=9e4*.2;Se=Math.max(Math.min(Se,ue.pts-ue.dts),-1*se)}ue.dts<N[ye>0?ye-1:ye].dts&&(Te=!0)}Te&&N.sort(function(Ot,Fe){var at=Ot.dts-Fe.dts,it=Ot.pts-Fe.pts;return at||it}),K=N[0].dts,ee=N[N.length-1].dts;var $=Math.round((ee-K)/(H-1));if(Se<0){if(Se<$*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(a.toMsFromMpegTsClock)(-$,!0)+" ms");for(var me=Se,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)(Se,!0)+" ms to overcome this issue");for(var ae=0;ae<H;ae++)N[ae].dts=N[ae].dts+Se}K=N[0].dts}if(T){var Oe=K-W,le=Oe>$,te=Oe<-1;if(le||te){le?e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Oe,!0)+" ms ("+Oe+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Oe,!0)+" ms ("+Oe+"dts) overlapping between fragments detected"),K=W;var Q=N[0].pts-Oe;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)(Oe,!0)+" ms")}}d&&(K=Math.max(0,K));for(var J=0,ve=0,_e=0;_e<H;_e++){for(var Ae=N[_e],Je=Ae.units,tt=Je.length,ut=0,ft=0;ft<tt;ft++)ut+=Je[ft].data.length;ve+=ut,J+=tt,Ae.length=ut,Ae.dts=Math.max(Ae.dts,K),Ae.pts=Math.max(Ae.pts,Ae.dts,0),he=Math.min(Ae.pts,he),de=Math.max(Ae.pts,de)}ee=N[H-1].dts;var vt=ve+4*J+8,_t;try{_t=new Uint8Array(vt)}catch(Ot){this.observer.emit(A.Events.ERROR,A.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:vt,reason:"fail allocating video mdat "+vt});return}var Ve=new DataView(_t.buffer);Ve.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,qe=Bt.length;Pt<qe;Pt++){var He=Bt[Pt],Ye=He.data,Ce=He.data.byteLength;Ve.setUint32(F,Ce),F+=4,_t.set(Ye,F),F+=Ce,Et+=4+Ce}if(je<H-1)I=N[je+1].dts-ht.dts;else{var Le=this.config,We=ht.dts-N[je>0?je-1:je].dts;if(Le.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ue=Math.floor(Le.maxBufferHole*L),ze=(U?he+U*L:this.nextAudioPts)-ht.pts;ze>Ue?(I=ze-We,I<0&&(I=We),e.logger.log("[mp4-remuxer]: It is approximately "+ze/90+" ms to the next segment; using duration "+I/90+" ms for the last video frame.")):I=We}else I=We}var st=Math.round(ht.pts-ht.dts);V.push(new E(ht.key,I,Et,st))}if(V.length&&c&&c<70){var Ct=V[0].flags;Ct.dependsOn=2,Ct.isNonSync=0}console.assert(I!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=W=ee+I,this.isVideoContiguous=!0;var Wt=C.default.moof(S.sequenceNumber++,K,l({},S,{samples:V})),Qt="video",Kt={data1:Wt,data2:_t,startPTS:he/L,endPTS:(de+I)/L,startDTS:K/L,endDTS:W/L,type:Qt,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"),Kt},R.remuxAudio=function(S,v,T,U,L){var N=S.inputTimeScale,V=S.samplerate?S.samplerate:N,H=N/V,D=S.isAAC?i:r,W=D*H,F=this._initPTS,I=!S.isAAC&&this.typeSupported.mpeg,K=[],ee=S.samples,he=I?0:8,de=this.nextAudioPts||-1,Se=v*N;if(this.isAudioContiguous=T=T||ee.length&&de>0&&(U&&Math.abs(Se-de)<9e3||Math.abs(u(ee[0].pts-F,Se)-de)<20*W),ee.forEach(function(Ye){Ye.pts=u(Ye.pts-F,Se)}),!T||de<0){if(ee=ee.filter(function(Ye){return Ye.pts>=0}),!ee.length)return;L===0?de=0:U?de=Math.max(0,Se):de=ee[0].pts}if(S.isAAC)for(var Te=L!==void 0,ce=this.config.maxAudioFramesDrift,be=0,ye=de;be<ee.length;be++){var ue=ee[be],se=ue.pts,$=se-ye,me=Math.abs(1e3*$/N);if($<=-ce*W&&Te)be===0&&(e.logger.warn("Audio frame @ "+(se/N).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*$/N)+" ms."),this.nextAudioPts=de=ye=se);else if($>=ce*W&&me<n&&Te){var re=Math.round($/W);ye=se-re*W,ye<0&&(re--,ye+=W),be===0&&(this.nextAudioPts=de=ye),e.logger.warn("[mp4-remuxer]: Injecting "+re+" audio frame @ "+(ye/N).toFixed(3)+"s due to "+Math.round(1e3*$/N)+" ms gap.");for(var ae=0;ae<re;ae++){var Oe=Math.max(ye,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(be,0,{unit:le,pts:Oe}),ye+=W,be++}}ue.pts=ye,ye+=W}for(var te=null,Q=null,J,ve=0,_e=ee.length;_e--;)ve+=ee[_e].unit.byteLength;for(var Ae=0,Je=ee.length;Ae<Je;Ae++){var tt=ee[Ae],ut=tt.unit,ft=tt.pts;if(Q!==null){var vt=K[Ae-1];vt.duration=Math.round((ft-Q)/H)}else if(T&&S.isAAC&&(ft=de),te=ft,ve>0){ve+=he;try{J=new Uint8Array(ve)}catch(Ye){this.observer.emit(A.Events.ERROR,A.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!I){var _t=new DataView(J.buffer);_t.setUint32(0,ve),J.set(C.default.types.mdat,4)}}else return;J.set(ut,he);var Ve=ut.byteLength;he+=Ve,K.push(new E(!0,D,Ve,0)),Q=ft}var je=K.length;if(!je)return;var ht=K[K.length-1];this.nextAudioPts=de=Q+H*ht.duration;var Bt=I?new Uint8Array(0):C.default.moof(S.sequenceNumber++,te/H,l({},S,{samples:K}));S.samples=[];var Et=te/N,Pt=de/N,qe="audio",He={data1:Bt,data2:J,startPTS:Et,endPTS:Pt,startDTS:Et,endDTS:Pt,type:qe,hasAudio:!0,hasVideo:!1,nb:je};return this.isAudioContiguous=!0,console.assert(J.length,"MDAT length must not be zero"),He},R.remuxEmptyAudio=function(S,v,T,U){var L=S.inputTimeScale,N=S.samplerate?S.samplerate:L,V=L/N,H=this.nextAudioPts,D=(H!==null?H:U.startDTS*L)+this._initDTS,W=U.endDTS*L+this._initDTS,F=V*i,I=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<I;he++){var de=D+he*F;ee.push({unit:K,pts:de,dts:de})}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,L=this._initPTS,N=this._initDTS,V=0;V<T;V++){var H=S.samples[V];H.pts=u(H.pts-L,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,L=this._initPTS,N=0;N<T;N++){var V=S.samples[N];V.pts=u(V.pts-L,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,g,O){"use strict";O.r(g);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"),m=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 L={data1:E,startPTS:x,startDTS:x,endPTS:S,endDTS:S,type:U,hasAudio:v,hasVideo:T,nb:1,dropped:0};return w.audio=L.type==="audio"?L:void 0,w.video=L.type!=="audio"?L: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"}g.default=m},"./src/task-loop.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!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,g,O){"use strict";O.r(g),O.d(g,"CMCDVersion",function(){return b}),O.d(g,"CMCDObjectType",function(){return y}),O.d(g,"CMCDStreamingFormat",function(){return C}),O.d(g,"CMCDStreamType",function(){return A});var b=1,y;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(y||(y={}));var C;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(C||(C={}));var A;(function(m){m.VOD="v",m.LIVE="l"})(A||(A={}))},"./src/types/level.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"HlsSkip",function(){return C}),O.d(g,"getSkipValue",function(){return A}),O.d(g,"HlsUrlParameters",function(){return m}),O.d(g,"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 m=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,g,O){"use strict";O.r(g),O.d(g,"PlaylistContextType",function(){return b}),O.d(g,"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,g,O){"use strict";O.r(g),O.d(g,"ChunkMetadata",function(){return b});var b=function(A,m,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=m,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,g,O){"use strict";O.r(g),O.d(g,"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 m=A.prototype;return m.decimalInteger=function(f){var a=parseInt(this[f],10);return a>Number.MAX_SAFE_INTEGER?Infinity:a},m.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},m.hexadecimalIntegerAsNumber=function(f){var a=parseInt(this[f],16);return a>Number.MAX_SAFE_INTEGER?Infinity:a},m.decimalFloatingPoint=function(f){return parseFloat(this[f])},m.optionalFloat=function(f,a){var l=this[f];return l?parseFloat(l):a},m.enumeratedString=function(f){return this[f]},m.bool=function(f){return this[f]==="YES"},m.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,g,O){"use strict";O.r(g);var b={search:function(C,A){for(var m=0,e=C.length-1,f=null,a=null;m<=e;){f=(m+e)/2|0,a=C[f];var l=A(a);if(l>0)m=f+1;else if(l<0)e=f-1;else return a}return null}};g.default=b},"./src/utils/buffer-helper.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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,g,O){"use strict";O.r(g),O.d(g,"Row",function(){return s}),O.d(g,"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,m=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,L,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=L||"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"],L=0;L<U.length;L++){var N=U[L];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,L,N,V){this.uchar=void 0,this.penState=void 0,this.uchar=v||" ",this.penState=new h(T,U,L,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<m;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,L=0;L<m;L++)if(!this.chars[L].equals(T.chars[L])){U=!1;break}return U},S.copy=function(T){for(var U=0;U<m;U++)this.chars[U].copy(T.chars[U])},S.isEmpty=function(){for(var T=!0,U=0;U<m;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>m&&(this.logger.log(i.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},S.moveCursor=function(T){var U=this.pos+T;if(T>1)for(var L=this.pos+1;L<U+1;L++)this.chars[L].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>=m){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<m;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,L=0;L<m;L++){var N=this.chars[L].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,L=0;L<A;L++)if(!this.rows[L].equals(T.rows[L])){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 L=0;L<A;L++)this.rows[L].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 I=T.indent,K=Math.max(I-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=[],L="",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?L="["+U.join(" | ")+"]":L=U.join(`
|
|
|
`)),L},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 L=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(i.INFO,L+": "+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 L=Math.floor(T/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];U.foreground=N[L]}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 L=new r;this.channels=[null,new w(v,T,L),new w(v+1,U,L)],this.cmdHistory=R(),this.logger=L}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 L,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])+")"),L=this.parseCmd(N,V),L||(L=this.parseMidrow(N,V)),L||(L=this.parsePAC(N,V)),L||(L=this.parseBackgroundAttributes(N,V)),!L&&(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?")}!L&&!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 L=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,L))return _(null,null,L),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,L),this.currentChannel=H,!0},S.parseMidrow=function(T,U){var L=0;if((T===17||T===25)&&U>=32&&U<=47){if(T===17?L=1:L=2,L!==this.currentChannel)return this.logger.log(i.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[L];return N?(N.ccMIDROW(U),this.logger.log(i.DEBUG,"MIDROW ("+c([T,U])+")"),!0):!1}return!1},S.parsePAC=function(T,U){var L,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?L=D===1?e[T]:a[T]:L=D===1?f[T]:l[T];var W=this.channels[D];return W?(W.setPAC(this.interpretPAC(L,U)),_(T,U,N),this.currentChannel=D,!0):!1},S.interpretPAC=function(T,U){var L,N={color:null,italics:!1,indent:null,underline:!1,row:T};return U>95?L=U-96:L=U-64,N.underline=(L&1)===1,L<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(L/2)]:L<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((L-16)/2)*4,N},S.parseChars=function(T,U){var L,N=null,V=null;if(T>=25?(L=2,V=T-8):(L=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 "+L),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 L=(T===16||T===24)&&U>=32&&U<=47,N=(T===23||T===31)&&U>=45&&U<=47;if(!(L||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 L=this.channels[U];L&&L.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}}g.default=E},"./src/utils/codecs.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"isCodecType",function(){return y}),O.d(g,"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,m){var e=b[m];return!!e&&e[A.slice(0,4)]===!0}function C(A,m){return MediaSource.isTypeSupported((m||"video")+'/mp4;codecs="'+A+'"')}},"./src/utils/cues.ts":function(M,g,O){"use strict";O.r(g);var b=O("./src/utils/vttparser.ts"),y=O("./src/utils/webvtt-parser.ts"),C=O("./src/utils/texttrack-utils.ts"),A=/\s/,m={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}};g.default=m},"./src/utils/discontinuities.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"findFirstFragWithCC",function(){return A}),O.d(g,"shouldAlignOnDiscontinuities",function(){return m}),O.d(g,"findDiscontinuousReferenceFrag",function(){return e}),O.d(g,"adjustSlidingStart",function(){return a}),O.d(g,"alignStream",function(){return l}),O.d(g,"alignPDT",function(){return i}),O.d(g,"alignFragmentByPDTDelta",function(){return r}),O.d(g,"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 m(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(m(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,g,O){"use strict";O.r(g);var b=O("./src/utils/ewma.ts"),y=function(){function C(m,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(m),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}();g.default=y},"./src/utils/ewma.ts":function(M,g,O){"use strict";O.r(g);var b=function(){function y(A,m,e){m===void 0&&(m=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_=m,this.totalWeight_=e}var C=y.prototype;return C.sample=function(m,e){var f=Math.pow(this.alpha_,m);this.estimate_=e*(1-f)+f*this.estimate_,this.totalWeight_+=m},C.getTotalWeight=function(){return this.totalWeight_},C.getEstimate=function(){if(this.alpha_){var m=1-Math.pow(this.alpha_,this.totalWeight_);if(m)return this.estimate_/m}return this.estimate_},y}();g.default=b},"./src/utils/fetch-loader.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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 m(u){var w=typeof Map=="function"?new Map:void 0;return m=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,_)},m(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",L=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[L];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 L(){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,_),L()}).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}(m(Error));g.default=c},"./src/utils/imsc1-ttml-parser.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"IMSC1_CODEC",function(){return a}),O.d(g,"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"),m=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 L=Object(b.findBox)(new Uint8Array(x),["mdat"]);if(L.length===0){U(new Error("Could not parse IMSC1 mdat"));return}var N=L[0],V=Object(A.utf8ArrayToStr)(new Uint8Array(x,N.start,N.end-N.start)),H=Object(m.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 L={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},N=Object.keys(L).reduce(function(F,I){return F[I]=U.getAttribute("ttp:"+I)||L[I],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 I=s(F,V);if(!I||!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 de=new C.default(K-S,he-S,I);de.id=Object(e.generateCueId)(de.startTime,de.endTime,de.text);var Se=D[F.getAttribute("region")],Te=H[F.getAttribute("style")];de.position=10,de.size=80;var ce=u(Se,Te),be=ce.textAlign;if(be){var ye=i[be];ye&&(de.lineAlign=ye),de.align=be}return f(de,ce),de}).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 L;return T.nodeName==="br"&&U?v+`
|
|
|
`:(L=T.childNodes)!==null&&L!==void 0&&L.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,L){var N=w(S,v,L)||w(x,v,L);return N&&(U[L]=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,g,O){"use strict";O.r(g),O.d(g,"enableLogs",function(){return e}),O.d(g,"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 m(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"){m(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,g,O){"use strict";O.r(g),O.d(g,"KeySystems",function(){return b}),O.d(g,"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,g,O){"use strict";O.r(g),O.d(g,"getMediaSource",function(){return b});function b(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"bin2str",function(){return m}),O.d(g,"readUint16",function(){return e}),O.d(g,"readUint32",function(){return f}),O.d(g,"writeUint32",function(){return a}),O.d(g,"findBox",function(){return l}),O.d(g,"parseSegmentIndex",function(){return n}),O.d(g,"parseInitSegment",function(){return i}),O.d(g,"getStartDTS",function(){return r}),O.d(g,"getDuration",function(){return c}),O.d(g,"computeRawDurationFromSamples",function(){return h}),O.d(g,"offsetStartDTS",function(){return d}),O.d(g,"segmentValidRange",function(){return s}),O.d(g,"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 m(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=m(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 L=l({data:P,start:S+8,end:U},E.slice(1));L.length&&A.apply(_,L)}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 L=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 I=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:I,subsegmentDuration:ee,info:{duration:ee/U,start:V,end:V+I-1}}),V+=I,W+=4,T=W}return{earliestPresentationTime:L,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 L=f(U,v),N=l(R,["mdia","hdlr"])[0];if(N){var V=m(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=m(D.data.subarray(D.start+12,D.start+16))),E[T]={timescale:L,type:H},E[H]={timescale:L,id:T,codec:W}}}}}}var F=l(w,["moov","mvex","trex"]);return F.forEach(function(I){var K=f(I,4),ee=E[K];ee&&(ee.default={duration:f(I,12),flags:f(I,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),L=w[U];if(L){var N=f(R,4);x===1&&(N*=Math.pow(2,32),N+=f(R,8));var V=L.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),L=E[U];if(!L)continue;var N=L.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=L.timescale||9e4,W=l(v,["trun"]),F=0;F<W.length;F++){if(H){var I=f(W[F],4);_=H*I}else _=h(W[F]);L.type===y.ElementaryStreamTypes.VIDEO?P+=_/D:L.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],L=f(T,4);if(U===0)a(T,4,L-_*v);else{L*=Math.pow(2,32),L+=f(T,8),L-=_*v,L=Math.max(L,0);var N=Math.floor(L/(C+1)),V=Math.floor(L%(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,g,O){"use strict";O.r(g),O.d(g,"default",function(){return b});var b=function(){function y(A,m){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=A,this.trackName=m}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(m,e,f){(this.startTime===null||this.startTime>m)&&(this.startTime=m),this.endTime=e,this.screen=f,this.timelineController.createCaptionsTrack(this.trackName)},C.reset=function(){this.cueRanges=[]},y}()},"./src/utils/texttrack-utils.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"sendAddTrackEvent",function(){return y}),O.d(g,"addCueToTrack",function(){return C}),O.d(g,"clearCurrentCues",function(){return A}),O.d(g,"removeCuesInRange",function(){return m}),O.d(g,"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 m(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,g,O){"use strict";O.r(g);var b={toString:function(C){for(var A="",m=C.length,e=0;e<m;e++)A+="["+C.start(e).toFixed(3)+","+C.end(e).toFixed(3)+"]";return A}};g.default=b},"./src/utils/timescale-conversion.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"toTimescaleFromBase",function(){return y}),O.d(g,"toTimescaleFromScale",function(){return C}),O.d(g,"toMsFromMpegTsClock",function(){return A}),O.d(g,"toMpegTsClockFromTimescale",function(){return m});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 m(e,f){return f===void 0&&(f=1),y(e,b,1/f)}},"./src/utils/typed-array.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"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,g,O){"use strict";O.r(g),g.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 m(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(L){c=""+L}})),Object.defineProperty(i,"pauseOnExit",e({},r,{get:function(){return h},set:function(L){h=!!L}})),Object.defineProperty(i,"startTime",e({},r,{get:function(){return d},set:function(L){if(typeof L!="number")throw new TypeError("Start time must be set to a number.");d=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"endTime",e({},r,{get:function(){return s},set:function(L){if(typeof L!="number")throw new TypeError("End time must be set to a number.");s=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",e({},r,{get:function(){return u},set:function(L){u=""+L,this.hasBeenReset=!0}})),Object.defineProperty(i,"region",e({},r,{get:function(){return w},set:function(L){w=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"vertical",e({},r,{get:function(){return E},set:function(L){var N=A(L);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(L){_=!!L,this.hasBeenReset=!0}})),Object.defineProperty(i,"line",e({},r,{get:function(){return P},set:function(L){if(typeof L!="number"&&L!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");P=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"lineAlign",e({},r,{get:function(){return R},set:function(L){var N=m(L);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(L){if(L<0||L>100)throw new Error("Position must be between 0 and 100.");x=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",e({},r,{get:function(){return S},set:function(L){var N=m(L);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(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");v=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",e({},r,{get:function(){return T},set:function(L){var N=m(L);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,g,O){"use strict";O.r(g),O.d(g,"parseTimeStamp",function(){return C}),O.d(g,"fixLineBreaks",function(){return l}),O.d(g,"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 m(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;m(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){m(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,g,O){"use strict";O.r(g),O.d(g,"generateCueId",function(){return n}),O.d(g,"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"),m=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,L,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 I=H.endTime-H.startTime,K=Object(m.normalizePts)((H.startTime+W-U)*9e4,w*9e4)/9e4;H.startTime=K,H.endTime=K+I}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){L=H},P.onflush=function(){if(L){_(L);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,L=D}return}else H===""&&(N=!1);P.parse(H+`
|
|
|
`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(M,g,O){"use strict";O.r(g);var b=O("./src/utils/logger.ts"),y=O("./src/loader/load-stats.ts"),C=/^age:\s*[\d.]+\s*$/m,A=function(){function m(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=m.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},m}();g.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,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.StreamCipher,y=g.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}g.RC4=b._createHelper(C);var m=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)}});g.RC4Drop=b._createHelper(m)}(),M.RC4})},wCXF:function(k,z,o){"use strict";o.d(z,"a",function(){return ut});var M=o("rePB"),g=o("VTBJ"),O=o("KQm4"),b=o("U8pU"),y=o("ODXe"),C=o("q1tI"),A=o("TSYQ"),m=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(Ve,je,ht,Bt,Et){var Pt=ht[Ve]||{},qe=ht[je]||{},He,Ye;Pt.fixed==="left"?He=Bt.left[Ve]:qe.fixed==="right"&&(Ye=Bt.right[je]);var Ce=!1,Le=!1,We=!1,Ue=!1,ze=ht[je+1],st=ht[Ve-1];if(Et==="rtl"){if(He!==void 0){var Ct=st&&st.fixed==="left";Ue=!Ct}else if(Ye!==void 0){var Wt=ze&&ze.fixed==="right";We=!Wt}}else if(He!==void 0){var Qt=ze&&ze.fixed==="left";Ce=!Qt}else if(Ye!==void 0){var Kt=st&&st.fixed==="right";Le=!Kt}return{fixLeft:He,fixRight:Ye,lastFixLeft:Ce,firstFixRight:Le,lastFixRight:We,firstFixLeft:Ue,isSticky:Bt.isSticky}}var w=o("sR1s");function E(Ve){var je=Ve.cells,ht=Ve.stickyOffsets,Bt=Ve.flattenColumns,Et=Ve.rowComponent,Pt=Ve.cellComponent,qe=Ve.onHeaderRow,He=Ve.index,Ye=C.useContext(s.a),Ce=Ye.prefixCls,Le=Ye.direction,We;qe&&(We=qe(je.map(function(ze){return ze.column}),He));var Ue=Object(w.a)(je.map(function(ze){return ze.column}));return C.createElement(Et,Object.assign({},We),je.map(function(ze,st){var Ct=ze.column,Wt=u(ze.colStart,ze.colEnd,Bt,ht,Le),Qt;return Ct&&Ct.onHeaderCell&&(Qt=ze.column.onHeaderCell(Ct)),C.createElement(d.a,Object.assign({},ze,{ellipsis:Ct.ellipsis,align:Ct.align,component:Pt,prefixCls:Ce,key:Ue[st]},Wt,{additionalProps:Qt,rowType:"header"}))}))}E.displayName="HeaderRow";var _=E;function P(Ve){var je=[];function ht(qe,He){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;je[Ye]=je[Ye]||[];var Ce=He,Le=qe.filter(Boolean).map(function(We){var Ue={key:We.key,className:We.className||"",children:We.title,column:We,colStart:Ce},ze=1,st=We.children;return st&&st.length>0&&(ze=ht(st,Ce,Ye+1).reduce(function(Ct,Wt){return Ct+Wt},0),Ue.hasSubColumns=!0),"colSpan"in We&&(ze=We.colSpan),"rowSpan"in We&&(Ue.rowSpan=We.rowSpan),Ue.colSpan=ze,Ue.colEnd=Ue.colStart+ze-1,je[Ye].push(Ue),Ce+=ze,ze});return Le}ht(Ve,0);for(var Bt=je.length,Et=function(He){je[He].forEach(function(Ye){!("rowSpan"in Ye)&&!Ye.hasSubColumns&&(Ye.rowSpan=Bt-He)})},Pt=0;Pt<Bt;Pt+=1)Et(Pt);return je}function R(Ve){var je=Ve.stickyOffsets,ht=Ve.columns,Bt=Ve.flattenColumns,Et=Ve.onHeaderRow,Pt=C.useContext(s.a),qe=Pt.prefixCls,He=Pt.getComponent,Ye=C.useMemo(function(){return P(ht)},[ht]),Ce=He(["header","wrapper"],"thead"),Le=He(["header","row"],"tr"),We=He(["header","cell"],"th");return C.createElement(Ce,{className:"".concat(qe,"-thead")},Ye.map(function(Ue,ze){var st=C.createElement(_,{key:ze,flattenColumns:Bt,cells:Ue,stickyOffsets:je,rowComponent:Le,cellComponent:We,onHeaderRow:Et,index:ze});return st}))}var x=R,S=o("hW8S");function v(Ve){for(var je=Ve.colWidths,ht=Ve.columns,Bt=Ve.columCount,Et=[],Pt=Bt||ht.length,qe=!1,He=Pt-1;He>=0;He-=1){var Ye=je[He],Ce=ht&&ht[He],Le=Ce&&Ce[S.a];(Ye||Le||qe)&&(Et.unshift(C.createElement("col",Object.assign({key:He,style:{width:Ye,minWidth:Ye}},Le))),qe=!0)}return C.createElement("colgroup",null,Et)}var T=v;function U(Ve,je){return Object(C.useMemo)(function(){for(var ht=[],Bt=0;Bt<je;Bt+=1){var Et=Ve[Bt];if(Et!==void 0)ht[Bt]=Et;else return null}return ht},[Ve.join("_"),je])}var L=C.forwardRef(function(Ve,je){var ht=Ve.noData,Bt=Ve.columns,Et=Ve.flattenColumns,Pt=Ve.colWidths,qe=Ve.columCount,He=Ve.stickyOffsets,Ye=Ve.direction,Ce=Ve.fixHeader,Le=Ve.offsetHeader,We=Ve.stickyClassName,Ue=Ve.onScroll,ze=Object(c.a)(Ve,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),st=C.useContext(s.a),Ct=st.prefixCls,Wt=st.scrollbarSize,Qt=st.isSticky,Kt=Qt&&!Ce?0:Wt,Ot=C.useRef(null),Fe=C.useCallback(function(Dt){Object(h.b)(je,Dt),Object(h.b)(Ot,Dt)},[]);C.useEffect(function(){var Dt;function It(ct){var Nt=ct.currentTarget,jt=ct.deltaX;jt&&(Ue({currentTarget:Nt,scrollLeft:Nt.scrollLeft+jt}),ct.preventDefault())}return(Dt=Ot.current)===null||Dt===void 0||Dt.addEventListener("wheel",It),function(){var ct;(ct=Ot.current)===null||ct===void 0||ct.removeEventListener("wheel",It)}},[]);var at=Et[Et.length-1],it={fixed:at?at.fixed:null,onHeaderCell:function(){return{className:"".concat(Ct,"-cell-scrollbar")}}},Pe=Object(C.useMemo)(function(){return Kt?[].concat(Object(O.a)(Bt),[it]):Bt},[Kt,Bt]),Qe=Object(C.useMemo)(function(){return Kt?[].concat(Object(O.a)(Et),[it]):Et},[Kt,Et]),pt=Object(C.useMemo)(function(){var Dt=He.right,It=He.left;return Object(g.a)(Object(g.a)({},He),{},{left:Ye==="rtl"?[].concat(Object(O.a)(It.map(function(ct){return ct+Kt})),[0]):It,right:Ye==="rtl"?Dt:[].concat(Object(O.a)(Dt.map(function(ct){return ct+Kt})),[0]),isSticky:Qt})},[Kt,He,Qt]),bt=U(Pt,qe);return C.createElement("div",{style:Object(g.a)({overflow:"hidden"},Qt?{top:Le}:{}),ref:Fe,className:m()("".concat(Ct,"-header"),Object(M.a)({},We,!!We))},C.createElement("table",{style:{tableLayout:"fixed",visibility:ht||bt?null:"hidden"}},C.createElement(T,{colWidths:bt?[].concat(Object(O.a)(bt),[Kt]):[],columCount:qe+1,columns:Qe}),C.createElement(x,Object.assign({},ze,{stickyOffsets:pt,columns:Pe,flattenColumns:Qe}))))});L.displayName="FixedHeader";var N=L,V=C.createContext(null),H=V;function D(Ve){var je=Ve.prefixCls,ht=Ve.children,Bt=Ve.component,Et=Ve.cellComponent,Pt=Ve.fixHeader,qe=Ve.fixColumn,He=Ve.horizonScroll,Ye=Ve.className,Ce=Ve.expanded,Le=Ve.componentWidth,We=Ve.colSpan,Ue=C.useContext(s.a),ze=Ue.scrollbarSize;return C.useMemo(function(){var st=ht;return qe&&(st=C.createElement("div",{style:{width:Le-(Pt?ze:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(je,"-expanded-row-fixed")},st)),C.createElement(Bt,{className:Ye,style:{display:Ce?null:"none"}},C.createElement(d.a,{component:Et,prefixCls:je,colSpan:We},st))},[ht,Bt,Pt,He,Ye,Ce,Le,We,ze])}var W=D;function F(Ve){var je=Ve.className,ht=Ve.style,Bt=Ve.record,Et=Ve.index,Pt=Ve.rowKey,qe=Ve.getRowKey,He=Ve.rowExpandable,Ye=Ve.expandedKeys,Ce=Ve.onRow,Le=Ve.indent,We=Le===void 0?0:Le,Ue=Ve.rowComponent,ze=Ve.cellComponent,st=Ve.childrenColumnName,Ct=C.useContext(s.a),Wt=Ct.prefixCls,Qt=Ct.fixedInfoList,Kt=C.useContext(H),Ot=Kt.fixHeader,Fe=Kt.fixColumn,at=Kt.horizonScroll,it=Kt.componentWidth,Pe=Kt.flattenColumns,Qe=Kt.expandableType,pt=Kt.expandRowByClick,bt=Kt.onTriggerExpand,Dt=Kt.rowClassName,It=Kt.expandedRowClassName,ct=Kt.indentSize,Nt=Kt.expandIcon,jt=Kt.expandedRowRender,on=Kt.expandIconColumnIndex,vn=C.useState(!1),Wn=Object(y.a)(vn,2),Kn=Wn[0],Hn=Wn[1],fn=Ye&&Ye.has(Ve.recordKey);C.useEffect(function(){fn&&Hn(!0)},[fn]);var lr=Qe==="row"&&(!He||He(Bt)),Zn=Qe==="nest",cr=st&&Bt&&Bt[st],dr=lr||Zn,Dr;Ce&&(Dr=Ce(Bt,Et));var hr=function(X){if(pt&&dr&&bt(Bt,X),Dr&&Dr.onClick){for(var q,oe=arguments.length,De=new Array(oe>1?oe-1:0),fe=1;fe<oe;fe++)De[fe-1]=arguments[fe];(q=Dr).onClick.apply(q,[X].concat(De))}},sn;typeof Dt=="string"?sn=Dt:typeof Dt=="function"&&(sn=Dt(Bt,Et,We));var en=Object(w.a)(Pe),On=C.createElement(Ue,Object.assign({},Dr,{"data-row-key":Pt,className:m()(je,"".concat(Wt,"-row"),"".concat(Wt,"-row-level-").concat(We),sn,Dr&&Dr.className),style:Object(g.a)(Object(g.a)({},ht),Dr?Dr.style:null),onClick:hr}),Pe.map(function(pe,X){var q=pe.render,oe=pe.dataIndex,De=pe.className,fe=en[X],ot=Qt[X],Zt;X===(on||0)&&Zn&&(Zt=C.createElement(C.Fragment,null,C.createElement("span",{style:{paddingLeft:"".concat(ct*We,"px")},className:"".concat(Wt,"-row-indent indent-level-").concat(We)}),Nt({prefixCls:Wt,expanded:fn,expandable:cr,record:Bt,onExpand:bt})));var Mn;return pe.onCell&&(Mn=pe.onCell(Bt,Et)),C.createElement(d.a,Object.assign({className:De,ellipsis:pe.ellipsis,align:pe.align,component:ze,prefixCls:Wt,key:fe,record:Bt,index:Et,dataIndex:oe,render:q,shouldCellUpdate:pe.shouldCellUpdate},ot,{appendNode:Zt,additionalProps:Mn}))})),Fr;if(lr&&(Kn||fn)){var Or=jt(Bt,Et,We+1,fn),xr=It&&It(Bt,Et,We);Fr=C.createElement(W,{expanded:fn,className:m()("".concat(Wt,"-expanded-row"),"".concat(Wt,"-expanded-row-level-").concat(We+1),xr),prefixCls:Wt,fixHeader:Ot,fixColumn:Fe,horizonScroll:at,component:Ue,componentWidth:it,cellComponent:ze,colSpan:Pe.length},Or)}var fr;return cr&&fn&&(fr=(Bt[st]||[]).map(function(pe,X){var q=qe(pe,X);return C.createElement(F,Object.assign({},Ve,{key:q,rowKey:q,record:pe,recordKey:q,index:X,indent:We+1}))})),C.createElement(C.Fragment,null,On,Fr,fr)}F.displayName="BodyRow";var I=F,K=C.createContext(null),ee=K;function he(Ve){var je=Ve.columnKey,ht=Ve.onColumnResize,Bt=C.useRef();return C.useEffect(function(){Bt.current&&ht(je,Bt.current.offsetWidth)},[]),C.createElement(l.a,{onResize:function(Pt){var qe=Pt.offsetWidth;ht(je,qe)}},C.createElement("td",{ref:Bt,style:{padding:0,border:0,height:0}},C.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function de(Ve){var je=Ve.data,ht=Ve.getRowKey,Bt=Ve.measureColumnWidth,Et=Ve.expandedKeys,Pt=Ve.onRow,qe=Ve.rowExpandable,He=Ve.emptyNode,Ye=Ve.childrenColumnName,Ce=C.useContext(ee),Le=Ce.onColumnResize,We=C.useContext(s.a),Ue=We.prefixCls,ze=We.getComponent,st=C.useContext(H),Ct=st.fixHeader,Wt=st.horizonScroll,Qt=st.flattenColumns,Kt=st.componentWidth;return C.useMemo(function(){var Ot=ze(["body","wrapper"],"tbody"),Fe=ze(["body","row"],"tr"),at=ze(["body","cell"],"td"),it;je.length?it=je.map(function(Qe,pt){var bt=ht(Qe,pt);return C.createElement(I,{key:bt,rowKey:bt,record:Qe,recordKey:bt,index:pt,rowComponent:Fe,cellComponent:at,expandedKeys:Et,onRow:Pt,getRowKey:ht,rowExpandable:qe,childrenColumnName:Ye})}):it=C.createElement(W,{expanded:!0,className:"".concat(Ue,"-placeholder"),prefixCls:Ue,fixHeader:Ct,fixColumn:Wt,horizonScroll:Wt,component:Fe,componentWidth:Kt,cellComponent:at,colSpan:Qt.length},He);var Pe=Object(w.a)(Qt);return C.createElement(Ot,{className:"".concat(Ue,"-tbody")},Bt&&C.createElement("tr",{"aria-hidden":"true",className:"".concat(Ue,"-measure-row"),style:{height:0}},Pe.map(function(Qe){return C.createElement(he,{key:Qe,columnKey:Qe,onColumnResize:Le})})),it)},[je,Ue,Pt,Bt,Et,ht,ze,Kt,He,Qt])}var Se=C.memo(de);Se.displayName="Body";var Te=Se,ce=o("wRmb"),be=o("xEkU"),ye=o.n(be);function ue(Ve){var je=Object(C.useRef)(Ve),ht=Object(C.useState)({}),Bt=Object(y.a)(ht,2),Et=Bt[1],Pt=Object(C.useRef)(null),qe=Object(C.useRef)([]);function He(Ye){Pt.current===null&&(qe.current=[],Pt.current=ye()(function(){qe.current.forEach(function(Ce){je.current=Ce(je.current)}),Pt.current=null,Et({})})),qe.current.push(Ye)}return Object(C.useEffect)(function(){return function(){ye.a.cancel(Pt.current)}},[]),[je.current,He]}function se(Ve){var je=Object(C.useRef)(Ve),ht=Object(C.useRef)(null);function Bt(){window.clearTimeout(ht.current)}function Et(qe){je.current=qe,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 $(Ve,je,ht){var Bt=Object(C.useMemo)(function(){for(var Et=[],Pt=[],qe=0,He=0,Ye=0;Ye<je;Ye+=1)if(ht==="rtl"){Pt[Ye]=He,He+=Ve[Ye]||0;var Ce=je-Ye-1;Et[Ce]=qe,qe+=Ve[Ce]||0}else{Et[Ye]=qe,qe+=Ve[Ye]||0;var Le=je-Ye-1;Pt[Le]=He,He+=Ve[Le]||0}return{left:Et,right:Pt}},[Ve,je,ht]);return Bt}var me=$;function re(Ve){var je=Ve.className,ht=Ve.children;return C.createElement("div",{className:je},ht)}var ae=re,Oe=o("n6Qo");function le(Ve){var je,ht=Ve.prefixCls,Bt=Ve.record,Et=Ve.onExpand,Pt=Ve.expanded,qe=Ve.expandable,He="".concat(ht,"-row-expand-icon");if(!qe)return C.createElement("span",{className:m()(He,"".concat(ht,"-row-spaced"))});var Ye=function(Le){Et(Bt,Le),Le.stopPropagation()};return C.createElement("span",{className:m()(He,(je={},Object(M.a)(je,"".concat(ht,"-row-expanded"),Pt),Object(M.a)(je,"".concat(ht,"-row-collapsed"),!Pt),je)),onClick:Ye})}function te(Ve,je,ht){var Bt=[];function Et(Pt){(Pt||[]).forEach(function(qe,He){Bt.push(je(qe,He)),Et(qe[ht])})}return Et(Ve),Bt}var Q=o("zT1h"),J=o("y0+3"),ve=function(je,ht){var Bt,Et,Pt=je.scrollBodyRef,qe=je.onScroll,He=je.offsetScroll,Ye=C.useContext(s.a),Ce=Ye.prefixCls,Le=((Bt=Pt.current)===null||Bt===void 0?void 0:Bt.scrollWidth)||0,We=((Et=Pt.current)===null||Et===void 0?void 0:Et.clientWidth)||0,Ue=Le&&We*(We/Le),ze=C.useRef(),st=ue({scrollLeft:0,isHiddenScrollBar:!1}),Ct=Object(y.a)(st,2),Wt=Ct[0],Qt=Ct[1],Kt=C.useRef({delta:0,x:0}),Ot=C.useState(!1),Fe=Object(y.a)(Ot,2),at=Fe[0],it=Fe[1],Pe=function(){it(!1)},Qe=function(ct){ct.persist(),Kt.current.delta=ct.pageX-Wt.scrollLeft,Kt.current.x=0,it(!0),ct.preventDefault()},pt=function(ct){var Nt,jt=ct||((Nt=window)===null||Nt===void 0?void 0:Nt.event),on=jt.buttons;if(!at||on===0){at&&it(!1);return}var vn=Kt.current.x+ct.pageX-Kt.current.x-Kt.current.delta;vn<=0&&(vn=0),vn+Ue>=We&&(vn=We-Ue),qe({scrollLeft:vn/We*(Le+2)}),Kt.current.x=ct.pageX},bt=function(){var ct=Object(J.b)(Pt.current).top,Nt=ct+Pt.current.offsetHeight,jt=document.documentElement.scrollTop+window.innerHeight;Nt-Object(n.a)()<=jt||ct>=jt-He?Qt(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!0})}):Qt(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!1})})},Dt=function(ct){Qt(function(Nt){return Object(g.a)(Object(g.a)({},Nt),{},{scrollLeft:ct/Le*We||0})})};return C.useImperativeHandle(ht,function(){return{setScrollLeft:Dt}}),C.useEffect(function(){var It=Object(Q.a)(document.body,"mouseup",Pe,!1),ct=Object(Q.a)(document.body,"mousemove",pt,!1);return bt(),function(){It.remove(),ct.remove()}},[Ue,at]),C.useEffect(function(){var It=Object(Q.a)(window,"scroll",bt,!1),ct=Object(Q.a)(window,"resize",bt,!1);return function(){It.remove(),ct.remove()}},[]),C.useEffect(function(){Wt.isHiddenScrollBar||Qt(function(It){var ct,Nt;return Object(g.a)(Object(g.a)({},It),{},{scrollLeft:Pt.current.scrollLeft/((ct=Pt.current)===null||ct===void 0?void 0:ct.scrollWidth)*((Nt=Pt.current)===null||Nt===void 0?void 0:Nt.clientWidth)})})},[Wt.isHiddenScrollBar]),Le<=We||!Ue||Wt.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(n.a)(),width:We,bottom:He},className:"".concat(Ce,"-sticky-scroll")},C.createElement("div",{onMouseDown:Qe,ref:ze,className:m()("".concat(Ce,"-sticky-scroll-bar"),Object(M.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),at)),style:{width:"".concat(Ue,"px"),transform:"translate3d(".concat(Wt.scrollLeft,"px, 0, 0)")}}))},_e=C.forwardRef(ve);function Ae(Ve,je){return C.useMemo(function(){var ht=!!Ve;return{isSticky:ht,stickyClassName:ht?"".concat(je,"-sticky-header"):"",offsetHeader:Object(b.a)(Ve)==="object"&&Ve.offsetHeader||0,offsetScroll:Object(b.a)(Ve)==="object"&&Ve.offsetScroll||0}},[Ve,je])}var Je=[],tt={},ut="rc-table-internal-hook",ft=C.memo(function(Ve){var je=Ve.children;return je},function(Ve,je){return f()(Ve.props,je.props)?Ve.pingLeft!==je.pingLeft||Ve.pingRight!==je.pingRight:!1});function vt(Ve){var je,ht=Ve.prefixCls,Bt=Ve.className,Et=Ve.rowClassName,Pt=Ve.style,qe=Ve.data,He=Ve.rowKey,Ye=Ve.scroll,Ce=Ve.tableLayout,Le=Ve.direction,We=Ve.title,Ue=Ve.footer,ze=Ve.summary,st=Ve.id,Ct=Ve.showHeader,Wt=Ve.components,Qt=Ve.emptyText,Kt=Ve.onRow,Ot=Ve.onHeaderRow,Fe=Ve.internalHooks,at=Ve.transformColumns,it=Ve.internalRefs,Pe=Ve.sticky,Qe=qe||Je,pt=!!Qe.length,bt=C.useState(0),Dt=Object(y.a)(bt,2),It=Dt[0],ct=Dt[1];C.useEffect(function(){ct(Object(n.a)())});var Nt=C.useMemo(function(){return Object(w.c)(Wt,{})},[Wt]),jt=C.useCallback(function(Gt,$t){return Object(w.b)(Nt,Gt)||$t},[Nt]),on=C.useMemo(function(){return typeof He=="function"?He:function(Gt){var $t=Gt&&Gt[He];return $t}},[He]),vn=Object(S.c)(Ve),Wn=vn.expandIcon,Kn=vn.expandedRowKeys,Hn=vn.defaultExpandedRowKeys,fn=vn.defaultExpandAllRows,lr=vn.expandedRowRender,Zn=vn.onExpand,cr=vn.onExpandedRowsChange,dr=vn.expandRowByClick,Dr=vn.rowExpandable,hr=vn.expandIconColumnIndex,sn=vn.expandedRowClassName,en=vn.childrenColumnName,On=vn.indentSize,Fr=Wn||le,Or=en||"children",xr=C.useMemo(function(){return lr?"row":Ve.expandable&&Fe===ut&&Ve.expandable.__PARENT_RENDER_ICON__||Qe.some(function(Gt){return Gt&&Object(b.a)(Gt)==="object"&&Gt[Or]})?"nest":!1},[!!lr,Qe]),fr=C.useState(function(){return Hn||(fn?te(Qe,on,Or):[])}),pe=Object(y.a)(fr,2),X=pe[0],q=pe[1],oe=C.useMemo(function(){return new Set(Kn||X||[])},[Kn,X]),De=C.useCallback(function(Gt){var $t=on(Gt,Qe.indexOf(Gt)),Jt,Xn=oe.has($t);Xn?(oe.delete($t),Jt=Object(O.a)(oe)):Jt=[].concat(Object(O.a)(oe),[$t]),q(Jt),Zn&&Zn(!Xn,Gt),cr&&cr(Jt)},[on,oe,Qe,Zn,cr]),fe=C.useState(0),ot=Object(y.a)(fe,2),Zt=ot[0],Mn=ot[1],Vn=Object(ce.b)(Object(g.a)(Object(g.a)(Object(g.a)({},Ve),vn),{},{expandable:!!lr,expandedKeys:oe,getRowKey:on,onTriggerExpand:De,expandIcon:Fr,expandIconColumnIndex:hr,direction:Le}),Fe===ut?at:null),qt=Object(y.a)(Vn,2),En=qt[0],un=qt[1],jr=C.useMemo(function(){return{columns:En,flattenColumns:un}},[En,un]),aa=C.useRef(),oa=C.useRef(),er=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)(un),lt=xe.map(function(Gt){return ma.get(Gt)}),Rt=C.useMemo(function(){return lt},[lt.join("_")]),wt=me(Rt,un.length,Le),Ht=Ye&&Object(w.d)(Ye.y),Lt=Ye&&Object(w.d)(Ye.x),Xt=Lt&&un.some(function(Gt){var $t=Gt.fixed;return $t}),rn=C.useRef(),xn=Ae(Pe,ht),gn=xn.isSticky,Nn=xn.offsetHeader,An=xn.offsetScroll,an=xn.stickyClassName,Pn,yn,kn;Ht&&(yn={overflowY:"scroll",maxHeight:Ye.y}),Lt&&(Pn={overflowX:"auto"},Ht||(yn={overflowY:"hidden"}),kn={width:Ye.x===!0?"auto":Ye.x,minWidth:"100%"});var Rn=C.useCallback(function(Gt,$t){la(function(Jt){var Xn=new Map(Jt);return Xn.set(Gt,$t),Xn})},[]),Yn=se(null),mr=Object(y.a)(Yn,2),Br=mr[0],Sn=mr[1];function Yt(Gt,$t){if(!$t)return;typeof $t=="function"?$t(Gt):$t.scrollLeft!==Gt&&($t.scrollLeft=Gt)}var hn=function($t){var Jt=$t.currentTarget,Xn=$t.scrollLeft,$n=typeof Xn=="number"?Xn:Jt.scrollLeft,Ln=Jt||tt;if(!Sn()||Sn()===Ln){var rr;Br(Ln),Yt($n,oa.current),Yt($n,er.current),Yt($n,(rr=rn.current)===null||rr===void 0?void 0:rr.setScrollLeft)}if(Jt){var ur=Jt.scrollWidth,ir=Jt.clientWidth;Ka($n>0),li($n<ur-ir)}},Dn=function(){er.current&&hn({currentTarget:er.current})},tn=function($t){var Jt=$t.width;Dn(),Mn(aa.current?aa.current.offsetWidth:Jt)};C.useEffect(function(){return Dn},[]),C.useEffect(function(){Lt&&Dn()},[Lt]),C.useEffect(function(){Fe===ut&&it&&(it.body.current=er.current)});var wn=jt(["table"],"table"),_n=C.useMemo(function(){return Ce||(Xt?Ye.x==="max-content"?"auto":"fixed":Ht||un.some(function(Gt){var $t=Gt.ellipsis;return $t})?"fixed":"auto")},[Ht,Xt,un,Ce]),In,Un={colWidths:Rt,columCount:un.length,stickyOffsets:wt,onHeaderRow:Ot,fixHeader:Ht},ar=C.useMemo(function(){return pt?null:typeof Qt=="function"?Qt():Qt},[pt,Qt]),qn=C.createElement(Te,{data:Qe,measureColumnWidth:Ht||Lt||gn,expandedKeys:oe,rowExpandable:Dr,getRowKey:on,onRow:Kt,emptyNode:ar,childrenColumnName:Or}),Rr=C.createElement(T,{colWidths:un.map(function(Gt){var $t=Gt.width;return $t}),columns:un}),Ir=ze&&C.createElement(Oe.b,null,ze(Qe)),Jn=jt(["body"]);if(Ht||gn){var Ar;typeof Jn=="function"?(Ar=Jn(Qe,{scrollbarSize:It,ref:er,onScroll:hn}),Un.colWidths=un.map(function(Gt,$t){var Jt=Gt.width,Xn=$t===En.length-1?Jt-It:Jt;return typeof Xn=="number"&&!Number.isNaN(Xn)?Xn:(Object(a.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Ar=C.createElement("div",{style:Object(g.a)(Object(g.a)({},Pn),yn),onScroll:hn,ref:er,className:m()("".concat(ht,"-body"))},C.createElement(wn,{style:Object(g.a)(Object(g.a)({},kn),{},{tableLayout:_n})},Rr,qn,Ir),gn&&C.createElement(_e,{ref:rn,offsetScroll:An,scrollBodyRef:er,onScroll:hn})),In=C.createElement(C.Fragment,null,Ct!==!1&&C.createElement(N,Object.assign({noData:!Qe.length},Un,jr,{direction:Le,offsetHeader:Nn,stickyClassName:an,ref:oa,onScroll:hn})),Ar)}else In=C.createElement("div",{style:Object(g.a)(Object(g.a)({},Pn),yn),className:m()("".concat(ht,"-content")),onScroll:hn,ref:er},C.createElement(wn,{style:Object(g.a)(Object(g.a)({},kn),{},{tableLayout:_n})},Rr,Ct!==!1&&C.createElement(x,Object.assign({},Un,jr)),qn,Ir));var vr=Object(S.b)(Ve),zr=C.createElement("div",Object.assign({className:m()(ht,Bt,(je={},Object(M.a)(je,"".concat(ht,"-rtl"),Le==="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"),Ce==="fixed"),Object(M.a)(je,"".concat(ht,"-fixed-header"),Ht),Object(M.a)(je,"".concat(ht,"-fixed-column"),Xt),Object(M.a)(je,"".concat(ht,"-scroll-horizontal"),Lt),Object(M.a)(je,"".concat(ht,"-has-fix-left"),un[0]&&un[0].fixed),Object(M.a)(je,"".concat(ht,"-has-fix-right"),un[un.length-1]&&un[un.length-1].fixed==="right"),je)),style:Pt,id:st,ref:aa},vr),C.createElement(ft,{pingLeft:ca,pingRight:Ua,props:Object(g.a)(Object(g.a)({},Ve),{},{stickyOffsets:wt,mergedExpandedKeys:oe})},We&&C.createElement(ae,{className:"".concat(ht,"-title")},We(Qe)),C.createElement("div",{className:"".concat(ht,"-container")},In),Ue&&C.createElement(ae,{className:"".concat(ht,"-footer")},Ue(Qe))));Lt&&(zr=C.createElement(l.a,{onResize:tn},zr));var Lr=C.useMemo(function(){return{prefixCls:ht,getComponent:jt,scrollbarSize:It,direction:Le,fixedInfoList:un.map(function(Gt,$t){return u($t,$t,un,wt,Le)}),isSticky:gn}},[ht,jt,It,Le,un,wt,Le,gn]),$r=C.useMemo(function(){return Object(g.a)(Object(g.a)({},jr),{},{tableLayout:_n,rowClassName:Et,expandedRowClassName:sn,componentWidth:Zt,fixHeader:Ht,fixColumn:Xt,horizonScroll:Lt,expandIcon:Fr,expandableType:xr,expandRowByClick:dr,expandedRowRender:lr,onTriggerExpand:De,expandIconColumnIndex:hr,indentSize:On})},[jr,_n,Et,sn,Zt,Ht,Xt,Lt,Fr,xr,dr,lr,De,hr,On]),nr=C.useMemo(function(){return{onColumnResize:Rn}},[Rn]);return C.createElement(s.a.Provider,{value:Lr},C.createElement(H.Provider,{value:$r},C.createElement(ee.Provider,{value:nr},zr)))}vt.Column=r.a,vt.ColumnGroup=i.a,vt.Summary=Oe.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"),g=o("KQm4"),O=o("VTBJ"),b=o("Ff2n"),y=o("q1tI"),C=o.n(y),A=o("Kwbf"),m=o("Zm9Q"),e=o("hW8S");function f(r){return Object(m.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(g.a)(c),Object(g.a)(a(u).map(function(w){return Object(O.a)({fixed:s},w)}))):[].concat(Object(g.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 de=E(ee,he),Se=w.has(de),Te=R?R(ee):!0,ce=P({prefixCls:h,expanded:Se,expandable:Te,record:ee,onExpand:_});return v?y.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},ce):ce}),V),F=T.slice();return H>=0&&F.splice(H,0,W),F}return T},[u,T,E,w,P,S]),L=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(L)):a(L)},[L,S]);return[L,N]}z.b=i},wZgz:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.BlockCipher,y=g.algo,C=[],A=[],m=[],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;m[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,m,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],L=4,N=1;N<x;N++){var V=w[S>>>24]^E[v>>>16&255]^_[T>>>8&255]^P[U&255]^u[L++],H=w[v>>>24]^E[T>>>16&255]^_[U>>>8&255]^P[S&255]^u[L++],D=w[T>>>24]^E[U>>>16&255]^_[S>>>8&255]^P[v&255]^u[L++],W=w[U>>>24]^E[S>>>16&255]^_[v>>>8&255]^P[T&255]^u[L++];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[L++],H=(R[v>>>24]<<24|R[T>>>16&255]<<16|R[U>>>8&255]<<8|R[S&255])^u[L++],D=(R[T>>>24]<<24|R[U>>>16&255]<<16|R[S>>>8&255]<<8|R[v&255])^u[L++],W=(R[U>>>24]<<24|R[S>>>16&255]<<16|R[v>>>8&255]<<8|R[T&255])^u[L++];d[s]=V,d[s+1]=H,d[s+2]=D,d[s+3]=W},keySize:256/32});g.AES=b._createHelper(h)}(),M.AES})},wbyO:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=g.enc,C=y.Base64url={stringify:function(m,e=!0){var f=m.words,a=m.sigBytes,l=e?this._safe_map:this._map;m.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(m,e=!0){var f=m.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=m.indexOf(i);r!==-1&&(f=r)}return A(m,f,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function A(m,e,f){for(var a=[],l=0,n=0;n<e;n++)if(n%4){var i=f[m.charCodeAt(n-1)]<<n%4*2,r=f[m.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/,g={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 g||(g[r]=M.test(r)),g[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 m(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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"}}]);
|